/* ============================================================
   «3 метра» — афиша вечеров знакомств в Ростове.
   Оформление повторяет основной сервис 3metra-online.ru: тёплый
   кремовый фон, белые скруглённые карточки, вишнёвые блоки-акценты,
   рукописный Amatic SC в заголовках и контурные арты (сердце,
   панорама Ростова, пунктирные обводки). Никаких линеек: блоки
   разделяет фон карточек.
   ============================================================ */

:root {
  /* Тёплый кремовый «стол», на котором лежат белые карточки */
  --bg: #fbf3ea;
  --surface: #ffffff;
  --surface-soft: #f7ece2;

  /* Линии почти не используем: блоки разделяет фон карточек, а не рамки */
  --line: #efe1d6;
  --line-strong: #e0cdc0;

  --text: #2b1a1e;
  --text-soft: #6b585c;
  --text-faint: #94807f;

  /* Вишнёвый — фон акцентных блоков и кнопок, как на основном сервисе */
  --accent: #a0152a;
  --accent-strong: #85101f;
  --accent-soft: #fbeae9;
  --on-accent: #ffffff;

  /* Алый — рукописные цифры, ссылки, мелкие акценты */
  --accent-bright: #e22645;

  /* Кремовый текст на вишнёвом фоне */
  --on-accent-soft: #f6dee0;

  /* Синий — только чип с ближайшей датой */
  --info: #2f6fe4;
  --info-soft: #e9f0fc;

  /* Зелёный — только ЗОЖ-пометки */
  --fresh: #17925a;
  --fresh-soft: #e3f4ea;

  /* Отдельный цвет только для ошибок формы */
  --danger: #c03a20;

  --radius-panel: 30px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Рукописный акцентный шрифт: заголовки, крупные цифры */
  --font-display: "Amatic SC", "Trebuchet MS", var(--font);
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

/* Amatic SC узкий и высокий — кегль крупнее, чем у гротеска, и без
   отрицательного трекинга, иначе буквы слипаются */
h1, h2 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(3rem, 11vw, 5rem); }
h2 { font-size: clamp(2.3rem, 7.5vw, 3.4rem); }

h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

/* Надстрочник над заголовком: капслок с разрядкой, как на основном сервисе */
.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

p { margin: 0; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }

/* Панели лежат в общем поле с одинаковыми полями по краям.
   Отступ у краёв небольшой — на телефоне важнее ширина контента */
main {
  display: grid;
  gap: 12px;
  padding: 12px 12px 0;
}

@media (min-width: 760px) {
  main { gap: 20px; padding: 20px 20px 0; }
}

/* Белая скруглённая панель — основной строительный блок страницы */
.hero,
.section {
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: clamp(38px, 7vw, 80px) clamp(20px, 4.5vw, 56px);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

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

@media (max-width: 600px) {
  :root { --nav-h: 60px; }
}

.section-head { margin-bottom: clamp(26px, 4.5vw, 42px); }

.section-head__sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 52ch;
}

.section-head__sub b {
  font-weight: 600;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus-visible { top: 0; }

/* ---------- Buttons ---------- */

/* Кнопка-пилюля: крупная, с большой площадью нажатия */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--lg { padding: 16px 30px; min-height: 54px; font-size: 17px; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 22px -14px rgba(238, 39, 51, 0.4);
}
.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px rgba(238, 39, 51, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* .btn--ghost используется на страницах документов */
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn:disabled { opacity: 0.45; cursor: default; }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible { border-radius: var(--radius-pill); }

/* ---------- Nav ---------- */

/* Шапка лежит прямо на сером фоне, без панели и линеек */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.2s var(--ease);
}

.nav.is-scrolled { box-shadow: 0 6px 20px -18px rgba(20, 20, 20, 0.9); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 10px;
}

@media (min-width: 760px) {
  .nav__inner { padding-inline: 16px; }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.nav__mark, .footer__mark { border-radius: 11px; flex-shrink: 0; }

.nav__brand { display: grid; line-height: 1.05; }

.nav__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav__city {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav__links a {
  color: var(--text-soft);
  text-decoration: none;
}
.nav__links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* На телефоне кнопку в шапке прячем: внизу экрана есть постоянная панель записи */
@media (max-width: 640px) {
  .nav__cta { display: none; }
}

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

.hero { padding-block: clamp(18px, 3vw, 34px) clamp(30px, 5vw, 54px); }

/* Герой целиком лежит в вишнёвой карточке — как на 3metra-online */
.hero__card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 52px) clamp(20px, 4vw, 48px) 0;
  border-radius: var(--radius-panel);
  background: var(--accent);
  color: var(--on-accent);
}

/* Контурное сердце в углу — только фон, кликам не мешает */
.hero__heart {
  position: absolute;
  top: -36px;
  right: -40px;
  width: 180px;
  height: 180px;
  color: #fff;
  opacity: 0.14;
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-accent-soft);
}

.hero h1 {
  margin-bottom: 16px;
  color: var(--on-accent);
}

.hero h1 em {
  font-style: normal;
  color: var(--on-accent);
}

.hero__lead {
  font-size: clamp(15.5px, 2.2vw, 17.5px);
  line-height: 1.55;
  color: var(--on-accent-soft);
  max-width: 56ch;
}

.hero__lead + .hero__lead { margin-top: 12px; }

.hero__lead b { color: #fff; font-weight: 700; }

/* Дата вечера — белая плашка внутри вишнёвой карточки */
.hero__next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(18px, 3vw, 24px);
  padding: 12px 20px 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  color: var(--on-accent);
  text-decoration: none;
  transition: background-color 0.18s var(--ease);
}

.hero__next:hover { background: rgba(255, 255, 255, 0.2); }

.hero__next-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
}

.hero__next-text { line-height: 1.3; }
.hero__next-text b { display: block; font-size: 15px; font-weight: 700; }
.hero__next-text span { display: block; font-size: 14px; color: var(--on-accent-soft); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3.5vw, 28px);
}

/* Кнопка на вишнёвом фоне — белая с вишнёвым текстом */
.hero__actions .btn--primary {
  background: #fff;
  color: var(--accent);
}

.hero__actions .btn--primary:hover { background: var(--accent-soft); }

.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero__actions .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__hint {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--on-accent-soft);
}

/* Панорама Ростова прижата к нижнему краю карточки */
.hero__skyline {
  display: block;
  width: calc(100% + 16px);
  max-height: 132px;
  margin: clamp(18px, 3vw, 26px) -8px 0;
  color: #fff;
  opacity: 0.85;
}

/* На широком экране арт крупнее — иначе теряется в ширине карточки */
@media (min-width: 900px) {
  .hero__skyline { max-height: 210px; }
}

/* Фото с вечера — под карточкой, во всю ширину */
.hero__photo { margin: 14px 0 0; }

.hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

/* Факты — белые карточки на кремовом фоне */
.hero__facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 760px) {
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hero__facts li {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.hero__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.hero__facts span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-soft);
}

@media (min-width: 900px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 40px;
    align-items: center;
  }
  .hero__aside { align-self: center; }
  .hero__photo { margin: 0; }
  .hero__photo img { aspect-ratio: 4 / 5; }
}

/* ---------- Цифры про вечера ---------- */

.stats { padding-block: clamp(28px, 5vw, 52px); }

.stats__inner { text-align: center; }

.stats__big {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 8rem);
  line-height: 0.85;
  color: var(--accent-bright);
}

.stats__big svg { width: 26px; height: 26px; margin-top: 8px; }

.stats__caption {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stats__row {
  list-style: none;
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats__row li { position: relative; }

.stats__num {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1;
  color: var(--accent-bright);
}

/* Рукописная обводка и подчёркивание — как на основном сервисе */
.stats__mark {
  position: absolute;
  inset: -6px -4px;
  width: calc(100% + 8px);
  height: calc(100% + 12px);
  color: var(--accent-bright);
  opacity: 0.55;
  pointer-events: none;
}

.stats__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
}

.stats__promise {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: clamp(18px, 3vw, 26px) auto 0;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
  box-shadow: 0 12px 30px -26px rgba(43, 26, 30, 0.6);
}

.stats__promise svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Расписание ---------- */

.dates__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .dates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  /* Когда вечер один, карточка занимает всю ширину и раскладывается
     горизонтально: фото слева, описание справа */
  .dates__grid--single { grid-template-columns: 1fr; }

  .dates__grid--single .event { flex-direction: row; }

  /* Фото абсолютное: иначе вертикальный кадр растянул бы карточку
     на всю свою высоту. Высоту строки задаёт текст справа */
  .dates__grid--single .event__photo {
    flex: 0 0 44%;
    position: relative;
    min-height: 320px;
  }

  .dates__grid--single .event__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .dates__grid--single .event__body {
    justify-content: center;
    gap: 14px;
    padding: 34px 38px;
  }

  .dates__grid--single .event__date b { font-size: 2rem; }
  .dates__grid--single .event__about { font-size: 15px; max-width: 52ch; }

  /* В горизонтальной карточке кнопка по размеру текста, а не во всю колонку */
  .dates__grid--single .event__btn { width: auto; margin-top: 6px; }
}

/* Карточка вечера — афиша: фото, тип вечера, дата, статус мест, кнопка */
.event {
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Карточка с предзаписью: пунктирная рамка и белый фон — вечер ещё
   не подтверждён датой, поэтому он визуально тише основного */
.event--preorder {
  background: var(--surface);
  border: 2px dashed var(--line-strong);
}

.event--preorder .badge--soft { background: var(--surface-soft); }

.event--preorder .event__photo img { opacity: 0.85; }

/* В белой карточке вторичная кнопка нуждается в контуре, иначе теряется */
.event--preorder .btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.event--preorder .btn--outline:hover { background: var(--accent-soft); }

/* ЗОЖ-вечер выделен зелёной рамкой и фоном под цвет своей пометки */
.event--zozh {
  background: var(--fresh-soft);
  border-color: var(--fresh);
}

.event__photo { margin: 0; }

.event__photo img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  background: var(--surface-soft);
}

/* Вертикальный кадр пары за столиком — держим лица в кадре */
.event__photo--date img { object-position: center 58%; }

.event__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px 18px;
}

.event__tag {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Пометки типа вечера: зелёная — ЗОЖ, синяя — классический */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--fresh { background: var(--fresh-soft); color: var(--fresh); }
.badge--classic { background: var(--accent-soft); color: var(--accent); }

.badge--soft { background: var(--surface-soft); color: var(--text-soft); }

/* Цена участия — контрастная пилюля рядом с типом вечера */
.badge--price { background: var(--accent); color: var(--on-accent); }

/* Предзапись: пунктирная пилюля — дата вечера ещё не назначена */
.badge--preorder {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Внутри зелёной карточки пилюля лежит на белом, чтобы не сливалась */
.event--zozh .badge--fresh { background: var(--surface); }

/* Дата — рукописным акцентом, как крупные цифры на основном сервисе */
.event__date b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-bright);
}

.event__date > span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-soft);
}

.event__about {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

.event__about b { color: var(--accent); }

.u-nowrap { white-space: nowrap; }

.event__status {
  margin: 0;
  font-size: 13px;
}

.event__status-line { display: block; font-weight: 600; }
.event__status-line--open { color: #2f7d46; }
.event__status-line--ask,
.event__status-line--few { color: #9a6b00; }
.event__status-line--closed { color: var(--danger); }

/* Кнопка прижата к низу карточки — в сетке карточки равной высоты */
.event__btn {
  margin-top: auto;
  width: 100%;
}

/* Внутри серой карточки вторичная кнопка — белая заливка, а не контур */
.event .btn--outline { background: var(--surface); border-color: transparent; }
.event .btn--outline:hover { color: var(--accent); }

/* Карточка события-шоу: крупное вертикальное видео и описание рядом */
.event--show {
  display: grid;
  gap: 20px;
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 60px -46px rgba(43, 26, 30, 0.75);
}

.show__video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1013;
}

.show__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  cursor: pointer;
}

/* Кнопка звука поверх кадра: видео стартует без звука */
.show__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(24, 14, 17, 0.62);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.show__sound:hover { background: rgba(24, 14, 17, 0.8); }

.show__body { display: grid; gap: 14px; align-content: start; }

.show__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1;
}

/* Дата вечера — крупная, вишнёвая, сразу под названием */
.show__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
}

.show__when b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
  color: var(--accent-bright);
}

.show__when span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

.show__where {
  margin: -4px 0 0;
  font-size: 14.5px;
  color: var(--text-soft);
}

.show__lead {
  margin: 0;
  font-size: clamp(15.5px, 2vw, 17px);
  line-height: 1.55;
}

/* Выделения внутри абзаца: ключевые слова вишнёвым, не серым */
.show__lead b,
.show__result b { color: var(--accent); font-weight: 700; }

.show__sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  line-height: 1.1;
}

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

.show__options li {
  position: relative;
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 16px 18px 16px 54px;
  display: grid;
  gap: 4px;
}

/* Эмодзи-маркер в кружке — вместо серого буллета */
.show__options li::before {
  content: attr(data-icon);
  position: absolute;
  left: 14px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
}

.show__options b {
  font-size: 16.5px;
  color: var(--accent);
}

.show__options span { font-size: 15px; line-height: 1.5; color: var(--text); }

.show__result {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.5;
}

@media (min-width: 860px) {
  .event--show {
    grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
    gap: 30px;
    padding: 20px;
    align-items: start;
  }

  .event--show .event__btn { width: auto; }
}

/* Пустое расписание: вечеров нет — вместо карточки одна плашка */
.dates__empty {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(34px, 6vw, 56px) clamp(20px, 4vw, 40px);
  background: var(--surface-soft);
  border-radius: var(--radius-panel);
  text-align: center;
}

.dates__empty-heart {
  position: absolute;
  top: -30px;
  right: -26px;
  width: 160px;
  height: 160px;
  color: var(--accent);
  opacity: 0.09;
  pointer-events: none;
}

.dates__empty-title {
  position: relative;
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
}

.dates__empty-text {
  position: relative;
  margin: 0;
  max-width: 50ch;
  font-size: 16px;
  color: var(--text);
}

.dates__empty-text b { color: var(--accent); }

.dates__empty .btn { position: relative; margin-top: 8px; }

@media (max-width: 560px) {
  .dates__empty .btn { width: 100%; }
}

.dates__note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 68ch;
}

/* ---------- Как это проходит ---------- */

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

@media (min-width: 760px) {
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.steps__list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}

@media (min-width: 760px) {
  .steps__list li { grid-template-columns: 1fr; }
}

.steps__num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  grid-row: span 2;
}

@media (min-width: 760px) {
  .steps__num { grid-row: auto; margin-bottom: 10px; }
}

.steps__list h3 { align-self: center; }

@media (min-width: 760px) {
  .steps__list h3 { align-self: start; }
}

.steps__list p {
  grid-column: 2;
  font-size: 15px;
  color: var(--text-soft);
}

@media (min-width: 760px) {
  .steps__list p { grid-column: 1; margin-top: 4px; }
}

/* ---------- Фотографии ---------- */

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

@media (max-width: 560px) {
  .photos__grid { gap: 12px; }
}

@media (min-width: 900px) {
  .photos__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.photo { margin: 0; }

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.photo--clickable img { cursor: zoom-in; }
.photo--clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* Фотография-баннер внутри секции */
.section-photo { margin: clamp(24px, 4vw, 34px) 0 0; }

.section-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

/* На широком экране полоса ниже: иначе снимок занимает пол-экрана */
@media (min-width: 760px) {
  .section-photo img { aspect-ratio: 2.8 / 1; }
}

/* ---------- Где проходит ---------- */

.place__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .place__grid { grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
}

.place__photo { margin: 0 0 18px; }

.place__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.place__info p { font-size: 15.5px; color: var(--text-soft); max-width: 46ch; }
.place__info p + p { margin-top: 10px; }
.place__address { font-size: 17px !important; color: var(--text) !important; }
.place__address b { font-weight: 600; }
.place__info .btn { margin-top: 18px; }

/* z-index: 0 — свой контекст наложения, чтобы iframe карты не всплывал
   поверх модального окна записи */
.place__map-wrap {
  position: relative;
  z-index: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.place__map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 800px) {
  .place__map { height: 260px; }
}

/* ---------- Вопросы ---------- */

/* Вопросы — отдельные мягкие плитки вместо списка на линейках */
.faq__list {
  max-width: 780px;
  display: grid;
  gap: 8px;
}

.faq__list details {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding-inline: 18px;
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--accent); }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px; height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.faq__icon::after { transform: rotate(90deg); }
.faq__list details[open] .faq__icon::after { transform: rotate(0deg); }

.faq__list details p {
  padding-bottom: 18px;
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 62ch;
}

/* ---------- Финальный блок записи ---------- */

.final { background: var(--accent-soft); }

/* Финал повторяет приём основного сервиса: рукописный заголовок внутри
   пунктирного овала и одна крупная кнопка */
.final__inner {
  position: relative;
  text-align: center;
  padding-block: clamp(10px, 3vw, 26px);
}

/* Пунктирный овал обнимает только заголовок, иначе линия режет текст */
.final__title {
  position: relative;
  display: inline-block;
  padding: 26px 40px;
  margin-bottom: 4px;
}

.final__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  pointer-events: none;
}

.final .eyebrow { position: relative; }

.final h2 {
  position: relative;
  margin: 0 auto;
  max-width: 18ch;
}

.final__text {
  position: relative;
  font-size: 16px;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 auto 22px;
}

.final .btn { position: relative; }

.final__note {
  position: relative;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .final .btn { width: 100%; }
}

/* ---------- Постоянная кнопка записи на телефоне ---------- */

/* Плавающая панель-пилюля над контентом: на телефоне это главный вход
   в запись, поэтому она заметнее, чем что-либо ещё на экране */
.sticky-cta { display: none; }

@media (max-width: 760px) {
  .sticky-cta {
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 30px -12px rgba(20, 20, 20, 0.35);
    transform: translateY(calc(100% + 20px));
    transition: transform 0.25s var(--ease);
  }

  .sticky-cta.is-visible { transform: translateY(0); }

  .sticky-cta__info { min-width: 0; line-height: 1.25; }
  .sticky-cta__info b { display: block; font-size: 15px; font-weight: 600; }
  .sticky-cta__info span { display: block; font-size: 13px; color: var(--text-soft); }

  .sticky-cta .btn { margin-left: auto; flex-shrink: 0; min-height: 46px; padding-inline: 20px; }

  /* чтобы панель не перекрывала конец страницы */
  body { padding-bottom: 100px; }
}

/* ---------- Footer ---------- */

.footer {
  margin: 10px 10px 0;
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}

@media (min-width: 760px) {
  .footer { margin-inline: 16px; }
}

/* Первая часть футера — бренд и контакты, заметная и читаемая */
.footer__main {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .footer__main { grid-template-columns: 1.1fr 1.2fr; gap: 36px; }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer__brand p:last-child {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.footer__head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

.footer__contacts ul {
  gap: 12px;
  font-size: 16px;
}

.footer__contacts a {
  color: var(--text);
  font-weight: 500;
}

/* Вторая часть — документы и реквизиты, отделена линией и приглушена */
.footer__secondary {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer__secondary .footer__head { margin-bottom: 10px; }

.footer__secondary ul {
  gap: 7px;
  font-size: 13.5px;
}

.footer__secondary a { color: var(--text-faint); }

.footer__requisites {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.footer__requisites a { color: var(--text-faint); }

/* ---------- Модальное окно записи ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 28, 30, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: min(90dvh, 860px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 38px);
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: 0 30px 80px -40px rgba(20, 24, 28, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.modal.is-open .modal__panel { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .modal { padding: 0; align-items: end; }
  .modal__panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.modal__close:hover { color: var(--text); background: var(--line); }
.modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.booking h2, .booking-done h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  padding-right: 44px;
}

.booking__sub {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* Honeypot: люди это поле не видят и не заполняют */
.booking__hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.booking__fieldset {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.booking__fieldset legend,
.booking__field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
  padding: 0;
}

.booking__events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.event-option {
  position: relative;
  display: block;
  padding: 13px 16px;
  background: var(--surface-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.event-option:hover { border-color: var(--line-strong); }

.event-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.event-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.event-option__date {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.event-option__group { display: block; font-size: 13px; color: var(--text-soft); }

.booking__field { margin-bottom: 20px; }
.booking__fieldset .booking__field { margin-bottom: 0; }

.booking__row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
}

.booking input[type="text"],
.booking input[type="tel"],
.booking input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.booking input::placeholder { color: var(--text-faint); }

.booking input[type="text"]:focus,
.booking input[type="tel"]:focus,
.booking input[type="number"]:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
}

.booking__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.method-option { position: relative; cursor: pointer; }

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-option span {
  display: block;
  padding: 11px 18px;
  background: var(--surface-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.method-option:hover span { border-color: var(--accent); }

.method-option input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.method-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Вечер собирают для одной половины группы — второй вариант пола выключен
   (script.js, applyAudience) и должен выглядеть недоступным */
.method-option:has(input:disabled) { cursor: not-allowed; }
.method-option input:disabled + span { opacity: 0.4; }
.method-option:hover input:disabled + span { border-color: transparent; }

.booking__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 14px;
}

.booking__consent input {
  margin: 3px 0 0;
  width: 18px; height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.booking__legal {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.booking__legal a { color: var(--accent); }

.booking__submit { width: 100%; }

.booking__error {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--danger);
}

/* Пояснение под переключателем формата участия */
/* Подсказка над переключателем: правила видно до выбора, а не после */
.booking__hint--top {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
}

.booking__hint--top b { color: var(--accent); }

.booking__hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint);
}

.booking__fineprint {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Экран «заявка принята» ---------- */

.booking-done { text-align: center; padding-block: 12px; }

.booking-done__mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.booking-done__summary {
  font-size: 15.5px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.booking-done__hint {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Уведомление о cookie ---------- */

.cookie-note {
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  z-index: 130;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin-inline: auto;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px -18px rgba(20, 20, 20, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-note[hidden] { display: none; }
.cookie-note.is-visible { opacity: 1; transform: translateY(0); }

.cookie-note p { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.cookie-note a { color: var(--accent); }

.cookie-note__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
}
.cookie-note__close:hover { color: var(--text); }
.cookie-note__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* На телефоне уведомление поднимаем над панелью записи */
@media (max-width: 760px) {
  .cookie-note { left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Просмотр фото на весь экран ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 18, 20, 0.92);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__body { display: contents; }

.lightbox img,
.lightbox video {
  max-width: min(100%, 900px);
  max-height: calc(100dvh - 96px);
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { border-color: #fff; }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Страницы документов ---------- */

/* Документ — такая же белая панель, как секции на главной.
   Своя ширина и поля: у .container их нет, их задают панели */
.doc {
  max-width: 800px;
  margin: 10px auto 0;
  padding: clamp(30px, 6vw, 56px) clamp(20px, 4vw, 48px) clamp(44px, 7vw, 72px);
  background: var(--surface);
  border-radius: var(--radius-panel);
}

@media (max-width: 840px) {
  .doc { margin-inline: 10px; }
}

.doc h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin-bottom: 12px;
}

.doc__sub {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.doc p {
  font-size: 15.5px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.doc ul, .doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--text-soft);
}

.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); }

.doc__back { margin-top: 44px; }

.doc__back a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
}
.doc__back a:hover { color: var(--accent); }

/* ---------- Меньше движения ---------- */

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

/* ---------- Честно о том, что вас ждёт ---------- */

.honest__box {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
}

/* Контурное сердце в углу блока — тот же арт, что в первом экране */
.honest__heart {
  position: absolute;
  top: -26px;
  right: -22px;
  width: 150px;
  height: 150px;
  color: var(--accent);
  opacity: 0.09;
  pointer-events: none;
}

.honest__box h2 { margin-bottom: 18px; }

.honest__box p {
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--text-soft);
}

.honest__box p + p { margin-top: 16px; }

/* ---------- Онлайн-знакомства «Три метра» ---------- */

.online { overflow: hidden; }

.online__grid {
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
}

@media (min-width: 860px) {
  .online__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.online h2 { margin-bottom: 16px; }

.online__lead {
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-soft);
}

.online__lead b { color: var(--text); font-weight: 600; }

.online__points {
  display: grid;
  gap: 12px;
  margin: clamp(20px, 3vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.online__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-soft);
}

.online__points b { color: var(--text); font-weight: 600; }

.online__points svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: -3px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.online__actions { margin-top: clamp(24px, 3.5vw, 32px); }

.online__hint {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .online__actions .btn { width: 100%; }
  .online__hint { text-align: center; }
}

/* Витрина: телефон на вишнёвой подложке, по бокам — ещё анкеты */
.online__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 44px) 0;
  isolation: isolate;
}

.online__visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 55%),
    var(--accent);
}

.phone {
  position: relative;
  width: min(270px, 68vw);
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 44px;
  background: #1b1b1d;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3e,
    0 30px 60px -24px rgba(43, 26, 30, 0.55),
    0 12px 24px -12px rgba(43, 26, 30, 0.35);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #0d0d0d;
  color: #fff;
  font-family: var(--font);
}

.phone__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 22px 0 26px;
  font-size: 11.5px;
  font-weight: 600;
}

.phone__island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}

.phone__signal { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.phone__signal i { display: block; width: 3px; border-radius: 1px; background: #fff; }
.phone__signal i:nth-child(1) { height: 4px; }
.phone__signal i:nth-child(2) { height: 6px; }
.phone__signal i:nth-child(3) { height: 8px; }
.phone__signal i:nth-child(4) { height: 10px; }

/* Карточка анкеты — как в ленте приложения: фото целиком, имя рукописным */
.app-card {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 4px 8px 0;
  overflow: hidden;
  border-radius: 22px;
  background: #191919;
}

.app-card picture,
.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__info {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6) 45%, transparent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.app-card__name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 0.95;
}

.app-card__city { margin-top: 3px; font-size: 11px; color: rgba(255, 255, 255, 0.85); }

.app-card__check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 600;
  text-shadow: none;
  backdrop-filter: blur(4px);
}

.app-card__check svg { color: #6ee7b7; }

.app-actions {
  display: flex;
  gap: 6px;
  padding: 8px 8px 6px;
}

.app-actions span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.app-actions__skip { background: #262626; color: #e5e5e5; }
.app-actions__like { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(160, 21, 42, 0.7); }

.app-tabs {
  display: flex;
  justify-content: space-around;
  padding: 6px 4px 14px;
  border-top: 1px solid #262626;
  background: #0a0a0a;
}

.app-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 500;
  color: #a3a3a3;
}

.app-tabs i { font-style: normal; font-size: 17px; line-height: 18px; }
.app-tabs img { width: 18px; height: 18px; border-radius: 5px; }
.app-tabs .is-active { color: #e22645; }

/* Анкеты по бокам — белые карточки, чуть повёрнуты */
.online__float {
  position: absolute;
  z-index: 1;
  width: clamp(104px, 26vw, 138px);
  padding: 6px 6px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px -18px rgba(43, 26, 30, 0.5);
}

.online__float img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 13px;
}

.online__float p { padding: 7px 4px 0; line-height: 1.25; }
.online__float b { display: block; font-size: 13px; font-weight: 700; }
.online__float span { display: block; font-size: 10.5px; color: var(--text-faint); }

.online__float--left { top: 14%; left: 0; transform: rotate(-7deg); }
.online__float--right { bottom: 30%; right: 0; transform: rotate(6deg); }

@media (min-width: 860px) {
  .online__float--left { left: -2%; }
  .online__float--right { right: -2%; }
}

/* На узком экране карточки не должны закрывать экран телефона */
@media (max-width: 420px) {
  .online__float { width: 92px; padding: 4px 4px 6px; border-radius: 14px; }
  .online__float img { border-radius: 10px; }
  .online__float b { font-size: 11px; }
  .online__float span { display: none; }
  .online__float--left { left: -6px; }
  .online__float--right { right: -6px; }
}
