/* =====================================================
   stomatologalmaty.kz — основные стили
   ===================================================== */

:root {
    /* === БАЗОВЫЕ ТОНА (палитра по фото врача) === */
    --bg-white:   #ffffff;       /* чистый белый */
    --bg-milk:    #fcfaf6;       /* молочный — альтернативный фон */
    --bg-cream:   #f5efe6;       /* тёплый кремовый — мягкие блоки */
    --bg-sand:    #ebdfcd;       /* песочный — бейджи */
    --bg-beige:   #d9c7a8;       /* бежевый средний */

    /* алиасы для совместимости со старым кодом */
    --bg: var(--bg-milk);
    --surface: var(--bg-white);

    /* === ТЕКСТ === */
    --ink:        #1f2937;       /* основной текст */
    --ink-2:      #0d2b5c;       /* подзаголовки */
    --ink-soft:   #6b6660;       /* второстепенный (тёплый серый) */
    --ink-muted:  #a09891;       /* приглушённый */

    /* === АКЦЕНТЫ (золото) === */
    --accent:      #b89456;      /* приглушённое золото */
    --accent-deep: #8b6e3c;      /* тёмное золото (hover) */
    --accent-soft: #d9c193;      /* светлое золото (фон) */

    /* === ТЁМНЫЕ БЛОКИ === */
    --dark-blue: #0d2b5c;        /* глубокий синий — тёмные секции */
    --dark-coal: #1a1612;        /* тёплый угольный — футер */
    --dark-warm: #2a2018;        /* тёплый шоколад — карточки в тёмных секциях */

    /* === МЕССЕНДЖЕРЫ === */
    --whatsapp: #25D366;
    --telegram: #229ED9;

    /* === ГРАНИЦЫ === */
    --border:      #e5ddd0;
    --border-soft: #f0eae0;
    --border-deep: #c9b998;

    /* === СОСТОЯНИЯ === */
    --success: #5a9078;
    --danger:  #c94747;
    --warning: #d49b3e;

    /* === ГЕОМЕТРИЯ === */
    --radius:    14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(13,43,92,0.06);
    --shadow-md: 0 4px 16px rgba(13,43,92,0.08);
    --shadow-lg: 0 12px 36px rgba(13,43,92,0.10);
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-deep); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================================
   ЧЕРЕДУЮЩИЕСЯ ТОНА СЕКЦИЙ — метод скользкой горки
   ==================================================== */
.tone-white  { background: var(--bg-white); }
.tone-milk   { background: var(--bg-milk); }
.tone-cream  { background: var(--bg-cream); }
.tone-sand   { background: var(--bg-sand); }
.tone-dark   { background: var(--dark-blue); color: #f5f1e8; }
.tone-coal   { background: var(--dark-coal); color: #d9c7a8; }

/* Внутри тёмных секций — поправки на читаемость */
.tone-dark h1, .tone-dark h2, .tone-dark h3,
.tone-coal h1, .tone-coal h2, .tone-coal h3 { color: #ffffff; }
.tone-dark .section-eyebrow, .tone-coal .section-eyebrow { color: var(--accent-soft); }
.tone-dark .section-lead, .tone-coal .section-lead { color: rgba(245,241,232,0.85); }

/* Плавные переходы между секциями — лёгкий «нависающий» край */
.section + .section { position: relative; }

/* ===== ШАПКА ===== */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-text {
    line-height: 1.1;
}

.logo-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.logo-sub {
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.15s;
}

.main-nav a:hover {
    color: var(--ink);
}

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-wa-header {
    background: var(--whatsapp);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-wa-header:hover {
    background: #1ea855;
    color: white;
}

@media (max-width: 900px) {
    .main-nav { display: none; }
}

@media (max-width: 600px) {
    .header-inner { padding: 12px 0; gap: 12px; }
    .logo-text { display: none; }
    .btn-wa-header { padding: 8px 12px; font-size: 13px; }
}

/* ===== ВИДЖЕТ ВРЕМЕНИ ===== */
.time-strip {
    background: var(--ink);
    color: var(--border-soft);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.time-strip .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.time-strip strong {
    color: var(--accent);
    font-weight: 700;
}

.clinic-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}
.status-dot.closed { background: var(--ink-muted); }
.status-dot.closing { background: var(--warning); }

@media (max-width: 600px) {
    .time-strip { font-size: 12px; }
    .time-strip .container { gap: 10px; }
}

/* ===== HERO — тёплый фон под фото врача ===== */
.hero {
    padding: 72px 0 80px;
    background:
        radial-gradient(ellipse 60% 80% at 85% 30%, rgba(184,148,86,0.10) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-milk) 70%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    background: var(--bg-sand);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--ink-2);
}

.hero h1 .accent {
    color: var(--accent-deep);
    font-style: italic;
    font-weight: 700;
}

.hero-lead {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.65;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--border-soft);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--ink-2);
    color: var(--border-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--border-soft);
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.hero-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 4px;
}

.hero-image {
    position: relative;
    display: block;
}

.hero-image-frame {
    background: var(--ink);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
    box-shadow: 0 10px 40px rgba(13,31,60,0.15);
}

.hero-image-frame img,
.hero-image-frame picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2d4f 0%, #0d1f3c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--accent);
    padding: 24px;
    text-align: center;
}
.hero-image-placeholder svg {
    width: 50%;
    max-width: 160px;
    height: auto;
}
.hero-image-placeholder .placeholder-text {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.hero-image-placeholder .placeholder-hint {
    font-size: 11px;
    color: rgba(201, 169, 110, 0.5);
    font-family: 'SF Mono', Menlo, monospace;
    margin-top: -6px;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: -16px;
    background: var(--surface);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(13,31,60,0.18);
    border: 1px solid var(--border);
    z-index: 2;
    white-space: nowrap;
}

.hero-badge-rating {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-deep);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-badge-label {
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .hero-badge {
        bottom: 16px;
        left: 16px;
    }
}

@media (max-width: 900px) {
    .hero { padding: 40px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 16px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 22px; }
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 64px 0;
}

.section-tight {
    padding: 40px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-lead {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
}
/* ===== УСЛУГИ — симметричная сетка ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;          /* все ряды одинаковой высоты */
    gap: 20px;
    align-items: stretch;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 100%;              /* растягиваем на всю высоту ряда */
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.service-card-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    line-height: 1.3;
}

.service-card-desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 18px;
    line-height: 1.55;
    flex: 1;                       /* занимает всё доступное место */
}

.service-card-price {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: auto;              /* прижимаем цену к низу */
    padding-top: 14px;
    border-top: 1px dashed var(--border-soft);
}

.service-card-price strong {
    font-size: 18px;
    color: var(--ink-2);
    font-weight: 800;
    letter-spacing: -0.01em;
    display: inline-block;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* ===== КЛИНИКИ ===== */
.clinics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.clinic-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.clinic-card-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.clinic-card-addr {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.clinic-schedule {
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.clinic-schedule-title {
    font-size: 12px;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 12px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-soft);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--ink);
}

.schedule-hours {
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.schedule-row.day-off .schedule-hours {
    color: var(--ink-muted);
}

.clinic-card-actions {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

@media (max-width: 700px) {
    .clinics-grid { grid-template-columns: 1fr; }
}

/* ===== ФОРМА ЗАПИСИ ===== */
.zapis-section {
    background: var(--ink);
    color: var(--border-soft);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.zapis-section::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,169,110,0.15), transparent 70%);
    pointer-events: none;
}

.zapis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.zapis-grid h2 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--accent);
}

.zapis-grid p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 12px;
}

.zapis-form {
    background: var(--surface);
    color: var(--ink);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* honeypot — скрыт от людей */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.clinic-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 480px) {
    .clinic-choice { grid-template-columns: 1fr; }
}

.clinic-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.clinic-option:hover {
    border-color: var(--accent);
}

.clinic-option.selected {
    border-color: var(--accent);
    background: var(--border-soft);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.12);
}

.clinic-option-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.clinic-option-addr {
    font-size: 12px;
    color: var(--ink-soft);
}

.form-submit {
    width: 100%;
    background: var(--ink);
    color: var(--border-soft);
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.form-submit:hover {
    background: var(--ink-2);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-consent {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 12px;
    line-height: 1.5;
}

.form-consent a {
    color: var(--accent-deep);
    text-decoration: underline;
}

@media (max-width: 800px) {
    .zapis-grid { grid-template-columns: 1fr; gap: 32px; }
    .zapis-grid h2 { font-size: 28px; }
    .zapis-form { padding: 24px; }
    .zapis-section { padding: 48px 0; }
}

/* ===== УСПЕХ ===== */
.success-screen {
    background: var(--success);
    color: white;
    padding: 36px;
    border-radius: var(--radius);
    text-align: left;
    display: none;
}

.success-screen.show { display: block; }

.success-screen h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.success-screen .summary {
    background: rgba(255,255,255,0.12);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.7;
}

.success-screen .summary strong { color: white; }

.success-wa-btn {
    background: var(--whatsapp);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.success-wa-btn:hover {
    background: #1ea855;
    color: white;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.review-stars {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.review-meta {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.review-meta strong {
    color: var(--ink);
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-doctor-response {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 13px;
    color: var(--ink-soft);
}

.review-doctor-response strong {
    color: var(--accent-deep);
}

@media (max-width: 700px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* ====================================================
   ПОДВАЛ — тёплый угольный с золотыми акцентами
   ==================================================== */
.site-footer {
    background: var(--dark-coal);
    color: rgba(217, 199, 168, 0.75);
    padding: 56px 0 28px;
    font-size: 14px;
    position: relative;
    /* Тонкая золотая линия сверху как у премиум-сайтов */
    border-top: 1px solid rgba(184, 148, 86, 0.15);
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(184, 148, 86, 0.12);
}

.footer-col h4 {
    color: var(--accent-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col p, .footer-col a {
    color: rgba(217, 199, 168, 0.72);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    line-height: 1.65;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-soft); }

/* Первая колонка — описание врача (особый стиль) */
.footer-col:first-child p {
    color: rgba(217, 199, 168, 0.55);
    font-size: 13px;
}
.footer-col:first-child p strong {
    color: rgba(245, 239, 230, 0.85);
    font-weight: 600;
    font-size: 14px;
}

.footer-bottom {
    padding-top: 4px;
    font-size: 12px;
    color: rgba(217, 199, 168, 0.45);
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .site-footer { padding: 40px 0 24px; }
}

/* ===== STICKY MOBILE CTA ===== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.mobile-cta a {
    display: block;
    background: var(--whatsapp);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
}

@media (max-width: 900px) {
    .mobile-cta { display: block; }
    body { padding-bottom: 80px; }
}

/* =====================================================
   Дополнительные стили для многостраничника
   ===================================================== */

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.breadcrumbs a {
    color: var(--ink-soft);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs .bc-sep {
    margin: 0 8px;
    color: var(--ink-muted);
}
.breadcrumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* ===== СТРАНИЦА УСЛУГИ ===== */
.page-service .service-hero {
    padding: 56px 0 40px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
}
.page-service .service-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
.page-service h1 {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.page-service .service-hero-lead {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 24px;
}
.page-service .service-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.page-service .service-meta-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.page-service .service-meta-label {
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.page-service .service-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.page-service .service-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-quick-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.service-quick-form h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.service-content {
    padding: 32px 0 56px;
    max-width: 760px;
    margin: 0 auto;
}
.service-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
}
.service-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 28px 0 12px;
}
.service-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #2d3a4f;
}
.service-content ul, .service-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}
.service-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #2d3a4f;
}
.service-content strong { color: var(--ink); font-weight: 700; }
.service-content em {
    color: var(--ink-soft);
    font-size: 13px;
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
    .page-service .service-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .page-service h1 { font-size: 28px; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.15s;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-deep);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item[open] .faq-question { background: var(--border-soft); }
.faq-answer {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ===== БЛОГ — СПИСОК ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.blog-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.05em;
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
    font-size: 11px;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 10px;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    flex: 1;
}
.blog-card-meta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--ink-muted);
    display: flex;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ===== БЛОГ — СТАТЬЯ ===== */
.article-page { padding: 28px 0 64px; }
.article-page .container { max-width: 760px; }
.article-header { margin-bottom: 28px; }
.article-cat {
    font-size: 12px;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 12px;
}
.article-header h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.article-meta {
    display: flex;
    gap: 18px;
    color: var(--ink-soft);
    font-size: 13px;
    margin-bottom: 24px;
}
.article-content { font-size: 17px; line-height: 1.7; }
.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 36px 0 14px;
    letter-spacing: -0.01em;
}
.article-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.article-content p { margin-bottom: 16px; color: #2d3a4f; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; color: #2d3a4f; }
.article-content em {
    color: var(--ink-soft);
    font-size: 13px;
    display: block;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.article-author {
    margin-top: 36px;
    padding: 24px;
    background: var(--border-soft);
    border-radius: var(--radius);
    display: flex;
    gap: 18px;
    align-items: center;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    flex-shrink: 0;
}
.author-info-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.author-info-role {
    font-size: 13px;
    color: var(--ink-soft);
}

@media (max-width: 700px) {
    .article-header h1 { font-size: 26px; }
    .article-content { font-size: 16px; }
}

/* ===== О ВРАЧЕ ===== */
.about-hero {
    padding: 48px 0;
    background: var(--surface);
}
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
}
.about-photo {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.about-hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.about-hero-role {
    font-size: 16px;
    color: var(--accent-deep);
    margin-bottom: 18px;
}
.about-block { padding: 40px 0; }
.about-block h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}
.about-block p { font-size: 16px; line-height: 1.7; color: #2d3a4f; margin-bottom: 14px; }

@media (max-width: 800px) {
    .about-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-hero h1 { font-size: 28px; }
}

/* ===== ОТЗЫВЫ — ПОЛНАЯ СТРАНИЦА ===== */
.otzyvy-page { padding: 32px 0 64px; }
.otzyvy-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}
.otzyvy-summary-rating {
    text-align: center;
    padding-right: 32px;
    border-right: 1px solid var(--border);
}
.otzyvy-rating-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-deep);
    letter-spacing: -0.02em;
    line-height: 1;
}
.otzyvy-rating-stars {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 6px;
}
.otzyvy-rating-count {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 6px;
}

.otzyvy-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.otzyvy-filter a {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all 0.15s;
}
.otzyvy-filter a:hover { color: var(--ink); border-color: var(--accent); }
.otzyvy-filter a.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

@media (max-width: 600px) {
    .otzyvy-summary { grid-template-columns: 1fr; gap: 16px; }
    .otzyvy-summary-rating { padding-right: 0; border-right: none; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
}

/* ===== КОНТАКТЫ ===== */
.kontakty-page { padding: 32px 0 64px; }
.kontakty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.kontakty-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.kontakty-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.kontakty-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
}
.kontakty-row:last-child { border-bottom: none; }
.kontakty-row-label {
    font-size: 12px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.kontakty-row-value { color: var(--ink); font-weight: 600; }
.kontakty-row a { color: var(--accent-deep); text-decoration: none; }
.kontakty-row a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .kontakty-grid { grid-template-columns: 1fr; }
}

/* ===== СТАТЬИ ===== */
.legal-page { padding: 40px 0 64px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 30px; font-weight: 800; margin-bottom: 24px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.legal-page p { font-size: 15px; line-height: 1.65; margin-bottom: 12px; color: #2d3a4f; }
.legal-page ul, .legal-page ol { margin: 12px 0 16px; padding-left: 24px; }
.legal-page li { font-size: 15px; line-height: 1.65; margin-bottom: 6px; }

/* ===== 404 ===== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 0;
}
.error-404 h1 {
    font-size: 96px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 16px;
}
.error-404 p { font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; }

/* =====================================================
   ОБНОВЛЕНИЯ — итерация 2
   ===================================================== */

/* Логотип DR. MARTYNOV — настоящий PNG с прозрачностью, без рамок */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    padding: 6px 0;
    transition: transform 0.25s ease;
}
.logo:hover { transform: translateY(-1px); }

.logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
    /* Едва заметная пульсация — не мешает, добавляет «жизни» */
    animation: logo-glow 6s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50%      { filter: drop-shadow(0 2px 8px rgba(13, 43, 92, 0.12)); }
}

/* Адаптив — пропорционально уменьшается на мобильных */
@media (max-width: 900px) { .logo-img { height: 46px; } }
@media (max-width: 700px) { .logo-img { height: 40px; } }
@media (max-width: 500px) { .logo-img { height: 36px; } }
@media (max-width: 380px) { .logo-img { height: 32px; } }

@media (prefers-reduced-motion: reduce) {
    .logo-img { animation: none; }
}

/* Виджет «где приём» */
.time-strip {
    background: var(--ink);
    color: var(--border-soft);
    padding: 9px 0;
    font-size: 13px;
}
.time-strip .container {
    display: flex; justify-content: center; align-items: center;
    gap: 14px; flex-wrap: wrap;
}
.time-strip strong { color: var(--accent); font-weight: 700; }
.now-divider {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); opacity: 0.5;
    display: inline-block;
}
.doctor-where { color: var(--border-soft); }
.doctor-where.active strong { color: #5fd084; }
.doctor-where.active::before { content: '🟢 '; }
.doctor-where.idle strong { color: var(--accent); }
.doctor-where.idle::before { content: '⏰ '; }

@media (max-width: 600px) {
    .time-strip { font-size: 12px; }
    .time-strip .container { gap: 10px; }
}

/* Чекбокс согласия */
.consent-row {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 18px 0 6px;
    font-size: 12px; color: var(--ink-soft); line-height: 1.5;
}
.consent-row input[type="checkbox"] {
    flex-shrink: 0; margin-top: 2px;
    width: 18px; height: 18px;
    accent-color: var(--accent-deep);
    cursor: pointer;
}
.consent-row label { cursor: pointer; }
.consent-row a {
    color: var(--accent-deep); text-decoration: underline;
}

/* Кнопка "читать дальше" для отзывов */
.read-more-btn {
    background: none; border: none; padding: 4px 0;
    color: var(--accent-deep); cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
    text-decoration: underline;
    margin-top: 4px;
}
.read-more-btn:hover { color: var(--ink); }

/* Карточки клиник — равная высота */
.clinics-grid {
    align-items: stretch;
}
.clinic-card {
    display: flex; flex-direction: column;
}
.clinic-schedule {
    flex: 1;
}
.clinic-card-actions { margin-top: auto; padding-top: 18px; }

/* Если у клиники мало строк графика — добавляем «воздух» */
.clinic-schedule .schedule-empty-note {
    font-size: 12px; color: var(--ink-muted); font-style: italic;
    padding: 12px 0; line-height: 1.5;
}

/* Показать/скрыть пароль */
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 40px !important;
}
.password-toggle {
    position: absolute;
    right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 18px; padding: 4px 8px;
    color: var(--ink-soft);
}
.password-toggle:hover { color: var(--ink); }

/* =====================================================
   ШАГИ ЗАПИСИ + ТАЙМЕР SUCCESS-ЭКРАНА
   ===================================================== */
.zapis-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 4px 0 12px;
}
.zapis-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.zapis-step .step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.zapis-step strong {
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.zapis-step p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

/* Success-экран — обновление */
.success-screen.show { display: block; }
.success-screen h3 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.success-steps {
    background: rgba(255,255,255,0.12);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.success-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: white;
}
.step-marker {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: white;
    color: var(--success);
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.countdown-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.countdown-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.countdown-text strong {
    color: white;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 12px;
    text-align: center;
}

/* ====================================================
   ОТЗЫВЫ — источник + CTA после блока
   ==================================================== */
.review-source {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0d8043;
    font-weight: 600;
    background: #e8f5ec;
    padding: 4px 10px;
    border-radius: 14px;
}
.review-source a {
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.review-source a:hover { color: var(--ink); }

.reviews-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.reviews-cta .btn-secondary,
.reviews-cta .btn-primary { padding: 14px 28px; font-size: 15px; }
@media (max-width: 700px) {
    .reviews-cta { flex-direction: column; align-items: stretch; }
}

/* ====================================================
   ПОДВАЛ — подпись разработчика
   ==================================================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.55;
    transition: opacity 0.2s;
    font-size: 11px;
}
.footer-credit:hover { opacity: 0.85; }
.footer-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
    padding-bottom: 1px;
    transition: border-color 0.2s, color 0.2s;
}
.footer-credit a:hover {
    color: #25D366;
    border-bottom-color: #25D366;
}
@media (max-width: 500px) {
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}

/* ====================================================
   ПЕРЕКЛЮЧАТЕЛЬ КЛИНИК (табы) — для /kontakty
   ==================================================== */
.clinic-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border-soft);
    overflow-x: auto;
    scrollbar-width: none;
}
.clinic-tabs::-webkit-scrollbar { display: none; }

.clinic-tab {
    flex: 1;
    min-width: 180px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-align: center;
    line-height: 1.3;
}
.clinic-tab:hover { color: var(--ink); background: rgba(13, 43, 92, 0.03); }
.clinic-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
.clinic-tab small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-soft);
    margin-top: 2px;
}

.clinic-pane { display: none; animation: clinic-fade 0.25s ease; }
.clinic-pane.is-active { display: block; }
@keyframes clinic-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Содержимое таба клиники: 2 колонки — инфо + карта */
.clinic-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 800px) {
    .clinic-content { grid-template-columns: 1fr; }
}

.clinic-info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.clinic-info-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--ink);
}
.clinic-info-card .clinic-tagline {
    color: var(--accent-deep);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Карта Яндекс */
.clinic-map-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}
.clinic-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Кнопки маршрута/2GIS */
.map-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.map-actions a {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    background: white;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.map-actions a:hover {
    border-color: var(--accent);
    background: var(--bg-cream);
    transform: translateY(-1px);
}
.map-actions a.map-route-btn {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.map-actions a.map-route-btn:hover {
    background: var(--ink);
    color: white;
    opacity: 0.9;
}

/* ====================================================
   ПЛАШКА «ВАША КЛИНИКА» (на главной/везде)
   ==================================================== */
.preferred-clinic-bar {
    display: none;
    background: linear-gradient(90deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 0;
    font-size: 14px;
}
.preferred-clinic-bar.is-visible { display: block; }
.preferred-clinic-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.preferred-clinic-bar-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
}
.preferred-clinic-bar-text strong { color: var(--ink); }
.preferred-clinic-bar-actions {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.preferred-clinic-bar-actions a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.preferred-clinic-bar-actions a:hover { text-decoration: underline; }
.preferred-clinic-bar-actions .pcb-reset {
    color: var(--ink-soft);
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    text-decoration: underline;
}

/* ====================================================
   БЛОК СЕРТИФИКАТОВ — /o-vrache
   ==================================================== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.cert-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cert-card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--bg-cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-deep);
    font-size: 18px;
}
.cert-card-title { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; }
.cert-card-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.cert-card-link {
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cert-card-link:hover { text-decoration: underline; }

/* ====================================================
   ПЕРЕКЛЮЧАТЕЛЬ КАРТ (Яндекс / 2GIS / Google)
   ==================================================== */
.map-switcher {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 12px;
    background: #f1f4f8;
    padding: 4px;
    border-radius: 10px;
}
.map-switch-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 7px;
    font-family: inherit;
    transition: all 0.18s;
}
.map-switch-btn:hover { color: var(--ink); }
.map-switch-btn.is-active {
    background: white;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Карты — переключение видимости */
.clinic-map-wrap { display: none; }
.clinic-map-wrap.is-active { display: block; }

/* Прямые ссылки под картой */
.map-open-links {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
    font-size: 13px;
}
.map-open-links a {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.map-open-links a:hover { color: var(--ink); text-decoration: underline; }

/* ====================================================
   СЕКЦИЯ СТРАХ БОЛИ — для дентофобов
   ==================================================== */
.pain-section { padding: 80px 0; }
.pain-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; gap: 32px; } }

.pain-quote {
    margin: 28px 0;
    padding: 22px 26px;
    background: var(--bg-cream);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    font-style: italic;
    color: var(--ink);
    line-height: 1.55;
}
.pain-quote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

.pain-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f4f8 100%);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}
.pain-stat {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.pain-stat:last-child { border-bottom: none; padding-bottom: 0; }

.pain-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.pain-stat-label {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

/* ====================================================
   СЕКЦИЯ РЕВИЗИЯ — для жертв чужих ошибок
   ==================================================== */
.revision-section { padding: 80px 0; }
.revision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 800px) { .revision-cards { grid-template-columns: 1fr; } }

.revision-card {
    background: white;
    padding: 26px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.revision-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 43, 92, 0.08);
    border-color: var(--accent);
}
.revision-icon {
    font-size: 28px;
    margin-bottom: 14px;
}
.revision-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--ink);
}
.revision-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

/* ====================================================
   СЕКЦИЯ ВАРИАНТЫ ПО БЮДЖЕТУ
   ==================================================== */
.budget-section { padding: 80px 0; }
.budget-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}
@media (max-width: 900px) { .budget-cards { grid-template-columns: 1fr; } }

.budget-card {
    background: white;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: all 0.2s;
}
.budget-card:hover { border-color: var(--accent-deep); }

.budget-card-recommended {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 28px rgba(201, 169, 110, 0.18);
    transform: translateY(-4px);
}

.budget-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    background: var(--border-soft);
    padding: 4px 10px;
    border-radius: 4px;
}
.budget-tag-popular {
    background: var(--accent);
    color: white;
}

.budget-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.budget-card-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.budget-card-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.budget-card-breakdown {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.8;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: 12px 0;
}

.budget-card-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

/* ====================================================
   СТРАНИЦЫ УСЛУГ — стат-блок в начале
   ==================================================== */
.service-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 32px;
    padding: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}
@media (max-width: 700px) { .service-hero-stats { grid-template-columns: 1fr; } }
.shs-item {
    text-align: center;
    padding: 8px 0;
}
.shs-item strong {
    display: block;
    font-size: 28px;
    color: var(--ink);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.shs-item span {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

/* Таблица цен */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 28px;
    font-size: 15px;
}
.price-table thead th {
    background: var(--ink);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--ink-soft);
}
.price-table tbody td:last-child {
    text-align: right;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.price-table tbody tr:hover { background: #fafbfc; }

/* Калькулятор стоимости */
.calc-block {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border: 2px solid var(--accent);
    border-radius: 14px;
    padding: 28px;
    margin: 32px 0;
}
.calc-block h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--ink);
}
.calc-hint {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 22px;
}
.calc-row {
    margin-bottom: 18px;
}
.calc-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.calc-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.calc-buttons button {
    flex: 1;
    min-width: 100px;
    padding: 12px 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}
.calc-buttons button:hover {
    border-color: var(--accent);
    background: var(--bg-cream);
}
.calc-buttons button.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.calc-result {
    margin-top: 22px;
    padding: 18px 20px;
    background: var(--ink);
    color: white;
    border-radius: 10px;
}
.calc-result-label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.calc-result-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.calc-result small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
}

/* Шаги визита */
.visit-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin: 24px 0;
}
.visit-steps li {
    position: relative;
    padding: 18px 18px 18px 60px;
    margin-bottom: 12px;
    background: #fafbfc;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    counter-increment: step;
    line-height: 1.6;
}
.visit-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.visit-steps li strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Hero для /second-opinion */
.hero-second-opinion .hero-image-frame {
    aspect-ratio: 4/5;
}

/* Подсвеченный пункт меню (УТП «Второе мнение») */
.main-nav a.nav-highlight {
    color: var(--accent-deep);
    font-weight: 600;
    position: relative;
}
.main-nav a.nav-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.main-nav a.nav-highlight:hover { color: var(--ink); }

/* ====================================================
   КВИЗ-ВИЗАРД перед формой записи
   ==================================================== */
.quiz-wizard {
    background: white;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 8px 32px rgba(13, 43, 92, 0.08);
    border: 1px solid var(--border-soft);
}

/* Прогресс-бар */
.quiz-progress {
    margin-bottom: 24px;
    position: relative;
}
.quiz-progress::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--border-soft);
    border-radius: 2px;
    margin-bottom: 6px;
}
.quiz-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-step-label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Шаг квиза */
.quiz-step {
    display: none;
    animation: quizFade 0.25s ease;
}
.quiz-step.is-active { display: block; }
@keyframes quizFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quiz-q {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.quiz-hint {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Опции квиза */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz-options-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 480px) {
    .quiz-options-2col { grid-template-columns: 1fr; }
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s;
    color: var(--ink);
}
.quiz-option:hover {
    border-color: var(--accent);
    background: var(--bg-cream);
    transform: translateX(2px);
}
.quiz-option.is-selected {
    border-color: var(--accent);
    background: var(--bg-cream);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.quiz-option-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
}
.quiz-option-text {
    flex: 1;
    line-height: 1.35;
}
.quiz-option-text strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}
.quiz-option-text small {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 2px;
    line-height: 1.4;
}

/* Кнопка "Назад" */
.quiz-back {
    background: transparent;
    border: none;
    color: var(--ink-soft);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.quiz-back:hover { color: var(--ink); }

/* Сводка ответов на шаге 3 */
.quiz-summary {
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border: 1px dashed rgba(201, 169, 110, 0.5);
}
.quiz-summary-title {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.quiz-summary-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    flex-wrap: wrap;
}
.quiz-summary-row + .quiz-summary-row {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.qsr-label {
    color: var(--ink-soft);
    font-size: 13px;
    min-width: 80px;
}
.qsr-value {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
}
.qsr-edit {
    background: transparent;
    border: none;
    color: var(--accent-deep);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.qsr-edit:hover { color: var(--ink); }

@media (max-width: 600px) {
    .quiz-wizard { padding: 20px 18px; }
    .quiz-q { font-size: 19px; }
}
/* =====================================================
   ЭТАП 2A · ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   Добавить в КОНЕЦ существующего main.css
   ===================================================== */

/* ========== Стат-блок в начале услуги ========== */
.service-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0 36px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-milk) 100%);
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}
.service-stats-row .srs-item {
    text-align: center;
    padding: 6px 8px;
}
.service-stats-row .srs-item strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-2);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.service-stats-row .srs-item span {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}
@media (max-width: 700px) {
    .service-stats-row { grid-template-columns: 1fr; gap: 16px; }
    .service-stats-row .srs-item { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    .service-stats-row .srs-item:last-child { border-bottom: none; }
}


/* ========== Цитата врача — врезка с авторством ========== */
.doctor-quote {
    margin: 36px 0;
    padding: 28px 32px;
    background: var(--bg-cream);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    position: relative;
}
.doctor-quote::before {
    content: '"';
    position: absolute;
    top: 4px;
    left: 18px;
    font-size: 72px;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.25;
}
.doctor-quote-text {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    font-style: italic;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.doctor-quote-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-deep);
    margin-top: 8px;
}
.doctor-quote-author strong {
    color: var(--ink-2);
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
}
.doctor-quote-author span {
    color: var(--ink-soft);
    font-style: normal;
    font-size: 13px;
}
/* Компактная версия без авторства */
.doctor-quote-compact {
    padding: 22px 26px;
    margin: 22px 0;
}
.doctor-quote-compact .doctor-quote-text {
    margin-bottom: 0;
    font-size: 15px;
}

@media (max-width: 600px) {
    .doctor-quote { padding: 22px 24px; }
    .doctor-quote-text { font-size: 15px; }
}


/* ========== Контент услуги — общая типография ========== */
.service-content h2 {
    font-size: 26px;
    color: var(--ink-2);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 36px 0 14px;
    line-height: 1.25;
}
.service-content h2:first-child {
    margin-top: 0;
}
.service-content h3 {
    font-size: 19px;
    color: var(--ink-2);
    font-weight: 700;
    margin: 26px 0 10px;
}
.service-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 16px;
}
.service-content ul,
.service-content ol {
    margin: 14px 0 22px 24px;
    line-height: 1.7;
}
.service-content li {
    margin-bottom: 8px;
    color: var(--ink);
}
.service-content li strong {
    color: var(--ink-2);
}
.service-content a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.service-content a:hover {
    color: var(--ink-2);
}


/* ========== Таблица цен — премиум-вид ========== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 26px;
    font-size: 15px;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.price-table thead th {
    background: var(--ink-2);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.price-table thead th:last-child {
    text-align: right;
}
.price-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--ink);
    line-height: 1.5;
    vertical-align: top;
}
.price-table tbody td:last-child {
    text-align: right;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}
.price-table tbody tr:hover {
    background: var(--bg-milk);
}
.price-table strong {
    color: var(--ink-2);
}
@media (max-width: 600px) {
    .price-table { font-size: 14px; }
    .price-table thead th,
    .price-table tbody td { padding: 12px 14px; }
}


/* ========== Шаги визита (нумерованный список) ========== */
.visit-steps {
    list-style: none !important;
    padding: 0 !important;
    margin: 22px 0 !important;
    counter-reset: step;
}
.visit-steps li {
    position: relative;
    padding: 18px 22px 18px 64px;
    margin-bottom: 12px !important;
    background: var(--bg-milk);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    counter-increment: step;
    line-height: 1.65;
    font-size: 15px;
}
.visit-steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.visit-steps li strong {
    color: var(--ink-2);
    display: inline-block;
    margin-right: 4px;
}


/* ========== FAQ стили (если ещё нет) ========== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] {
    border-color: var(--accent);
}
.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink-2);
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}
.faq-question::after {
    content: '+';
    color: var(--accent);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-question::-webkit-details-marker { display: none; }
.faq-answer {
    padding: 0 22px 20px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 15px;
}
.faq-answer a {
    color: var(--accent-deep);
    text-decoration: underline;
}
/* =====================================================
   ЭТАП 2B · CSS ДОПОЛНЕНИЯ
   Добавить в КОНЕЦ существующего main.css
   ===================================================== */

/* ============================================================
   КОНТЕКСТНАЯ ПЛАШКА В HERO (умная посадка)
   Появляется когда пациент пришёл по специфичному запросу
   ============================================================ */
.hero-context-plaque {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-sand);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.5;
    max-width: 540px;
    animation: hcpSlideIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-context-plaque .hcp-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}
.hero-context-plaque .hcp-text {
    flex: 1;
}
@keyframes hcpSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ПОДСВЕТКА КАРТОЧКИ УСЛУГИ (умная посадка)
   ============================================================ */
.service-card-highlighted {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(184, 148, 86, 0.15), 0 12px 32px rgba(13, 43, 92, 0.10) !important;
    position: relative;
    animation: cardPulse 1.2s ease-out;
}
@keyframes cardPulse {
    0%   { box-shadow: 0 0 0 0 rgba(184, 148, 86, 0.45); }
    100% { box-shadow: 0 0 0 3px rgba(184, 148, 86, 0.15), 0 12px 32px rgba(13, 43, 92, 0.10); }
}
.service-card-intent-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(184, 148, 86, 0.35);
    white-space: nowrap;
}


/* ============================================================
   COOKIE-БАННЕР
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(13, 43, 92, 0.18);
    z-index: 9000;
    padding: 18px 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    font-size: 14px;
    line-height: 1.55;
}
.cookie-banner.cb-visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1 1 360px;
    color: var(--ink);
}
.cookie-banner-text strong {
    color: var(--ink-2);
    margin-right: 4px;
}
.cookie-banner-text a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.cb-btn {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}
.cb-btn:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}
.cb-btn-primary {
    background: var(--ink-2);
    color: white;
    border-color: var(--ink-2);
}
.cb-btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: white;
}
.cb-btn-secondary {
    background: transparent;
}

@media (max-width: 600px) {
    .cookie-banner { left: 8px; right: 8px; padding: 16px; }
    .cookie-banner-actions { width: 100%; }
    .cb-btn { flex: 1; text-align: center; }
}


/* ============================================================
   МОДАЛКА КАСТОМИЗАЦИИ COOKIES
   ============================================================ */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 43, 92, 0.6);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.cookie-modal.cm-visible {
    opacity: 1;
}
.cookie-modal-card {
    background: var(--bg-white);
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}
.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
}
.cookie-modal-close:hover {
    background: var(--bg-cream);
    color: var(--ink);
}
.cookie-modal h3 {
    font-size: 22px;
    color: var(--ink-2);
    margin: 0 0 8px;
}
.cookie-modal-lead {
    color: var(--ink-soft);
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}
.cookie-cat {
    border-top: 1px solid var(--border-soft);
    padding: 16px 0;
}
.cookie-cat:last-of-type {
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 20px;
}
.cookie-cat-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
}
.cookie-cat-row input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.cookie-cat-row strong {
    display: block;
    color: var(--ink-2);
    margin-bottom: 4px;
    font-size: 15px;
}
.cookie-cat-row p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}
.cookie-modal-actions {
    text-align: right;
}
.cookie-modal-actions .cb-btn {
    min-width: 180px;
    padding: 12px 20px;
}


/* ============================================================
   ТИПОВЫЕ СТИЛИ ЮРИДИЧЕСКИХ СТРАНИЦ
   ============================================================ */
.legal-page {
    background: var(--bg-milk);
    padding: 48px 0 64px;
    min-height: 60vh;
}
.legal-page .container {
    max-width: 820px;
}
.legal-page h1 {
    font-size: 34px;
    color: var(--ink-2);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.legal-page .legal-meta {
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.legal-page h2 {
    font-size: 22px;
    color: var(--ink-2);
    margin: 36px 0 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.legal-page h3 {
    font-size: 17px;
    color: var(--ink-2);
    margin: 24px 0 10px;
    font-weight: 700;
}
.legal-page p {
    color: var(--ink);
    line-height: 1.75;
    font-size: 15px;
    margin-bottom: 14px;
}
.legal-page ul,
.legal-page ol {
    margin: 12px 0 18px 24px;
    line-height: 1.75;
    color: var(--ink);
    font-size: 15px;
}
.legal-page li {
    margin-bottom: 6px;
}
.legal-page a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-page .legal-toc {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.legal-page .legal-toc h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-deep);
}
.legal-page .legal-toc ol {
    margin: 0 0 0 22px;
    font-size: 14px;
}
.legal-page .legal-toc a {
    color: var(--ink);
    text-decoration: none;
}
.legal-page .legal-toc a:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}
.legal-page .legal-contact-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 30px 0;
}
.legal-page .legal-contact-box strong {
    color: var(--ink-2);
}


/* ============================================================
   БЛОК «МЕДИЦИНСКИЕ ЛИЦЕНЗИИ» НА /o-vrache
   ============================================================ */
.licenses-block {
    background: var(--bg-cream);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 28px 0;
}
.licenses-block h3 {
    color: var(--ink-2);
    font-size: 17px;
    margin-bottom: 12px;
}
.licenses-block p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.licenses-block ul {
    margin: 10px 0 14px 20px;
    font-size: 14px;
    color: var(--ink);
}
.licenses-block li {
    margin-bottom: 5px;
}
.licenses-block .licenses-disclaimer {
    font-size: 12px;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-deep);
}


/* ============================================================
   ФУТЕР — РАСШИРЕННЫЙ БЛОК РЕКВИЗИТОВ
   ============================================================ */
.footer-legal-block {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(184, 148, 86, 0.12);
    font-size: 12px;
    color: rgba(217, 199, 168, 0.55);
    line-height: 1.65;
}
.footer-legal-block strong {
    color: rgba(245, 239, 230, 0.78);
    font-weight: 600;
}
.footer-legal-block a {
    color: rgba(217, 199, 168, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-legal-block a:hover {
    color: var(--accent-soft);
}
.footer-clinics-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 14px;
}
.footer-clinics-legal > div {
    padding-right: 14px;
}
@media (max-width: 600px) {
    .footer-clinics-legal { grid-template-columns: 1fr; gap: 16px; }
}
/* =====================================================
   ЭТАП 27.05.2026 · ЕДИНЫЙ ЧИСТЫЙ ПОДВАЛ
   Один уровень, симметричные колонки.
   Реквизиты — мелкой строкой внизу, без шума.
   ===================================================== */

.site-footer {
    background: var(--dark-coal);
    color: rgba(217, 199, 168, 0.7);
    padding: 56px 0 24px;
    font-size: 14px;
    position: relative;
    border-top: 1px solid rgba(184, 148, 86, 0.12);
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

/* === Главная сетка — 4 СИММЕТРИЧНЫЕ колонки === */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
    gap: 56px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(184, 148, 86, 0.10);
}

.footer-col h4 {
    color: var(--accent-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    margin: 0;
    padding: 0;
}
.footer-col > a {
    display: block;
    color: rgba(217, 199, 168, 0.72);
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.18s;
}
.footer-col > a:hover {
    color: var(--accent-soft);
}

/* === Колонка «Бренд» === */
.footer-col-about .footer-doctor {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.footer-col-about .footer-doctor strong {
    color: rgba(245, 239, 230, 0.95);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.footer-col-about .footer-doctor span {
    color: rgba(217, 199, 168, 0.58);
    font-size: 13px;
}
.footer-col-about .footer-tagline {
    color: rgba(217, 199, 168, 0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 280px;
}
.footer-col-about .footer-cta {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding: 0;
    transition: border-color 0.2s, color 0.2s;
}
.footer-col-about .footer-cta:hover {
    color: var(--accent-soft);
    border-bottom-color: var(--accent-soft);
}

/* === Колонка «Клиники» — компактные блоки === */
.footer-col-clinics .footer-clinic-mini {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.footer-col-clinics .footer-clinic-mini:last-child {
    margin-bottom: 0;
}
.footer-col-clinics .footer-clinic-mini strong {
    color: var(--accent-soft);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.footer-col-clinics .footer-clinic-mini span {
    color: rgba(217, 199, 168, 0.6);
    font-size: 13px;
    line-height: 1.45;
}
.footer-col-clinics .footer-clinic-mini a {
    color: rgba(217, 199, 168, 0.82);
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0 0;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    display: inline-block;
}
.footer-col-clinics .footer-clinic-mini a:hover {
    color: var(--accent-soft);
}

/* === Юр.ссылки внутри колонки «Информация» — мелким === */
.footer-legal-mini {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(184, 148, 86, 0.16);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-legal-mini a {
    color: rgba(217, 199, 168, 0.45) !important;
    font-size: 12px !important;
    padding: 3px 0 !important;
    text-decoration: none;
    transition: color 0.18s;
}
.footer-legal-mini a:hover {
    color: rgba(217, 199, 168, 0.75) !important;
}

/* === Нижняя строка — копирайт + БИНы в одну строку + разработчик === */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 12px;
    color: rgba(217, 199, 168, 0.42);
    padding-top: 4px;
}
.footer-copyright {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 1.6;
}
.footer-bins {
    color: rgba(217, 199, 168, 0.35);
    font-variant-numeric: tabular-nums;
}
.footer-divider {
    color: rgba(217, 199, 168, 0.22);
    padding: 0 10px;
    user-select: none;
}
.footer-credit {
    color: rgba(217, 199, 168, 0.4);
}
.footer-credit a {
    color: rgba(217, 199, 168, 0.6);
    text-decoration: none;
    border-bottom: 1px dotted rgba(217, 199, 168, 0.25);
    margin-left: 4px;
    transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover {
    color: var(--accent-soft);
    border-bottom-color: var(--accent-soft);
}

/* === Адаптив === */
@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 560px) {
    .site-footer {
        padding: 40px 0 20px;
        font-size: 13px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        font-size: 11px;
    }
    .footer-copyright {
        display: block;
    }
    .footer-divider {
        display: none;
    }
    .footer-bins {
        display: block;
        margin-top: 6px;
        font-size: 11px;
    }
}

/* === Сбрасываем старые блоки если где-то остались === */
.footer-clinics-legal,
.footer-legal-block,
.footer-fineprint,
.footer-legal-line {
    display: none !important;
}


/* ============================================================
   BADGE «ПРОВЕРЕННЫЙ ПАЦИЕНТ» в карточке отзыва
   ============================================================ */
.verified-patient-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #e8f5ec 0%, #d4ebdd 100%);
    color: #0a6f38;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(10, 111, 56, 0.15);
    vertical-align: middle;
    line-height: 1.4;
}


/* ============================================================
   ФОРМА НАПИСАНИЯ ОТЗЫВА (модалка)
   ============================================================ */

/* КРИТИЧНО: атрибут [hidden] из HTML должен реально скрывать
   элемент. Без этого правила CSS display:flex ниже перебивает
   браузерный hidden — и невидимая модалка ловит все клики на
   странице, блокируя сайт. */
.otzyv-form-wrap[hidden] {
    display: none !important;
}
/* То же самое для модалки cookie и панели ассистента */
.asst-panel[hidden] {
    display: none !important;
}

.otzyv-form-wrap {
    position: fixed;
    inset: 0;
    background: rgba(13, 43, 92, 0.55);
    z-index: 9700;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.28s;
}
.otzyv-form-wrap.is-visible {
    opacity: 1;
}
.otzyv-form-card {
    background: var(--bg-white);
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    padding: 32px 36px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    margin: 0 auto;
    transform: translateY(20px);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.otzyv-form-wrap.is-visible .otzyv-form-card {
    transform: translateY(0);
}

.otzyv-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}
.otzyv-form-head h2 {
    font-size: 24px;
    color: var(--ink-2);
    margin: 0;
    letter-spacing: -0.015em;
}
.otzyv-form-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    border-radius: 8px;
    flex-shrink: 0;
}
.otzyv-form-close:hover {
    background: var(--bg-cream);
    color: var(--ink);
}
.otzyv-form-lead {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.otzyv-form-lead strong {
    color: var(--ink-2);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) {
    .form-row-grid { grid-template-columns: 1fr; }
    .otzyv-form-card { padding: 24px 22px 28px; }
}

.req {
    color: var(--danger);
    margin-left: 2px;
}
.opt {
    color: var(--ink-soft);
    font-weight: 400;
    font-size: 12px;
}
.form-hint {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 5px;
    line-height: 1.4;
}

.rating-picker {
    display: flex;
    gap: 6px;
}
.rating-picker button {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    color: var(--border);
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1;
}
.rating-picker button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.rating-picker button.is-active {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border-color: var(--accent);
}

.publish-mode-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.publish-mode-options label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
    font-size: 14px;
}
.publish-mode-options label:hover {
    background: var(--bg-cream);
}
.publish-mode-options input[type=radio] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.otzyv-form-success {
    text-align: center;
    padding: 24px 8px 14px;
}
.otzyv-form-success .ofs-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
}
.otzyv-form-success h3 {
    color: var(--ink-2);
    font-size: 22px;
    margin-bottom: 10px;
}
.otzyv-form-success p {
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 22px;
}


/* ============================================================
   АДМИНКА МОДЕРАЦИИ
   ============================================================ */

.status-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a3548;
    flex-wrap: wrap;
}
.status-tabs a {
    padding: 12px 18px;
    color: #aab2c0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.status-tabs a:hover {
    color: white;
}
.status-tabs a.active {
    color: white;
    border-bottom-color: #c9a96e;
}
.status-tab-counter {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
}
.status-tabs a.active .status-tab-counter {
    background: #c9a96e;
    color: #0d1f3c;
}

.otzyv-mod-card {
    background: #1a2538;
    border: 1px solid #2a3548;
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 20px;
    color: #e8eaf0;
}

.otmc-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a3548;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.otmc-stars {
    font-size: 18px;
    margin-bottom: 4px;
}
.otmc-meta {
    color: #8a93a3;
    font-size: 13px;
}
.otmc-status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.otmc-status-novyy { background: #2a3548; color: #ffd966; }
.otmc-status-na_proverke { background: #2a3548; color: #74b9ff; }
.otmc-status-opublikovan { background: #1b3a2a; color: #6ee49c; }
.otmc-status-otklonen { background: #3a1b1b; color: #ff8a8a; }

.otmc-section {
    margin-bottom: 18px;
}
.otmc-section h3 {
    font-size: 13px;
    color: #c9a96e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}
.otmc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 14px;
}
.otmc-fields div {
    background: #0f1825;
    padding: 10px 14px;
    border-radius: 6px;
}
.otmc-fields b {
    color: #aab2c0;
    font-weight: 600;
    margin-right: 6px;
}

.otmc-text-box {
    background: #0f1825;
    padding: 16px 20px;
    border-radius: 8px;
    line-height: 1.65;
    border-left: 3px solid #c9a96e;
    font-size: 15px;
}

.otmc-checks .check-row {
    background: #0f1825;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
}
.otmc-checks .check-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.otmc-checks .check-row p {
    font-size: 13px;
    color: #aab2c0;
    line-height: 1.5;
    margin: 0;
}
.check-ok { border-left-color: #6ee49c !important; }
.check-warn { border-left-color: #ffd966 !important; }
.check-err { border-left-color: #ff8a8a !important; }

.patient-history-toggle {
    margin-top: 10px;
}
.patient-history-toggle summary {
    cursor: pointer;
    color: #74b9ff;
    font-size: 13px;
    padding: 6px 0;
    list-style: none;
    user-select: none;
}
.patient-history-toggle summary::-webkit-details-marker { display: none; }
.patient-history-toggle summary::before {
    content: '▶ ';
    transition: transform 0.2s;
    display: inline-block;
}
.patient-history-toggle[open] summary::before {
    transform: rotate(90deg);
}
.patient-history-table {
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    border-collapse: collapse;
}
.patient-history-table th,
.patient-history-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #2a3548;
}
.patient-history-table th {
    color: #8a93a3;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.patient-history-table a {
    color: #74b9ff;
    text-decoration: none;
}
.patient-history-table a:hover {
    text-decoration: underline;
}

.otmc-actions {
    padding-top: 16px;
    border-top: 1px solid #2a3548;
    margin-top: 6px;
}
.otmc-actions .form-label {
    color: #aab2c0;
}
.otmc-actions .form-input {
    background: #0f1825;
    border: 1px solid #2a3548;
    color: #e8eaf0;
}
.btn-approve {
    background: #137a4a !important;
    color: white !important;
    border-color: #137a4a !important;
}
.btn-approve:hover {
    background: #189458 !important;
    border-color: #189458 !important;
}
.btn-reject {
    background: transparent !important;
    color: #ff8a8a !important;
    border-color: #5a2a2a !important;
}
.btn-reject:hover {
    background: #3a1b1b !important;
    color: #ff8a8a !important;
}

.doctor-response-form textarea {
    background: #0f1825;
    border: 1px solid #2a3548;
    color: #e8eaf0;
    width: 100%;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
}
/* =====================================================
   ЭТАП 2D · АССИСТЕНТ ДОКТОРА МАРТЫНОВА
   ===================================================== */

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА
   ============================================================ */
.asst-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9500;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 20px 14px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(184, 148, 86, 0.40), 0 4px 8px rgba(13, 43, 92, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
}
.asst-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 148, 86, 0.50), 0 6px 12px rgba(13, 43, 92, 0.22);
}
.asst-fab-icon {
    font-size: 20px;
    line-height: 1;
}
.asst-fab-label {
    white-space: nowrap;
}
.asst-fab-active {
    background: var(--dark-blue);
}
.asst-fab-active .asst-fab-icon::before {
    content: '×';
}
.asst-fab-active .asst-fab-icon {
    font-size: 22px;
}

/* Сначала юзер закрывал — кнопка становится «скромной» */
.asst-fab-shy {
    opacity: 0.6;
    transform: scale(0.85);
}
.asst-fab-shy:hover {
    opacity: 1;
    transform: scale(1) translateY(-2px);
}

/* Пульсация чтобы привлечь внимание */
@keyframes asstPulse {
    0%   { box-shadow: 0 0 0 0 rgba(184, 148, 86, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(184, 148, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 148, 86, 0); }
}
.asst-fab-pulse {
    animation: asstPulse 1.5s ease-out infinite;
}

/* Скрываем подпись на тач-устройствах для компактности */
@media (max-width: 600px) {
    .asst-fab {
        bottom: 72px; /* над mobile-cta */
        right: 16px;
        padding: 12px 16px 12px 14px;
        font-size: 13px;
    }
    .asst-fab-label {
        display: none;
    }
    .asst-fab-icon {
        font-size: 22px;
    }
}


/* ============================================================
   ПАНЕЛЬ АССИСТЕНТА
   ============================================================ */
.asst-panel {
    position: fixed;
    bottom: 84px;
    right: 24px;
    z-index: 9400;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(13, 43, 92, 0.28), 0 8px 16px rgba(13, 43, 92, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.28s, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.asst-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
    .asst-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        bottom: 0;
        right: 0;
    }
}


/* ============================================================
   ШАПКА ПАНЕЛИ
   ============================================================ */
.asst-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a3a6e 100%);
    color: white;
    flex-shrink: 0;
}
.asst-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.15s;
}
.asst-back:hover {
    background: rgba(255, 255, 255, 0.18);
}
.asst-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 8px;
}
.asst-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}
.asst-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   ТЕЛО ПАНЕЛИ
   ============================================================ */
.asst-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}


/* ============================================================
   ПРИВЕТСТВИЕ
   ============================================================ */
.asst-greeting {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-soft);
}
.asst-greeting-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.asst-greeting-text {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 4px;
}
.asst-greeting-sub {
    color: var(--ink-soft);
    font-size: 12px;
    margin: 0;
    font-style: italic;
}


/* ============================================================
   СПИСОК СЦЕНАРИЕВ В ГЛАВНОМ МЕНЮ
   ============================================================ */
.asst-scenario-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    font-weight: 700;
    margin-bottom: 12px;
}
.asst-scenarios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.asst-scenario {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-milk);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.15s;
    width: 100%;
}
.asst-scenario:hover {
    background: var(--bg-cream);
    border-color: var(--accent);
    transform: translateX(2px);
}
.asst-scenario-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.asst-scenario-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.asst-scenario-text strong {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.asst-scenario-text span {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
}

.asst-footer-note {
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.asst-footer-note p {
    color: var(--ink-muted);
    font-size: 11.5px;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}


/* ============================================================
   ВНУТРЕННИЕ ЭКРАНЫ
   ============================================================ */
.asst-step-title {
    color: var(--ink-2);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.asst-step-lead {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 18px;
}


/* ============================================================
   ОПЦИИ (большие кнопки выбора)
   ============================================================ */
.asst-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.asst-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.15s;
}
.asst-option:hover {
    border-color: var(--accent);
    background: var(--bg-milk);
}
.asst-option strong {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.asst-option span {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
}
.asst-option-warn {
    border-color: rgba(212, 155, 62, 0.35);
}
.asst-option-warn:hover {
    border-color: var(--warning);
    background: rgba(212, 155, 62, 0.06);
}


/* ============================================================
   ФОРМЫ
   ============================================================ */
.asst-form-block {
    margin-bottom: 18px;
}
.asst-form-label {
    display: block;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
}
.asst-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: var(--bg-white);
    transition: border-color 0.15s;
}
.asst-input:focus {
    outline: none;
    border-color: var(--accent);
}
.asst-hint {
    display: block;
    color: var(--ink-soft);
    font-size: 11.5px;
    margin-top: 6px;
}


/* === Радио-группа === */
.asst-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.asst-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.asst-radio:has(input:checked) {
    border-color: var(--accent);
    background: var(--bg-cream);
}
.asst-radio input {
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.asst-radio span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.asst-radio strong {
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}
.asst-radio small {
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.4;
}


/* === Согласие === */
.asst-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 18px;
    cursor: pointer;
}
.asst-consent input {
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.asst-consent a {
    color: var(--accent-deep);
    text-decoration: underline;
}


/* ============================================================
   КНОПКИ
   ============================================================ */
.asst-btn-primary,
.asst-btn-secondary {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s;
    text-align: center;
}
.asst-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
}
.asst-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184, 148, 86, 0.35);
}
.asst-btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.asst-btn-secondary {
    background: var(--bg-white);
    color: var(--ink-2);
    border-color: var(--border);
    margin-top: 8px;
}
.asst-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}


/* ============================================================
   РЕЗУЛЬТАТЫ
   ============================================================ */
.asst-result-card {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.asst-result-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(184, 148, 86, 0.25);
    font-size: 13.5px;
    line-height: 1.45;
}
.asst-result-line:last-of-type {
    border-bottom: none;
}
.asst-result-line span {
    color: var(--ink);
    flex: 1;
}
.asst-result-line strong {
    color: var(--ink-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.asst-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 4px;
    margin-top: 8px;
    border-top: 2px solid var(--accent);
}
.asst-result-total span {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}
.asst-result-total strong {
    color: var(--accent-deep);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.asst-result-note {
    background: var(--bg-milk);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.asst-result-note p {
    margin: 0 0 8px;
}
.asst-result-note p:last-child {
    margin-bottom: 0;
}
.asst-result-note strong {
    color: var(--ink-2);
}
.asst-result-note ul {
    margin: 8px 0 8px 18px;
    padding: 0;
}
.asst-result-note li {
    margin-bottom: 4px;
}
.asst-result-note a {
    color: var(--accent-deep);
    text-decoration: underline;
}

.asst-result-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Тоны результата (срочно / умеренно / спокойно) === */
.asst-result-tone {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.asst-tone-urgent {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe6e6 100%);
    border-left: 4px solid var(--danger);
}
.asst-tone-urgent .asst-step-title {
    color: var(--danger);
}
.asst-tone-moderate {
    background: linear-gradient(135deg, #fff7e6 0%, #fff0d6 100%);
    border-left: 4px solid var(--warning);
}
.asst-tone-moderate .asst-step-title {
    color: #a06820;
}
.asst-tone-mild {
    background: var(--bg-cream);
    border-left: 4px solid var(--accent);
}
.asst-result-text {
    color: var(--ink);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}


/* ============================================================
   УСПЕХ
   ============================================================ */
.asst-success {
    text-align: center;
    padding: 20px 0 8px;
}
.asst-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}
.asst-success h3 {
    color: var(--ink-2);
    font-size: 18px;
    margin: 0 0 10px;
}
.asst-success p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 10px;
}
.asst-success-sub {
    color: var(--ink-muted);
    font-size: 12px;
    font-style: italic;
    margin-bottom: 18px !important;
}

.asst-booking-form {
    display: flex;
    flex-direction: column;
}
