/* ==========================================================================
   COZY LAB Алматы — styles.css (агент «Дизайн»)
   Line-art identity: thin black strokes on pastel beige, one rose accent.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f2eae0;          /* pastel beige */
  --surface: #faf6f0;     /* cream */
  --surface-2: #e9ddcf;   /* sand */
  --text: #3f322f;        /* logo brown, darker */
  --muted: #7a6a62;       /* muted brown */
  --line: #ddcdbc;        /* hairline */
  --accent: #d9c3aa;      /* beige */
  --accent-strong: #a8896d;
  --on-accent: #3f322f;
  --ink: #604e4a;         /* line-art stroke */
  --on-ink: #faf6f0;
  --wa: #1f9d55;
  --focus: #8a6a4f;
  --danger: #b8233f;
  --radius: 18px;
  --radius-sm: 10px;
  --pill: 999px;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --maxw: 1160px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: var(--pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--pill);
  border: 1px solid var(--ink);
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-ink); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }

/* ---------- Brand mark (line-art eye) ---------- */
.brand-mark, .hero-eye, .booking-eye {
  color: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--f-body); font-weight: 500; font-size: 12px; letter-spacing: .5em;
}
.brand-word span + span { margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: 15px; text-decoration: none; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding: 4px 0; transition: background-size .25s var(--ease);
}
.nav a:not(.btn):hover { background-size: 100% 1px; }
.nav-cta { display: none; }
.header-cta { min-height: 40px; padding: 0 18px; font-size: 14px; }

.burger {
  display: none; position: relative;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; cursor: pointer; border-radius: var(--pill);
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: inline-block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--text) 30%, transparent);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) {
    font-family: var(--f-display); font-size: 28px; line-height: 1.2;
    padding: 14px 0; border-bottom: 1px solid var(--line); background: none;
  }
  .nav-cta { display: inline-flex; margin-top: 20px; min-height: 52px; }
}
@media (min-width: 901px) and (max-width: 1040px) { .nav { gap: 20px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, var(--surface) 80%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }

.hero-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(56px, 15vw, 128px); line-height: .92; letter-spacing: -.01em;
}
.ht-line { display: block; }
.ht-indent { padding-left: .9em; font-style: italic; }
.ht-small {
  margin-top: 18px; max-width: 15em;
  font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; font-weight: 400;
}
.hero-sub { margin-top: 22px; font-size: 16px; color: var(--muted); letter-spacing: .02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.hero-badges li { display: flex; align-items: baseline; gap: 8px; padding-left: 18px; position: relative; }
.hero-badges li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.hero-badges strong { color: var(--text); font-family: var(--f-display); font-size: 22px; font-weight: 500; }

.hero-art {
  position: relative; justify-self: center;
  width: min(62vw, 300px); aspect-ratio: 1; order: -1;
  margin-bottom: -8px;
}
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: orbit 90s linear infinite; }
.orbit text { font-family: var(--f-body); font-size: 15px; letter-spacing: .18em; fill: var(--muted); }
.hero-eye {
  position: absolute; inset: 14%; width: 72%; height: 72%;
  stroke-width: .55;
  fill: none;
}
.hero-eye .eye-lid { transform-origin: 24px 26px; animation: blink 6s var(--ease) 1.2s infinite; }
.hero-eye .eye-lashes { transform-origin: 24px 26px; animation: lashes 6s var(--ease) 1.2s infinite; }
.hero-dot { position: absolute; border-radius: 50%; background: var(--accent); }
.hero-dot.d1 { width: 14px; height: 14px; top: 12%; right: 10%; }
.hero-dot.d2 { width: 8px; height: 8px; bottom: 16%; left: 8%; background: var(--ink); }

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.08); }
}
@keyframes lashes {
  0%, 90%, 100% { transform: translateY(0); }
  94% { transform: translateY(5.5px); }
}
@keyframes orbit { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero-art { order: 0; width: 100%; max-width: 480px; margin: 0; }
  .hero-title { font-size: clamp(64px, 7.4vw, 104px); }
  .ht-line:not(.ht-small) { white-space: nowrap; }
  .ht-small { margin-top: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 9vw, 72px); line-height: 1; letter-spacing: -.005em;
}
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
.section-lead { color: var(--muted); max-width: 52ch; font-size: 16px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 56px; }
  .section-head .section-lead { justify-self: end; }
}

/* ---------- Perks ---------- */
.perks { border-top: 1px solid var(--line); }
.perks .section-title { margin-bottom: 40px; max-width: 12ch; }
.perks-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.perk { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 6px; }
.perk-ico { grid-row: span 2; width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; line-height: 1.15; }
.perk p { color: var(--muted); font-size: 15px; max-width: 40ch; }
@media (min-width: 720px) {
  .perks-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1040px) {
  .perks-list { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .perk { grid-template-columns: 1fr; padding-top: 32px; }
  .perk-ico { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- Services (price list) ---------- */
.services { background: var(--surface); }
.svc-tabs {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tab {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.svc-tab:hover { border-color: var(--ink); }
.svc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

.svc-list { list-style: none; margin: 0; padding: 0; animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.svc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.svc-item:first-child { border-top: 1px solid var(--line); }
.svc-main { flex: 1; min-width: 0; }
.svc-name-row { display: flex; align-items: baseline; gap: 10px; }
.svc-name { font-family: var(--f-display); font-size: 22px; font-weight: 500; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.svc-leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--muted); transform: translateY(-5px); opacity: .6; }
.svc-price { flex: none; font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-duration { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.svc-book { flex: none; background: transparent; color: var(--text); }
.svc-book:hover { background: var(--ink); color: var(--on-ink); }
.svc-empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); max-width: 60ch; }

@media (max-width: 560px) {
  .svc-item { flex-direction: column; align-items: stretch; gap: 12px; }
  .svc-name { font-size: 20px; }
  .svc-book { align-self: flex-start; }
}
@media (min-width: 900px) {
  .svc-list { columns: 2; column-gap: 56px; }
  .svc-item { break-inside: avoid; }
  .svc-item:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Promos */
.promos { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .promos { grid-template-columns: 1fr 1fr; gap: 16px; } }
.promo {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--ink); border-radius: var(--pill);
  background: var(--bg);
}
.promo-value {
  flex: none; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--f-display); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.02em;
}
.promo-text { font-size: 15px; line-height: 1.4; }

/* ---------- How (steps) ---------- */
.how .section-title { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.step { position: relative; padding: 0 0 36px 72px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 6px;
  border-left: 1px dashed var(--muted); opacity: .6;
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--f-display); font-size: 28px; font-weight: 400; line-height: 1;
  background: var(--bg);
}
.step:last-child .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; line-height: 1.15; padding-top: 10px; }
.step p { margin-top: 6px; color: var(--muted); max-width: 36ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { padding: 80px 0 0; }
  .step::before { left: 64px; right: -32px; top: 27px; bottom: auto; border-left: 0; border-top: 1px dashed var(--muted); }
  .step h3 { padding-top: 0; }
}

/* ---------- Booking ---------- */
.booking {
  background:
    radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%),
    var(--surface-2);
}
.booking-inner { display: grid; gap: 32px; }
.booking-aside { position: relative; }
.booking-aside .section-lead { margin-top: 16px; }
.booking-eye { display: none; width: 160px; height: 160px; margin-top: 40px; fill: none; stroke-width: .8; }
.booking-card {
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px 16px;
  border: 1px solid var(--line);
  min-width: 0;
}
#booking-root:empty::before {
  content: "Форма записи загружается…"; display: block; color: var(--muted); padding: 24px 0;
}
@media (min-width: 560px) { .booking-card { padding: 32px; } }
@media (min-width: 900px) {
  .booking-inner { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .booking-aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .booking-eye { display: block; }
  .booking-card { padding: 40px; }
}

/* ---------- Booking form (bk-*), rendered by booking.js ---------- */
#booking-root { font-size: 15px; }
.bk-form { display: grid; gap: 26px; }
.bk-step { display: grid; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.bk-step + .bk-step { padding-top: 24px; border-top: 1px solid var(--line); }
#booking-root legend,
.bk-label {
  display: block; padding: 0; margin: 0;
  font-family: var(--f-display); font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--text);
}
.bk-label small, .bk-note, .bk-hint { font-family: var(--f-body); font-size: 13px; color: var(--muted); font-weight: 400; }
.bk-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bk-row { grid-template-columns: 1fr 1fr; } }

.bk-branches { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .bk-branches { grid-template-columns: repeat(3, 1fr); } }
.bk-branch {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  width: 100%; min-height: 56px; padding: 12px 14px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.3;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bk-branch small, .bk-branch span + span { font-weight: 400; font-size: 13px; color: var(--muted); }
.bk-branch:hover { border-color: var(--ink); }
.bk-branch.is-active, .bk-branch[aria-pressed="true"], .bk-branch[aria-checked="true"] {
  border-color: var(--ink); background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.bk-branch.is-active small, .bk-branch.is-active span + span { color: inherit; opacity: .75; }

#booking-root input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
#booking-root select,
#booking-root textarea,
.bk-select, .bk-input, .bk-textarea, .bk-date {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  min-height: 50px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: 16px; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
#booking-root select, .bk-select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236d5a60' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
#booking-root textarea, .bk-textarea { min-height: 96px; resize: vertical; }
#booking-root input[type="date"], .bk-date { min-height: 50px; }
#booking-root input::placeholder, #booking-root textarea::placeholder { color: var(--muted); opacity: .8; }
#booking-root input:hover, #booking-root select:hover, #booking-root textarea:hover { border-color: var(--muted); }
#booking-root input:focus, #booking-root select:focus, #booking-root textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
}
#booking-root [aria-invalid="true"], #booking-root .is-invalid { border-color: #c2334d !important; }
#booking-root input[type="checkbox"], #booking-root input[type="radio"] { accent-color: var(--accent-strong); width: 18px; height: 18px; }

.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bk-slot {
  min-height: 44px; padding: 0 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--pill);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.bk-slot:hover:not([disabled]) { border-color: var(--ink); }
.bk-slot.is-active, .bk-slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.bk-slot[disabled], .bk-slot.is-disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.bk-price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 28%, var(--surface));
  font-size: 15px;
}
.bk-price strong, .bk-price b { font-family: var(--f-display); font-size: 26px; font-weight: 500; }
.bk-price:empty { display: none; }

.bk-error { color: var(--danger); font-size: 13px; font-weight: 500; line-height: 1.4; }
.bk-error:empty { display: none; }
.bk-form-error {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--danger); color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  font-size: 14px;
}
.bk-form-error:empty { display: none; }

/* Real markup from booking.js */
.bk-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.bk-field--error .bk-input, .bk-field--error .bk-select, .bk-field--error .bk-textarea,
.bk-field--error input, .bk-field--error select, .bk-field--error textarea { border-color: var(--danger) !important; }
.bk-field--error .bk-branches .bk-chip, .bk-field--error .bk-slots { outline: 1px dashed var(--danger); outline-offset: 4px; }
.bk-field--error .bk-branches .bk-chip { outline: 0; border-color: var(--danger); }
.bk-optional { margin-left: 6px; font-family: var(--f-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.bk-hint { grid-column: 1 / -1; margin: 0; }

.bk-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  width: 100%; min-height: 60px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; line-height: 1.3;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bk-chip:hover { border-color: var(--ink); }
.bk-chip-name { font-family: var(--f-display); font-size: 21px; font-weight: 500; }
.bk-chip-addr { font-size: 13px; color: var(--muted); }
.bk-chip--active { border-color: var(--ink); background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-chip--active .bk-chip-addr { color: inherit; opacity: .75; }

.bk-slot--active { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--on-ink) !important; }
.bk-slot:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.bk-success-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--accent); font-size: 24px; line-height: 1;
}
.bk-success-text { color: var(--muted); max-width: 46ch; }
.bk-summary { display: grid; gap: 0; margin: 4px 0; width: 100%; }
.bk-summary-row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.bk-summary-row:first-child { border-top: 1px solid var(--line); }
.bk-summary dt { font-size: 13px; color: var(--muted); }
.bk-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 560px) { .bk-summary-row { grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; } }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-actions .bk-btn { flex: 1 1 auto; }
.bk-btn--primary { background: var(--ink); color: var(--on-ink); }
.bk-btn--primary:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.bk-btn--ghost { background: transparent; color: var(--text); }
.bk-btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.bk-btn, .bk-submit, .bk-btn-secondary,
#booking-root button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-family: var(--f-body); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.bk-submit { width: 100%; }
.bk-submit:hover, .bk-btn:hover, #booking-root button[type="submit"]:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.bk-submit[disabled], .bk-btn[disabled] { opacity: .5; cursor: not-allowed; }
.bk-btn-secondary { background: transparent; color: var(--text); }
.bk-btn-secondary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#booking-root svg { width: 20px; height: 20px; flex: none; }

.bk-success {
  display: grid; gap: 14px; justify-items: start;
  padding: 8px 0; animation: panel-in .4s var(--ease);
}
.bk-success-title { font-family: var(--f-display); font-size: 34px; font-weight: 400; line-height: 1.1; }
.bk-success p { color: var(--muted); max-width: 46ch; }
.bk-note { line-height: 1.5; }

/* ---------- Contacts (ct-*), rendered by contacts.js ---------- */
.ct-contacts { display: grid; gap: 28px; }
.ct-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .ct-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ct-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.ct-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0; scroll-margin-top: calc(var(--header-h) + 16px);
}
.ct-card::after {
  content: ""; position: absolute; top: 22px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: .9;
  background: radial-gradient(circle at 50% 55%, var(--ink) 0 3px, transparent 3.5px);
}
.ct-card:target { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ct-card-title, .ct-name {
  font-family: var(--f-display); font-size: 34px; font-weight: 400; line-height: 1.05;
  padding-right: 48px; margin: 0;
}
.ct-address { margin-top: 14px; font-size: 16px; font-weight: 600; }
.ct-landmark { margin-top: 2px; font-size: 14px; color: var(--muted); }
.ct-hours {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.ct-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.ct-btn:hover { border-color: var(--ink); }
.ct-btn-wa, .ct-btn--wa {
  flex: 1 1 100%;
  min-height: 48px; font-size: 15px;
  background: var(--ink); border-color: var(--ink); color: var(--on-ink);
}
.ct-btn-wa:hover, .ct-btn--wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.ct-btn-call, .ct-btn--call { flex: 1 1 auto; }
.ct-btn-map, .ct-btn--map { flex: 1 1 auto; }
.ct-btn-book { flex: 1 1 100%; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ct-btn-book:hover { border-color: var(--ink); }
.ct-icon { width: 20px; height: 20px; flex: none; }
#contacts-root svg:not(.ct-icon) { width: 20px; height: 20px; }

.ct-extra { font-size: 14px; color: var(--muted); line-height: 1.8; }
.ct-extra-link, .ct-extra a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.ct-extra-link:hover { text-decoration-thickness: 2px; }

/* Generic fallbacks for unexpected markup inside #contacts-root */
#contacts-root a:not([class]) { color: var(--text); text-underline-offset: 3px; }
#contacts-root button:not([class]) {
  min-height: 42px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}

/* Floating WhatsApp */
.ct-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.ct-float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--wa) 70%, transparent), 0 0 0 4px var(--bg);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.ct-float-btn:hover { transform: scale(1.05); }
.ct-float-btn .ct-icon { width: 28px; height: 28px; }
.ct-float-open .ct-float-btn, .ct-float-btn[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); }

.ct-float-menu {
  display: flex; flex-direction: column;
  width: min(300px, calc(100vw - 32px));
  padding: 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px color-mix(in srgb, #000 40%, transparent);
  transform-origin: bottom right;
  animation: float-in .22s var(--ease);
}
.ct-float-menu.is-open { display: flex; }
@keyframes float-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.ct-float-title { padding: 10px 12px 6px; font-family: var(--f-display); font-size: 22px; font-weight: 500; line-height: 1.2; }
.ct-float-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  transition: background-color .15s var(--ease);
}
.ct-float-item:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.ct-float-name { font-weight: 600; font-size: 15px; }
.ct-float-addr { font-size: 13px; color: var(--muted); }

/* ---------- Footer (ct-footer), rendered by contacts.js ---------- */
#site-footer {
  background: var(--ink); color: var(--on-ink);
  padding: 56px 0 calc(96px + env(safe-area-inset-bottom));
}
.ct-footer {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 28px; font-size: 14px;
}
.ct-footer-logo {
  font-family: var(--f-body); font-weight: 500; font-size: 18px; letter-spacing: .6em;
  display: flex; align-items: center; gap: 14px;
}
.ct-footer-logo::before {
  content: ""; width: 44px; height: 44px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M2.2 24Q24-1 45.8 24Q24 49 2.2 24Z'/%3E%3Ccircle cx='24' cy='24' r='12.5'/%3E%3Cpath d='M24 17.2Q24.6 23.4 30.8 24Q24.6 24.6 24 30.8Q23.4 24.6 17.2 24Q23.4 23.4 24 17.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M2.2 24Q24-1 45.8 24Q24 49 2.2 24Z'/%3E%3Ccircle cx='24' cy='24' r='12.5'/%3E%3Cpath d='M24 17.2Q24.6 23.4 30.8 24Q24.6 24.6 24 30.8Q23.4 24.6 17.2 24Q23.4 23.4 24 17.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ct-footer-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-footer-branch { line-height: 1.6; opacity: .9; overflow-wrap: anywhere; }
.ct-footer-phone { white-space: nowrap; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.ct-footer-phone:hover { color: var(--accent); }
.ct-footer-social { line-height: 1.8; }
#site-footer .ct-extra-link { color: inherit; text-decoration-color: var(--accent); }
.ct-footer-copy { opacity: .6; font-size: 13px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.ct-footer-col { display: grid; gap: 8px; align-content: start; }
#site-footer a:not([class]) { color: inherit; }
@media (min-width: 900px) {
  #site-footer { padding-bottom: 48px; }
  .ct-footer { grid-template-columns: 1fr 2fr; column-gap: 56px; }
  .ct-footer-branches, .ct-footer-social { grid-column: 2; }
  .ct-footer-logo { grid-row: span 2; align-self: start; }
  .ct-footer-copy { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.perks-list .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.perks-list .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.perks-list .reveal:nth-child(4) { transition-delay: .24s; }

/* Hero load sequence */
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-title { animation-delay: .05s; }
.hero-sub { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
.hero-badges { animation-delay: .4s; }
.hero-art { animation: fade 1.4s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .orbit, .hero-eye .eye-lid, .hero-eye .eye-lashes { animation: none !important; }
}

/* ---------- Masters section (ms-*) ---------- */
.ms-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.ms-tabs::-webkit-scrollbar { display: none; }
.ms-tab {
  flex: 0 0 auto; padding: 10px 18px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 15px/1.2 var(--f-body); cursor: pointer; white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.ms-tab:hover { border-color: var(--ink); }
.ms-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ms-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px 14px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.ms-avatar {
  grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 28px/1 var(--f-display); color: var(--on-accent);
  background: var(--accent); border: 1px solid var(--line);
}
.ms-avatar[data-skill="lash"] { background: var(--bg); color: var(--text); border-color: var(--ink); }
.ms-body { min-width: 0; }
.ms-name { margin: 0; font: 500 22px/1.15 var(--f-display); }
.ms-role { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.ms-reviews { margin: 6px 0 0; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.ms-book {
  justify-self: start; padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--ink); background: transparent; color: var(--text);
  font: 600 14px/1.2 var(--f-body); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.ms-book:hover { background: var(--ink); color: var(--on-ink); }
.ms-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- Master picker in booking form ---------- */
.bk-masters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bk-master {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 56px; padding: 10px 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; line-height: 1.3; font-family: var(--f-body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bk-master:hover { border-color: var(--ink); }
.bk-master--active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.bk-master-name { font-weight: 600; font-size: 15px; }
.bk-master-role { font-size: 12px; opacity: .75; }
.bk-masters .bk-hint { grid-column: 1 / -1; margin: 0; }
a.bk-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Master schedule ---------- */
.ms-note { margin: -8px 0 16px; color: var(--muted); font-size: 14px; max-width: 70ch; }
.ms-schedule { margin: 10px 0 0; display: grid; gap: 4px; font-size: 13px; }
.ms-schedule > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.ms-schedule dt { color: var(--muted); }
.ms-schedule dd { margin: 0; font-variant-numeric: tabular-nums; }
.bk-master-hint { font-size: 13px; }

/* ---------- Photos, consent ---------- */
.ms-avatar { overflow: hidden; }
.ms-avatar--photo { position: relative; color: transparent; }
.ms-avatar--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bk-master { position: relative; }
.bk-master-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; border: 1px solid var(--line); }
.bk-consent-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.bk-checkbox { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.bk-consent.bk-field--error .bk-consent-label { color: var(--danger); }

/* ---------- Multi-service total, FAQ ---------- */
.bk-add { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border: 1px dashed var(--ink); border-radius: var(--pill); background: transparent; color: var(--text); font: 600 14px/1.2 var(--f-body); cursor: pointer; }
.bk-total { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.bk-total p { margin: 0; }
.bk-total-title { font: 500 22px/1.2 var(--f-display); }
.bk-total-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.bk-total-list li { display: flex; gap: 10px; align-items: baseline; }
.bk-total-list li > span:first-child { flex: 1; min-width: 0; }
.bk-total-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-total-remove { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bk-total .bk-total-sum { font-weight: 600; margin-bottom: 4px; }
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Demo note, online booking links ---------- */
.demo-note { margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; background: var(--ink); color: var(--on-ink); }
#booking-root { display: grid; gap: 12px; }
.ob-hint { margin: 0; color: var(--muted); }
.ob-link { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); text-decoration: none; }
.ob-link:hover, .ob-link--active { border-color: var(--ink); }
.ob-link--active { box-shadow: 0 0 0 2px var(--ink); }
.ob-name { font: 500 22px/1.2 var(--f-display); }
.ob-addr { font-size: 14px; color: var(--muted); }
.ob-go { font-weight: 600; font-size: 14px; }

/* ---------- Language switch ---------- */
.lang-btn { flex: none; margin-left: auto; margin-right: 8px; padding: 7px 12px; border: 1px solid var(--ink); border-radius: var(--pill); background: transparent; color: var(--text); font: 600 13px/1 var(--f-body); cursor: pointer; }
@media (min-width: 901px) { .lang-btn { margin: 0 0 0 12px; } }
