/* ── Design tokens ── */
:root {
  --bg: #030508;
  --bg-elevated: #0a0d14;
  --bg-card: rgba(8, 12, 22, 0.58);
  --bg-card-hover: rgba(12, 18, 32, 0.72);
  --border: rgba(140, 170, 220, 0.14);
  --border-strong: rgba(140, 170, 220, 0.32);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --gold: #4a8fd4;
  --gold-light: #a8c8f5;
  --gold-dim: #2a5a94;
  --text: #f2f4f8;
  --text-muted: #b0bccf;
  --text-dim: #7a8aa3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 12px 48px rgba(40, 80, 140, 0.15);
  --glass-blur: blur(24px);
  --font-display: "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  letter-spacing: 0.01em;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow { max-width: 760px; }

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.ambient__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 42% center;
  transform: translate3d(calc(var(--parx, 0) * -14px), calc(var(--pary, 0) * -10px), 0);
  transition: transform 0.55s var(--ease);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 12, 0.72) 0%, rgba(3, 5, 12, 0.42) 36%, rgba(3, 5, 12, 0.14) 58%, transparent 80%),
    linear-gradient(180deg, rgba(3, 5, 12, 0.18) 0%, transparent 44%, rgba(3, 5, 12, 0.38) 100%);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 8, 16, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}

.header.is-scrolled {
  background: rgba(4, 8, 16, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(140, 170, 220, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand__icon {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}

.header .brand__mark {
  gap: 0;
}

.header .brand__icon-scene {
  display: block;
  width: fit-content;
  animation: brand-logo-float 5s ease-in-out infinite;
  will-change: transform;
}

.header .brand__icon {
  height: 90px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(190, 228, 255, 0.95))
    drop-shadow(0 0 28px rgba(120, 200, 255, 0.92))
    drop-shadow(0 0 48px rgba(74, 159, 232, 0.68))
    drop-shadow(0 0 72px rgba(59, 125, 221, 0.42))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.38));
  transition: filter 0.35s var(--ease);
}

.header .brand:hover .brand__icon-scene {
  animation-play-state: paused;
}

.header .brand:hover .brand__icon {
  filter:
    drop-shadow(0 0 14px rgba(190, 228, 255, 1))
    drop-shadow(0 0 32px rgba(120, 200, 255, 0.96))
    drop-shadow(0 0 56px rgba(74, 159, 232, 0.78))
    drop-shadow(0 0 80px rgba(59, 125, 221, 0.52))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.38));
}

.header .brand__legal {
  min-width: 148px;
  max-width: 188px;
  margin-top: -6px;
}

.header .brand__legal-text {
  font-size: 0.9375rem;
}

.header .brand__letter {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity;
  animation-duration: 0.88s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

.header .brand__letter--from-left {
  transform: translateX(-20px);
  animation-name: brand-letter-in-left;
}

.header .brand__letter--from-right {
  transform: translateX(20px);
  animation-name: brand-letter-in-right;
}

.header .brand__letter--space {
  min-width: 0.28em;
}

.header .brand__legal-line {
  margin-top: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  animation: brand-legal-line-in 0.95s var(--ease) forwards;
  animation-delay: 1.15s;
}

@keyframes brand-letter-in-left {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes brand-letter-in-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes brand-legal-line-in {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes brand-logo-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3px, -5px); }
  50% { transform: translate(-2px, 3px); }
  75% { transform: translate(2px, -3px); }
}

.brand__legal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 118px;
  max-width: 152px;
}

.brand__legal-text {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.brand__legal-dark {
  color: #e8edf5;
  letter-spacing: 0.02em;
  margin-right: -0.06em;
}

.brand__legal-blue {
  color: #4a9fe8;
  letter-spacing: 0.02em;
}

.brand__legal-line {
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(160, 175, 195, 0.12) 0%,
    rgba(210, 220, 235, 0.75) 38%,
    rgba(74, 159, 232, 1) 100%
  );
  box-shadow: 0 0 10px rgba(74, 143, 212, 0.45);
}

.brand--footer .brand__icon {
  height: 52px;
}

.brand--footer .brand__legal {
  min-width: 108px;
  max-width: 140px;
}

.brand--footer .brand__legal-text {
  font-size: 0.625rem;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a,
.nav__link {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  transition:
    color 0.3s var(--ease),
    transform 0.35s var(--ease),
    text-shadow 0.35s var(--ease);
}

.nav a:hover,
.nav__link:hover {
  z-index: 1;
  color: var(--gold-light);
  transform: translate3d(0, -4px, 0) scale(1.1);
  text-shadow: 0 4px 14px rgba(74, 143, 212, 0.35);
}

.nav a.is-active,
.nav__link.is-active {
  color: var(--gold-light);
  transform: translate3d(0, -2px, 0) scale(1.05);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__prefs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch__btn {
  min-width: 36px;
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn.is-active {
  background: rgba(59, 125, 221, 0.22);
  color: var(--gold-light);
}

.mobile-nav__prefs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav__prefs .header__prefs {
  width: 100%;
  justify-content: space-between;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--gold-light);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(4, 8, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a,
.mobile-nav .nav__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a.is-active,
.mobile-nav .nav__link.is-active {
  color: var(--gold-light);
}

.mobile-nav > .btn {
  margin-top: 12px;
  text-align: center;
  width: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(180deg, #5a9de8 0%, #3d7cc4 100%);
  color: #fff;
  border: 1px solid rgba(160, 200, 255, 0.25);
  box-shadow: 0 4px 16px rgba(30, 70, 130, 0.3);
  font-weight: 600;
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(30, 70, 130, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  border-color: rgba(107, 163, 245, 0.4);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.btn--outline:hover {
  background: rgba(59, 125, 221, 0.12);
  border-color: var(--gold-light);
}

.btn--ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
}

.btn--ghost:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

/* ── Typography helpers ── */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.55) 20%, rgba(4, 8, 16, 0.55) 80%, transparent);
}

.section--contact {
  padding-bottom: 120px;
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Hero ── */
.page--home {
  padding-top: 0;
  min-height: auto;
}

.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 60px;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 12px 0 0;
  --parx: 0;
  --pary: 0;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: -32px 12px -36px -28px;
  z-index: -1;
  pointer-events: none;
  border-radius: 22px;
  background: linear-gradient(
    112deg,
    rgba(2, 5, 12, 0.82) 0%,
    rgba(2, 5, 12, 0.58) 42%,
    rgba(2, 5, 12, 0.22) 72%,
    transparent 100%
  );
}

.hero__content::after {
  content: "";
  position: absolute;
  top: -8%;
  left: -6%;
  width: 72%;
  height: 72%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 28% 32%,
    rgba(59, 125, 221, 0.22) 0%,
    rgba(59, 125, 221, 0.08) 38%,
    transparent 72%
  );
}

.hero__content .eyebrow {
  position: relative;
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 14px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(120, 190, 255, 0.42);
  border-radius: 999px;
  letter-spacing: 0.12em;
  background-image:
    linear-gradient(
      100deg,
      #8ec8ff 0%,
      #d8ecff 22%,
      #ffffff 48%,
      #a8d8ff 72%,
      #8ec8ff 100%
    ),
    linear-gradient(rgba(59, 125, 221, 0.16), rgba(59, 125, 221, 0.16));
  background-size: 240% 100%, 100% 100%;
  background-clip: text, border-box;
  -webkit-background-clip: text, border-box;
  -webkit-text-fill-color: transparent;
  color: transparent;
  box-shadow:
    0 0 18px rgba(59, 125, 221, 0.28),
    inset 0 0 12px rgba(120, 190, 255, 0.1);
  filter: drop-shadow(0 0 10px rgba(110, 179, 255, 0.35));
  animation:
    eyebrow-text-shine 4.2s ease-in-out infinite,
    eyebrow-glow 3.6s ease-in-out infinite;
}

.hero__content .eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.04) 62%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: eyebrow-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.hero__content .eyebrow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(74, 143, 212, 0.2) 0%,
    rgba(168, 212, 255, 0.95) 50%,
    rgba(74, 143, 212, 0.2) 100%
  );
  background-size: 220% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: eyebrow-border-shine 4.2s linear infinite;
  pointer-events: none;
}

@keyframes eyebrow-text-shine {
  0%, 100% { background-position: 0% center, 0 0; }
  50% { background-position: 100% center, 0 0; }
}

@keyframes eyebrow-sweep {
  0%, 18% { transform: translateX(-120%); opacity: 0; }
  28% { opacity: 1; }
  52% { transform: translateX(120%); opacity: 1; }
  62%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes eyebrow-border-shine {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

@keyframes eyebrow-glow {
  0%, 100% {
    border-color: rgba(120, 190, 255, 0.38);
    box-shadow:
      0 0 14px rgba(59, 125, 221, 0.22),
      inset 0 0 10px rgba(120, 190, 255, 0.08);
    filter: drop-shadow(0 0 8px rgba(110, 179, 255, 0.28));
  }
  50% {
    border-color: rgba(168, 212, 255, 0.72);
    box-shadow:
      0 0 26px rgba(110, 179, 255, 0.48),
      0 0 42px rgba(59, 125, 221, 0.18),
      inset 0 0 16px rgba(168, 212, 255, 0.18);
    filter: drop-shadow(0 0 16px rgba(140, 200, 255, 0.55));
  }
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.75vw, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
  transform: translate3d(calc(var(--parx) * 10px), calc(var(--pary) * 6px), 0);
  transition: transform 0.55s var(--ease);
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 45%, #d8e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 28px rgba(74, 143, 212, 0.18));
}

.hero__title em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #4a9fe8 0%,
    #8ec8ff 28%,
    #ffffff 50%,
    #7ebfff 72%,
    #4a9fe8 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-accent-shine 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(110, 179, 255, 0.55));
}

@keyframes hero-accent-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 500px;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(245, 248, 255, 0.96);
  line-height: 1.92;
  letter-spacing: 0.01em;
  transform: translate3d(calc(var(--parx) * 6px), calc(var(--pary) * 4px), 0);
  transition: transform 0.55s var(--ease);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(74, 143, 212, 0.12);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(184, 204, 232, 0.9);
  letter-spacing: 0.02em;
  transform: translate3d(calc(var(--parx) * 14px), calc(var(--pary) * 8px), 0);
  transition: transform 0.55s var(--ease);
}

.hero__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7ebfff;
  box-shadow: 0 0 8px rgba(110, 179, 255, 0.75);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  transform: translate3d(calc(var(--parx) * 14px), calc(var(--pary) * 8px), 0);
  transition: transform 0.55s var(--ease);
}

/* ── 3D tilt scene ── */
.tilt-scene {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.tilt-3d {
  --tilt-x: 0;
  --tilt-y: 0;
  --tilt-glare: 0.35;
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  animation: tracker-float 8s ease-in-out infinite;
  box-shadow:
    calc(var(--tilt-x) * -22px) calc(var(--tilt-y) * -22px + 28px) 64px rgba(0, 0, 0, 0.55),
    calc(var(--tilt-x) * -10px) calc(var(--tilt-y) * -10px + 12px) 28px rgba(59, 125, 221, 0.18),
    inset 0 1px 0 var(--glass-highlight);
}

.tilt-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, calc(0.04 + var(--tilt-glare) * 0.12)) 100%
  );
  transform: translateZ(1px);
  opacity: 0.85;
}

.tilt-3d.is-tilting {
  animation: none;
}

@keyframes tracker-float {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-7deg); }
  50% { transform: translateY(-12px) rotateX(-3deg) rotateY(5deg); }
}

/* ── Tracker card ── */
.tracker {
  padding: 28px;
  background: rgba(8, 12, 22, 0.42);
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.tracker--neon {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.24),
    0 0 20px rgba(59, 125, 221, 0.14),
    inset 0 1px 0 rgba(168, 200, 245, 0.1);
}

.tracker--neon .tracker__badge {
  animation: badge-neon-pulse 3s ease-in-out infinite;
}

@keyframes badge-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(59, 125, 221, 0.45), inset 0 0 8px rgba(120, 190, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(120, 190, 255, 0.75), inset 0 0 12px rgba(168, 212, 255, 0.25);
  }
}

.tracker.tilt-3d.is-tilting {
  animation: none;
}

.tracker > * {
  position: relative;
  z-index: 1;
}

.tracker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tracker__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8e0ff;
  padding: 4px 10px;
  border: 1px solid rgba(120, 190, 255, 0.5);
  border-radius: 999px;
  background: rgba(59, 125, 221, 0.18);
  box-shadow:
    0 0 12px rgba(59, 125, 221, 0.45),
    inset 0 0 8px rgba(120, 190, 255, 0.15);
  text-shadow: 0 0 10px rgba(168, 200, 245, 0.8);
}

.tracker__brand {
  flex-shrink: 0;
}

.tracker__brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tracker__brand-icon {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

.tracker__brand-name {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 118px;
}

.tracker__brand-name .brand__legal-text {
  font-size: 0.75rem;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
}

.tracker__brand-line {
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(160, 175, 195, 0.15) 0%,
    rgba(210, 220, 235, 0.7) 32%,
    rgba(140, 200, 255, 1) 68%,
    rgba(74, 159, 232, 1) 100%
  );
  background-size: 200% 100%;
  box-shadow:
    0 0 10px rgba(74, 143, 212, 0.55),
    0 0 22px rgba(110, 179, 255, 0.28);
  animation: tracker-brand-line-glow 3.5s ease-in-out infinite;
}

@keyframes tracker-brand-line-glow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow:
      0 0 8px rgba(74, 143, 212, 0.45),
      0 0 18px rgba(110, 179, 255, 0.22);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 0 14px rgba(120, 190, 255, 0.85),
      0 0 30px rgba(74, 143, 212, 0.5);
  }
}

.tracker__route {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e8f0ff;
  text-shadow: 0 0 14px rgba(74, 143, 212, 0.45);
}

.tracker__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tracker__step {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.tracker__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}

.tracker__step.is-done .tracker__label,
.tracker__step.is-active .tracker__label {
  color: #e8f0ff;
  text-shadow: 0 0 10px rgba(120, 190, 255, 0.5);
}

.tracker__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(59, 125, 221, 0.08);
  overflow: hidden;
}

.tracker__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7cc4 0%, #6eb3ff 45%, #a8d4ff 100%);
  box-shadow:
    0 0 10px rgba(110, 179, 255, 0.8),
    0 0 20px rgba(59, 125, 221, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tracker__bar span.is-filled {
  animation: bar-neon-glow 2.5s ease-in-out infinite;
}

@keyframes bar-neon-glow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(110, 179, 255, 0.7),
      0 0 20px rgba(59, 125, 221, 0.4);
  }
  50% {
    box-shadow:
      0 0 16px rgba(168, 212, 255, 1),
      0 0 32px rgba(59, 125, 221, 0.65);
  }
}

.tracker__step.is-active .tracker__bar span {
  background: linear-gradient(90deg, #3d7cc4 0%, #7ebfff 50%, #c8e4ff 100%);
}

.tracker__pct {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.tracker__step.is-done .tracker__pct,
.tracker__step.is-active .tracker__pct {
  color: #a8d4ff;
  text-shadow: 0 0 10px rgba(110, 179, 255, 0.7);
}

.tracker__note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 190, 255, 0.35);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #c8e0ff;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 8px rgba(168, 200, 245, 0.85),
    0 0 18px rgba(120, 190, 255, 0.55),
    0 0 32px rgba(59, 125, 221, 0.35);
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.stat {
  position: relative;
  isolation: isolate;
  padding: 32px 24px;
  background: rgba(8, 12, 22, 0.42);
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.24),
    0 0 20px rgba(59, 125, 221, 0.14),
    inset 0 1px 0 rgba(168, 200, 245, 0.1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  transform-style: preserve-3d;
}

.stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(120, 190, 255, 0.15) 0%,
    rgba(168, 212, 255, 0.45) 50%,
    rgba(120, 190, 255, 0.15) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
}

.stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(59, 125, 221, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 190, 255, 0.4);
}

.stat:hover::before {
  opacity: 0.75;
}

.stat__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(90, 157, 232, 0.28) 0%, rgba(61, 124, 196, 0.16) 100%);
  border: 1px solid rgba(160, 200, 255, 0.22);
  color: #a8d4ff;
  box-shadow: 0 4px 16px rgba(30, 70, 130, 0.28);
}

.stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(59, 125, 221, 0.2);
}

.stat span:last-child {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Cards ── */
.cards {
  display: grid;
  gap: 20px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 28px;
  background: rgba(8, 12, 22, 0.38);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: border-color 0.25s var(--ease);
}

.card:hover {
  background: rgba(8, 12, 22, 0.38);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transform: none;
}

.card__icon {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.7;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Timeline ── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--border), transparent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
}

.timeline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.timeline__item h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.timeline__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px;
  border-left: 2px solid var(--gold-dim);
  background: linear-gradient(90deg, rgba(59, 125, 221, 0.06), transparent);
}

.inline-link {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.inline-link:hover { color: #fff; }

/* ── Contract viewer ── */
.contract {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contract__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.contract__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contract__file {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.contract__pages {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(59, 125, 221, 0.08);
}

.contract__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contract__viewer {
  position: relative;
  background: #1a2233;
}

.contract__viewer iframe {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
  background: #fff;
}

.contract__fallback {
  margin: 0;
  padding: 14px 24px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contract__fallback a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Requisites ── */
.requisites {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.requisites h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
}

.requisites__list {
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

.requisites__list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.requisites__list dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}

.requisites__list dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.requisites__card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-gold);
}

.requisites__card h3 {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.price {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.price small {
  font-size: 1.5rem;
  font-weight: 600;
}

.requisites__card > p {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── FAQ ── */
.faq {
  display: grid;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq__item[open] {
  border-color: var(--border-strong);
}

.faq__item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact ── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact__intro h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.contact__intro > p {
  margin: 0 0 32px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact__channels {
  display: grid;
  gap: 12px;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color 0.25s, background 0.25s;
}

.channel:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.channel__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.channel__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── Form ── */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 var(--glass-highlight);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form label span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form input,
.form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--text-dim);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.15);
}

.form textarea { resize: vertical; min-height: 80px; }

.form__full { grid-column: 1 / -1; }
.form__submit { grid-column: 1 / -1; }
.form__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.form.is-success .form__submit {
  background: linear-gradient(135deg, #6ee7a0, #34d399);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  border-top: 1px solid var(--glass-border);
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  margin: 16px 0 0;
  max-width: 280px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer__nav h4,
.footer__legal h4 {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--gold-light); }

.footer__legal p {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer__bottom p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__disclaimer {
  max-width: 420px;
  text-align: right;
}

/* ── To top ── */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(165deg, rgba(28, 48, 78, 0.95) 0%, rgba(8, 14, 26, 0.92) 100%);
  border: 1px solid rgba(168, 200, 245, 0.35);
  color: var(--gold-light);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(59, 125, 221, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s,
    transform 0.35s var(--ease),
    background 0.25s,
    box-shadow 0.25s,
    color 0.25s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.to-top__icon {
  display: block;
  transition: transform 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  color: #fff;
  background: linear-gradient(165deg, rgba(59, 125, 221, 0.55) 0%, rgba(28, 58, 98, 0.85) 100%);
  border-color: rgba(168, 200, 245, 0.55);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 6px 24px rgba(59, 125, 221, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-3px) scale(1.04);
}

.to-top:hover .to-top__icon {
  transform: translateY(-2px);
}

.to-top:active {
  transform: translateY(0) scale(0.98);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .tracker { max-width: none; width: 100%; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .requisites { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 94px; }

  .nav, .header__actions .btn { display: none; }
  .header__actions .header__prefs { display: flex; }
  .header__actions .header__prefs .lang-switch__btn {
    min-width: 34px;
    padding: 5px 8px;
  }
  .burger { display: flex; }
  .header__actions .btn--primary { display: none; }
  .header__inner { gap: 12px; }
  .brand__icon { height: 48px; }
  .header .brand__icon { height: 68px; }
  .header .brand__legal { margin-top: -4px; min-width: 126px; max-width: 158px; }
  .header .brand__legal-text { font-size: 0.78125rem; }
  .brand__legal-text { font-size: 0.5625rem; }
  .brand__legal { min-width: 100px; max-width: 128px; }
  .brand__legal-line { margin-top: 3px; }
  .contract__toolbar { flex-direction: column; align-items: stretch; }
  .contract__actions { flex-direction: column; }
  .contract__actions .btn { width: 100%; }
  .contract__viewer iframe { height: min(60vh, 520px); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .cards--3 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .requisites__list div { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .form input,
  .form textarea { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__disclaimer { text-align: left; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 48px; }
  .hero__content::before {
    inset: -16px -8px -20px -12px;
    border-radius: 16px;
  }
  .hero__lead { max-width: none; font-size: 0.875rem; line-height: 1.75; }
  .ambient__image { object-position: 38% center; }
  .ambient::after {
    background:
      linear-gradient(90deg, rgba(3, 5, 12, 0.78) 0%, rgba(3, 5, 12, 0.5) 44%, rgba(3, 5, 12, 0.22) 70%, transparent 90%),
      linear-gradient(180deg, rgba(3, 5, 12, 0.24) 0%, transparent 40%, rgba(3, 5, 12, 0.45) 100%);
  }
  .page-hero { padding: 32px 0 28px; margin-bottom: 32px; }
  .hub-card:hover {
    transform: translateY(-3px);
  }
  .stat:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  :root { --header-h: 90px; }

  body { font-size: 16px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.75rem;
  }
  .hero__meta .dot { display: none; }
  .hero__content .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.07em;
    padding: 5px 11px;
    max-width: 100%;
  }
  .tracker { padding: 20px; }
  .tracker__step { grid-template-columns: 64px 1fr 32px; gap: 8px; }
  .tracker__brand-icon { height: 44px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 16px; }
  .card { padding: 22px; }
  .hub-card { padding: 22px; min-height: 0; }
  .form { padding: 20px 16px; }
  .to-top { width: 44px; height: 44px; }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tracker__bar span { transition: none; }
  main { opacity: 1; transform: none; }
  .ambient__image { transform: none; }
  .tracker--neon .tracker__badge,
  .tracker__bar span.is-filled,
  .header .brand__icon-scene,
  .header .brand__letter,
  .header .brand__legal-line,
  .tracker__brand-line,
  .hero__title em,
  .hero__content .eyebrow,
  .hero__content .eyebrow::before,
  .hero__content .eyebrow::after,
  .hub-card::before,
  .stat::before { animation: none; }
  .header .brand__letter {
    opacity: 1;
    transform: none;
  }
  .header .brand__legal-line {
    opacity: 1;
    transform: none;
  }
  .hero__title,
  .hero__lead,
  .hero__meta,
  .hero__cta,
  .nav a,
  .nav__link { transform: none; transition: color 0.25s; }
}

/* ── Multi-page layout ── */
main {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.45s var(--ease);
}

main.is-ready {
  transform: translateY(0);
}

.page {
  padding-top: calc(var(--header-h) + 32px);
  min-height: calc(100vh - var(--header-h));
}

.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.page-hero .back-link:hover { color: var(--gold-light); }

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.page-hero .section__lead {
  margin-top: 14px;
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
}

.hub {
  padding-bottom: 80px;
  position: relative;
}

.hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.72) 12%);
  pointer-events: none;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.hub-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  min-height: 200px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.32);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(59, 125, 221, 0.14),
    inset 0 0 28px rgba(59, 125, 221, 0.07),
    inset 0 1px 0 rgba(168, 200, 245, 0.12);
  transform-style: preserve-3d;
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hub-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(120, 190, 255, 0.15) 0%,
    rgba(168, 212, 255, 0.65) 25%,
    rgba(59, 125, 221, 0.2) 50%,
    rgba(168, 212, 255, 0.65) 75%,
    rgba(120, 190, 255, 0.15) 100%
  );
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hub-card-neon-border 4.5s linear infinite;
  pointer-events: none;
  opacity: 0.9;
}

.hub-card > * {
  position: relative;
  z-index: 1;
}

@keyframes hub-card-neon-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hub-card:hover {
  border-color: rgba(120, 190, 255, 0.55);
  transform: translateY(-6px) rotateX(6deg) rotateY(-4deg);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(59, 125, 221, 0.32),
    0 0 52px rgba(120, 190, 255, 0.14),
    inset 0 0 36px rgba(59, 125, 221, 0.1),
    inset 0 1px 0 rgba(168, 200, 245, 0.2);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.8;
}

.hub-card h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.hub-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hub-card__arrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-light);
}

@media (max-width: 1024px) {
  .hub__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
  .mobile-nav,
  .mobile-nav.is-open {
    display: none !important;
  }

  .burger {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hub__grid { grid-template-columns: 1fr; }
  .page { padding-top: calc(var(--header-h) + 16px); }
}

/* ── Portfolio: videos, photos, reviews ── */
.portfolio-section {
  margin-bottom: 72px;
}

.portfolio-section__head {
  margin-bottom: 28px;
}

.portfolio-section__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.portfolio-section__head p {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.portfolio-section__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Carousel ── */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.carousel__viewport {
  overflow: hidden;
  min-width: 0;
}

.carousel__track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.carousel__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(120, 190, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 12, 24, 0.85);
  color: #c8e0ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(59, 125, 221, 0.2);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.carousel__btn:hover:not(:disabled) {
  border-color: rgba(120, 190, 255, 0.6);
  background: rgba(59, 125, 221, 0.22);
  box-shadow: 0 0 20px rgba(59, 125, 221, 0.35);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.media-track .media-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
}

.carousel--compact .media-card__frame {
  aspect-ratio: 16 / 10;
}

.carousel--compact .media-card__body {
  padding: 10px 12px 14px;
}

.carousel--compact .media-card__body h3 {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.photo-track .photo-card {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  aspect-ratio: 3 / 4;
}

.photo-track .photo-card img {
  object-fit: cover;
}

.carousel-frame {
  position: relative;
  isolation: isolate;
  padding: 20px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.32);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(59, 125, 221, 0.16),
    inset 0 0 32px rgba(59, 125, 221, 0.08),
    inset 0 1px 0 rgba(168, 200, 245, 0.12);
}

.carousel-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(120, 190, 255, 0.15) 0%,
    rgba(168, 212, 255, 0.65) 25%,
    rgba(59, 125, 221, 0.2) 50%,
    rgba(168, 212, 255, 0.65) 75%,
    rgba(120, 190, 255, 0.15) 100%
  );
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hub-card-neon-border 4.5s linear infinite;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.carousel-frame > .carousel {
  position: relative;
  z-index: 1;
}

#reviews .carousel-frame {
  padding: 28px 24px;
}

#reviews .carousel__btn {
  width: 44px;
  height: 44px;
}

body[data-page="portfolio"] .page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.875rem);
}

.photo-track .photo-card {
  border: 2px solid rgba(120, 190, 255, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.media-card {
  position: relative;
  isolation: isolate;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.32);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(59, 125, 221, 0.14),
    inset 0 0 28px rgba(59, 125, 221, 0.07);
}

.media-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(120, 190, 255, 0.15) 0%,
    rgba(168, 212, 255, 0.65) 25%,
    rgba(59, 125, 221, 0.2) 50%,
    rgba(168, 212, 255, 0.65) 75%,
    rgba(120, 190, 255, 0.15) 100%
  );
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hub-card-neon-border 4.5s linear infinite;
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}

.media-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020408;
}

.media-card__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020408;
}

.media-card__body {
  position: relative;
  z-index: 1;
  padding: 18px 20px 22px;
}

.media-card__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.media-card__body p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-card {
  position: relative;
  padding: 0;
  border: 1px solid rgba(120, 190, 255, 0.22);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(6, 12, 24, 0.6);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.photo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 190, 255, 0.45);
  box-shadow: 0 8px 24px rgba(59, 125, 221, 0.2);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.review-track .review-card {
  flex: 0 0 calc((100% - 56px) / 5);
  min-width: 0;
  align-self: stretch;
}

.carousel--reviews .review-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
}

.carousel--reviews .review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, rgba(59, 125, 221, 0.14) 0%, rgba(59, 125, 221, 0.04) 100%);
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}

.carousel--reviews .review-card__author {
  display: flex;
  align-items: center;
  min-width: 0;
}

.carousel--reviews .review-card__who {
  min-width: 0;
}

.carousel--reviews .review-card__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel--reviews .review-card__meta {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--text-dim);
}

.carousel--reviews .review-card__rating {
  flex-shrink: 0;
  display: flex;
  gap: 1px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(2, 5, 12, 0.45);
  border: 1px solid rgba(120, 190, 255, 0.18);
}

.carousel--reviews .review-card__car-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.carousel--reviews .review-card__car-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #b8dcff;
  background: linear-gradient(145deg, rgba(59, 125, 221, 0.28), rgba(12, 24, 48, 0.85));
  border: 1px solid rgba(140, 190, 255, 0.32);
  box-shadow:
    0 0 10px rgba(59, 125, 221, 0.18),
    inset 0 1px 0 rgba(200, 230, 255, 0.12);
}

.carousel--reviews .review-card__car-svg {
  display: block;
  width: 20px;
  height: auto;
  shape-rendering: geometricPrecision;
}

.carousel--reviews .review-card__car {
  display: block;
  min-width: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: #c8e4ff;
  border: none;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel--reviews .review-card__divider {
  height: 1px;
  margin: 0 16px;
  background: linear-gradient(90deg, transparent, rgba(120, 190, 255, 0.35), transparent);
}

.carousel--reviews .review-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 16px 16px;
}

.carousel--reviews .review-card__text {
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding-left: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.carousel--reviews .review-card__text::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(168, 212, 255, 0.45);
}

.review-card.is-expanded .review-card__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.review-card__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: 999px;
  background: rgba(59, 125, 221, 0.12);
  color: #b8d8ff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.review-card__more:hover {
  border-color: rgba(120, 190, 255, 0.5);
  background: rgba(59, 125, 221, 0.22);
  color: #e8f4ff;
}

.review-card__more[hidden] {
  display: none;
}

.review-card__star {
  font-size: 0.75rem;
  line-height: 1;
  color: rgba(120, 190, 255, 0.2);
}

.review-card__star.is-filled {
  color: #f5c842;
  text-shadow: 0 0 6px rgba(245, 200, 66, 0.4);
}

.review-card {
  position: relative;
  isolation: isolate;
  padding: 22px 24px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: var(--radius);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.26),
    0 0 16px rgba(59, 125, 221, 0.1),
    inset 0 0 24px rgba(59, 125, 221, 0.06);
}

.review-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(120, 190, 255, 0.12) 0%,
    rgba(168, 212, 255, 0.5) 25%,
    rgba(59, 125, 221, 0.15) 50%,
    rgba(168, 212, 255, 0.5) 75%,
    rgba(120, 190, 255, 0.12) 100%
  );
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hub-card-neon-border 4.5s linear infinite;
  pointer-events: none;
  opacity: 0.75;
}

.review-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.review-card__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.review-card__car {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a8d4ff;
  border: 1px solid rgba(120, 190, 255, 0.35);
  border-radius: 999px;
  background: rgba(59, 125, 221, 0.12);
  white-space: nowrap;
}

.review-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.portfolio-cta {
  margin-bottom: 80px;
  padding: 40px 32px;
  text-align: center;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: var(--radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(59, 125, 221, 0.12);
}

.portfolio-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
}

.portfolio-cta p {
  margin: 0 auto 24px;
  max-width: 520px;
  color: var(--text-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  padding: 56px 20px 28px;
  background: rgba(2, 5, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox__controls {
  display: contents;
}

.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__viewport { grid-column: 2; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__counter { grid-column: 1 / -1; grid-row: 2; }

.lightbox[hidden] {
  display: none !important;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__viewport {
  width: min(920px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(6, 12, 24, 0.85);
  box-shadow:
    0 0 32px rgba(59, 125, 221, 0.28),
    inset 0 0 24px rgba(59, 125, 221, 0.1);
}

.lightbox__track {
  display: flex;
  transition: transform 0.4s var(--ease);
}

.lightbox__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  min-height: min(72vh, 640px);
}

.lightbox__slide img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 600px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(120, 190, 255, 0.4);
  border-radius: 50%;
  background: rgba(6, 12, 24, 0.88);
  color: #c8e0ff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(59, 125, 221, 0.25);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lightbox__nav:hover:not(:disabled) {
  border-color: rgba(120, 190, 255, 0.65);
  background: rgba(59, 125, 221, 0.25);
  box-shadow: 0 0 24px rgba(59, 125, 221, 0.4);
}

.lightbox__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__counter {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a8d4ff;
  text-shadow: 0 0 12px rgba(120, 190, 255, 0.45);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(120, 190, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 12, 24, 0.8);
  color: #eef5ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .review-track .review-card { flex: 0 0 calc((100% - 42px) / 4); }
}

@media (max-width: 1024px) {
  .photo-track .photo-card { flex: 0 0 calc((100% - 28px) / 3); }
  .media-track .media-card { flex: 0 0 calc((100% - 14px) / 2); }
  .review-track .review-card { flex: 0 0 calc((100% - 28px) / 3); }
  .carousel--reviews .review-card { min-height: 260px; }
  .carousel--reviews .review-card__text { -webkit-line-clamp: 4; }
}

@media (max-width: 768px) {
  .media-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .portfolio-section { margin-bottom: 56px; }
  .review-card__head { flex-direction: column; }
  .review-card__car { align-self: flex-start; }
  .carousel { gap: 8px; }
  .carousel__btn { width: 36px; height: 36px; font-size: 1.25rem; }
  .carousel-frame { padding: 14px; }
  .media-track .media-card { flex: 0 0 calc(100% - 48px); }
  .photo-track .photo-card { flex: 0 0 calc(100% - 56px); }
  .review-track .review-card { flex: 0 0 calc(100% - 48px); }
  .carousel--reviews .review-card { min-height: 0; }
  .carousel--reviews .review-card__top {
    flex-direction: column;
    align-items: stretch;
  }
  .carousel--reviews .review-card__rating { align-self: flex-start; }
  .lightbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 12px 20px;
    gap: 12px;
  }
  .lightbox__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    order: 2;
    width: 100%;
  }
  .lightbox__viewport { width: 100%; order: 1; }
  .lightbox__counter { order: 3; }
  .lightbox__slide { min-height: 50vh; padding: 10px; }
  .lightbox__slide img { max-height: 48vh; }
}

@media (prefers-reduced-motion: reduce) {
  .media-card::before,
  .review-card::before,
  .carousel-frame::before { animation: none; }
  .carousel__track,
  .lightbox__track { transition: none; }
}

@media (hover: none), (pointer: coarse) {
  .hero__title,
  .hero__lead,
  .hero__meta,
  .hero__cta,
  .ambient__image {
    transform: none !important;
  }
}

