/* AMADA — site prototype. Mobile-first. Mood «pearl»: nacre grounds, midnight ink, powder blue, gold hairlines. */
:root {
  --pearl: #F7F4F3; --paper: #FFFFFF; --powder: #F1D5DA; --lilac: #E6DAF2; --blue: #A7BCDD; --corn: #5E78B4;
  --ink: #1F2B55; --ink-2: #2E3C70; --muted: #69718F; --line: #E4E1EA; --gold: #B38A52; --gold-l: #D9BC86;
  --ok: #3F8A6E; --warn: #B4573E;
  /* цвета уровней мастера: плашка в карточке мастерицы и кружок с цифрой — одного цвета */
  --g0: var(--lilac); --g1: #DDE6F5; --g2: linear-gradient(135deg, #F6E7C6, #EBD3A0);
  --nacre: linear-gradient(115deg, #F8E7EF 0%, #F7F4F3 24%, #EAF0FA 50%, #F7F4F3 72%, #EFE8F7 100%);
  /* type system: one accent (swashes, headings only) · one readable text · Inter for small UI. Swap a pair here. */
  --acc: "Great Vibes", "Lora", Georgia, serif; --txt: "Lora", Georgia, serif; --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 22px 44px -30px rgba(31, 43, 85, .5);
  --shadow-s: 0 10px 24px -18px rgba(31, 43, 85, .55);
  --gut: 20px; --top: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pearl); color: var(--ink); font: 16.5px/1.6 var(--txt); overflow-x: hidden; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.ln { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--corn); outline-offset: 3px; border-radius: 8px; }

.eyebrow { font: 500 11.5px/1.3 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 26px; }
.link { display: inline-flex; gap: 8px; align-items: center; color: var(--corn); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(94, 120, 180, .35); padding-bottom: 2px; }
.link svg { width: 18px; height: 18px; }
.h3-serif { font: italic 500 24px/1.2 var(--txt); }

/* buttons: large tap zones (min 48px) */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; font: 500 15.5px/1 var(--ui); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 14px 26px -16px rgba(31, 43, 85, .9); }
@media (hover: hover) { .btn-ink:hover { background: var(--ink-2); } }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: rgba(31, 43, 85, .18); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--ink); } }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 243, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(228, 225, 234, .7); }
.top-in { height: var(--top); display: flex; align-items: center; gap: 18px; }
.logo { flex: none; }
.logo img { height: 34px; width: auto; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--ui); text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: .85; }
@media (hover: hover) { .nav a:hover { opacity: 1; } }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-msg { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; color: var(--corn); border: 1px solid var(--line); background: #fff; }
.top-msg svg { width: 20px; height: 20px; }
.top-act .btn { display: none; }
/* языки: три сегмента в жемчужной пилюле, текущий — сиреневый, как выбранный уровень в прайсе → docs/idiomas.md */
.idiomas { display: flex; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.idiomas a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; font: 600 12.5px/1 var(--ui); letter-spacing: .08em; color: var(--muted); text-decoration: none; }
@media (hover: hover) { .idiomas a:hover { color: var(--ink); } }
.idiomas a[aria-current] { background: var(--lilac); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(31, 43, 85, .08); }
@media (max-width: 399px) { .top-in { gap: 10px; } .logo img { height: 30px; } }
/* монитор 900–1099: с переключателем языка шапка теснее — меню плотнее, логотип чуть меньше */
@media (min-width: 900px) and (max-width: 1099px) { .nav { gap: 18px; } .top-in .logo img { height: 32px; } }
/* 900–999: места не хватает и так — кружок WhatsApp уходит из шапки, WhatsApp остаётся в вопросах, контактах и подвале */
@media (min-width: 900px) and (max-width: 999px) { .top-act .top-msg { display: none; } }
/* на 360 украинская «Записатися онлайн» и «Ціни» встают в одну строку, как на испанском */
@media (max-width: 379px) { .hero-cta .btn { padding: 0 20px; } }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
.drawer { border-top: 1px solid var(--line); background: var(--pearl); padding: 10px var(--gut) 22px; }
.drawer nav { display: grid; }
.drawer nav a { padding: 13px 2px; font: 500 19px/1.2 var(--txt); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-msg { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.drawer-msg a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 500; }
.drawer-msg svg { width: 18px; height: 18px; color: var(--corn); }

/* hero */
.hero { position: relative; background: var(--nacre); overflow: hidden; padding: 26px 0 30px; }
.hero-still { position: absolute; right: -26px; bottom: -34px; width: 58%; max-width: none; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(31, 43, 85, .18)); }
.hero-in { position: relative; display: grid; gap: 26px; }
.hero h1 { font: 400 clamp(54px, 14.5vw, 104px)/.98 var(--acc); letter-spacing: 0; margin: 12px 0 14px; text-wrap: balance; }
.lead { font-size: 17px; color: #3B456B; max-width: 34em; text-wrap: pretty; }
.lead .ln + .ln { margin-top: 6px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta .btn-ink { flex: 1 1 auto; }
.offer-chip { font-family: var(--ui); margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(217, 188, 134, .55); text-decoration: none; font-size: 14.5px; line-height: 1.4; box-shadow: var(--shadow-s); max-width: 440px; }
.offer-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F6E7C6, #D8B77C 45%, #FBEFD2 70%, #C39A5B); color: #5C4120; flex: none; }
.offer-ico svg { width: 20px; height: 20px; }
.slots-live { font-family: var(--ui); margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.slots-live i { width: 8px; height: 8px; border-radius: 50%; background: #E0788F; box-shadow: 0 0 0 0 rgba(224, 120, 143, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(224, 120, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 120, 143, 0); } }
.hero-media { margin: 0 0 24px; position: relative; justify-self: center; width: min(100%, 420px); }
.hero-media .arch { aspect-ratio: 4 / 4.6; }
.hero-media .arch img { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-2%, -1%); } }
.proof { list-style: none; margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.proof li { font-family: var(--ui); background: rgba(255, 255, 255, .72); border: 1px solid rgba(228, 225, 234, .9); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.proof b { display: flex; align-items: center; gap: 6px; font: 600 19px/1.1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink); }
.proof b svg { width: 18px; height: 18px; color: var(--gold); }

/* frames: arch / mirror-oval / soft rectangle, gold hairline set off the photo */
.arch, .oval, .frame { position: relative; overflow: hidden; background: var(--lilac); isolation: isolate; }
.arch { border-radius: 28px; box-shadow: var(--shadow); }
.oval { border-radius: 24px; box-shadow: var(--shadow); }
.frame { border-radius: 20px; box-shadow: var(--shadow-s); }
.arch img, .oval img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.arch::after, .oval::after { content: ""; position: absolute; inset: 9px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .75); pointer-events: none; }
img[data-ph] { opacity: 0; transition: opacity .5s; }
img[data-ph].in { opacity: 1; }

/* sections */
.sec { padding: 64px 0; position: relative; }
.sec-tint { background: linear-gradient(180deg, rgba(230, 218, 242, .35), rgba(234, 240, 250, .45) 60%, rgba(247, 244, 243, 0)); }
.sec-head { display: grid; gap: 10px; text-align: center; justify-items: center; margin-bottom: 30px; }
.sec-head.left { text-align: left; justify-items: start; }
.sec-head h2, .offer-card h2 { font: 400 clamp(42px, 10.5vw, 70px)/1.06 var(--acc); text-wrap: balance; }
.sub { color: var(--muted); max-width: 36em; }
.rating { font-family: var(--ui); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rating b { font-size: 20px; color: var(--ink); }
.stars-i { display: inline-flex; gap: 2px; color: var(--gold); } .stars-i svg { width: 16px; height: 16px; }
.divider { display: block; margin: 0 auto; width: min(380px, 78vw); height: auto; }

/* transitions & corner accents: shells and pearls between sections */
.wave-band { display: block; width: 100%; height: 64px; margin-top: -32px; position: relative; z-index: 1; pointer-events: none; }
.sec-after-wave { padding-top: 34px; }
.peek { position: absolute; pointer-events: none; z-index: 0; width: 150px; filter: drop-shadow(0 14px 18px rgba(31, 43, 85, .12)); }
.peek-tr { right: -36px; top: -56px; }
.peek-bl { left: -40px; bottom: -10px; width: 140px; }
.peek-tl { left: -30px; top: -40px; width: 130px; }
.peek-sticker { right: -26px; top: 18px; width: 120px; transform: rotate(10deg); filter: none; }
.sec > .wrap { position: relative; z-index: 1; }
.faq-still { display: none; }

/* groups (service entry) */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group { position: relative; display: grid; text-decoration: none; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
/* эффекты наведения — только для мыши: на iPhone первое касание карточки уходило на наведение, запись открывалась со второго */
@media (hover: hover) { .group:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.group .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--lilac); border-radius: 16px; margin: 8px 8px 0; }
.group .ph img { transition: transform .6s ease; } @media (hover: hover) { .group:hover .ph img { transform: scale(1.05); } }
.group .ph img { width: 100%; height: 100%; object-fit: cover; }
.group-t { padding: 12px 14px 16px; display: grid; gap: 4px; grid-template-rows: auto 1fr auto; }
.group-t b { font: 500 18px/1.2 var(--txt); }
.group-t span { font-family: var(--ui); font-size: 12.5px; color: var(--muted); line-height: 1.35; min-height: 2.7em; }
.group-t em { font-family: var(--ui); font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--corn); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.group-t em svg { width: 16px; height: 16px; }

/* ritual */
.ritual { display: grid; gap: 34px; }
.ritual-media { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
.ritual-media .arch { aspect-ratio: 3 / 4; }
.ritual-media .oval { aspect-ratio: 3 / 3.8; margin-bottom: 26px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: italic 500 32px/1 var(--txt); color: var(--blue); }
.steps b { font-weight: 600; font-size: 17.5px; }
.steps span { color: var(--muted); }

/* objections */
.cares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.care { min-width: 0; overflow-wrap: break-word; hyphens: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; }
.care > svg { width: 30px; height: 30px; color: var(--corn); margin-bottom: 4px; }
.care h3 { font: 600 16.5px/1.25 var(--txt); }
.care p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.steril { margin-top: 34px; display: grid; gap: 22px; background: var(--nacre); border-radius: 28px; padding: 24px 20px; border: 1px solid rgba(228, 225, 234, .9); }
.steril-steps { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; gap: 10px; }
.steril-steps li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.steril-steps span { font: italic 500 20px/1 var(--txt); color: var(--gold); min-width: 34px; }
.steril-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.steril-media .frame { aspect-ratio: 4 / 5; }

/* prices */
.price-ctrl { display: grid; gap: 12px; margin-bottom: 18px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 calc(var(--gut) * -1); padding-inline: var(--gut); }
.tabs::-webkit-scrollbar { display: none; }
.tab, .chip { font-family: var(--ui); flex: none; min-height: 46px; padding: 0 20px; font-weight: 500; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.tab svg, .chip svg { width: 18px; height: 18px; color: var(--corn); }
.tab[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab[aria-selected="true"] svg, .chip[aria-pressed="true"] svg { color: var(--gold-l); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { font-family: var(--ui); min-height: 40px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 13.5px; line-height: 1.15; padding: 0 6px; }
.seg button[aria-checked="true"] { background: var(--lilac); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(31, 43, 85, .08); }
.price-list { display: grid; gap: 14px; }
.price-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 6px; box-shadow: var(--shadow-s); }
.price-sec h3 { font: italic 500 21px/1.2 var(--txt); margin: 0 0 4px; }
.price-sec .note { font-size: 13.5px; color: var(--muted); margin: -2px 0 8px; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.prows .prow:last-child { border-bottom: 0; }
.prow-name { font-weight: 500; line-height: 1.35; }
.prow-time { font-family: var(--ui); grid-column: 1; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.prow-time svg { width: 14px; height: 14px; }
.prow-price { grid-row: 1 / span 2; grid-column: 2; display: grid; justify-items: end; gap: 6px; }
.prow-price b { font: 600 17px/1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow-add { font-family: var(--ui); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--corn); text-decoration: none; padding: 6px 0; }
.prow-add svg { width: 15px; height: 15px; }
.prow.hot .prow-name::after { content: "вигідніше"; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.price-note { font-family: var(--ui); margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* team */
.grades { display: grid; gap: 10px; margin-bottom: 22px; }
/* до монитора — сверху вниз: цифра, уровень, описание, цена */
.grade { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; align-content: start; justify-items: start; gap: 4px; }
.grade i { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--g0); color: var(--ink); font: italic 500 18px/1 var(--txt); }
.grade.g1 i { background: var(--g1); } .grade.g2 i { background: var(--g2); }
.grade b { font-family: var(--ui); font-weight: 600; }
.grade span { font-family: var(--ui); font-size: 13.5px; color: var(--muted); }
.grade em { margin-top: 4px; font: 600 15px/1 var(--ui); color: var(--gold); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 18px; padding: 2px var(--gut) 6px; }
.chips::-webkit-scrollbar { display: none; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mcard { min-width: 0; overflow-wrap: break-word; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; display: grid; gap: 10px; align-content: start; }
.mcard .oval { aspect-ratio: 4 / 5; box-shadow: none; }
.mcard .badge { font-family: var(--ui); justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--g0); }
.mcard .badge.g1 { background: var(--g1); } .mcard .badge.g2 { background: var(--g2); }
.mcard h3 { font: 500 17.5px/1.2 var(--txt); }
.mcard p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.mcard .prof { color: var(--ink); font-weight: 600; }
.mcard .slot { font-family: var(--ui); font-size: 12.5px; color: var(--ok); display: flex; gap: 6px; align-items: center; font-weight: 500; }
.mcard .slot svg { width: 14px; height: 14px; }
.mcard .btn { --h: 42px; padding: 0 14px; font-size: 14px; }

/* works */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.works .frame { aspect-ratio: 1; }

/* space */
.space { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.space .frame { aspect-ratio: 1; }
.space .frame.big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.drinks { position: relative; margin-top: 40px; display: grid; gap: 18px; }
.drinks-head { display: grid; gap: 6px; text-align: center; justify-items: center; }
.drink-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drink { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 8px 14px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-s); }
.drink .frame { aspect-ratio: 1; border-radius: 16px; box-shadow: none; }
.drink figcaption { display: grid; gap: 2px; padding: 0 6px; }
.drink b { font: 600 17px/1.2 var(--txt); }
.drink span { font: 13px/1.35 var(--ui); color: var(--muted); }
.drinks-trail { display: none; position: absolute; right: 2%; top: -24px; width: 92px; }

/* reviews */
.reviews { display: grid; gap: 12px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
.review .stars { color: var(--gold); display: flex; gap: 2px; }
.review .stars svg { width: 16px; height: 16px; }
.review p { font-size: 15px; }
.review footer { font-family: var(--ui); display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.review .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--nacre); border: 1px solid var(--line); display: grid; place-items: center; font: italic 500 17px/1 var(--txt); color: var(--ink); flex: none; }
.review footer b { color: var(--ink); font-weight: 600; display: block; }

/* offer */
.offer { display: grid; gap: 14px; }
.offer-card, .cert-card { position: relative; border-radius: 28px; padding: 26px 22px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.offer-card { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.offer-card .eyebrow { color: var(--gold-l); }
.offer-sticker { position: absolute; right: -54px; top: -50px; width: 190px; opacity: .95; transform: rotate(12deg); }
.offer-card h2 { padding-right: 90px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: #E8EBF5; }
.ticks svg { width: 22px; height: 22px; color: var(--gold-l); margin-top: 1px; }
.offer-card .btn-ink { background: #fff; color: var(--ink); justify-self: start; }
.cert-card { background: var(--nacre); border: 1px solid var(--line); }
.cert-card > *:not(.cert-still) { position: relative; z-index: 1; }
.cert-still { position: absolute; right: -34px; bottom: -40px; width: 230px; }
.cert-card p:not(.eyebrow) { color: #3B456B; max-width: 26em; }
.cert-vals { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-vals span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(217, 188, 134, .6); font: 600 15px/1 var(--ui); }
.cert-card .btn { justify-self: start; }

/* faq */
.faq-wrap { display: grid; gap: 8px; }
.msg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.msg-row svg { color: var(--corn); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { font-family: var(--txt); font-size: 16.5px; list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 500; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; border-right: 1.6px solid var(--corn); border-bottom: 1.6px solid var(--corn); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 18px 18px; color: #3B456B; }

/* contacts */
.contacts { display: grid; gap: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.contact-list svg { width: 22px; height: 22px; color: var(--corn); margin-top: 2px; }
.contact-list b { font-family: var(--ui); display: block; font-weight: 600; }
.contact-list span, .contact-list a { color: var(--muted); text-decoration: none; }
.map { min-height: 280px; border-radius: 28px; position: relative; overflow: hidden; text-decoration: none; display: grid; place-items: center; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,.85) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 49.6%, rgba(255,255,255,.85) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    var(--nacre); }
.map-pin { width: 76px; height: 76px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.map-pin img { width: 46px; transform: rotate(45deg); }
.map-label { font-family: var(--ui); position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap; }

/* footer */
.foot { font-family: var(--ui); background: var(--ink); color: #DCE2F2; position: relative; overflow: hidden; padding: 48px 0 110px; }
.foot-still { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .95; }
.foot-in { position: relative; display: grid; gap: 22px; }
.foot-logo { width: 220px; height: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot-nav a { text-decoration: none; opacity: .85; }
.foot-msg { display: flex; gap: 10px; }
.foot-msg a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.foot-msg svg { width: 20px; height: 20px; }
.foot-legal { font-size: 13px; opacity: .65; }
.foot-legal a { text-decoration: none; }

/* sticky dock (mobile) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 243, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
.dock .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; font-size: 15px; white-space: nowrap; }
.dock-ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--corn); flex: none; }
.dock-ico svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- booking quiz */
.book { font-family: var(--ui); position: fixed; inset: 0; z-index: 60; background: rgba(23, 31, 64, .45); display: grid; }
.book[hidden] { display: none; }
/* высота — по окну, а не 100dvh: Safari на iOS 26 не рисует прилипшее ниже своей адресной строки,
   и при 100dvh нижняя панель с кнопкой уходила под неё. 100svh — экран при развёрнутой строке, ниже панель не опустится */
.book-panel { background: var(--pearl); display: grid; grid-template-rows: auto 1fr auto; height: 100%; max-height: 100svh; width: 100%; }
/* телефон и планшет: нижняя панель записи прижата к низу экрана, как нижняя кнопка страницы (.dock).
   Safari на iOS 26 поднимает над своей адресной строкой только то, что прижато к низу, — панель внизу
   растянутого окна оказывалась под строкой. Содержимому — запас снизу, чтобы последние строки выезжали над панелью */
@media (max-width: 899px) {
  .book { background: #fff; }
  .book .book-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; box-shadow: 0 -10px 24px -18px rgba(31, 43, 85, .35); }
  .book .book-body { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
.book-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 10px 12px 0; background: var(--nacre); position: relative; }
.book-title { text-align: center; }
.book-step { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* «КРОК 1 З 6» заглавными читается как «1 3 6» — на украинском строчными */
.book-step:lang(uk) { text-transform: none; letter-spacing: .04em; font-size: 13px; }
.book-title h2 { font: 400 32px/1.05 var(--acc); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[disabled] { visibility: hidden; }
.book-progress { grid-column: 1 / -1; height: 3px; background: rgba(31, 43, 85, .08); margin: 10px -12px 0; }
.book-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--corn)); transition: width .35s; }
.book-body { overflow-y: auto; padding: 18px var(--gut) 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.book-foot { border-top: 1px solid var(--line); background: #fff; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.book-sum { font-size: 13px; color: var(--muted); line-height: 1.35; min-width: 0; }
.book-sum b { display: block; color: var(--ink); font: 600 17px/1.25 var(--ui); font-variant-numeric: tabular-nums; }
.book-foot .btn { min-width: 150px; }
.book-foot.final { grid-template-columns: 1fr; } .book-foot.final .book-sum { display: none; }
.q-hint { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.q-h { font: 600 13px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.q-h:first-child { margin-top: 0; }
/* шесть областей — три в ряд, два ряда: все видны сразу, без ленты */
.q-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; padding: 2px 0 8px; }
.q-group { min-width: 0; border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 6px 6px 10px; display: grid; gap: 6px; justify-items: center; cursor: pointer; font-size: 13.5px; font-weight: 500; text-align: center; }
.q-group .ph { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--lilac); }
.q-group .ph img { width: 100%; height: 100%; object-fit: cover; }
.q-group[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.q-group .cnt { font-size: 11px; color: #fff; background: var(--corn); border-radius: 999px; padding: 1px 7px; }
.opt { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 14px 14px 48px; min-height: 60px;
  border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; margin-bottom: 8px; }
.opt::before { content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; border: 1.5px solid #B9BED0; background: #fff; }
.opt.radio::before { border-radius: 50%; }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt[aria-checked="true"]::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--ink); }
.opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.opt-name { font-weight: 500; line-height: 1.3; }
.opt-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.opt-price { grid-row: 1 / span 2; grid-column: 2; font: 600 16px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.opt-price small { display: block; font: 12px/1.3 var(--ui); color: var(--muted); margin-top: 4px; }
.opt-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--warn); }
.parallel { margin: 14px 0 4px; border-radius: 18px; padding: 16px; background: var(--nacre); border: 1px solid rgba(217, 188, 134, .6); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.parallel b { display: flex; gap: 8px; align-items: center; }
.parallel b svg { width: 22px; height: 22px; color: var(--corn); }
.parallel span { font-size: 13.5px; color: var(--muted); grid-column: 1; }
.switch { grid-row: 1 / span 2; grid-column: 2; width: 54px; height: 32px; border-radius: 999px; border: 0; background: #CCD0DD; position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.masters { display: grid; gap: 8px; }
.mopt { display: grid; grid-template-columns: 58px 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; min-height: 76px; }
.mopt .ph { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 58px; height: 58px; border-radius: 16px; overflow: hidden; background: var(--nacre); display: grid; place-items: center; }
.mopt .ph img { width: 100%; height: 100%; object-fit: cover; }
.mopt .ph svg { width: 28px; height: 28px; color: var(--corn); }
.mopt b { grid-column: 2; font-weight: 600; line-height: 1.25; }
.mopt > span:not(.ph) { font-size: 12.5px; color: var(--muted); grid-column: 2; line-height: 1.35; }
.mopt span.ok { color: var(--ok); }
.mopt em { grid-row: 1 / span 3; grid-column: 3; align-self: center; font: 600 16px/1 var(--ui); font-variant-numeric: tabular-nums; font-style: normal; white-space: nowrap; }
.mopt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mopt.any { background: var(--nacre); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 10px; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 64px; padding: 10px 0 9px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: grid; justify-items: center; gap: 2px; cursor: pointer; scroll-snap-align: start; }
.day small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day b { font: 600 19px/1 var(--ui); }
.day i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-top: 3px; }
.day i.low { background: #E0A04F; } .day i.none { background: #CCD0DD; }
.day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.day[aria-pressed="true"] small { color: #C9D2EA; }
.day[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.time-wrap { display: grid; gap: 14px; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { font: 600 16px/1 var(--ui); text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-nav[disabled] { opacity: .3; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-day { aspect-ratio: 1; min-height: 40px; border-radius: 12px; border: 0; background: none; font: 500 15px/1 var(--ui); position: relative; cursor: pointer; color: var(--ink); }
.cal-day i { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); background: var(--ok); }
.cal-day i.low { background: #E0A04F; }
@media (hover: hover) { .cal-day:hover { background: var(--lilac); } }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--blue); }
.cal-day[aria-disabled="true"] { color: #C3C6D3; cursor: default; background: none; }
.cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-day[aria-pressed="true"] i { background: #fff; }
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; padding-left: 4px; }
.cal-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; }
.cal-legend i.low { background: #E0A04F; }
.day-title { font: 600 15px/1.3 var(--ui); margin: 4px 0 0; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; }
.time[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.who { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px dashed rgba(94, 120, 180, .5); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.who svg { width: 20px; height: 20px; color: var(--corn); }
.gift-note { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; }
.gift-note svg { width: 24px; height: 24px; color: var(--gold-l); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea, .field select { min-height: 52px; border-radius: 14px; border: 1px solid #D6D8E4; background: #fff; padding: 0 14px; font: 16px var(--ui); color: var(--ink); width: 100%; }
.field textarea { min-height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--corn); box-shadow: 0 0 0 3px rgba(94, 120, 180, .18); }
.field .err { font-size: 12.5px; color: var(--warn); display: none; }
.field.bad input { border-color: var(--warn); } .field.bad .err { display: block; }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.drinks-q { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dq { border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 10px 2px; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: 12px; font-weight: 500; min-height: 74px; }
.dq svg { width: 26px; height: 26px; color: var(--corn); }
.dq[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--lilac); }
.toggle-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.toggle-row b { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.toggle-row b svg { width: 20px; height: 20px; color: var(--corn); }
.toggle-row span { font-size: 13px; color: var(--muted); grid-column: 1; }
.upload { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; border: 1px dashed #B9BED0; background: #fff; cursor: pointer; font-size: 14px; }
.upload svg { width: 22px; height: 22px; color: var(--corn); }
.upload input { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: #3B456B; margin-bottom: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.check.bad { color: var(--warn); }
.welcome { padding: 12px 14px; border-radius: 14px; margin: -4px 0 14px; font-size: 14px; display: none; }
.welcome.show { display: block; }
.welcome.back { background: #E6F2EC; color: #24563F; } .welcome.new { background: var(--lilac); color: var(--ink); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 16px; }
.summary div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .tot dd { font: 600 20px/1 var(--ui); font-variant-numeric: tabular-nums; }
.pay { margin-top: 16px; display: grid; gap: 8px; }
.pay-opt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font-weight: 500; }
.pay-opt svg { width: 22px; height: 22px; color: var(--corn); }
.pay-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rules { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* thank-you */
.thanks { padding: 40px 0 70px; background: var(--nacre); min-height: 70vh; }
.thanks-in { display: grid; gap: 20px; max-width: 760px; }
.thanks h1 { font: 400 clamp(46px, 12vw, 78px)/1.02 var(--acc); }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 12px; }
.tcard h3 { font: italic 500 20px/1.25 var(--txt); }
.tact { display: grid; gap: 8px; }
.tact .btn { justify-content: flex-start; }
.prep { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3B456B; }

/* funnel map */
.mapdoc { padding: 40px 0 80px; }
.mapdoc .wrap { display: grid; gap: 28px; }
.mapdoc h1 { font: 400 clamp(44px, 10vw, 72px)/1.02 var(--acc); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.flow li { counter-increment: f; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 14px 58px; position: relative; }
.flow li::before { content: counter(f); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.flow b { display: block; }
.flow span { font-family: var(--ui); font-size: 14px; color: var(--muted); }
.kv { font-family: var(--ui); width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.kv th, .kv td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { background: var(--lilac); font-weight: 600; }
.kv code { font-size: 12.5px; background: #F1F2F7; padding: 1px 5px; border-radius: 6px; }
.tablewrap { overflow-x: auto; }

/* toast */
.toast { font-family: var(--ui); position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; z-index: 80; pointer-events: none; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .hero-media .arch img { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- ≥ 560 */
@media (min-width: 560px) {
  .groups { grid-template-columns: repeat(3, 1fr); }
  .cares { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); } /* по специализации трое, по одной на уровень — под колонками .grades */
  .works { grid-template-columns: repeat(3, 1fr); }
  .proof { grid-template-columns: repeat(4, 1fr); }
  .times { grid-template-columns: repeat(5, 1fr); }
  .drink-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .drinks-trail { display: block; }
  .grades { grid-template-columns: repeat(3, 1fr); }
}
/* ---------------------------------------------------------------- ≥ 900 desktop */
@media (min-width: 900px) {
  :root { --gut: 32px; --top: 76px; }
  .nav { display: flex; }
  .top-act { margin-left: 18px; }
  .top-msg { display: grid; }
  .top-act .btn { display: inline-flex; }
  .burger, .drawer { display: none !important; }
  .logo img { height: 40px; }
  .hero { padding: 54px 0 46px; }
  .hero-still { width: 300px; right: -96px; bottom: -54px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .hero-text { padding-bottom: 20px; position: relative; z-index: 1; }
  .hero-cta .btn-ink { flex: 0 0 auto; }
  .hero-media { width: 100%; max-width: 440px; justify-self: end; margin-right: 60px; }
  .proof { margin-top: 40px; }
  .sec { padding: 96px 0; }
  .sec-head { margin-bottom: 40px; }
  .grade { grid-template-columns: auto 1fr; justify-items: stretch; align-items: center; gap: 2px 12px; }
  .grade i { grid-row: span 2; margin-bottom: 0; } .grade span, .grade em { grid-column: 2; }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .group { grid-template-columns: 46% 1fr; align-items: stretch; container-type: inline-size; }
  /* фото почти квадратное и не шире своей колонки: в ряду с длинным названием оно вытягивается вниз, а не наезжает на текст */
  .group .ph { aspect-ratio: auto; min-height: calc((46cqi - 20px) * 1.05); margin: 10px; position: relative; }
  .group .ph img { position: absolute; inset: 0; }
  .group-t { padding: 22px 20px 20px 6px; align-content: center; grid-template-rows: auto auto auto; gap: 8px; }
  .group-t b { font-size: 24px; }
  .group-t span { font-size: 14px; min-height: 0; }
  .group-t em { font-size: 15px; margin-top: 10px; }
  .ritual { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; }
  .ritual-media { max-width: none; }
  .steril { grid-template-columns: 1fr 1fr; align-items: center; padding: 34px; gap: 34px; }
  .price-ctrl { justify-items: center; gap: 16px; margin-bottom: 26px; }
  .tabs { margin: 0; padding-inline: 2px; flex-wrap: wrap; justify-content: center; }
  .seg { width: 420px; }
  .price-sec { padding: 26px 32px 10px; }
  .prows { columns: 2; column-gap: 56px; column-rule: 1px solid var(--line); }
  .chips { margin: 0 0 22px; padding-inline: 2px; justify-content: center; flex-wrap: wrap; }
  .mcard .oval { aspect-ratio: 1; } /* три колонки широкие — портрет 4:5 вышел бы выше экрана */
  .mcard .oval img { object-position: 50% 25%; }
  .works { grid-template-columns: repeat(6, 1fr); }
  .space { grid-template-columns: 1.5fr 1fr; grid-template-rows: 270px 270px; }
  .space .frame { aspect-ratio: auto; } .space .frame.big { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .drinks { margin-top: 56px; }
  .peek { width: 220px; } .peek-tr { right: -40px; top: -90px; } .peek-bl { left: -30px; bottom: 20px; width: 200px; } .peek-tl { left: -20px; top: -70px; width: 190px; }
  .peek-sticker { right: 6%; top: 60px; width: 170px; }
  .wave-band { height: 110px; margin-top: -56px; }
  .faq-still { display: block; width: 260px; margin-top: 24px; margin-left: -20px; }
  .time-wrap { grid-template-columns: 330px 1fr; align-items: start; gap: 20px; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .offer { grid-template-columns: 1.2fr 1fr; }
  .offer-card, .cert-card { padding: 38px; }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .faq-wrap .sec-head { position: sticky; top: calc(var(--top) + 30px); }
  .contacts { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .map { min-height: 420px; }
  .foot { padding-bottom: 56px; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot-nav, .foot-msg, .foot-legal { grid-column: 2; }
  .foot-logo { grid-row: span 3; width: 260px; }
  .dock { display: none; }
  .book { place-items: center; padding: 24px; }
  .book-panel { width: min(760px, 100%); height: min(860px, calc(100dvh - 48px)); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(10, 16, 40, .6); }
  .book-head { padding: 16px 18px 0; } .book-progress { margin: 14px -18px 0; }
  .book-body { padding: 24px 32px 30px; }
  .book-foot { padding: 14px 24px; }
  .q-groups { gap: 12px; }
  .q-group .ph { aspect-ratio: 3 / 2; }
  .tact { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- образец: правила проекта */
/* нижняя панель на телефоне видна всегда, не появляется при прокрутке → R-18, п. 5; телу — отступ под неё */
@media (max-width: 899px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
/* одностраничник: раздел на экране отмечен в меню → R-18, п. 6 */
.nav a.is-active { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold); }
.nota-ejemplo { font-family: var(--ui); display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
/* запись — встроенное окно <dialog>, как у ресторана: Esc, фокус внутри, фон страницы не прокручивается */
dialog.book { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: inherit; }
dialog.book:not([open]) { display: none; }
dialog.book::backdrop { background: transparent; }
/* декоративные ракушки у краёв секций не расширяют страницу → R-14 */
.hero, .sec, .foot { overflow-x: clip; }
/* якорь приезжает на шапку + 14 px → R-14 */
html { scroll-padding-top: 0; }
[id] { scroll-margin-top: calc(var(--top) + 14px); }
@media (max-width: 899px) {
  .btn-sm { --h: 44px; }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
  .logo { display: inline-flex; align-items: center; min-height: 44px; }
  .seg button { min-height: 44px; }
  .prow-add { padding: 11.5px 0; margin: -5.5px 0; }
  .mcard .btn { --h: 44px; min-height: 44px; }
  .foot-nav a { display: inline-block; padding-block: 9px; margin-block: -9px; min-width: 44px; text-align: center; }
  .contact-list a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  /* капитель с разрядкой — не мельче 12 px */
  .eyebrow, .mcard .badge, .book-step { font-size: 12px; }
}
/* окно записи на телефоне: цели 44 px, капитель 12 px → R-14 */
@media (max-width: 899px) {
  .cal { padding: 10px 6px 8px; }
  .cal-nav { width: 44px; height: 44px; }
  .cal-day { min-height: 44px; }
  .cal-wd { font-size: 12px; }
  .switch { box-sizing: content-box; padding: 6px 0; background-clip: content-box; }
  .switch::after { top: 9px; }
  .check { min-height: 44px; }
}
@media (max-width: 389px) { .book-body { padding-inline: 14px; } }
/* карточки мастериц: «ближайшее окно» и кнопка прижаты к низу — кнопки в ряду на одной линии */
.mcard { display: flex; flex-direction: column; }
.mcard .slot { margin-top: auto; }

/* ── рамка фокуса — для клавиатуры ──
   После нажатия пальцем или мышью (класс .puntero ставит скрипт) рамки нет ни у кнопки, вкладки и ссылки,
   ни у подписи выбранного варианта. У текстового поля, где печатают, рамка остаётся */
.puntero :is(a, button, summary, select, [tabindex], input[type="radio"], input[type="checkbox"], input[type="range"]):focus,
.puntero :is(input[type="radio"], input[type="checkbox"]):focus ~ *,
.puntero :has(> input:is([type="radio"], [type="checkbox"]):focus),
.puntero :has(> * > input:is([type="radio"], [type="checkbox"]):focus) { outline: none !important; }
