/* AHORA Beauty Studio — прототип сайту. Основа — дизайн салону на Wix: беж #F1ECE5, бордо #751E2C,
   рукописний Ratched Signature для англійських акцентів, TT Interfaces для тексту. Розкладка — спершу телефон. */

@font-face { font-family: 'Ratched'; src: url(../fonts/ratched-signature.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'TT Interfaces'; src: url(../fonts/tt-interfaces-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'TT Interfaces'; src: url(../fonts/tt-interfaces-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TT Interfaces'; src: url(../fonts/tt-interfaces-medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #f1ece5;
  --bg-2: #e9e1d6;
  --card: #fbf8f4;
  --ink: #1b1918;
  --muted: #5d5853;
  --line: #d6ccc0;
  --accent: #751e2c;
  --accent-2: #5c1622;
  --on-accent: #f7f1ea;
  --ok: #3f6b4f;
  --radius: 14px;
  --pill: 999px;
  --head: 64px;
  --bar: 72px;
  --wrap: 1180px;
  --sans: 'TT Interfaces', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Ratched', 'Snell Roundhand', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 17px/1.6 var(--sans); padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 8.6vw, 64px); }
h2 { font-size: clamp(28px, 6.4vw, 46px); }
h3 { font-size: 21px; font-weight: 400; line-height: 1.25; }
p { margin: 0; }
[id] { scroll-margin-top: calc(var(--head) + 14px); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.svg { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* рамка фокусу — тільки з клавіатури */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.puntero :focus-visible { outline: none; }
.puntero input:focus-visible, .puntero textarea:focus-visible, .puntero select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* рукописний акцент: англійські фрази, як на сайті Wix */
.script { font-family: var(--script); color: var(--accent); font-size: clamp(38px, 9.6vw, 72px); line-height: 1.55; display: block; margin-bottom: 12px; font-weight: 400; letter-spacing: 0; }
.script .ln { display: block; white-space: nowrap; }
.script .ln + .ln { margin-top: .22em; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: var(--pill); border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 400; font-size: 16px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) {
  .btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
  .btn.ghost:hover { background: var(--accent); color: var(--on-accent); }
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 44px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(241, 236, 229, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: var(--head); }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; }
.top .book { display: none; }
.burger { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: 12px 20px 28px; transform: translateY(-102%); transition: transform .3s ease; visibility: hidden; }
.menu.open { transform: none; visibility: visible; }
.menu .menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--head); margin: -12px 0 12px; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; font-weight: 300; }
.menu nav a[aria-current="page"] { color: var(--accent); }
.menu .menu-foot { margin-top: auto; display: grid; gap: 12px; }
.menu .menu-foot .btn { width: 100%; }

@media (min-width: 980px) {
  :root { --head: 80px; }
  .logo img { height: 40px; }
  .nav { display: flex; gap: 6px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
  .top .book { display: inline-flex; margin-left: 10px; }
  .burger { display: none; }
}
@media (hover: hover) and (min-width: 980px) { .nav a:hover { color: var(--ink); } }

/* нижня панель телефона: запис завжди під рукою */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(241, 236, 229, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.bar .btn { flex: 1; }
.bar .icon-btn { width: 50px; height: 50px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent); text-decoration: none; flex: none; }
@media (min-width: 980px) { .bar { display: none; } body { padding-bottom: 0; } }

/* секції */
.sec { padding: 56px 0; }
.sec.tint { background: var(--bg-2); }
.sec-head { margin-bottom: 28px; display: grid; gap: 12px; }
.sec-head.center { text-align: center; justify-items: center; }
@media (min-width: 980px) { .sec { padding: 96px 0; } .sec-head { margin-bottom: 44px; } }

/* перший екран головної */
.hero { padding: 20px 0 48px; }
.hero-grid { display: grid; gap: 28px; }
.hero-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.hero-photos figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.hero-photos figure:first-child { grid-row: span 2; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos figure:first-child img { aspect-ratio: 3 / 4; }
.hero-photos figure:not(:first-child) img { aspect-ratio: 4 / 3.05; }
.hero-text { display: grid; gap: 18px; }
.hero-text .actions { display: grid; gap: 12px; margin-top: 6px; }
.hero-text .actions .btn { width: 100%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .svg { width: 18px; height: 18px; color: var(--accent); }
.hero-facts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 560px) { .hero-text .actions { grid-template-columns: repeat(2, max-content); } .hero-text .actions .btn { width: auto; } }
@media (min-width: 980px) {
  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; grid-template-areas: "text photos" "text near"; align-items: start; gap: 22px 56px; }
  .hero-text { grid-area: text; align-self: center; }
  .hero-photos { grid-area: photos; }
  .hero .near { grid-area: near; }
  .hero .script { font-size: clamp(44px, 4.6vw, 64px); }
  .hero h1 { font-size: clamp(34px, 3.6vw, 50px); }
}

/* найближчий вільний час: рядок відкриває запис з послугою й часом */
.near { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.near-h { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 10px 0 8px; }
.near-h .svg { width: 18px; height: 18px; color: var(--accent); }
.near-row { display: grid; grid-template-columns: 1fr 20px; gap: 12px; align-items: center; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; }
.near-row > span { min-width: 0; }
.near-row b { font-weight: 400; display: block; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-row small { color: var(--muted); font-size: 14px; }
.near-row .when { color: var(--accent); font-weight: 400; font-size: 15px; }
.near-row .svg { color: var(--accent); width: 20px; height: 20px; }
@media (hover: hover) { .near-row:hover b { color: var(--accent); } }
.page-head .near { margin-top: 6px; max-width: 540px; }

/* напрями */
.dirs { display: grid; gap: 18px; }
.dir { display: grid; grid-template-rows: auto 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.dir img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dir .dir-body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.dir .from { color: var(--accent); font-weight: 400; }
.dir .more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); margin-top: 6px; min-height: 44px; }
@media (min-width: 760px) { .dirs { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (hover: hover) { .dir:hover img { transform: scale(1.03); } .dir img { transition: transform .5s ease; } }

/* «You are the reason» */
.reason { display: grid; gap: 24px; align-items: center; }
.reason figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.reason img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reason blockquote { margin: 0; display: grid; gap: 14px; }
@media (min-width: 980px) { .reason { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* команда */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
.member { display: grid; grid-template-rows: auto 1fr auto; gap: 0; text-decoration: none; }
.member .ph { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-2); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--script); font-size: 76px; color: var(--accent); background: linear-gradient(160deg, #eadfd3, #e1d4c6); }
.member .tag { position: relative; margin: -22px 8px 0; background: var(--card); border: 1px solid var(--accent); padding: 10px 12px; display: grid; gap: 2px; }
.member .tag b { font-weight: 400; font-size: 17px; }
.member .tag small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.member .rate { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.member .rate .svg { width: 14px; height: 14px; color: var(--accent); }
.member .btn { margin: 10px 8px 0; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); gap: 36px 22px; } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.team-strip > * { scroll-snap-align: start; }
@media (min-width: 760px) { .team-strip { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }

/* відгуки: на телефоні — стрічка, на моніторі — колонки */
.rv-sum { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.rv-avg { font-size: 58px; font-weight: 300; line-height: 1; color: var(--accent); }
.rv-sum p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .svg { width: 18px; height: 18px; }
.rv-list { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; align-items: start; }
.rv-list > * { scroll-snap-align: start; }
.rv { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; }
.rv-text { font-size: 16px; line-height: 1.55; }
.rv-who { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.rv-who b { font-weight: 400; color: var(--ink); font-size: 15px; }
.rv-svc { font-size: 14px; color: var(--accent); line-height: 1.4; }
.rv-reply { border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; font-size: 14px; color: var(--muted); }
.rv-reply b { font-weight: 400; color: var(--ink); font-size: 13px; letter-spacing: .08em; }
.rv .btn { justify-self: start; margin-top: 2px; }
@media (min-width: 760px) { .rv-list { display: block; columns: 2; column-gap: 18px; overflow: visible; padding: 0; } .rv { break-inside: avoid; margin-bottom: 18px; } }
@media (min-width: 1100px) { .rv-list { columns: 3; } }

/* роботи майстрів */
.works { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.work { margin: 0; display: grid; gap: 2px; scroll-snap-align: start; }
.work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.work figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.work .link { font-size: 14px; }
@media (min-width: 760px) { .works { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 16px; } }

/* шість причин (манікюр) */
.reasons { display: grid; gap: 30px; }
.reasons article { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; }
.reasons img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.reasons h3 { color: var(--accent); margin-bottom: 6px; font-size: 19px; }
.reasons p { color: var(--muted); font-size: 16px; }
@media (min-width: 760px) { .reasons { grid-template-columns: repeat(2, 1fr); gap: 36px 44px; } }
@media (min-width: 1100px) { .reasons { grid-template-columns: repeat(3, 1fr); } .reasons article { grid-template-columns: 1fr; text-align: center; justify-items: center; } .reasons img { width: 132px; height: 132px; } }

/* види масажу: фото й текст по черзі */
.kinds { display: grid; gap: 34px; }
.kind { display: grid; gap: 16px; }
.kind img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.kind h3 { color: var(--accent); margin-bottom: 8px; }
.kind p { color: var(--muted); }
.kind .btn { margin-top: 14px; }
@media (min-width: 900px) {
  .kind { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
  .kind:nth-child(even) img { order: 2; }
}

/* фото-смуга */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* прайс */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.prices { display: grid; border-top: 1px solid var(--line); }
.price { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.price .nm { font-weight: 400; font-size: 16px; line-height: 1.35; }
.price .du { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.price .du .svg { width: 15px; height: 15px; }
.price .pr { grid-row: span 2; text-align: right; display: grid; gap: 2px; justify-items: end; }
.price .pr b { font-weight: 400; font-size: 18px; color: var(--accent); }
.price .pr span { font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .price:hover { background: rgba(255, 255, 255, .45); } }
.price-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* контакти */
.contact { display: grid; gap: 22px; }
.contact .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; align-content: start; }
.contact dl { margin: 0; display: grid; gap: 6px; }
.contact dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.contact .rows { display: grid; gap: 4px; }
.contact .row { display: flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; }
.contact .row .svg { color: var(--accent); }
.contact .open { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.contact .open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.contact .open.on { color: var(--ok); }
.contact .open.on::before { background: var(--ok); }
.contact .photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.contact .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } .contact .card .btn { justify-self: start; } }

/* заклик унизу сторінки */
.cta { text-align: center; display: grid; gap: 16px; justify-items: center; }

/* підвал */
.foot { background: #e6ddd1; padding: 44px 0 28px; margin-top: 0; font-size: 15px; border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 26px; }
.foot .cols { display: grid; gap: 22px; }
.foot h4 { margin: 0 0 8px; font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot a { text-decoration: none; display: flex; width: 100%; min-height: 44px; align-items: center; }
.foot .legal { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* сторінка напряму: перший екран */
.page-head { padding: 28px 0 8px; }
.page-head .grid { display: grid; gap: 22px; align-items: center; }
.page-head figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head .txt { display: grid; gap: 16px; }
.page-head .txt .btn { justify-self: start; }
@media (min-width: 980px) { .page-head { padding: 56px 0 24px; } .page-head .grid { grid-template-columns: 1fr 1fr; gap: 64px; } .page-head figure img { aspect-ratio: 5 / 4; } }

/* ── запис ─────────────────────────────────────────── */
.book-dlg { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.book-dlg::backdrop { background: rgba(27, 25, 24, .45); }
.book-dlg[open] { display: flex; flex-direction: column; }
@media (min-width: 760px) {
  .book-dlg { width: min(720px, 100% - 48px); height: min(860px, 100% - 48px); margin: auto; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
}
.bk-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.bk-head h2 { font-size: 19px; font-weight: 400; text-align: center; }
.bk-head .step { display: block; font-size: 13px; color: var(--muted); text-align: center; }
.bk-head button { width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bk-head button[disabled] { visibility: hidden; }
.bk-prog { height: 3px; background: var(--line); }
.bk-prog i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.bk-body { flex: 1; overflow-y: auto; padding: 18px 16px 28px; -webkit-overflow-scrolling: touch; }
.bk-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; background: var(--card); }
.bk-foot[hidden] { display: none; }
.bk-foot .sum { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.bk-foot .sum b { display: block; color: var(--ink); font-weight: 400; font-size: 17px; }
.bk-foot .btn { flex: none; }
.bk-note { font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }

.choice { display: grid; gap: 12px; }
.choice button { display: grid; grid-template-columns: 52px 1fr 24px; gap: 14px; align-items: center; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; min-height: 88px; }
.choice button .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); }
.choice button b { display: block; font-weight: 400; font-size: 18px; }
.choice button span { color: var(--muted); font-size: 14px; }
.choice .again { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice .again .ic { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .choice button:hover { border-color: var(--accent); } }

.search { position: relative; margin-bottom: 12px; }
.search input { width: 100%; min-height: 48px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); padding: 0 16px 0 44px; font-size: 16px; }
.search .svg { position: absolute; left: 15px; top: 13px; color: var(--muted); }
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: 1fr auto 44px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.svc .nm { font-size: 16px; font-weight: 400; line-height: 1.35; }
.svc .du { color: var(--muted); font-size: 13px; }
.svc .pr { color: var(--accent); white-space: nowrap; }
.svc .tg { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); background: transparent; }
.svc[aria-checked="true"] .tg { background: var(--accent); color: var(--on-accent); }
.svc-group { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 18px 0 6px; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

.lane { margin-bottom: 26px; }
.lane h3 { font-size: 17px; margin-bottom: 4px; }
.lane .hint { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.masters { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .masters { grid-template-columns: repeat(2, 1fr); } }
.mcard { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; text-align: left; min-height: 72px; }
.mcard .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; font-family: var(--script); font-size: 30px; color: var(--accent); }
.mcard .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.mcard b { font-weight: 400; font-size: 15px; display: block; }
.mcard small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.mcard[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mcard.any .av { font-family: var(--sans); font-size: 22px; }
.mcard .mr { display: flex; align-items: center; gap: 4px; }
.mcard .mr .svg { width: 12px; height: 12px; color: var(--accent); }

/* запасний шлях: не знайшли час — WhatsApp з готовим текстом */
.alt, .next-steps a { display: grid; grid-template-columns: 24px 1fr 20px; gap: 12px; align-items: center; min-height: 64px; text-decoration: none; text-align: left; }
.alt { margin-top: 24px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); }
.alt .svg, .next-steps .svg { color: var(--accent); }
.alt b, .next-steps b { font-weight: 400; display: block; line-height: 1.3; }
.alt small, .next-steps small { color: var(--muted); font-size: 13px; }
.next-steps { display: grid; width: 100%; border-top: 1px solid var(--line); }
.next-steps a { border-bottom: 1px solid var(--line); padding: 6px 0; }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 14px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; min-height: 72px; }
.day small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day b { font-weight: 400; font-size: 20px; }
.day i { font-style: normal; font-size: 11px; color: var(--ok); }
.day[disabled] { opacity: .4; cursor: not-allowed; }
.day[disabled] i { color: var(--muted); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] i { color: var(--on-accent); }
.part { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 16px; }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (min-width: 500px) { .times { grid-template-columns: repeat(5, 1fr); } }
@media (hover: hover) { .time:hover, .day:not([disabled]):hover { border-color: var(--accent); } .svc:hover .nm { color: var(--accent); } }

.hold { display: flex; gap: 10px; align-items: center; background: #f3e6e2; color: var(--accent-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; }
.field.bad input { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 13px; display: none; }
.field.bad .err { display: block; }
.phone { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.form .legal { font-size: 13px; color: var(--muted); }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.summary .ln { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.summary .ln span:first-child { color: var(--muted); }
.summary .ln span:last-child { text-align: right; }
.summary .tot { border-top: 1px solid var(--line); padding-top: 10px; font-size: 17px; }
.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding-top: 10px; }
.done .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.done .ok .svg { width: 34px; height: 34px; }
.done .acts { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.done .acts .btn, .done .wide { width: 100%; }

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

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