/* Палитра повторяет светлую тему приложения (client/constants/theme.ts). */
:root {
  --primary: #9E1838;
  --primary-dark: #681126;
  --primary-soft: #FCE8ED;
  --wine: #4B0C1C;
  --coral: #D94B62;
  --ink: #22181B;
  --muted: #8F7D82;
  --background: #FCF7F8;
  --surface: #FFFFFF;
  --field: #F2E9EB;
  --line: #F0E2E6;
  --gold: #D99B3D;
  --green: #36B978;
  --gutter: 24px;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(75, 12, 28, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { width: min(1140px, 100% - var(--gutter) * 2); margin: 0 auto; }

/* Шапка */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 247, 248, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { height: auto; }
/* Надпись — тот же контур, что в шапке десктопной версии; цвет берёт от ссылки. */
.brand__wordmark { display: block; flex: none; }
footer .brand { font-size: 17px; }

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--primary); }

/* Переключатель языка. На узком экране меню прячется, а он остаётся —
   поэтому свой отступ слева он выставляет сам. */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 22px;
  padding: 3px;
  border-radius: 999px;
  background: var(--field);
  font-size: 13px;
  font-weight: 700;
}

.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.lang a:hover { color: var(--primary); }

/* Кнопка разделов. На широком экране её нет: разделы и так стоят строкой. */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--field);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* Открытое меню превращает три полоски в крестик: кнопка та же, значит и
   говорить она должна о том же — теперь о закрытии. */
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lang a.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(75, 12, 28, .12); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 23px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  /* Надпись на кнопке всегда в одну строку: «Get the app» на узком экране
     иначе разваливается надвое. */
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.button.ghost:hover { background: var(--primary-soft); }

.store-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
  fill: currentColor;
}

/* Первый экран */

/* Снимок на фоне тёмный и контрастный, поэтому текст первого экрана белый,
   а поверх фотографии лежит винная вуаль — иначе заголовок теряется в огнях. */
.hero {
  --hero-parallax-offset: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 108px 0 96px;
  color: #fff;
  background: #23060f;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: url("assets/bg.55a973f847f7.webp");
  background-position: center calc(34% + var(--hero-parallax-offset));
  background-size: cover;
  background-repeat: no-repeat;
  will-change: background-position;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(96deg, rgb(35 6 15 / 86%) 0%, rgb(116 39 63 / 65%) 38%, rgb(52 9 22 / 0%) 60%, rgb(75 12 28 / 0%) 100%);
}

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .hero::before { background-position: center 34%; will-change: auto; }
}

/* Появление контентных блоков включается только после запуска JavaScript,
   поэтому при его блокировке страница остаётся полностью видимой. */
.reveal-ready .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero h1 em { color: #F7B9C6; }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero .button { background: #fff; color: var(--primary-dark); }
.hero .button:hover { background: var(--primary-soft); }
/* «Войти» на первом экране — главным, фирменным цветом. */
.hero .button.login { background: var(--primary); color: #fff; }
.hero .button.login:hover { background: var(--primary-dark); }
.hero .button.login .login-icon { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
.hero .button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.hero .button.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero .hero-stats { border-top-color: rgba(255, 255, 255, .22); }
.hero .hero-stats span { color: rgba(255, 255, 255, .68); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 900;
}

h1 em { font-style: normal; color: var(--primary); }

.lead { margin: 20px 0 0; font-size: 19px; color: var(--muted); max-width: 30em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* Телефон */

.phone {
  width: 300px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, var(--wine), var(--primary-dark));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 90px rgba(12, 2, 6, .55);
}

.screen { border-radius: 34px; background: var(--surface); overflow: hidden; padding: 18px 16px 16px; }

.screen-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }

.card {
  position: relative;
  margin-top: 14px;
  border-radius: var(--radius);
  background: linear-gradient(200deg, #F6D9E0, #E7B9C6 55%, #D9A0B0);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(43, 8, 18, .78), transparent);
}

.card-body { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; color: #fff; }
.card-body b { font-size: 19px; font-weight: 800; }
.card-body p { margin: 4px 0 0; font-size: 13px; opacity: .85; }

.badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.badge.gold { left: auto; right: 14px; background: var(--gold); color: #fff; }

.deck-actions { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }

.deck-actions i {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
  color: var(--muted);
  background: var(--surface);
}

.deck-actions i.love { background: var(--primary); color: #fff; border-color: var(--primary); }

.tabbar {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.tabbar span.on { color: var(--primary); font-weight: 700; }

/* Секции */

section { padding: 88px 0; }

/* Секции через одну лежат на белом — так развороты отделяются от плиток. */
.tinted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tinted .tile { background: var(--background); box-shadow: none; }

.section-head { max-width: 44rem; margin-bottom: 44px; }

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 900;
}

.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

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

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.tile .ico {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.verified-icon, .robot-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.tile h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

/* Развороты */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse .split-visual { order: -1; }

.split h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; font-weight: 900; }

.list { margin: 20px 0 0; padding: 0; list-style: none; }

.list li { position: relative; padding-left: 30px; margin-top: 12px; color: var(--muted); }

.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--primary);
}

.list li b { color: var(--ink); font-weight: 700; }

.app-mock {
  position: relative;
  width: min(310px, 100%);
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid var(--wine);
  border-radius: 42px;
  background: var(--background);
  box-shadow: 0 28px 70px rgba(75, 12, 28, .2);
  font-size: 14px;
}

.app-status { height: 36px; padding: 10px 20px 0; display: flex; justify-content: space-between; color: var(--ink); font-size: 9px; }
.app-status span { letter-spacing: .02em; }

/* Эфир повторяет фактическую структуру экрана: охват, два фильтра,
   публикации-пузырьки, плавающая кнопка и нижняя навигация. */
.feed-controls { padding-bottom: 10px; background: var(--background); }
.scope-row { display: flex; gap: 5px; padding: 8px 10px; }
.scope { flex: 1; height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 800; }
.scope.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.feed-filters { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px; padding: 0 10px; }
.filter-card { min-width: 0; height: 54px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border-radius: 16px; background: var(--surface); }
.filter-card i { color: var(--primary); font-style: normal; }
.filter-card span { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.filter-card small { color: var(--muted); font-size: 9px; }
.filter-card b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.filter-card em { color: var(--muted); font-style: normal; }
.filter-card.category b { flex: 1; font-size: 11px; }
.feed-list { padding: 7px 0 78px; }
.app-post { display: flex; align-items: flex-start; gap: 7px; padding: 6px 10px; }
.app-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--coral), var(--primary)); color: #fff; font-size: 13px; font-weight: 900; }
.app-avatar.couple { background: linear-gradient(145deg, var(--wine), var(--coral)); font-size: 10px; }
.app-post-main { min-width: 0; max-width: calc(100% - 46px); }
.app-post-bubble { padding: 11px 13px; border-radius: 17px 17px 17px 5px; background: var(--surface); }
.app-post-bubble b { display: block; color: var(--primary-dark); font-size: 12px; line-height: 1.25; }
.app-post-bubble small { display: block; color: var(--muted); font-size: 9px; }
.app-post-bubble p { margin: 5px 0 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.post-actions { display: flex; gap: 14px; padding: 4px 4px 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.feed-fab { position: absolute; right: 15px; bottom: 62px; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: var(--shadow); font-size: 25px; }
.app-tabs { position: absolute; inset: auto 0 0; height: 55px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.app-tabs span { display: flex; flex-direction: column; align-items: center; font-size: 15px; line-height: 1; }
.app-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 32px; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs .active svg { fill: currentColor; stroke: none; }
.app-tabs small { margin-top: 5px; font-size: 8px; }
.app-tabs .active { color: var(--primary); font-weight: 800; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Диалог собран как экран чата приложения: отдельная шапка, сообщения
   с асимметричными углами и закреплённый снизу композер. */
.chat-mock { display: flex; flex-direction: column; background: var(--background); }
.chat-head { height: 62px; padding: 7px 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .back { width: 22px; color: var(--primary); font-size: 32px; font-weight: 300; line-height: 1; }
.chat-head .app-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.chat-person { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.chat-person b { color: var(--ink); font-size: 14px; line-height: 1.3; }
.chat-person small { color: var(--green); font-size: 10px; }
.chat-person i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--green); }
.chat-more { color: var(--muted); letter-spacing: 1px; }
.chat-body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; background: linear-gradient(rgba(252,247,248,.93), rgba(252,247,248,.93)), radial-gradient(circle at 20% 20%, var(--primary-soft) 0 2px, transparent 3px); background-size: auto, 28px 28px; }
.chat-day { align-self: center; padding: 4px 9px; border-radius: 10px; background: var(--field); color: var(--muted); font-size: 9px; font-weight: 700; }
.message { max-width: 78%; padding: 9px 12px 6px; border-radius: 17px 17px 17px 5px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(75,12,28,.05); font-size: 12px; line-height: 1.45; }
.message.outgoing { align-self: flex-end; border-radius: 17px 17px 5px 17px; background: var(--primary); color: #fff; }
.message small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; text-align: right; }
.message.outgoing small { color: rgba(255,255,255,.7); }
.message.audio { min-width: 205px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 7px; }
.message.audio small { grid-column: 2; margin-top: -7px; text-align: left; }
.play { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 10px; }
.wave { color: var(--primary); letter-spacing: 2px; }
.composer { min-height: 62px; padding: 8px 10px 11px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); background: var(--surface); }
.attach, .mic { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); font-size: 22px; }
.mic { background: var(--primary); color: #fff; font-size: 11px; }
.mic svg { width: 19px; height: 19px; fill: currentColor; }
.mic .mic-line { fill: none; stroke: currentColor; stroke-width: 32px; stroke-linecap: round; stroke-linejoin: round; }
.composer-field { height: 42px; padding: 0 14px; display: flex; flex: 1; align-items: center; border-radius: 22px; background: var(--field); color: var(--muted); font-size: 12px; }

/* VIP */

.vip {
  border-radius: 30px;
  padding: 46px;
  color: #fff;
  background: linear-gradient(140deg, var(--wine), var(--primary) 70%, var(--coral));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.vip h2 { margin: 12px 0 0; font-size: 34px; letter-spacing: -.02em; font-weight: 900; }
.vip p { margin: 14px 0 0; opacity: .82; }
.vip .kicker { color: var(--gold); }
.vip .list li { color: rgba(255, 255, 255, .82); }
.vip .list li b { color: #fff; }
.vip .list li::before { background: var(--gold); }
.vip .button { background: #fff; color: var(--primary-dark); }
.vip .button:hover { background: var(--primary-soft); }

/* Призыв и подвал */

.cta { text-align: center; padding-bottom: 96px; }
.cta h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 900; }
.cta p { color: var(--muted); font-size: 19px; margin: 16px auto 0; max-width: 34em; }
.cta .actions { justify-content: center; }

/* Плашка загрузки: знак, название и версия под ним — одна кнопка, а не две
   строки рядом. Номер версии набран мельче: он подсказка, а не действие. */
.download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 14px 26px 14px 22px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  text-align: left;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.download:hover { background: var(--primary-dark); transform: translateY(-1px); }
.download b { display: block; font-size: 17px; font-weight: 800; }
.download small { display: block; margin-top: 2px; font-size: 13px; opacity: .82; }
.download-icon { width: 30px; height: 30px; flex: 0 0 auto; display: block; fill: currentColor; }


footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr); gap: 18px 48px; align-items: start; }
footer .brand { grid-column: 1; }
footer .wrap > span { grid-column: 1; }
footer nav { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--primary); }

/* Публичные версии правовых документов */
.legal-page { background: var(--background); }
.legal-page .top { position: sticky; }
.legal-page .top .lang { margin-left: auto; }
.legal-main { padding: 72px 0 88px; }
.legal-document { max-width: 880px; }
.legal-document > h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
}
.legal-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.legal-lead {
  margin: 28px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}
.legal-document section { padding: 34px 0 0; }
.legal-document section h2 { margin: 0 0 14px; color: var(--ink); font-size: 24px; }
.legal-document section p,
.legal-document section li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-document section p { margin: 10px 0 0; }
.legal-document section ul { margin: 14px 0 0; padding-left: 24px; }
.legal-document section li + li { margin-top: 8px; }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; color: var(--ink); }
.legal-table th,
.legal-table td { padding: 14px 16px; border: 1px solid #eadde1; text-align: left; }
.legal-table th { background: var(--primary-soft); font-weight: 800; }
.legal-table td:last-child,
.legal-table th:last-child { text-align: right; }

/* Уведомление о cookie */
.cookie-notice {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -16px 44px rgba(75, 12, 28, .12);
  backdrop-filter: blur(14px);
}

.cookie-notice[hidden] { display: none; }

.cookie-notice__inner {
  min-height: 104px;
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cookie-notice__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  fill: var(--primary);
}

.cookie-notice__inner p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-notice__inner p a { color: var(--primary); font-weight: 700; }
.cookie-notice__button { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-weight: 800; }

@media (max-width: 900px) {
  /* На узком экране снимок увеличивается и спорит с текстом — сдвигаем кадр
     к городу и добавляем вуали. */
  .hero {
    padding: 60px 0;
    background: #23060f;
  }
  .hero::before {
    background-position: -643px calc(34% + var(--hero-parallax-offset));
  }
  .hero::after {
    background: linear-gradient(96deg, rgba(35, 6, 15, .94) 0%, rgb(116 39 63 / 88%) 38%, rgb(73 28 39 / 75%) 60%, rgb(71 27 40) 100%);
  }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .vip { grid-template-columns: 1fr; padding: 32px; }
  /* Разделы уходят под кнопку: строкой они здесь уже не помещаются, а место
     нужно переходу к приложению и языку. Список выпадает из-под шапки на всю
     её ширину — как ящик, а не как всплывающее окошко. */
  .burger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(75, 12, 28, .12);
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 13px 24px; font-size: 16px; font-weight: 700; color: var(--ink); }
  /* Разделы ушли из потока, и правый край шапки набирают язык и кнопка разделов. */
  .lang { margin-left: auto; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  /* В шапке рядом стоят знак, переключатель языка и кнопка — на узком экране
     они ужимаются, иначе кнопке не хватает места. */
  .top .wrap { gap: 10px; }
  .top .button { height: 38px; padding: 0 14px; font-size: 13px; }
  .lang { padding: 2px; font-size: 12px; }
  .lang a { padding: 4px 8px; }
  .burger { width: 36px; height: 36px; border-radius: 11px; }

  .grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  footer .wrap { display: grid; grid-template-columns: 1fr; align-items: start; }
  footer .brand, footer .wrap > span, footer nav { grid-column: 1; grid-row: auto; }
  footer nav { grid-template-columns: 1fr 1fr; width: 100%; }
  .cookie-notice__inner { padding-top: 16px; padding-bottom: 16px; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; }
  .cookie-notice__icon { width: 34px; height: 34px; flex-basis: 34px; }
  .cookie-notice__inner p { width: calc(100% - 48px); flex: 1 1 calc(100% - 48px); }
  .cookie-notice__button { width: 100%; }
}

@media (max-width: 420px) {
  footer nav { grid-template-columns: 1fr; }
}

/* Выбор устройства: равноправные способы войти в один аккаунт. */
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; text-align: left; }
.access-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.access-card__tag { color: var(--primary); font-size: 14px; font-weight: 800; }
.access-card h3 { font-size: 23px; line-height: 1.25; margin: 18px 0 0; }
.cta .access-card p { margin: 16px 0 24px; max-width: none; font-size: 16px; }
.access-card .button { margin-top: auto; text-align: center; max-width: 100%; }
.access-card small { margin-top: 12px; color: var(--muted); }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } .access-card { padding: 24px; } }
.about { scroll-margin-top: 68px; }
.about__text { max-width: 48rem; margin-bottom: 0; }
.about__text p + p { margin-top: 20px; }
