/* Fedoseev breakpoints: desktop >= 960px; adaptive 375–959.98px; compact < 375px. */
:root {
    --clinic-dark: #27313d;
    --clinic-muted: #eef1ef;
    --clinic-sage: #cfd5d1;
    --clinic-warm: #ded0c4;
    --clinic-line: #d8dbda;
    --clinic-text: #27313d;
    --clinic-white: #fff;
    --clinic-container: 1420px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--clinic-text);
    background: #fff;
    font-family: 'TT Fors';
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.clinic-container { width: min(calc(100% - 48px), var(--clinic-container)); margin-inline: auto; }
.section-space { padding-top: 118px; padding-bottom: 118px; }
.muted-section { background: var(--clinic-muted); }
.section-kicker { margin-bottom: 20px; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; font-weight: 500 !important; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 64px; font-size: clamp(31px, 2.1vw, 43px); font-weight: 500 !important; line-height: 1.08; text-transform: uppercase; }
.display-heading { font-size: clamp(36px, 3vw, 61px); font-weight: 500; line-height: 1.08; text-transform: uppercase; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 54px; }
.text-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; text-transform: uppercase; white-space: nowrap; font-weight: 500 !important; }
.text-link:hover { opacity: .65; }
.clinic-btn { min-height: 46px; padding: 12px 24px; border: 0; border-radius: 2px; color: var(--clinic-text); font-size: 14px; text-transform: uppercase; background: var(--clinic-sage); transition: opacity .2s ease, transform .2s ease; }
.clinic-btn:hover { opacity: .82; transform: translateY(-1px); }
.clinic-btn--warm { background: var(--clinic-warm); }
.clinic-btn--pale {
    min-width: 340px;
    background: #eadede;
    font-weight: 700;
    width: 100%;
    max-width: 460px;
    font-size: 18px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clinic-btn--wide { min-height: 58px; }

/* Header */
.site-header { position: relative; z-index: 1000; background: #fff; }
.header-top { position: relative; z-index: 1; min-height: 88px; color: #354752; font-size: 16px; line-height: 1.4; }
.header-top .clinic-container { position: relative; min-height: 88px; }
.header-top .clinic-container::after { position: absolute; right: 0; bottom: -1px; left: 0; z-index: 2; height: 1px; content: ''; background: #7d8288; }
.header-address { opacity: .6; transform: translateY(2px); }
.header-phone { transform: translateY(2px); }
.header-phone a { color: var(--clinic-text); font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: .35px; }
.header-top .clinic-container > .d-flex { gap: 26px !important; }
.header-top .clinic-btn { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 277px; width: 277px; height: 52px; min-height: 52px; padding: 0 16px; border-radius: 6px; background: #ded2c6; font-size: 20px; line-height: 1; }
.header-main { min-height: 145px; background: #fff; transition: box-shadow .2s ease; }
.header-main .clinic-container { min-height: 145px; }
.header-main.is-sticky { position: fixed; top: 0; right: 0; left: 0; min-height: 82px; box-shadow: 0 10px 30px rgba(39,49,61,.08); }
.header-main.is-sticky .clinic-container { min-height: 82px; }
.site-header.has-sticky { padding-bottom: 145px; }
.clinic-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.clinic-brand__image { width: 220px; height: 74px; }
.header-main.is-sticky .clinic-brand__image { width: 180px; height: auto; }
.header-nav { display: block; flex: 1 1 auto; min-width: 0; margin-left: auto; }
.clinic-menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1px clamp(10px, 1.32vw, 25.31px); margin: 0; padding: 0; list-style: none; }
.clinic-menu__item a { position: relative; display: block; padding: 0; font-size: 18px; line-height: 24px; white-space: nowrap; }
.clinic-menu__item a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ''; background: var(--clinic-dark); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.clinic-menu__item a:hover::after, .clinic-menu__item.is-active a::after { transform: scaleX(1); }
.accessibility-toggle { display: block; flex: 0 0 40px; width: 40px; height: 26px; margin-left: 34px; padding: 0; border: 0; background: transparent; }
.accessibility-toggle img { width: 40px; height: 26px; object-fit: fill; }
.navbar-toggler { display: none; width: 40px; height: 32px; border: 0; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { position: relative; display: block; width: 40px; height: 32px; border-top: 4px solid #354752; border-bottom: 4px solid #354752; background: none; }
.navbar-toggler-icon::before { position: absolute; top: 10px; right: 0; left: 0; height: 4px; content: ''; background: #354752; }
.offcanvas .clinic-menu { align-items: stretch; flex-direction: column; gap: 0; }
.offcanvas .clinic-menu__item a { padding: 14px 0; border-bottom: 1px solid #eee; font-size: 18px; }
.accessibility-panel { position: relative; z-index: 1200; color: #000; background: #ffd600; }
.access-control { min-height: 38px; padding: 6px 12px; border: 2px solid #000; background: #fff; font-weight: 700; }
.access-control--large { font-size: 22px; }
body.access-font-large { font-size: 20px; }
body.access-font-large .clinic-menu__item a { font-size: 17px; }
body.access-contrast { color: #fff; background: #000; }
body.access-contrast section, body.access-contrast header, body.access-contrast footer, body.access-contrast .header-main, body.access-contrast .header-top { color: #fff !important; background: #000 !important; }
body.access-contrast a, body.access-contrast h1, body.access-contrast h2, body.access-contrast h3 { color: #fff !important; }
body.access-hide-images img, body.access-hide-images [style*="background-image"] { visibility: hidden !important; }
body.access-hide-images .hero-card, body.access-hide-images .appointment-collage, body.access-hide-images .map-offline-placeholder { background-image: none !important; }

/* Hero */
.hero-section { padding-bottom: 92px; }
.hero-card { position: relative; min-height: 710px; overflow: hidden; background-position: center; background-size: cover; }
.hero-card::after { position: absolute; inset: 0; content: ''; background: rgba(226,219,216,.22); }
.hero-card h1 { position: relative; z-index: 2; max-width: 920px; padding: 42px 38px; font-size: clamp(25px, 2.05vw, 39px); font-weight: 400; line-height: 1.18; text-transform: uppercase; }
.hero-patients { position: absolute; z-index: 2; top: 36px; right: 34px; display: grid; align-items: start; gap: 3px; }
.hero-patients strong { display: flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 30px; letter-spacing: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero-patients strong span { display: inline-block; min-width: .62em; text-align: center; }
.hero-patients small { padding-left: 2px; font-size: 11px; line-height: 1.05; text-transform: uppercase; }
.hero-award,
a.hero-award,
span.hero-award { position: absolute; z-index: 2; bottom: 38px; left: 38px; display: block; width: 155px; height: 155px; overflow: hidden; text-decoration: none; color: inherit; }
.hero-award__img,
img.hero-award { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Services */
.section-intro { max-width: 460px; font-size: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 42px; }
.service-card { position: relative; min-height: 95px; padding: 8px 10px 8px 20px; border-left: 5px solid var(--accent); transition: background .2s ease; }
.service-card:hover { background: #f4f5f4; }
.service-card strong { display: block; font-size: 21px; font-weight: 400; line-height: 1.15; text-transform: uppercase; }
.service-card span { display: block; margin-top: 5px; font-size: 13px; }
.service-card--big { grid-column: span 2; min-height: 150px; padding: 32px 250px 20px 32px; border: 0; border-radius: 18px; background: #f3e84d; }
.service-card--big:hover { background: #ede13c; }
.service-card--big .kids-logo { position: absolute; top: 18px; right: 24px; width: 205px; height: auto; margin: 0; }

/* Treatment */
.treatment-section { padding-bottom: 128px; }
.treatment-heading { max-width: 600px; margin-bottom: 58px; font-size: 40px; line-height: 56px; }
.treatment-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr); gap: 18px; height: 418px; align-items: stretch; }
.treatment-card { position: relative; display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); height: 418px; min-height: 0; overflow: visible; border-radius: 0; background: transparent; }
.treatment-card::before { position: absolute; top: 48px; right: 0; bottom: 48px; left: 0; z-index: 0; border-radius: 20px; content: ''; background: #dfdbd7; }
.treatment-card__media { position: relative; z-index: 1; width: min(368px, calc(100% - 12px)); height: 418px; min-height: 0; margin-left: 12px; background: url('/local/templates/clinic/assets/images/doctor-plan-desktop.png') center / 100% 100% no-repeat; }
.treatment-card__tile { display: none; }
.treatment-card__copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 44px 0 32px; }
.treatment-card .section-kicker { margin-bottom: 12px; font-size: 23px; line-height: 34px; }
.treatment-feature__text { font-size: 24px; line-height: 34px; }
.treatment-note { height: 418px; min-height: 0; padding: 0 18px 0 20px; border-left: 2px solid #d4d5d7; font-size: 13px; line-height: 19px; }
.treatment-note p { margin-bottom: 20px; }
.treatment-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 22px; min-height: 181px; margin-top: -2px; padding-top: 27px; border-top: 2px solid #d4d5d7; }
.treatment-steps article, .treatment-steps article:not(:first-child) { min-height: 0; padding: 0; border: 0; }
.treatment-steps h3 { margin-bottom: 14px; font-size: 19px; font-weight: 400; line-height: 25px; text-transform: uppercase; }
.treatment-steps p { margin: 0; color: var(--clinic-text); font-size: 16px; line-height: 22px; }
.treatment-button { display: flex; align-items: center; justify-content: center; width: 340px; min-width: 340px; height: 48px; min-height: 48px; margin-top: 19px; padding: 0 18px; border-radius: 4px; background: #ded2c6; font-size: 20px; line-height: 22px; }

/* Slider navigation is maintained in assets/css/slider-arrows.css. */
.offer-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding: 34px; background: #fff; }
.offer-card small { color: #74797e; }
.offer-card h3 { max-width: 480px; font-size: 29px; font-weight: 400; line-height: 1.18; text-transform: uppercase; }
.offer-card > div { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.offer-card strong { font-size: 28px; font-weight: 400; }
.offer-card span { font-size: 12px; text-transform: uppercase; }
.person-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; background: #ddd; }
.person-card__image--placeholder { background: #e4e6e8; }
.ambassador-card::after, .tech-card::after { position: absolute; inset: 0; content: ''; background: rgba(39,49,61,0); transition: background .2s ease; }
.page-home .reviews-swiper, .page-home .stories-swiper, .page-home .media-swiper { overflow: visible !important; }
.person-card__image:hover::after, .ambassador-card:hover::after, .tech-card:hover::after { background: rgba(39,49,61,.2); }
.person-card img, .story-card img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3, .story-card h3 { margin: 22px 0 7px; font-size: 16px; }
.person-card p, .story-card p { margin-bottom: 5px; font-size: 12px; }
.person-card small, .story-card small { font-size: 11px; color: #757b7e; }
.play-button { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; color: var(--clinic-dark); background: rgba(255,255,255,.9); font-size: 17px; }
.play-button--large { top: 50%; right: auto; bottom: auto; left: 50%; width: 80px; height: 80px; font-size: 28px; transform: translate(-50%, -50%); }
.story-card h3 a { color: inherit; }
.story-comparison { --comparison-position: 18%; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #ddd; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.story-comparison__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.story-comparison__after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 var(--comparison-position)); }
.story-comparison__handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--comparison-position); width: 28px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; cursor: ew-resize; transform: translateX(-50%); }
.story-comparison__handle::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; content: ''; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(39,49,61,.08); transform: translateX(-50%); }
.story-comparison__handle:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.story-comparison__arrows { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; gap: 7px; width: 28px; height: 24px; transform: translate(-50%, -50%); }
.story-comparison__arrow { display: block; width: 0; height: 0; filter: drop-shadow(0 1px 1px rgba(39,49,61,.28)); }
.story-comparison__arrow--left { border-top: 5px solid transparent; border-right: 6px solid #fff; border-bottom: 5px solid transparent; }
.story-comparison__arrow--right { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid #fff; }
.story-comparison.is-dragging .story-comparison__arrow--left { border-right-color: #f4f4f4; }
.story-comparison.is-dragging .story-comparison__arrow--right { border-left-color: #f4f4f4; }

/* Dent Friend */
.dentfriend-section { color: #fff; background: var(--clinic-dark); }
.dentfriend-logo { width: min(410px, 56vw); height: auto; }
.dentfriend-description { max-width: 860px; margin: 58px auto 0; font-size: 14px; text-align: center; }
.ambassador-card { position: relative; display: block; min-height: 455px; overflow: hidden; background: #111; }
.ambassador-card img { width: 100%; height: 100%; object-fit: cover; }
.ambassador-card span { position: absolute; z-index: 3; right: 20px; bottom: 18px; left: 20px; color: #fff; }
.ambassador-card strong, .ambassador-card small { display: block; }
.ambassador-card strong { font-size: 19px; text-transform: uppercase; }
.ambassador-card small { margin-top: 5px; font-size: 12px; }

/* Ratings and media */
.ratings-section { background: var(--clinic-sage); }
.ratings-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 18px; }
.ratings-grid--count-1 { grid-template-columns: minmax(0, 1fr); }
.ratings-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ratings-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rating-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 30px; border-radius: 8px; background: #fff; color: #272f39; text-decoration: none; }
a.rating-card:hover { transform: translateY(-3px); }
.rating-card h3 { font-family: Georgia, serif; font-size: 27px; }
.rating-card__logo { display: flex; align-items: flex-start; flex: 0 0 48px; height: 48px; }
.rating-card__logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 48px; object-fit: contain; object-position: left top; }
.rating-card__logo--forbes img { width: 124px; }
.rating-card__logo--yandex img { width: 108px; }
.rating-card__logo--2gis img { width: 116px; }
.rating-card__logo--prodoctorov img { width: 214px; }
.rating-card__award-text { margin-top: auto; max-width: 290px; color: #272f39; font-size: 13px; font-weight: 700; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.rating-card__score { display: flex; align-items: flex-end; gap: 1px; margin-top: auto; line-height: 1; }
.rating-card strong { margin-top: auto; font-size: 35px; font-weight: 500; }
.rating-card span { margin-bottom: 3px; color: #272f39; font-size: 12px; line-height: 1.15; font-weight: 500; }
.media-card { display: flex; flex-direction: column; min-height: 270px; padding: 36px; border-radius: 8px; color: #272f39; background: #f6f3f2; }
.media-card__source { display: block; flex: 0 0 26px; height: 26px; font-family: Georgia, serif; font-size: 26px; line-height: 26px; }
.media-card__source img { display: block; width: auto; height: 26px; max-width: 100%; object-fit: contain; object-position: left top; }
.media-card h3 { margin: 41px 0 0; font-size: 18px; font-weight: 700; line-height: 25px; letter-spacing: .4px; text-transform: uppercase; }
.media-card span { margin-top: auto; color: #71767a; font-size: 12px; line-height: 17px; text-decoration: underline; text-transform: uppercase; }

/* Blog and video */
.blog-swiper .swiper-slide { height: auto; }
.blog-card { position: relative; display: block; overflow: hidden; height: 100%; min-height: 320px; background: #ddd; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover img { transform: scale(1.02); }
.blog-card strong { position: absolute; right: 0; bottom: 0; left: 0; padding: 14px 20px; background: #cdb9a6; font-size: 13px; text-align: center; text-transform: uppercase; }
.clinic-today h2 { margin-bottom: 58px; }
.clinic-video-mosaic { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 1420 / 795; background: #dedbd9; }
.clinic-video-mosaic__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Mission */
.mission-copy { max-width: 1160px; }
.mission-copy .section-kicker { margin-bottom: 28px; font-size: 15px; }
.mission-copy h2 { max-width: 1160px; margin-bottom: 72px; font-size: 43px; font-weight: 400; line-height: 1.17; letter-spacing: -.015em; overflow-wrap: anywhere; }
.mission-copy h2 span { display: block; }
.stats-grid article { min-height: 220px; padding-left: 28px; border-left: 5px solid #9b8175; }
.stats-grid strong { display: block; font-size: clamp(58px, 5vw, 95px); font-weight: 300; line-height: .9; }
.stats-grid h3 { margin: 8px 0 20px; font-size: 31px; font-weight: 400; text-transform: uppercase; }
.stats-grid p { max-width: 340px; color: #5f666b; font-size: 13px; }

/* Technologies */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-card { position: relative; overflow: hidden; min-height: 0; background: #eceeed; height: 340px;}
.tech-card img { width: 100%; height: 100%; object-fit: cover; }
.tech-card strong { position: absolute; z-index: 3; top: 20px; right: auto; left: 20px; color: #fff; font-size: 14px; text-transform: uppercase; /* background: #00000045; */ padding: 5px 10px; }
.tech-card--1 { grid-column: 1 / 3;}
/* .tech-card--2 { grid-column: 7 / 10; grid-row: 1; } */
/* .tech-card--3 { grid-column: 1 / 4; grid-row: 2; } */
.tech-card--4 { grid-column: 3 / 5; }
/* .tech-card--5 { grid-column: 4 / 8; grid-row: 3; } */
.tech-card--6 { order: 1; }
/* .tech-card--4 strong, .tech-card--5 strong { color: #fff; } */

.services-catalog__copy {
    padding: 0;
}
.about-doctor-card__content strong {
    max-width: 340px;
    font-size: 22px !important;
    line-height: 34px !important;
}
.about-doctor-card__content small {
    font-size: 16px !important;
    margin: 0 !important;
}
.about-doctor-card__content {
    height: 120px;
    transition: all ease .2s;
    left: 0 !important;
    padding: 20px 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.about-doctor-card:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all ease .2s;
    background: #272F39CC;
}
.about-doctor-card__desc p {
    margin: auto 0 0;
}
.about-doctor-card:hover:after {
    opacity: 1;
}
.about-doctor-card__desc {
    opacity: 0;
    transition: all ease .2s;
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.about-doctor-card:hover .about-doctor-card__content {
    bottom: 0;
    height: 100%;
}
.about-doctor-card:hover .about-doctor-card__desc {
    opacity: 1;
}
.about-doctor-card__desc strong {
    line-height: inherit !important;
    font-size: inherit !important;
    max-width: none;
    display: inline !important;
    text-transform: none !important;
    font-weight: bold !important;
}

.tech-card__empty.empty-1 {
    border-right: #6E7D78 10px solid;
}
.tech-card__empty.empty-2 {
    border-right: #463C3C 40px solid;
}
.tech-card__empty.empty-3 {
    border-left: #D2BEBE 60px solid;
}
.tech-card__empty.empty-5 {
    border-right: #AAB4AA 20px solid;
}

.about-stat:nth-child(1) {
    border-width: 10px;
}
.about-stat:nth-child(3) {
    border-width: 8px;
}
.about-stat:nth-child(5) {
    border-width: 6px;
}
.about-stat:nth-child(6) {
    border-width: 2px;
}
.about-history .about-history__years {
    /* grid-template-columns: repeat(4, 15.5%) 1fr; */
}

/* First visit / form / contacts */
.first-visit-video { position: relative; display: block; min-height: 700px; overflow: hidden; }
.first-visit-video img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.appointment-section { background: #fff; }
.appointment-heading { width: calc(50% - 10px); margin-bottom: 58px; }
.appointment-section h2 { margin-bottom: 28px; }
.appointment-lead { max-width: 690px; margin-bottom: 0; font-size: 14px; line-height: 1.55; }
.appointment-mobile-break { display: none; }
.appointment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.appointment-form { min-width: 0; padding: 0; height: 100%; }
.clinic-webform, .clinic-webform form {
    height: 100%;
}
.appointment-collage { width: 100%; height: 700px; min-height: 700px; overflow: hidden; background: url('/local/templates/clinic/assets/images/form-collage-desktop.png') center / 100% 100% no-repeat; }
.clinic-webform form { margin: 0; }
.clinic-webform .row { display: flex; margin: 0; flex-direction: column; height: 100%; }
.clinic-webform .form-question--consent + .col-12 {
    margin: auto 0 0 !important;
}
.dentfriend-intro, .dentfriend-tasks, .dentfriend-workshop, .dentfriend-teens {
    padding: 128px 0;
}
.dentfriend-teens {
    padding-top: 0 !important;
    padding-bottom: 128px;
}
.clinic-webform .row > * { width: 100%; margin: 0; padding: 0; }
.clinic-webform .form-question:not(.form-question--consent) { height: 74px; }
.clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) { margin-top: 16px; }
.clinic-webform .form-label { display: block; margin: 0 0 2px; color: #4f565c; font-size: 15px; line-height: 20px; }
.clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.clinic-webform textarea,
.clinic-webform select { display: block; width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 8px 0 7px; border: 0; border-bottom: 1px solid #7d8288; border-radius: 0; outline: none; color: var(--clinic-text); background: transparent; box-shadow: none; font-size: 20px; line-height: 31px; }
.clinic-webform textarea { resize: none; overflow: hidden; }
.clinic-webform input::placeholder, .clinic-webform textarea::placeholder { color: var(--clinic-text); opacity: 1; }
.clinic-webform input:focus, .clinic-webform textarea:focus, .clinic-webform select:focus { border-color: var(--clinic-dark); box-shadow: none; }
.clinic-consent { position: relative; display: block; margin: 0; padding: 0; font-size: 14px; line-height: 20px; cursor: pointer; }
/* .clinic-consent .form-check-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; } */
.form-check { display: grid; grid-template-columns: 2, 1fr; gap: 10px; }
.clinic-consent a { text-decoration: underline; }
.clinic-consent-error { display: none; margin-top: 8px; color: #9a2c2c; font-size: 12px; }
.clinic-consent-error.is-visible { display: block; }
.clinic-webform .form-question--consent { margin-top: 18px; }
.clinic-webform .form-question--consent + .col-12 { margin-top: auto; }
.clinic-webform .clinic-btn--wide { width: 100%; height: 73px; min-height: 73px; margin: 0; border-radius: 10px; background: #ccd2cc; font-size: 18px; }
.appointment-form .required { display: none; }
.required { margin-left: 3px; color: #9a2c2c; }
.contacts-section { background: #f3f0ef; }
.contacts-head h2 { font-size: 22px; line-height: 1.35; }
.contacts-head > a { font-size: 23px; font-weight: 500; }
.map-frame { position: relative; height: 650px; overflow: hidden; background: #e5e3e2; }
.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(.82) brightness(1.04);
    opacity: 1;
}
.clinic-map-marker { position: absolute; z-index: 3; top: 43%; left: 34.5%; width: 36px; height: 52px; pointer-events: none; background: linear-gradient(145deg, #aaa 0%, #8e8e8e 56%, #565656 100%); clip-path: polygon(50% 100%, 42% 77%, 30% 67%, 17% 61%, 8% 51%, 5% 38%, 8% 24%, 17% 12%, 31% 4%, 50% 1%, 69% 4%, 83% 12%, 92% 24%, 95% 38%, 92% 51%, 83% 61%, 70% 67%, 58% 77%); filter: drop-shadow(0 3px 2px rgba(39,49,61,.32)); transform: translate(-50%, -100%); }
.clinic-map-marker span { display: none; }

/* Footer and modals */
.site-footer { padding: 78px 0 88px; color: #fff; background: var(--clinic-dark); }
.footer-grid { display: grid; grid-template-columns: repeat(4, clamp(200px, 250px, 300px)) 1fr; gap: 20px; }
.site-footer h3 { margin-bottom: 16px; font-size: 24px; font-weight: 500; line-height: 34px; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 16px; }
.footer-menu a { color: #f1f3f4; font-size: 16px; line-height: 22px; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-direction: column; min-height: 360px; color: #f1f3f4; font-size: 13px; line-height: 1.5; }
.footer-legal a { text-decoration: underline; }
.footer-design { margin-top: auto; font-size: 14px; }
.clinic-modal { position: relative; border: 0; border-radius: 0; }
.clinic-modal > .btn-close { position: absolute; z-index: 2; top: 20px; right: 20px; }
.clinic-modal h2 { margin-bottom: 18px; }
.review-links { display: grid; gap: 12px; }
.review-links a, .review-links .review-link { display: block; padding: 15px 18px; background: #eef1ef; text-transform: uppercase; }
.review-links a:hover { background: #dfe4e0; }
.review-link--disabled { color: #7b817d; cursor: default; }
.inner-page { min-height: 60vh; }
.inner-page > h1 { margin-bottom: 42px; font-size: clamp(36px, 4vw, 72px); font-weight: 400; text-transform: uppercase; }

.footer-policy a {
    color: #F0E65A;
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .clinic-container { width: min(calc(100% - clamp(48px, 7.5vw, 72px)), var(--clinic-container)); }
    .section-head { align-items: flex-start; flex-wrap: wrap; }
    .section-head > h2 { min-width: 0; }
    .section-head .slider-controls { flex: 0 0 auto; }
}

@media (max-width: 959.98px) {
    :root { --clinic-container: 1100px; }
    .hero-card { min-height: 570px; }
    .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ratings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tech-grid { grid-template-rows: repeat(3, 200px); }
}

@media (max-width: 959.98px) {
    .tech-card__empty { display: none; }
    .section-space { padding-top: 80px; padding-bottom: 80px; }
    .hero-section { padding-bottom: 60px; }
    .hero-card { min-height: 500px; }
    .hero-card h1 { max-width: 75%; padding: 28px 24px; }
    .hero-award { width: 118px; height: 118px; bottom: 20px; left: 20px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card--big { grid-column: span 2; }
    .ambassador-card { min-height: 360px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
    .tech-card { grid-column: auto !important; grid-row: auto !important; min-height: 260px; }
    .first-visit-video { min-height: 470px; }
    .mission-copy h2 { font-size: 34px; }
    .map-frame { height: 480px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1.05fr; column-gap: 54px; row-gap: 44px; }
    .footer-column--patients { grid-column: 1; grid-row: 1; }
    .footer-column--useful { grid-column: 2; grid-row: 1; }
    .footer-column--services { grid-column: 1; grid-row: 2; }
    .footer-column--other { grid-column: 2; grid-row: 2; }
    .footer-legal { grid-column: 3; grid-row: 1 / span 2; min-height: 100%; }
}

@media (max-width: 374.98px) {
    .clinic-container { width: min(calc(100% - 28px), var(--clinic-container)); }
    .clinic-container .row { --bs-gutter-x: 1.5rem; }
    .hero-section { width: 100%; }
    .hero-card { min-height: 520px; border-radius: 0; background-position: 55% center; }
    .hero-card h1 { max-width: none; padding: 22px 16px; font-size: 24px; }
    .hero-patients { top: auto; right: 16px; bottom: 22px; }
    .hero-patients strong { font-size: 22px; }
    .hero-award { width: 105px; height: 105px; }
    .display-heading { font-size: 31px; }
    .services-grid { grid-template-columns: 1fr; gap: 26px; }
    .service-card { min-height: 76px; }
    .service-card--big { grid-column: auto; min-height: 150px; padding: 22px 150px 18px 20px; }
    .service-card--big .kids-logo { top: 24px; right: 14px; width: 132px; }
    .section-head { align-items: flex-end; flex-wrap: wrap; margin-bottom: 36px; }
    .section-head > .d-flex { flex-wrap: wrap; }
    .reviews-section .section-head > .d-flex,
    .stories-section .section-head > .d-flex { flex-direction: row-reverse; justify-content: space-between; width: 100%; }
    .offer-card { min-height: 310px; padding: 25px; }
    .offer-card h3 { font-size: 22px; }
    .ratings-grid { grid-template-columns: 1fr; }
    .rating-card { min-height: 160px; }
    .blog-card { min-height: 240px; }
    .story-comparison { --comparison-position: 20%; }
    .clinic-today h2 { margin-bottom: 26px; }
    .clinic-video-mosaic { aspect-ratio: 327 / 183.074; }
    .mission-copy .section-kicker { margin-bottom: 15px; font-size: 12px; }
    .mission-copy h2 { margin-bottom: 40px; font-size: 24px; line-height: 1.18; letter-spacing: 0; }
    .mission-copy h2 span { display: inline; }
    .mission-copy h2 span:not(:last-child)::after { content: " "; }
    .stats-grid article { min-height: auto; }
    .clinic-btn--pale { min-width: 100%; }
    .tech-grid { grid-template-columns: 1fr; }
    .first-visit-video { min-height: 320px; }
    .play-button--large { width: 62px; height: 62px; }
    .contacts-head { align-items: flex-start; flex-direction: column; gap: 16px; }
    .contacts-head h2 { font-size: 18px; }
    .contacts-head > a { font-size: 18px; }
    .map-frame { height: 520px; }
    .clinic-map-marker { top: 44%; left: 44%; width: 32px; height: 46px; }
    .site-footer { padding: 52px 0 38px; }
    .footer-grid { display: block; }
    .footer-column + .footer-column { margin-top: 36px; }
    .footer-menu a { font-size: 14px; }
    .footer-legal { min-height: 0; margin-top: 34px; }
    .footer-design { margin-top: 34px; }
}


/* Treatment responsive layouts: 375–959.98px and compact below 375px. */
@media (min-width: 375px) and (max-width: 959.98px) {
    .treatment-section { padding-bottom: 36px; }
    .treatment-container { width: calc(100% - clamp(48px, 7.5vw, 72px)); max-width: none; margin-inline: auto; }
    .treatment-heading { max-width: none; margin-bottom: clamp(35px, 4.4vw, 42px); font-size: clamp(28px, 4.17vw, 40px); line-height: 1.4; }
    .treatment-layout { display: block; height: auto; }
    .treatment-card { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); width: 100%; height: auto; overflow: hidden; border-radius: 20px; background: #dfdbd7; }
    .treatment-card::before { display: none; }
    .treatment-card__media { width: calc(100% - clamp(48px, 7.5vw, 72px)); max-width: 282px; height: auto; min-height: 280px; margin: clamp(24px, 3.75vw, 36px) auto 0; background: url('/local/templates/clinic/assets/images/doctor-plan-desktop.png') center / 100% 100% no-repeat; }
    .treatment-card__copy { height: auto; min-height: 320px; padding: clamp(24px, 3.75vw, 36px); }
    .treatment-note { width: 700px; max-width: 100%; height: auto; margin-top: 28px; padding: 0; border-left: 0; font-size: 15px; line-height: 22px; }
    .treatment-note .section-kicker { margin-bottom: 12px; font-size: 16px; line-height: 22px; }
    .treatment-steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); grid-template-rows: none; column-gap: 20px; min-height: 0; margin-top: 21px; }
    .treatment-steps article, .treatment-steps article:nth-child(even), .treatment-steps article:nth-child(odd) { min-height: 105px; padding: 0; border: 0; }
    .treatment-button { width: 100%; min-width: 0; }
}

@media (max-width: 374.98px) {
    .treatment-section { padding-bottom: 32px; }
    .treatment-container { width: calc(100% - 48px); max-width: none; margin-inline: auto; }
    .treatment-heading { max-width: none; margin-bottom: 35px; font-size: 28px; line-height: 39px; }
    .treatment-layout { display: block; height: auto; }
    .treatment-card { display: grid; grid-template-columns: 1fr; grid-template-rows: 536px 317px; width: 100%; height: 853px; overflow: hidden; border-radius: 18px; background: #dfdbd7; }
    .treatment-card::before { display: none; }
    .treatment-card__copy { grid-row: 1; justify-content: flex-start; height: 536px; padding: 25px 25px 11px; }
    .treatment-card__media { grid-row: 2; width: calc(100% - 48px); height: 317px; margin: 0 24px; background-image: url('/local/templates/clinic/assets/images/doctor-plan-mobile.png'); }
    .treatment-note { width: 100%; height: auto; margin-top: 28px; padding: 0; border-left: 0; font-size: 15px; line-height: 22px; }
    .treatment-note .section-kicker { margin-bottom: 12px; font-size: 16px; line-height: 22px; }
    .treatment-steps { grid-template-columns: 1fr; grid-template-rows: 127px 152px 127px 127px; row-gap: 22px; min-height: 628px; margin-top: 21px; }
    .treatment-steps article, .treatment-steps article:nth-child(even), .treatment-steps article:nth-child(odd) { min-height: 0; padding: 0; border: 0; }
    .treatment-button { width: 100%; min-width: 0; }
}

/* Header responsive layouts: desktop from 960px, adaptive 375–959.98px, compact below 375px. */
@media (min-width: 375px) and (max-width: 959.98px) {
    .header-top { display: none; }
    .header-main, .header-main .clinic-container { min-height: 222px; }
    .header-main .clinic-container { display: flex !important; flex-wrap: wrap; align-content: flex-start; width: min(calc(100% - clamp(48px, 7.5vw, 72px)), var(--clinic-container)); padding-top: 27px; padding-bottom: 24px; }
    .header-main.is-sticky { position: relative; min-height: 222px; box-shadow: none; }
    .header-main.is-sticky .clinic-container { min-height: 222px; }
    .site-header.has-sticky { padding-bottom: 0; }
    .header-nav { display: none; }
    .accessibility-toggle { order: 1; width: 40px; height: 34px; margin-left: 0; }
    .navbar-toggler { display: block; order: 2; margin-left: auto; }
    .header-main .clinic-brand { order: 3; width: 100%; margin-top: 27px; }
    .clinic-brand__image, .header-main.is-sticky .clinic-brand__image { width: min(229px, 100%); height: auto; }
}

@media (max-width: 374.98px) {
    .header-top { display: none; }
    .header-main, .header-main .clinic-container { min-height: 222px; }
    .header-main .clinic-container { display: flex !important; flex-wrap: wrap; align-content: flex-start; width: min(calc(100% - 48px), var(--clinic-container)); padding-top: 27px; padding-bottom: 24px; }
    .header-main.is-sticky { position: relative; min-height: 222px; box-shadow: none; }
    .header-main.is-sticky .clinic-container { min-height: 222px; }
    .site-header.has-sticky { padding-bottom: 0; }
    .header-nav { display: none; }
    .accessibility-toggle { order: 1; width: 40px; height: 34px; margin-left: 0; }
    .navbar-toggler { display: block; order: 2; margin-left: auto; }
    .header-main .clinic-brand { order: 3; width: 100%; margin-top: 27px; }
    .header-main .clinic-brand__image, .header-main.is-sticky .clinic-brand__image { width: 327px; height: 110px; max-width: 100%; }
}


/* Appointment form: desktop from 960px, adaptive 375–959.98px, compact below 375px. */
@media (min-width: 960px) {
    .appointment-heading { position: relative; top: -13px; margin-bottom: 51.375px; }
    .appointment-section { padding-bottom: 96px; }
    .appointment-lead { font-size: 18px; line-height: 25px; }
    .clinic-webform .form-question:not(.form-question--consent) { height: 104px; }
    .clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) { margin-top: 64px; }
    .clinic-webform .form-label { position: relative; top: 5px; margin-bottom: 0; font-size: 18px; line-height: 25px; }
    .clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .clinic-webform textarea,
    .clinic-webform select { height: 79px; min-height: 79px; padding: 11px 0 7px; font-size: 32px; line-height: 58px; }
    .clinic-consent { font-size: 14px; line-height: 20px; }
    .clinic-webform .form-question--consent { margin-top: 18px; }
    .clinic-webform .form-question--consent + .col-12 { margin-top: 108px; }
    .clinic-webform .clinic-btn--wide { height: 98px; min-height: 98px; font-size: 24px; }
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .appointment-section { padding-top: 48px; padding-bottom: 35.16px; }
    .appointment-section .clinic-container { width: calc(100% - clamp(48px, 7.5vw, 72px)); max-width: none; }
    .appointment-heading { position: relative; top: -1px; width: 100%; margin-bottom: 32.8px; }
    .appointment-section h2 { position: relative; top: -4px; margin-bottom: 28px; font-size: 40px; line-height: 1.08; }
    .appointment-lead { font-size: 18px; line-height: 25px; }
    .appointment-layout { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
    .appointment-collage { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; background-image: url('/local/templates/clinic/assets/images/form-collage-tablet.png'); }
    .clinic-webform .form-question:not(.form-question--consent) { height: 104px; }
    .clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) { margin-top: 62px; }
    .clinic-webform .form-label { position: relative; top: 5px; margin-bottom: 4px; font-size: 18px; line-height: 19px; }
    .clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .clinic-webform textarea,
    .clinic-webform select { height: 79px; min-height: 79px; padding: 13px 0 7px; font-size: 32px; line-height: 58px; }
    .clinic-consent { font-size: 14px; line-height: 20px; }
    .clinic-webform .form-question--consent { margin-top: 18px; }
    .clinic-webform .form-question--consent + .col-12 { margin-top: 88px; }
    .clinic-webform .clinic-btn--wide { height: 98px; min-height: 98px; font-size: 24px; }
}

@media (max-width: 374.98px) {
    .appointment-section { padding-top: 24px; padding-bottom: 24px; }
    .appointment-section .clinic-container { width: calc(100% - 48px); max-width: none; }
    .appointment-heading { width: 100%; margin-bottom: 22px; }
    .appointment-section h2 { margin-bottom: 19px; font-size: 28px; line-height: 1.25; }
    .appointment-lead { font-size: 18px; line-height: 25px; }
    .appointment-mobile-break { display: block; }
    .appointment-layout { display: flex; flex-direction: column; gap: 20px; }
    .appointment-collage { order: -1; width: 100%; height: auto; min-height: 0; aspect-ratio: 327 / 328; background-image: url('/local/templates/clinic/assets/images/form-collage-desktop.png'); }
    .appointment-form { padding: 0; }
}


@media (min-width: 375px) and (max-width: 599.98px) {
    .appointment-collage {
        background-image: url('/local/templates/clinic/assets/images/form-collage-desktop.png');
    }
}
@media (max-width: 599.98px) {
    .appointment-lead a[href^="tel:"] {
        display: inline-block;
        white-space: nowrap;
    }
    .appointment-lead a[href^="tel:"] br.appointment-mobile-break {
        display: none;
    }
}

/* Generic standard bitrix:news pages */
.content-card { height: 100%; overflow: hidden; background: #f2f4f2; }
.content-card__image { display: block; aspect-ratio: 4/3; overflow: hidden; }
.content-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.content-card:hover .content-card__image img { transform: scale(1.025); }
.content-card__body { padding: 28px; }
.content-card h2 { margin-bottom: 16px; font-size: 24px; text-transform: none; }
.content-card__text { margin-bottom: 24px; color: #60676c; }
.content-detail { max-width: 1050px; }
.content-detail__image { width: 100%; max-height: 680px; margin-bottom: 42px; object-fit: cover; }
.content-detail__text { font-size: 18px; line-height: 1.7; }
.content-properties { margin-top: 50px; border-top: 1px solid #ddd; }
.content-properties > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid #ddd; }
.content-properties dt { font-weight: 700; }
.content-properties dd { margin: 0; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.blog-filter button { padding: 10px 18px; border: 1px solid #bfc5c2; border-radius: 30px; background: transparent; }
.blog-filter button.is-active, .blog-filter button:hover { color: #fff; background: var(--clinic-dark); border-color: var(--clinic-dark); }
.blog-catalog-card .content-card__image { position: relative; }

.article-author { display: flex; align-items: center; gap: 18px; margin: 0 0 32px; padding: 20px; background: #eef1ef; }
.article-author img { width: 82px; height: 82px; object-fit: cover; }
.article-author div { display: grid; gap: 3px; }
.article-author small { color: #747b77; text-transform: uppercase; }
.article-author strong { font-size: 18px; }
.article-author span { color: #747b77; }
.service-faq { margin-bottom: 118px; }
.service-faq > h2 { margin-bottom: 28px; }
.faq-doctor-card { display: grid; gap: 8px; }
.faq-doctor-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; background: #eef1ef; }
.faq-doctor-card strong { font-size: 20px; }
.faq-doctor-card span { color: #747b77; }
.clinic-faq-accordion .accordion-item { border-color: #d9ddda; }
.clinic-faq-accordion .accordion-button { padding: 22px 0; font-size: 20px; font-weight: 500; box-shadow: none; }
.clinic-faq-accordion .accordion-button:not(.collapsed) { color: inherit; background: transparent; }
.clinic-faq-accordion .accordion-body { padding: 0 0 24px; }


/* About page: first screen — supplied 1920 / 960 / 375 SVG mockups. */

@media (min-width: 960px) and (max-width: 1491.98px) {
    .about-hero__title { width: clamp(600px, calc(166.917px + 45.1128vw), 840px); }
}

/* About page: mission */

/* About page: complete layout */

/* «Интерьер клиники»: точная геометрия и кадрирование из макетов 375 / 960 / 1920. */

@media (max-width: 374.98px) {
    /* Fallback without JavaScript: keep the featured year visible and do not hide continuation years. */
}
html:has(body.page-about), body.page-about, body.page-about main { max-width: 100%; overflow-x: clip; }
@media (max-width: 374.98px) {
    .clinic-container,
    .treatment-container,
    .appointment-section .clinic-container,
    .about-hero__container,
    .about-mission__container,
    .page-about .clinic-today .clinic-container,
    .about-stats__container,
    .about-interior__container,
    .about-history__container,
    .about-principles__container,
    .about-values__container,
    .about-advantages__container,
    .about-safety__container,
    .about-doctors__container { width: calc(100% - 32px); }
    .about-values__pattern,
    .about-values__pattern::before,
    .page-about .tech-card,
    .page-about .reviews-section .person-card__image,
    .page-about .stories-section .story-comparison { width: 100%; max-width: 100%; }
    .about-values__pattern--right,
    .about-values__pattern--left { margin-left: 0; }
    .about-values__pattern--right::before,
    .about-values__pattern--left::before { left: 0; }
}


/* Rating cards are hidden until approved links are filled. Keep the remaining grid balanced. */
.page-about .ratings-grid--count-1 { grid-template-columns: minmax(0, 1fr); }
.page-about .ratings-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-about .ratings-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 375px) and (max-width: 959.98px) {
    .page-about .ratings-grid--count-1 { grid-template-columns: minmax(0, 1fr); }
    .page-about .ratings-grid--count-2,
    .page-about .ratings-grid--count-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}
@media (max-width: 374.98px) {
    .ratings-grid--count-1,
    .ratings-grid--count-2,
    .ratings-grid--count-3,
    .page-about .ratings-grid--count-1,
    .page-about .ratings-grid--count-2,
    .page-about .ratings-grid--count-3 { grid-template-columns: 1fr; }
}

/* Fedoseev /about/: статичный первый экран. Непрефиксованный fallback нужен
 * на случай старой композитной разметки без класса page-about на body. */

/* Fedoseev /about/: итоговая визуальная сверка с макетами 1920 / 960 / 375.
 * Здесь только локальные исправления проблемных изображений. Геометрия, типографика
 * и отступы остальных секций не переопределяются. */

.stories-swiper {
    margin: 0 0 64px;
}

@media (max-width: 1344px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 768px) {
    .page-about .about-stats__actions, .about-stats__actions {
        grid-template-columns: 1fr !important;
        display: grid;
    }
}
@media (max-width: 550px) {
    .home-blog-grid {
        grid-template-rows: 200px 210px !important;
    }
    .dentfriend-plan-grid article {
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
    }
    .dentfriend-plan-grid small {
        font-size: 18px !important;
        line-height: 25px;
        font-weight: 500;
        padding: 24px 0 0 24px;
        margin: -22px 0 0;
        border-left: 5px solid #cdb9a6;
    }
    .dentfriend-plan-grid h3 {
        margin: 24px 0 0 !important;
    }
    .dentfriend-plan-grid p {
        margin: 24px 0 !important;
        padding: 0 0 0 24px !important;
        font-size: 16px !important;
    }
    .dentfriend-plan-grid strong {
        margin: 0 0 -22px 0 !important;
        padding: 0 0 24px 24px !important;
        font-size: 40px !important;
        line-height: 40px !important;
        font-weight: 500 !important;
        border-left: 5px solid #cdb9a6;
    }
}
@media (max-width: 425px) {
    .tech-grid {
        grid-template-columns: 1fr !important;
    }
}

.video-trigger .play-button:not(.video-play-button--mockup) {
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.video-trigger .play-button:not(.video-play-button--mockup)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 29%;
    height: 29%;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translate(-43%, -50%);
}

@media (max-width: 959.98px) {
    .treatment-section .treatment-card .treatment-card__media { background-size: contain; }
}
