/* ============ Triplanio — Landing styles ============ */
:root {
  --brand: #2167e2;
  --brand-600: #1b58c4;
  --brand-700: #174aa6;
  --brand-soft: rgba(33,103,226,.08);
  --brand-soft-12: rgba(33,103,226,.12);
  --brand-ink: #0b1f47;       /* deep navy for dark band */
  --brand-ink-2: #0a1a3a;
  --brand-glow: rgba(33,103,226,.10);
  --banner-photo: url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1600&q=70");

  --ink: #0F172A;             /* near-black body */
  --ink-2: #1f2a44;
  --muted: #5a657a;           /* secondary text */
  --muted-2: #8693a8;

  --line: #E5E7EB;            /* cool neutral border */
  --line-2: #eef0f4;
  --wash: #F7F8FA;            /* alt section */
  --white: #ffffff;

  --warm: #c9603a;            /* terracotta accent, used sparingly */
  --warm-soft: #f1d9c9;
  --warm-tint: rgba(201,96,58,.10);
  --success: #1f8a5b;

  --radius-card: 18px;
  --radius-btn: 12px;

  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px -8px rgba(15, 23, 42, .08);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .03), 0 10px 30px -12px rgba(15, 23, 42, .14);
  --shadow-pop:  0 2px 6px rgba(15, 23, 42, .06), 0 20px 60px -20px rgba(15, 23, 42, .22);

  --container: 1180px;
  --gutter: 24px;

  --sect-pad: 96px;
  --card-pad: 28px;
  --hero-top: 96px;
  --hero-bot: 80px;

  /* TRIP-165 — единая суперсемья Golos Text (никаких маркетинговых шрифтов) */
  --font-display: 'Golos Text', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Golos Text', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display-tracking: -0.022em;
  --h1-tracking: -0.035em;
}

/* ───────── Palettes ───────── */
:root[data-palette="sunset"] {
  --brand: #e2562d;
  --brand-600: #c5471f;
  --brand-700: #a23a18;
  --brand-soft: rgba(226,86,45,.10);
  --brand-soft-12: rgba(226,86,45,.14);
  --brand-ink: #3a1607;
  --brand-ink-2: #260e04;
  --brand-glow: rgba(226,86,45,.10);
  --warm: #d4a02a;
  --warm-soft: #f6e6b3;
  --warm-tint: rgba(212,160,42,.12);
  --banner-photo: url("https://images.unsplash.com/photo-1493558103817-58b2924bce98?auto=format&fit=crop&w=1600&q=70");
}
:root[data-palette="forest"] {
  --brand: #1f7a55;
  --brand-600: #176243;
  --brand-700: #114e35;
  --brand-soft: rgba(31,122,85,.10);
  --brand-soft-12: rgba(31,122,85,.14);
  --brand-ink: #0c2a1e;
  --brand-ink-2: #061a12;
  --brand-glow: rgba(31,122,85,.10);
  --warm: #d18b3a;
  --warm-soft: #f3decb;
  --warm-tint: rgba(209,139,58,.12);
  --banner-photo: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1600&q=70");
}
:root[data-palette="editorial"] {
  --brand: #1a1a1a;
  --brand-600: #0a0a0a;
  --brand-700: #000000;
  --brand-soft: rgba(15,15,15,.06);
  --brand-soft-12: rgba(15,15,15,.10);
  --brand-ink: #111111;
  --brand-ink-2: #050505;
  --brand-glow: rgba(15,15,15,.04);
  --warm: #c9603a;
  --warm-soft: #f1d9c9;
  --warm-tint: rgba(201,96,58,.12);
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --wash: #f4f3ef;
  --line: #e2e0d8;
  --line-2: #ece9df;
  --banner-photo: url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=1600&q=70");
}

/* ───────── Type personalities ───────── */
/* TRIP-165 — художественные шрифты (Instrument Serif / Space Grotesk) убраны:
   вся типографика — единая суперсемья Golos Text (наследуется из :root).
   Персоналии оставляют ТОЛЬКО тонкую настройку трекинга, семья везде каноническая. */
:root[data-type="editorial"] {
  --h1-tracking: -0.018em;
  --display-tracking: -0.012em;
}
:root[data-type="tech"] {
  --h1-tracking: -0.04em;
  --display-tracking: -0.028em;
}

/* ───────── Density ───────── */
:root[data-density="spacious"] {
  --sect-pad: 128px;
  --card-pad: 36px;
  --hero-top: 120px;
  --hero-bot: 112px;
  --container: 1220px;
}
:root[data-density="compact"] {
  --sect-pad: 64px;
  --card-pad: 22px;
  --hero-top: 124px;
  --hero-bot: 56px;
  --container: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--sect-pad) 0; position: relative; }
.section--wash { background: var(--wash); }
.section--tight { padding: calc(var(--sect-pad) * 0.75) 0; }

@media (max-width: 900px) {
  .section { padding: calc(var(--sect-pad) * 0.75) 0; }
  .section--tight { padding: calc(var(--sect-pad) * 0.6) 0; }
}

/* ---------- Type ---------- */
.eyebrow {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

/* TRIP-165 — заголовки лендинга на КАНОН-ТОКЕНЫ (--fs-*), без сырых px.
   TRIP-203 — адаптив несут сами fluid-токены (clamp), без ручных @media-ступенек. */
h1 {
  font-size: var(--fs-display);   /* 54 — крупнейший */
  line-height: 1.02;
  letter-spacing: var(--h1-tracking);
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h1);        /* 40 — секционные */
  line-height: 1.08;
  letter-spacing: var(--display-tracking);
}
h3 {
  font-size: var(--fs-h2);        /* 26 */
  line-height: 1.15;
  letter-spacing: var(--display-tracking);
}

/* TRIP-203: заголовки лендинга (h1→display, h2→h1, h3→h2) шринкуются сами —
   каноны --fs-display/--fs-h1/--fs-h2 теперь fluid (clamp). Ручные @media-ступеньки убраны. */

.lede {
  font-size: var(--fs-h3);        /* 19 — канон t-subheading */
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

.subtle { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 26px; font-size: var(--fs-h4); border-radius: 14px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px -6px color-mix(in oklab, var(--brand) 55%, transparent);
}
.btn--primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--wash); border-color: #d8dde6; }
.btn--white {
  background: #fff;
  color: var(--brand-ink);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }

.btn .chev { transition: transform .2s ease; }
.btn:hover .chev { transform: translateX(2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink-2);
  padding: 8px 4px;
  transition: color .15s ease;
}
.nav a:hover { color: var(--brand); }

.header__right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(15,23,42,.04);
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}
.header.is-scrolled .lang { background: rgba(15,23,42,.05); }
.lang button {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
}
.lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .header__right .lang { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  border-top: 1px solid var(--line);
}
.drawer.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.drawer ul { list-style: none; padding: 8px 0; margin: 0; }
.drawer li a {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-2);
}
.drawer__lang { padding: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--hero-top) 0 var(--hero-bot);
  overflow: hidden;
}
/* On desktop the hero fills the viewport and the content block is
   centred vertically, so the H1 + CTAs sit in the middle of the screen
   on first open. Mobile keeps the simpler stacked layout from the
   media query below. */
@media (min-width: 981px) {
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .hero > .container { width: 100%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 75% 28%, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 .break { display: block; }
.hero h1 .accent { color: var(--brand); }
.hero__lede {
  margin-top: 22px;
  font-size: var(--fs-h3);   /* 19 — канон t-subheading (TRIP-165) */
  color: var(--muted);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
  color: var(--muted);
  flex-wrap: wrap;
}
.hero__trust .dot { width: 3px; height: 3px; background: var(--muted-2); border-radius: 50%; display:inline-block; }

.hero__visual { position: relative; min-height: 540px; }

@media (max-width: 980px) {
  .hero { padding-top: 120px; padding-bottom: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 460px; }
}

/* Floating bits around the hero mockup */
.float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 12px 14px;
  animation: floaty 6s ease-in-out infinite;
}
.float--budget { top: 56px; left: -18px; }
.float--chat { bottom: 64px; right: -12px; animation-delay: -2s; }
.float--pins { top: 10px; right: 30px; animation-delay: -4s; padding: 8px 10px; }
@media (max-width: 600px) {
  .float--budget { left: 4px; }
  .float--chat { right: 4px; }
  .float--pins { right: 8px; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
}

/* ---------- App mockup (Timeline) ---------- */
.app-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: floatBig 7s ease-in-out infinite;
}
@keyframes floatBig {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-frame { animation: none; }
}
.app-frame__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(#fdfdfe, #f7f8fa);
}
.app-frame__bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-frame__bar .dot--r { background: #ff5f57; }
.app-frame__bar .dot--y { background: #febc2e; }
.app-frame__bar .dot--g { background: #28c840; }
.app-frame__bar .url {
  margin-left: 14px;
  font-size: var(--fs-meta);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 12px;
  flex: 1;
  max-width: 360px;
  text-align: center;
}
.app-frame__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}
.app-sidebar {
  border-right: 1px solid var(--line-2);
  padding: 18px 14px;
  background: #fbfcfd;
}
.app-sidebar__group {
  color: var(--muted-2);
  margin: 14px 6px 6px;
}
.app-sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.app-sidebar__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}
.app-sidebar__item .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.app-sidebar__item .swatch--lisbon { background: var(--brand); }
.app-sidebar__item .swatch--porto { background: var(--warm); }
.app-sidebar__item .swatch--bcn { background: #1f8a5b; }

.app-main { padding: 18px 22px; }
.app-main__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.app-main__subtitle { color: var(--muted); }
.app-tabs { display: inline-flex; padding: 3px; background: var(--wash); border-radius: 8px; gap: 2px; }
.app-tab { padding: 5px 10px; color: var(--muted); border-radius: 6px; }
.app-tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.08); }

.tl { position: relative; padding-left: 90px; }
.tl::before {
  content: "";
  position: absolute;
  left: 75px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.tl__day {
  position: relative;
  padding: 6px 0 14px;
}
.tl__day::before {
  content: attr(data-day);
  position: absolute;
  left: -90px;
  top: 8px;
  width: 64px;
  font-size: var(--fs-micro);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
  text-align: right;
}
.tl__day::after {
  content: "";
  position: absolute;
  left: -19px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.tl__day--accent::after { border-color: var(--warm); }
.tl__day--green::after { border-color: var(--success); }

.tl-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.tl-card .icon { color: var(--muted); flex: 0 0 auto; }
.tl-card .meta {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tl-card strong { font-weight: 600; color: var(--ink); }
.tl-card .tag { background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; }
.tl-card .tag--warm { background: var(--warm-tint); color: var(--warm); }
.tl-card .tag--green { background: rgba(31,138,91,.10); color: var(--success); }

@media (max-width: 720px) {
  .app-frame__body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .tl { padding-left: 78px; }
  .tl__day::before { left: -78px; width: 56px; }
  .tl::before { left: 63px; }
}

/* ---------- Problem section ---------- */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem__handoff {
  margin-top: 56px;
  text-align: center;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--fs-h3);   /* 19 — канон t-subheading (TRIP-165) */
  letter-spacing: -0.02em;
  font-weight: 500;
}
.collage {
  position: relative;
  min-height: 380px;
}
.collage__card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.collage__card--mail { top: 0; left: 4%; width: 70%; transform: rotate(-3deg); }
.collage__card--notes { bottom: 16%; right: 0; width: 60%; transform: rotate(2.5deg); background: #fffceb; border-color: #f1e6b8; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.collage__card--tabs { bottom: 0; left: 6%; width: 78%; transform: rotate(-1.5deg); padding: 0; }
.tabstrip { display: flex; gap: 4px; padding: 8px 10px; background: #f4f6f9; border-radius: 11px 11px 0 0; }
.tabstrip .t {
  flex: 1;
  height: 22px;
  background: #fff;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabstrip .t:nth-child(2) { background: var(--wash); }
.tabstrip .t:nth-child(3) { background: var(--wash); }
.tabsbody { padding: 14px; color: var(--muted); }

.mailrow { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.mailrow:last-child { border: 0; }
.mailrow .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--wash); flex: 0 0 auto; font-size: var(--fs-nano); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.mailrow .lines { flex: 1; min-width: 0; }
.mailrow .from { color: var(--ink); }
.mailrow .subj { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 880px) {
  .problem { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Feature grid ---------- */
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head--left { margin-left: 0; text-align: left; }
.section__head h2 { margin-top: 14px; }
.section__head p { margin-top: 14px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features .card:nth-child(4) { grid-column: 1 / span 1; }
.features .card:nth-child(5) { grid-column: 2 / span 2; }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features .card:nth-child(4) { grid-column: auto; }
  .features .card:nth-child(5) { grid-column: 1 / span 2; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .features .card:nth-child(5) { grid-column: auto; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #dbe1ec;
}
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card__icon--warm { background: var(--warm-tint); color: var(--warm); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Feature card visuals for the wide last card */
.card--wide { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; }
.card--wide .preview {
  background: linear-gradient(180deg, #f7f9fc, #eef2f9);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px;
}
@media (max-width: 700px) {
  .card--wide { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.step { position: relative; }
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.step h3 { margin: 20px 0 8px; }
.step p { color: var(--muted); margin: 0 0 16px; }
.step__thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
}

/* ---------- Deep dives ---------- */
.deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 64px 0;
}
.deep + .deep { border-top: 1px solid var(--line-2); }
.deep--reverse .deep__copy { order: 2; }
.deep__copy h3 { margin: 14px 0 16px; font-size: var(--fs-h2); }   /* 26 — канон t-heading (TRIP-165) */
.deep__copy p { color: var(--muted); font-size: var(--fs-h4); line-height: 1.6; }   /* 16 — канон t-label (TRIP-165) */
.deep__highlights {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.deep__highlights li {
  display: flex; gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}
.deep__highlights .check {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(31,138,91,.12);
  color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.deep__visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

@media (max-width: 980px) {
  .deep { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .deep--reverse .deep__copy { order: 0; }
}

/* Map visual */
.mapviz {
  position: relative;
  height: 320px;
  background:
    radial-gradient(circle at 30% 40%, var(--brand-soft), transparent 50%),
    radial-gradient(circle at 70% 60%, var(--warm-tint), transparent 50%),
    linear-gradient(#f6f8fc, #eef2f9);
}
.mapviz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.pin__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px color-mix(in oklab, var(--brand) 45%, transparent);
}
.pin__lbl {
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 10px;
  color: var(--ink);
  white-space: nowrap;
}

/* AI planner chat */
.chat {
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
}
.bubble--user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--ai {
  align-self: flex-start;
  background: #f4f6fa;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble--ai .typing {
  display: inline-flex; gap: 4px;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--muted-2);
  border-radius: 50%;
  animation: blink 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.chat .planresult {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-meta);
}
.chat .planresult .badge {
  background: var(--wash);
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 6px;
}

/* Concierge / phone */
.phone {
  width: 280px;
  max-width: 100%;
  margin: 18px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.phone__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--line-2);
}
.phone__head .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #5b8fff);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-meta); font-weight: 700;
}
.phone__head .sub { color: var(--muted); }
.phone__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.phone .bubble { max-width: 82%; }
.phone .bubble--ai { background: #eef2f9; }
.phone .bubble--user { background: var(--brand); color: #fff; }
.phone__time { text-align: center; color: var(--muted); margin: 4px 0; }

/* Budget chart */
.budget { padding: 22px; }
.budget__total {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 18px;
}
.budget__total .big {
  font-variant-numeric: tabular-nums;
}
.budget__total .delta {
  color: var(--success);
  background: rgba(31,138,91,.10);
  padding: 3px 8px;
  border-radius: 999px;
}
.budget__bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--wash);
  margin-bottom: 14px;
}
.budget__bar i { display: block; height: 100%; }
.budget__rows { display: grid; gap: 10px; }
.budget__row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; }
.budget__row .sw { width: 10px; height: 10px; border-radius: 50%; }
.budget__row .ccy { color: var(--muted); font-variant-numeric: tabular-nums; }
.budget__row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
}
.trust__item:last-child { border-right: 0; }
.trust__item .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
@media (max-width: 880px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust__item:nth-child(2n) { border-right: 0; }
  .trust__item:nth-child(n+3) { border-bottom: 0; }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.faq__intro h2 { margin-top: 14px; }
.faq__intro p { color: var(--muted); margin-top: 14px; }

.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  color: var(--ink);
}
.faq__q .plus {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq__item.is-open .faq__q .plus { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.faq__a-inner {
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}
.faq__item.is-open .faq__a { max-height: 360px; }

@media (max-width: 880px) {
  .faq { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Final CTA banner ---------- */
.banner {
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--brand-ink) 92%, transparent), color-mix(in oklab, var(--brand-700) 88%, transparent)),
    radial-gradient(80% 60% at 20% 0%, color-mix(in oklab, var(--brand) 35%, transparent), transparent 60%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--warm) 35%, transparent), transparent 65%),
    var(--banner-photo) center/cover;
  color: #fff;
  text-align: center;
  padding: 112px 24px;
  position: relative;
  overflow: hidden;
}
/* Финальный CTA-баннер — крупнейший заголовок вне hero → канон t-display,
   с адаптивной ступенькой на токенах (TRIP-165). */
.banner h2 { color: #fff; max-width: 18ch; margin: 0 auto; font-size: var(--fs-display); }   /* TRIP-203: fluid --fs-display шринкует сам */
.banner p { color: rgba(255,255,255,.78); margin: 18px auto 0; max-width: 36ch; }
.banner .btn--white { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  color: var(--muted);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 2fr .8fr;
  gap: 40px;
  align-items: start;
}
.footer__brand .tagline { margin-top: 12px; max-width: 220px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__col h4 {
  color: var(--muted-2);
  margin: 4px 0 14px;
}
/* The cookie-settings entry is a <button> (it acts, it does not navigate), but it
   sits among links and must look identical to them. */
.footer__col a,
.footer__col button {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-weight: 500;
}
.footer__col button {
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer;
}
.footer__col a:hover,
.footer__col button:hover { color: var(--brand); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-meta);
}
.footer__social { display: inline-flex; gap: 6px; }
.footer__social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--muted);
}
.footer__social a:hover { color: var(--ink); background: rgba(15,23,42,.06); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: column; gap: 14px; }
}
@media (max-width: 520px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Scroll-reveal ----------
   Content is visible by default. When JS adds .reveal--ready on the <html>
   element (only when document.timeline is actually running), we hide the
   .reveal items off-screen and animate them in on intersection. In contexts
   where the timeline is frozen (some embed iframes), we never add --ready,
   so nothing hides. */
@keyframes revealIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 1; transform: none; }
html.reveal--ready .reveal { opacity: 0; transform: translateY(12px); }
html.reveal--ready .reveal.is-in { animation: revealIn .6s ease both; }
@media (prefers-reduced-motion: reduce) {
  html.reveal--ready .reveal { opacity: 1; transform: none; }
  html.reveal--ready .reveal.is-in { animation: none; }
}

/* image placeholders */
.photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Section eyebrow tag (deep dives) */
.tag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tag-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* Mobile: keep CTA visible in header */
@media (max-width: 600px) {
  .header__inner { gap: 10px; }
  .btn--lg { padding: 12px 18px; font-size: var(--fs-base); }
  .header .btn { padding: 10px 14px; font-size: var(--fs-base); }
}

/* ---------- Language dropdown ---------- */
.langdd { position: relative; }
.langdd__btn {
  appearance: none;
  background: rgba(15,23,42,.04);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.langdd__btn:hover { background: rgba(15,23,42,.07); }
.langdd__btn[aria-expanded="true"] { background: #fff; border-color: var(--line); }
.langdd__btn .chev {
  transition: transform .18s ease;
  color: var(--muted);
}
.langdd__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.langdd__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.langdd--up .langdd__menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
}
.langdd.is-open .langdd__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.langdd__item {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.langdd__item:hover { background: var(--wash); }
.langdd__item .label { flex: 1; font-weight: 500; }
.langdd__item .code { color: var(--muted-2); }
.langdd__item[aria-checked="true"] {
  background: var(--brand-soft);
  color: var(--brand);
}
.langdd__item[aria-checked="true"] .code { color: var(--brand); }

.footer .langdd__btn {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.footer .langdd__btn:hover { background: #fff; }

/* Hide header language switcher on mobile (it stays available in the drawer). */
@media (max-width: 880px) {
  .header__lang { display: none !important; }
}
