/* === Design tokens === */
:root {
  --bg: #070707;
  --bg-elevated: #111111;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4efe7;
  --text-muted: #d9d3ca;
  --text-soft: #aaa39a;
  --accent: #f18b2b;
  --accent-dim: #e77721;
  --accent-hover: #ff9a3d;
  --accent-glow: rgba(231, 119, 33, 0.28);
  --accent-subtle: rgba(231, 119, 33, 0.12);
  --about-warm-top: #111111;
  --about-warm-mid: #1a1a1a;
  --about-warm-deep: #070707;
  --about-warm-text-panel: rgba(255, 255, 255, 0.08);
  --about-warm-text-border: rgba(255, 255, 255, 0.12);
  --font-sans: "Inter", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 26px;
  --radius: 14px;
  --radius-lg: 22px;
  --space: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.65s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 100% - var(--space) * 2);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - var(--space) * 2);
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 9, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--accent);
}

.logo__muted {
  color: var(--text-muted);
  font-weight: 300;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

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

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(10, 10, 9, 0.96);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease, visibility 0.35s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, #d4ad6e 0%, #9a7544 100%);
  color: #0a0908;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 12px 40px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 16px 48px rgba(201, 160, 98, 0.25);
  color: #0a0908;
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* === Hero === */
.hero {
  padding: calc(var(--header-h) + clamp(3rem, 12vw, 6rem)) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201, 160, 98, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 901px) {
  .hero__grid {
    align-items: stretch;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 0.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* Hero photo: вечернее рабочее место, растворение в фон без «рамки» */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(320px, 52vh, 520px);
  margin-right: clamp(-2rem, -4vw, 0rem);
}

.hero__visual-bloom {
  position: absolute;
  z-index: 0;
  width: 120%;
  height: 90%;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 55% 45% at 62% 48%,
    rgba(201, 160, 98, 0.22) 0%,
    rgba(154, 117, 68, 0.08) 35%,
    transparent 70%
  );
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.85;
}

.hero__visual-depth {
  position: absolute;
  z-index: 1;
  inset: 8% 5% 12% 0;
  background: radial-gradient(ellipse 100% 80% at 72% 45%, transparent 0%, rgba(10, 10, 9, 0.45) 72%, var(--bg) 100%);
  pointer-events: none;
}

.hero__figure {
  position: relative;
  z-index: 2;
  margin: 0;
  height: 100%;
  min-height: clamp(320px, 52vh, 520px);
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 70% 50%,
    #000 0%,
    #000 52%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 88% at 70% 50%,
    #000 0%,
    #000 52%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero__photo {
  display: block;
  width: 135%;
  max-width: none;
  height: 100%;
  min-height: clamp(320px, 52vh, 520px);
  object-fit: cover;
  /* Сдвиг кадра: убираем левую зону с чужим текстом на референсе, фокус на столе и свете */
  object-position: 68% 48%;
  transform: scale(1.02);
  filter: saturate(0.92) contrast(1.04) brightness(0.97);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__visual.is-visible .hero__photo {
    animation: hero-photo-breathe 14s ease-in-out infinite;
  }
}

@keyframes hero-photo-breathe {
  0%,
  100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.04) translate3d(-0.35%, 0.25%, 0);
  }
}

.hero__photo-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hero__photo-shade--vignette {
  background: radial-gradient(
    ellipse 75% 70% at 68% 46%,
    transparent 0%,
    transparent 42%,
    rgba(10, 10, 9, 0.35) 78%,
    var(--bg) 100%
  );
}

.hero__photo-shade--edges {
  background:
    linear-gradient(to right, var(--bg) 0%, transparent min(18%, 4.5rem)),
    linear-gradient(to top, var(--bg) 0%, transparent 22%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 18%),
    linear-gradient(to left, var(--bg) 0%, transparent 12%);
}

/* Дополнительное затемнение средней левой зоны — на случай остатка графики на исходнике */
.hero__photo-shade--badge {
  background: radial-gradient(
    ellipse 28% 32% at 28% 44%,
    rgba(10, 10, 9, 0.78) 0%,
    rgba(10, 10, 9, 0.32) 45%,
    transparent 72%
  );
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: clamp(240px, 38vh, 400px);
    margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  }

  .hero__figure {
    min-height: clamp(240px, 38vh, 400px);
    -webkit-mask-image: radial-gradient(
      ellipse 110% 95% at 50% 42%,
      #000 0%,
      #000 48%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 110% 95% at 50% 42%,
      #000 0%,
      #000 48%,
      transparent 100%
    );
  }

  .hero__photo {
    width: 125%;
    min-height: clamp(240px, 38vh, 400px);
    object-position: 62% 46%;
  }

  .hero__visual-bloom {
    width: 140%;
    height: 100%;
    top: 48%;
    opacity: 0.7;
  }

  .hero__visual-depth {
    inset: 0;
    background: radial-gradient(ellipse 100% 85% at 50% 40%, transparent 0%, rgba(10, 10, 9, 0.5) 65%, var(--bg) 100%);
  }

  .hero__photo-shade--badge {
    background: radial-gradient(
      ellipse 40% 36% at 22% 42%,
      rgba(10, 10, 9, 0.82) 0%,
      rgba(10, 10, 9, 0.4) 50%,
      transparent 75%
    );
  }
}

/* === Sections === */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section--tight {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--dark {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section__title--left {
  text-align: left;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* === Platform fit (объединённый блок) === */
.section--platform-fit {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 160, 98, 0.1);
  border-bottom: 1px solid rgba(201, 160, 98, 0.08);
  background: linear-gradient(
    168deg,
    #2c2822 0%,
    var(--about-warm-top) 28%,
    var(--about-warm-mid) 62%,
    var(--about-warm-deep) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: clamp(2.5rem, 5.5vw, 3.5rem) 0;
}

.platform-fit__head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.platform-fit__head .section__title {
  margin: 0;
}

.platform-fit__main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.platform-fit__lead {
  margin: 0;
  font-size: clamp(0.9375rem, 2.1vw, 1.0625rem);
  line-height: 1.62;
  color: var(--text);
}

.platform-fit__audience-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.platform-fit__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.platform-fit__card {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 160, 98, 0.16);
  background: rgba(10, 10, 9, 0.32);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.platform-fit__card:hover {
  border-color: rgba(201, 160, 98, 0.28);
  background: rgba(12, 11, 10, 0.45);
}

.platform-fit__card-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.platform-fit__card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.platform-fit__card--wide {
  grid-column: 1 / -1;
}

.platform-fit__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.35rem;
  margin: clamp(1.15rem, 2.5vw, 1.5rem) 0 0;
  padding: 0.85rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(201, 160, 98, 0.12);
}

.platform-fit__perks li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.platform-fit__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

@media (max-width: 820px) {
  .platform-fit__main {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .platform-fit__cards {
    grid-template-columns: 1fr;
  }

  .platform-fit__card--wide {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .section--platform-fit {
    padding: 2.25rem 0 2.5rem;
  }

  .platform-fit__perks {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* === Directions (AnimatedList-style scroll) === */
.directions-scroll {
  position: relative;
  width: min(100%, 560px);
  margin: 0.5rem auto 0;
  padding-right: 2px;
}

/* Постоянный трек справа — виден сразу (macOS overlay scrollbar не скрывает подсказку) */
.directions-scroll.is-scrollable::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 3px;
  bottom: 4px;
  width: 11px;
  border-radius: 999px;
  background: rgba(201, 160, 98, 0.1);
  border: 1px solid rgba(201, 160, 98, 0.22);
  box-shadow: inset 0 0 12px rgba(201, 160, 98, 0.06);
  pointer-events: none;
  z-index: 1;
}

.directions-scroll__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(420px, 58vh);
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 0.35rem 1rem 0.35rem 0.15rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  /* Firefox: трек + ползунок всегда при переполнении */
  scrollbar-width: auto;
  scrollbar-color: #b89458 rgba(201, 160, 98, 0.14);
}

.directions-scroll__list::-webkit-scrollbar {
  width: 10px;
  -webkit-appearance: none;
}

.directions-scroll__list::-webkit-scrollbar-track {
  background: rgba(201, 160, 98, 0.12);
  border-radius: 999px;
  margin: 6px 0;
  border: 1px solid rgba(201, 160, 98, 0.16);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.directions-scroll__list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4ad6e 0%, #c9a062 45%, #9a7544 100%);
  border-radius: 999px;
  min-height: 56px;
  border: 2px solid rgba(17, 17, 15, 0.45);
  box-shadow:
    0 0 10px rgba(201, 160, 98, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.directions-scroll__list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0bc7a 0%, #d4ad6e 50%, #a8834f 100%);
}

.directions-scroll__list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #c9a062 0%, #8a6838 100%);
}

.directions-scroll__gradient {
  position: absolute;
  left: 0;
  right: 1rem;
  height: 52px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.directions-scroll__gradient--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-elevated) 0%, transparent 100%);
}

.directions-scroll__gradient--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-elevated) 0%, transparent 100%);
}

.directions-scroll.is-scrolled-top .directions-scroll__gradient--top {
  opacity: 0;
}

.directions-scroll.is-scrolled-mid .directions-scroll__gradient--top,
.directions-scroll.is-scrolled-mid .directions-scroll__gradient--bottom {
  opacity: 1;
}

.directions-scroll.is-scrolled-bottom .directions-scroll__gradient--bottom {
  opacity: 0;
}

.directions-scroll.is-scrollable.is-scrolled-top .directions-scroll__gradient--bottom {
  opacity: 1;
}

@media (max-width: 767px) {
  .directions-scroll {
    width: 100%;
    padding-right: 0;
  }

  .directions-scroll.is-scrollable::before {
    width: 10px;
    right: 2px;
    top: 3px;
    bottom: 3px;
  }

  .directions-scroll__list {
    max-height: min(380px, 52vh);
    padding-right: 0.85rem;
    scrollbar-width: auto;
    scrollbar-color: #b89458 rgba(201, 160, 98, 0.16);
  }

  .directions-scroll__list::-webkit-scrollbar {
    width: 9px;
  }

  .directions-scroll__list::-webkit-scrollbar-track {
    margin: 4px 0;
    background: rgba(201, 160, 98, 0.14);
  }

  .directions-scroll__list::-webkit-scrollbar-thumb {
    min-height: 48px;
    border-width: 1.5px;
  }

  .directions-scroll__gradient {
    right: 0.85rem;
    height: 44px;
  }
}

.direction-card {
  flex-shrink: 0;
  min-width: 0;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.4s var(--ease-out),
    opacity 0.45s var(--ease-out);
}

.direction-card--entrance {
  opacity: 0;
  transform: scale(0.86) translateY(28px);
  filter: blur(2px);
}

.direction-card--entrance.is-inview {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.direction-card--entrance.is-inview:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-strong);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(201, 160, 98, 0.08);
}

.direction-card--entrance:not(.is-inview):hover {
  border-color: var(--border);
  box-shadow: none;
}

.direction-card--wide {
  background: linear-gradient(135deg, rgba(201, 160, 98, 0.08), var(--bg-card));
  border-color: rgba(201, 160, 98, 0.14);
}

.direction-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.direction-card p {
  margin: 0;
  font-size: clamp(0.8125rem, 2.2vw, 0.875rem);
  line-height: 1.55;
  color: var(--text-muted);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Заголовок секции — мягкое появление (как в AnimatedList) */
#directions .section__head.reveal.is-visible .section__title {
  animation: directions-title-in 0.55s var(--ease-out) both;
}

@keyframes directions-title-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-card--entrance {
    opacity: 1;
    transform: none;
    filter: none;
    transition: border-color 0.2s ease;
  }

  .direction-card--entrance.is-inview:hover {
    transform: translateY(-2px);
  }

  .directions-scroll__list {
    scroll-behavior: auto;
  }

  #directions .section__head.reveal.is-visible .section__title {
    animation: none;
  }
}

/* === Support === */
.support__intro {
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.support__intro p {
  margin: 0;
  color: var(--text-muted);
}

.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .support__grid {
    grid-template-columns: 1fr;
  }
}

.support__card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s ease;
}

.support__card:hover {
  border-color: rgba(201, 160, 98, 0.25);
}

.support__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 1rem;
}

.support__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.support__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Tariffs === */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .tariffs:not(.tariffs--pending) {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

.tariffs.tariffs--pending {
  display: block;
  max-width: none;
  margin-inline: 0;
}

.tariff {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.tariff--featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(201, 160, 98, 0.1) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 0 1px rgba(201, 160, 98, 0.08);
}

.tariff__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.tariff__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.tariff__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 0;
}

.tariff__list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.tariff__list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.tariff__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* === Tariffs feed (горизонтальная лента) === */
.tariffs-feed__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  text-align: center;
}

.tariffs-feed {
  position: relative;
  margin: 0 calc(-1 * var(--space));
  padding: 0.35rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c9a062 rgba(201, 160, 98, 0.12);
}

.tariffs-feed.is-scrollable::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 10px;
  border-radius: 999px;
  background: rgba(201, 160, 98, 0.12);
  pointer-events: none;
  z-index: 0;
}

.tariffs-feed::-webkit-scrollbar {
  height: 10px;
  -webkit-appearance: none;
}

.tariffs-feed::-webkit-scrollbar-track {
  background: rgba(201, 160, 98, 0.12);
  border-radius: 999px;
  margin: 0 var(--space);
}

.tariffs-feed::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #d4ad6e 0%, #c9a062 45%, #9a7544 100%);
  border-radius: 999px;
  min-width: 56px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.tariffs-feed::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #e0bc7a 0%, #d4ad6e 50%, #a8834f 100%);
  background-clip: padding-box;
}

.tariffs-feed__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.5rem);
  width: max-content;
  min-height: min(72vh, 540px);
  padding: 0.5rem var(--space) 1.75rem;
}

.tariffs-feed__fade {
  position: absolute;
  top: 0;
  bottom: 1.75rem;
  width: clamp(2rem, 8vw, 4.5rem);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.tariffs-feed__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.tariffs-feed__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.tariffs-feed.is-scrolled-start .tariffs-feed__fade--left {
  opacity: 0;
}

.tariffs-feed.is-scrolled-end .tariffs-feed__fade--right {
  opacity: 0;
}

.tariff-slide {
  flex: 0 0 auto;
  width: clamp(260px, 78vw, 340px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  will-change: transform, opacity;
}

.tariff-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 520px);
  object-fit: contain;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 160, 98, 0.06);
}

.tariff-slide__buy {
  display: block;
  margin: 0.75rem 0 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.28s ease, opacity 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.tariff-slide__buy:hover {
  color: var(--accent-hover);
  opacity: 0.88;
}

.tariff-slide__buy:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 3px;
  border-radius: 2px;
}

.tariff-slide--entrance {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  filter: blur(2px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.tariff-slide--entrance.is-inview {
  opacity: 1;
  transform: translateY(var(--tariff-lift, 0px)) scale(1);
  filter: blur(0);
}

@media (min-width: 900px) {
  .tariff-slide {
    width: clamp(300px, 28vw, 360px);
  }
}

@media (max-width: 767px) {
  .tariffs-feed__hint {
    font-size: 0.75rem;
  }

  .tariffs-feed__track {
    min-height: min(68vh, 480px);
    gap: 0.85rem;
  }

  .tariff-slide {
    width: min(82vw, 300px);
  }

  .tariff-slide img {
    max-height: min(68vh, 460px);
  }

  /* Карточка 2: без blur/scale; поверх градиентов ленты — без тёмной полосы по центру */
  .tariff-slide[data-tariff="2"] {
    position: relative;
    z-index: 3;
    will-change: opacity;
  }

  .tariff-slide[data-tariff="2"].tariff-slide--entrance {
    filter: none;
    transform: translate3d(0, 24px, 0);
  }

  .tariff-slide[data-tariff="2"].tariff-slide--entrance.is-inview {
    transform: translate3d(0, 0, 0);
    filter: none;
    will-change: auto;
  }

  .tariff-slide[data-tariff="2"] img {
    position: relative;
    z-index: 1;
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  /* Когда 2-й тариф по центру — убираем наложение боковых затемнений */
  .tariffs-feed.tariffs-feed--card-2-centered .tariffs-feed__fade {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tariffs-feed {
    scroll-behavior: auto;
  }

  .tariff-slide--entrance {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .tariff-slide--entrance.is-inview {
    transform: none;
  }
}

/* Подзаголовок отзывов: мобильные <br> скрыты на desktop */
@media (min-width: 768px) {
  #reviews br.reviews-subtitle-br--m {
    display: none;
  }
}

/* Подсказка «свайп» — стиль как .tariffs-feed__hint, одна строка на всех ширинах */
#reviews .tariffs-feed__hint.reviews-swipe-hint {
  white-space: nowrap;
  max-width: min(100%, 22rem);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.35rem;
  box-sizing: border-box;
}

/* Отступ intro → карусель (только вертикальный gap) */
#reviews .section__head {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

#reviews .reviews-stack-scroller {
  margin-top: 0;
}

/* === Reviews: стопка карточек — смена по горизонтальному жесту на карточке (без scroll-trap) === */
.reviews-stack-scroller {
  --review-step: 52vh;
  height: auto;
  min-height: calc(82vh + 2rem);
  margin-top: 0.5rem;
}

.reviews-stack-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  height: calc(100vh - var(--header-h) - 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.reviews-stack {
  position: relative;
  width: min(400px, 92vw);
  height: min(62vh, 520px);
  margin: 0 auto;
  pointer-events: none;
}

.review-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  margin: 0;
  transform: translate(-50%, -50%)
    translateX(var(--stack-x, 0px))
    translateY(var(--stack-y, 0px))
    translateY(var(--dismiss-y, 0%))
    rotate(calc(var(--stack-rot, 0deg) + var(--dismiss-rot, 0deg)))
    scale(var(--card-scale, 1));
  opacity: var(--card-opacity, 1);
  z-index: var(--card-z, 1);
  will-change: transform, opacity;
  transform-origin: center center;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: grab;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.review-card:active {
  cursor: grabbing;
}

.review-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 520px);
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.28);
  background: #0f0f0e;
}

#reviews.reviews-stack--static .reviews-stack-scroller {
  height: auto;
}

#reviews.reviews-stack--static .reviews-stack-sticky {
  position: relative;
  top: auto;
  height: auto;
  overflow: visible;
  padding: 1rem 0 2rem;
}

#reviews.reviews-stack--static .reviews-stack {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(400px, 92vw);
}

#reviews.reviews-stack--static .review-card {
  position: relative;
  left: auto;
  top: auto;
  transform: none !important;
  opacity: 1 !important;
  width: 100%;
  pointer-events: auto;
  cursor: default;
  touch-action: auto;
  transition: none;
}

@media (max-width: 767px) {
  .reviews-stack-scroller {
    min-height: min(78vh, 620px);
  }

  .reviews-stack-sticky {
    top: calc(var(--header-h) + 0.75rem);
    height: calc(100vh - var(--header-h) - 1.75rem);
    pointer-events: none;
  }

  .reviews-stack {
    width: min(340px, 94vw);
    height: min(58vh, 460px);
    pointer-events: none;
    touch-action: auto;
  }

  .review-card {
    touch-action: pan-y;
  }

  .review-card img {
    max-height: min(58vh, 460px);
    border-radius: 12px;
  }

  /* Mobile: веер / layered stack + небольшой отступ до «Обо мне» */
  #reviews.section--dark {
    padding-bottom: clamp(1.75rem, 4.5vw, 2.5rem);
  }

  #curator.section {
    padding-top: clamp(1.75rem, 4.5vw, 2.5rem);
  }

  #reviews .reviews-stack-scroller {
    min-height: min(66vh, 520px);
    overflow: visible;
  }

  #reviews .reviews-stack-sticky {
    height: min(64vh, 500px);
    align-items: center;
    overflow: visible;
  }

  #reviews .reviews-stack {
    overflow: visible;
    width: min(300px, 86vw);
  }
}

/* === Curator === */
.curator {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 700px) {
  .curator {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .curator .section__title--left {
    text-align: center;
  }

  .curator__bio .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Фото куратора: оригинал без масок, фильтров и обработки */
.curator__photo {
  overflow: visible;
  position: relative;
  align-self: center;
}

.curator__photo-inner {
  position: relative;
  margin: 0;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.curator__photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 600px);
  object-fit: contain;
  object-position: 50% 12%;
}

@media (min-width: 701px) {
  .curator__photo {
    width: clamp(300px, 38vw, 420px);
  }

  .curator__photo-inner {
    width: 100%;
    transform: scale(1.06);
    transform-origin: center center;
  }

  .curator__photo-img {
    max-height: min(84vh, 640px);
  }
}

@media (max-width: 700px) {
  .curator__photo {
    width: min(360px, 92vw);
    margin-inline: auto;
  }

  .curator__photo-img {
    max-height: min(70vh, 520px);
    object-position: 50% 14%;
  }
}

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

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

.curator__bio .curator__body:last-of-type {
  margin-bottom: 1.75rem;
}

/* === FAQ === */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.faq__item:hover {
  border-color: var(--border-strong);
}

.faq__item[open] {
  border-color: rgba(201, 160, 98, 0.28);
}

.faq__item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq__item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

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

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Финальный CTA (связь) === */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: clamp(4.25rem, 10vw, 6.5rem) 0 clamp(4.5rem, 11vw, 6.75rem);
  border-top: 1px solid rgba(201, 160, 98, 0.08);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 160, 98, 0.09) 0%, transparent 55%),
    linear-gradient(180deg, #151311 0%, #12100e 45%, #0e0c0b 100%);
}

.cta-final__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-final__glow--1 {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  left: -12%;
  bottom: -25%;
  background: rgba(201, 160, 98, 0.07);
  opacity: 0.9;
}

.cta-final__glow--2 {
  width: min(55vw, 380px);
  height: min(55vw, 380px);
  right: -8%;
  top: -18%;
  background: rgba(154, 117, 68, 0.06);
  opacity: 0.85;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final__content {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.cta-final__eyebrow {
  margin: 0 0 0.75rem;
}

.cta-final__lead {
  margin: 0 0 1rem;
}

.cta-final__note {
  margin: 0 0 0.65rem;
}

.cta-final__list {
  margin: 0 auto 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 28rem;
}

.cta-final__list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}

.cta-final__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  opacity: 0.75;
}

.cta-final__outro {
  margin: 0 0 2.25rem;
}

.cta-final__channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 36rem;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .cta-final__channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

.cta-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.05rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(232, 230, 225, 0.92);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 160, 98, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.cta-channel:hover {
  color: var(--text);
  border-color: rgba(201, 160, 98, 0.28);
  background: rgba(201, 160, 98, 0.07);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12) inset,
    0 0 28px rgba(201, 160, 98, 0.08);
}

.cta-channel:active {
  transform: scale(0.98);
}

.cta-channel__icon {
  display: flex;
  flex-shrink: 0;
  opacity: 0.88;
}

.cta-channel:hover .cta-channel__icon {
  opacity: 1;
}

.cta-channel__label {
  letter-spacing: 0.01em;
}

/* === Footer === */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.footer__cta {
  font-size: 0.875rem;
  font-weight: 600;
}

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

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

.reveal--delay {
  transition-delay: 0.12s;
}

/* === Mobile-only: переносы подзаголовков (≤767px) === */
@media (max-width: 767px) {
  .hero__title-line {
    display: block;
  }

  .subtitle-m-br::before {
    content: "\A";
    white-space: pre;
  }

  #directions .section__subtitle--directions {
    font-size: clamp(0.9rem, 3.85vw, 0.98rem);
    line-height: 1.52;
    max-width: 21.5rem;
    margin-inline: auto;
    text-wrap: balance;
  }

  #tariffs .section__subtitle--tariffs {
    font-size: clamp(0.9rem, 3.85vw, 0.98rem);
    line-height: 1.5;
    max-width: 21.75rem;
    margin-inline: auto;
    text-wrap: balance;
  }

  #reviews .section__subtitle--reviews {
    font-size: clamp(0.9rem, 3.85vw, 0.98rem);
    line-height: 1.52;
    max-width: 21.75rem;
    margin-inline: auto;
    text-wrap: balance;
  }

  #reviews .tariffs-feed__hint.reviews-swipe-hint {
    font-size: clamp(0.5625rem, 3.15vw, 0.75rem);
  }
}
