/* Namaste — студія йоги, Ніжин
   Палітра «Захід сонця»: білий, рожевий, вершковий жовтий і темна слива для тексту */

:root {
  --mist: #FFF8F1;       /* базовий фон */
  --paper: #FFFFFF;
  --blush: #FFE4EB;      /* рожевий градієнт */
  --butter: #FFF1C9;     /* жовтий градієнт */
  --ink: #3A1F38;        /* основний текст, кнопки */
  --ink-soft: #5C3854;   /* другорядний текст; темніший, щоб читався й на яскравих колах фону */
  --lilac: #F0A3B8;      /* акцент, лінії */
  --lilac-deep: #B4466F; /* посилання, ціни */
  --glow: #FFD98A;       /* сонце */
  --line: rgba(58, 31, 56, .13);

  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --wine: #7A2E4F;       /* колір головного заголовка */
  --rose: #CF628A;       /* рукописне «видихнути» */
  --sans: "Ysabeau Office", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  /* Обмежено й висотою екрана, щоб на широких невисоких моніторах заголовок не діставав до фігури */
  --step-hero: min(clamp(3.2rem, 1.4rem + 6.6vw, 8.6rem), 10.5vh);

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 999px;
  --ease: cubic-bezier(.33, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1); /* з легким перельотом — для «пружинних» кнопок */
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Заставка ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(50% 45% at 50% 46%, rgba(255, 236, 214, .9), transparent 72%),
    radial-gradient(60% 60% at 15% 15%, rgba(246, 170, 196, .55), transparent 70%),
    radial-gradient(55% 55% at 88% 85%, rgba(255, 214, 140, .5), transparent 70%),
    #FFF4EE;
  transition: opacity .8s var(--ease), visibility 0s .8s;
}
.js .preloader.is-done { opacity: 0; visibility: hidden; }
.pl-inner { display: grid; justify-items: center; transition: transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s var(--ease); }
.preloader.is-done .pl-inner { transform: scale(1.14); filter: blur(8px); }
/* Поки йде заставка, сторінку не гортаємо, а поява заголовка й кнопок чекає */
.is-loading { overflow: hidden; }
.is-loading .hero-line-1, .is-loading .hero-script, .is-loading .hero-actions .btn { animation-play-state: paused; }

.pl-lotus { width: clamp(150px, 22vw, 220px); height: auto; overflow: visible; }
.pl-petal, .pl-water {
  fill: url(#plFill); fill-opacity: 0;
  stroke: #9C3D5E; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: pl-draw 1.1s cubic-bezier(.65, 0, .35, 1) var(--d, 0s) forwards, pl-fill .9s var(--ease) calc(var(--d, 0s) + .9s) forwards;
}
.pl-water { fill: none; stroke: #C77A97; --d: 1.2s; animation: pl-draw 1s var(--ease) 1.2s forwards; }
/* Кільця з точок навколо — повільно обертаються в різні боки */
.pl-ring {
  fill: none; stroke: #C77A97; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0 7;
  transform-box: fill-box; transform-origin: center;
  opacity: 0; animation: pl-fade .8s var(--ease) .3s forwards, pl-spin 14s linear infinite;
}
.pl-ring-2 { stroke-dasharray: 0 4.6; stroke-width: 1; animation: pl-fade .8s var(--ease) .5s forwards, pl-spin 10s linear infinite reverse; }
.pl-flower { transform-box: fill-box; transform-origin: 50% 90%; animation: pl-breathe 3.2s ease-in-out 1.6s infinite; }
.pl-name {
  margin-top: 10px; font: 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--script); color: var(--wine);
  opacity: 0; translate: 0 10px; animation: pl-rise .9s var(--ease) 1.1s forwards;
}
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fill { to { fill-opacity: .85; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-spin { to { rotate: 360deg; } }
@keyframes pl-breathe { 0%, 100% { scale: 1; } 45% { scale: 1.05; } }
@keyframes pl-rise { to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .pl-petal, .pl-water { animation: none; stroke-dashoffset: 0; fill-opacity: .85; }
  .pl-ring, .pl-name { animation: none; opacity: 1; translate: 0 0; }
  .pl-flower { animation: none; }
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Фон — великі розмиті кола теплих кольорів, розкидані по всій сторінці (позиції у % від її висоти).
     М'які радіальні градієнти виглядають як blur, але не навантажують прокрутку. */
  --blob: clamp(340px, 54vw, 860px);
  --pink: 246, 150, 184;
  --peach: 255, 184, 146;
  --gold: 255, 210, 100;
  --orchid: 232, 168, 220;
  background:
    radial-gradient(circle var(--blob) at 4% 14%, rgba(var(--pink), .85), rgba(var(--pink), .4) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .85) at 96% 18%, rgba(var(--gold), .8), rgba(var(--gold), .35) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .6) at 58% 23%, rgba(var(--orchid), .6), transparent 78%),
    radial-gradient(circle calc(var(--blob) * .9) at 18% 30%, rgba(var(--peach), .7), rgba(var(--peach), .3) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * 1.1) at 100% 36%, rgba(var(--pink), .78), rgba(var(--pink), .34) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .8) at 0% 44%, rgba(var(--gold), .78), rgba(var(--gold), .32) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .65) at 45% 49%, rgba(var(--orchid), .62), transparent 78%),
    radial-gradient(circle var(--blob) at 88% 55%, rgba(var(--peach), .8), rgba(var(--peach), .34) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .9) at 8% 62%, rgba(var(--pink), .8), rgba(var(--pink), .34) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .7) at 62% 67%, rgba(var(--gold), .7), rgba(var(--gold), .28) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .95) at 98% 76%, rgba(var(--orchid), .7), rgba(var(--orchid), .28) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * .85) at 22% 82%, rgba(var(--peach), .72), rgba(var(--peach), .3) 52%, transparent 80%),
    radial-gradient(circle calc(var(--blob) * 1.05) at 0% 93%, rgba(var(--pink), .75), transparent 78%),
    radial-gradient(circle calc(var(--blob) * .85) at 90% 97%, rgba(var(--gold), .72), transparent 78%),
    var(--mist);
  color: var(--ink);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--lilac-deep); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.show-sm { display: none; }
@media (max-width: 720px) { .hide-sm { display: none; } .show-sm { display: inline; } }

/* Місця, які треба замінити реальними даними. Прибрати клас після заповнення. */
.tbd { background: linear-gradient(transparent 62%, rgba(240, 163, 184, .38) 0); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition:
    background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
    box-shadow .3s var(--ease),
    transform .45s var(--spring);
}
/* Живі кнопки: при наведенні трохи підіймаються й ростуть, при натисканні сплющуються, як желе,
   а відпущені — пружинять назад. Hover лише там, де є миша, щоб на телефоні стан не «залипав». */
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px) scale(1.035); }
}
.btn:active { transform: translateY(0) scale(1.04, .93); transition-duration: .2s, .2s, .2s, .3s, .12s; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.0625rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #5A3152; }
.btn-ghost { border-color: rgba(58, 31, 56, .35); color: var(--ink); background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .6); border-color: var(--ink); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid { background: rgba(255, 248, 241, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }

/* Логотип: лотос лінією + напис рукописним, як «видихнути» в заголовку */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 400 2.1rem/1 var(--script); color: var(--wine); }
.logo span { padding-top: .12em; }
.logo-mark { width: 36px; height: 36px; color: var(--rose); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; }

/* ---------- Головний екран ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(640px, 100svh); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(42, 22, 34, .62) 0%, rgba(42, 22, 34, .2) 24%, transparent 40%),
  radial-gradient(60% 40% at 50% 18%, rgba(255, 248, 241, .35), transparent 70%); }

/* Заголовок — у небі над сонцем; опис і кнопки — внизу на траві, обабіч фігури */
.hero-body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  gap: 24px 48px; padding-top: clamp(104px, 13vh, 150px); padding-bottom: 28px;
}
.hero-title {
  grid-column: 1 / -1; justify-self: center; text-align: center;
  font: 400 var(--step-hero)/.92 var(--serif);
  letter-spacing: -.015em;
  color: var(--wine);
  /* drop-shadow замість text-shadow: text-shadow лягає поверх градієнтного тексту й бруднить його */
  filter: drop-shadow(0 2px 14px rgba(122, 46, 79, .2));
}
.hero-title > span { display: block; white-space: nowrap; }

/* Поява: «Тут можна» виїжджає зліва, «видихнути» — справа, і вони сходяться по центру.
   Анімується властивість translate, а transform лишається для зсуву під час прокрутки (script.js). */
@media (prefers-reduced-motion: no-preference) {
  .hero-line-1 { animation: title-in-left 1.5s cubic-bezier(.16, 1, .3, 1) .15s both; }
  .hero-script { animation: title-in-right 1.5s cubic-bezier(.16, 1, .3, 1) .35s both; }
  .hero-title > span { will-change: transform, opacity; }
}
/* Кнопки з'являються слідом за заголовком, по черзі: м'яко піднімаються й проявляються.
   Без filter: на скляній кнопці він зламав би backdrop-filter. */
@media (prefers-reduced-motion: no-preference) {
  .hero-actions .btn { animation: btn-in 1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-actions .btn:nth-child(1) { animation-delay: 1.05s; }
  .hero-actions .btn:nth-child(2) { animation-delay: 1.22s; }
}
@keyframes btn-in {
  from { opacity: 0; translate: 0 18px; scale: .96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes title-in-left {
  from { translate: -45vw 0; opacity: 0; filter: blur(10px); }
  to { translate: 0 0; opacity: 1; filter: blur(0); }
}
@keyframes title-in-right {
  from { translate: 45vw 0; opacity: 0; filter: blur(10px); }
  to { translate: 0 0; opacity: 1; filter: blur(0); }
}
/* Рукописне слово: каліграфічний шрифт дрібніший на око, тому більший кегль */
.hero-script { margin-top: .06em; font: 400 1.4em/.85 var(--script); letter-spacing: 0; color: var(--rose); }

/* «Тут можна» — суцільний винний; «видихнути» — вертикальний градієнт: темніше посередині, світліше зверху й знизу.
   script.js розтягує градієнт на весь рядок, щоб він ішов безшовно через усі шматки слова,
   разом із розмитими копіями літер. */
.hero-line-1 {
  --grad: linear-gradient(var(--wine), var(--wine));
}
.hero-script {
  --grad: linear-gradient(180deg, #F0AFC5 18%, #B3416B 56%, #F0AFC5 90%);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title .g {
    background: var(--grad);
    background-size: var(--gw, 100%) var(--gh, 100%);
    background-position: var(--gx, 0) var(--gy, 0);
    background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
/* Верхній лівий кут «Т» ледь розмитий — дзеркальна пара до хвоста «и» */
.hs-start { position: relative; display: inline-block; }
.hs-start-sharp, .hs-start-blur { display: inline-block; padding: .25em; margin: -.25em; }
.hs-start-sharp {
  -webkit-mask-image: linear-gradient(135deg, transparent 18%, #000 42%);
          mask-image: linear-gradient(135deg, transparent 18%, #000 42%);
}
.hs-start-blur {
  position: absolute; top: 0; left: 0; filter: blur(.02em);
  -webkit-mask-image: linear-gradient(135deg, #000 22%, transparent 46%);
          mask-image: linear-gradient(135deg, #000 22%, transparent 46%);
}

/* Хвіст останньої «и» розчиняється: чітка копія згасає праворуч, розмита проявляється.
   Відступи з від'ємними полями дають маскам місце під розчерк, не зсуваючи літеру. */
.hs-end { position: relative; display: inline-block; }
.hs-end-sharp, .hs-end-blur { display: inline-block; padding: .3em .35em .4em .1em; margin: -.3em -.35em -.4em -.1em; }
.hs-end-sharp {
  -webkit-mask-image: linear-gradient(90deg, #000 32%, transparent 62%);
          mask-image: linear-gradient(90deg, #000 32%, transparent 62%);
}
.hs-end-blur {
  position: absolute; top: 0; left: 0; filter: blur(.035em);
  -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 58%);
          mask-image: linear-gradient(90deg, transparent 28%, #000 58%);
}

/* Світлий текст на траві — не чисто білий, а ледь сіруватий, щоб не «різав» фото */
.hero { --hero-light: #E8E3E2; }
.hero-lead { grid-row: 3; align-self: end; max-width: 36ch; font-size: var(--step-1); line-height: 1.5; color: var(--hero-light); text-shadow: 0 1px 16px rgba(42, 22, 34, .5); }
.hero-actions { grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.hero .btn-ink { background: var(--hero-light); color: var(--ink); }
.hero .btn-ink:hover { background: var(--blush); }

/* Рідке скло (як в iOS). Базовий шар — матове скло з бліками, працює всюди.
   У Chromium script.js додає .is-liquid: фон за кнопкою заломлюється по краях SVG-фільтром із дисперсією. */
.btn-glass {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--hero-light);
  border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 55%, rgba(255, 255, 255, .1));
  -webkit-backdrop-filter: blur(10px) saturate(1.6) brightness(1.06);
          backdrop-filter: blur(10px) saturate(1.6) brightness(1.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .55),
    inset 0 -1px 1px rgba(255, 255, 255, .18),
    inset 0 0 18px rgba(255, 255, 255, .08),
    0 6px 22px rgba(42, 22, 34, .22);
  /* Напис ледь світиться, як підсвічений зсередини скла */
  text-shadow: 0 0 6px rgba(255, 255, 255, .55), 0 0 16px rgba(255, 255, 255, .35), 0 0 30px rgba(255, 240, 235, .25);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease), transform .45s var(--spring);
}
/* Відблиск на склі: м'яка смуга згори-ліворуч */
.btn-glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 18% -20%, rgba(255, 255, 255, .38), transparent 55%);
}
/* --lg — посилання на SVG-фільтр саме цієї кнопки, його ставить script.js */
.btn-glass.is-liquid { -webkit-backdrop-filter: none; backdrop-filter: var(--lg) saturate(1.5) brightness(1.08); }
.btn-glass:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .7),
    inset 0 -1px 1px rgba(255, 255, 255, .25),
    inset 0 0 22px rgba(255, 255, 255, .14),
    0 8px 26px rgba(42, 22, 34, .26);
}
.btn-glass:active { transition-duration: .3s, .3s, .12s; }

.hero-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-bottom: 28px; }
.hero-meta { font-size: 1rem; font-weight: 500; color: var(--hero-light); text-shadow: 0 1px 12px rgba(58, 31, 56, .35); }
.hero-meta-end { text-align: right; }
.hero-meta .tbd { background: linear-gradient(transparent 62%, rgba(255, 255, 255, .3) 0); }

/* Кругла скляна кнопка зі стрілкою: веде до наступного блоку (плавну прокрутку дає scroll-behavior).
   Схована, доки людина 5 секунд нічого не гортає на самому верху сторінки — тоді script.js додає .is-shown. */
.scroll-down {
  width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%;
  opacity: 0; scale: .8; translate: 0 10px; pointer-events: none; visibility: hidden;
  transition:
    opacity .5s var(--ease), scale .7s var(--spring), translate .7s var(--spring), visibility 0s .5s,
    box-shadow .3s var(--ease), transform .45s var(--spring);
}
.scroll-down.is-shown {
  opacity: 1; scale: 1; translate: 0 0; pointer-events: auto; visibility: visible;
  transition-delay: 0s;
}
.scroll-down svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)) drop-shadow(0 0 10px rgba(255, 255, 255, .35));
}
/* Стрілка ледь «пливе» вниз, підказуючи, що далі є ще */
@media (prefers-reduced-motion: no-preference) {
  .scroll-down svg { animation: arrow-drift 2.6s var(--ease) infinite; }
}
@keyframes arrow-drift {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 3px; }
}

/* ---------- Секції ---------- */
.section { padding-block: var(--section); }
.h2 { font: 300 var(--step-3)/1.06 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.lead { max-width: 52ch; margin-top: 28px; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-note { max-width: 42ch; color: var(--ink-soft); }
.section-head .section-note { justify-self: end; }

/* Фото-заглушки: лягають градієнтом, поки немає справжніх знімків */
.ph {
  position: relative; overflow: hidden; border-radius: 4px;
  background:
    radial-gradient(120% 80% at 75% 85%, rgba(255, 226, 150, .9), transparent 60%),
    linear-gradient(160deg, #FFEFE4 0%, #FCD3DC 55%, #F5BCCB 100%);
}
.ph::after { content: attr(data-label); position: absolute; left: 16px; bottom: 14px; font-size: var(--step--1); color: var(--ink); opacity: .7; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { content: none; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-portrait { aspect-ratio: 3 / 4; }

/* Мандали на фоні — тонкі сіро-чорні лінії від «Про студію» до блоку цін.
   Великі, розкидані по краях і частково за межами екрана; секції лежать поверх. */
.mandala-zone { position: relative; overflow: hidden; }
.mandala-zone > section { position: relative; z-index: 1; }
.mandala-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Окремий шар: складний SVG малюється один раз, а не при кожній зміні табличок над ним */
.mandala { position: absolute; height: auto; opacity: .38; will-change: transform; }
/* Прежня розстановка, розміри збільшено приблизно на чверть */
.m1 { width: clamp(400px, 55vw, 950px); left: -18vw; top: 0%; transform: rotate(8deg); }
.m2 { width: clamp(320px, 37vw, 650px); right: -11vw; top: 15%; transform: rotate(-12deg); opacity: .32; }
.m3 { width: clamp(380px, 48vw, 820px); left: -15vw; top: 36%; transform: rotate(20deg); opacity: .3; }
.m4 { width: clamp(420px, 57vw, 1000px); right: -22vw; top: 51%; transform: rotate(-6deg); }
.m5 { width: clamp(300px, 32vw, 550px); left: 3vw; top: 73%; transform: rotate(14deg); opacity: .3; }
.m6 { width: clamp(380px, 45vw, 780px); right: -8vw; top: 83%; transform: rotate(30deg); opacity: .34; }

/* Скляна табличка (спільна для «Про студію» і «Коли ми працюємо").
   Без backdrop-filter: на такій площі він гальмує прокрутку, а фон під табличкою —
   і так м'які розмиті кола, тож скло тримається на напівпрозорості, кромці й відблиску */
.glass-panel {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .32) 55%, rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .8),
    inset 0 -1px 1px rgba(255, 255, 255, .3),
    inset 0 0 40px rgba(255, 255, 255, .12),
    0 40px 80px -40px rgba(122, 46, 79, .45);
}
/* Відблиск згори-ліворуч, як на скляних кнопках */
.glass-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 70% at 10% -10%, rgba(255, 255, 255, .45), transparent 55%);
}

/* Про студію: широка табличка, текст і фото в два стовпчики */
.about-wrap { max-width: 1480px; }
.about-glass { padding: clamp(32px, 6vw, 96px) clamp(28px, 6vw, 104px); border-radius: 48px; }
.about-glass .about-photo { border-radius: 28px; border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 44px -22px rgba(122, 46, 79, .4); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
/* У великій табличці все трохи крупніше */
.about-glass .h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); }
.about-glass .lead { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); max-width: 46ch; }
/* Факти — за шириною вмісту; якщо місця мало, переносяться в новий рядок */
.facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts dt { font-size: 1rem; color: var(--ink-soft); }
.facts dd { margin-top: 8px; font: 400 clamp(1.35rem, 1.15rem + .45vw, 1.6rem)/1.25 var(--serif); font-variant-numeric: lining-nums; white-space: nowrap; }
@media (max-width: 720px) { .facts { flex-direction: column; } }
.about-photo { max-width: 600px; justify-self: end; width: 100%; }

/* Напрямки: заголовок по центру, далі сітка по два в ряд; останній (масаж) — по центру.
   Кожен напрямок — скляна картка: ліворуч назва й опис, праворуч вертикальне фото. */
.classes .section-head { display: block; text-align: center; }
.classes .section-head .section-note { margin: 18px auto 0; justify-self: auto; }

/* Картки займають майже всю ширину екрана; фото — більша частина картки */
.classes .wrap { max-width: none; padding-inline: clamp(16px, 3vw, 48px); }
.dir-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.dir {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(20px, 2.6vw, 44px);
  padding: clamp(18px, 1.8vw, 30px); padding-left: clamp(26px, 3vw, 52px);
  border-radius: 40px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 24px 50px -30px rgba(122, 46, 79, .3);
}
/* Випадковий сірий градієнт на всіх світлих табличках: кілька м'яких сірих плям і світлий відблиск.
   Положення, розміри й кут кожній табличці при завантаженні задає script.js — тож усі різні.
   Значення після коми — запасні, якщо скрипт не спрацює. */
.glass-panel, .dir {
  background:
    radial-gradient(var(--g1w, 55%) var(--g1h, 65%) at var(--g1x, 12%) var(--g1y, 18%), rgba(128, 122, 130, .2), transparent 72%),
    radial-gradient(var(--g2w, 50%) var(--g2h, 60%) at var(--g2x, 88%) var(--g2y, 82%), rgba(100, 96, 106, .17), transparent 72%),
    radial-gradient(var(--g3w, 40%) var(--g3h, 45%) at var(--g3x, 60%) var(--g3y, 30%), rgba(160, 155, 162, .14), transparent 70%),
    radial-gradient(var(--g4w, 45%) var(--g4h, 50%) at var(--g4x, 35%) var(--g4y, 90%), rgba(255, 255, 255, .6), transparent 70%),
    linear-gradient(var(--ga, 150deg), rgba(246, 244, 247, .78), rgba(228, 225, 231, .62));
}

/* Непарний останній — посередині, такої ж ширини, як інші */
.dir:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(10px, 1.2vw, 16px)); }
.dir-name { font: 400 clamp(1.7rem, 1.1rem + 1.3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.dir-desc { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.6; color: var(--ink-soft); }

.dir-photo {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 24px 44px -22px rgba(122, 46, 79, .38), 0 8px 18px -10px rgba(58, 31, 56, .18);
}
/* Підпис заглушки — згори, щоб не перетинався з плашками внизу */
.dir-photo.ph::after { top: 18px; bottom: auto; left: 18px; right: 18px; line-height: 1.3; }
/* Скляні плашки з тривалістю й рівнем унизу фото */
.dir-chips {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.dir-chips span {
  padding: 6px 11px; border-radius: var(--radius); white-space: nowrap;
  font-size: .8125rem; line-height: 1.2; color: var(--ink);
  /* Без backdrop-filter: картка з'являється з прозорості, і розмиття під плашкою блимало б */
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 4px 12px -6px rgba(58, 31, 56, .2);
}

/* Поява карток під час прокрутки: лише opacity і translate/scale — їх рахує відеокарта, без перемальовування.
   Клас .reveal ставить script.js, тож без JS картки просто видно одразу. */
.dir.reveal {
  opacity: 0; translate: 0 48px; scale: .97;
  transition: opacity .8s var(--ease) var(--d, 0ms), translate 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms), scale 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
    transform .6s var(--spring);
}
.dir.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Наведення на табличку: вона трохи збільшується й рівно тепліє в жовтий. Лише там, де є миша.
   Табличка й жовтий шар — окремі шари відеокарти: збільшення й поява жовтого не перемальовують
   ні табличку, ні фон із мандалами під нею, тож наведення й прокрутка не гальмують. */
.glass-panel, .dir { transition: transform .6s var(--spring); }
.dir { position: relative; isolation: isolate; }
.glass-panel::after, .dir::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 226, 150, .42), rgba(255, 212, 120, .32));
  opacity: 0; transition: opacity .35s var(--ease);
}
@media (hover: hover) {
  .glass-panel, .dir { will-change: transform; }
  .glass-panel::after, .dir::after { will-change: opacity; }
  .glass-panel:hover::after, .dir:hover::after { opacity: 1; }
  /* Форма запису не жовтіє: це робоче поле, а не картка */
  .booking-glass:hover::after { opacity: 0; }
  .booking-glass, .booking-glass::after { will-change: auto; } /* не анімується — окремий шар не потрібен */
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .glass-panel:hover, .dir:hover { transform: scale(1.015); }
  .about-glass:hover { transform: scale(1.008); } /* велика табличка — менший крок, щоб не «стрибала» */
  .booking-glass:hover { transform: none; } /* форма запису стоїть на місці */
}

/* Коли ми працюємо: вужча табличка по центру, лотос згори, тиждень — сім окремих скляних плиток.
   Сьогоднішній день залитий рожево-персиковим і трохи піднятий, неділя — пунктиром. */
.hours-glass {
  max-width: 1180px; margin-inline: auto; text-align: center;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px);
  border-radius: 56px;
}
.hours-mark { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--rose); display: block; }
.hours-note { max-width: 46ch; margin: 18px auto 0; color: var(--ink-soft); }

.week-hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 52px); }
.week-hours > li {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 20px 8px 10px; border-radius: 26px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), 0 10px 24px -18px rgba(122, 46, 79, .35);
}
.wh-day { font-size: 1rem; line-height: 1.3; color: var(--ink-soft); }
.wh-day small { display: block; margin-top: 2px; font-size: var(--step--1); font-weight: 600; }
/* Рівні (не «старостильні») цифри Playfair — щоб час і ціни стояли рівно */
.wh-time { font: 400 1.3rem/1.15 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.week-hours .is-today {
  translate: 0 -8px;
  background: linear-gradient(160deg, #D9668F 0%, #EE8E8F 55%, #F4AE84 100%);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 18px 30px -16px rgba(185, 64, 106, .55);
}
.week-hours .is-today .wh-day, .week-hours .is-today .wh-time { color: #fff; }
.week-hours .is-off { background: transparent; border: 1px dashed rgba(58, 31, 56, .25); box-shadow: none; }
.week-hours .is-off .wh-time { color: var(--ink-soft); font-style: italic; }

/* Абонементи: темна сливово-фіолетова вставка зі світлим текстом.
   Кольорові змінні перевизначено всередині блоку — тексти, підписи й лінії світлішають самі. */
.prices {
  --ink: #F7EEF4;
  --ink-soft: rgba(247, 238, 244, .72);
  --line: rgba(255, 255, 255, .16);
  --lilac: #F2A3BE;
  /* Рівна смуга на всю ширину — як «Якщо ви прийдете вперше» */
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 0% 0%, rgba(214, 102, 150, .45), transparent 70%),
    radial-gradient(55% 60% at 100% 100%, rgba(244, 166, 120, .32), transparent 70%),
    radial-gradient(45% 45% at 75% 15%, rgba(150, 90, 200, .35), transparent 70%),
    linear-gradient(150deg, #2A1433 0%, #3C1C47 45%, #4A2052 75%, #351A40 100%);
}
.prices :focus-visible { outline-color: #F7EEF4; }
/* Легке світіння заголовка й кнопки на темному тлі */
.prices .h2 { text-shadow: 0 0 18px rgba(255, 200, 225, .35), 0 0 46px rgba(242, 163, 190, .25); }
.prices .btn-ink {
  background: #F7EEF4; color: #3A1F38;
  box-shadow: 0 0 22px rgba(255, 205, 228, .45), 0 0 56px rgba(242, 163, 190, .28);
}
.prices .btn-ink:hover {
  background: #FFE4EB;
  box-shadow: 0 0 28px rgba(255, 205, 228, .6), 0 0 72px rgba(242, 163, 190, .38);
}
.prices .price-dots { border-bottom-color: rgba(255, 255, 255, .3); }
.prices .price-terms { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.prices-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.prices-grid > div:first-child { position: sticky; top: 120px; }
.prices-cta { margin-top: 32px; }
.price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 56px); }
.price-group-wide, .price-terms { grid-column: 1 / -1; }
.price-group-title { margin-bottom: 18px; font: 400 var(--step-2)/1.15 var(--serif); }
.price-group-title small { display: block; margin-top: 6px; font: 400 1rem/1.4 var(--sans); color: var(--ink-soft); }
.price-row { display: flex; align-items: baseline; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.price-name { font-size: 1.0625rem; }
.price-dots { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(58, 31, 56, .35); transform: translateY(-5px); }
.price-value { font: 400 1.5rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.price-valid { margin-top: 14px; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.price-group-wide .price-list { max-width: calc(50% - clamp(14px, 2vw, 28px)); }
.price-terms { padding: 24px 28px; border-radius: 20px; background: rgba(255, 255, 255, .6); }
.price-terms-title { margin-bottom: 12px; font: 400 1.25rem/1.2 var(--serif); }
.price-terms ul { display: grid; gap: 8px; }
.price-terms li { position: relative; padding-left: 20px; font-size: .9875rem; line-height: 1.5; color: var(--ink-soft); }
.price-terms li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); }

/* Викладачі */
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person-name { margin-top: 20px; font: 300 var(--step-2)/1.2 var(--serif); }
/* Двоє викладачів — по центру, великі портрети */
.team-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; gap: clamp(24px, 4vw, 56px); }
.team .section-head { display: block; text-align: center; }
.person { text-align: center; }
.person-photo {
  border-radius: 32px; border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 56px -28px rgba(122, 46, 79, .42), 0 10px 22px -12px rgba(58, 31, 56, .2);
}
.person-role { margin-top: 6px; }
.person-note { color: var(--ink-soft); font-size: 1rem; }

/* Перше заняття */
/* Смуга заходу сонця: рожевий → персик → жовтий */
.first { background: linear-gradient(110deg, #F9C3D2 0%, #FFD6C2 48%, #FFE8A8 100%); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; padding-top: 24px; border-top: 1px solid rgba(58, 31, 56, .25); }
.steps li::before { content: counter(step); display: block; font: 200 4rem/1 var(--serif); color: var(--lilac-deep); margin-bottom: 22px; }
.steps h3 { font: 400 var(--step-1)/1.25 var(--serif); }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }

/* Запис: скляна табличка — ліворуч вступ, праворуч форма */
.booking-glass {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 5vw, 80px);
  border-radius: 48px;
}
.booking-intro { position: sticky; top: 120px; }
.booking-intro .lead { margin-top: 20px; }
.booking-alt { margin-top: 28px; color: var(--ink-soft); }
.booking-alt a { font: 400 1.5rem/1.4 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); text-decoration-color: var(--lilac); text-underline-offset: 5px; }

.booking-form { display: grid; gap: 26px; }
.bf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bf-field { display: grid; gap: 8px; align-content: start; }
.bf-field label, .bf-group legend { font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.bf-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.bf-group legend { padding: 0; margin-bottom: 10px; }
.bf-field input, .bf-field textarea {
  width: 100%; min-height: 52px; padding: 14px 18px;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(58, 31, 56, .16); border-radius: 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.bf-field textarea { resize: vertical; min-height: 96px; }
.bf-field input::placeholder, .bf-field textarea::placeholder { color: rgba(92, 56, 84, .55); }
.bf-field input:focus, .bf-field textarea:focus { outline: none; background: #fff; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(207, 98, 138, .18); }
.bf-field input[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 4px rgba(192, 57, 43, .12); }
.bf-error { font-size: .875rem; color: #A3271B; }

/* Чипи-перемикачі: справжні radio/checkbox, сховані візуально, підпис — пігулка */
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(58, 31, 56, .14);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--spring);
}
.chip:hover span { border-color: rgba(58, 31, 56, .35); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }
.chip input:active + span { transform: scale(.96); }
/* Шість днів завжди в один ряд, ділять ширину порівну */
/* Вибір заняття: дні з датами в один ряд, під ними — картки занять обраного дня */
.bf-days { flex-wrap: nowrap; gap: 6px; }
.bf-days .chip { flex: 1 1 0; min-width: 0; }
.chip-day span { width: 100%; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 0; min-height: 56px; border-radius: 18px; }
.chip-day b { font-weight: 600; font-size: 1rem; }
.chip-day small { font-size: .75rem; opacity: .7; font-variant-numeric: lining-nums tabular-nums; }
.bf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot > span { pointer-events: none; }
.slot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(58, 31, 56, .12);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .3s var(--spring); }
.slot:hover { border-color: rgba(58, 31, 56, .32); }
.slot:active { transform: scale(.98); }
.slot-time { flex: none; min-width: 3.2em; font: 400 1.25rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.slot-time svg { display: block; } /* значок ноутбука в картці «Онлайн» */
.slot-text { display: grid; line-height: 1.25; }
.slot-text b { font-weight: 500; font-size: 1rem; }
.slot-text small { font-size: .8125rem; color: var(--ink-soft); }
.slot:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot:has(input:checked) .slot-text small { color: rgba(255, 255, 255, .75); }
.slot:has(input:focus-visible) { outline: 2px solid var(--lilac-deep); outline-offset: 3px; }
.slot.is-past { opacity: .45; cursor: not-allowed; }
.slot.is-past input { cursor: not-allowed; }

/* Заняття в плитках «Розклад занять» — кнопки, що ведуть у форму запису */
.wh-classes { display: grid; gap: 4px; width: 100%; margin-top: 4px; }
.wh-class {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 10px; cursor: pointer;
  font: 500 .8125rem/1.2 var(--sans); color: var(--ink); text-align: left;
  background: rgba(255, 255, 255, .55);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .3s var(--spring);
}
.wh-class-time { font-variant-numeric: lining-nums tabular-nums; }
.wh-class-name { color: var(--ink-soft); }
.wh-fly .wh-class-name { color: var(--lilac-deep); }
.wh-class:hover { background: var(--ink); color: var(--paper); }
.wh-class:hover .wh-class-name { color: rgba(255, 255, 255, .8); }
.wh-class:active { transform: scale(.97); }
.week-hours .is-today .wh-class { background: rgba(255, 255, 255, .28); color: #fff; }
.week-hours .is-today .wh-class-name { color: rgba(255, 255, 255, .85); }

.bf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.bf-consent { flex: 1 1 260px; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
.bf-status:empty { display: none; }
.bf-status { padding: 16px 20px; border-radius: 18px; font-size: 1rem; line-height: 1.5; }
.bf-status.is-ok { background: rgba(255, 255, 255, .75); border: 1px solid rgba(46, 125, 90, .3); color: #1F5C40; }
.bf-status.is-error { background: rgba(255, 255, 255, .75); border: 1px solid rgba(192, 57, 43, .3); color: #8E2318; }
.booking-form button[disabled] { opacity: .6; cursor: progress; }

/* Контакти */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-list { margin-top: 56px; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); font-size: 1rem; }
.contact-list a { text-decoration-color: var(--lilac); text-underline-offset: 4px; }
.map {
  min-height: 440px; border-radius: 28px; overflow: hidden; background: #F6E6E6;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 44px -22px rgba(122, 46, 79, .35);
}
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: grayscale(1) sepia(.3) hue-rotate(300deg) saturate(1.3) contrast(.92); }

/* Підвал */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding-block: 32px; font-size: 1rem; color: var(--ink-soft); }
.footer-row .logo { color: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1120px) {
  /* Напрямки по одному в ряд, але текст і фото ще поруч — так фото ширше й плашки вміщаються */
  .dir-list { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
  .dir:last-child:nth-child(odd) { width: 100%; }
  .dir { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}

@media (max-width: 1080px) {
  /* Запис: вступ над формою, щоб форма мала всю ширину */
  .booking-glass { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  /* Плитки 4 + 3, другий ряд по центру */
  .week-hours { display: flex; flex-wrap: wrap; justify-content: center; }
  .week-hours > li { flex: 0 0 calc(25% - 9px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; color: var(--ink);
  }
  .menu-lines, .menu-lines::before { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
  .menu-lines::before { content: ""; position: absolute; top: 7px; }
  .menu-lines { transform: translateY(-3.5px); }
  [aria-expanded="true"] .menu-lines { transform: translateY(0) rotate(45deg); }
  [aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(-90deg); }

  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--mist); box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 0; font: 300 1.75rem/1.2 var(--serif); border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { content: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 24px; align-self: flex-start; }
  .site-header:has(.is-open) { background: var(--mist); }

  .section-head, .about-grid, .prices-grid, .contacts-grid, .booking-glass { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  .section-head .section-note { justify-self: start; }
  .prices-grid > div:first-child { position: static; }
  .about-photo { justify-self: start; max-width: none; }


  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* На телефоні опис і кнопки стоять у небі під заголовком, фігура внизу лишається відкритою */
  .hero-body { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; gap: 16px; padding-top: 104px; }
  .hero-lead { grid-row: 2; align-self: start; justify-self: center; text-align: center; max-width: 30ch; font-size: 1.125rem; color: var(--ink); text-shadow: none; }
  .hero-actions { grid-row: 3; align-self: start; flex-wrap: nowrap; justify-content: center; width: 100%; margin-top: 4px; }
  .hero-actions .btn { flex: 1; min-height: 48px; padding-inline: 16px; }
  .hero .btn-ink { background: var(--ink); color: var(--paper); }
  /* На телефоні скло лежить на світлому небі — текст темний */
  .hero-actions .btn-glass {
    color: var(--ink); border-color: rgba(255, 255, 255, .5);
    text-shadow: 0 0 8px rgba(255, 255, 255, .8), 0 0 18px rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(10px) saturate(.9);
            backdrop-filter: blur(10px) saturate(.9);
  }
  /* Тут кнопка стоїть над сонцем: без підсилення насиченості, інакше скло жовтіє */
  .hero-actions .btn-glass.is-liquid { backdrop-filter: var(--lg) saturate(.85) brightness(1.02); }
  .scroll-down { width: 50px; height: 50px; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-meta-end { display: none; }

  .facts { gap: 18px; margin-top: 40px; }
  .about-glass { padding: 26px 22px; border-radius: 32px; }  .about-glass .about-photo { border-radius: 22px; }

  /* Телефон: у картці фото згори, під ним назва й опис */
  .dir { grid-template-columns: 1fr; padding: 14px 14px 24px; border-radius: 32px; }
  .dir-photo { order: -1; aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .dir-text { padding-inline: 8px; }

  /* Години роботи на телефоні — плитки-рядки: день ліворуч, час праворуч */
  .hours-glass { padding: 32px 16px 20px; border-radius: 36px; }
  .booking-glass { padding: 30px 18px 24px; border-radius: 36px; }
  .bf-row { grid-template-columns: 1fr; }
  .bf-submit .btn { width: 100%; }
  .week-hours { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .week-hours > li {
    flex: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-radius: 20px; text-align: left; gap: 8px 12px;
  }
  .wh-classes { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .bf-slots { grid-template-columns: 1fr; }
  .week-hours .is-today { translate: 0 0; }
  .wh-day small { display: inline; margin: 0 0 0 8px; }
  .wh-time { font-size: 1.2rem; }

  .price-groups { grid-template-columns: 1fr; gap: 40px; }
  .price-group-wide .price-list { max-width: none; }
  .price-terms { padding: 20px; }

  .team-list, .team-list-2 { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .map, .map iframe { min-height: 320px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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