/* Geologica — свой сервер, без Google Fonts: быстрее из Бишкека и без чужой зависимости */
/* cyrillic */
/* кыргызские буквы ң ө ү (и остальная расширенная кириллица) — грузится только если они есть на странице */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/static/fonts/geologica-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/static/fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/static/fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Баатыр · Rayana — одна система на оба зала.
   Цвет: белый + тёплый серый, чернильный текст, синий вывески для действий, латунь для цен.
   Шрифт: Geologica — одна семья, иерархия весом и размером. */
:root {
  --bg: #FFFFFF; --bg-2: #F3F2EF; --ink: #17181A; --ink-2: #4A4D52; --muted: #696C71; --line: #E5E3DE;
  --navy: #1F2B45; --navy-h: #2B3A5C; --navy-ink: #F4F3F0; --navy-soft: #A8B0C2;
  --brass: #87663A; --ok: #2E8B57;
  --font: "Geologica", system-ui, sans-serif;
  --r: 18px; --r-s: 12px; --gut: 20px; --max: 1160px;
  --shadow: 0 1px 2px rgba(23,24,26,.04), 0 8px 24px rgba(23,24,26,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 44ch; margin: 18px 0 0; font-weight: 300; }
/* одинаковая лёгкая цветокоррекция снимков обоих залов — как одна съёмка */
.ph { filter: saturate(.82) contrast(1.04) brightness(1.02); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-h); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.wide { width: 100%; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.logos { display: flex; }
.logos img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.logos img + img { margin-left: -10px; }
.brand-t { display: grid; line-height: 1.2; }
.brand-t b { font-weight: 600; font-size: 15px; } .brand-t small { color: var(--muted); font-size: 13px; }
.switch { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; }
.switch a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23,24,26,.1); }
.top-cta { justify-self: end; }

/* ---------- главная: два зала ---------- */
.split { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.split-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px 64px; align-items: end; margin-bottom: clamp(28px, 4vw, 40px); }
.split-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.split-head h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.split-head .lead { margin: 0; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-radius: var(--r); transition: box-shadow .4s; }
.doors.pick { box-shadow: 0 0 0 4px rgba(31,43,69,.18); }
.door { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 5 / 4; max-height: 62vh; width: 100%; text-decoration: none; color: #fff; isolation: isolate; background: var(--bg-2); }
.door .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,17,22,0) 40%, rgba(15,17,22,.78) 100%); }
.door-in { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: clamp(22px, 3vw, 36px); }
.door-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.door-kind { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.door-name { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.door-sub { opacity: .85; font-weight: 300; }
.door-go { position: absolute; right: clamp(22px, 3vw, 36px); bottom: clamp(22px, 3vw, 36px); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .door:hover .ph { transform: scale(1.035); }
  .door:hover .door-go { transform: translateX(4px); }
}
body:not([data-hall=""]) .split { display: none; }

/* ---------- страница зала ---------- */
.hall { display: none; }
body[data-hall="men"] .hall[data-for="men"], body[data-hall="women"] .hall[data-for="women"] { display: block; }
/* main всегда виден (landmark для экранных дикторов); залы скрыты правилом .hall выше */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.open { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--ink-2); font-size: 15px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open.on .led { background: var(--ok); box-shadow: 0 0 0 4px rgba(46,139,87,.15); }
.open.off .led { background: #B8621B; }
.hero-photo { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); }
.hero-photo .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.badge { position: absolute; left: -28px; bottom: 36px; width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow); }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-in > * { display: flex; gap: 14px; align-items: flex-start; padding: 24px 0; text-decoration: none; }
.facts-in > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
.facts-in > a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.facts .i { color: var(--brass); margin-top: 3px; }
.facts b { display: block; font-weight: 500; } .facts small { color: var(--muted); font-size: 14px; }

.sec { padding: clamp(64px, 8vw, 104px) 0; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-note { color: var(--ink-2); margin: 14px 0 0; font-weight: 300; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 28px; padding-bottom: 4px; scrollbar-width: none; }
.filters a { flex: none; text-decoration: none; border: 1px solid var(--line); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s; }
.filters a:hover { border-color: var(--ink); color: var(--ink); }

.plist { columns: 2 380px; column-gap: 64px; }
.cat { break-inside: avoid; margin-bottom: 36px; scroll-margin-top: 96px; }
.cat h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat label { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cat .n { flex: 1; min-width: 0; line-height: 1.35; }
.cat .n small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 300; }
.cat label:has(input:checked) .n small { font-weight: 300; }
.price-note { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 28px; padding: 20px 22px; border-radius: var(--r); max-width: 820px;
  background: #FBF3E4; border: 1px solid #EBD9B8; border-left: 5px solid var(--brass); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.price-note-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #fff; }
.price-note-ico .i { width: 22px; height: 22px; }
.price-note p { margin: 0; }
.price-note-h { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px !important; }
.price-note b { color: var(--ink); font-weight: 600; }
.price-note ul { margin: 8px 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.price-note li { background: #fff; border: 1px solid #EBD9B8; border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--ink); }
.price-note-legend { font-size: 14px; color: var(--ink-2); }
.cat .p { white-space: nowrap; padding-top: 1px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat .p b { color: var(--ink); font-weight: 500; }
.cat .p { display: grid; justify-items: end; gap: 2px; }
.cat .p .dur { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.takes { margin: -4px 0 0; font-size: 14px; color: var(--ink-2); }
.takes b { font-weight: 600; color: var(--ink); }
.ask { font-size: 14px; }
.cat input { position: absolute; opacity: 0; pointer-events: none; right: 0; }
.dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #CFCCC6; display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.dot .i { width: 14px; height: 14px; }
.cat label:hover .dot { border-color: var(--ink-2); }
.cat input:checked ~ .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat input:focus-visible ~ .dot { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat label:has(input:checked) .n { font-weight: 500; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

#masters-men, #masters-women { background: var(--bg-2); }
.mlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.m { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 28px 20px 22px; background: #fff; border-radius: var(--r); }
/* круглое фото, как аватар в WhatsApp: тонкое кольцо цвета вывески */
.m-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.m-photo.mono { display: grid; place-items: center; background: var(--bg-2); color: var(--ink); font-size: 40px; font-weight: 500; }
.mn { font-weight: 500; font-size: 18px; } .mr { color: var(--ink-2); font-size: 14px; }
.mx { font-size: 13px; color: var(--brass); font-weight: 500; letter-spacing: .02em; }
.m .btn { margin-top: 12px; }
.ms { margin-top: 12px; font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 999px; background: var(--bg-2); }
.m-dayoff .m-photo, .m-vacation .m-photo { filter: grayscale(1); opacity: .7; }

.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; align-items: stretch; }
.card { background: #fff; border-radius: var(--r); padding: clamp(24px, 3.5vw, 40px); }
.addr { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
.sub { color: var(--ink-2); margin: 0 0 24px; font-weight: 300; max-width: 52ch; }
.kv { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; } .kv a { text-decoration: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .2s; }
.pill:hover { border-color: var(--ink); }
.qr { margin: 20px 0 0; display: inline-block; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); text-align: center; }
.qr img { width: 180px; } .qr figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 180px; }
.facade { margin: 0; border-radius: var(--r); overflow: hidden; }
.facade .ph { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.next { margin-top: 20px; display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 20px; padding: 14px 24px 14px 14px; background: #fff; border-radius: var(--r); text-decoration: none; transition: box-shadow .2s; }
.next:hover { box-shadow: var(--shadow); }
.next img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-s); filter: saturate(.82); }
.next small { display: block; color: var(--muted); font-size: 14px; }
.next b { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }

.foot { background: var(--navy); color: var(--navy-soft); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.foot b { color: var(--navy-ink); font-weight: 500; }
.foot-links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: var(--navy-ink); text-decoration: none; } .foot a:hover { text-decoration: underline; }
body:not([data-hall=""]) .foot { padding-bottom: 0; }

/* ---------- слоты времени: зелёный — свободно, красный — занято ---------- */
.slot-legend { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.free { background: #E3F4EA; border: 1.5px solid #2E8B57; } .lg.busy { background: #FBE5E3; border: 1.5px solid #C8392B; margin-left: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: var(--r-s); font: 500 15px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
  background: #E3F4EA; border: 1.5px solid #2E8B57; color: #1D5E3A; transition: background .15s; }
.slot:hover { background: #CDEBD9; }
.slot[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot:disabled { cursor: not-allowed; background: #FBE5E3; border-color: #E8B4AE; color: #B3322A; text-decoration: line-through; }
.slots.loading { opacity: .5; pointer-events: none; }
.slot-empty { margin: 8px 0 0; color: #B3322A; font-size: 14px; }

/* ---------- оплата по QR ---------- */
.pay { background: #fff; border-top: 1px solid var(--line); }
.pay-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 6vw, 88px); align-items: center; }
.pay-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.pay-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.pay-steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 500; font-size: 15px; }
.pay-steps b { font-weight: 500; } .pay-steps span { color: var(--ink-2); font-weight: 300; font-size: 15px; }
.pay-alt { margin: 24px 0 0; color: var(--muted); }
.qr-card { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); text-align: center; }
.qr-card img { width: 240px; height: 240px; object-fit: contain; image-rendering: pixelated; }
.qr-card figcaption { font-weight: 500; }
.qr-card .btn { width: 100%; }
.qr-card.empty { background: var(--bg-2); box-shadow: none; }
.qr-card.empty figcaption { color: var(--ink-2); font-weight: 400; max-width: 24ch; }
.qr-frame { width: 200px; height: 200px; display: grid; place-items: center; border: 2px dashed #CFCCC6; border-radius: var(--r-s); }
.qr-ico { width: 72px; height: 72px; color: #B9B5AE; }

/* ---------- кнопка записи: всегда внизу ---------- */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.float { position: fixed; z-index: 30; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 20px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 22px; background: rgba(255,255,255,.97);
  border-radius: 999px; box-shadow: 0 10px 40px rgba(23,24,26,.16), 0 0 0 1px var(--line); cursor: pointer; backdrop-filter: blur(8px); }
.float-info { display: grid; line-height: 1.25; min-width: 0; }
.float-t { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float .btn { flex: none; min-height: 50px; padding: 0 28px; }
.hall-pick { display: grid; gap: 12px; padding: 28px; }
.pick-btn { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.pick-btn:hover { border-color: var(--ink); background: var(--bg-2); }
.pick-btn img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.pick-btn b { display: block; font-weight: 500; font-size: 17px; } .pick-btn small { color: var(--muted); font-size: 14px; }

/* ---------- окно записи ---------- */
.sheet { border: 0; padding: 0; width: min(540px, 100%); max-width: 100%; max-height: min(92svh, 860px); margin: auto auto 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet::backdrop { background: rgba(15,17,22,.45); backdrop-filter: blur(2px); }
.bform, .done { display: grid; gap: 16px; padding: 28px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { font-size: 1.75rem; } .sheet h2:focus { outline: none; }
.sheet .x { flex: none; }
.x { background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; margin-right: -10px; border-radius: 50%; }
.x:hover { background: var(--bg-2); }
.done .btn-primary.x { width: 100%; height: auto; margin: 0; background: var(--navy); color: #fff; border-radius: 999px; }
.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); border: 0; padding: 0; margin: 0; min-width: 0; }
.f legend { padding: 0; margin-bottom: 6px; }
.f input, .f select { font: 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; min-height: 50px; width: 100%; }
.f input:focus, .f select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31,43,69,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { flex: none; min-width: 64px; min-height: 60px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 500 15px/1.2 var(--font); border-radius: var(--r-s); padding: 6px 8px; }
.day small { font-weight: 400; color: var(--muted); font-size: 12px; }
.day[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.day[aria-checked="true"] small { color: inherit; opacity: .8; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.picked:empty::before { content: "Услуги можно отметить в прайсе — или записаться без них, мастер подскажет."; color: var(--muted); }
.chip { background: var(--bg-2); padding: 6px 12px; border-radius: 999px; }
.picked .sum { flex-basis: 100%; font-weight: 500; margin-top: 2px; }
.err { color: #B42318; margin: 0; font-size: 14px; } .err:empty { display: none; }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.done { text-align: center; justify-items: center; padding: 40px 28px 28px; }
.done-mark { width: 60px; height: 60px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 50%; margin: 0; }
.done-mark .i { width: 28px; height: 28px; }
.done-text { margin: 0; color: var(--ink-2); max-width: 40ch; }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .top-in { grid-template-columns: auto 1fr; min-height: 60px; gap: 12px; }
  .top-cta { display: none; }
  .switch { justify-self: end; padding: 3px; }
  .switch a { padding: 8px 12px; font-size: 14px; }
  .logos img { width: 32px; height: 32px; }
  .brand-t small { display: none; }
  .doors { grid-template-columns: 1fr 1fr; gap: 14px; }
  .door { aspect-ratio: 3 / 4; }
  .split-head { grid-template-columns: 1fr; }
  .door { max-height: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo { justify-self: stretch; width: 100%; grid-row: 1; }
  .hero-photo .ph { aspect-ratio: 4 / 3.4; max-height: 42svh; }  /* на планшете фото не должно вытеснять кнопки записи за экран */
  .badge { left: 16px; bottom: -28px; width: 64px; height: 64px; }
  .hero-copy { padding-top: 12px; }
  .facts-in { grid-template-columns: 1fr; }
  .facts-in > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-in > * { padding: 18px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr-card { justify-self: stretch; }
  .facade .ph { min-height: 0; aspect-ratio: 4 / 3; }
  .kv div { grid-template-columns: 100px 1fr; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 600px) {
  /* на телефоне пояснение — в 2 строки, иначе прайс из 50+ услуг бесконечный */
  .cat .n small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .doors { grid-template-columns: 1fr; }
  .door { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 420px) {
  :root { --gut: 16px; }
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  .brand-t { display: none; }
  .switch a { padding: 8px 10px; font-size: 13.5px; }
  .float { padding-left: 18px; } .float .btn { padding: 0 22px; }
  .next { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .next img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- «Поделиться» ---------- */
.top-act { justify-self: end; display: flex; align-items: center; gap: 10px; }
.share-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.share-btn:hover { border-color: var(--ink); }
.share-btn .i { width: 20px; height: 20px; }
button.pill { background: #fff; color: var(--ink); font-family: inherit; cursor: pointer; }
.sheet .pad { display: grid; gap: 16px; padding: 28px; }
.seg-s { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; }
.seg-s button { flex: 1; border: 0; background: none; font: 500 14px/1.2 var(--font); color: var(--ink-2); padding: 10px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg-s button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23,24,26,.1); }
.qr-box { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.qr-svg { width: min(220px, 60vw); aspect-ratio: 1; color: var(--muted); font-size: 14px; display: grid; place-items: center; text-align: center; }
.qr-svg svg { width: 100%; height: 100%; display: block; }
.qr-svg svg path, .qr-svg svg rect[fill="black"] { fill: var(--navy); }
.qr-box figcaption { font-size: 13px; color: var(--muted); }
.link-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.share-url { font: 15px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; min-height: 50px; min-width: 0; }
.link-row .btn { gap: 8px; }
.share-to { display: flex; flex-wrap: wrap; gap: 8px; }
.share-to .pill { flex: 1 1 auto; justify-content: center; }
/* ---------- вакансии ---------- */
.jobs { background: var(--bg); border-top: 1px solid var(--line); }
.jobs .lead { margin: 12px 0 0; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.job { display: grid; align-content: start; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.job h3 { margin: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }
.job-hall { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.job-hall img { border-radius: 50%; }
.job-pay { margin: 0; font-weight: 500; color: var(--brass); }
.job-body { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.job .btn { justify-self: start; margin-top: 6px; }
.job-any { margin: 24px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: 500 15px var(--font); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apply-for { margin: -6px 0 0; color: var(--ink-2); }
.apply textarea { font: 16px/1.45 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; width: 100%; resize: vertical; }
.apply textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31,43,69,.12); }
.apply .f small { color: var(--muted); }
.adone { justify-items: center; text-align: center; } .adone .btn { justify-self: stretch; }
@media (max-width: 900px) { .top-in { grid-template-columns: auto 1fr auto; } .share-btn { width: 40px; height: 40px; } }
@media (max-width: 420px) { .top-in { gap: 8px; } .sheet .pad { padding: 22px 18px; } }
@media (max-width: 560px) { .brand-t { display: none; } }

/* ---------- «Моя запись» ---------- */
.mine { background: var(--bg-2); min-height: 100svh; }
.mine-in { max-width: 520px; margin: 0 auto; padding: 28px 16px 48px; display: grid; gap: 16px; }
.mine-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.mine-brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.mine-brand span { display: grid; line-height: 1.25; } .mine-brand small { color: var(--muted); font-size: 13px; }
.mine h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); margin: 8px 0 0; }
.mine-st { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin: 0; padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.mine-st .mine-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.mine-st.wait { background: #FEF3E2; color: #9A4A06; } .mine-st.ok { background: #E6F4EC; color: #1E6B43; } .mine-st.bad { background: #FDECEA; color: #A0281C; }
.mine-hint { margin: -4px 0 0; color: var(--ink-2); }
.mine-kv { background: #fff; border-radius: var(--r); padding: 8px 20px; margin: 0; }
.mine-kv div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mine-kv div:first-child { border-top: 0; } .mine-kv dt { color: var(--muted); } .mine-kv dd { margin: 0; }
.mine-cal { display: grid; gap: 8px; } .mine-cal .btn { gap: 10px; }
.mine-btns { display: flex; flex-wrap: wrap; gap: 8px; } .mine-btns .pill { background: #fff; flex: 1 1 auto; justify-content: center; }
.mine-save, .mine-home { margin: 0; } .mine-home { text-align: center; font-size: 14px; }
.done .cal { gap: 10px; } .mine-link a { color: var(--navy); font-weight: 500; }
.mine-kv { border-top: 0; } .mine-kv div { border-bottom: 0; }

/* ---------- вход для сотрудников: две двери внизу ---------- */
body { padding-bottom: 0; }
.foot, body:not([data-hall=""]) .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* плавающая «Записаться» не закрывает подвал, тёмный фон до самого низа */
.foot-doors { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.foot .foot-doors a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: var(--navy-ink); font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.foot .foot-doors a:hover { border-color: var(--navy-ink); background: rgba(255,255,255,.06); text-decoration: none; }
.foot-doors .i { width: 18px; height: 18px; }
@media (max-width: 420px) { .foot-doors a { flex: 1 1 100%; justify-content: center; } }

/* ---------- язык: РУ / КЫ ---------- */
.lang-btn { height: 44px; min-width: 44px; padding: 0 12px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 14px/1 var(--font); letter-spacing: .02em; text-decoration: none; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--ink); }
.mine-brand .lang-btn { margin-left: auto; height: 36px; }
@media (max-width: 900px) { .lang-btn { height: 40px; min-width: 40px; padding: 0 10px; } }

/* узкие экраны: логотипы не сжимаются, у залов короткие подписи */
.logos, .logos img { flex: none; }
.switch .sw-s { display: none; }
@media (max-width: 480px) {
  .switch .sw-l { display: none; } .switch .sw-s { display: inline; }
  .top-act { gap: 6px; }
}
