/* ==========================================================
   Зал «Пульс» — дизайн-система в CSS
   Палитра снята с фотографий: тёмный эспрессо и тёплый свет студии,
   пыльная роза гамаков, янтарь ламп и дерева, шампань для текста.
   Описание решений: Obsidian → Dance Studio Booking → DESIGN.md
   ========================================================== */

:root {
  /* поверхности: светлый тёплый крем, как стены зала днём */
  --bg: #f8f2eb;
  --bg-2: #f2e9df;
  --surface: #fffbf7;
  --surface-2: #f4ebe2;
  --line: #e3d5c8;
  --line-soft: #ede3d9;

  /* текст */
  --text: #2a211b;              /* эспрессо */
  --muted: #76675a;
  --ink: #ffffff;               /* текст на акцентных заливках */

  /* акценты (имена переменных прежние, чтобы не трогать весь CSS) */
  --violet: #9c5a6a;            /* пыльная роза, глубже — чтобы читалась на светлом */
  --violet-deep: #7d4454;
  --spark: #b5793f;             /* янтарь */
  --danger: #b4323c;

  /* «тёмный остров»: текст поверх фотографий и в просмотре фото */
  --on-photo: #f8efe6;
  --on-photo-muted: #d9c9ba;

  /* тарифы в календаре */
  --day: var(--violet);
  --peak: var(--spark);

  /* шрифты */
  --font-hero: "Unbounded", "Arial", system-ui, sans-serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;   /* каллиграфия: название и логотип */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* форма и ритм */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* слои */
  --z-top: 20;
  --z-modal: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }   /* атрибут height у <img> не должен ломать пропорции */
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.spark { fill: var(--spark); flex: 0 0 auto; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 1.5px solid var(--violet);
  background: var(--violet); color: var(--ink);
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--violet-deep); border-color: var(--violet-deep); box-shadow: 0 10px 24px -12px rgba(125, 68, 84, .55); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
/* контурная кнопка с двойной рамкой, как на референсе */
.btn-ghost { background: transparent; color: var(--violet); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.btn-ghost:hover { background: rgba(156, 90, 106, .08); color: var(--text); border-color: var(--violet); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--violet); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; color: var(--violet); display: grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover:not(:disabled) { background: rgba(227, 175, 186, .14); border-color: var(--violet); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 12px; z-index: var(--z-top);
  max-width: var(--maxw); margin: 12px auto 0; padding: 8px 12px 8px 22px;
  width: calc(100% - 2 * var(--gutter));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(252, 248, 243, .86); border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(70, 45, 30, .35);
  border-radius: 999px; backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-hero); font-weight: 500; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--violet); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- общие секции ---------- */
.section, .hero { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px) 0; }
h2 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05; letter-spacing: -.01em; color: var(--violet); text-align: center;
}
h2::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 14px; background: var(--spark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.3; }
.section-lead { color: var(--muted); max-width: 58ch; margin: 16px auto 0; font-size: 18px; text-align: center; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
/* шапка висит поверх фото: секция поднимается под неё */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  max-width: none; margin-top: -84px; min-height: min(100svh, 980px); padding: 0; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: min(66%, 1100px); z-index: -1; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(248, 242, 235, .78) 16%, rgba(248, 242, 235, 0) 44%),
    linear-gradient(0deg, var(--bg) 0%, rgba(248, 242, 235, 0) 24%),
    linear-gradient(180deg, rgba(248, 242, 235, .7) 0%, rgba(248, 242, 235, 0) 16%); }
.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 150px var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 600px) 1fr; gap: 32px; align-items: end; }
.hero-text { position: relative; }
.hero h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(64px, 9.4vw, 140px); line-height: .9;
  letter-spacing: -.01em; color: var(--text); margin-top: 18px; }
.hero h1 em { display: inline-flex; align-items: flex-start; gap: 6px; font-style: normal; color: var(--violet); }
/* название залом каллиграфией */
.logo { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--violet); line-height: 1; }
.brand .logo { font-size: 30px; white-space: nowrap; }
.logo--foot { font-size: 28px; }
.hero h1.logo-title { font-family: var(--font-script); font-weight: 400; font-size: clamp(64px, 9vw, 136px); line-height: 1.05; letter-spacing: 0; color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }
.top-phone svg { color: var(--violet); }
.top-phone:hover { color: var(--violet); }
/* значок личного кабинета; точка — вход выполнен */
.top-tg { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--violet); background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s; }
.top-tg:hover { border-color: var(--violet); background: var(--surface-2); }
.top-tg:focus-visible { outline: 3px solid rgba(227, 175, 186, .45); outline-offset: 2px; }
.top-account { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--violet); background: var(--surface); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.top-account:hover { border-color: var(--violet); background: var(--surface-2); }
.top-account:focus-visible { outline: 3px solid rgba(227, 175, 186, .45); outline-offset: 2px; }
.top-account.is-in::after { content: ""; position: absolute; right: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #3fa66b; border: 2px solid var(--surface); }
.h1-spark { margin-top: .1em; width: .26em; height: .26em; fill: var(--spark); animation: twinkle 3.2s ease-in-out infinite; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
/* три факта ровной сеткой с тонкими разделителями */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 540px; margin-top: 40px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 2px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-family: var(--font-serif); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--text); white-space: nowrap; }
.facts span { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* карточка с настоящим фото зала: честно показываем, куда клиент придёт */
.hero-real { justify-self: end; width: clamp(220px, 21vw, 270px); margin: 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 60px -24px rgba(70, 45, 30, .35); }
.hero-real img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-real figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; }
.hero-real b { font-family: var(--font-serif); font-weight: 600; font-size: 22px; color: var(--text); }
.hero-real span { font-size: 13px; color: var(--muted); }

/* на широких экранах карточка выходит к краю шапки и не закрывает танцовщицу */
@media (min-width: 1340px) { .hero-real { margin-right: calc(-1 * var(--gutter)); } }



@keyframes twinkle { 0%, 100% { transform: scale(.85) rotate(0); opacity: .75; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
.badge { position: absolute; top: 112px; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); z-index: 2; width: clamp(92px, 10vw, 124px); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- слайдеры: на всю ширину экрана, активный кадр по центру, соседние видны слева и справа ---------- */
.hall { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.hall-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.hall-head p { margin-top: 12px; color: var(--muted); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.slider-count { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.slider { --slide: min(820px, 58vw); position: relative; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); padding-inline: calc((var(--vw, 100vw) - var(--slide)) / 2); scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline: 3px solid rgba(227, 175, 186, .45); outline-offset: 4px; }
.slide { position: relative; flex: 0 0 var(--slide); aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); scroll-snap-align: center;
  opacity: .55; transition: opacity .4s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.slide:hover img { transform: scale(1.03); }
.slide-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; }
.slide-cap b, .slide-cap small { padding: 8px 16px; border-radius: 999px; background: rgba(24, 18, 15, .9); border: 1px solid var(--line); }
.slide-cap b { font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.2; }
.slide-cap small { font-size: 13px; color: var(--on-photo); font-variant-numeric: tabular-nums; }

/* ---------- шаги: фото слева, список справа ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.how h2 { text-align: left; }
.how h2::before { margin-left: 0; }
.how-photos { position: relative; aspect-ratio: 4 / 5; }
.how-photos img { position: absolute; height: auto; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: 0 24px 60px -28px rgba(70, 45, 30, .28); }
.how-a { left: 0; top: 0; width: 70%; aspect-ratio: 2 / 3; object-position: 38% 50%; }
.how-b { right: 0; bottom: 0; width: 48%; aspect-ratio: 1; box-shadow: 0 0 0 6px var(--bg), 0 24px 60px -28px rgba(70, 45, 30, .28); }
.steps { display: grid; gap: 4px; margin-top: 32px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 1; color: var(--violet); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- тарифы ---------- */
.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.tariff { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); border: 1px solid; background: var(--surface); text-align: center; position: relative; overflow: hidden; isolation: isolate; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; transition: box-shadow .3s var(--ease), transform .3s var(--ease); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.tariff:hover { transform: translateY(-4px); }
.tariff-day { border-color: color-mix(in srgb, var(--violet) 55%, transparent); background: radial-gradient(80% 70% at 50% 0%, rgba(227, 175, 186, .16), transparent 70%), var(--surface); }
.tariff-peak { border-color: color-mix(in srgb, var(--spark) 55%, transparent); background: radial-gradient(80% 70% at 50% 0%, rgba(232, 178, 124, .15), transparent 70%), var(--surface); }
.tariff-day:hover, .tariff-peak:hover { box-shadow: 0 18px 40px -18px rgba(70, 45, 30, .28); }
.tariff-name { align-self: center; padding: 8px 18px; border-radius: 999px; border: 1px solid currentColor; background: rgba(18, 14, 12, .72);
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 15px; line-height: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.tariff-day .tariff-name { color: #f5c6d0; }
.tariff-peak .tariff-name { color: #f6c896; }
.tariff-day .tariff-photo { object-position: 50% 30%; }
.tariff-price { font-family: var(--font-serif); font-weight: 600; font-size: clamp(60px, 9vw, 104px); line-height: 1; margin-top: 14px; }
.tariff-price small { font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.tariff-time { margin-top: 10px; font-size: 18px; font-weight: 600; }
.tariff-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.timeline { margin-top: 32px; max-width: 760px; margin-inline: auto; }
.tl-bar { display: flex; gap: 4px; height: 8px; }
.tl-bar i { border-radius: 999px; }
.tl-bar .d { background: var(--violet); }
.tl-bar .p { background: var(--spark); }
.tl-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.tariff-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tariff-peak .tariff-photo { object-position: 70% 60%; }
.tariff::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(18, 14, 12, .92) 0%, rgba(18, 14, 12, .55) 55%, rgba(18, 14, 12, .2) 100%); }
.tariff:hover .tariff-photo { transform: scale(1.04); }
.tariff > p { pointer-events: none; }

/* ---------- запись ---------- */
.booking { padding-bottom: 8px; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 44px; }
.cal-card, .summary { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 3vw, 30px); color: var(--violet); text-align: center; }

.week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 5px; }
.wk-day { text-align: center; padding-bottom: 6px; line-height: 1.2; }
.wk-day b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk-day span { font-family: var(--font-serif); font-weight: 600; font-size: 24px; }
.wk-day.today span { color: var(--spark); }
.wk-time { align-self: center; text-align: right; padding-right: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.slot {
  min-height: 44px; border-radius: var(--r-sm); border: 1px solid; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s, color .15s;
}
.slot.day { background: rgba(156, 90, 106, .07); border-color: rgba(156, 90, 106, .35); color: var(--violet); }
.slot.peak { background: rgba(181, 121, 63, .1); border-color: rgba(181, 121, 63, .45); color: #8f5a28; }
.slot.day:hover, .slot.peak:hover { transform: translateY(-2px); }
.slot.day:hover { background: rgba(156, 90, 106, .16); border-color: var(--violet); }
.slot.peak:hover { background: rgba(181, 121, 63, .2); border-color: var(--spark); }
.slot.sel { background: var(--violet); border-color: var(--violet); color: var(--ink); }
.slot.sel::before { content: "✓"; font-weight: 800; }
.slot.busy, .slot.past {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--surface) 5px 10px);
  border-color: var(--line-soft); color: #8a7a6c; cursor: not-allowed;
}
.slot.past { opacity: .45; }

.day-view { display: none; }
.daytabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: thin; }
.daytab { flex: 0 0 auto; min-width: 58px; min-height: 68px; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; text-align: center; line-height: 1.2; padding: 6px 8px; }
.daytab b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.daytab span { font-family: var(--font-serif); font-weight: 600; font-size: 24px; }
.daytab[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: var(--ink); }
.daytab[aria-selected="true"] b { color: var(--ink); }
.daytab:disabled { opacity: .6; color: var(--muted); cursor: not-allowed; }
.slotlist { display: grid; grid-template-columns: 1fr; gap: 8px; }   /* блоки по 2 часа: время и цена в одну строку */
.slotlist .slot { justify-content: space-between; padding: 0 14px; font-size: 15px; min-height: 52px; }
.slotlist .slot.sel { justify-content: flex-start; gap: 8px; }
.slotlist .slot.sel .p-val { margin-left: auto; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 18px; border-radius: 6px; border: 1px solid; display: inline-block; }
.lg-day { background: rgba(156, 90, 106, .12); border-color: var(--violet); }
.lg-peak { background: rgba(181, 121, 63, .16); border-color: var(--spark); }
.lg-busy { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--surface) 3px 6px); border-color: var(--line); }
.lg-sel { background: var(--violet); border-color: var(--violet); }

/* ---------- сводка и форма ---------- */
.summary-photo { width: 100%; height: 220px; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 16px; }
.summary { position: sticky; top: 92px; }
.summary h3 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; color: var(--violet); margin-bottom: 16px; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; display: grid; justify-items: center; gap: 14px; }
.chosen { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed var(--line); }
.chosen-date { font-weight: 700; font-size: 18px; }
.chosen-date::first-letter { text-transform: uppercase; }
.chosen-time { font-family: var(--font-serif); font-weight: 600; font-size: 40px; line-height: 1.1; margin-top: 2px; font-variant-numeric: lining-nums; }
.lines { margin-top: 10px; color: var(--muted); font-size: 14px; }
.lines li { display: flex; justify-content: space-between; padding: 2px 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.total span { color: var(--muted); }
.total b { font-family: var(--font-serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--spark); white-space: nowrap; flex: 0 0 auto; }

.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); transition: border-color .2s;
}
textarea { resize: vertical; min-height: 68px; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(227, 175, 186, .45); outline-offset: 0; border-color: var(--violet); }
input[aria-invalid="true"] { border-color: var(--danger); }
/* автозаполнение браузера: без голубой заливки, в цвет остальных полей */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--bg) inset; box-shadow: 0 0 0 40px var(--bg) inset;
  transition: background-color 9999s ease-out 0s;
}
.err { color: var(--danger); font-size: 13px; margin-top: 4px; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--violet); flex: 0 0 auto; }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.form .btn { margin-top: 10px; }

/* ---------- правила ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); margin-top: 44px; }
.rules h3 { font-family: var(--font-serif); font-weight: 600; font-size: 30px; color: var(--violet); margin-bottom: 14px; }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px; background: var(--spark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 5.4 11.2 12 12-6.6.8-11.2 5.4-12 12-.8-6.6-5.4-11.2-12-12C6.6 11.2 11.2 6.6 12 0z'/%3E%3C/svg%3E") center/contain no-repeat; }

.rules--photos { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
.rules-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; order: 3; }
.rules-photos img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ---------- контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); margin-top: 44px; align-items: stretch; }
.contact-line { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line-soft); font-size: 20px; font-weight: 600; }
.contact-line span { color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--violet); }
.map { min-height: 280px; border-radius: var(--r-lg); border: 1px dashed var(--line); background: repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--bg-2) 12px 24px); display: grid; place-items: center; color: var(--muted); }

.foot { max-width: var(--maxw); margin: clamp(72px, 10vw, 120px) auto 0; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; font-size: 14px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.foot-req { color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; margin: 0; }
.foot-side { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 720px) { .foot { flex-direction: column; align-items: flex-start; } .foot-req { text-align: left; } .foot-side { justify-items: start; } }

/* ---------- окно оплаты ---------- */
dialog { padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; z-index: var(--z-modal); }
dialog::backdrop { background: rgba(8, 6, 11, .8); }
.pay { padding: clamp(22px, 4vw, 38px); }
.chip { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(232, 178, 124, .14); border: 1px solid var(--spark); color: var(--spark); }
.chip.cancelled { background: rgba(255, 154, 154, .14); border-color: var(--danger); color: var(--danger); }
.pay h2 { text-align: left; font-size: clamp(32px, 6vw, 44px); margin-top: 14px; }
.pay h2::before { display: none; }
.pay-when { margin-top: 6px; font-weight: 700; font-size: 18px; text-transform: capitalize; }
.pay-sum { margin-top: 14px; color: var(--muted); }
.pay-sum b { color: var(--text); }
.timer { font-family: var(--font-hero); font-weight: 300; font-size: clamp(34px, 8vw, 46px); margin-top: 8px; color: var(--violet); font-variant-numeric: tabular-nums; }
.pay-status { margin-top: 14px; font-size: 17px; }
.pay-widget { margin-top: 18px; min-width: 288px; min-height: 120px; color: var(--muted); }
.fake-widget { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px; color: var(--text); }
.fake-widget .pay-actions { margin-top: 12px; }
.req { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 16px; }
.req > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.req > div:last-child { border-bottom: 0; }
.req dt { color: var(--muted); font-size: 14px; }
.req dd { display: flex; align-items: center; gap: 10px; font-weight: 600; text-align: right; }
.copy { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--violet); font-size: 13px; font-weight: 600; transition: background-color .2s, border-color .2s; }
.copy:hover { border-color: var(--violet); background: rgba(227, 175, 186, .14); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; margin-top: 24px; }
.pay .hint { text-align: left; }
.demo { margin-top: 14px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- состояния обмена с сервером ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin: 6px 0 0; text-align: center; }
.sel-note { margin-top: 8px; min-height: 0; color: var(--spark); text-align: left; }
.sel-note:empty { display: none; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--danger); background: rgba(255, 154, 154, .08); color: var(--text); font-size: 15px; }
.link-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--violet); font-weight: 600; }
.link-btn:hover { border-color: var(--violet); background: rgba(227, 175, 186, .12); }
.week[aria-busy="true"], .slotlist[aria-busy="true"] { opacity: .55; }
.pay .err { margin-top: 12px; }

/* ---------- появление при прокрутке ---------- */
/* ==========================================================
   Хореография появления.
   Кривая — «плавная остановка», как погашенное движение в конце фразы.
   Группы появляются каноном: каждый следующий элемент на долю счёта позже.
   Двигаем только translate / rotate / scale / opacity / filter / clip-path,
   поэтому transform остаётся свободным для эффектов наведения.
   ========================================================== */
:root { --ease-dance: cubic-bezier(.22, 1, .36, 1); --count: 90ms; --glide: 64px; }

@keyframes curtain   { from { clip-path: inset(100% 0 0 0); scale: 1.1; } to { clip-path: inset(0 0 0 0); scale: 1; } }
@keyframes write     { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -8% -30% -4%); } }
@keyframes rise      { from { opacity: 0; translate: 0 32px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes drop      { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
@keyframes glide-r   { from { opacity: 0; translate: var(--glide) 0; rotate: 2deg; filter: blur(6px); } to { opacity: 1; translate: 0 0; rotate: 0deg; filter: blur(0); } }
@keyframes pirouette { from { opacity: 0; rotate: -200deg; scale: .3; } to { opacity: 1; rotate: 0deg; scale: 1; } }
@keyframes badge-in  { from { opacity: 0; scale: .5; rotate: -120deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* первый экран: сцена открывается как занавес, название «пишется» от руки, остальное выходит каноном */
.js .top          { animation: drop 1s var(--ease-dance) both; }
.js .hero-photo   { animation: curtain 1.8s var(--ease-dance) .05s both; }
.js .logo-title   { animation: write 1.6s cubic-bezier(.65, 0, .35, 1) .3s both; }
.js .h1-spark     { animation: pirouette 1s var(--ease-dance) 1.6s both, twinkle 3.2s ease-in-out 2.6s infinite; }
.js .hero .lead   { animation: rise 1.1s var(--ease-dance) .7s both; }
.js .hero .cta-row .btn:nth-child(1) { animation: rise 1.1s var(--ease-dance) .85s both; }
.js .hero .cta-row .btn:nth-child(2) { animation: rise 1.1s var(--ease-dance) .95s both; }
.js .hero .facts li:nth-child(1) { animation: rise 1.1s var(--ease-dance) 1.05s both; }
.js .hero .facts li:nth-child(2) { animation: rise 1.1s var(--ease-dance) 1.15s both; }
.js .hero .facts li:nth-child(3) { animation: rise 1.1s var(--ease-dance) 1.25s both; }
.js .hero-real    { animation: glide-r 1.3s var(--ease-dance) .9s both; }
.js .badge        { animation: badge-in 1.2s var(--ease-dance) 1.2s both, spin 26s linear 2.4s infinite; }
/* надпись ждёт каллиграфический шрифт (не дольше 0,7 с), остальная сцена стартует сразу */
.js:not(.is-ready) .logo-title, .js:not(.is-ready) .h1-spark { animation-play-state: paused; }

/* появление при прокрутке */
.js [data-reveal] {
  opacity: 0; filter: blur(8px);
  transition: opacity 1s var(--ease-dance), translate 1.2s var(--ease-dance), rotate 1.2s var(--ease-dance), scale 1.2s var(--ease-dance),
              filter 1s var(--ease-dance), clip-path 1.4s var(--ease-dance), letter-spacing 1.4s var(--ease-dance);
  transition-delay: calc(var(--i, 0) * var(--count));
}
.js [data-reveal="rise"]    { translate: 0 40px; }
.js [data-reveal="left"]    { translate: calc(-1 * var(--glide)) 0; rotate: -1.5deg; }
.js [data-reveal="right"]   { translate: var(--glide) 0; rotate: 1.5deg; }
.js [data-reveal="curtain"] { opacity: 1; filter: none; clip-path: inset(100% 0 0 0); scale: 1.06; }
/* заголовок раскрывается, как растяжка: буквы сходятся из широкого разлёта, звёздочка над ним делает пируэт */
.js [data-reveal="stretch"] { translate: 0 20px; letter-spacing: .14em; }
.js [data-reveal="stretch"]::before { opacity: 0; rotate: -200deg; scale: .3; transition: opacity .8s var(--ease-dance) .3s, rotate 1.2s var(--ease-dance) .3s, scale 1.2s var(--ease-dance) .3s; }
.js [data-reveal].in { opacity: 1; filter: blur(0); translate: 0 0; rotate: 0deg; scale: 1; }
.js [data-reveal="curtain"].in { clip-path: inset(0 0 0 0 round var(--r-md)); }
.js [data-reveal="stretch"].in { letter-spacing: -.01em; }
.js [data-reveal="stretch"].in::before { opacity: 1; rotate: 0deg; scale: 1; }
@media (max-width: 720px) { :root { --glide: 36px; } }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: min(64svh, 560px); }
  .hero-photo { object-position: 60% 50%; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(248, 242, 235, 0) 42%), linear-gradient(180deg, rgba(248, 242, 235, .65) 0%, rgba(248, 242, 235, 0) 20%); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 0; margin-top: -120px; position: relative; }
  .hero-real { justify-self: stretch; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
  .hero-real img { height: 100%; min-height: 96px; aspect-ratio: auto; }
  .hero-real figcaption { flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 14px 18px; }
  .facts { max-width: none; margin-top: 32px; }
  .facts li { padding: 2px 14px; }
  .facts b { font-size: clamp(22px, 6.4vw, 28px); }
  .facts span { font-size: 12.5px; }
  .badge { top: 96px; right: var(--gutter); width: 84px; }
  .how { grid-template-columns: 1fr; }
  .how-photos { max-width: 420px; width: 100%; justify-self: center; }
  .rules--photos { grid-template-columns: 1fr 1fr; }
  .rules-photos { grid-column: 1 / -1; order: 0; }
  .rules-photos img { min-height: 0; aspect-ratio: 3 / 4; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .summary-photo { display: none; }
}
@media (max-width: 480px) {
  .req dd { width: 100%; justify-content: space-between; text-align: left; }
  .pay-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .week { display: none; }
  .day-view { display: block; }
  .tariffs, .rules, .rules--photos, .contact-grid { grid-template-columns: 1fr; }
  .slider { --slide: 84vw; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- уважение к настройке «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .h1-spark { animation: none; }
  .slide, .slide img, .tariff-photo, .map-photo { transition: none; }
  .slider { scroll-behavior: auto; }
  .js .top, .js .hero-photo, .js .logo-title, .js .h1-spark, .js .hero .lead, .js .hero .cta-row .btn, .js .hero .facts li, .js .hero-real, .js .badge { animation: none !important; }
  .js [data-reveal], .js [data-reveal]::before { opacity: 1; filter: none; translate: none; rotate: none; scale: none; clip-path: none; letter-spacing: normal; transition: none; }
  .js [data-reveal="stretch"] { letter-spacing: -.01em; }
  .btn, .slot, .tariff { transition: none; }
}

/* формат аренды и число людей в форме */
.field-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; }
/* подпись, поле и ошибка в общих строках: если подпись переносится, поля всё равно стоят на одной линии */
.field-row .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.field-row .field label { align-self: end; }
.field-row .opt { white-space: nowrap; }

/* ссылка на карту вместо заглушки */
.map-link { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; text-decoration: none; color: var(--text); }
.map-link .map-addr { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
.map-link .map-floor { color: var(--muted); }
.map-link b { margin-top: 10px; color: var(--violet); }
.map-link:hover b { text-decoration: underline; }

.map-link--photo { position: relative; isolation: isolate; overflow: hidden; border-style: solid; background: var(--surface); }
.map-photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s var(--ease); }
.map-link--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 14, 12, .92), rgba(18, 14, 12, .2)); }
.map-link--photo:hover .map-photo { transform: scale(1.04); }

/* ---------- фото открываются по нажатию ---------- */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }

/* ---------- просмотр фото ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(12, 9, 8, .96); color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(12, 9, 8, .9); }
.lb-figure { height: 100%; margin: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 20px; touch-action: pan-y; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: var(--r-sm); user-select: none; -webkit-user-drag: none; }
.lb-figure figcaption { display: flex; gap: 16px; align-items: baseline; justify-content: center; max-width: 72ch; padding: 14px 12px 0; font-size: 15px; }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(31, 24, 20, .85); color: var(--text); cursor: pointer; }
.lb-btn:hover { border-color: var(--violet); color: var(--violet); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
@media (max-width: 720px) {
  .lb-figure { padding: 64px 8px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- живая карта: вся карточка ведёт в Яндекс Карты ---------- */
.contact-line small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.map-live { position: relative; display: block; overflow: hidden; min-height: 320px; border-style: solid; background: var(--surface); text-decoration: none; color: var(--text); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; filter: saturate(.85); transition: transform .8s var(--ease); }
.map-live:hover .map-img { transform: scale(1.03); }
.map-attr { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 251, 247, .85); color: #5a4b40; font-size: 11px; line-height: 1.4; }
.map-cap { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 96px); display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r-md); background: rgba(18, 14, 12, .88); border: 1px solid var(--line); }
.map-cap b { font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.map-cap span { color: var(--muted); font-size: 14px; }
.map-cap em { margin-top: 6px; font-style: normal; font-weight: 600; color: var(--violet); }
.map-live:hover .map-cap em { text-decoration: underline; }
.rules-steps { counter-reset: step; }
.rules-steps li b { color: var(--text); font-weight: 700; }
.check a { color: var(--violet); }

/* планшеты и узкие окна: в шапке не хватает места на меню, телефон и кнопку — телефон становится значком */
@media (max-width: 1120px) {
  .top-phone span { display: none; }
  .top-phone { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--line); }
}
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 720px) {
  .brand .logo { font-size: 23px; white-space: nowrap; }
}
/* телефоны: логотип, телефон, личный кабинет и «Записаться» в одну строку */
@media (max-width: 520px) {
  .top { padding: 6px 6px 6px 14px; gap: 8px; }
  .brand .logo { font-size: 20px; }
  .top-actions { gap: 6px; }
  .top-phone, .top-tg, .top-account { width: 40px; height: 40px; min-height: 40px; }
  .top-actions .btn-sm { min-height: 40px; padding: 0 13px; font-size: 14px; }
}
/* узкие телефоны: в шапке ещё и Telegram — уменьшаем значки и логотип, чтобы «Записаться» не уезжала за край */
@media (max-width: 410px) {
  .top { padding: 5px 5px 5px 12px; gap: 6px; }
  .brand .logo { font-size: 17px; }
  .top-actions { gap: 4px; }
  .top-phone, .top-tg, .top-account { width: 36px; height: 36px; min-height: 36px; }
  .top-phone svg, .top-tg svg, .top-account svg { width: 17px; height: 17px; }
  .top-actions .btn-sm { min-height: 36px; padding: 0 11px; font-size: 13px; }
}
/* самые узкие экраны (320 px): Telegram остаётся в «Контактах» */
@media (max-width: 340px) { .top-tg { display: none; } }

/* сдвинутые до появления блоки не должны давать горизонтальную прокрутку */
main, .foot { overflow-x: clip; }

/* выбор нескольких промежутков */
.lines li.range span:first-child { color: var(--text); }
.lines li.range { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.lines li.clear-line { justify-content: flex-start; padding-top: 10px; }
.daytab.has-pick { position: relative; }
.daytab.has-pick::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* ---------- кнопка «Наверх» (только телефон) ---------- */
.to-top { display: none; }
@media (max-width: 720px) {
  .to-top {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255, 251, 247, .92); color: var(--violet);
    backdrop-filter: blur(8px); box-shadow: 0 10px 28px -12px rgba(70, 45, 30, .28); cursor: pointer;
    opacity: 0; translate: 0 14px; pointer-events: none;
    transition: opacity .35s var(--ease-dance), translate .45s var(--ease-dance), border-color .2s;
  }
  .to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
  .to-top:active { border-color: var(--violet); }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- текст поверх фотографий: свои светлые цвета ---------- */
.tariff, .slide-cap, .map-cap, .lightbox, .lb-btn {
  --text: var(--on-photo); --muted: var(--on-photo-muted); --line: rgba(248, 239, 230, .28); --violet: #e8b3bf; --spark: #ecb886;
  color: var(--text);
}
.tariff-price small { color: var(--on-photo-muted); }

/* ---------- документы: политика и согласие ---------- */
.doc-top { max-width: 820px; margin: 0 auto; padding: 28px var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.doc-top .logo { font-size: 30px; text-decoration: none; }
.doc-back { color: var(--violet); font-weight: 600; font-size: 15px; text-decoration: none; }
.doc-back:hover { text-decoration: underline; }
.doc { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 0; line-height: 1.65; }
.doc-kicker { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.doc h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; color: var(--violet); margin: 0 0 28px; text-align: left; }
.doc h1::before { content: none; }
.doc h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; color: var(--text); margin: 36px 0 12px; text-align: left; }
.doc h2::before { content: none; }
.doc p, .doc li { font-size: 16px; color: var(--text); max-width: 72ch; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--spark); }
.doc a, .foot a:not(.logo) { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.foot .logo { text-decoration: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin: 0; }

.ask-gear { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ask-gear a { color: var(--violet); }

/* ночные часы под стрелкой */
.night-toggle { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px dashed var(--line); border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.night-toggle:hover { color: var(--violet); border-color: var(--violet); background: var(--surface-2); }
.night-toggle svg { transition: transform .25s var(--ease); }
.night-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* постоянная бронь: «Разово / Каждую неделю» */
.freq { border: 0; margin: 4px 0 16px; padding: 0; min-width: 0; }
.freq legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; text-align: center; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--violet); color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid rgba(227, 175, 186, .6); outline-offset: 1px; }
.weekly-info { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.weekly-info p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--text); }
.weekly-info .check { margin-bottom: 0; }

/* оплата: СБП первой кнопкой над формой ЮKassa */
.pay-sbp { margin: 6px 0 14px; }
/* кнопка СБП: белая, с фирменным знаком СБП слева — так её узнают по приложениям банков */
.sbp-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px 12px 18px; border-radius: 18px; border: 1px solid #ddd3e4; background: #ffffff; color: #1b0a40; text-align: left; cursor: pointer; box-shadow: 0 10px 26px -18px rgba(27, 10, 64, .45); transition: border-color .2s, box-shadow .2s, transform .2s; }
.sbp-btn:hover { border-color: #8f7fb4; box-shadow: 0 14px 30px -16px rgba(27, 10, 64, .5); transform: translateY(-1px); }
.sbp-btn:focus-visible { outline: 3px solid rgba(13, 144, 205, .45); outline-offset: 2px; }
.sbp-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.sbp-mark { flex: 0 0 auto; width: 30px; height: 35px; }
.sbp-txt { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; }
.sbp-txt b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.sbp-txt small { font-size: 13px; line-height: 1.35; color: #5b5470; }
.sbp-go { flex: 0 0 auto; color: #8f7fb4; }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; color: var(--muted); font-size: 13px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

.section-lead a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* крестик закрытия окна оплаты: прилипает к верху, пока окно прокручивается */
.pay { position: relative; }
.pay-x { position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -12px 0 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.pay-x:hover { color: var(--text); border-color: var(--muted); background: var(--surface-2); }
.pay-x:focus-visible { outline: 3px solid rgba(227, 175, 186, .6); outline-offset: 2px; }

/* ссылка в личный кабинет после оплаты постоянной брони */
#payMail .btn { display: flex; width: fit-content; margin-top: 12px; }

/* ---------- об аренде зала: тексты и частые вопросы внизу главной ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px clamp(24px, 4vw, 56px); margin-top: 44px; }
.about-item { padding: 22px 0 18px; border-top: 1px solid var(--line-soft); }
.about-item h3 { font-family: var(--font-serif); font-weight: 600; font-size: 26px; line-height: 1.3; color: var(--violet); margin-bottom: 10px; }
.about-item p, .faq-item p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 62ch; }
.about a, .faq a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.faq { max-width: 820px; margin: clamp(48px, 7vw, 80px) auto 0; }
.faq-title { font-family: var(--font-serif); font-weight: 600; font-size: 30px; color: var(--violet); text-align: center; margin-bottom: 18px; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 700; font-size: 17px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; font-size: 24px; line-height: 1; font-weight: 400; color: var(--spark); transition: rotate .25s var(--ease); }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary:hover { color: var(--violet); }
.faq-item summary:focus-visible { outline: 3px solid rgba(227, 175, 186, .6); outline-offset: 2px; border-radius: var(--r-sm); }
.faq-item p { padding: 0 4px 20px; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
