:root {
  --ink: #0d0f0d;
  --paper: #f4efe5;
  --white: #ffffff;
  --red: #cf4321;
  --red-deep: #a83619;
  --lime: #d7ed2b;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: #101310;
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.gateway-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(28px, 5.8vw, 92px);
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.gateway-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.gateway-brand--service {
  justify-self: end;
  text-align: right;
}

.gateway-brand__badge {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  padding: 0;
  background: transparent;
  isolation: isolate;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.gateway-brand__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/tread-logo-frame.svg?v=20260518-17") center / contain no-repeat;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.gateway-brand__badge img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 68%;
  height: 68%;
  object-fit: contain;
  object-position: center center;
  transform: translate(-50%, -50%);
  transform-origin: center;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.12));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.gateway-brand--service .gateway-brand__badge img {
  width: 56%;
  height: 56%;
}

.gateway-brand__text {
  display: grid;
  gap: 2px;
}

.gateway-brand__text strong {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.gateway-brand__text strong span {
  display: inline;
}

.gateway-brand__text small {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.gateway-brand__text small span {
  display: inline;
}

.gateway-brand__text small span + span::before {
  content: " ";
}

.logo-boost .gateway-header {
  min-height: 126px;
  padding-top: 0;
}

.logo-boost .gateway-hero {
  padding-top: 126px;
}

.logo-boost .gateway-brand {
  gap: 12px;
}

.logo-boost .gateway-brand__badge {
  width: 126px;
  height: 126px;
}

.logo-boost .gateway-brand__badge::before {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.logo-boost .gateway-brand__badge img {
  width: 69%;
  height: 69%;
}

.logo-boost .gateway-brand--service .gateway-brand__badge img {
  width: 60%;
  height: 60%;
}

.logo-boost .gateway-brand:hover .gateway-brand__badge,
.logo-boost .gateway-brand:focus-visible .gateway-brand__badge {
  transform: scale(1.04);
}

.logo-boost .gateway-brand:hover .gateway-brand__badge img,
.logo-boost .gateway-brand:focus-visible .gateway-brand__badge img {
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.16));
}

.gateway-main {
  min-height: 100svh;
}

.gateway-hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 32px;
}

.gateway-intro {
  position: absolute;
  top: clamp(220px, 28vh, 290px);
  left: 50%;
  z-index: 10;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.gateway-kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-intro h1,
.gateway-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gateway-intro h1 {
  font-size: clamp(42px, 8vw, 92px);
}

.gateway-intro > p {
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.gateway-event-link {
  pointer-events: auto;
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  max-width: min(420px, 100%);
  margin-top: 18px;
  padding: 0;
  color: var(--white);
  transition: transform 0.22s ease;
}

.gateway-event-link:hover,
.gateway-event-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.gateway-event-link span {
  color: var(--lime);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.22s ease;
}

.gateway-event-link strong {
  color: var(--white);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.44);
  transition: color 0.22s ease;
}

.gateway-event-link:hover span,
.gateway-event-link:focus-visible span,
.gateway-event-link:hover strong,
.gateway-event-link:focus-visible strong {
  color: var(--lime);
}

.gateway-event-link img {
  width: min(190px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gateway-event-link:hover img,
.gateway-event-link:focus-visible img {
  transform: scale(1.025);
  border-color: rgba(215, 237, 43, 0.72);
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.44);
}

.gateway-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 152px);
}

.gateway-split::after {
  display: none;
}

.gateway-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(34px, 5vw, 64px);
  min-height: calc(100svh - 152px);
  cursor: pointer;
}

.gateway-panel:focus-visible {
  outline: 2px solid rgba(215, 237, 43, 0.95);
  outline-offset: -2px;
}

.gateway-panel__bg,
.gateway-panel__veil {
  position: absolute;
  inset: 0;
}

.gateway-panel__bg {
  transition: transform 0.55s ease;
}

.gateway-panel:hover .gateway-panel__bg {
  transform: scale(1.04);
}

.gateway-panel__veil {
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.2), rgba(8, 10, 8, 0.86)),
    linear-gradient(90deg, rgba(8, 10, 8, 0.55), rgba(8, 10, 8, 0.16));
}

.gateway-panel--rental {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.gateway-panel--service {
  margin-left: -10%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.gateway-panel--rental .gateway-panel__bg {
  background: url("../img/hero-photo.png") center center / cover no-repeat;
}

.gateway-panel--service .gateway-panel__bg {
  background: url("../img/service-photo.png") center center / cover no-repeat;
}

.gateway-panel__content {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.gateway-panel--service .gateway-panel__content {
  margin-left: auto;
  text-align: right;
}

.gateway-panel__kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-panel h2 {
  font-size: clamp(48px, 7vw, 98px);
}

.gateway-panel__lead {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.5;
}

.gateway-panel__meta {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.gateway-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.gateway-panel--service .gateway-panel__actions {
  justify-content: flex-end;
}

.gateway-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.gateway-btn:hover {
  transform: translateY(-2px);
}

.gateway-btn--accent {
  background: var(--red);
}

.gateway-btn--accent:hover {
  background: var(--red-deep);
}

.gateway-btn--light {
  color: var(--ink);
  background: var(--white);
}

.scroll-top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: var(--white);
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
  background: var(--red-deep);
  transform: translateY(-2px) scale(1);
}

.scroll-top-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.gateway-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-text-link::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.gateway-footer-band {
  background: linear-gradient(180deg, rgba(14, 17, 14, 0.96), rgba(14, 17, 14, 1));
}

.gateway-footer-band__grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0 24px;
}

.gateway-footer-band__grid article {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gateway-footer-band__grid span {
  display: block;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gateway-footer-band__grid strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .gateway-header {
    position: relative;
    left: auto;
    transform: none;
    grid-template-columns: 1fr 1fr;
    width: min(100% - 24px, 1280px);
    padding-top: 16px;
  }

  .gateway-header,
  .gateway-panel__actions,
  .gateway-footer-band__grid {
    gap: 12px;
  }

  .gateway-brand--service {
    text-align: right;
  }

  .gateway-hero {
    padding-top: 16px;
  }

  .logo-boost .gateway-header {
    min-height: auto;
    padding-top: 16px;
  }

  .logo-boost .gateway-hero {
    padding-top: 16px;
  }

  .logo-boost .gateway-brand__badge {
    width: 98px;
    height: 98px;
  }

  .logo-boost .gateway-brand__badge img {
    width: 68%;
    height: 68%;
  }

  .logo-boost .gateway-brand--service .gateway-brand__badge img {
    width: 60%;
    height: 60%;
  }

  .gateway-intro {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(100% - 24px, 760px);
    margin: 30px auto 24px;
    pointer-events: auto;
  }

  .gateway-split {
    grid-template-columns: 1fr;
  }

  .gateway-split::after {
    display: none;
  }

  .gateway-panel,
  .gateway-panel--service {
    min-height: 50svh;
    margin-left: 0;
    clip-path: none;
  }

  .gateway-panel--service .gateway-panel__content {
    margin-left: 0;
    text-align: left;
  }

  .gateway-panel--service .gateway-panel__actions {
    justify-content: flex-start;
  }

  .gateway-footer-band__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .gateway-intro {
    top: 150px;
  }

  .gateway-intro h1 {
    font-size: clamp(42px, 6vw, 72px);
  }

  .gateway-intro > p {
    max-width: 560px;
    margin-top: 10px;
    font-size: 15px;
  }

  .gateway-panel h2 {
    font-size: clamp(46px, 5.7vw, 72px);
  }

  .gateway-panel__lead {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .gateway-header {
    justify-content: stretch;
  }

  .gateway-brand {
    gap: 10px;
  }

  .gateway-brand__badge {
    width: 78px;
    height: 78px;
  }

  .logo-boost .gateway-header {
    padding-top: 6px;
  }

  .logo-boost .gateway-hero {
    padding-top: 22px;
  }

  .logo-boost .gateway-brand__badge {
    width: 84px;
    height: 84px;
  }

  .logo-boost .gateway-brand__badge img {
    width: 72%;
    height: 72%;
  }

  .logo-boost .gateway-brand--service .gateway-brand__badge img {
    width: 60%;
    height: 60%;
  }

  .gateway-brand__text {
    align-self: flex-start;
    width: 86px;
    margin-top: 18px;
    gap: 2px;
  }

  .gateway-brand--service .gateway-brand__text {
    justify-items: end;
  }

  .gateway-brand__text strong {
    display: grid;
    grid-template-rows: repeat(2, 14px);
    justify-items: start;
    gap: 5px;
    width: 100%;
    height: 33px;
    font-size: 19px;
    line-height: 19px;
    letter-spacing: 0;
  }

  .gateway-brand--service .gateway-brand__text strong {
    justify-items: end;
  }

  .gateway-brand__text strong span {
    display: block;
    height: 14px;
    line-height: 19px;
    transform: scaleY(0.72);
    transform-origin: top center;
  }

  .gateway-brand__text small {
    display: grid;
    grid-template-rows: repeat(3, 9px);
    gap: 1px;
    width: 100%;
    height: 29px;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.04;
    letter-spacing: 0;
  }

  .gateway-brand__text small span {
    display: block;
  }

  .gateway-brand__text small span + span::before {
    content: "";
  }

  .gateway-intro h1 {
    font-size: clamp(38px, 15vw, 68px);
  }

  .gateway-intro p:last-child,
  .gateway-panel__lead {
    font-size: 16px;
  }

  .gateway-event-link {
    margin-top: 14px;
    max-width: min(360px, 100%);
  }

  .gateway-event-link img {
    width: min(190px, 58vw);
  }

  .gateway-panel {
    min-height: 44svh;
    padding: 26px 18px;
  }

  .gateway-panel h2 {
    font-size: clamp(42px, 15vw, 72px);
  }

  .gateway-panel__actions {
    display: grid;
    justify-content: stretch;
  }

  .scroll-top-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .scroll-top-button svg {
    width: 22px;
    height: 22px;
  }
}
