/* ============================================================
   BeaYOUty studio — стили
   Цвета взяты из брендбука (Logo BeaYouty 2024 pasport.pdf)
   ============================================================ */
:root {
  --purple: #b502c9;       /* Pantone Purple C */
  --purple-dark: #8f00a0;
  --pink: #ecbdf1;         /* Pantone 250 C */
  --pink-soft: #f8ecfa;
  --aqua: #9edce3;         /* Pantone 304 C */
  --aqua-soft: #e8f6f8;
  --grey: #808080;         /* Pantone 424 C */
  --ink: #333333;          /* Pantone 447 C */
  --ink-soft: #5e5662;
  --plum: #1d1421;         /* тёмные секции, как на референсе */
  --plum-2: #2a1f30;
  --cream: #fcf9fc;
  --line: #ebe3ee;
  --white: #fff;

  --font: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --radius: 18px;
  --header-h: 76px;
  --shadow: 0 18px 50px -20px rgba(60, 20, 70, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--grey); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.8em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: .65em 1.3em; font-size: .82rem; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px -12px rgba(181, 2, 201, .8); }
.btn-primary:hover:not(:disabled) { background: var(--purple-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--plum); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.site-header.scrolled, .site-header.nav-open {
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  color: var(--ink); box-shadow: 0 6px 30px -18px rgba(60,20,70,.4);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-size: 1.65rem; font-weight: 500; letter-spacing: .02em; color: currentColor; }
.scrolled .brand-word, .nav-open .brand-word { color: var(--grey); }
.brand-word b { font-weight: 600; color: var(--pink); }
.scrolled .brand-word b, .nav-open .brand-word b { color: var(--purple); }
.brand-sub { font-size: .66rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 4px; opacity: .8; padding-left: 2px; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--purple); transition: right .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang-switch button {
  border: 0; background: none; color: inherit; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 9px 8px; color: inherit; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--plum);
}
.hero-page { min-height: 64svh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(29,20,33,.92) 0%, rgba(29,20,33,.7) 42%, rgba(29,20,33,.15) 100%),
    linear-gradient(0deg, rgba(29,20,33,.5), transparent 40%);
}
.hero-content { position: relative; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-content > * { max-width: 640px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; font-weight: 500;
  color: var(--aqua); margin-bottom: 1.4em;
}
.hero-title { font-size: clamp(2.7rem, 6.6vw, 5.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; margin-bottom: .45em; }
.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--pink), #d77be6 60%, var(--aqua));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* место под хвостики букв (j, g, p, у): градиент должен закрашивать и их */
  padding-bottom: .14em; margin-bottom: -.06em;
}
.hero-text { font-size: 1.1rem; color: rgba(255,255,255,.85); font-weight: 300; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* ---------- Секции ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.label {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .76rem; font-weight: 600; color: var(--purple);
}
.label::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p:last-child { color: var(--ink-soft); }

/* Салон */
.salon-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.salon-text p:not(.label) { color: var(--ink-soft); }
.salon-text .lead { color: var(--ink); }
.salon-logo img { width: 100%; max-width: 560px; margin-inline: auto; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(50px, 7vw, 90px); }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 26px; overflow: hidden;
}
.feature h3 { position: relative; }
.feature p { color: var(--ink-soft); margin: 0; position: relative; }
.feature-dot { position: absolute; width: 120px; height: 120px; border-radius: 50%; top: -48px; right: -36px; filter: blur(2px); opacity: .55; }
.dot-purple { background: var(--pink); }
.dot-aqua { background: var(--aqua); }
.dot-pink { background: radial-gradient(circle, var(--pink), var(--aqua)); }

/* Владелица */
.owner { background: linear-gradient(180deg, var(--cream), var(--pink-soft)); }
.owner-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.owner-photos { position: relative; margin: 0; padding: 0 12% 12% 0; }
.owner-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
.owner-small {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow);
}
.owner-text p:not(.label) { color: var(--ink-soft); }
.owner-text .lead { color: var(--ink); }
.quote { margin: 1.8em 0; padding-left: 22px; border-left: 3px solid var(--purple); }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--purple) !important; margin: 0; }
.quote cite { display: block; margin-top: .5em; font-style: normal; font-weight: 500; color: var(--ink); }

/* Тёмная секция с карточками (как «Our Services» на референсе) */
.dark { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.dark::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(181,2,201,.35), transparent 70%); top: -200px; right: -160px; pointer-events: none;
}
.dark .label { color: var(--pink); }
.dark .section-head p:last-child { color: rgba(255,255,255,.7); }
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; position: relative; }
.cat-card { background: var(--plum-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cat-card-body p { color: rgba(255,255,255,.7); }
.price-from { margin-top: auto; font-size: .95rem; }
.price-from strong { font-size: 1.35rem; color: var(--pink); font-weight: 600; }
.cat-card-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-arrow { font-size: .9rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .85; }
.link-arrow:hover { opacity: 1; color: var(--pink); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }

/* Отзывы */
.reviews-section { background: var(--white); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.reviews-head .section-head { margin-bottom: 0; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius); background: var(--pink-soft); border: 1px solid var(--line);
  transition: border-color .2s;
}
.rating-badge:hover { border-color: var(--purple); }
.rating-num { font-size: 2.4rem; font-weight: 600; color: var(--purple); line-height: 1; }
.rating-meta { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink-soft); }
.stars { color: #e6a700; letter-spacing: 2px; font-size: 1rem; }
.reviews { columns: 4 240px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; padding: 24px 24px 20px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line);
}
.review blockquote { margin: 10px 0 16px; font-size: 1rem; color: var(--ink); }
.review figcaption { display: flex; flex-direction: column; font-size: .85rem; color: var(--grey); }
.review figcaption strong { color: var(--ink); font-weight: 600; font-size: .95rem; }

/* Карта */
.location { background: var(--pink-soft); }
.location-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e9e4ec; aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-card p:not(.label) { color: var(--ink-soft); }
.loc-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.loc-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.loc-list a { text-decoration: none; }
.loc-list a:hover { color: var(--purple); }
.loc-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--purple); font-size: 1.1rem; flex: none; }
.loc-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--pink-soft), var(--aqua-soft)); padding: clamp(60px, 8vw, 100px) 0; }
.cta-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.cta-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); border: 6px solid #fff; }
.cta-text p { color: var(--ink-soft); font-size: 1.1rem; }

/* Подвал */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 96px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 100%; max-width: 300px; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--purple); font-weight: 600; }
.contact-list, .hours-list { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-list li { margin-bottom: 6px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--purple); }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; padding: 3px 0; font-size: .95rem; }
.hours-list li span:last-child { color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--grey); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }

/* Кнопка WhatsApp (подвал и «Как нас найти») */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: .7em 1.3em; border-radius: 999px; background: #25d366; color: #fff !important;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(37, 211, 102, .8); transition: background .2s, transform .2s;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }
.li-btn { margin: 8px 0 10px; }
.loc-list .li-btn { margin: 4px 0 0; }

/* Плавающая кнопка записи */
.float-book {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--purple); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(181,2,201,.7); transition: transform .2s, background .2s;
}
.float-book:hover { transform: translateY(-2px); background: var(--purple-dark); }

/* ---------- Страница процедур ---------- */
.cat-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav-inner { display: flex; gap: 10px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner a {
  flex: none; text-decoration: none; padding: .5em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; background: #fff; transition: border-color .2s, color .2s;
}
.cat-nav-inner a:hover { border-color: var(--purple); color: var(--purple); }
.tinted { background: var(--pink-soft); }

.zones-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.zones-media { position: sticky; top: calc(var(--header-h) + 80px); }
.zones-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.zones-text > p { color: var(--ink-soft); }
.zones-head { margin-top: 1.4em; font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; color: var(--purple); font-weight: 600; }

.price-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.price-list li {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed #dccfe0;
}
.price-list.zones { column-gap: 32px; }
@media (min-width: 1200px) { .price-list.zones:not(:has(.opt-dur)) { columns: 2; } }
.price-list.zones li { break-inside: avoid; grid-template-columns: 1fr auto auto; }
.price-list.zones li:has(.opt-dur) { grid-template-columns: 1fr auto auto auto; }
.opt-label { font-weight: 500; }
.opt-dur { color: var(--grey); font-size: .9rem; white-space: nowrap; }
.opt-price { font-weight: 600; color: var(--purple); white-space: nowrap; }
.opt-book {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .45em .9em;
  transition: all .2s; white-space: nowrap;
}
.opt-book:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.note { font-size: .92rem; color: var(--ink-soft); padding: 12px 16px; border-left: 3px solid var(--aqua); background: rgba(158,220,227,.15); border-radius: 0 10px 10px 0; }

.treatments { display: grid; gap: clamp(40px, 6vw, 72px); }
.treatment { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.treatment.flip .treatment-media { order: 2; }
.treatment-media img.landscape { aspect-ratio: auto; height: auto; max-height: none; }
.treatment-media img { width: 100%; aspect-ratio: 4 / 5; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.treatment-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.treatment-body > p { color: var(--ink-soft); }
.tag { display: inline-block; padding: .3em .9em; border-radius: 999px; background: var(--aqua); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8em; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { position: relative; padding: 18px 20px 18px 54px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); }
.info-list li::before { content: '→'; position: absolute; left: 22px; top: 17px; color: var(--purple); font-weight: 600; }

/* ---------- Текстовая страница (общие условия) ---------- */
.legal { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(60px, 8vw, 100px); background: var(--white); }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: .3em 0 .2em; }
.legal-date { color: var(--grey); font-style: italic; margin-bottom: 2.5em; }
.legal h1 + section { margin-top: 1.6em; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); }
.legal ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.legal li { margin-bottom: .55em; }
.legal li::marker { color: var(--purple); }
.legal section p { color: var(--ink-soft); margin: 0; }
.legal-address { font-style: normal; font-weight: 500; padding-top: 26px; border-top: 1px solid var(--line); }
/* показываем блок только на текущем языке */
html[lang="nl"] [data-lang-block="ru"], html[lang="ru"] [data-lang-block="nl"] { display: none; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ============================================================
   ОКНО ЗАПИСИ
   ============================================================ */
dialog.booking {
  width: min(900px, 100vw - 32px); max-height: min(860px, 100svh - 32px);
  padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(29,20,33,.6); overflow: hidden;
}
dialog.booking[open] { display: flex; animation: dlgIn .25s ease; }
dialog.booking::backdrop { background: rgba(29,20,33,.6); backdrop-filter: blur(4px); }
.tw-dialog { height: min(860px, 100svh - 32px); }
.tw-dialog .bk-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.tw-actions { display: flex; align-items: center; gap: 14px; }
.tw-newtab { font-size: .85rem; font-weight: 500; color: var(--purple); }
.tw-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.bk-inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.bk-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 0; }
.bk-head h2 { font-size: 1.6rem; margin: 0; outline: none; }
.bk-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.bk-close:hover { border-color: var(--purple); color: var(--purple); }

.bk-steps { list-style: none; display: flex; gap: 8px; padding: 16px 28px; margin: 0; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--grey); }
.bk-steps li { display: flex; align-items: center; gap: 8px; flex: 1; }
.bk-steps li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bk-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; font-size: .8rem; flex: none; }
.bk-steps .current { color: var(--ink); font-weight: 500; }
.bk-steps .current span { background: var(--purple); border-color: var(--purple); color: #fff; }
.bk-steps .done span { background: var(--pink); border-color: var(--pink); color: var(--purple-dark); }

.bk-body { flex: 1; min-height: 0; overflow: auto; padding: 22px 28px 0; display: flex; flex-direction: column; }
.bk-body > form { display: flex; flex-direction: column; flex: 1; }
.bk-lead { font-weight: 500; margin-bottom: .8em; }

.bk-cats { display: grid; gap: 10px; }
.bk-cat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bk-cat summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  background: var(--cream);
}
.bk-cat summary::-webkit-details-marker { display: none; }
.bk-cat summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--purple); transition: transform .2s; }
.bk-cat[open] summary::after { transform: rotate(45deg); }
.bk-badge { background: var(--purple); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 9px; font-weight: 600; }
.bk-treatment { border: 0; margin: 0; padding: 6px 12px 10px; }
.bk-treatment legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--purple); font-weight: 600; padding: 10px 6px 4px; }
.bk-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px; cursor: pointer; transition: background .15s;
}
.bk-option:hover { background: var(--pink-soft); }
.bk-option:has(input:checked) { background: var(--pink-soft); }
.bk-option input { width: 18px; height: 18px; accent-color: var(--purple); margin: 0; }
.bk-option em { font-style: normal; color: var(--grey); font-size: .88rem; margin-left: 6px; }
.bk-option-price { font-weight: 600; color: var(--purple); }

.bk-footer {
  position: sticky; bottom: 0; margin: 22px -28px 0; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border-top: 1px solid var(--line); margin-top: auto;
}
.bk-total { display: flex; align-items: baseline; gap: 8px; font-size: .95rem; }
.bk-total strong { font-size: 1.25rem; color: var(--purple); }
.bk-nav { display: flex; gap: 10px; margin-left: auto; }
.bk-nav.center { justify-content: center; margin: 22px 0 26px; }

.bk-datetime { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-head strong { font-weight: 500; }
.bk-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; line-height: 1; color: var(--ink); }
.bk-arrow:disabled { opacity: .3; cursor: default; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-wd { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); padding: 4px 0; }
.bk-day {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--pink-soft); color: var(--ink); font-weight: 500;
  transition: background .15s, color .15s;
}
.bk-day:hover:not(:disabled) { background: var(--pink); }
.bk-day:disabled { background: none; color: #c9c0cc; cursor: default; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.1); }
.bk-day.empty { background: none; }
.bk-day.today { box-shadow: inset 0 0 0 1.5px var(--aqua); }
.bk-day.selected { background: var(--purple); color: #fff; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-time { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; transition: all .15s; }
.bk-time:hover { border-color: var(--purple); color: var(--purple); }
.bk-time.selected { background: var(--purple); border-color: var(--purple); color: #fff; }

.bk-form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid #ddd3e0; border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(181,2,201,.15); }
.field [aria-invalid="true"] { border-color: #c62850; }
.err { color: #c62850; font-size: .82rem; display: block; min-height: 0; }
.bk-error { color: #c62850; font-weight: 500; }
.bk-summary { background: var(--pink-soft); border-radius: 14px; padding: 20px 22px; }
.bk-summary h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--purple); font-weight: 600; }
.bk-summary ul { list-style: none; padding: 0; margin: 0 0 12px; }
.bk-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #dccfe0; font-size: .93rem; }
.bk-summary li span:last-child { font-weight: 600; white-space: nowrap; }
.bk-when { margin: 0; }

.bk-done { text-align: center; max-width: 520px; margin: 10px auto 0; }
.bk-done .bk-summary { text-align: left; }
.bk-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--aqua); color: #fff; font-size: 2rem; font-weight: 600; }
.bk-done > p { color: var(--ink-soft); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1000px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px 16px 18px; box-shadow: 0 20px 30px -20px rgba(60,20,70,.4);
    display: none; color: var(--ink);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .cat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .salon-grid, .owner-grid, .zones-grid, .treatment, .cta-inner, .footer-grid, .location-grid { grid-template-columns: 1fr; }
  .salon-logo { order: -1; }
  .features { grid-template-columns: 1fr; }
  .owner-photos { max-width: 480px; }
  .zones-media { position: static; }
  /* На телефоне фото процедур показываем целиком, без обрезки */
  .zones-media img { aspect-ratio: auto; height: auto; object-fit: contain; }
  .treatment.flip .treatment-media { order: 0; }
  .treatment-media img { aspect-ratio: auto; height: auto; max-height: none; object-fit: contain; }
  .cta-inner { text-align: center; }
  .cta-art { width: 200px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .bk-datetime, .bk-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand-word { font-size: 1.35rem; }
  .header-book { display: none; }
  .header-inner { gap: 12px; }
  .cat-cards { grid-template-columns: 1fr; }
  .price-list.zones { columns: 1; }
  .price-list li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .price-list li .opt-dur { grid-column: 1; grid-row: 2; }
  .price-list li .opt-book { grid-column: 2; grid-row: 2; justify-self: end; }
  .price-list.zones li { grid-template-columns: 1fr auto auto; }
  .price-list.zones li .opt-book { grid-row: auto; grid-column: auto; }
  .hero-shade { background: linear-gradient(0deg, rgba(29,20,33,.92) 10%, rgba(29,20,33,.55) 70%, rgba(29,20,33,.35)); }
  .hero { align-items: flex-end; }
  .float-book { right: 14px; bottom: 14px; }
  /* Ссылки внизу подвала — столбиком, чтобы легко читались и нажимались */
  .footer-bottom { flex-direction: column; gap: 20px; font-size: .95rem; }
  .footer-bottom nav { order: -1; flex-direction: column; gap: 0; }
  .footer-bottom nav a { padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }

  dialog.booking { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; }
  .tw-dialog .bk-head { padding: 12px 16px; }
  .tw-dialog .bk-head h2 { font-size: 1.25rem; white-space: nowrap; }
  .tw-newtab { font-size: .8rem; white-space: nowrap; }
  .bk-head, .bk-steps { padding-inline: 16px; }
  .bk-body { padding: 18px 16px 0; }
  .bk-footer { margin-inline: -16px; padding: 12px 16px; }
  .bk-steps { font-size: 0; gap: 6px; }
  .bk-steps .current { font-size: .85rem; }
  .bk-steps span { font-size: .8rem; }
}
