/* ==========================================================================
   Запись на переписку с Матвеем — стили
   Тёмная тема, глубокий индиго + янтарный акцент. Шрифты: Unbounded (заголовки),
   Onest (текст), оба вариативные, самохостинг.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --bg: #10132e;
  --bg-deep: #0b0d22;
  --surface: #171b3f;
  --surface-2: #1f2450;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f1ff;
  --muted: #a4a6c4;
  --accent: #ffb02e;
  --accent-deep: #e0901a;
  --accent-ink: #1a1305;
  --violet: #6c5cff;
  --danger: #ff6b7a;
  --ok: #4ade80;

  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', sans-serif;
  --font-body: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 72px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s ease, color 0.8s ease;
}
html.is-locked, html.is-locked body { overflow: hidden; }
/* Атрибут hidden должен побеждать любые display у классов (.modal { display: grid } и т. п.),
   иначе невидимые модалки лежат поверх страницы и перехватывают клики */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }
sup { font-size: 0.5em; vertical-align: super; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Зерно поверх всего — тонкое, чтобы фон не был «пластиковым» */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, #ffc25a 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: 0 8px 24px -8px rgba(255, 176, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(255, 176, 46, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
/* Мягкая пульсация главной кнопки — единственная «сама по себе» анимация на экране */
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(255, 176, 46, 0.6);
  animation: pulse-ring 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.96); opacity: 0.8; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

/* Кнопка «Отправить»: смена текста, индикатор отправки с текстом состояния */
.btn--submit { min-width: 190px; overflow: hidden; }
.btn__label { display: inline-block; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.btn__label.is-swapping { transform: translateY(-120%); opacity: 0; }
.btn__spinner {
  display: none;
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(26, 19, 5, 0.25);
  border-top-color: var(--accent-ink);
  animation: spin 0.8s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; }
.btn--submit.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Блок ошибки отправки: заметный, рядом с кнопкой */
.form__alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 122, 0.12);
  border: 1px solid rgba(255, 107, 122, 0.5);
  color: #ffc4cb;
  font-size: 14.5px;
  animation: error-in 0.3s var(--ease-out);
}

.link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(164, 166, 196, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.link:hover { color: var(--text); text-decoration-color: var(--accent); }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity 0.7s ease, visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader.is-done .preloader__inner { transform: translateY(-24px) scale(0.98); opacity: 0; }
html.no-preloader .preloader { display: none; }
.preloader__inner {
  width: min(420px, 84vw);
  text-align: center;
  transition: transform 0.6s var(--ease-out), opacity 0.5s;
}
.preloader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 40px;
}
.preloader__text {
  min-height: 2.6em;
  font-size: 18px;
  font-weight: 500;
  animation: phrase-in 0.4s var(--ease-out);
}
@keyframes phrase-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.preloader__bar {
  height: 6px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.preloader__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), #ffd48a);
  box-shadow: 0 0 18px rgba(255, 176, 46, 0.6);
  transition: width 0.15s linear;
}
.preloader__pct {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(16, 19, 46, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo__dot { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 8vw, 88px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}
.hero__glow--amber {
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  top: -20vw; left: -18vw;
  background: radial-gradient(circle, rgba(255, 176, 46, 0.55), rgba(255, 176, 46, 0) 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero__glow--violet {
  width: 55vw; height: 55vw;
  max-width: 680px; max-height: 680px;
  right: -15vw; top: 10%;
  background: radial-gradient(circle, rgba(108, 92, 255, 0.6), rgba(108, 92, 255, 0) 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(8vw, 6vw) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-6vw, -5vw) scale(0.92); } }
/* На тач-устройствах размытие 90px + постоянная анимация двух огромных слоёв
   грузят GPU и делают скролл рваным. Там пятна статичные и без blur:
   радиальный градиент и так мягкий. */
@media (hover: none), (max-width: 860px) {
  .hero__glow { filter: none; animation: none; opacity: 0.45; }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: online 2s infinite;
}
@keyframes online { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero__line { display: block; }
/* «По записи.» — как входящее сообщение: пузырь с хвостиком */
.hero__bubble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  margin-top: 0.28em;
  padding: 0.16em 0.5em 0.2em;
  border-radius: 0.55em 0.55em 0.55em 0.12em;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 18px 50px -14px rgba(255, 176, 46, 0.7);
  transform-origin: 0% 100%;
}
.hero__bubble::before {
  content: '';
  position: absolute;
  left: -0.12em; bottom: 0;
  width: 0.45em; height: 0.45em;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 0.1em;
}
.hero__lead {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 18.5px);
  color: var(--muted);
}
.hero__cta { margin-top: 36px; }
.queue {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
  min-height: 1.6em;
}
.queue__text { display: inline-block; transition: transform 0.35s var(--ease-out), opacity 0.35s; }
.queue__text.is-swapping { transform: translateY(-8px); opacity: 0; }
.hero__queue-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__queue-row .queue { flex: 1 1 240px; }

/* Портрет владельца */
.hero__visual { display: flex; justify-content: center; }
.portrait {
  position: relative;
  margin: 0;
  width: min(100%, 400px);
  user-select: none;
  -webkit-user-select: none;
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease-out);
}
.portrait:hover { transform: rotate(0.5deg) translateY(-4px); }
/* Светлое студийное фото на тёмной теме: премиальная карточка с янтарной обводкой,
   свечением и мягкой виньеткой, чтобы белый фон не читался «дырой» */
.portrait__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 176, 46, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 176, 46, 0.18),
    0 0 40px -6px rgba(255, 176, 46, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  max-width: 100%;
}
.portrait__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 46, 0.12), rgba(0, 0, 0, 0) 35%, rgba(11, 13, 34, 0.55)),
    radial-gradient(120% 100% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(11, 13, 34, 0.45) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 60px rgba(11, 13, 34, 0.35);
  pointer-events: none;
}
.portrait__img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.portrait::before {
  content: '';
  position: absolute;
  inset: 12% -6% -6% 10%;
  background: radial-gradient(closest-side, rgba(255, 176, 46, 0.35), rgba(255, 176, 46, 0));
  filter: blur(30px);
  z-index: -1;
}
/* Намёк после 3-го клика */
.portrait.is-hint { animation: wobble 0.7s var(--ease-out); }
@keyframes wobble {
  0% { transform: rotate(2deg); }
  25% { transform: rotate(-3deg) scale(1.02); }
  50% { transform: rotate(4deg) scale(1.02); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(2deg); }
}
.portrait.is-pressed { transform: rotate(2deg) scale(0.97); transition-duration: 0.12s; }

/* Появление hero после прелоадера */
[data-intro] { opacity: 0; transform: translateY(26px); }
body.is-ready [data-intro] {
  animation: intro 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
body.is-ready .hero__bubble {
  animation: bubble-pop 0.8s var(--ease-spring) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 140ms);
}
body.is-ready .hero__visual { animation-name: intro-visual; animation-duration: 1.1s; }
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes bubble-pop {
  0% { opacity: 0; transform: scale(0.4) translateY(14px); }
  100% { opacity: 1; transform: none; }
}
@keyframes intro-visual {
  from { opacity: 0; transform: translateY(40px) rotate(6deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--left { text-align: left; }
.section__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 56ch;
}
.section__head:not(.section__head--left) .section__lead { margin-inline: auto; }
.field__note { font-size: 14px; color: var(--muted); margin-top: -4px; }

/* ---------- Мемы по странице ---------- */
.meme-break {
  position: relative;
  padding-block: clamp(12px, 3vw, 28px);
  margin-block: 0;
}
.meme-break--wide + .section { padding-top: clamp(52px, 8vw, 96px); }
.meme-card {
  --meme-w: 180px;
  position: relative;
  display: grid;
  width: min(100%, var(--meme-w));
  margin: 0;
  padding: 8px;
  border-radius: 7px;
  background: #f7f2e6;
  color: #1d1a17;
  text-align: left;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transform: rotate(var(--meme-rot, -2deg));
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), filter 0.28s;
  isolation: isolate;
}
.meme-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 54px;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(3deg);
  z-index: 2;
}
.meme-card:hover,
.meme-card:focus-visible {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 28px 60px -26px rgba(255, 176, 46, 0.42), 0 24px 54px -30px rgba(0, 0, 0, 0.95);
  filter: saturate(1.06);
}
.meme-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
  background: #ece7dc;
  -webkit-user-drag: none;
}
.meme-card--s { --meme-w: 150px; }
.meme-card--m { --meme-w: 300px; }
.meme-card--l {
  --meme-w: 920px;
  margin-inline: auto;
  padding: clamp(8px, 1.4vw, 14px);
}
.meme-card--l img {
  aspect-ratio: auto;
  max-height: min(68vh, 760px);
  object-fit: contain;
}
.meme-card--tilt-left { --meme-rot: -3.2deg; }
.meme-card--tilt-right { --meme-rot: 3deg; }
.meme-card--in-card {
  margin-top: 22px;
  margin-left: auto;
}
.sure__memes {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto clamp(22px, 4vw, 42px);
}
.booking__panel .field:has(.meme-card--form) {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 300px);
  align-items: start;
}
.booking__panel .field:has(.meme-card--form) > .field__label,
.booking__panel .field:has(.meme-card--form) > .durations,
.booking__panel .field:has(.meme-card--form) > .field__error {
  grid-column: 1;
}
.meme-card--form {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
}
.brave__memes {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}
.brave__memes .meme-card--m { --meme-w: 230px; }
.brave__memes .meme-card--s { --meme-w: 142px; }
.beautify__inner .meme-card { margin-block: 4px 2px; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
/* Большой блок формы на телефоне появляется только через прозрачность, без transform */
@media (hover: none), (max-width: 860px) {
  .booking__panel.reveal { transform: none; }
}

/* ---------- Карточки «Почему» ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin-inline: auto;
}
/* Честная секция: чуть теплее и спокойнее, карточки с мягким тёплым фоном */
.why__card { padding: 32px 28px 34px; background: linear-gradient(180deg, rgba(255, 176, 46, 0.07), rgba(255, 255, 255, 0.02)); }
.why__card .card__title { font-size: 18px; }
.why__card .card__text { color: #c3c4dc; font-size: 16px; }
.card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  left: 26px; right: 26px; top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 176, 46, 0.35);
  box-shadow: 0 30px 60px -30px rgba(255, 176, 46, 0.35), 0 20px 40px -30px rgba(0, 0, 0, 0.8);
}
.card:hover::before { transform: scaleX(1); }
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.card__text { color: var(--muted); font-size: 15.5px; }

/* ---------- «Нажимай, только если уверена» ---------- */
.sure__inner { text-align: center; }
.sure .section__head { margin-bottom: 28px; }
.sure__action { display: grid; justify-items: center; gap: 16px; }
.btn--xl { padding: 22px 44px; font-size: 19px; }
/* Кнопка, которую страшно нажимать: в покое дышит, при наведении дрожит */
.sure__btn {
  position: relative;
  animation: sure-breathe 3s ease-in-out infinite;
}
.sure__btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255, 176, 46, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.sure__btn:hover, .sure__btn:focus-visible {
  animation: sure-shake 0.35s linear infinite;
  box-shadow: 0 20px 50px -12px rgba(255, 176, 46, 0.9), 0 0 0 6px rgba(255, 107, 122, 0.18);
}
.sure__btn:hover::before { opacity: 1; animation: sure-ring 0.9s ease-out infinite; }
.sure__btn:active { animation: none; transform: scale(0.96); }
@keyframes sure-breathe {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(255, 176, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 16px 44px -10px rgba(255, 176, 46, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: scale(1.03); }
}
@keyframes sure-shake {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-1.5px, 1px) rotate(-0.6deg); }
  40% { transform: translate(1.5px, -1px) rotate(0.6deg); }
  60% { transform: translate(-1px, -1px) rotate(-0.4deg); }
  80% { transform: translate(1px, 1.5px) rotate(0.4deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes sure-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.25); opacity: 0; } }
.sure__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.sure__count.is-bump { animation: count-bump 0.4s var(--ease-spring); color: var(--accent); }
@keyframes count-bump { 50% { transform: scale(1.12); } }

/* ---------- Форма ---------- */
.booking__panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.9);
  overflow: visible;
}
.booking__panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(60% 40% at 50% -10%, rgba(255, 176, 46, 0.22), rgba(255, 176, 46, 0) 70%);
  pointer-events: none;
}
.booking .section__head { margin-bottom: 32px; }
.form { display: grid; gap: 26px; position: relative; }
.field { display: grid; gap: 10px; position: relative; }
.field__label { font-weight: 600; font-size: 15px; }
.field__hint { font-weight: 400; color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.field__error {
  font-size: 13.5px;
  color: var(--danger);
  animation: error-in 0.3s var(--ease-out);
}
@keyframes error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 34, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input::placeholder { color: rgba(164, 166, 196, 0.6); }
.input:hover { border-color: rgba(255, 255, 255, 0.3); }
.input:focus, .input:focus-visible, .input[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 176, 46, 0.18);
  outline: none;
}
.input--area { resize: vertical; min-height: 96px; }
.input--area.is-flash { animation: flash 1s var(--ease-out); }
@keyframes flash { 0%, 40% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 176, 46, 0.3); } }
.input--button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}
.input__text.is-placeholder { color: rgba(164, 166, 196, 0.6); }
.input__icon { color: var(--muted); flex: none; }
.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.15); }
.field.is-invalid .chips, .field.is-invalid .durations { outline: 1px solid rgba(255, 107, 122, 0.5); outline-offset: 6px; border-radius: 8px; }

/* Календарь */
.calendar {
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  animation: cal-in 0.3s var(--ease-out);
  max-width: 420px;
}
@keyframes cal-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar__title { font-family: var(--font-display); font-weight: 500; font-size: 14px; text-transform: capitalize; }
.calendar__nav {
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.calendar__nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.calendar__nav:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar__weekdays, .calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar__weekdays span {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 6px;
}
.calendar__day {
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 0.15s, color 0.15s, transform 0.2s var(--ease-out);
}
.calendar__day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); transform: scale(1.06); }
.calendar__day:disabled { color: rgba(164, 166, 196, 0.3); cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(164, 166, 196, 0.3); }
.calendar__day.is-today { color: var(--accent); font-weight: 700; }
.calendar__day.is-today::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.calendar__day.is-selected, .calendar__day.is-selected:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.calendar__day.is-selected::after { background: var(--accent-ink); }
.calendar__day.is-weekend:not(:disabled):not(.is-selected) { color: #ffd48a; }

/* Слоты времени: сегментированный переключатель частей суток + сетка 12 слотов */
.time-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(11, 13, 34, 0.55);
  border: 1px solid var(--line);
}
.time-tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 8px 4px 7px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}
.time-tab span { font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.75; }
.time-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.time-tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line-strong); }
.time-tab.is-past { opacity: 0.45; }
.time-tab.is-past[aria-selected="true"] { opacity: 0.8; }
/* Точка на вкладке, где выбран слот */
.time-tab.has-choice::after {
  content: '';
  position: absolute;
  top: 7px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 176, 46, 0.25);
}
.time-panels { position: relative; }
.time-panel { display: none; }
.time-panel.is-active { display: block; animation: panel-in 0.3s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
@media (min-width: 640px) {
  .chips { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
}
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.chip span {
  display: block;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.chip span:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.chip input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -10px rgba(255, 176, 46, 0.8);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
  transform: none;
}

/* Длительность */
.durations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.duration { position: relative; }
.duration input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.duration__box {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.duration__box:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.duration__value { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.duration__desc { font-size: 13.5px; color: var(--muted); }
.duration input:checked + .duration__box {
  border-color: var(--accent);
  background: rgba(255, 176, 46, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 176, 46, 0.18);
}
.duration input:focus-visible + .duration__box { outline: 2px solid var(--accent); outline-offset: 2px; }
/* VIP-вариант: премиальная янтарная рамка и бейдж */
.duration--vip .duration__box {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 176, 46, 0.16), rgba(255, 212, 138, 0.04) 60%, rgba(108, 92, 255, 0.12));
  border: 1px solid rgba(255, 176, 46, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, 0.15), 0 16px 36px -20px rgba(255, 176, 46, 0.7);
}
.duration--vip .duration__box:hover { border-color: var(--accent); }
.duration--vip input:checked + .duration__box {
  background: linear-gradient(135deg, rgba(255, 176, 46, 0.28), rgba(255, 212, 138, 0.1) 60%, rgba(108, 92, 255, 0.16));
  box-shadow: 0 0 0 3px rgba(255, 176, 46, 0.25), 0 20px 44px -18px rgba(255, 176, 46, 0.8);
}
.duration__badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd48a, var(--accent));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px -6px rgba(255, 176, 46, 0.9);
}
.duration--vip .duration__value { color: #ffd48a; padding-right: 52px; }

/* Загрузчик фото: зона drag-and-drop + превью */
.picker { display: grid; gap: 12px; }
.picker__zone {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--line-strong);
  background: rgba(11, 13, 34, 0.45);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.picker__zone:hover, .picker__zone:focus-visible { border-color: rgba(255, 176, 46, 0.6); color: var(--text); }
.picker__zone.is-over { border-color: var(--accent); background: rgba(255, 176, 46, 0.1); color: var(--text); transform: scale(1.01); }
.picker__zone.is-full { opacity: 0.5; cursor: not-allowed; }
.picker__icon { width: 30px; height: 30px; color: var(--accent); }
.picker__text { font-size: 15px; font-weight: 500; }
.picker__meta { font-size: 13px; opacity: 0.8; }
.picker__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.picker__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.picker__thumbs:empty { display: none; }
.picker__thumb {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
  animation: thumb-in 0.35s var(--ease-spring);
}
@keyframes thumb-in { from { opacity: 0; transform: scale(0.8); } }
.picker__thumb img { width: 100%; height: 100%; object-fit: cover; }
.picker__thumb--file { display: grid; place-items: center; padding: 6px; font-size: 10.5px; line-height: 1.25; color: var(--muted); text-align: center; word-break: break-all; }
.picker__remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(11, 13, 34, 0.85);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background-color 0.2s, transform 0.2s;
}
.picker__remove:hover { background: var(--danger); transform: scale(1.08); }
.picker__error { font-size: 13.5px; color: var(--danger); animation: error-in 0.3s var(--ease-out); }
.field.is-invalid .picker__zone { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.runaway-slot { display: inline-block; }
.runaway { transition: left 0.45s var(--ease-spring), top 0.45s var(--ease-spring), transform 0.35s var(--ease-out), background-color 0.25s; }
.runaway.is-fixed { position: fixed; z-index: 60; margin: 0; }
.runaway__tip {
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg-deep);
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
  pointer-events: none;
}
.runaway__tip.is-visible { opacity: 1; transform: translateX(-50%); }
.runaway__tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--text);
}

/* ---------- «Для смелых девушек» и «Сделать красиво» ---------- */
.brave__card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 107, 122, 0.35);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 107, 122, 0.22), rgba(255, 107, 122, 0) 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(108, 92, 255, 0.25), rgba(108, 92, 255, 0) 70%),
    var(--surface);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.brave__card .section__lead { margin-top: 0; }
.brave__card .btn { margin-top: 8px; }
.beautify__inner { text-align: center; display: grid; justify-items: center; gap: 16px; }
.beautify .section__lead { margin-top: 0; }
.beautify .btn { margin-top: 8px; }

/* ---------- Финансовая поддержка ---------- */
.support { padding-top: clamp(44px, 6vw, 84px); }
.support__panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 50px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 222, 128, 0.28);
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(74, 222, 128, 0.14), rgba(74, 222, 128, 0) 70%),
    radial-gradient(55% 45% at 0% 100%, rgba(255, 176, 46, 0.13), rgba(255, 176, 46, 0) 68%),
    var(--surface);
  box-shadow: 0 54px 110px -64px rgba(0, 0, 0, 0.9);
}
.support .section__head { margin-bottom: 28px; }
.support-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.support-amount .duration__box {
  min-height: 74px;
  justify-content: center;
}
.support-custom {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.support-transfer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.support__note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.form__alert--success {
  color: var(--ok);
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
}

/* ---------- Футер ---------- */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
}
.footer__text { font-size: 14.5px; display: grid; gap: 6px; max-width: 52ch; }
.footer__muted { color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; align-self: center; }

/* ---------- Модалки ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* колонка = ширина экрана, а не max-content ленты слайдов */
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal__box { max-width: 100%; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 22, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s;
}
.modal__box {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-spring);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box--center { text-align: center; }
.modal__box--gallery { width: min(100%, 640px); }
.modal__box--form { width: min(100%, 520px); }
.modal__box--meme {
  width: min(100%, 920px);
  padding: clamp(18px, 3vw, 28px);
}
.meme-viewer {
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.04) 75%),
    var(--bg-deep);
  background-size: 24px 24px;
  border: 1px solid var(--line);
}
.meme-viewer__img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
}
.meme-viewer__caption {
  margin-bottom: 0;
  text-align: center;
}
/* Модалка-подарок: фото проявляется из размытия */
.modal__box--gift { width: min(100%, 440px); text-align: center; }
.modal__box--gift .modal__title { padding-inline: 36px; }
.gift { margin: 4px 0 22px; }
.gift__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 52vh;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 176, 46, 0.4);
  box-shadow: 0 30px 60px -30px rgba(255, 176, 46, 0.6);
}
.gift__bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(30px) brightness(0.45);
  pointer-events: none;
}
.gift__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(24px) saturate(0.4);
  transform: scale(1.08);
  transition: opacity 1.2s ease 0.35s, filter 1.4s var(--ease-out) 0.35s, transform 1.6s var(--ease-out) 0.35s;
}
.modal.is-open .gift__img { opacity: 1; filter: none; transform: none; }
/* Блик, пробегающий по фото после проявления */
.gift__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.modal.is-open .gift__shine { animation: shine 1.2s ease-out 1.5s 1 forwards; }
@keyframes shine { to { transform: translateX(120%); } }
.gift__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.modal__box--form .form { gap: 18px; margin-top: 4px; }
/* Промо-плашка «получи ответную» над кнопкой отправки интимки */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 46, 0.12);
  border: 1px solid rgba(255, 176, 46, 0.45);
  color: var(--text);
  overflow: hidden;
}
.promo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 220, 150, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: promo-shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes promo-shine {
  0% { transform: translateX(-120%); }
  22% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.promo__icon { flex: none; width: 28px; height: 28px; color: var(--accent); transform-origin: 50% 90%; }
.promo__text { font-size: 14px; line-height: 1.4; font-weight: 500; }
.promo__text::first-line { color: #ffd48a; }
/* Подарок покачивается, когда курсор на кнопке отправки */
.form:has(#braveSubmit:hover) .promo__icon { animation: gift-wobble 0.7s var(--ease-out) infinite; }
@keyframes gift-wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg) translateY(-1px); }
  75% { transform: rotate(9deg) translateY(-1px); }
}
.modal__text--tight { margin-top: -12px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: grid; place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
  z-index: 2;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); transform: rotate(90deg); }
.modal__img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 26px 0 22px; /* сверху место под кнопку закрытия */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-right: 32px;
}
.modal__box--center .modal__title { padding-right: 0; }
.modal__text { margin: 12px 0 22px; color: var(--muted); font-size: 15.5px; }
.modal__small { margin: -10px 0 22px; font-size: 13px; color: var(--muted); }
.modal__check { color: var(--ok); margin: 6px auto 18px; width: 56px; }
.modal__check svg { width: 56px; height: 56px; }
.modal__check-path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.is-open .modal__check-path { animation: draw 0.6s 0.25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Карусель */
.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  touch-action: pan-y;
  cursor: grab;
}
.carousel__viewport.is-dragging { cursor: grabbing; }
.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}
.carousel__track.is-dragging { transition: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; margin: 0; }
/* Кадр фиксированной пропорции: фото целиком (contain), поля заполняет размытая копия */
.carousel__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-deep);
}
.carousel__bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(30px) brightness(0.45) saturate(1.2);
  pointer-events: none;
}
.carousel__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}
.carousel__caption {
  min-height: 22px;
  padding: 10px 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
@media (min-width: 600px) {
  .carousel__media { aspect-ratio: 4 / 3; }
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -54px; /* центр кадра с учётом подписи и футера */
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  display: grid; place-items: center;
  background: rgba(16, 19, 46, 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.carousel__arrow:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.carousel__dots { display: flex; gap: 6px; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s var(--ease-out), background-color 0.2s;
}
.carousel__dot.is-active { width: 22px; background: var(--accent); }
.carousel__counter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Тосты ---------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(calc(100% - 32px), 460px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg-deep);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Режим 2005 года (прикол № 8) ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.veil.is-on { opacity: 1; }
.marquee {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  overflow: hidden;
  background: #ff00ff;
  color: #ffff00;
  font-weight: 700;
  font-size: 18px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0.6s;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 60px; padding-left: 100vw; animation: marquee 12s linear infinite; }
.marquee__track span { padding-right: 60px; }
@keyframes marquee { to { transform: translateX(-100%); } }
html.ugly-2005 .marquee { opacity: 1; visibility: visible; }
html.ugly-2005, html.ugly-2005 body, html.ugly-2005 * {
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive !important;
}
html.ugly-2005 body {
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000) !important;
  background-size: 400% 100% !important;
  animation: rainbow 2s linear infinite;
  color: #000080;
}
@keyframes rainbow { to { background-position: 400% 0; } }
html.ugly-2005 .hero__glow, html.ugly-2005 body::before { display: none; }
html.ugly-2005 .header { background: #00ffff !important; color: #0000ff; }
html.ugly-2005 .header .logo { color: #ff0000; }
html.ugly-2005 h1, html.ugly-2005 h2, html.ugly-2005 h3 {
  color: #ffff00 !important;
  text-shadow: 2px 2px 0 #ff0000, 4px 4px 0 #0000ff;
  animation: blink 1s steps(2, start) infinite;
}
html.ugly-2005 .hero__bubble { background: #00ff00 !important; color: #ff00ff !important; }
html.ugly-2005 .card, html.ugly-2005 .brave__card, html.ugly-2005 .booking__panel, html.ugly-2005 .support__panel, html.ugly-2005 .picker__zone, html.ugly-2005 .input, html.ugly-2005 .footer, html.ugly-2005 .meme-card {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px ridge #808080 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html.ugly-2005 .card__text, html.ugly-2005 .field__label, html.ugly-2005 .field__note, html.ugly-2005 .section__lead, html.ugly-2005 .hero__lead, html.ugly-2005 .footer__muted, html.ugly-2005 .sure__count, html.ugly-2005 .time-tab, html.ugly-2005 .input, html.ugly-2005 .queue {
  color: #000080 !important;
}
html.ugly-2005 .btn--primary {
  background: linear-gradient(#ffff00, #ff8800) !important;
  color: #ff0000 !important;
  border: 3px outset #ff8800 !important;
  border-radius: 0 !important;
  animation: blink 0.8s steps(2, start) infinite;
}
html.ugly-2005 .btn--ghost { background: #c0c0c0 !important; color: #000 !important; border: 3px outset #fff !important; border-radius: 0 !important; }
/* Кнопка выключения режима остаётся на своём месте в секции, но заметная и читаемая */
html.ugly-2005 #uglyBtn {
  background: #ffff00 !important;
  color: #ff0000 !important;
  border: 4px outset #ff00ff !important;
  box-shadow: 4px 4px 0 #000 !important;
  animation: none;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .why__grid { gap: 14px; }
  .why__card { padding: 26px 22px 28px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: 2; }
  .portrait { width: min(100%, 320px); }
  .hero__queue-row { display: grid; justify-items: start; }
  .hero__queue-row .queue { margin-bottom: 2px; }
  .hero__queue-row .meme-card { --meme-w: 136px; }
  .why__grid { grid-template-columns: 1fr; max-width: 520px; }
  .meme-break { margin-block: -18px; }
  .sure__memes { justify-content: center; }
  .sure__memes .meme-card { --meme-w: 132px; }
  .booking__panel .field:has(.meme-card--form) { grid-template-columns: 1fr; }
  .booking__panel .field:has(.meme-card--form) > .field__label,
  .booking__panel .field:has(.meme-card--form) > .durations,
  .booking__panel .field:has(.meme-card--form) > .field__error,
  .meme-card--form { grid-column: 1; }
  .meme-card--form {
    grid-row: auto;
    justify-self: center;
    --meme-w: min(100%, 260px);
    order: 2;
    margin-block: 4px 8px;
  }
  .brave__memes { justify-content: center; }
  .brave__memes .meme-card--m { --meme-w: 176px; }
  .brave__memes .meme-card--s { --meme-w: 132px; }
  .btn--xl { padding: 20px 36px; font-size: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .why__grid { grid-template-columns: 1fr; }
  .durations { grid-template-columns: 1fr; }
  .support-amounts { grid-template-columns: 1fr; }
  .support-transfer { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .form__actions .runaway-slot { width: 100%; }
  .runaway.is-fixed { width: auto; }
  .btn--lg { padding: 16px 24px; font-size: 16px; }
  .hero__lead { font-size: 16px; }
  .badge { font-size: 12.5px; padding: 7px 12px 7px 10px; align-items: flex-start; text-wrap: balance; }
  .badge__dot { margin-top: 0.45em; }
  .footer__inner { flex-direction: column; }
  .modal { padding: 12px; align-items: end; }
  .modal__box { padding: 24px 20px; }
  .modal__box--meme { padding: 18px 14px; }
  .meme-viewer__img { max-height: 66vh; }
  .carousel__arrow { width: 38px; height: 38px; font-size: 26px; }
  .logo { font-size: 13.5px; }
  .header .btn--sm { padding: 9px 14px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 2.1rem; }
  .calendar { padding: 12px; }
  .chip span { padding: 8px 11px; font-size: 13.5px; }
}

/* ---------- Уважаем reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-intro], .reveal { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
  .btn--pulse::after { display: none; }
  .promo::after { display: none; }
  .promo__icon { animation: none !important; }
}
