/* Главная «Априори» — раскладка по образцу дентал-студия.рф */
@font-face { font-family: "Jost"; src: url("fonts/jost-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fff;
  --soft: oklch(0.968 0.005 80);
  --line: oklch(0.91 0.008 75);
  --text: oklch(0.29 0.01 50);
  --muted: oklch(0.5 0.01 60);
  --pearl: oklch(0.87 0.035 68);
  --accent: oklch(0.45 0.12 18);
  --accent-dark: oklch(0.38 0.11 18);
  --wrap: 1312px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 "Jost", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.2; hyphens: manual; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pearl { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0 12%, oklch(0.93 0.03 70) 40%, oklch(0.78 0.05 62) 100%); box-shadow: 0 1px 2px rgb(0 0 0 / .18); }

.concept { color: var(--text); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--line { border: 1px solid var(--line); color: var(--accent); }
.btn--line:hover { border-color: var(--accent); }

/* верхняя служебная строка */
.topbar { background: var(--soft); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.topbar nav { display: flex; gap: 40px; }
.topbar a:hover { color: var(--accent); }
.topbar__right { display: flex; align-items: center; gap: 32px; }
.topbar__right a, .topbar__a11y { display: inline-flex; align-items: center; gap: 7px; }
.topbar__a11y { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.topbar__a11y:hover, .topbar__a11y[aria-pressed="true"] { color: var(--accent); }
.topbar__call { color: var(--accent); }

/* шапка */
.header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 36px; min-height: 100px; }
.burger { background: none; border: 0; padding: 10px; margin-left: -10px; color: var(--text); cursor: pointer; }
.burger .icon { width: 24px; height: 24px; }
/* логотип в одну строку: надпись с логотипа клиники | стоматология во Владимире */
/* по центру строчных букв надписи (0,585 высоты картинки) выровнены подпись и пункты меню: поле картинки сдвинуто вверх */
.logo { display: flex; align-items: center; gap: 14px; line-height: 1; white-space: nowrap; }
.logo b { display: flex; align-items: center; gap: 10px; }
.logo .znak { flex: none; display: block; height: 42px; width: auto; }
.logo .wordmark { flex: none; display: block; height: 40px; width: auto; }
.logo small { padding: 3px 0 3px 14px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1; color: var(--muted); letter-spacing: .02em; }
.nav { flex: 1; align-self: stretch; display: flex; justify-content: space-around; font-size: 17px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { padding: 8px 4px; }
.nav a:hover, .nav__item:hover > a, .nav a.is-active { color: var(--accent); }

/* выпадающее меню в два уровня, как у дентал-студия.рф */
.drop { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 30; top: 100%; left: -26px; min-width: 300px; background: #fff; box-shadow: 0 12px 32px rgb(40 30 25 / .14); display: none; font-size: 16px; }
.drop--sub { top: 0; left: 100%; border-left: 1px solid var(--line); }
.nav__item:hover > .drop, .nav__item:focus-within > .drop, .drop li:hover > .drop--sub, .drop li:focus-within > .drop--sub { display: block; }
.drop li { position: relative; }
.drop li + li { border-top: 1px solid var(--line); }
.drop a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; }
.drop a:hover { background: var(--soft); color: var(--accent); }
.drop .icon { width: 14px; height: 14px; color: var(--muted); }
.header__tel { display: none; }
/* в шапке вместо разделов: телефон и версия для слабовидящих (разделы в меню-бургере) */
.header__links { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 40px; font-size: 17px; }
.header__links a, .header__a11y { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.header__links .icon { width: 20px; height: 20px; }
@media (min-width: 901px) and (max-width: 1320px) { .header .logo small { display: none; } } /* телефон и «слабовидящие» не помещаются рядом с подписью */
.header__a11y { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.header__links a:hover, .header__a11y:hover, .header__a11y[aria-pressed="true"] { color: var(--accent); }

/* меню-гамбургер */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer__shade { position: absolute; inset: 0; background: rgb(0 0 0 / .35); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(380px, 88vw); background: #fff; padding: 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.drawer__panel .burger { align-self: flex-start; margin-bottom: 12px; }
.drawer__panel a { padding: 9px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.drawer__panel a.btn { margin-top: 20px; border: 0; font-size: 15px; }
.drawer__panel summary { padding: 9px 0; font-size: 18px; border-bottom: 1px solid var(--line); cursor: pointer; list-style-position: inside; }
.drawer__panel details a { display: block; padding-left: 18px; font-size: 16px; }
.drawer__a11y { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; font: inherit; font-size: 18px; color: inherit; text-align: left; cursor: pointer; }

/* баннер-слайдер во всю ширину */
.banner { position: relative; background: var(--soft); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { display: block; color: inherit; position: relative; flex: 0 0 100%; scroll-snap-align: start; height: 520px; overflow: hidden; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide--photo > img { left: auto; width: 64%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
.slide__text { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 64px 24px 0; }
.slide__text > * { max-width: 620px; }
.slide__kicker { display: inline-block; background: oklch(0.72 0.03 65); color: #fff; font-size: 34px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 30px; border-radius: 6px; }
.slide__title { margin-top: 18px; font-size: 50px; font-weight: 500; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; color: oklch(0.4 0.015 60); }
.slide__sub { margin-top: 10px; font-size: 24px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: oklch(0.5 0.015 60); }
.slide__price { margin-top: 48px; font-size: 76px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.slide__note { margin-top: 18px; max-width: 560px; font-size: 15px; line-height: 1.45; color: oklch(0.38 0.015 60); }
/* слайд консультации: длинный обязательный текст, заголовок в одну строку */
.slide--consult .slide__text > * { max-width: 760px; }
.slide--consult .slide__title { font-size: 44px; }
/* слайды с фото аппарата на белом фоне: целиком, справа, белый фон сливается с баннером */
.slide.slide--photo.slide--product > img { left: auto; right: 6%; width: 44%; padding: 28px 0; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.08); -webkit-mask-image: none; mask-image: none; }
.slide.slide--photo.slide--product > img[src*="prophyflex"] { width: 38%; right: 5%; } /* широкий снимок: не доходит до заголовка */
.slide--consult .slide__price { margin-top: 26px; }
.slide--consult .slide__note { max-width: 560px; }
@media (min-width: 641px) { .slide.slide--photo.slide--consult > img { -webkit-mask-image: linear-gradient(90deg, transparent 46%, #000 72%); mask-image: linear-gradient(90deg, transparent 46%, #000 72%); } } /* заголовок в одну строку не ложится на фото */
.slide__credit { position: absolute; z-index: 2; right: 7%; bottom: 28px; text-align: right; color: #fff; font-size: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 1px 6px rgb(0 0 0 / .45); line-height: 1.25; }
.slide--photo > img[src*="slide-"] { width: 78%; }
/* у кабинета слева на снимке размытая стена с резким краем: снимок на всю ширину, край стены уходит в прозрачную часть маски */
.slide--photo > img[src*="slide-kabinet"] { width: 100%; object-position: 50% 45%; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%); mask-image: linear-gradient(90deg, transparent 38%, #000 66%); }
.arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--text); box-shadow: 0 4px 16px rgb(40 30 25 / .15); cursor: pointer; transition: background .2s, color .2s; }
.arrow:hover { background: #fff; color: var(--accent); }
.arrow .icon { width: 24px; height: 24px; }
.arrow--prev { left: 24px; }
.arrow--prev .icon { transform: rotate(180deg); }
.arrow--next { right: 24px; }
.dots { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .75); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--accent); }

/* секции */
.sec { padding: 72px 0; }
.sec--soft { background: var(--soft); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: 36px; }
.sec-head > a { color: var(--accent); font-size: 14px; white-space: nowrap; }
.sec-head > a:hover { text-decoration: underline; }

.about__text { max-width: 900px; display: grid; gap: 18px; font-size: 16px; }
.about__sign { margin-top: 6px; color: var(--muted); }
.about__sign b { color: var(--ink, inherit); font-weight: 500; }

/* мозаика плиток */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 72px; }
.tile { position: relative; display: block; height: 298px; overflow: hidden; border-radius: 2px; color: #fff; }
.tile--wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(30 24 22 / .72)); }
.tile__text { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 30px; }
.tile__text small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.tile__text b { display: block; margin-top: 8px; font-size: 28px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }

/* услуги */
.services__intro { max-width: 920px; margin: -12px 0 36px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { background: var(--soft); border-radius: 24px; padding: 32px 36px 20px; }
.svc__head { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 22px; padding-bottom: 22px; }
.svc__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: oklch(0.72 0.05 62); box-shadow: 0 2px 10px oklch(0.6 0.04 60 / .12); transition: color .2s; }
.svc__icon .icon { width: 38px; height: 38px; stroke-width: 1.2; }
.svc h3 { font-size: 22px; transition: color .2s; }
.svc__head:hover h3 { color: var(--accent); }
.svc__head:hover .svc__icon { color: var(--accent); }
.svc__price { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.svc__price span { padding: 4px 12px; border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent); border-radius: 999px; font-size: 13px; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.svc__price b { color: var(--text); font-weight: 500; }
.svc__links { list-style: none; margin: 0; padding: 0; }
.svc__links li + li, .svc__links li:first-child { border-top: 1px solid oklch(0.92 0.008 75); }
.svc__links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; font-size: 15px; color: var(--text); transition: color .2s; }
.svc__links a .icon { flex: none; width: 16px; height: 16px; color: var(--accent); opacity: .55; transition: opacity .2s, transform .2s; }
.svc__links a:hover { color: var(--accent); }
.svc__links a:hover .icon { opacity: 1; transform: translateX(3px); }


/* врачи */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.doc { display: block; background: #fff; border: 1px solid var(--line); text-align: center; transition: border-color .2s; }
.doc:hover { border-color: var(--pearl); }
.doc:hover h3 { color: var(--accent); }
.doc__photo { display: grid; place-items: center; padding: 32px 0 8px; }
.doc__photo span { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 10%, oklch(0.95 0.02 72) 42%, oklch(0.86 0.04 66) 100%); box-shadow: 0 2px 10px oklch(0.6 0.04 60 / .18); color: oklch(0.42 0.03 55); font-size: 30px; letter-spacing: .06em; }
.doc__body { padding: 22px 20px 26px; }
.doc h3 { font-size: 19px; }
.doc p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.perk { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; }
/* тонкий бордовый контур вместо сплошной плашки: легче, как линия надписи */
.perk__icon { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); border-radius: 50%; color: var(--accent); }
.perk__icon .icon { width: 28px; height: 28px; stroke-width: 1.1; }
.perk h3 { font-size: 18px; margin-top: 4px; }
.perk p { margin-top: 6px; font-size: 14px; }

/* отзывы */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.review { background: #fff; border: 1px solid var(--line); padding: 36px 40px; display: grid; gap: 14px; justify-items: start; }
.review h3 { font-size: 22px; }

/* контакты */
.contacts { display: grid; grid-template-columns: 420px 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contacts__info { padding: 40px; display: grid; gap: 28px; align-content: start; }
.contacts dl { margin: 0; display: grid; gap: 22px; align-content: start; }
.contacts dt { font-size: 14px; color: var(--muted); }
.contacts dd { margin: 4px 0 0; font-size: 17px; }
.contacts dd a:hover { color: var(--accent); }
.contacts .off { color: var(--accent); }
.contacts .btn { justify-self: start; }
/* статичная карта со ссылкой: встроенный виджет Яндекса показывал рекламу других клиник */
.map { position: relative; display: block; min-height: 440px; overflow: hidden; background: var(--soft); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.map__open { position: absolute; left: 16px; bottom: 16px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .15); font-size: 14px; color: var(--text); }
.map:hover .map__open { color: var(--accent); }

/* подвал */
.footer { background: var(--soft); padding: 56px 0 32px; font-size: 15px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__main { display: grid; gap: 10px; align-content: start; }
.footer__tel { font-size: 22px; font-weight: 500; }
.footer__main .topbar__call { font-size: 14px; }
.footer nav h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.footer nav h3 a:hover { color: var(--accent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer nav a:hover, .footer__main a:hover { color: var(--accent); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; font-size: 13px; color: var(--muted); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }


@media (max-width: 1180px) {
  .topbar nav { gap: 24px; }
  .topbar__hours { display: none; }
  .header .wrap { gap: 20px; }
  .nav { font-size: 16px; }
  .slide__title { font-size: 44px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .perks { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .header .wrap { min-height: 64px; justify-content: space-between; }
  .nav, .header .btn, .header__links { display: none; }
  .header__tel { display: inline-flex; padding: 10px; color: var(--accent); }
  .header__tel .icon { width: 24px; height: 24px; }
  .header .wrap { gap: 8px; }
  .logo { gap: 8px; }
  .logo .wordmark { height: 30px; width: 104px; }
  .logo .znak { height: 32px; width: 27px; }
  .logo b, .logo small { flex: none; }
  .logo small { padding-left: 8px; font-size: 11px; }
  .svc-grid, .reviews, .contacts { grid-template-columns: 1fr; }
  @media (max-width: 420px) { .logo small { display: none; } }
  .contacts__info { padding: 32px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .sec-head h2 { font-size: 27px; }
  .slide { height: auto; min-height: 440px; padding-bottom: 230px; } /* все слайды тянутся по самому высокому (консультация) */
  .slide--photo > img { inset: auto 0 0 0; width: 100%; height: 220px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .slide__text { padding-top: 32px; }
  .slide__kicker { font-size: 20px; padding: 4px 16px; }
  .slide__title { font-size: 29px; margin-top: 12px; }
  .slide__sub { font-size: 16px; }
  .slide__price { font-size: 48px; margin-top: 24px; }
  .slide__note { font-size: 13px; margin-top: 12px; }
  .slide--consult .slide__title { font-size: 29px; }
  .slide.slide--photo.slide--product > img, .slide.slide--photo.slide--product > img[src*="prophyflex"] { right: 0; width: 100%; padding: 8px 24px 56px; }
  .slide--consult .slide__price { margin-top: 14px; }
  .slide__credit { font-size: 14px; right: 16px; bottom: 54px; }
  .dots { bottom: 20px; }
  .slide--photo > img[src*="slide-"] { width: 100%; }
  .slide--photo > img[src*="slide-kabinet"] { left: auto; width: 150%; max-width: none; object-position: 50% 60%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); } /* слева на снимке пустая стена */
  .arrow { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; }
  .arrow--prev { left: 16px; }
  .arrow--next { right: 16px; }
  .dots { bottom: 26px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .tile, .tile--wide { grid-column: auto; height: 210px; }
  .tile__text { left: 20px; right: 20px; bottom: 20px; }
  .tile__text b { font-size: 22px; }
  .svc { padding: 24px 20px 12px; border-radius: 20px; }
  .svc__head { grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 16px; }
  .svc__icon { width: 56px; height: 56px; }
  .svc__icon .icon { width: 30px; height: 30px; }
  .svc h3 { font-size: 19px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .doc__body { padding: 16px 12px 18px; }
  .doc h3 { font-size: 16px; }
  .perks { grid-template-columns: 1fr; gap: 24px; }
  .review { padding: 28px 24px; }
  .map { min-height: 320px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}

/* внутренние страницы: серая полоса с заголовком, меню раздела слева, содержимое справа */
.phead { background: var(--soft); padding: 44px 0 40px; }
.phead h1 { font-size: 40px; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 14px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before { content: "/"; margin-right: 10px; color: var(--line); }
.stub__note { padding: 40px; background: var(--soft); border: 1px dashed var(--pearl); font-size: 18px; }
.stub__note p + p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.stub__kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stub__kids a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border: 1px solid var(--line); font-size: 18px; }
.stub__kids a:hover { border-color: var(--accent); color: var(--accent); }
.stub__kids .icon { color: var(--muted); }
.page__back { display: inline-block; margin-top: 48px; color: var(--accent); }
@media (max-width: 900px) { .stub__kids { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stub__note { padding: 24px; font-size: 16px; } .stub__kids { grid-template-columns: 1fr; gap: 12px; } }
.sitemap ul { list-style: none; margin: 0; padding: 0 0 0 22px; }
.sitemap > ul { padding: 0; columns: 2 320px; column-gap: 48px; }
.sitemap li { break-inside: avoid; padding: 5px 0; }
.sitemap > ul > li > a { font-size: 19px; font-weight: 500; }
.sitemap a:hover { color: var(--accent); }
@media (min-width: 641px) and (max-width: 1460px) { .slide__text { padding-left: 100px; } }

.page { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.side { display: grid; gap: 28px; }
.side__nav ul { list-style: none; margin: 0; padding: 0; }
.side__nav > ul { border: 1px solid var(--line); }
.side__nav > ul > li + li { border-top: 1px solid var(--line); }
.side__nav > ul > li > a { display: block; padding: 15px 20px; }
.side__nav a:hover { color: var(--accent); }
.side__nav a.is-current { color: var(--accent); }
.side__nav > ul > li > a.is-current { background: var(--soft); }
.side__nav li ul { padding: 0 20px 14px 32px; font-size: 14px; display: grid; gap: 8px; }
.side__cta { padding: 28px 24px; background: var(--soft); text-align: center; display: grid; gap: 18px; justify-items: center; font-size: 15px; }
.page__main { min-width: 0; }
.page.page--noside { grid-template-columns: minmax(0, 1fr); }

/* компоненты содержимого (справочник: content/README.md) */
.lead { font-size: 20px; line-height: 1.5; max-width: 68ch; }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 26px; }
.prose h3 { margin-top: 28px; font-size: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.block { margin-top: 56px; }
.block > h2 { font-size: 28px; margin-bottom: 24px; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 44px; padding: 26px 32px; border: 1px solid var(--line); background: var(--soft); }
.cta-strip p { max-width: 52ch; }
.cards { display: grid; gap: 0; border: 1px solid var(--line); }
.card { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 26px 30px; }
.card:has(.card__icon) { grid-template-columns: 64px 1fr auto; }
.card__icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent); color: var(--accent); transition: border-color .2s; }
.card__icon .icon { width: 32px; height: 32px; stroke-width: 1.15; }
.card:has(.card__icon) h2, .card:has(.card__icon) h3, .card:has(.card__icon) p, .card:has(.card__icon) b { grid-column: 2; }
.card:has(.card__icon) > .icon { grid-column: 3; grid-row: 1 / span 3; }
.card:hover .card__icon { border-color: var(--accent); }
/* карточка только с заголовком: иконки и заголовок в одну строку, без пустых рядов */
.card:has(.card__icon):not(:has(p, b)) .card__icon, .card:has(.card__icon):not(:has(p, b)) > .icon { grid-row: 1; }
.card + .card { border-top: 1px solid var(--line); }
.card h3 { font-size: 21px; }
.card p { grid-column: 1; color: var(--muted); font-size: 15px; }
.card > .icon { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); transition: border-color .2s; }
.card b { grid-column: 1; font-weight: 500; font-size: 15px; }
.card:hover h3 { color: var(--accent); }
.card:hover > .icon { border-color: var(--accent); }
.prices { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.prices th { text-align: left; font-weight: 500; font-size: 14px; color: var(--muted); padding: 14px 24px; background: var(--soft); }
.prices td { padding: 18px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-weight: 500; }
.prices small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.prices-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 72ch; }
/* таблицы во внутренних документах клиники (положение о гарантиях) */
.doc-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); margin: 16px 0 24px; font-size: 15px; }
.doc-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-table td + td { border-left: 1px solid var(--line); }
.doc-table tr:first-child td { background: var(--soft); font-weight: 500; }
.note { padding: 24px 28px; background: var(--soft); border-left: 0; max-width: 72ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.facts dd a { color: var(--accent); }
.doctor { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 32px; border: 1px solid var(--line); margin-bottom: 44px; }
.doctor .doc__photo { align-self: start; padding: 0; }
.doctor .doc__photo span { width: 180px; height: 180px; font-size: 46px; }
.doctor__info { display: grid; gap: 24px; align-content: start; justify-items: start; }
.doctor .facts { grid-template-columns: 1fr; }
.page .team-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.page .contacts { grid-template-columns: 1fr; }
.page .contacts__info { padding: 0 0 32px; }

@media (max-width: 1180px) {
  .page { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .page .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; padding-top: 32px; }
  .side { position: static; order: 2; }
  .doctor { grid-template-columns: 160px 1fr; }
  .doctor .doc__photo span { width: 150px; height: 150px; }
}
@media (max-width: 640px) {
  .phead { padding: 28px 0 24px; }
  .phead h1 { font-size: 28px; }
  .page { padding-bottom: 56px; }
  .lead { font-size: 18px; }
  .prose h2, .block > h2 { font-size: 23px; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 22px; }
  .card { padding: 20px; }
  .card h3 { font-size: 18px; }
  .card > .icon { display: none; }
  .prices th, .prices td { padding: 14px 14px; }
  .facts { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .doctor .doc__photo span { width: 120px; height: 120px; font-size: 32px; }
  .page .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

a[href^="tel:"], .prices td:last-child { white-space: nowrap; }
/* название со страницей услуги — тёмное, как остальные, со стрелкой */
.prices td a, .prose .prices td a { color: inherit; text-decoration: none; }
.prices td a::after { content: " →"; color: var(--accent); font-size: 14px; }
.prices td a:hover, .prose .prices td a:hover { color: var(--accent); }
.card h2 { font-size: 21px; }
.perk { color: inherit; }
a.perk:hover h3 { color: var(--accent); }

/* телефон: меню раздела скрыто — навигацию дают крошки, карточки и меню в шапке; таблицы цен в столбик */
@media (max-width: 900px) {
  .side { display: none; }
}
@media (max-width: 640px) {
  .card h2 { font-size: 18px; }
  .prices, .prices tbody, .prices tr, .prices td { display: block; }
  .prices tr:has(th) { display: none; }
  .prices tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .prices tr:first-child { border-top: 0; }
  .prices td { padding: 0; border: 0; text-align: left; }
  .prices td:last-child { margin-top: 6px; text-align: left; }
}

/* версия для слабовидящих: крупно, контрастно, без фоновых картинок */
html.a11y { --text: #000; --muted: #222; --line: #555; --soft: #fff; --accent: oklch(0.36 0.12 18); }
html.a11y body { font-size: 21px; line-height: 1.6; }
html.a11y .topbar, html.a11y .crumbs, html.a11y .prices th, html.a11y .footer, html.a11y .footer__bottom { font-size: 18px; }
html.a11y .slide > img, html.a11y .tile img, html.a11y .splash__bg { display: none; }
html.a11y .tile { background: #fff; border: 2px solid #000; }
html.a11y .tile__text, html.a11y .tile__text small, html.a11y .tile__text b { color: #000; text-shadow: none; }
html.a11y a:focus-visible, html.a11y button:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
html.a11y .prose a, html.a11y .prose { max-width: none; }
.search__path { color: var(--muted); }
.page .map { min-height: 0; aspect-ratio: 1300 / 450; }
@media (max-width: 640px) { .map, .page .map { min-height: 300px; aspect-ratio: auto; } }

/* полоса заголовка с фото раздела: снимок справа растворяется в фоне, как в баннере главной */
.phead--img { position: relative; overflow: hidden; padding: 64px 0 60px; }
.phead__img { position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.phead--img .wrap { position: relative; }
.phead--img h1 { max-width: 15em; }

/* этапы: жемчужины с номером на тонкой линии */
.prose ol { list-style: none; padding: 0; counter-reset: step; }
.prose ol > li { position: relative; padding: 4px 0 6px 50px; counter-increment: step; }
.prose ol > li + li { margin-top: 10px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 12%, oklch(0.95 0.02 72) 45%, oklch(0.87 0.035 66) 100%); box-shadow: 0 1px 3px oklch(0.6 0.04 60 / .25); font-size: 14px; color: oklch(0.38 0.03 55); }
.prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: -8px; width: 1px; background: var(--line); }

/* полоса записи: одна жемчужина, как в логотипе, без фотофона */
.cta-strip { border: 0; background: var(--soft); }
.cta-strip p { display: flex; align-items: center; gap: 18px; }
.cta-strip p::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff 0 12%, oklch(0.93 0.03 70) 40%, oklch(0.78 0.05 62) 100%); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }

@media (max-width: 640px) {
  .phead--img { padding: 168px 0 24px; }
  .phead__img { width: 100%; height: 160px; -webkit-mask-image: none; mask-image: none; }
  .card:has(.card__icon) { grid-template-columns: 48px 1fr; gap: 4px 16px; }
  .card__icon { width: 48px; height: 48px; }
  .card__icon .icon { width: 26px; height: 26px; }
}
html.a11y .phead__img { display: none; }

/* врачи на внутренних страницах — строкой: круг и подпись рядом */
.page .team-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.page .doc { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-align: left; }
.page .doc__photo { padding: 0; }
.page .doc__photo span { width: 64px; height: 64px; font-size: 19px; }
.page .doc__body { padding: 0; }
.page .doc h3 { font-size: 17px; }
.page .doc p { margin-top: 4px; }

/* контакты: адрес и карта рядом */
@media (min-width: 1181px) {
  .page .contacts { grid-template-columns: 1fr 1.2fr; gap: 32px; border: 0; }
  .page .contacts__info { padding: 0; }
  .page .contacts .map { aspect-ratio: auto; min-height: 420px; }
}

/* ряд иллюстраций */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gallery__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .gallery img { height: 140px; }
  .page .team-grid { grid-template-columns: 1fr; }
}

/* оглавление политики */
.toc { margin-top: 40px; padding: 26px 30px; background: var(--soft); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 40px; }
.toc li { break-inside: avoid; padding: 4px 0; }
.toc a:hover { color: var(--accent); }

/* «как болит → причина → что делают» */
.pain { margin-top: 20px; border: 1px solid var(--line); }
.pain__row { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 24px; padding: 20px 24px; }
.pain__row + .pain__row { border-top: 1px solid var(--line); }
.pain__row p:nth-child(2) { color: var(--accent); }
.pain__row a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pain__row--head { padding-block: 12px; background: var(--soft); font-size: 14px; color: var(--muted); }

/* образование по годам: та же линия с жемчужинами */
.prose ol.years > li { padding-left: 76px; }
.prose ol.years > li::before { content: ""; width: 14px; height: 14px; left: 8px; top: 7px; }
.prose ol.years > li:not(:last-child)::after { left: 14.5px; top: 25px; }
.prose ol.years b { position: absolute; left: 30px; top: 3px; font-weight: 500; color: var(--accent); }

/* документы строками со статусом */
.docrows { margin-top: 20px; border: 1px solid var(--line); }
.docrow { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 16px 22px; }
.docrow + .docrow { border-top: 1px solid var(--line); }
a.docrow { color: inherit; text-decoration: none; }
a.docrow:hover span:nth-child(2) { color: var(--accent); }
.docrow__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent); color: var(--accent); }
.docrow__icon .icon { width: 22px; height: 22px; stroke-width: 1.3; }
.docrow small { color: var(--muted); font-size: 14px; white-space: nowrap; }

@media (max-width: 640px) {
  .pain__row { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .pain__row--head { display: none; }
  .pain__row p:nth-child(2)::before { content: "Причина: "; color: var(--muted); }
  .docrow { grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 14px 16px; }
  .docrow__icon { width: 40px; height: 40px; grid-row: span 2; }
  .toc { padding: 20px; }
}
