/* =========================================================
   StomTourChina · Стоматология «Цюань Юй» — единые стили сайта
   Концепция A: «Клиническая премиум»
   ========================================================= */

:root {
    --ink: #1F1F1D;
    --muted: #625E55;
    --ivory: #FAF9F5;
    --paper: #FFFFFF;
    --sand: #F3F1EA;
    --line: #E4E1D8;
    --teal: #1F4E4E;
    --teal-deep: #153838;
    --teal-ink: #0F2A2A;
    --teal-soft: #CFE3E0;
    --teal-mid: #9BC6C0;
    --accent: #A9582B;
    --accent-dark: #8E4822;
    --accent-light: #E3A77D;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px rgba(15, 42, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 42, 42, 0.16);
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.fact-value, .step-num, .contact-phone, .modal-box a, .brand-name { font-variant-numeric: lining-nums; }
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 16px; color: #fff; }
[data-key] { white-space: pre-line; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 28px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(169, 88, 43, 0.28); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost-light { border-color: rgba(250, 249, 245, 0.45); color: var(--ivory); }
.btn-ghost-light:hover { border-color: var(--ivory); color: #fff; background: rgba(255,255,255,0.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 249, 245, 0.94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 42, 42, 0.08); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--teal); }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.header-phone strong { font-size: 17px; }
.header-phone span { font-size: 12px; color: var(--muted); font-weight: 600; }
.header-phone:hover strong { color: var(--teal); }

.icon-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--teal); cursor: pointer; text-decoration: none; }
.icon-btn .icon { width: 22px; height: 22px; }

.mobile-nav { display: none; }

@media (max-width: 1180px) {
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 14px; }
}
@media (max-width: 1080px) {
    .main-nav, .header-actions .btn, .header-phone { display: none; }
    .header-actions { margin-left: auto; gap: 10px; }
    .icon-btn { display: inline-flex; }
    .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); padding: 24px; transform: translateX(100%); transition: transform .3s; overflow-y: auto; z-index: 99; }
    .mobile-nav.is-open { transform: none; }
    .mobile-nav a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
    .mobile-nav .btn { margin-top: 24px; width: 100%; display: flex; color: #fff; border-bottom: none; font-size: 17px; }
    .mobile-nav .mobile-phone { font-size: 22px; border: none; color: var(--teal); padding-top: 24px; }
}
@media (max-width: 480px) {
    .brand-sub { display: none; }
    .brand img { width: 44px; height: 44px; }
}

/* ---------- Первый экран ---------- */
.hero { background: var(--teal); color: var(--ivory); position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(155, 198, 192, 0.18), transparent 45%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: min(calc(100vh - var(--header-h)), 820px); padding: 72px 24px 80px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.hero .eyebrow { color: var(--teal-mid); }
.hero h1 { color: var(--ivory); font-size: clamp(32px, 3.3vw, 48px); margin: 18px 0 22px; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--teal-soft); max-width: 560px; }
.hero-lead strong { color: var(--accent-light); font-weight: 700; }
.hero-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.hero-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ivory); line-height: 1.45; }
.hero-list .icon { color: var(--accent-light); width: 22px; height: 22px; margin-top: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12); }
.hero-badge {
    position: absolute; left: -28px; bottom: -28px;
    display: flex; align-items: center; gap: 14px;
    background: var(--paper); color: var(--ink);
    padding: 16px 22px 16px 16px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 330px;
}
.hero-badge img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 15px; line-height: 1.3; }
.hero-badge span { display: block; font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 48px 24px 72px; }
    .hero-list { grid-template-columns: 1fr; }
    .hero-badge { left: 16px; bottom: -24px; }
}
@media (max-width: 560px) {
    .hero-inner { padding: 36px 16px 64px; }
    .hero-lead { font-size: 17px; }
    .hero-actions .btn { width: 100%; }
}

/* ---------- Полоса фактов ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 34px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: none; }
.fact-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--teal); line-height: 1.1; }
.fact-label { margin-top: 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) {
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(2) { border-right: none; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
    .fact { padding: 24px 16px; }
    .fact-value { font-size: 24px; white-space: nowrap; }
}

/* ---------- Секции ---------- */
.section { padding: 104px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--teal); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .eyebrow { color: var(--teal-mid); }
.section-dark .section-lead { color: var(--teal-soft); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 12px; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.section-cta p { color: var(--muted); font-weight: 600; }

@media (max-width: 720px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Услуги ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-soft); }
.service-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--sand); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.service-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- Шаги ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 26px; }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { font-size: 17px; margin: 16px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; gap: 14px; }
    .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 20px; }
    .step-num { grid-row: span 2; font-size: 34px; }
    .step h3 { margin: 2px 0 6px; }
}

/* ---------- Врачи ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.doctor-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.doctor-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 22% 30%; background: var(--sand); }
.doctor-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.doctor-body h3 { font-size: 19px; }
.doctor-spec { margin-top: 6px; color: var(--muted); font-size: 15px; }
.doctor-exp { margin-top: 12px; display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal); background: var(--sand); border-radius: 999px; padding: 5px 12px; align-self: flex-start; }
.doctor-more { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 15px; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.doctor-card:hover .doctor-more { color: var(--accent); }
@media (max-width: 1080px) { .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doctors-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .doctor-body { padding: 14px; } .doctor-body h3 { font-size: 16px; } .doctor-spec { font-size: 13px; } .doctor-exp { font-size: 12px; } .doctor-more { font-size: 14px; } }

/* ---------- Проживание (тизер) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 28px 0 36px; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.check-list .icon { width: 24px; height: 24px; color: var(--accent-light); margin-top: 1px; }
.section:not(.section-dark) .check-list .icon { color: var(--accent); }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: 480px; }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-row: span 2; }
@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .mosaic { height: 380px; }
}
@media (max-width: 520px) { .mosaic { height: 300px; gap: 8px; } }

/* ---------- О клинике ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.clinic-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; text-align: center; }
.clinic-card img { width: 180px; height: 120px; object-fit: contain; margin: 0 auto 18px; }
.clinic-card strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.clinic-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.director { display: flex; align-items: center; gap: 18px; margin-top: 20px; background: var(--teal); color: var(--ivory); border-radius: var(--radius); padding: 18px 22px 18px 18px; text-align: left; }
.director img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 22% 18%; border: 3px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.director strong { color: var(--ivory); font-family: var(--font-body); font-size: 16px; }
.director p { font-size: 14px; color: var(--teal-soft); margin-top: 4px; line-height: 1.5; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.reason { display: flex; gap: 16px; }
.reason-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reason-icon .icon { width: 24px; height: 24px; }
.reason h3 { font-size: 17px; margin-bottom: 6px; }
.reason p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .reasons { grid-template-columns: 1fr; } .clinic-card { padding: 24px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--teal-soft); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--teal); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }
@media (max-width: 520px) { .faq summary { padding: 18px 18px; font-size: 16px; } .faq .faq-answer { padding: 0 18px 20px; } }

/* ---------- SEO-текст ---------- */
.seo-text { max-width: 880px; margin: 0 auto; }
.seo-text h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 24px; }
.seo-text p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }

/* ---------- Контакты и форма ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list a, .contact-list button { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; font-size: 17px; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.contact-list a:hover, .contact-list button:hover { color: var(--accent-light); }
.contact-list .icon { width: 24px; height: 24px; color: var(--teal-mid); }
.contact-phone { font-family: var(--font-display); font-size: 30px !important; font-weight: 700 !important; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form-card h3, .section-dark .form-card h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 8px; color: var(--ink); }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 17px; background: var(--ivory); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus { outline: none; border-color: var(--teal); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 24px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); flex-shrink: 0; }
.form-card .btn { width: 100%; }
.form-status { margin-top: 16px; font-weight: 700; font-size: 15px; }
.form-status.is-success { color: #2E7D32; }
.form-status.is-error { color: #B3261E; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .form-card { padding: 26px 20px; } .contact-phone { font-size: 26px !important; } }

/* ---------- Соцсети ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; text-decoration: none; border: none; cursor: pointer; overflow: hidden; font-family: var(--font-body); transition: transform .2s; }
.social:hover { transform: translateY(-2px); color: #fff; }
.social img { width: 100%; height: 100%; object-fit: contain; }
.social-ok { background: #EE8208; }
.social-vk { background: #2787F5; }
.social-max { background: #1F1F1D; width: auto; padding: 0 16px; border-radius: 999px; }
.social-tg { background: #229ED9; }
.social-yt { background: #E62117; }
.social.has-icon { background: transparent; padding: 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--teal-ink); color: var(--teal-soft); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand-name { color: var(--ivory); }
.footer-brand .brand-sub { color: var(--teal-mid); }
.footer-brand p { margin-top: 18px; font-size: 15px; color: var(--teal-mid); max-width: 320px; }
.footer-col h3 { color: var(--ivory); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--teal-soft); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-phone { font-size: 20px !important; font-weight: 700; color: var(--ivory) !important; }
.disclaimer { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(207, 227, 224, 0.15); text-align: center; font-family: var(--font-display); font-size: clamp(16px, 2vw, 22px); font-weight: 700; color: var(--ivory); letter-spacing: 0.02em; text-transform: uppercase; }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid rgba(207, 227, 224, 0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--teal-mid); }
.footer-bottom a { color: var(--teal-mid); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .site-footer { padding-top: 56px; padding-bottom: 72px; } }

/* ---------- Плавающие кнопки мессенджеров ---------- */
.float-contacts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.2); text-decoration: none; transition: transform .2s; }
.float-btn:hover { transform: scale(1.06); color: #fff; }
.float-btn .icon { width: 26px; height: 26px; }
.float-tg { background: #229ED9; }
.float-wa { background: #25A244; }
@media (max-width: 720px) { .float-contacts { right: 12px; bottom: 12px; gap: 8px; } .float-btn { width: 48px; height: 48px; } .float-btn .icon { width: 22px; height: 22px; } }

/* ---------- Модальное окно MAX ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 42, 42, 0.6); }
.modal.is-open { display: flex; }
.modal-box { position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: 40px 32px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.modal-box h2 { font-size: 26px; margin-bottom: 12px; }
.modal-box a { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-decoration: none; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.modal-close:hover { background: var(--sand); }

/* ---------- Внутренние страницы ---------- */
.page-hero { background: var(--teal); color: var(--ivory); padding: 64px 0 56px; }
.page-hero h1 { color: var(--ivory); font-size: clamp(30px, 3.8vw, 48px); margin-top: 14px; max-width: 860px; }
.page-hero .eyebrow { color: var(--teal-mid); }
.page-hero p { margin-top: 18px; color: var(--teal-soft); font-size: 18px; max-width: 720px; }
.breadcrumbs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--teal-mid); }
.breadcrumbs a { color: var(--teal-soft); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; }
.info-card h2 { font-size: 26px; margin-bottom: 20px; }
.info-card p { color: var(--muted); margin-bottom: 14px; }
.info-card p strong { color: var(--ink); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }

.steps-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps-table th { background: var(--sand); text-align: left; padding: 14px 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.steps-table td { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.steps-table td:first-child { font-weight: 700; white-space: nowrap; color: var(--teal); }
@media (max-width: 560px) {
    .steps-table, .steps-table tbody, .steps-table tr, .steps-table td { display: block; }
    .steps-table thead { display: none; }
    .steps-table td { border-top: none; padding: 4px 18px; }
    .steps-table tr { border-top: 1px solid var(--line); padding: 12px 0; }
}
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.doctor-profile { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.doctor-profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 22% 25%; border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.doctor-profile h2 { font-size: 28px; margin-bottom: 18px; }
.doctor-bio { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; font-size: 16.5px; line-height: 1.75; white-space: pre-line; }
.doctor-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.doctor-meta span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: var(--ivory); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
@media (max-width: 860px) {
    .doctor-profile { grid-template-columns: 1fr; gap: 32px; }
    .doctor-profile-photo { position: static; max-width: 420px; }
    .doctor-bio { padding: 24px 20px; }
}

.legal { max-width: 860px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; white-space: pre-line; font-size: 16px; line-height: 1.75; }
@media (max-width: 560px) { .legal { padding: 24px 18px; } }

/* ---------- Общие дополнения ---------- */
[hidden] { display: none !important; }
.section-title { font-size: clamp(28px, 3.2vw, 42px); margin-top: 12px; }
.optional { font-weight: 500; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }

/* Ссылки на страницы услуг на главной */
.service-card { display: flex; flex-direction: column; }
.service-more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.service-more:hover { color: var(--accent); }
.service-links { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.service-links span { font-weight: 700; color: var(--muted); margin-right: 4px; }
.service-links a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.service-links a:hover { border-color: var(--teal); }

/* ---------- Поля форм ---------- */
.field textarea { width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 16px; line-height: 1.5; background: var(--ivory); color: var(--ink); resize: vertical; transition: border-color .2s, background .2s; }
.field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field .file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; }
.field .file-drop { margin: 0; font-weight: 500; }
.file-drop { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border: 1.5px dashed var(--teal-mid); border-radius: 12px; background: var(--ivory); cursor: pointer; font-size: 15px; color: var(--muted); transition: border-color .2s, background .2s; }
.file-drop .icon { width: 26px; height: 26px; color: var(--teal); }
.file-drop:hover, .file-input:focus-visible + .file-drop, .file-drop.is-drag { border-color: var(--teal); background: #fff; }
.file-input:focus-visible ~ .file-drop { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.field .file-drop { display: flex; }
.file-drop.has-file { border-style: solid; border-color: var(--teal); color: var(--ink); font-weight: 600; }
.consent-tight { margin-top: -10px; }
.snapshot-grid { align-items: start; }
.snapshot-grid .form-card { border: 1px solid var(--line); }

/* ---------- Цены и калькулятор ---------- */
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.price-group + .price-group { margin-top: 48px; }
.price-list-title { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 24px; }
.price-group h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 14px; }
.price-main { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.price-free { color: #2E7D32; }
.qty-cell { min-width: 120px; display: flex; justify-content: flex-end; }
.price-table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); transition: background .2s; }
.price-row:first-child { border-top: none; }
.price-row.is-selected { background: #F1F7F6; }
.price-name strong { display: block; font-weight: 600; }
.price-name span { display: block; font-size: 14px; color: var(--muted); }
.price-value { font-weight: 800; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--ivory); }
.qty-btn { width: 40px; height: 40px; border: none; background: none; font-size: 20px; font-weight: 700; color: var(--teal); cursor: pointer; }
.qty-btn:hover { background: var(--sand); }
.qty input { width: 36px; height: 40px; border: none; background: none; text-align: center; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.calc-card h2 { font-size: 24px; margin-bottom: 14px; }
.calc-empty, .calc-hint { color: var(--muted); font-size: 15px; }
.calc-hint { margin-top: 14px; }
.calc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.calc-list li { display: flex; justify-content: space-between; gap: 12px; }
.calc-list li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-total strong { font-family: var(--font-display); font-size: 26px; color: var(--teal); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.calc-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-form .btn { width: 100%; }
.calc-form .consent { margin: 12px 0 18px; }
@media (max-width: 1000px) {
    .price-layout { grid-template-columns: 1fr; }
    .calc-card { position: static; }
    /* На телефоне итог идёт сразу после схемы зубов, прайс — ниже */
    .price-main { display: contents; }
    .jaw-card { order: 1; }
    .calc-card { order: 2; }
    .price-groups { order: 3; }
}
@media (max-width: 560px) {
    .price-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; gap: 10px 14px; }
    .price-value { grid-column: 1; grid-row: 2; }
    .qty { grid-column: 2; grid-row: 1 / span 2; }
    .calc-card { padding: 22px 18px; }
}

/* ---------- Страницы услуг и статьи ---------- */
.page-hero-actions { margin-top: 28px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose .callout { background: var(--sand); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; font-weight: 600; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 22px; }
.side-card p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.side-card .btn { width: 100%; }
.side-link { font-weight: 700; font-size: 15px; text-decoration: none; }
.side-phone { margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; text-decoration: none; color: var(--ink); font-variant-numeric: lining-nums; }
.preview-bar { background: #FFF4D6; color: #6B4E00; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.preview-bar a { margin-left: 12px; color: inherit; }
@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; gap: 40px; }
    .side-card { position: static; }
}

.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.article-card h3 { font-family: var(--font-display); font-size: 21px; }
.article-card p { color: var(--muted); font-size: 15px; }
.article-date { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 960px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .articles-grid { grid-template-columns: 1fr; } }

/* ---------- Отзывы и работы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.review-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.review-card p { font-size: 16px; line-height: 1.7; white-space: pre-line; }
.review-card footer { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.review-card footer strong { color: var(--ink); font-size: 15px; }
.review-source { font-size: 13px; }
.review-form-wrap { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.reviews-grid:empty + .review-form-wrap, .review-form-wrap:first-child { margin-top: 0; }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: 1fr 1fr; } .review-form-wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.case-photos div { position: relative; }
.case-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-photos span { position: absolute; left: 10px; top: 10px; background: rgba(15, 42, 42, 0.75); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.case-card figcaption { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.case-card figcaption span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- Калькулятор по схеме зубов ---------- */
.jaw-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.jaw-head { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 8px; }
.jaw-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.jaw-head p { color: var(--muted); margin-top: 6px; max-width: 520px; }
.jaw-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--ivory); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip-muted { color: var(--muted); }
.jaw-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jaw-chart { width: 100%; max-width: 640px; margin: 0 auto; }
.jaw-chart { position: relative; }
.jaw-svg { width: 100%; height: auto; display: block; user-select: none; -webkit-tap-highlight-color: transparent; }
.jaw-svg .tooth { cursor: pointer; outline: none; }
.jaw-svg .tooth-hit { fill: transparent; }
.jaw-svg .tooth-shape { fill: #fff; stroke: #C9C4B8; stroke-width: 1.6; transition: fill .15s, stroke .15s; }
.jaw-svg .tooth:hover .tooth-shape { stroke: var(--teal); fill: #F4FAF9; }
.jaw-svg .tooth.has .tooth-shape { fill: var(--teal-soft); stroke: var(--teal); }
.jaw-svg .tooth.sel .tooth-shape { fill: #FBE6D6; stroke: var(--accent); stroke-width: 2.6; }
.jaw-svg .tooth:focus-visible .tooth-shape { stroke: var(--accent); stroke-width: 3; }
.jaw-svg .tooth-num { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.jaw-svg .tooth.sel .tooth-num, .jaw-svg .tooth.has .tooth-num { fill: var(--ink); }
.jaw-svg .tooth-dot { fill: var(--teal); pointer-events: none; }
.jaw-svg .jaw-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; fill: var(--muted); text-anchor: middle; text-transform: uppercase; }
.jaw-svg .jaw-side { font-family: var(--font-body); font-size: 12px; fill: #A39E93; text-anchor: middle; }
.jaw-legend { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.jaw-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid; }
.lg-sel { background: #FBE6D6; border-color: var(--accent); }
.lg-has { background: var(--teal-soft); border-color: var(--teal); }
.jaw-panel { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.jaw-empty { color: var(--muted); font-size: 15px; }
.jaw-title { font-family: var(--font-display); font-size: 21px; }
.jaw-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.jaw-services { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 18px; align-items: start; }
.jaw-cat { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.jaw-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.jaw-opt + .jaw-opt { margin-top: 6px; }
.jaw-opt:hover { border-color: var(--teal-mid); }
.jaw-opt.is-on { border-color: var(--teal); background: #F1F7F6; }
.jaw-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.jaw-opt strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.jaw-opt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.jaw-opt .jaw-price { font-weight: 800; color: var(--teal); white-space: nowrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.jaw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jaw-actions .btn { min-height: 42px; padding: 9px 18px; font-size: 14px; }
@media (max-width: 560px) {
    .jaw-card { padding: 20px 14px; border-radius: var(--radius); }
    .jaw-panel { padding: 16px 14px; }
    .jaw-svg .tooth-num { font-size: 18px; }
    .jaw-svg .jaw-label { font-size: 16px; }
    .jaw-svg .jaw-side { display: none; }
    .jaw-tools .chip { padding: 7px 12px; font-size: 13px; }
    .qty-cell { min-width: 0; }
}

/* ---------- Клиника изнутри ---------- */
.clinic-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.clinic-gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.clinic-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.clinic-gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(250, 249, 245, 0.92); color: var(--ink); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 760px) {
    .clinic-gallery { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .clinic-gallery figure { scroll-snap-align: start; }
}

/* ---------- Гарантии ---------- */
.guarantee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.guarantee-grid .check-list { margin: 24px 0 20px; }
.warranty-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.warranty-card img { width: 100%; border-radius: var(--radius-sm); }
.warranty-card figcaption { margin-top: 16px; }
.warranty-card figcaption strong { display: block; font-size: 15px; margin-bottom: 10px; }
.card-legend { margin: 0; padding-left: 26px; columns: 2; column-gap: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.card-legend li::marker { font-weight: 800; color: var(--ink); }
@media (max-width: 960px) { .guarantee-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 460px) { .card-legend { columns: 1; } .warranty-card { padding: 14px; } }

/* ---------- Досуг ---------- */
.leisure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.leisure-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.leisure-card .icon { width: 34px; height: 34px; color: var(--accent); stroke-width: 1.5; }
.leisure-card h3 { font-size: 18px; margin: 14px 0 6px; }
.leisure-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .leisure-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .leisure-grid { grid-template-columns: 1fr; } }

/* ---------- Документы ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s; }
.doc-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.doc-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius-sm); background: var(--sand); }
.doc-pdf { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); background: var(--sand); font-weight: 800; font-size: 28px; color: var(--accent); }
.doc-title { font-weight: 700; font-size: 15px; }
@media (max-width: 960px) { .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.doctor-sub { margin-top: 36px; }

/* ---------- Режим редактирования текстов (только админ) ---------- */
.is-editable { outline: 2px dashed rgba(169, 88, 43, 0.55); outline-offset: 3px; border-radius: 4px; cursor: text; }
.is-editable:focus { outline: 2px solid var(--accent); background: rgba(227, 167, 125, 0.12); }
.is-editable.is-changed { outline-color: #2E7D32; }
.edit-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: var(--teal-ink); color: var(--ivory); padding: 12px 14px 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); }
.edit-bar button, .edit-bar a { border: none; border-radius: 999px; padding: 10px 18px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.edit-bar .save { background: #2E7D32; color: #fff; }
.edit-bar .edit-page { background: transparent; color: var(--teal-soft); padding: 8px 12px; }
.edit-bar .edit-page.is-current { background: rgba(255,255,255,0.14); color: #fff; }
.edit-bar .reset { background: transparent; color: var(--teal-soft); border: 1px solid rgba(255,255,255,0.25); }
.edit-bar .back { background: transparent; color: var(--teal-soft); }

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

/* Сводка калькулятора: номера зубов под названием услуги */
.calc-list li { align-items: flex-start; }
.calc-list li small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ---------- Видео отеля ---------- */
.video-card { margin: 0; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--teal-ink); box-shadow: var(--shadow-lg); }
.video-card figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.section-dark .video-card figcaption { color: var(--teal-soft); }
.video-card-wide { max-width: 960px; margin: 0 auto 32px; }
.stay-media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stay-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stay-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
