/* Палитра повторяет светлую тему приложения (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; }
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); }
.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 {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  color: #fff;
  background:
    linear-gradient(96deg, rgba(35, 6, 15, .94) 0%, rgba(35, 6, 15, .84) 38%, rgba(52, 9, 22, .58) 66%, rgba(75, 12, 28, .42) 100%),
    url("assets/bg.63cc9d2dc87d.webp") center 34% / cover no-repeat;
}

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

.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.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; }

footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--primary); }

@media (max-width: 900px) {
  /* На узком экране снимок увеличивается и спорит с текстом — сдвигаем кадр
     к городу и добавляем вуали. */
  .hero {
    padding: 60px 0;
    background:
      linear-gradient(180deg, rgba(35, 6, 15, .92) 0%, rgba(35, 6, 15, .8) 46%, rgba(52, 9, 22, .72) 100%),
      url("assets/bg.63cc9d2dc87d.webp") 62% center / cover no-repeat;
  }
  .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; }
  .nav { display: none; }
  .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 { margin-left: auto; padding: 2px; font-size: 12px; }
  .lang a { padding: 4px 8px; }

  .grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
