/* Shared salon engine styles. Per-demo tokens come from theme.css. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--heading-case);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.01em; }
h3 { font-size: 22px; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.i { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -12px var(--accent); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--deep-ink); color: var(--deep); }
.btn .i { width: 18px; height: 18px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--accent);
}
.link-btn .i { width: 16px; height: 16px; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--soft); border: 0; cursor: pointer;
}

/* ---------- demo ribbon + header ---------- */
.demo-ribbon {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 20px;
  background: #16131a; color: #e9e4ee;
  font-size: 13px;
}
.demo-ribbon a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.demo-ribbon a .i { width: 16px; height: 16px; }
.demo-ribbon p { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo__name { font-family: var(--font-display); font-size: 28px; font-weight: var(--display-weight); text-transform: var(--heading-case); }
.logo__kind { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.site-header__cta { display: flex; align-items: center; gap: 16px; }
.header-phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }

@media (max-width: 1020px) {
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-toggle { display: grid; place-items: center; }
  .header-phone { display: none; }
}
@media (max-width: 560px) {
  .site-header__cta .btn { display: none; }
  .logo__name { font-size: 24px; }
}

/* ---------- hero (base = split) ---------- */
.hero { padding-block: 56px 72px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero__title { font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -0.015em; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero__img2 { display: none; }
.hero__note {
  position: absolute; right: 16px; bottom: 16px;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 30px -14px rgb(0 0 0 / .35);
}
.hero__note::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #2fb36b; margin-right: 8px; vertical-align: 1px;
}
.rating-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; color: var(--muted); }
.rating-badge b { color: var(--ink); }

.stars { display: inline-flex; gap: 2px; color: var(--line); }
.stars .on { color: #f4b400; }
.stars .i { width: 16px; height: 16px; }

.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-block: 32px 48px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* variant: arch (nail studio) */
.v-arch .hero__img { border-radius: 999px 999px var(--radius) var(--radius); }
.v-arch .hero__img2 {
  display: block; position: absolute; left: -44px; bottom: 48px;
  width: 38%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 8px solid var(--bg);
}
@media (max-width: 860px) {
  .v-arch .hero__img { aspect-ratio: 5 / 4; }
  .v-arch .hero__img2 { left: 12px; bottom: -24px; width: 30%; border-width: 5px; }
  .v-arch .hero__note { bottom: auto; top: 16px; }
}

/* variant: full (hair salon) and dark (barbershop): full-bleed photo */
.v-full .hero,
.v-dark .hero { position: relative; padding: 0; min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.v-full .hero__in,
.v-dark .hero__in { grid-template-columns: 1fr; padding-block: 140px 72px; }
.v-full .hero__text,
.v-dark .hero__text { position: relative; z-index: 2; }
.v-full .hero__media,
.v-dark .hero__media { position: absolute; inset: 0; z-index: 1; order: 0; }
.v-full .hero__img,
.v-dark .hero__img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.v-full .hero__media::after,
.v-dark .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(20 14 10 / .15) 0%, rgb(20 14 10 / .35) 45%, rgb(20 14 10 / .82) 100%);
}
.v-full .hero__text,
.v-dark .hero__text { color: #fff; max-width: 760px; }
.v-full .hero__lead,
.v-dark .hero__lead,
.v-full .rating-badge,
.v-dark .rating-badge { color: rgb(255 255 255 / .82); }
.v-full .rating-badge b,
.v-dark .rating-badge b { color: #fff; }
.v-full .hero em { color: #f3d9b8; }
.v-full .hero .btn--ghost,
.v-dark .hero .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .45); }
.v-full .hero__note,
.v-dark .hero__note { top: 24px; right: 24px; bottom: auto; }
.v-full .hero__title { font-size: clamp(48px, 8vw, 104px); }

.v-dark .hero__media::after {
  background: linear-gradient(90deg, rgb(12 12 12 / .92) 0%, rgb(12 12 12 / .6) 55%, rgb(12 12 12 / .25) 100%);
}
.v-dark .hero__title { font-size: clamp(54px, 10vw, 132px); line-height: .95; letter-spacing: 0; }
.v-dark .hero em { color: var(--accent); font-style: normal; }
.v-dark .btn { border-radius: var(--radius); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.v-dark h2 { letter-spacing: .01em; }

/* variant: center (brows & lashes) */
.v-center .hero { padding-block: 72px 80px; text-align: center; }
.v-center .hero__in { grid-template-columns: 1fr; gap: 48px; }
.v-center .hero__text { align-items: center; max-width: 860px; margin-inline: auto; }
.v-center .hero__lead { max-width: 36em; }
.v-center .hero__actions { justify-content: center; }
.v-center .hero__title { font-size: clamp(46px, 7.4vw, 96px); letter-spacing: .01em; }
.v-center .hero__media { order: 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: end; }
.v-center .hero__img { grid-column: 2; aspect-ratio: 4 / 5; border-radius: 999px; }
.v-center .hero__img2 { display: block; grid-column: 3; grid-row: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px; }
.v-center .hero__note { left: 50%; right: auto; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
.v-center .hero__media::before {
  content: ""; grid-column: 1; grid-row: 1; align-self: center;
  aspect-ratio: 1; border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .v-center .hero { padding-block: 40px 56px; }
  .v-center .hero__media { grid-template-columns: 1.4fr 1fr; order: 0; }
  .v-center .hero__media::before { display: none; }
  .v-center .hero__img { grid-column: 1; }
  .v-center .hero__img2 { grid-column: 2; }
}

/* variant: clinic (cosmetology) */
.v-clinic .hero__img { aspect-ratio: 5 / 6; border-radius: var(--radius) var(--radius) var(--radius) 120px; }
.v-clinic .hero__img2 {
  display: block; position: absolute; right: -28px; top: 36px;
  width: 34%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 999px; border: 6px solid var(--bg);
}
.v-clinic .hero__note { left: 16px; right: auto; }
.v-clinic .hero__note::before { background: var(--accent); }
@media (max-width: 860px) {
  .v-clinic .hero__img { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) var(--radius) 64px; }
  .v-clinic .hero__img2 { right: 12px; top: auto; bottom: -24px; width: 26%; border-width: 4px; }
}

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section--soft { background: var(--soft); }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 720px; }
.section__lead { color: var(--muted); font-size: 17px; }
@media (max-width: 700px) {
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 32px; }
}

/* prices */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px 56px; }
.price-group h3 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto 40px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.price-row__name { display: flex; flex-direction: column; }
.price-row__name span { font-weight: 500; }
.price-row__name small { color: var(--muted); font-size: 13px; }
.price-row__time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.price-row__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-row__book {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  color: var(--accent);
  transition: background-color .15s, color .15s;
}
.price-row__book:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.price-row__book .i { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr auto 40px; row-gap: 2px; }
  .price-row__name { grid-column: 1 / 2; }
  .price-row__time { grid-column: 1; grid-row: 2; }
  .price-row__price { grid-column: 2; grid-row: 1 / 3; }
  .price-row__book { grid-column: 3; grid-row: 1 / 3; }
}

/* offer */
.offer { background: var(--deep); color: var(--deep-ink); }
.offer__in { display: flex; align-items: center; gap: 28px; padding-block: 44px; }
.offer__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--deep-ink) 30%, transparent); flex: none; }
.offer__icon .i { width: 28px; height: 28px; }
.offer__text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.offer__text h2 { font-size: clamp(28px, 3.6vw, 40px); }
.offer__text p { opacity: .8; max-width: 44em; }
@media (max-width: 760px) {
  .offer__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .offer .btn { width: 100%; }
}

/* masters */
.masters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.master { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.master img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.master__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.master__role { font-size: 13px; color: var(--accent); font-weight: 600; }
.master__about { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 8px; }

/* works */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .works { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefit { display: flex; flex-direction: column; gap: 10px; }
.benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--accent); }
.benefit h3 { font-size: 21px; }
.benefit p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

/* reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.reviews-head .section__head { margin-bottom: 0; }
.score { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.score > b { font-size: 44px; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1; }
.score > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.review__top { display: flex; gap: 12px; align-items: center; }
.review figcaption { font-weight: 600; }
.review__meta { font-size: 13px; color: var(--muted); }
.review blockquote { margin: 0; font-size: 15px; flex: 1; }
.review__service { align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--accent); font-weight: 700; flex: none; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 16px; } }

/* messengers */
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.msg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.msg--tg .i { color: #229ed9; }
.msg--vk .i { color: #0077ff; }
.msg--max .i { color: #7b5cff; }
.msg:hover { border-color: var(--ink); }

/* contacts */
.contacts { background: var(--surface); }
.contacts__in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contacts__info { display: flex; flex-direction: column; gap: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .i { color: var(--accent); margin-top: 3px; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-list span { color: var(--muted); font-size: 14px; }
.contact-list a { text-decoration: none; }
.hours { display: flex; gap: 12px; }
.hours span { min-width: 60px; }
.hours b { color: var(--ink); font-weight: 600; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .contacts__in { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* footer */
.site-footer { background: var(--deep); color: var(--deep-ink); padding-block: 48px 120px; font-size: 14px; }
.site-footer__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.site-footer .logo__name { display: block; margin-bottom: 8px; }
.site-footer p { opacity: .75; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { text-decoration: none; opacity: .85; }
.site-footer nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer__small { grid-column: 1 / -1; font-size: 12px; }
@media (min-width: 801px) { .site-footer { padding-bottom: 48px; } }
@media (max-width: 700px) { .site-footer__in { grid-template-columns: 1fr; } }

/* mobile sticky bar */
.mobile-bar { display: none; }
@media (max-width: 800px) {
  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar__call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 18px; min-height: 52px; border-radius: 999px;
    border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px;
  }
  .v-dark .mobile-bar__call { border-radius: var(--radius); }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translateX(-50%);
  max-width: min(92vw, 440px);
  background: #1d1a20; color: #fff;
  padding: 14px 18px; border-radius: 14px;
  font-size: 14px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6);
}

/* ---------- booking dialog ---------- */
.booking {
  width: min(560px, 100vw); max-width: 100vw;
  max-height: min(820px, 100dvh);
  padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5);
}
.booking::backdrop { background: rgb(15 10 12 / .55); backdrop-filter: blur(3px); }
.booking__form { display: flex; flex-direction: column; max-height: min(820px, 100dvh); }
.booking__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 12px; }
.booking__head h2 { font-size: 30px; }
.booking__step-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.booking__progress { height: 3px; background: var(--soft); margin-inline: 24px; border-radius: 3px; overflow: hidden; }
.booking__progress span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .3s ease; }
.booking__step { border: 0; margin: 0; padding: 16px 24px 8px; overflow-y: auto; flex: 1; min-height: 0; }
.booking__step legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.booking__step legend + * { clear: both; }
.booking__group { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.choice {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice__main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.choice__main b { font-weight: 600; font-size: 15px; }
.choice__main small { color: var(--muted); font-size: 13px; }
.choice__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice--master img, .avatar--any { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--any .i { width: 22px; height: 22px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day, .slot {
  flex: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 14px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.day { width: 62px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.day small { font-size: 12px; color: var(--muted); }
.day b { font-size: 18px; }
.day[aria-checked="true"], .slot[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day[aria-checked="true"] small { color: inherit; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 14px; }
.slot { padding: 10px 0; font-weight: 600; font-size: 14px; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.booking__hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px;
  padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field__err { color: #c0392b; font-size: 13px; min-height: 0; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.consent a { color: var(--ink); }
.booking__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.booking__summary { font-size: 13px; color: var(--muted); line-height: 1.35; }
.booking__nav { display: flex; gap: 8px; margin-left: auto; }
.booking__done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 24px; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.done__icon .i { width: 30px; height: 30px; }
.booking__done h3 { font-size: 30px; }
.done__summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; margin: 6px 0; background: var(--soft); padding: 16px 18px; border-radius: 14px; width: 100%; }
.done__summary dt { color: var(--muted); font-size: 14px; }
.done__summary dd { margin: 0; font-weight: 600; font-size: 14px; }
.booking__done p { color: var(--muted); font-size: 14px; }
.demo-note { background: #fff6d8; color: #6b5310 !important; padding: 8px 12px; border-radius: 10px; }
@media (max-width: 600px) {
  .booking { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .booking__form { height: 100%; max-height: 100dvh; }
  .booking__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94dvh; overflow: visible; }
.lightbox::backdrop { background: rgb(10 8 10 / .88); }
.lightbox img { max-width: 96vw; max-height: 90dvh; border-radius: 12px; }
.lightbox__close { position: absolute; top: -52px; right: 0; background: #fff; color: #111; }

/* legal page */
.legal { max-width: 780px; padding-block: 48px 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 10px; }
.legal__meta { color: var(--muted); }
.legal__box { background: var(--surface); border: 1px solid var(--line); padding: 20px 24px; border-radius: var(--radius); }

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

/* ---------- per-variant type tuning ---------- */
.v-clinic .hero__title { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -0.02em; }
.v-clinic h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; }
.v-clinic h3, .v-clinic .logo__name { letter-spacing: -0.02em; }
.v-clinic .price-group h3 { font-size: 20px; }
.v-clinic .stat b, .v-clinic .score > b { font-size: 26px; }
.v-clinic .logo__name { font-size: 22px; }
.v-clinic .master h3, .v-clinic .benefit h3 { font-size: 17px; line-height: 1.3; }
.v-center h2, .v-center h3, .v-center .logo__name { letter-spacing: 0.04em; }
.v-center .section__head { margin-inline: auto; text-align: center; align-items: center; }
.v-center .faq-wrap .section__head, .v-center .reviews-head .section__head { margin-inline: 0; text-align: left; align-items: flex-start; }
.v-dark .logo__name { letter-spacing: 0.06em; }
.v-dark .stat b, .v-dark .score > b { color: var(--accent); }
.v-dark .work, .v-dark .master, .v-dark .review, .v-dark .score { border-radius: var(--radius); }
.v-dark .section--soft { background: #161616; }
.v-dark .contacts { background: #161616; }
.v-dark .demo-note { background: #2a2416; color: #e8cf98 !important; }
.v-full .stat b { font-style: italic; }

/* ---------- small-screen safety ---------- */
.hero__in > *, .contacts__in > *, .faq-wrap > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; hyphens: manual; }
.v-full .hero .eyebrow { color: #f3d9b8; }
@media (max-width: 860px) {
  .v-full .hero__in, .v-dark .hero__in { padding-block: 120px 48px; }
  .v-full .hero__title { font-size: clamp(40px, 12vw, 64px); }
  .v-dark .hero__title { font-size: clamp(38px, 11.5vw, 72px); }
  .v-full .hero__note, .v-dark .hero__note { top: 16px; right: 16px; }
}
@media (max-width: 800px) {
  .mobile-bar .btn { min-width: 0; padding-inline: 14px; }
  .v-dark .mobile-bar .btn { letter-spacing: .04em; }
}
@media (max-width: 420px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

.consent-note { font-size: 12px; color: var(--muted); margin: 8px 0 0 30px; }
.consent-note a { color: var(--ink); }

/* 38-FZ medical advertising warning: must be clearly visible */
.med-warning {
  margin: 0; padding: 14px 20px; text-align: center;
  background: var(--deep); color: var(--deep-ink);
  font-size: clamp(14px, 2.2vw, 20px); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.offer__warning { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: 1 !important; }
@media (max-width: 860px) {
  .stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { overflow-wrap: anywhere; }
  .v-clinic .stat b { font-size: 20px; }
}
