/* ============================================================
   DentX · Сайт клиники для пациентов (basdent.kz-стиль)
   ============================================================ */
:root {
  --blue: #1B4F8A; --blue-d: #143A66; --mint: #2ECC9A; --mint-d: #25b085;
  --ink: #1a1a1a; --muted: #6b7a8d; --bg: #fff; --gray: #f6f8fa; --border: #e6ebf1;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 6px 22px rgba(27,79,138,0.08); --shadow-lg: 0 18px 46px rgba(27,79,138,0.16);
  --fh: 'Montserrat', system-ui, sans-serif; --fb: 'Inter', system-ui, sans-serif; --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Страховка от горизонтального скролла на телефоне: html обрезает overflow по X
   (не ломает sticky-шапку), body — clip (не создаёт лишний скролл-контейнер). */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--fb); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.15; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; } img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[data-lucide] { width: 20px; height: 20px; }
.tooth-ic { width: 26px; height: 26px; fill: currentColor; }
.text-muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 600px; margin: 12px auto 0; }
.section .section-title + .section-sub { margin-bottom: 8px; }
.section [data-reveal].cards-3, .section [data-reveal].promos, .section [data-reveal].about, .section [data-reveal].calc, .section .booking-card { margin-top: 44px; }

/* ── Кнопки ── */
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-family: var(--fh); font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all .3s ease; white-space: nowrap; }
.cbtn i { width: 18px; height: 18px; }
.cbtn-mint { background: var(--mint); color: #06402b; box-shadow: 0 8px 18px rgba(46,204,154,0.32); }
.cbtn-mint:hover { background: var(--mint-d); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(46,204,154,0.42); }
.cbtn-ghost-blue { background: #fff; color: var(--blue); border-color: var(--border); }
.cbtn-ghost-blue:hover { border-color: var(--blue); transform: translateY(-3px); }
.cbtn-wa { background: #25d366; color: #fff; }
.cbtn-wa:hover { background: #1db954; transform: translateY(-3px); }
.cbtn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.cbtn-block { width: 100%; }
.cbtn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Шапка ── */
.cnav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.cnav.scrolled { box-shadow: 0 6px 20px rgba(27,79,138,0.1); }
.cnav-inner { display: flex; align-items: center; gap: 18px; height: 74px; }
.clogo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fh); font-weight: 800; font-size: 24px; color: var(--blue); }
.clogo .tooth-ic { color: var(--blue); } .clogo b { color: var(--mint); }
.cnav-links { display: flex; gap: 28px; margin-left: 16px; }
.cnav-links a { font-weight: 500; color: var(--muted); transition: color .3s; }
.cnav-links a:hover { color: var(--blue); }
.cnav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: none; background: #fff; padding: 8px 13px; font-family: var(--fh); font-weight: 700; font-size: 12px; color: var(--muted); cursor: pointer; transition: all .2s; }
.lang-switch button.active { background: var(--blue); color: #fff; }
.cnav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink); }
.cnav-phone i { width: 16px; height: 16px; color: var(--mint-d); }
.cnav-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }

/* ── HERO ── */
.chero { background: linear-gradient(180deg, #eef5fc 0%, #fff 100%); padding: 60px 0 70px; overflow: hidden; }
.chero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.chero-badge { display: inline-block; background: #eafaf4; color: var(--mint-d); font-family: var(--fh); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.chero-text h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; color: var(--ink); }
.chero-text > p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 18px 0 28px; }
.chero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.chero-badges { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.chero-badges span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; }
.chero-badges i { width: 20px; height: 20px; color: var(--mint-d); }
.chero-media { position: relative; display: flex; justify-content: center; }
.chero-photo { width: min(380px, 90%); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, var(--blue), var(--blue-d)); padding: 14px; box-shadow: var(--shadow-lg); }
.chero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chero-rating { position: absolute; bottom: 24px; left: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chero-rating i { width: 28px; height: 28px; color: #f1c40f; fill: #f1c40f; }
.chero-rating b { font-family: var(--fh); font-size: 22px; display: block; }
.chero-rating span { font-size: 12px; color: var(--muted); }

/* ── Сетки ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Доверие ── */
.trust-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: all .3s ease; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--mint); }
.tc-ic { width: 56px; height: 56px; border-radius: 14px; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.tc-ic i { width: 28px; height: 28px; }
.trust-card h3 { font-size: 19px; margin-bottom: 8px; } .trust-card p { color: var(--muted); }

/* ── Акции ── */
.promos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.promo-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.promo-card:hover .promo-img img { transform: scale(1.06); }
.promo-badge { position: absolute; top: 12px; left: 12px; background: var(--mint); color: #06402b; font-family: var(--fh); font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 10px; }
.promo-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.promo-body h3 { font-size: 18px; }
.promo-price { display: flex; align-items: baseline; gap: 10px; }
.promo-price b { font-family: var(--fh); font-weight: 800; font-size: 22px; color: var(--blue); }
.promo-price s { color: var(--muted); font-size: 14px; }
.promo-body .cbtn { margin-top: auto; }
.promo-all { background: linear-gradient(160deg, #eaf3fb, #fff); justify-content: center; align-items: flex-start; }
.promo-all .promo-body { align-items: flex-start; }
.promo-all i { width: 40px; height: 40px; color: var(--mint-d); }

/* ── Бесплатный осмотр ── */
.checkup { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 40px; }
.checkup-badge { display: inline-block; background: var(--mint); color: #06402b; font-family: var(--fh); font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.checkup-text h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 18px; }
.checkup-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.checkup-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checkup-list i { width: 20px; height: 20px; color: var(--mint-d); }
.checkup-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.checkup-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Услуги ── */
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .s-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-card .s-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; z-index: 1; }
.service-card:hover .s-img img { transform: scale(1.06); }
/* Заглушка под фото: видна, если фото не загрузилось (img удаляется по onerror) или его нет */
.s-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 0 14px; background: linear-gradient(135deg, var(--blue), var(--mint)); color: #fff; }
.s-fallback svg { width: 60px; height: 60px; fill: #fff; }
.s-fallback span { font-family: var(--fh); font-weight: 700; font-size: 14px; line-height: 1.25; }
.service-card .s-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 18px; } .service-card p { color: var(--muted); font-size: 14px; flex: 1; }
.service-card .s-price { font-family: var(--fh); font-weight: 800; font-size: 20px; color: var(--blue); }
.service-card .cbtn { margin-top: 6px; }

/* ── О клинике ── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.astat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.astat b { font-family: var(--fh); font-weight: 900; font-size: 40px; color: var(--blue); display: block; line-height: 1; }
.astat span { color: var(--muted); font-size: 14px; margin-top: 8px; display: block; }

/* ── Врачи ── */
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; transition: all .3s ease; }
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doc-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #eaf3fb; }
.doc-card h3 { font-size: 18px; } .doc-card .spec { color: var(--blue); font-weight: 600; font-size: 14px; text-transform: capitalize; margin-top: 4px; }
.doc-card .exp { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ── Форма записи ── */
.booking-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 760px; margin: 44px auto 0; }
.booking-head { background: linear-gradient(160deg, var(--blue), var(--blue-d)); color: #fff; padding: 28px 32px; }
.booking-head h2 { font-size: 24px; margin-bottom: 20px; }
.steps { display: flex; gap: 8px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); }
.step b { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-family: var(--fh); transition: all .25s; }
.step.active { color: #fff; } .step.active b { background: var(--mint); color: #06402b; }
.step.done b { background: rgba(46,204,154,0.4); color: #fff; }
.wizard-body { padding: 28px 32px; min-height: 220px; }
.wiz-panel { display: none; } .wiz-panel.active { display: block; animation: fadeUp .3s ease; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.filter { border: 1px solid var(--border); background: #fff; color: var(--muted); font-family: var(--fh); font-weight: 600; font-size: 13px; padding: 0 16px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filter.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick-doctor { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 44px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; transition: all .2s; text-align: left; }
.pick-doctor:hover { border-color: var(--blue); } .pick-doctor.selected { border-color: var(--blue); background: #eaf3fb; }
.pick-doctor img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.pick-doctor .avatar { width: 46px; height: 46px; border-radius: 50%; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; }
.pick-doctor b { display: block; font-family: var(--fh); font-size: 14px; } .pick-doctor span { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.picker-list { display: flex; flex-direction: column; gap: 10px; }
.pick-service { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; min-height: 44px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; transition: all .2s; }
.pick-service:hover { border-color: var(--blue); } .pick-service.selected { border-color: var(--blue); background: #eaf3fb; }
.pick-service .s-name { font-family: var(--fh); font-weight: 600; font-size: 14px; } .pick-service .s-meta { font-size: 12px; color: var(--muted); }
.pick-service .s-price { font-family: var(--fh); font-weight: 800; color: var(--blue); white-space: nowrap; }
.field { margin-bottom: 16px; } .field label { display: block; font-family: var(--fh); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; font-family: var(--fb); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,138,0.12); }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px; }
.slot { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: 0 8px; min-height: 44px; font-family: var(--fh); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.slot:hover { border-color: var(--blue); color: var(--blue); } .slot.selected { background: var(--blue); color: #fff; border-color: var(--blue); }
.slots-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
.summary { background: #eaf3fb; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.summary .row { display: flex; gap: 8px; font-size: 14px; margin-bottom: 6px; } .summary .row:last-child { margin-bottom: 0; }
.summary .row b { font-family: var(--fh); }
.wizard-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 32px; border-top: 1px solid var(--border); }
.wiz-success { text-align: center; padding: 16px 0; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); color: #fff; display: flex; align-items: center; justify-content: center; }
.success-icon i { width: 34px; height: 34px; } .wiz-success h3 { font-size: 24px; margin-bottom: 8px; } .wiz-success p { color: var(--muted); margin-bottom: 20px; }

/* Шаг 2 — список услуг со скроллом внутри блока (кнопки Назад/Далее всегда видны) */
/* padding по краям — чтобы карточки и их тени/рамки не обрезались скроллом и не липли к краям */
.wiz-panel[data-panel="2"] .picker-list { max-height: min(46vh, 360px); overflow-y: auto; gap: 12px; padding: 6px 10px 6px 6px; }
.wiz-panel[data-panel="2"] .picker-list::-webkit-scrollbar { width: 6px; }
.wiz-panel[data-panel="2"] .picker-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

/* Шаг 3 — лента дней (горизонтальная) */
.wiz-sublabel { display: block; font-family: var(--fh); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.date-strip::-webkit-scrollbar { height: 6px; } .date-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.day-card { flex: 0 0 auto; width: 60px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1.5px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; transition: all .2s; scroll-snap-align: start; }
.day-card:hover { border-color: var(--blue); }
.day-card.selected { border-color: var(--blue); background: linear-gradient(160deg, var(--blue), var(--blue-d)); color: #fff; box-shadow: var(--shadow); }
.day-card .day-wd { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.day-card .day-num { font-family: var(--fh); font-weight: 800; font-size: 22px; line-height: 1; }
.day-card .day-mo { font-size: 11px; color: var(--muted); }
.day-card.today .day-wd { color: var(--mint-d); font-weight: 700; }
.day-card.selected .day-wd, .day-card.selected .day-mo { color: rgba(255,255,255,0.85); }

/* Финальный экран — кнопки добавления в календарь */
.cal-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cal-hint { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.cbtn-cal { width: 100%; justify-content: center; }

/* ── Калькулятор ── */
.calc { max-width: 560px; margin: 44px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 34px; }
.calc-row { margin-bottom: 22px; } .calc-row label { display: block; font-family: var(--fh); font-weight: 600; font-size: 14px; margin-bottom: 10px; } .calc-row label b { color: var(--blue); }
.calc select { width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; font-family: var(--fb); font-size: 16px; cursor: pointer; }
.calc input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: #e6ebf1; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(46,204,154,0.5); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; cursor: pointer; }
.calc-ticks { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.calc-result { text-align: center; background: #eafaf4; border: 1px solid #c3f0e0; border-radius: 14px; padding: 22px; }
.calc-eq { color: var(--muted); font-size: 22px; } .calc-result b { font-family: var(--fh); font-weight: 900; font-size: clamp(28px, 5vw, 40px); color: var(--blue); transition: transform .25s; display: inline-block; }
.calc-result b.pulse { transform: scale(1.12); } .calc-per { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── Отзывы ── */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all .3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-stars { color: #f1c40f; display: flex; gap: 3px; margin-bottom: 12px; } .review-stars i { width: 18px; height: 18px; fill: #f1c40f; }
.review-card p { color: var(--ink); font-size: 15px; margin-bottom: 16px; }
.review-meta { display: flex; align-items: center; gap: 12px; }
.review-av { width: 44px; height: 44px; border-radius: 50%; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-weight: 700; }
.review-meta b { font-size: 14px; } .review-meta span { font-size: 12px; color: var(--muted); display: block; }

/* ── Контакты ── */
.branch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all .3s; }
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.branch-card h3 { font-size: 18px; margin-bottom: 12px; }
.branch-card .row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.branch-card .row i { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contacts-cta { text-align: center; margin-top: 36px; }

/* ── Обратный звонок («Перезвоните мне») ── */
/* Карточка в стиле .calc/.checkup: тот же фон, рамка, скругление и тень, что у остальных карточек. */
.callback { max-width: 620px; margin: 44px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 40px; }
.callback-head { text-align: center; margin-bottom: 26px; }
.cb-ic { width: 56px; height: 56px; border-radius: 16px; background: #eaf3fb; color: var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.cb-ic i { width: 28px; height: 28px; }
.callback-head h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.callback-head p { color: var(--muted); font-size: 16px; max-width: 440px; margin: 0 auto; }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* подсветка незаполненного поля при попытке отправки (та же логика, что у focus, но красным) */
.callback .field input.invalid { border-color: #e05656; box-shadow: 0 0 0 3px rgba(224,86,86,0.12); }
.cb-msg { margin-top: 14px; text-align: center; font-family: var(--fh); font-weight: 600; font-size: 15px; color: var(--mint-d); }
.cb-msg.err { color: #e05656; }

/* ── Футер ── */
.cfooter { background: #0d1b2a; color: rgba(255,255,255,0.7); padding: 52px 0 0; }
.cfooter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.cfooter .clogo { color: #fff; } .cfooter .clogo .tooth-ic, .cfooter .clogo b { color: var(--mint); }
.cfooter-brand p { margin-top: 10px; font-size: 14px; max-width: 260px; }
.cfooter-col h4 { font-family: var(--fh); color: #fff; font-size: 15px; margin-bottom: 14px; }
.cfooter-col a, .cfooter-col span { display: block; padding: 5px 0; font-size: 14px; }
.cfooter-col a:hover { color: var(--mint); }
.cfooter-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.5); transition: transform .3s; }
.wa-float:hover { transform: scale(1.1); } .wa-float i { width: 28px; height: 28px; }

/* ── Анимации ── */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].vis { opacity: 1; transform: none; }
[data-reveal].reveal-right { transform: translateX(50px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.cards-3.vis > *, .promos.vis > * { animation: fadeUp .5s ease backwards; }
.cards-3.vis > *:nth-child(2), .promos.vis > *:nth-child(2) { animation-delay: .08s; }
.cards-3.vis > *:nth-child(3), .promos.vis > *:nth-child(3) { animation-delay: .16s; }
.cards-3.vis > *:nth-child(4), .promos.vis > *:nth-child(4) { animation-delay: .24s; }
.cards-3.vis > *:nth-child(5) { animation-delay: .32s; } .cards-3.vis > *:nth-child(6) { animation-delay: .4s; }
.cards-3.vis > *:nth-child(7) { animation-delay: .48s; } .cards-3.vis > *:nth-child(8) { animation-delay: .56s; } .cards-3.vis > *:nth-child(9) { animation-delay: .64s; }
:focus-visible { outline: 3px solid rgba(46,204,154,0.6); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } [data-reveal] { opacity: 1; transform: none; } }

/* ── Адаптив ── */
@media (max-width: 980px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .cfooter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .cnav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s; }
  .cnav-links.open { transform: none; opacity: 1; pointer-events: auto; } .cnav-links a { padding: 14px 24px; }
  .cnav-phone { display: none; } .cnav-burger { display: inline-flex; width: 44px; height: 44px; }
  /* Кнопка «Записаться» в шапке вылезала за экран рядом с языком и бургером —
     на телефоне прячем её (запись доступна с hero, карточек услуг и плавающей кнопки WA). */
  .cnav-right .cbtn-mint { display: none; }
  /* Жёстко ужимаем шапку: логотип + переключатель языка + бургер должны влезать
     в экран без горизонтальной прокрутки даже на узких телефонах (320px).
     Считаем по минимуму: ~89(лого) + ~144(язык+бургер) + 24(поля) ≈ 257px < 320px. */
  .cnav-inner { gap: 8px; padding-left: 12px; padding-right: 12px; height: 64px; overflow-x: clip; }
  .clogo { font-size: 19px; gap: 7px; flex-shrink: 1; min-width: 0; white-space: nowrap; }
  .clogo .tooth-ic { width: 22px; height: 22px; }
  .cnav-right { gap: 8px; flex-shrink: 0; }
  .lang-switch button { padding: 6px 9px; }
  .chero-grid, .about, .checkup { grid-template-columns: 1fr; }
  .chero-cta { flex-direction: column; } .chero-cta .cbtn { width: 100%; }
  .chero-media { order: -1; } .chero-rating { left: 50%; transform: translateX(-90px); }
  .cards-3, .about-stats { grid-template-columns: 1fr; }
  /* Блоки, которые наполняются данными асинхронно (услуги/врачи/отзывы/филиалы),
     на телефоне показываем ГАРАНТИРОВАННО, без зависимости от JS и анимации появления:
     именно из-за неё под заголовком «Наши услуги» было пусто. Десктоп не затронут
     (правило только в мобильном медиа-запросе). */
  #servicesGrid, #doctorsGrid, #reviewsGrid, #branchList { opacity: 1 !important; transform: none !important; }
  .cards-3 > *, .promos > * { animation: none !important; opacity: 1 !important; }
  /* акции — горизонтальный scroll-snap */
  .promos { grid-template-columns: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .promo-card { flex: 0 0 78%; scroll-snap-align: start; }
  .doctors.cards-3, .reviews.cards-3, .branches.cards-3 { grid-template-columns: 1fr; }
  .picker-grid { grid-template-columns: 1fr; }
  /* фильтры услуг — одна горизонтальная лента вместо переноса (экономит высоту) */
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filter { flex: 0 0 auto; }
  .wiz-panel[data-panel="2"] .picker-list { max-height: 44vh; }
  .cfooter-grid { grid-template-columns: 1fr 1fr; }
  .cb-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cfooter-grid { grid-template-columns: 1fr; }
  .checkup { padding: 24px; } .booking-head, .wizard-body, .wizard-foot { padding-left: 18px; padding-right: 18px; }
  .callback { padding: 28px 20px; }
}
