/*
Theme Name: Космо-Дент 2026
Description: Продающий дизайн для медицинского центра «Космо-Дент»: новая главная (оффер, преимущества, направления, цены, акции, врачи, результаты, отзывы, FAQ, запись), внутренние страницы с карточкой записи, меню раздела и FAQ. Данные — общие с темой «Космо-Дент», темы переключаются без потерь.
Version: 1.0
Text Domain: kosmodent-new
*/

/* ================= Основа ================= */

:root {
    --ink: #173f45;
    --muted: #5f7c80;
    --teal: #087f80;
    --teal-dark: #066667;
    --mint: #dff4ee;
    --mint-2: #eef8f5;
    --accent: #e0566a;
    --accent-dark: #c93f54;
    --bg: #f5faf9;
    --line: #dbe8e6;
    --white: #fff;
    --wa: #25d366;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(17, 62, 67, .12);
    --header-h: 78px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 "Manrope", Arial, Helvetica, sans-serif;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.wrap--narrow { width: min(860px, calc(100% - 48px)); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal);
}

.muted { color: var(--muted); }

h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; }

/* ================= Кнопки ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    transition: background .2s, transform .2s, box-shadow .2s, color .2s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 10px 24px rgba(8, 127, 128, .28); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 24px rgba(224, 86, 106, .32); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--teal); border-color: var(--teal); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1eb457; color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

.chip {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 100px;
    background: var(--mint);
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* ================= Верхняя полоса и шапка ================= */

.topbar { background: var(--ink); color: #cfe6e4; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__promo { color: #fff; text-decoration: none; }
.topbar__promo b { color: #ffd166; }
.topbar__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17, 62, 67, .1); }

.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

.brand { flex: none; line-height: 0; }
.brand img { width: auto; height: 42px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open .nav__link { color: var(--teal); background: var(--mint-2); }
.nav__link--hot { color: var(--accent); }
.nav__toggle::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 0 3px 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.nav__close, .nav__mobile-contacts { display: none; }

.site-header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.site-header__phone { color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; }
.site-header__phone2 { color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }

.icon-btn {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wa) url("assets/img/whatsapp.svg") no-repeat center / 24px;
}
.icon-btn:hover { background-color: #1eb457; }

.burger { display: none; }

/* Выпадающее меню услуг (десктоп): разделы колонками */
.nav__item--mega { position: static; }
.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 28px max(24px, calc((100vw - 1200px) / 2)) 24px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 30px 50px rgba(17, 62, 67, .14);
}
.nav__item--mega.is-open .mega { display: block; }
.mega .cf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 36px; margin: 0; padding: 0; list-style: none; }
.mega .cf ul { margin: 6px 0 0; padding: 0; list-style: none; }
.mega .cf > li > a { font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.mega .cf > li > ul > li > a { display: block; padding: 3px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.mega .cf a:hover, .mega .cf a.current { color: var(--teal); }
.mega .cf ul ul { display: none; }
.mega .sub-toggle { display: none; }
.mega__all { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: none; }

/* ================= Первый экран ================= */

.hero { padding: 56px 0 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__lead { max-width: 560px; margin: 0 0 30px; color: var(--muted); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero__trust b { display: block; color: var(--ink); font-size: 24px; line-height: 1.1; }

.hero__visual { position: relative; padding: 0 10px 30px 24px; }
.hero__visual::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 160px;
    height: 160px;
    border: 1px solid #9accc2;
    border-radius: 50%;
}
.hero__visual::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 90px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .85;
}
.hero__photo { position: relative; z-index: 1; height: 500px; overflow: hidden; border-radius: 200px 200px 28px 28px; background: #d4e7e4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 300px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.hero__float b { display: block; font-size: 15px; line-height: 1.3; }
.hero__float small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hero__float-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--teal); font-weight: 800; font-size: 20px; }

/* ================= Преимущества ================= */

.benefits { border-block: 1px solid var(--line); background: #fff; }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-right: 1px solid var(--line); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { border-right: 0; }
.benefit b { display: block; font-size: 16px; }
.benefit small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.benefit__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mint) no-repeat center / 22px; }
.benefit__icon--1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 6.5 7 .9-5.1 4.8 1.3 7L12 17.8 5.8 21.2l1.3-7L2 9.4l7-.9z'/%3E%3C/svg%3E"); }
.benefit__icon--2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 4v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.benefit__icon--3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.benefit__icon--4 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f80' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }

/* ================= Секции ================= */

.block { padding: 88px 0; }
.block--tint { background: var(--mint-2); }
.block--dark { background: var(--ink); color: #d7ecea; }
.block--dark h2, .block--dark b { color: #fff; }
.block--dark .eyebrow { color: #8ed2c6; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.section-head p { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px; }
.block--dark .section-head p { color: #a9cdca; }

/* Направления */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service__media { display: block; height: 190px; overflow: hidden; background: var(--mint); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { padding: 22px 22px 24px; }
.service__label { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service h3 { margin: 8px 0 12px; font-size: 22px; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--teal); }
.service__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service__links a { display: inline-block; padding: 6px 12px; border-radius: 100px; background: var(--mint-2); color: #315f60; font-size: 13px; font-weight: 600; text-decoration: none; }
.service__links a:hover { background: var(--mint); color: var(--teal-dark); }

/* Популярные услуги */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; }
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.offer__media { display: block; height: 170px; overflow: hidden; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 22px; }
.offer__body b { font-size: 18px; }
.offer__body small { margin: 4px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.offer__price { margin-top: auto; color: var(--accent); font-weight: 800; font-size: 24px; }

/* Акции */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.promo {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}
.promo b { font-size: 19px; line-height: 1.25; }
.promo p { flex: 1; margin: 10px 0 18px; color: var(--muted); font-size: 14px; }
.promo__cta { align-self: flex-start; color: var(--accent); font-weight: 800; text-decoration: none; }
.promo--accent { background: linear-gradient(135deg, var(--teal), #0aa39b); border: 0; color: #fff; }
.promo--accent b { color: #fff; font-size: 22px; }
.promo--accent p { color: #d8f3ef; }
.promo--accent .promo__cta { color: #ffd166; }
.promo--gift { background: #fff6f3; border-color: #f7d6cf; }
.promo--gift:hover { color: var(--ink); box-shadow: var(--shadow); }

/* Карточка врача и горизонтальная лента */
.hscroll { position: relative; }
.hscroll__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__btn {
    position: absolute;
    top: 42%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff no-repeat center / 18px;
    box-shadow: 0 6px 20px rgba(17, 62, 67, .2);
    transition: opacity .2s;
}
.hscroll__btn[disabled] { opacity: 0; pointer-events: none; }
.hscroll__btn--prev { left: -18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087f80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3L5 8l5 5'/%3E%3C/svg%3E"); }
.hscroll__btn--next { right: -18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087f80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3l5 5-5 5'/%3E%3C/svg%3E"); }

.doc-card {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: 0 1px 0 var(--line);
    transition: transform .25s, box-shadow .25s;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.doc-card__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mint); }
.doc-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.doc-card__body b { font-size: 16px; line-height: 1.3; }
.doc-card__body small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.doc-card__body em { margin-top: 6px; color: var(--teal); font-style: normal; font-weight: 700; font-size: 13px; }

/* Результаты: лента «до/после» из галереи */
.results.content .kd-slider { --kd-slide-h: 300px; margin: 0; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 26px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.step b { font-size: 18px; }
.step p { margin: 8px 0 0; color: #a9cdca; font-size: 14px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.review__stars { color: #f5a623; letter-spacing: 2px; }
.review blockquote { flex: 1; margin: 12px 0 18px; font-size: 15px; line-height: 1.6; }
.review figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.review figcaption b { color: var(--ink); }

/* О клинике + текст главной */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; border-radius: 24px; }
.about__photo img { display: block; width: 100%; height: 480px; object-fit: cover; }
.about__text { position: relative; max-height: 460px; overflow: hidden; }
.about__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(238, 248, 245, 0), var(--mint-2)); }
.about__text.is-open { max-height: none; }
.about__text.is-open::after { display: none; }
.about__copy .js-readmore-btn { margin-top: 18px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-layout h2 { margin: 10px 0 12px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; }
.faq-layout__contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.kd-faq__title { margin: 0 0 20px; font-size: clamp(26px, 2.6vw, 34px); }
.kd-faq__item { border-bottom: 1px solid var(--line); }
.kd-faq__item summary {
    position: relative;
    padding: 20px 48px 20px 0;
    font-weight: 700;
    font-size: 17px;
    list-style: none;
    cursor: pointer;
}
.kd-faq__item summary::-webkit-details-marker { display: none; }
.kd-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--teal);
    font-size: 20px;
    transition: transform .2s;
}
.kd-faq__item[open] summary::after { content: "−"; }
.kd-faq__answer { padding: 0 0 20px; color: var(--muted); }
.kd-faq__answer p { margin: 0 0 10px; }

/* Заявка */
.lead { padding: 80px 0; background: linear-gradient(135deg, var(--teal) 0%, #0a9e97 100%); color: #e1f5f2; }
.lead__grid { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.lead h2 { margin: 10px 0 20px; color: #fff; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.lead .eyebrow { color: #bdf0e6; }
.lead__points { margin: 0 0 20px; padding: 0; list-style: none; }
.lead__points li { position: relative; padding: 6px 0 6px 32px; }
.lead__points li::before { content: "✓"; position: absolute; left: 0; top: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 13px; }
.lead__phones a { color: #fff; font-weight: 800; }
.lead__card { padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px rgba(0, 40, 40, .25); }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-weight: 700; font-size: 14px; }
.lead-form label small { color: var(--muted); font-weight: 400; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid rgba(8, 127, 128, .35); border-color: var(--teal); background: #fff; }
.lead-form .lead-form__check label { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.4; cursor: pointer; }
.lead-form__check .wpcf7-list-item { margin: 0; }
.lead-form__check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.lead-form .btn { margin-top: 4px; }
.lead-form .btn:disabled { opacity: .55; cursor: not-allowed; }
.lead-form__hint { margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.lead-form--short .kd-f-comment { display: none; }

/* Contact Form 7: служебные элементы */
.kd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 form > div[style*="none"] { display: none; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; color: #c62f4b; font-weight: 600; font-size: 13px; }
.lead-form .wpcf7-not-valid { border-color: #e88a9b; }
.wpcf7-spinner { display: none; }
.wpcf7-form.submitting .wpcf7-spinner { display: inline-block; align-self: center; }
.wpcf7 .wpcf7-response-output { margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; font-size: 14px; }
.wpcf7-form.init .wpcf7-response-output, .wpcf7-form.resetting .wpcf7-response-output, .wpcf7-form.submitting .wpcf7-response-output { display: none; }
.wpcf7-form.sent .wpcf7-response-output { background: var(--mint-2); color: var(--teal); font-weight: 700; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output { background: #fdecef; color: #a3223b; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Форма отзыва на странице «Отзывы» */
.otz_form_wrap { max-width: 560px; margin: 32px auto; padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.otz_title { margin-bottom: 16px; color: var(--ink); font-weight: 800; font-size: 24px; }

/* Контакты */
.contacts { padding: 88px 0; }
.contacts__grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: stretch; }
.contacts__card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.contacts__card h2 { margin: 10px 0 20px; font-size: 32px; }
.contacts__card dl { margin: 0 0 24px; }
.contacts__card dt { margin-top: 14px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contacts__card dd { margin: 4px 0 0; font-weight: 600; }
.contacts__card dd a { color: var(--ink); text-decoration: none; font-weight: 800; }
.contacts__map { position: relative; min-height: 420px; overflow: hidden; border-radius: 24px; background: var(--mint) url("assets/img/fasad.jpg") center / cover; }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__map-btn { position: absolute; left: 50%; top: 50%; padding: 14px 24px; border: 0; border-radius: 100px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: var(--shadow); transform: translate(-50%, -50%); }

/* ================= Подвал ================= */

.site-footer { padding: 64px 0 28px; background: #10363b; color: #adcecc; font-size: 14px; }
.site-footer a { color: #d9eeec; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__license { color: #7fa9a6; font-size: 13px; }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.site-footer__phone { display: block; color: #fff !important; font-weight: 800; font-size: 18px; }
.site-footer__contacts .btn { margin-top: 8px; }
.site-footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.site-footer__bottom p { margin: 4px 0; }
.site-footer__warning { color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* ================= Внутренние страницы ================= */

.page-hero--plain { padding: 22px 0 0; }

/* Продающая шапка внутренних страниц */
.page-hero:not(.page-hero--plain) {
    position: relative;
    padding: 26px 0 50px;
    overflow: hidden;
    background: linear-gradient(180deg, #e6f4f1 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.page-hero--noimg .page-hero__grid { grid-template-columns: 1fr; }
.page-hero .crumbs { margin-bottom: 22px; }
.page-hero h1 { margin: 12px 0 16px; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.page-hero__lead { max-width: 640px; margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-hero__price { display: flex; flex-direction: column; justify-content: center; min-height: 56px; margin-right: 8px; padding: 6px 20px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.page-hero__price small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.page-hero__price b { color: var(--accent); font-size: 24px; line-height: 1.1; white-space: nowrap; }
.page-hero__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 640px; margin: 28px 0 0; padding: 0; list-style: none; }
.page-hero__benefits li { position: relative; padding-left: 32px; font-weight: 700; font-size: 14px; line-height: 1.4; }
.page-hero__benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.page-hero__visual { position: relative; padding: 0 0 26px 20px; }
.page-hero__photo { overflow: hidden; height: 380px; border-radius: 160px 160px 24px 24px; background: var(--mint); box-shadow: var(--shadow); }
.page-hero__photo img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.page-hero--doctor .page-hero__photo { height: 440px; border-radius: 24px; }
.page-hero--doctor .page-hero__photo img { object-position: center top; }
.page-hero__float { left: -10px; bottom: 0; }

.page-hero:not(.page-hero--plain) + .page-layout { padding-top: 34px; }

/* Страница врача: фото уже в шапке — блок фото из текста (div/figure.doc_page_img) скрываем */
.page-hero--doctor + .page-layout .doc_page_img { display: none; }
.page-hero--doctor + .page-layout .doc_page_desc { float: none; width: auto; margin: 0; }
.crumbs { color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }
.crumbs .lastitem { color: var(--ink); }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 20px 0 70px; }
.page-layout--wide { grid-template-columns: minmax(0, 1fr); }

.page-content { min-width: 0; padding: 36px 40px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }

.page-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.aside-card--cta { display: flex; flex-direction: column; gap: 10px; }
.aside-card--cta b { font-size: 20px; }
.aside-card--cta p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.aside-card--cta small { color: var(--muted); text-align: center; }
.aside-card__phone { color: var(--ink); font-weight: 800; font-size: 20px; text-align: center; text-decoration: none; }
.aside-menu__title { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; }
.aside-menu ul { margin: 0; padding: 0; list-style: none; }
.aside-menu ul ul { display: none; padding-left: 14px; }
.aside-menu li.current > ul { display: block; }
.aside-menu a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.aside-menu a:hover { color: var(--teal); }
.aside-menu a.current { color: var(--accent); font-weight: 700; }
.aside-promo { display: block; background: linear-gradient(135deg, var(--accent), #ec7d6f); border: 0; color: #fff; text-decoration: none; }
.aside-promo b { display: block; font-size: 24px; }
.aside-promo span { font-size: 14px; }
.aside-promo:hover { color: #fff; box-shadow: var(--shadow); }

/* ----- Текст страниц из старой CMS (классы оставлены как были) ----- */

.content { font-size: 16px; line-height: 1.7; }
.content h1 { margin: 0 0 22px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; text-transform: none; }
.content h2, .content .zag { margin: 34px 0 14px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 800; text-transform: none; }
.content h3 { margin: 26px 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; text-transform: none; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 4px 0; }
.content ul li::marker { color: var(--teal); }
.content a { color: var(--teal); }
.content img { height: auto; border-radius: 12px; }
.content .clear { clear: both; }
.content .right_img { float: right; width: 42%; max-width: 380px; margin: 4px 0 18px 26px; }
.content iframe { max-width: 100%; border: 0; border-radius: 14px; }

/* Таблицы цен */
.content table { width: 100%; margin: 12px 0 24px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.content td, .content th { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.content tr:last-child td { border-bottom: 0; }
.content tr:nth-child(even) td { background: #f8fbfb; }
.content .tab_price_top td, .content table tr:first-child th { background: var(--teal) !important; color: #fff; font-weight: 700; }
.content .tab_price td:last-child { white-space: nowrap; font-weight: 800; color: var(--ink); text-align: right; }
.content .tab_price .tab_price_top td:last-child { color: #fff; }

/* Плашки цен и акций */
.content .tab_price_rek { margin: 16px 0; padding: 18px 24px; border-radius: 16px; background: var(--mint); color: var(--ink); }
.content .tab_price_rek p { margin: 0; color: var(--ink); font-size: 17px; font-weight: 700; }
.content .tab_price_rek p span { color: var(--accent); font-size: 22px; }
.content .wrap_price_rek { margin: 16px 0; }
/* Акции: в текстах старой CMS — style="background:#d94b6c" и font-size:x-large; перебиваем на аккуратные карточки */
.content .tab_price_akc {
    position: relative;
    margin: 0 0 12px;
    padding: 16px 22px 16px 68px;
    border: 1px solid #f5d3cd;
    border-radius: 16px;
    background: #fff6f3 !important;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}
.content .tab_price_akc::before {
    content: "%";
    position: absolute;
    left: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}
.content .tab_price_akc p, .content .wrap_price_rek .tab_price_akc p { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.content .tab_price_akc p:first-child { margin-top: 0; }
.content .tab_price_akc span, .content .tab_price_akc div { color: inherit; }
.content .tab_price_akc > span:first-child, .content .tab_price_akc > div:first-child, .content .tab_price_akc > p:first-child { font-weight: 800; font-size: 16px; }
.content .tab_price_akc [style*="line-through"] { color: var(--muted) !important; font-weight: 400; }
.content .tab_price_akc a { color: var(--accent); font-weight: 700; }
.content .tab_price_akc br + br { display: none; }
.content .wrap_price_rek { margin: 0; }

/* Размеры шрифта, вписанные в текст старым редактором (x-large, 18pt…), в новой вёрстке не используем */
.page-content [style*="font-size"], .page-content font[size] { font-size: inherit !important; }

/* Блок «Записаться / телефон» внутри текстов ([kd_block name="ZapisTelefon"]) */
.content .order_wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin: 26px 0; padding: 22px; border-radius: 18px; background: var(--mint-2); }
.content .order_btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 26px; border-radius: 100px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none; }
.content .order_btn:hover { background: var(--accent-dark); }
.content .order_tel a { color: var(--ink) !important; font-weight: 800; font-size: 22px; text-decoration: none; }

/* Спойлеры, разделы главной, прочее */
.content .spoiler_links { display: block; margin-bottom: 10px; padding: 14px 18px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; }
.content .spoiler_body { padding: 0 4px 10px; }
.content .main_raz { margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.content .main_raz p { margin: 0; padding: 12px 16px; background: var(--teal); color: #fff; font-weight: 700; }
.content .main_raz img { float: right; max-width: 40%; margin: 12px; }
/* В блоке «Наши услуги» несколько <ul> подряд (в старой теме — колонки): здесь это один сплошной список */
.content .main_raz ul { margin: 0; padding: 0 16px 0 36px; }
.content .main_raz ul li:last-child { margin-bottom: 0; }
.content .main_raz ul + ul { margin-top: 4px; }
.content .main_raz p + img + ul, .content .main_raz p + ul { padding-top: 16px; }
.content .main_raz ul:last-of-type { padding-bottom: 16px; }
.content .gal_med:not(.kd-gallery) a { display: inline-block; margin: 4px; }
.content .gal_med:not(.kd-gallery) img { width: 200px; height: 140px; object-fit: cover; }
.content .exmp_pht td { text-align: center; font-size: 14px; }
.content .exmp_pht img { border-radius: 10px; }
.content .otz_page { margin: 0 0 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--mint-2); }
.content .otz_page strong { color: var(--teal); }
.content .otz_page.is-hidden { display: none; }
.content .reviews-more { display: flex; margin: 24px auto 0; }
.content .doc_page_desc h1 { margin-top: 0; }

/* Галереи ([gallery]) — стили в assets/css/gallery.css; здесь только отступы ленты */
.content .kd-slider { margin: 20px 0 30px; }

/* Список врачей ([kd_doctors]) */
.kd-doctors__section { margin: 0 0 36px; }
.kd-doctors__section > h2 { margin: 10px 0 6px; }
.content .kd-doctors__group { margin: 18px 0 12px; color: var(--accent); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kd-doctors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.content a.kd-doc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.content a.kd-doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kd-doc__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mint); }
.content .kd-doc__photo img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: center top; }
.kd-doc__name { display: block; padding: 14px 14px 2px; font-weight: 800; font-size: 15px; line-height: 1.3; }
.kd-doc__job { display: block; padding: 0 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* 404 */
.notfound h1 { margin: 10px 0; font-size: 44px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }

/* ================= Модальное окно, уведомления, служебное ================= */

.overlay_mdl { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(9, 36, 40, .6); backdrop-filter: blur(3px); cursor: pointer; }
.modal_form_mdl {
    position: fixed;
    left: 50%;
    top: 45%;
    z-index: 1001;
    display: none;
    width: min(460px, calc(100% - 24px));
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px 30px 28px;
    border-radius: 24px;
    background: #fff;
    opacity: 0;
    transform: translateX(-50%);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
}
.modal_form_mdl .form_title { margin-bottom: 6px; color: var(--ink); font-weight: 800; font-size: 26px; }
.modal_close_mdl { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mint-2); }
.modal_close_mdl::before, .modal_close_mdl::after { content: ""; position: absolute; left: 10px; top: 17px; width: 16px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.modal_close_mdl::after { transform: rotate(-45deg); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1100;
    max-width: min(520px, calc(100% - 24px));
    padding: 16px 22px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity .3s, transform .3s;
    cursor: pointer;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

#toTop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 90;
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087f80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l5-5 5 5'/%3E%3C/svg%3E") no-repeat center / 18px;
    box-shadow: 0 6px 20px rgba(17, 62, 67, .2);
    cursor: pointer;
}

#cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: none; padding: 16px; background: var(--ink); color: #fff; font-size: 14px; text-align: center; }
#cookie-banner button { margin-left: 15px; padding: 10px 20px; border: 0; border-radius: 100px; background: var(--accent); color: #fff; font-weight: 700; }

.mobile-bar { display: none; }

/* ================= Адаптив ================= */

@media (min-width: 1101px) and (max-width: 1300px) {
    .site-header__inner { gap: 14px; }
    .nav__link { padding: 10px 8px; font-size: 13px; }
    .site-header__phone2 { display: none; }
    .brand img { height: 36px; }
}

@media (max-width: 1100px) {
    .site-header__contacts { display: none; }
    .burger {
        display: block;
        position: relative;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 12px;
        background: var(--mint-2);
    }
    .burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .burger span { top: 22px; }
    .burger::before { top: 15px; }
    .burger::after { top: 29px; }

    /* Меню — выезжающая панель */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        width: min(380px, 88vw);
        margin: 0;
        padding: 64px 20px 30px;
        overflow-y: auto;
        background: #fff;
        visibility: hidden;
        transform: translateX(105%);
        transition: transform .3s ease, visibility 0s .3s;
    }
    .nav-open .nav { visibility: visible; transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .2); transition: transform .3s ease; }
    .nav-open::after { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(9, 36, 40, .5); }
    /* Панель живёт внутри шапки: при открытом меню шапка должна быть выше затемнения */
    .nav-open .site-header { z-index: 300; }
    .nav__close { display: block; position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mint-2); }
    .nav__close::before, .nav__close::after { content: ""; position: absolute; left: 11px; top: 18px; width: 16px; height: 2px; background: var(--ink); transform: rotate(45deg); }
    .nav__close::after { transform: rotate(-45deg); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__link { padding: 14px 4px; font-size: 16px; border-radius: 0; }
    .nav__link:hover, .nav__item.is-open .nav__link { background: none; }
    .nav__toggle { width: 100%; text-align: left; }
    .mega { position: static; display: none; padding: 0 0 12px; border: 0; box-shadow: none; }
    .mega .cf { display: block; }
    .mega .cf li { position: relative; }
    .mega .cf > li > a { display: block; padding: 10px 44px 10px 8px; font-size: 15px; }
    .mega .cf > li > ul > li > a { padding: 8px 44px 8px 22px; }
    .mega .cf ul ul > li > a { display: block; padding: 7px 10px 7px 36px; color: var(--muted); font-size: 13px; text-decoration: none; }
    .mega .cf ul { display: none; margin: 0; }
    .mega .cf li.is-open > ul { display: block; }
    .mega .sub-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 2px;
        width: 40px;
        height: 36px;
        border: 0;
        background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087f80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat center / 14px;
        transition: transform .2s;
    }
    .mega li.is-open > .sub-toggle { transform: rotate(180deg); }
    .nav__mobile-contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
    .nav__mobile-contacts a { color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; }
    .nav__mobile-contacts span { color: var(--muted); font-size: 13px; }

    .hero__grid, .about__grid, .faq-layout, .lead__grid, .contacts__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__photo { height: 420px; }
    .about__photo { position: static; }
    .about__photo img { height: 320px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .offers { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .reviews { grid-template-columns: repeat(2, 1fr); }
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .benefit { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .page-aside { position: static; }
    .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .page-hero__visual { max-width: 560px; }
}

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    body { font-size: 15px; padding-bottom: 64px; }
    .wrap, .wrap--narrow { width: calc(100% - 32px); }

    .topbar__info, .topbar__link { display: none; }
    .topbar__inner { justify-content: center; min-height: 34px; font-size: 12px; }
    .site-header__inner { gap: 10px; }
    .brand img { height: 34px; }
    .site-header .btn--primary { display: none; }
    .icon-btn { width: 40px; height: 40px; margin-left: auto; }

    .hero { padding: 30px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero__lead { font-size: 15px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__trust { gap: 18px; }
    .hero__trust b { font-size: 20px; }
    .hero__visual { padding: 0 0 30px 10px; }
    .hero__photo { height: 300px; border-radius: 140px 140px 22px 22px; }
    .hero__float { max-width: 250px; padding: 14px 16px; }

    .block, .contacts { padding: 56px 0; }
    .section-head { display: block; margin-bottom: 24px; }
    .section-head h2 { font-size: 26px; }
    .section-head p, .section-head .link-more { display: block; margin-top: 12px; }

    .benefits__grid, .services, .offers, .steps, .reviews { grid-template-columns: 1fr; }
    .benefit { padding: 16px 0; }
    .service__media { height: 150px; }
    .offer { flex-direction: row; }
    .offer__media { flex: 0 0 120px; height: auto; }
    .offer__price { font-size: 20px; }
    .doc-card { flex-basis: 210px; }
    .hscroll__btn { display: none; }
    .results.content .kd-slider { --kd-slide-h: 200px; }

    .faq-layout, .about__grid { gap: 20px; }
    .kd-faq__item summary { font-size: 15px; padding: 16px 44px 16px 0; }

    .lead { padding: 50px 0; }
    .lead__card { padding: 22px; }
    .contacts__card { padding: 24px; }
    .contacts__map { min-height: 300px; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }

    .page-content { padding: 22px 18px; border-radius: 18px; }
    .page-hero:not(.page-hero--plain) { padding: 18px 0 34px; }
    .page-hero .crumbs { margin-bottom: 14px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero__lead { font-size: 15px; margin-bottom: 18px; }
    .page-hero__actions .btn { flex: 1 1 100%; }
    .page-hero__price { flex: 1 1 100%; margin: 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
    .page-hero__benefits { grid-template-columns: 1fr; margin-top: 20px; }
    .page-hero__visual { padding: 0 0 22px 8px; }
    .page-hero__photo { height: 240px; border-radius: 110px 110px 20px 20px; }
    .page-hero--doctor .page-hero__photo { height: 360px; }
    .content { font-size: 15px; }
    .content h1 { font-size: 24px; }
    .content h2 { font-size: 20px; }
    .content .right_img { float: none; width: 100%; max-width: none; margin: 0 0 16px; }
    .content table { font-size: 13px; }
    .content td { padding: 9px 10px; }
    .content .tab_price_rek { padding: 14px 16px; }
    .content .tab_price_rek p { font-size: 15px; }
    .content .tab_price_rek p span { font-size: 18px; }
    .content .tab_price_akc { padding: 14px 16px 14px 60px; }
    .content .order_tel a { font-size: 19px; }
    .kd-doctors__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Нижняя панель быстрых действий */
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
        gap: 6px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -6px 20px rgba(17, 62, 67, .12);
    }
    .mobile-bar__item { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; font-weight: 800; font-size: 14px; text-decoration: none; }
    .mobile-bar__item--call { background: var(--mint); color: var(--teal-dark); }
    .mobile-bar__item--wa { background: var(--wa); color: #fff; }
    .mobile-bar__item--book { background: var(--accent); color: #fff; }
    .mobile-bar__item:hover { color: inherit; }
    #toTop { bottom: 80px; right: 12px; }
    #cookie-banner { bottom: 62px; }
    .toast { bottom: 80px; }
}
