:root {
  --accent: #1a1a1a;
  --accent-text: #fff;
  --bg: #fff;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-faint: #888;
  --border: #eee;
  --border-soft: #f0f0f0;
  --input-border: #ddd;
  --chip-bg: #f3f3f3;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
}

/* Тема «Нежная» — тёплая пастельная палитра. */
.theme-soft {
  --accent: #b8607a;
  --accent-text: #fff;
  --bg: #fdf6f4;
  --text: #3a2a2e;
  --text-muted: #8a6f75;
  --text-faint: #a68a90;
  --border: #f0dde1;
  --border-soft: #f5e6e9;
  --input-border: #e8ced4;
  --chip-bg: #f7e6ea;
  --font: Georgia, "Times New Roman", serif;
  --radius: 16px;
}

/* Тема «Контрастная» — тёмный фон, яркий акцент. */
.theme-bold {
  --accent: #ffd166;
  --accent-text: #14110f;
  --bg: #14110f;
  --text: #f5f0e8;
  --text-muted: #b8ac9e;
  --text-faint: #948777;
  --border: #2a2521;
  --border-soft: #211d19;
  --input-border: #3a332c;
  --chip-bg: #221d19;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
}

/* Тема «STOP-пигментация» (stop_pigment) — палитра линейки GENEVIE STOP-пигментация. */
.theme-stop_pigment {
  --accent: #9c64b4;
  --accent-text: #fff;
  --bg: #f5f0f8;
  --text: #2c1c33;
  --text-muted: #6f507d;
  --text-faint: #9575a2;
  --border: #e7daed;
  --border-soft: #eee5f2;
  --input-border: #dcc9e5;
  --chip-bg: #ebe0f0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Клеточная молодость» (molodost) — палитра линейки GENEVIE Клеточная молодость. */
.theme-molodost {
  --accent: #394c89;
  --accent-text: #fff;
  --bg: #ebedf3;
  --text: #101526;
  --text-muted: #384364;
  --text-faint: #5d688a;
  --border: #d0d4e3;
  --border-soft: #dde1eb;
  --input-border: #bac0d6;
  --chip-bg: #d7dbe7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Мембранный лифтинг» (lifting) — палитра линейки GENEVIE Мембранный лифтинг. */
.theme-lifting {
  --accent: #8a4a42;
  --accent-text: #fff;
  --bg: #f3edec;
  --text: #271512;
  --text-muted: #65423d;
  --text-faint: #8a6762;
  --border: #e3d4d2;
  --border-soft: #ebe0df;
  --input-border: #d6c0bd;
  --chip-bg: #e8dbd9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Циркадные ритмы ночи» (night) — палитра линейки GENEVIE Циркадные ритмы ночи. */
.theme-night {
  --accent: #caa44e;
  --accent-text: #14110f;
  --bg: #161320;
  --text: #ececed;
  --text-muted: #96959b;
  --text-faint: #737179;
  --border: #2d2b36;
  --border-soft: #24212d;
  --input-border: #3b3944;
  --chip-bg: #292632;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
}

/* Тема «Бережная регенерация» (regeneration) — палитра линейки GENEVIE Бережная регенерация. */
.theme-regeneration {
  --accent: #bc5c6a;
  --accent-text: #fff;
  --bg: #f8eff0;
  --text: #351a1e;
  --text-muted: #814c53;
  --text-faint: #a77178;
  --border: #efd8db;
  --border-soft: #f4e3e6;
  --input-border: #e8c6cb;
  --chip-bg: #f2dee1;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Интраактивное сияние» (glow) — палитра линейки GENEVIE Интраактивное сияние. */
.theme-glow {
  --accent: #b98a54;
  --accent-text: #fff;
  --bg: #f8f3ee;
  --text: #342718;
  --text-muted: #7f6547;
  --text-faint: #a58a6c;
  --border: #eee3d6;
  --border-soft: #f3ebe2;
  --input-border: #e6d6c3;
  --chip-bg: #f1e8dd;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Моё солнце» (sun) — палитра линейки GENEVIE Моё солнце. */
.theme-sun {
  --accent: #ce9b4a;
  --accent-text: #fff;
  --bg: #faf5ed;
  --text: #3a2b15;
  --text-muted: #8b6e42;
  --text-faint: #b19467;
  --border: #f3e7d4;
  --border-soft: #f7eee0;
  --input-border: #eedcc0;
  --chip-bg: #f5ebdb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Молекулярное очищение» (cleansing) — палитра линейки GENEVIE Молекулярное очищение. */
.theme-cleansing {
  --accent: #cd4b61;
  --accent-text: #fff;
  --bg: #faedef;
  --text: #39151b;
  --text-muted: #8a424e;
  --text-faint: #b06773;
  --border: #f3d4d9;
  --border-soft: #f7e0e4;
  --input-border: #eec0c8;
  --chip-bg: #f5dbdf;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Себо-контроль» (sebo) — палитра линейки GENEVIE Себо-контроль. */
.theme-sebo {
  --accent: #489696;
  --accent-text: #fff;
  --bg: #edf4f4;
  --text: #142a2a;
  --text-muted: #416c6c;
  --text-faint: #669191;
  --border: #d3e6e6;
  --border-soft: #e0eded;
  --input-border: #bfdada;
  --chip-bg: #daeaea;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «SMART-обновление» (smart) — палитра линейки GENEVIE SMART-обновление. */
.theme-smart {
  --accent: #8a9c4a;
  --accent-text: #fff;
  --bg: #f3f5ed;
  --text: #272c15;
  --text-muted: #656f42;
  --text-faint: #8a9567;
  --border: #e3e7d4;
  --border-soft: #ebeee0;
  --input-border: #d6dcc0;
  --chip-bg: #e8ebdb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «SPA-терапия» (spa) — палитра линейки GENEVIE SPA-терапия. */
.theme-spa {
  --accent: #6d8d35;
  --accent-text: #fff;
  --bg: #f0f4eb;
  --text: #1e270f;
  --text-muted: #556736;
  --text-faint: #7a8c5b;
  --border: #dce4ce;
  --border-soft: #e6ecdd;
  --input-border: #ccd7b8;
  --chip-bg: #e2e8d7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «PRO» (pro) — палитра линейки GENEVIE PRO. */
.theme-pro {
  --accent: #5679ad;
  --accent-text: #fff;
  --bg: #eef2f7;
  --text: #182231;
  --text-muted: #485c79;
  --text-faint: #6d819e;
  --border: #d6dfeb;
  --border-soft: #e2e8f1;
  --input-border: #c4d0e2;
  --chip-bg: #dde4ef;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

/* Тема «Aurora» — живой mesh-градиентный фон, зерно, стеклянные карточки
   (Aurora UI + Grainy Gradient + Glassmorphism). Структурные правила
   (блобы/зерно/glass) — отдельным блоком ниже, после сброса `* {}`. */
.theme-aurora {
  --accent: #b23368;
  --accent-text: #fff;
  --bg: #faf3f8;
  --text: #2b1730;
  --text-muted: #6e4a63;
  --text-faint: #9c7a92;
  --border: #ecd9e8;
  --border-soft: #f3e6f0;
  --input-border: #e0c3d8;
  --chip-bg: rgba(255, 255, 255, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
}

/* Тема «Editorial» — редакционная beauty-журнальная эстетика: тёплые
   нейтральные тона, крупная витринная фотография, засечный заголовок
   (Playfair Display, подключается только для этой темы — см.
   public_page.html) поверх нейтрального sans-текста. Почти прямые углы
   (--radius: 2px) вместо округлых карточек — печатный, а не "мягкий" вид.
   --accent-text тёмный (не белый, как в других темах): этот золотой
   светлее обычного --accent других тем, контраст с белым текстом не
   проходит AA (~2.4:1), с тёмным — ~7.3:1. */
.theme-editorial {
  --accent: #c9a17a;
  --accent-text: #1a1a1a;
  --bg: #f8f5f3;
  --text: #1a1a1a;
  --text-muted: #6b6560;
  --text-faint: #948d86;
  --border: #e0d5c8;
  --border-soft: #ededed;
  --input-border: #d9c7b0;
  --chip-bg: #e7d5c7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 2px;
}
.theme-editorial h1, .theme-editorial h2, .theme-editorial h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
.theme-editorial h1 { font-weight: 700; letter-spacing: -.01em; }
.theme-editorial h2 { font-weight: 600; letter-spacing: -.005em; }
.theme-editorial .btn-primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.theme-editorial .header-avatar {
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 6px 22px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}
/* Контейнер раньше был жёстко зафиксирован в 640px на любом экране —
   на десктопе это выглядело как узкая мобильная колонка в море пустого
   фона. Теперь ширина растёт по шагам вместе с вьюпортом. */
.page { max-width: 640px; margin: 0 auto; }
@media (min-width: 760px) { .page { max-width: 760px; } }
@media (min-width: 1060px) { .page { max-width: 880px; } }
.block { padding: 28px 18px; border-bottom: 1px solid var(--border); }
a { color: var(--accent); }
h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  line-height: 1.12;
  margin: 10px 0 6px;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 {
  position: relative;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 22px;
  padding-bottom: 10px;
  color: var(--accent);
  letter-spacing: -.005em;
  text-wrap: balance;
}
/* Декоративная подчёркивающая чёрточка под заголовком секции — работает
   во всех темах одинаково, потому что берёт цвет из --accent. */
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 35%, #fff) 50%, var(--accent) 100%);
  background-size: 220% 100%;
  animation: barShimmer 3.5s ease-in-out infinite;
}
@keyframes barShimmer {
  0%, 15% { background-position: 100% 0; }
  85%, 100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) {
  h2::after { animation: none; }
}

/* ───── Scroll reveal ─────
   `.block` стартует чуть смещённым и прозрачным, `motion.js` навешивает
   `[data-revealed]` через IntersectionObserver по мере скролла — сам блок
   остаётся видимым (progressive enhancement) если JS не выполнился.
   Первый блок (header) показываем сразу — он и так в зоне видимости при
   загрузке, ждать скролла для него не нужно. */
.block {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.block[data-revealed], .block-header {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .block { opacity: 1; transform: none; transition: none; }
}

.block-header { padding: 0 0 28px; text-align: center; background: var(--chip-bg); overflow: hidden; }
.header-cover {
  width: 100%;
  height: clamp(160px, 26vw, 320px);
  object-fit: cover;
  display: block;
  /* Мягкое растворение нижнего края обложки в фон — убирает жёсткую
     границу "фото / блок", из-за которой шапка смотрелась топорно. */
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}
.header-identity { padding: 0 16px; margin-top: -48px; }
.header-brand-kicker {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}
.header-identity h1 { margin-top: 14px; }
.header-avatar {
  width: clamp(88px, 9vw, 120px);
  height: clamp(88px, 9vw, 120px);
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg); box-shadow: 0 6px 22px rgba(0,0,0,.18);
}
.header-quick-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 4px 16px 0; }
.header-quick-actions a {
  padding: 10px 18px; border-radius: 999px; background: var(--chip-bg); text-decoration: none; color: inherit;
  font-size: .88rem; font-weight: 500; border: 1px solid var(--border-soft);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.header-quick-actions a:hover { transform: translateY(-1px); background-color: color-mix(in srgb, var(--accent) 16%, var(--chip-bg)); }
.header-quick-actions a:active { transform: scale(.96); }
.header-avatar { transition: transform .25s ease; }
.header-avatar:hover { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .header-quick-actions a, .header-avatar { transition: none; }
  .header-quick-actions a:hover, .header-quick-actions a:active, .header-avatar:hover { transform: none; }
}

.btn-primary, .btn-secondary {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius); text-decoration: none; font-size: .9rem;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, border-radius .25s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-text); position: relative; overflow: hidden; isolation: isolate; }
.btn-secondary { background: var(--chip-bg); color: var(--text); }
/* Переливы — тонкий блик, который периодически проходит по заливке кнопки
   (премиальный, "живой" акцент вместо плоского фона). */
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55) 48%, transparent 71%);
  background-size: 220% 100%;
  background-position: 150% 0;
  animation: btnShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmer {
  0%, 35% { background-position: 150% 0; }
  75%, 100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { animation: none; display: none; }
}
/* Liquid motion — лёгкое "перетекание" формы на hover/active вместо
   жёсткого прямоугольника (см. обсуждение Liquid Motion / Morphing). */
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.04); border-radius: calc(var(--radius) + 6px); }
.btn-primary:active, .btn-secondary:active { transform: translateY(0) scale(.97); border-radius: calc(var(--radius) * .6); }
.btn-primary:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary { transition: none; }
  .btn-primary:hover, .btn-secondary:hover, .btn-primary:active, .btn-secondary:active { transform: none; border-radius: var(--radius); }
}

/* View Transitions — нативные плавные переходы между страницами одного
   сайта (лендинг ↔ каталог ↔ карточка мастера), без JS и SPA-роутинга.
   Progressive enhancement: браузеры без поддержки просто игнорируют
   правило и переходят как раньше. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

.service-search {
  width: 100%; box-sizing: border-box; padding: 10px 14px; margin-bottom: 12px;
  border: 1px solid var(--border-soft); border-radius: var(--radius); font: inherit; background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.service-search:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .service-search { transition: none; }
}
/* Заголовок категории — вместо просто жирного текста рисуем классический
   "прайс-листовый" приём: подпись + тонкая линия-заполнитель справа. */
.service-category {
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  margin: 28px 0 12px; color: var(--accent);
}
.service-category::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.service-group:first-of-type .service-category { margin-top: 0; }
.service-empty { color: var(--text-muted); font-size: .9rem; }
.service-list, .review-list, .promo-list, .contact-list { list-style: none; margin: 0; padding: 0; }
.service-item {
  padding: 14px 12px; margin: 0 -12px; border-radius: var(--radius); border-bottom: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 8px; transition: background-color .15s ease;
}
/* На широких экранах название и цена встают на одну линию, как в
   настоящем прайс-листе, а не друг под другом. */
@media (min-width: 480px) {
  .service-item { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 18px; }
  .service-price-row { flex: none; }
}
.service-item:hover { background-color: color-mix(in srgb, var(--accent) 6%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .service-item { transition: none; }
}
.service-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.service-name { font-weight: 600; font-size: 1.02rem; }
.service-description, .service-duration { font-size: .85rem; color: var(--text-muted); }
.service-price-row { display: flex; align-items: center; gap: 10px; }
.service-price {
  font-weight: 700; font-size: 1.08rem; color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1060px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gallery-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .6); }

/* Карточка отзыва — декоративная кавычка поверх текста вместо голой
   строки "автор / рейтинг" на тонкой линии. */
.review-item {
  position: relative; padding: 18px 16px; margin: 0 0 10px; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: color-mix(in srgb, var(--chip-bg) 55%, transparent);
}
.review-item::before {
  content: "\201C"; position: absolute; top: -6px; left: 14px; font-size: 2.6rem; line-height: 1;
  font-family: Georgia, serif; color: color-mix(in srgb, var(--accent) 30%, transparent); pointer-events: none;
}
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; }
.review-author { font-weight: 600; }
.review-rating { color: var(--accent); font-weight: 600; letter-spacing: .03em; }
.review-text { margin: 8px 0 0; position: relative; }

.promo-item {
  border-radius: var(--radius); padding: 16px; margin: 0 0 14px; border: 1px solid var(--border-soft);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 6%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 16%, transparent); }
.promo-item img { width: 100%; border-radius: calc(var(--radius) * .75); margin-bottom: 10px; display: block; }
.promo-item h3 { margin: 0 0 4px; }
.promo-valid-until { font-size: .8rem; color: var(--text-faint); }
@media (prefers-reduced-motion: reduce) {
  .promo-item { transition: none; }
  .promo-item:hover { transform: none; box-shadow: none; }
}

.map-embed { width: 100%; height: 260px; border-radius: var(--radius); margin-bottom: 12px; }
.map-address { color: var(--text-muted); }

.contact-list { display: flex; flex-direction: column; }
.contact-list li { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.contact-list li:last-child { border-bottom: none; }
.contact-list a {
  color: inherit; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center;
  transition: color .15s ease;
}
.contact-list a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .contact-list a { transition: none; } }
.booking-note { font-size: .85rem; color: var(--text-faint); }

@media (min-width: 640px) {
  .block { padding: 32px 24px; }
}
@media (min-width: 1060px) {
  .block { padding: 44px 16px; }
}

.booking-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.booking-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--text-muted); }
.booking-form input, .booking-form select, .booking-form textarea {
  padding: 11px 12px; border: 1px solid var(--input-border); border-radius: calc(var(--radius) * .75);
  font: inherit; background: var(--bg); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .booking-form input, .booking-form select, .booking-form textarea { transition: none; }
}
.booking-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  padding: 6px 12px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--bg);
  color: var(--text); cursor: pointer; font-size: .85rem; transition: transform .12s ease, border-color .15s ease;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn:active { transform: scale(.95); }
.slot-btn.selected { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .slot-btn { transition: none; }
  .slot-btn:active { transform: none; }
}
.booking-code-row { display: flex; gap: 8px; align-items: center; }
.booking-message { font-size: .85rem; color: var(--text-muted); min-height: 1.2em; }
.booking-form button.btn-primary { border: none; cursor: pointer; }
.checkbox-row { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; }
.checkbox-row input[type="checkbox"] { width: auto; margin-top: 3px; }
.booking-consent-row { font-size: .8rem; color: var(--text-muted); }
.booking-consent-row a { color: inherit; text-decoration: underline; }

/* ───── Aurora UI: mesh-градиент + зерно + стеклянные карточки ─────
   Фон — плавающие размытые цветовые пятна (::before), зерно поверх них
   (::after) для тактильности. Оба слоя `position: fixed`, z-index: 0 —
   без отрицательных z-index (не пропадают "под" непрозрачным фоном
   самого body). Контент (`.page`) явно поднят в свой stacking context
   (position: relative; z-index: 1), поэтому лежит поверх обоих слоёв. */
.theme-aurora { background: var(--bg); position: relative; }
.theme-aurora .page { position: relative; z-index: 1; }

.theme-aurora::before {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background-color: #faf3f8;
  background-image:
    radial-gradient(circle at 18% 22%, #f6c9dd 0%, transparent 55%),
    radial-gradient(circle at 82% 18%, #cfd8f6 0%, transparent 55%),
    radial-gradient(circle at 28% 82%, #f9e6bd 0%, transparent 55%),
    radial-gradient(circle at 86% 78%, #ddc9f2 0%, transparent 55%);
  filter: blur(60px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
.theme-aurora::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes auroraDrift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-4%, 3%) rotate(6deg) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-aurora::before { animation: none; }
}

.theme-aurora .block {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius);
  margin: 14px 12px;
  padding: 22px 18px;
  border-bottom: none;
  box-shadow: 0 8px 32px rgba(120, 50, 100, .12);
}
.theme-aurora .block-header {
  background: transparent; margin: 0; border-radius: 0; padding: 24px 0;
}
.theme-aurora .header-avatar { border-color: rgba(255, 255, 255, .8); }
.theme-aurora .header-quick-actions a {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .5);
}
.theme-aurora .service-search,
.theme-aurora .booking-form input,
.theme-aurora .booking-form select,
.theme-aurora .booking-form textarea {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.theme-aurora .btn-primary { box-shadow: 0 6px 18px rgba(178, 51, 104, .28); }

.gallery-hint { font-size: .85rem; color: var(--text-muted); margin: -4px 0 14px; }
.gallery-pair { gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gallery-shot { position: relative; width: 100%; min-width: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; overflow: hidden; border-radius: calc(var(--radius) * .6); }
.gallery-shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .6); }
.gallery-badge {
  position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: rgba(0,0,0,.55); color: #fff; pointer-events: none;
}
.gallery-badge-after { background: var(--accent); color: var(--accent-text); }
.gallery-pair > .gallery-shot:only-child { grid-column: 1 / -1; }

.gallery-lightbox {
  border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgba(10, 8, 12, .94); color: #fff;
}
.gallery-lightbox::backdrop { background: transparent; }
.gallery-stage { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px; box-sizing: border-box; }
.gallery-stage img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; touch-action: pan-y; }
.gallery-stage figcaption { margin-top: 12px; font-size: .9rem; text-align: center; }
.gallery-close {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .85rem; opacity: .8; margin: 0; }

.gallery-section-title { margin: 28px 0 12px; }
.gallery-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.gallery-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--input-border); background: var(--chip-bg);
  color: var(--text); font: inherit; font-size: .9rem; cursor: pointer;
}
.gallery-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.gallery-shot[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.gallery-stage { padding: 64px 12px 56px; }
.gallery-close {
  top: 12px; right: 12px; width: auto; height: auto; padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #14110f; font-size: .95rem; font-weight: 600; line-height: 1.2; z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
@keyframes gallerySlideLeft { from { transform: translateX(28px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes gallerySlideRight { from { transform: translateX(-28px); opacity: .2; } to { transform: none; opacity: 1; } }
.gallery-stage img.gallery-slide-left { animation: gallerySlideLeft .22s ease-out; }
.gallery-stage img.gallery-slide-right { animation: gallerySlideRight .22s ease-out; }
.gallery-shot, .gallery-tab, .gallery-nav, .gallery-close, .btn-primary, .btn-secondary { transition: transform .12s ease, opacity .12s ease; }
.gallery-shot:active, .gallery-tab:active, .gallery-nav:active, .gallery-close:active, .btn-primary:active, .btn-secondary:active { transform: scale(.97); opacity: .85; }
.gallery-shot:hover img { transform: scale(1.03); }
.gallery-shot img { transition: transform .25s ease; }
.gallery-tab:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .gallery-stage img.gallery-slide-left, .gallery-stage img.gallery-slide-right { animation: none; }
  .gallery-shot, .gallery-tab, .gallery-nav, .gallery-close, .btn-primary, .btn-secondary, .gallery-shot img { transition: none; }
  .gallery-shot:active, .gallery-tab:active, .gallery-nav:active, .gallery-close:active, .btn-primary:active, .btn-secondary:active { transform: none; }
  .gallery-shot:hover img { transform: none; }
}

/* ───── Aurora-приём для палитр линеек GENEVIE ─────
   Тот же слой фона (блобы + зерно) и стеклянные карточки, но пятна
   строятся из --accent текущей палитры, а стекло — светлое или тёмное
   в зависимости от темы (night). color-mix требует современных браузеров. */
.theme-stop_pigment, .theme-molodost, .theme-lifting, .theme-regeneration, .theme-glow, .theme-sun,
.theme-cleansing, .theme-sebo, .theme-smart, .theme-spa, .theme-pro, .theme-night, .theme-editorial { position: relative; }
.theme-stop_pigment .page, .theme-molodost .page, .theme-lifting .page, .theme-regeneration .page,
.theme-glow .page, .theme-sun .page, .theme-cleansing .page, .theme-sebo .page, .theme-smart .page,
.theme-spa .page, .theme-pro .page, .theme-night .page, .theme-editorial .page { position: relative; z-index: 1; }

.theme-stop_pigment::before, .theme-molodost::before, .theme-lifting::before, .theme-regeneration::before,
.theme-glow::before, .theme-sun::before, .theme-cleansing::before, .theme-sebo::before, .theme-smart::before,
.theme-spa::before, .theme-pro::before, .theme-night::before, .theme-editorial::before {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--accent) 38%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 22%, #fff) 0%, transparent 55%),
    radial-gradient(circle at 28% 82%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 86% 78%, color-mix(in srgb, var(--accent) 30%, #fff) 0%, transparent 55%);
  filter: blur(60px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
.theme-stop_pigment::after, .theme-molodost::after, .theme-lifting::after, .theme-regeneration::after,
.theme-glow::after, .theme-sun::after, .theme-cleansing::after, .theme-sebo::after, .theme-smart::after,
.theme-spa::after, .theme-pro::after, .theme-night::after, .theme-editorial::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .theme-stop_pigment::before, .theme-molodost::before, .theme-lifting::before, .theme-regeneration::before,
  .theme-glow::before, .theme-sun::before, .theme-cleansing::before, .theme-sebo::before, .theme-smart::before,
  .theme-spa::before, .theme-pro::before, .theme-night::before, .theme-editorial::before { animation: none; }
}

.theme-stop_pigment .block, .theme-molodost .block, .theme-lifting .block, .theme-regeneration .block,
.theme-glow .block, .theme-sun .block, .theme-cleansing .block, .theme-sebo .block, .theme-smart .block,
.theme-spa .block, .theme-pro .block, .theme-editorial .block {
  background: color-mix(in srgb, #fff 55%, transparent);
  border: 1px solid color-mix(in srgb, #fff 60%, transparent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 16%, transparent);
}
.theme-night .block {
  background: color-mix(in srgb, #1a1726 62%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.theme-stop_pigment .block, .theme-molodost .block, .theme-lifting .block, .theme-regeneration .block,
.theme-glow .block, .theme-sun .block, .theme-cleansing .block, .theme-sebo .block, .theme-smart .block,
.theme-spa .block, .theme-pro .block, .theme-night .block, .theme-editorial .block {
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--radius);
  margin: 14px 12px;
  padding: 22px 18px;
  border-bottom: none;
}
.theme-stop_pigment .block-header, .theme-molodost .block-header, .theme-lifting .block-header,
.theme-regeneration .block-header, .theme-glow .block-header, .theme-sun .block-header,
.theme-cleansing .block-header, .theme-sebo .block-header, .theme-smart .block-header,
.theme-spa .block-header, .theme-pro .block-header, .theme-night .block-header, .theme-editorial .block-header {
  background: transparent; margin: 0; border-radius: 0; padding: 24px 0;
}
.theme-stop_pigment .header-quick-actions a, .theme-molodost .header-quick-actions a, .theme-lifting .header-quick-actions a,
.theme-regeneration .header-quick-actions a, .theme-glow .header-quick-actions a, .theme-sun .header-quick-actions a,
.theme-cleansing .header-quick-actions a, .theme-sebo .header-quick-actions a, .theme-smart .header-quick-actions a,
.theme-spa .header-quick-actions a, .theme-pro .header-quick-actions a, .theme-night .header-quick-actions a,
.theme-editorial .header-quick-actions a {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, #fff 50%, transparent);
}
.theme-stop_pigment .booking-form input, .theme-molodost .booking-form input, .theme-lifting .booking-form input,
.theme-regeneration .booking-form input, .theme-glow .booking-form input, .theme-sun .booking-form input,
.theme-cleansing .booking-form input, .theme-sebo .booking-form input, .theme-smart .booking-form input,
.theme-spa .booking-form input, .theme-pro .booking-form input, .theme-night .booking-form input,
.theme-stop_pigment .booking-form select, .theme-molodost .booking-form select, .theme-lifting .booking-form select,
.theme-regeneration .booking-form select, .theme-glow .booking-form select, .theme-sun .booking-form select,
.theme-cleansing .booking-form select, .theme-sebo .booking-form select, .theme-smart .booking-form select,
.theme-spa .booking-form select, .theme-pro .booking-form select, .theme-night .booking-form select,
.theme-stop_pigment .booking-form textarea, .theme-molodost .booking-form textarea, .theme-lifting .booking-form textarea,
.theme-regeneration .booking-form textarea, .theme-glow .booking-form textarea, .theme-sun .booking-form textarea,
.theme-cleansing .booking-form textarea, .theme-sebo .booking-form textarea, .theme-smart .booking-form textarea,
.theme-spa .booking-form textarea, .theme-pro .booking-form textarea, .theme-night .booking-form textarea,
.theme-editorial .booking-form input, .theme-editorial .booking-form select, .theme-editorial .booking-form textarea {
  background: color-mix(in srgb, #fff 60%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.theme-night .booking-form input, .theme-night .booking-form select, .theme-night .booking-form textarea {
  background: color-mix(in srgb, #fff 8%, transparent);
}

/* На широком экране стеклянные карточки (Aurora, Editorial + линейки
   GENEVIE) должны получить больше воздуха — иначе они выглядят той же
   мобильной полоской, просто растянутой в центре широкого контейнера. */
@media (min-width: 1060px) {
  .theme-aurora .block, .theme-editorial .block,
  .theme-stop_pigment .block, .theme-molodost .block, .theme-lifting .block, .theme-regeneration .block,
  .theme-glow .block, .theme-sun .block, .theme-cleansing .block, .theme-sebo .block, .theme-smart .block,
  .theme-spa .block, .theme-pro .block, .theme-night .block {
    margin: 20px 4px;
    padding: 36px 32px;
  }
}
