/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { text-decoration: none; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #2c2f34; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-bg-alt); }
.btn--ghost { border-color: var(--c-line); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(252, 252, 251, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 64px; }
.logo { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--c-ink); }
.logo:hover { text-decoration: none; }
.nav { display: none; }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; color: var(--c-ink); font-size: 15px; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.burger span { display: block; width: 22px; height: 14px; position: relative; }
.burger span::before, .burger span::after, .burger i { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--c-ink); }
.burger span::before { top: 0; } .burger i { top: 6px; } .burger span::after { bottom: 0; }
.menu { display: none; position: fixed; inset: 64px 0 0 0; background: var(--c-bg); z-index: 19; padding: var(--sp-3) var(--gutter); }
.menu[data-open="true"] { display: grid; align-content: start; gap: 4px; overflow-y: auto; overscroll-behavior: contain; }
.menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-display); font-size: 28px; color: var(--c-ink); }
.menu a:hover { text-decoration: none; }
.menu__contacts { margin-top: var(--sp-3); display: grid; gap: 8px; color: var(--c-muted); }
.menu__contacts a { display: inline-block; padding-block: 4px; }
@media (min-width: 1200px) {
  .header__in { min-height: 76px; }
  .nav { display: flex; gap: 28px; }
  .nav a { color: var(--c-ink); font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
  .nav a:hover, .nav a[aria-current] { text-decoration: none; border-bottom-color: var(--c-ink); }
  .header__phone { display: inline; }
  .burger, .menu { display: none !important; }
}

/* Строка доказательств */
.proofs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-small); color: var(--c-muted); margin: 0; padding: 0; list-style: none; }
.proofs li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); margin-right: 8px; vertical-align: 2px; }

/* Список проблем: строки на мобильном, плитки на десктопе */
.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.problems a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.problems a:hover { text-decoration: none; }
.problems .t { font-family: var(--f-display); font-size: 22px; font-weight: 500; line-height: 1.05; display: block; }
.problems .d { font-size: var(--fs-small); color: var(--c-muted); margin-top: 3px; display: block; }
.problems .arr { width: 28px; height: 28px; border: 1px solid var(--c-line); border-radius: 50%; display: grid; place-items: center; font-size: 13px; transition: border-color var(--dur) var(--ease); }
.problems a:hover .arr { border-color: var(--c-ink); }
@media (min-width: 768px) {
  .problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
  .problems li { background: var(--c-bg); }
  .problems a { grid-template-columns: 1fr; align-content: space-between; min-height: 130px; padding: 18px 16px; border: 0; height: 100%; }
  .problems .arr { justify-self: end; }
}
@media (min-width: 1200px) { .problems { grid-template-columns: repeat(8, minmax(0, 1fr)); } .problems .t { font-size: 21px; hyphens: manual; } }

/* Карточки цен */
.prices { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.price { background: var(--c-bg); padding: 18px 16px; display: grid; gap: 10px; align-content: space-between; }
.price h3 { font-size: 21px; }
.price p { font-size: var(--fs-small); color: var(--c-muted); }
.price__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price__sum { font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .prices { grid-template-columns: repeat(2, 1fr); } .price { padding: 24px 22px; } .prices > .price:last-child:nth-child(2n+1) { grid-column: 1 / -1; } .prices > .price:last-child:nth-child(2n+1) p { max-width: 60ch; } }
@media (min-width: 1200px) { .prices { grid-template-columns: repeat(3, 1fr); } .prices > .price:last-child:nth-child(3n+1) { grid-column: 1 / -1; } .prices > .price:last-child:nth-child(3n+1) p { max-width: 60ch; } }

/* Карточки специалистов */
.people { display: grid; gap: var(--sp-3); }
.person img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--r-card); }
.person h3 { margin-top: 12px; }
.person p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 4px; }
.person p + p { margin-top: 10px; }
@media (min-width: 768px) { .people { grid-template-columns: repeat(3, 1fr); } }

/* Галерея до/после */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba figure { margin: 0; position: relative; }
.ba img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 10px; }
.ba figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(25, 27, 30, .78); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.ba--grid { grid-template-columns: 1fr; }
.ba--grid img { aspect-ratio: 3 / 4; }
@media (min-width: 768px) { .ba { grid-template-columns: repeat(4, 1fr); gap: 10px; } .ba--grid { grid-template-columns: 1fr; } }

/* Факты безопасности */
.facts { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.fact { background: var(--c-bg); padding: 18px 16px; }
.fact h3 { font-size: 20px; }
.fact p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 6px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Шаги приёма */
.steps { display: grid; gap: var(--sp-3); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--c-ink); padding-top: 12px; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-size: var(--fs-eyebrow); letter-spacing: .1em; color: var(--c-accent); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 20px; }
.steps p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 6px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Мессенджеры */
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }

/* Блок записи */
.book { background: var(--c-bg-alt); }
.book__in { display: grid; gap: var(--sp-3); }
.book__info { display: grid; gap: 6px; }
@media (min-width: 768px) { .book__in { grid-template-columns: 1fr auto; align-items: center; } }

/* Липкая панель */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(252, 252, 251, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); }
.sticky-cta .btn { flex: 1; }
@media (min-width: 1200px) { .sticky-cta { display: none; } }

/* Кружок видео */
.bubble { position: relative; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--c-bg-alt);
  box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 5px var(--c-line); padding: 0; }
.bubble video, .bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble__label { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(25, 27, 30, .78); color: #fff;
  font-size: 0; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; white-space: nowrap; }
.bubble__label::before { content: "▶"; font-size: 11px; line-height: 1; }
@media (min-width: 768px) {
  .bubble { width: 200px; height: 200px; }
  .bubble__label { font-size: 12px; letter-spacing: .04em; width: auto; height: auto; padding: 6px 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; }
}
@media (min-width: 1200px) {
  .bubble { width: 320px; height: 320px; box-shadow: 0 0 0 6px var(--c-bg), 0 0 0 7px var(--c-line); }
  .bubble__label { font-size: 13px; padding: 7px 14px; bottom: 18px; }
}

/* Модальное окно видео */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(25, 27, 30, .82); padding: var(--sp-2); }
.modal[data-open="true"] { display: grid; }
.modal__box { width: min(100%, 420px); aspect-ratio: 9 / 16; max-height: 92vh; background: #000; border-radius: var(--r-card); overflow: hidden; position: relative; }
.modal__box video { width: 100%; height: 100%; object-fit: contain; }
.modal__close { position: absolute; top: 10px; right: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--c-ink); font-size: 14px; font-weight: 500; }

/* Отзывы */
.reviews { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.review { background: var(--c-bg); padding: 22px 18px; display: grid; gap: 14px; align-content: space-between; min-height: 150px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 20px; line-height: 1.3; }
.review .src { font-size: 12px; color: var(--c-muted); }
.review--stub blockquote { color: var(--c-muted); font-style: normal; font-family: var(--f-body); font-size: 14px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* Подвал */
.footer { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); padding-block: var(--sp-5) var(--sp-3); font-size: var(--fs-small); color: var(--c-muted); }
.footer__in { display: grid; gap: var(--sp-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--c-ink); display: inline-block; padding-block: 4px; }
.footer__bottom { margin-top: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid var(--c-line); display: grid; gap: 8px; font-size: 12px; }
@media (min-width: 768px) { .footer__in { grid-template-columns: 2fr 1fr 1fr; } .footer__bottom { grid-template-columns: 1fr auto; } }
