/*
 * Fedoseev homepage — one scoped source for layout alignment with the
 * approved 1920 / 960 / 375 mockups.
 * Project ranges: desktop >= 960px; adaptive 375–959.98px; compact < 375px.
 */
.page-home {
    --clinic-dark: #272f39;
    --clinic-text: #272f39;
    --clinic-muted: #eef0ee;
    --clinic-sage: #ccd2cc;
    --clinic-warm: #ded2c6;
    --home-blog-caption: #c8b4a0;
    --home-media-card: #f6f3f2;
    --home-gap: 20px;

}

.page-home .clinic-container, .page-about .hero-section.clinic-container { width: min(calc(100% - clamp(48px, 7.5vw, 72px)), 1420px); max-width: none; }
.page-home .muted-section { background: var(--clinic-muted); }
.page-home .section-space { min-height: 0; padding-top: 0; padding-bottom: 0; }
.page-home .section-head { margin-bottom: clamp(52px, calc(24px + 2.916667vw), 80px); }
.page-home h2 { color: var(--clinic-dark); }

/* Header and first screen. */
.page-home .header-top .clinic-container::after { background: #7d8288; }
:is(.page-home, .page-about) .hero-section { padding-bottom: clamp(52px, calc(-56px + 11.25vw), 160px); }
:is(.page-home, .page-about) .hero-card { height: 710px; min-height: 710px; }
:is(.page-home, .page-about) .hero-card h1 {
    max-width: 900px;
    padding: 42px 38px;
    font-size: 32px;
    line-height: 1.18;
}
:is(.page-home, .page-about) .hero-patients { top: 36px; right: 34px; }
:is(.page-home, .page-about) .hero-award { bottom: 38px; left: 38px; width: 155px; height: 155px; }

/* Services. */


/* Home: services block. One canonical implementation matched to Index 1920 / 960 / 375. */
.page-home .services-section {
    width: min(calc(100% - clamp(48px, 7.5vw, 72px)), 1420px);
    max-width: none;
    padding: 0 0 clamp(42px, calc(-76px + 12.291667vw), 160px);
    color: #272f39;
    container-type: inline-size;
}
.page-home .home-services-hero { padding: 0 0 64px; }
.page-home .home-services-hero__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(620px, 100%), 1fr));
    column-gap: clamp(32px, 5.21vw, 100px);
    row-gap: 36px;
    align-items: start;
}
.page-home .home-services-heading {
    max-width: 620px;
    min-height: 168px;
    margin: 0;
    padding-left: 10px;
    border-left: 10px solid #78645a;
    font-size: 40.5px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: normal;
}
.page-home .home-services-hero__copy {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    column-gap: clamp(20px, 2.08vw, 40px);
    align-items: end;
    width: 100%;
    height: 168px;
}
.page-home .home-services-hero__copy p {
    width: 100%;
    max-width: 340px;
    margin: 0;
    font-size: 16px;
    line-height: 22px;
}
.page-home .home-services-more {
    display: inline-block;
    justify-self: end;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    white-space: nowrap;
}
.page-home .home-services-more:hover { opacity: .65; }
.page-home .home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    column-gap: 20px;
    row-gap: 64px;
    align-items: end;
}
.page-home .home-service-card {
    --service-bar-width: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 121px;
    min-height: 121px;
    padding: 3px 0 0 calc(20px - var(--service-bar-width));
    border-left: var(--service-bar-width) solid var(--service-accent, #272f39);
    color: #272f39;
    transition: background-color .2s ease;
}
.page-home .home-service-card:hover { background: #f5f5f3; }
.page-home .home-service-card strong {
    display: block;
    max-width: none;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    text-transform: uppercase;
    overflow-wrap: normal;
    -webkit-text-stroke: .12px currentColor;
}
.page-home .home-service-card span {
    display: block;
    margin-top: 0;
    font-size: 17px;
    line-height: 21px;
}
.page-home .home-service-card[data-service-card="service-diagnostics"] { --service-bar-width: 10px; }
.page-home .home-service-card[data-service-card="service-prevention"] { --service-bar-width: 6px; }
.page-home .home-service-card[data-service-card="service-surgery"] { --service-bar-width: 2px; }
.page-home .home-service-card[data-service-card="service-implant"] { --service-bar-width: 4px; }
.page-home .home-service-card[data-service-card="service-treatment"] { --service-bar-width: 10px; }
.page-home .home-service-card[data-service-card="service-ortho"] { --service-bar-width: 6px; }
.page-home .home-service-card[data-service-card="service-whitening"] { --service-bar-width: 4px; }
.page-home .home-service-card[data-service-card="service-design"] { --service-bar-width: 2px; }
.page-home .home-service-card[data-service-card="service-prosthetics"] { --service-bar-width: 6px; }
.page-home .home-service-card[data-service-card="service-trauma"] { --service-bar-width: 4px; }
.page-home .home-service-card--kids {
    grid-column: span 2;
    height: 194px;
    min-height: 194px;
    padding: 74px clamp(205px, 22vw, 310px) 24px 34px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #f0e65a;
}
.page-home .home-service-card--kids:hover { background: #f0e65a; }
.page-home .home-service-card--kids strong {
    max-width: 190px;
    font-size: 22px;
    line-height: 33px;
}
.page-home .home-service-card--kids img {
    position: absolute;
    top: 0;
    right: 30px;
    width: clamp(180px, 22vw, 310px);
    height: 194px;
    object-fit: fill;
}

@container (max-width: 1000px) {
    .page-home .home-services-hero { padding-bottom: 36px; }
    .page-home .home-services-hero__container { display: block; }
    .page-home .home-services-heading {
        width: 100%;
        max-width: 860px;
        min-height: 0;
        font-size: clamp(26px, 4.17vw, 40px);
        line-height: 1.4;
    }
    .page-home .home-services-hero__copy {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 37px;
    }
    .page-home .home-services-hero__copy p {
        max-width: none;
        margin: 0 0 25px;
    }
    .page-home .home-services-more { justify-self: start; }
    .page-home .home-services-grid {
        column-gap: 20px;
        row-gap: 36px;
    }
    .page-home .home-service-card[data-service-card="service-diagnostics"] { order: 10; }
    .page-home .home-service-card[data-service-card="service-prevention"] { order: 20; }
    .page-home .home-service-card[data-service-card="service-surgery"] { order: 30; }
    .page-home .home-service-card[data-service-card="service-implant"] { order: 40; }
    .page-home .home-service-card[data-service-card="service-treatment"] { order: 50; }
    .page-home .home-service-card[data-service-card="service-ortho"] { order: 60; }
    .page-home .home-service-card[data-service-card="service-prosthetics"] { order: 70; }
    .page-home .home-service-card[data-service-card="service-whitening"] { order: 80; }
    .page-home .home-service-card[data-service-card="service-trauma"] { order: 90; }
    .page-home .home-service-card[data-service-card="service-design"] { order: 100; }
    .page-home .home-service-card--kids {
        order: 110;
        grid-column: 1 / -1;
        padding: 34px clamp(205px, 34vw, 310px) 24px 34px;
    }
    .page-home .home-service-card--kids img {
        right: 0;
        width: clamp(180px, 34vw, 310px);
        max-width: 55%;
        object-fit: contain;
        object-position: right center;
    }
}

@container (max-width: 400px) {
    .page-home .home-services-hero { padding-bottom: 31px; }
    .page-home .home-services-heading {
        padding-left: 8px;
        font-size: 26px;
        line-height: 34px;
    }
    .page-home .home-services-hero__copy { padding-top: 34px; }
    .page-home .home-services-hero__copy p {
        margin-bottom: 25px;
        font-size: 16px;
        line-height: 22px;
    }
    .page-home .home-services-more { font-size: 18px; line-height: 22px; }
    .page-home .home-services-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .page-home .home-service-card strong { max-width: none; }
    .page-home .home-service-card[data-service-card="service-diagnostics"] strong { max-width: 210px; }
    .page-home .home-service-card[data-service-card="service-ortho"] strong { letter-spacing: -.25px; }
    .page-home .home-service-card--kids {
        width: 100%;
        height: 266px;
        min-height: 266px;
        padding: 24px 20px 20px 25px;
        border-radius: 18px;
    }
    .page-home .home-service-card--kids strong {
        max-width: 270px;
        font-size: 22px;
        line-height: 33px;
    }
    .page-home .home-service-card--kids img {
        top: 82px;
        right: -3px;
        width: min(310px, 100%);
        max-width: 100%;
        height: auto;
        aspect-ratio: 310 / 194;
        object-fit: contain;
    }
}

/* Individual treatment plan. */
.page-home .treatment-section { padding-top: 0; padding-bottom: clamp(52px, calc(-36px + 9.166667vw), 140px); }
.page-home .treatment-card__media {
    background-image: url('../images/doctor-plan-desktop.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.page-home .treatment-layout { gap: 20px; }
.page-home .treatment-note .section-kicker { font-weight: 700; }
.page-home .treatment-steps { column-gap: 20px; }

/* Offers + patient content sliders. */
.page-home .offers-section { padding-top: clamp(52px, calc(-40px + 9.583333vw), 144px); padding-bottom: clamp(44px, calc(-48px + 9.583333vw), 136px); overflow: hidden; }
.page-home .offers-section .clinic-container {
    min-width: 0;
    overflow: hidden;
}
.page-home .offers-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.page-home .offers-swiper .swiper-wrapper {
    max-width: 100%;
}
.video-trigger svg {
    position: absolute;
    bottom: 20px;
    right: 20px;
}
.page-home .reviews-swiper, .page-home .stories-swiper, .page-home .media-swiper { overflow: visible !important; }
.page-home .offers-swiper .swiper-slide { height: 360px; }
.page-home .offer-card { height: 360px; min-height: 360px; padding: 34px 36px; }
.page-home .offer-card h3 { font-size: 29px; line-height: 1.18; }

.page-home .reviews-section,
.page-home .stories-section { overflow: hidden; }
.page-home .reviews-section { padding-top: clamp(44px, calc(-48px + 9.583333vw), 136px); padding-bottom: clamp(43px, calc(2px + 4.270833vw), 84px); }
.page-home .stories-section { padding-top: clamp(43px, calc(2px + 4.270833vw), 84px); padding-bottom: clamp(36px, calc(-56px + 9.583333vw), 128px); }
.page-home .reviews-swiper .swiper-slide,
.page-home .stories-swiper .swiper-slide { height: auto; }
.page-home .person-card__image,
.page-home .story-comparison { width: 100%; aspect-ratio: 1 / 1; }
.page-home .person-card h3,
.page-home .story-card h3 { margin-top: 22px; }
.page-home .stories-section .clinic-btn--wide {
    height: 98px;
    min-height: 98px;
    margin-top: clamp(53px, calc(25px + 2.916667vw), 81px);
    border-radius: 8px;
    background: #ccd2cc;
    font-size: 28px;
    line-height: 34px;
}

/* Dent Friend: 460 + 460 + 460 at 1420; one column when the container is 888. */
.page-home .dentfriend-section {
    padding-top: clamp(36px, calc(-56px + 9.583333vw), 128px);
    padding-bottom: clamp(36px, calc(-56px + 9.583333vw), 128px);
    background: var(--clinic-dark);
}
.page-home .section-head.dentfriend-head { align-items: flex-start; margin-bottom: 0; }
.page-home .dentfriend-section .text-link { min-height: 32px; font-size: 18px; line-height: 22px; }
.page-home .dentfriend-head > .text-link { font-size: 17px; line-height: 20px; letter-spacing: .25px; transform: translateY(-2px); }
.page-home .dentfriend-description {
    max-width: 1050px;
    margin-top: clamp(36px, calc(-24px + 6.25vw), 96px);
    font-size: 18px;
    line-height: 25px;
    letter-spacing: .4px;
    text-align: left;
}
.page-home .dentfriend-ambassadors-head h2 { color: #fff; font-size: 40px; line-height: 43px; }
.page-home .dentfriend-ambassadors-head > .text-link { transform: translateY(clamp(0px, calc(-5.769px + 1.538462vw), 9px)); }

.page-home .dentfriend-section .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: var(--home-gap);
    margin: 0;
}
.page-home .dentfriend-section .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    margin-top: 0;
}
.page-home .ambassador-card { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
.page-home .ambassador-card strong { font-size: 24px; line-height: 28px; }
.page-home .ambassador-card small { margin-top: 4px; font-size: 14px; line-height: 22px; }

/* Ratings. Exact desktop widths: 460 / 220 / 220 / 460 with 20px gaps. */
.page-home .ratings-section {
    padding-top: clamp(52px, calc(-38px + 9.375vw), 142px);
    padding-bottom: clamp(35px, calc(-56px + 9.479167vw), 126px);
    background: var(--clinic-sage);
}
.page-home .ratings-section .clinic-container { container-type: inline-size; }
.page-home .ratings-title { margin-bottom: clamp(52px, calc(24px + 2.916667vw), 80px); }
.page-home .ratings-grid,
.page-home .ratings-grid--count-4 {
    grid-template-columns: 23fr 11fr 11fr 23fr;
    gap: var(--home-gap);
}
.page-home .rating-card {
    height: 220px;
    min-height: 220px;
    padding: 30px;
    border-radius: 8px;
}
.page-home .rating-card__score { display: flex; align-items: baseline; margin-top: auto; }
.page-home .rating-card__score strong { margin: 0; }
.page-home .rating-card__score span { font-size: 18px; color: var(--clinic-dark); }

@container (max-width: 1000px) {
    .page-home .ratings-grid,
    .page-home .ratings-grid--count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-home .rating-card:first-child,
    .page-home .rating-card:last-child { grid-column: 1 / -1; }
}

/* Media. Three 460px cards at desktop, next card remains partially visible. */
.page-home .media-section { padding-top: clamp(36px, calc(-56px + 9.583333vw), 128px); padding-bottom: clamp(26px, calc(-20px + 4.791667vw), 72px); overflow: hidden; }
.page-home .media-section .section-head { margin-bottom: clamp(36px, calc(8px + 2.916667vw), 64px); }
.page-home .media-section .section-head h2 { font-size: 40px; line-height: 1.08; }
.page-home .media-card {
    height: 270px;
    min-height: 270px;
    padding: 36px;
    border-radius: 8px;
    background: var(--home-media-card);
}

/* Blog. Deterministic 12-column composition from the approved desktop mockup. */
.page-home .blog-section { padding-top: clamp(26px, calc(-20px + 4.791667vw), 72px); padding-bottom: clamp(26px, calc(-20px + 4.791667vw), 72px); overflow: hidden; }
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 390px 390px;
    gap: 20px;
}
.home-blog-item { min-width: 0; }
.home-blog-item[hidden] { display: none; }
.home-blog-item[data-home-slot="1"] { grid-column: 1 / 7; grid-row: 1; }
.home-blog-item[data-home-slot="2"] { grid-column: 7 / 13; grid-row: 1; }
.home-blog-item[data-home-slot="3"] { grid-column: 1 / 7; grid-row: 2; }
.home-blog-item[data-home-slot="4"] { grid-column: 7 / 13; grid-row: 2; }
.home-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e7e7e7;
}
.home-blog-card__media {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.home-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .2s ease;
}
.home-blog-card:hover .home-blog-card__media img,
.home-blog-card:focus-visible .home-blog-card__media img { filter: brightness(.9); }
.home-blog-card__title {
    display: none;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: var(--clinic-dark);
    background: var(--home-blog-caption);
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}
.home-blog-item[data-home-slot="1"] .home-blog-card__title { position: absolute; bottom: -100%; left: 0; width: 100%; display: block; transition: all ease .2s; }

.home-blog-item[data-home-slot="1"] .home-blog-card__media {}

.home-blog-card .video-play-button--mockup { top: 50%; left: 50%; }

.home-blog-card:hover .home-blog-card__title {
    bottom: 0;
}

/* Clinic today. No second play overlay when the poster already contains the mockup icon. */
.page-home .clinic-today { padding-top: clamp(26px, calc(-20px + 4.791667vw), 72px); padding-bottom: clamp(26px, calc(-20px + 4.791667vw), 72px); }
.page-home .clinic-today h2 { margin-bottom: clamp(52px, calc(24px + 2.916667vw), 80px); }
.page-home .clinic-video-mosaic { aspect-ratio: 1420 / 795; }
.page-home .clinic-video-mosaic__play { top: 50%; left: 50%; }

/* Mission and statistics — matched to the approved 1920 / 960 / 375 SVGs. */
.page-home .mission-section { padding-top: clamp(26px, calc(-20px + 4.791667vw), 72px); padding-bottom: clamp(44px, calc(-2px + 4.791667vw), 90px); }
.page-home .mission-copy { max-width: 1000px; }
.page-home .mission-copy .section-kicker {
    display: block;
    margin-bottom: 28px;
    color: #272f39;
    font-size: 24px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.page-home .mission-copy h2 {
    max-width: 1000px;
    margin: 0 0 95px;
    color: #272f39;
    font-size: 39px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: normal;
}
.page-home .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 96px;
    margin: 0;
}
.page-home .stats-grid > .col {
    width: auto;
    max-width: none;
    padding: 0;
}
.page-home .stats-grid article {
    position: relative;
    height: 222px;
    min-height: 222px;
    padding: 5px 0 0 30px;
    border: 0;
}
.page-home .stats-grid article::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--stats-line-width, 4px);
    content: '';
    background: #78645a;
}
.page-home .stats-grid > .col:nth-child(1) article { --stats-line-width: 10px; }
.page-home .stats-grid > .col:nth-child(2) article { --stats-line-width: 4px; }
.page-home .stats-grid > .col:nth-child(3) article { --stats-line-width: 8px; }
.page-home .stats-grid > .col:nth-child(4) article { --stats-line-width: 4px; }
.page-home .stats-grid > .col:nth-child(5) article { --stats-line-width: 6px; }
.page-home .stats-grid > .col:nth-child(6) article { --stats-line-width: 2px; }
.page-home .stats-grid strong {
    display: block;
    color: #272f39;
    font-size: 104px;
    font-weight: 300;
    line-height: .9;
    letter-spacing: 0;
}
.page-home .stats-grid h3 {
    margin: 8px 0 25px;
    color: #272f39;
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}
.page-home .stats-grid p {
    max-width: 430px;
    margin: 0;
    color: #272f39;
    font-size: 16px;
    line-height: 19px;
}
.page-home .mission-actions { margin-top: 72px; gap: 20px; }

/* Technologies. Exact 1920px mosaic from the approved layout. */
.page-home .tech-section { padding-top: clamp(44px, calc(-2px + 4.791667vw), 90px); padding-bottom: clamp(26px, calc(-20px + 4.791667vw), 72px); }
.page-home .tech-section > .clinic-container > h2 {
    margin-bottom: clamp(40px, calc(12px + 2.916667vw), 68px);
    font-size: 40px;
    line-height: 1.08;
}
.page-home .tech-card {
    height: 340px;
    min-height: 340px;
}
.page-home .tech-card::after {
    z-index: 2;
    pointer-events: none;
    background: rgba(39, 49, 61, .2);
}
.page-home .tech-card:hover::after { background: rgba(39, 49, 61, .2); }
.page-home .tech-card img { object-position: center; }
.page-home .tech-card strong {
    top: 20px;
    right: 20px;
    left: 20px;
    font-size: 19px;
    font-weight: 700;
    line-height: 25px;
}
/* .page-home .tech-card--1 { grid-column: 1 / 7; grid-row: 1; }
.page-home .tech-card--2 { grid-column: 7 / 10; grid-row: 1; }
.page-home .tech-card--3 { grid-column: 1 / 4; grid-row: 2; }
.page-home .tech-card--4 { grid-column: 7 / 13; grid-row: 2; }
.page-home .tech-card--5 { grid-column: 4 / 7; grid-row: 3; }
.page-home .tech-card--6 { grid-column: 10 / 13; grid-row: 3; } */
.page-home .tech-accent {
    display: block;
    align-self: stretch;
    z-index: 1;
    pointer-events: none;
}
.page-home .tech-accent--top-right {
    grid-column: 12;
    grid-row: 1;
    justify-self: end;
    width: 10px;
    background: #6e7d78;
}
.page-home .tech-accent--middle {
    grid-column: 6;
    grid-row: 2;
    justify-self: end;
    width: 40px;
    background: #463c3c;
}
.page-home .tech-accent--bottom-left {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    width: 60px;
    background: #d2bebe;
}
.page-home .tech-accent--bottom-middle {
    grid-column: 9;
    grid-row: 3;
    justify-self: end;
    width: 20px;
    background: #aab4aa;
}

/* First visit, form and map. */
.page-home .first-visit { padding-top: clamp(26px, calc(-20px + 4.791667vw), 72px); padding-bottom: 0; }
.page-home .first-visit .section-head {
    align-items: flex-end;
    margin-bottom: clamp(42px, calc(15px + 2.8125vw), 69px);
}
.page-home .first-visit h2 {
    
    font-size: 40px;
    font-weight: 400;
    line-height: 43px;
    letter-spacing: .15px;
}
.page-home .first-visit .text-link {
    min-height: 22px;
    
    font-size: 18px;
    line-height: 22px;
    letter-spacing: .4px;
    position: relative;
    top: -3px;
}
.page-home .first-visit-video {
    height: clamp(500px, calc(200px + 31.25vw), 800px);
    min-height: 0;
    aspect-ratio: auto;
}
.page-home .first-visit .play-button--large { width: 80px; height: 80px; font-size: 28px; }
.page-home .appointment-section { padding-top: clamp(45px, calc(-14px + 6.145833vw), 104px); padding-bottom: clamp(52px, calc(7px + 4.6875vw), 97px); }
.page-home .appointment-collage {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    background-image: url('/local/templates/clinic/assets/images/form-collage-home-desktop-exact.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

@media (min-width: 960px) {
    .page-home .appointment-section .clinic-container { container-type: inline-size; }
    .page-home .appointment-heading {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: clamp(37px, calc(8px + 3.020833vw), 66px);
    }
    .page-home .appointment-section h2 {
        margin-bottom: 28px;
        font-size: 40px;
        line-height: 1.08;
    }
}

@container (max-width: 1000px) {
    .page-home .appointment-collage {
        height: 700px;
        min-height: 700px;
        aspect-ratio: auto;
        background-image: url('/local/templates/clinic/assets/images/form-collage-home-tablet-exact.png');
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
}
.page-home .contacts-section { padding-top: clamp(52px, calc(32px + 2.083333vw), 72px); padding-bottom: clamp(52px, calc(2px + 5.208333vw), 102px); background: #f6f3f2; }
.page-home .map-frame { height: 650px; }

/* Homepage vertical geometry: prevent Swiper and Bootstrap utility classes
   from stretching sections beyond their real content height. */
.page-home .offers-section,
.page-home .reviews-section,
.page-home .stories-section,
.page-home .media-section,
.page-home .blog-section,
.page-home .clinic-today,
.page-home .mission-section,
.page-home .tech-section,
.page-home .first-visit,
.page-home .appointment-section,
.page-home .contacts-section {
    height: auto;
    min-height: 0;
}
.page-home .offers-swiper,
.page-home .reviews-swiper,
.page-home .stories-swiper,
.page-home .media-swiper,
.page-home .offers-swiper .swiper-wrapper,
.page-home .reviews-swiper .swiper-wrapper,
.page-home .stories-swiper .swiper-wrapper,
.page-home .media-swiper .swiper-wrapper {
    height: auto;
    min-height: 0;
}
.page-home .reviews-swiper .swiper-wrapper,
.page-home .stories-swiper .swiper-wrapper,
.page-home .media-swiper .swiper-wrapper { align-items: flex-start; }
.page-home .section-head.dentfriend-ambassadors-head {
    margin-top: clamp(42px, calc(-18px + 6.25vw), 102px);
    margin-bottom: clamp(43px, calc(15px + 2.916667vw), 71px);
}
.page-home .stories-section .clinic-btn--wide { margin-top: 55px; }
.page-home .stats-grid { margin: 0; }
.page-home .mission-actions { margin-top: 72px; gap: 20px; }

/* Adaptive layout: 375–959.98px. */
@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .section-head { margin-bottom: clamp(32px, calc(19.18px + 3.418803vw), 52px); }
    :is(.page-home, .page-about) .hero-section { padding-bottom: clamp(42px, calc(35.59px + 1.709402vw), 52px); }
    :is(.page-home, .page-about) .hero-card { height: 710px; min-height: 710px; }
    :is(.page-home, .page-about) .hero-card h1 { max-width: 72%; font-size: clamp(24px, 3.35vw, 32px); }

    .page-home .treatment-section { padding-top: 0; padding-bottom: clamp(42px, calc(35.59px + 1.709402vw), 52px); }
    .page-home .offers-section { padding-top: clamp(42px, calc(35.59px + 1.709402vw), 52px); padding-bottom: clamp(38px, calc(34.15px + 1.025641vw), 44px); }
    .page-home .reviews-section { padding-top: clamp(38px, calc(34.15px + 1.025641vw), 44px); padding-bottom: clamp(36px, calc(31.51px + 1.196581vw), 43px); }
    .page-home .stories-section { padding-top: clamp(36px, calc(31.51px + 1.196581vw), 43px); padding-bottom: 32px; }
    .page-home .dentfriend-section {
        padding-top: clamp(32px, calc(29.44px + .683761vw), 36px);
        padding-bottom: clamp(32px, calc(29.44px + .683761vw), 36px);
    }
    .page-home .ratings-section { padding-top: clamp(42px, calc(35.59px + 1.709402vw), 52px); padding-bottom: clamp(30px, calc(26.79px + .854701vw), 35px); }
    .page-home .media-section { padding-top: clamp(40px, calc(32.307692px + 2.051282vw), 52px); padding-bottom: clamp(20px, calc(16.15px + 1.025641vw), 26px); }
    .page-home .media-section .section-head { margin-bottom: clamp(32px, calc(19.18px + 3.418803vw), 52px); }
    .page-home .media-section .section-head h2 {
        min-width: 220px;
        font-size: clamp(28px, calc(20.307692px + 2.051282vw), 40px);
    }
    .page-home .media-card { padding: clamp(24px, calc(16.307692px + 2.051282vw), 36px); }
    .page-home .media-card h3 { margin-top: clamp(25px, calc(14.74359px + 2.735043vw), 41px); }
    .page-home .blog-section,
    .page-home .clinic-today { padding-top: clamp(20px, calc(16.15px + 1.025641vw), 26px); padding-bottom: clamp(20px, calc(16.15px + 1.025641vw), 26px); }
    .page-home .mission-section { padding-top: clamp(20px, calc(16.15px + 1.025641vw), 26px); padding-bottom: clamp(38px, calc(34.15px + 1.025641vw), 44px); }
    .page-home .mission-copy .section-kicker {
        margin-bottom: clamp(16px, calc(10.87px + 1.367521vw), 24px);
        font-size: clamp(18px, calc(14.15px + 1.025641vw), 24px);
        line-height: clamp(22px, calc(17.51px + 1.196581vw), 29px);
    }
    .page-home .mission-copy h2 {
        margin-bottom: clamp(29px, calc(-13.31px + 11.282051vw), 95px);
        font-size: clamp(28px, calc(20.95px + 1.880342vw), 39px);
        line-height: clamp(39px, calc(28.10px + 2.905983vw), 56px);
    }
    .page-home .stats-grid { grid-template-columns: 1fr; row-gap: 21px; }
    .page-home .stats-grid article {
        height: auto;
        min-height: 0;
        padding: 0 0 5px 30px;
    }
    .page-home .stats-grid strong {
        font-size: clamp(55px, calc(23.59px + 8.376068vw), 104px);
    }
    .page-home .stats-grid h3 {
        margin: 8px 0 20px;
        font-size: clamp(24px, calc(9.90px + 3.760684vw), 46px);
    }
    .page-home .stats-grid p {
        font-size: clamp(13px, calc(11.08px + .512821vw), 16px);
        line-height: clamp(17px, calc(15.72px + .341880vw), 19px);
    }
    .page-home .tech-section { padding-top: clamp(38px, calc(34.15px + 1.025641vw), 44px); padding-bottom: clamp(20px, calc(16.15px + 1.025641vw), 26px); }
    .page-home .first-visit { padding-top: clamp(20px, calc(16.15px + 1.025641vw), 26px); padding-bottom: 0; }
    .page-home .first-visit .section-head { display: block; margin-bottom: 32px; }
    .page-home .first-visit h2 { margin-bottom: 14px; font-size: 28px; line-height: 39px; }
    .page-home .first-visit .text-link { min-height: 22px; font-size: 18px; line-height: 22px; letter-spacing: .4px; top: 0; }
    .page-home .appointment-section { padding-top: clamp(30px, calc(20.385px + 2.564103vw), 45px); padding-bottom: clamp(42px, calc(35.59px + 1.709402vw), 52px); }
    .page-home .contacts-section { padding-top: clamp(42px, calc(35.59px + 1.709402vw), 52px); padding-bottom: clamp(42px, calc(35.59px + 1.709402vw), 52px); }

    /* Dent Friend: fluid 375–959.98 layout from the approved 375 and 960 mockups. */
    .page-home .section-head.dentfriend-head {
        flex-wrap: wrap;
        row-gap: 32px;
        margin-bottom: 0;
    }
    .page-home .dentfriend-logo {
        width: clamp(311px, calc(247.54px + 16.923077vw), 410px);
        max-width: calc(100% - clamp(0px, calc(13.128px - 1.367521vw), 8px));
        margin-left: clamp(0px, calc(13.128px - 1.367521vw), 8px);
    }
    .page-home .dentfriend-head > .text-link {
        margin-left: clamp(0px, calc(13.128px - 1.367521vw), 8px);
    }
    .page-home .dentfriend-description {
        margin-top: clamp(27px, calc(19.949px + 1.880342vw), 38px);
        margin-right: clamp(0px, calc(13.128px - 1.367521vw), 8px);
        margin-left: clamp(0px, calc(13.128px - 1.367521vw), 8px);
    }
    .page-home .section-head.dentfriend-ambassadors-head {
        flex-wrap: wrap;
        row-gap: 7px;
        margin-top: clamp(32px, calc(25.59px + 1.709402vw), 42px);
        margin-bottom: clamp(27px, calc(16.744px + 2.735043vw), 43px);
    }
    .page-home .dentfriend-ambassadors-head h2 {
        flex: 1 1 500px;
        font-size: clamp(28px, calc(20.308px + 2.051282vw), 40px);
        line-height: clamp(39px, calc(36.436px + .683761vw), 43px);
    }

    .page-home .offers-swiper .swiper-slide,
    .page-home .offer-card { height: 322px; min-height: 322px; }
    .page-home .offer-card { padding: 28px; }
    .page-home .offer-card h3 { font-size: 24px; }
    .page-home .ambassador-card { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
    .page-home .first-visit-video {
        height: clamp(327px, calc(216.103px + 29.57265vw), 500px);
        min-height: 0;
        aspect-ratio: auto;
    }
    .page-home .map-frame { height: 540px; }
}

/* Home blog typography and exact header geometry from the approved mockups. */
@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .blog-section h2 {
        font-size: clamp(29px, calc(21.948718px + 1.880342vw), 40px);
        line-height: clamp(34px, calc(28.230769px + 1.538462vw), 43px);
    }
}

@media (min-width: 960px) {
    .page-home .blog-section h2 { font-size: 40px; line-height: 43px; }
}

/* Compact layout: below 375px. */
@media (max-width: 374.98px) {
    .page-home .section-head { margin-bottom: 32px; }
    .page-home .section-head h2 { width: 100%; }
    :is(.page-home, .page-about) .hero-section { padding-bottom: 40px; }
    :is(.page-home, .page-about) .hero-card { height: 613px; min-height: 613px; }
    :is(.page-home, .page-about) .hero-card h1 { max-width: 100%; padding: 24px; font-size: 19px; line-height: 1.45; }
    :is(.page-home, .page-about) .hero-patients { top: 216px; right: auto; bottom: auto; left: 24px; }
    :is(.page-home, .page-about) .hero-award { right: 24px; bottom: 24px; left: 24px; width: auto; height: auto; aspect-ratio: 1 / 1; }

    .page-home .treatment-section { padding-top: 0; padding-bottom: 40px; }
    .page-home .offers-section { padding-top: 40px; padding-bottom: 36px; }
    .page-home .reviews-section { padding-top: 36px; padding-bottom: 34px; }
    .page-home .stories-section { padding-top: 34px; padding-bottom: 32px; }
    .page-home .dentfriend-section { padding-top: 32px; padding-bottom: 32px; }
    .page-home .ratings-section { padding-top: 40px; padding-bottom: 28px; }
    .page-home .media-section { padding-top: 40px; padding-bottom: 20px; }
    .page-home .media-section .section-head h2 { font-size: 28px; line-height: 1.15; }
    .page-home .media-card h3 { margin-top: 25px; }
    .page-home .blog-section,
    .page-home .clinic-today { padding-top: 20px; padding-bottom: 20px; }
    .page-home .mission-section { padding-top: 20px; padding-bottom: 36px; }
    .page-home .tech-section { padding-top: 36px; padding-bottom: 20px; }
    .page-home .first-visit { padding-top: 20px; padding-bottom: 0; }
    .page-home .first-visit .section-head { display: block; margin-bottom: 32px; }
    .page-home .first-visit h2 { margin-bottom: 14px; font-size: 28px; line-height: 39px; }
    .page-home .first-visit .text-link { min-height: 22px; font-size: 18px; line-height: 22px; letter-spacing: .4px; top: 0; }
    .page-home .appointment-section { padding-top: 30px; padding-bottom: 40px; }
    .page-home .contacts-section { padding-top: 40px; padding-bottom: 40px; }

    .page-home .offers-swiper .swiper-slide,
    .page-home .offer-card { height: 332px; min-height: 332px; }
    .page-home .offer-card { padding: 24px; }
    .page-home .offer-card h3 { font-size: 22px; }
    .page-home .reviews-swiper,
    .page-home .stories-swiper,
    .page-home .media-swiper { overflow: hidden; }
    .page-home .section-head.dentfriend-head { flex-wrap: wrap; row-gap: 32px; margin-bottom: 0; }
    .page-home .dentfriend-logo { width: 311px; max-width: calc(100% - 8px); margin-left: 8px; }
    .page-home .dentfriend-head > .text-link { margin-left: 8px; }
    .page-home .dentfriend-description { margin: 27px 8px 0; font-size: 18px; line-height: 25px; text-align: left; }
    .page-home .section-head.dentfriend-ambassadors-head { flex-wrap: wrap; row-gap: 7px; margin-top: 32px; margin-bottom: 27px; }
    .page-home .dentfriend-ambassadors-head h2 { flex: 1 1 500px; font-size: 28px; line-height: 39px; }
    .page-home .ambassador-card { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
    .page-home .ambassador-card span { right: 20px; bottom: 18px; left: 20px; }
    .page-home .ambassador-card strong { font-size: 24px; line-height: 28px; }
    .page-home .ambassador-card small { margin-top: 4px; font-size: 16px; line-height: 20px; }
    .page-home .ratings-title { margin-bottom: 40px; }
    .page-home .ratings-grid,
    .page-home .ratings-grid--count-4 { grid-template-columns: 1fr; gap: 20px; }
    .page-home .rating-card,
    .page-home .rating-card:first-child,
    .page-home .rating-card:last-child { grid-column: auto; height: 220px; min-height: 220px; }
    .page-home .media-card { height: 250px; min-height: 250px; padding: 24px; }
    .home-blog-grid { display: block; }
    .home-blog-item[data-home-slot] { width: 100%; height: 322px; }
    .home-blog-item[data-home-slot="1"] .home-blog-card__media { height: 265px; flex: 0 0 265px; }
    .home-blog-card__title { flex-basis: 57px; padding: 10px 14px; font-size: 13px; line-height: 17px; }
    .page-home .clinic-video-mosaic { aspect-ratio: 327 / 183; }
    .page-home .mission-copy .section-kicker { margin-bottom: 16px; font-size: 18px; line-height: 22px; }
    .page-home .mission-copy h2 { margin-bottom: 29px; font-size: 28px; line-height: 39px; }
    .page-home .stats-grid { grid-template-columns: 1fr; gap: 21px; }
    .page-home .stats-grid article { height: auto; min-height: 0; padding: 0 0 5px 30px; }
    .page-home .stats-grid strong { font-size: 55px; }
    .page-home .stats-grid h3 { margin: 8px 0 20px; font-size: 24px; }
    .page-home .stats-grid p { font-size: 13px; line-height: 17px; }
    .page-home .mission-actions { margin-top: 35px; }
    .page-home .tech-grid { grid-template-columns: 1fr; gap: 20px; }
    .page-home .tech-card[class*="tech-card--"] { height: 340px; min-height: 340px; }
    .page-home .tech-accent { display: none; }
    .page-home .first-visit-video { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
    .page-home .map-frame { height: 520px; }
}

/* The 960px layout has an 888px content container and follows the approved
   two-column composition without adding a fourth viewport breakpoint. */
.page-home .blog-section .clinic-container,
.page-home .mission-section .clinic-container,
.page-home .tech-section .clinic-container { container-type: inline-size; }

@container (min-width: 375px) and (max-width: 1000px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, 242px);
        gap: 20px;
    }
    .home-blog-item[data-home-slot] {
        grid-column: auto;
        grid-row: auto;
        height: 242px;
        align-self: stretch;
    }
    .home-blog-item[data-home-slot="1"] .home-blog-card__media {
        height: 170px;
        flex: 0 0 170px;
        min-height: 170px;
    }
    .home-blog-card__title { flex-basis: 72px; padding: 12px 18px; font-size: 13px; line-height: 18px; }

    .page-home .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .page-home .stats-grid article { height: 222px; min-height: 222px; padding-top: 5px; padding-bottom: 0; }

    .page-home .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 20px;
    }
    .page-home .tech-card[class*="tech-card--"] {
        grid-column: auto;
        grid-row: auto;
        height: 340px;
        min-height: 340px;
    }
    .page-home .tech-accent { display: none; }
}

/* Component-width adaptation used by the approved 960px composition. */
:is(.page-home, .page-about) .hero-section,
.page-home .treatment-container { container-type: inline-size; }

@container (min-width: 425px) and (max-width: 1000px) {
    :is(.page-home, .page-about) .hero-card { height: 570px; min-height: 570px; }
    :is(.page-home, .page-about) .hero-card h1 { max-width: 72%; padding: 28px 28px; font-size: 28px; }
    :is(.page-home, .page-about) .hero-award { right: auto; bottom: 28px; left: 28px; width: 126px; height: 126px; }


    .page-home .treatment-heading {
        max-width: none;
        margin-bottom: 42px;
        font-size: 40px;
        line-height: 56px;
    }
    .page-home .treatment-layout { display: block; height: auto; }
    .page-home .treatment-card {
        display: grid;
        grid-template-columns: minmax(282px, 39.752252%) minmax(0, 1fr);
        width: 100%;
        height: auto;
        min-height: 356px;
        overflow: hidden;
        border-radius: 20px;
        background: #dfdbd7;
    }
    .page-home .treatment-card::before { display: none; }
    .page-home .treatment-card__media {
        align-self: start;
        width: 282px;
        max-width: 100%;
        height: 320px;
        min-height: 320px;
        margin: 36px auto 0;
        background-image: url('../images/doctor-plan-tablet.png');
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    .page-home .treatment-card__copy {
        justify-content: center;
        min-width: 0;
        min-height: 356px;
        padding: 36px 36px 36px 0;
    }
    .page-home .treatment-note {
        width: 700px;
        max-width: 100%;
        height: auto;
        margin-top: 28px;
        padding: 0;
        border-left: 0;
        font-size: 15px;
        line-height: 22px;
    }
    .page-home .treatment-note .section-kicker {
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 700;
        line-height: 22px;
    }
    .page-home .treatment-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        min-height: 0;
        margin-top: 21px;
    }
    .page-home .treatment-steps article,
    .page-home .treatment-steps article:not(:first-child) { min-height: 105px; padding: 0; border: 0; }
    .page-home .treatment-button { width: 100%; min-width: 0; }
}

/* Exact 375px mockup: the inner content is 327px wide and uses the compact
   one-column composition even though the viewport is the adaptive boundary. */
@container (max-width: 374.98px) {
    .page-home .blog-section .section-head {
        row-gap: 26px;
        margin-bottom: 32px;
    }
    .page-home .blog-section .section-head h2 {
        width: 100%;
        font-size: 29px;
        line-height: 34px;
    }

    .page-home .ratings-grid,
    .page-home .ratings-grid--count-4 { grid-template-columns: 1fr; gap: 20px; }
    .page-home .rating-card,
    .page-home .rating-card:first-child,
    .page-home .rating-card:last-child { grid-column: auto; }

    .home-blog-grid { display: block; }
    .home-blog-item[data-home-slot] { width: 100%; height: 322px; }
    .home-blog-item[data-home-slot="1"] .home-blog-card__media { height: 265px; flex: 0 0 265px; }
    .home-blog-card__title { flex-basis: 57px; padding: 10px 14px; font-size: 13px; line-height: 17px; }

    .page-home .stats-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-home .tech-section > .clinic-container > h2 { margin-bottom: 40px; font-size: 29px; line-height: 1.15; }
    .page-home .tech-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; }
    .page-home .tech-card[class*="tech-card--"] {
        grid-column: auto;
        grid-row: auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }
    .page-home .tech-accent { display: none; }

    :is(.page-home, .page-about) .hero-card { height: 613px; min-height: 613px; }
    :is(.page-home, .page-about) .hero-card h1 { max-width: 100%; padding: 24px; font-size: 19px; line-height: 1.45; }
    :is(.page-home, .page-about) .hero-patients { top: 216px; right: auto; bottom: auto; left: 24px; }
    :is(.page-home, .page-about) .hero-award { right: 24px; bottom: 24px; left: 24px; width: auto; height: auto; aspect-ratio: 1 / 1; }


    .page-home .treatment-card {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 536px 317px;
        width: 100%;
        height: 853px;
        min-height: 853px;
        overflow: hidden;
        border-radius: 20px;
        background: #dfdbd7;
    }
    .page-home .treatment-card__copy {
        grid-row: 1;
        justify-content: flex-start;
        height: 536px;
        min-height: 536px;
        padding: 25px 25px 11px;
    }
    .page-home .treatment-card__media {
        grid-row: 2;
        width: calc(100% - 48px);
        max-width: none;
        height: 317px;
        min-height: 317px;
        margin: 0 24px;
        background-image: url('../images/doctor-plan-mobile.png');
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    .page-home .treatment-note {
        width: 100%;
        margin-top: 28px;
        font-size: 15px;
        line-height: 22px;
    }
    .page-home .treatment-note .section-kicker {
        margin-bottom: 12px;
        font-size: 16px;
        font-weight: 700;
        line-height: 22px;
    }
    .page-home .treatment-steps {
        grid-template-columns: 1fr;
        grid-template-rows: 127px 152px 127px 127px;
        row-gap: 22px;
        min-height: 628px;
        margin-top: 21px;
    }
}

/* Homepage hero — corrected after full code review against 1920 / 960 / 375 mockups. */
:is(.page-home, .page-about) .hero-card {
    background-position: center center;
    background-size: cover;
}
:is(.page-home, .page-about) .hero-card::after {
    display: none;
}
:is(.page-home, .page-about) .hero-card h1 {
    box-sizing: border-box;
    margin: 0;
    overflow-wrap: normal;
    word-break: normal;
}
:is(.page-home, .page-about) .hero-patients {
    display: block;
    width: max-content;
    max-width: calc(100% - 48px);
    gap: 0;
}
:is(.page-home, .page-about) .hero-patients strong {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 0;
    line-height: 1;
    text-shadow: none;
}
:is(.page-home, .page-about) .hero-patients strong span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    color: #fff;
    background: #354752;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
:is(.page-home, .page-about) .hero-patients small {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
    padding-left: 0;
    color: #272f39;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
}
:is(.page-home, .page-about) .hero-award__img,
.page-home img.hero-award {
    object-fit: cover;
}

@media (min-width: 960px) {
    :is(.page-home, .page-about) .hero-section {
        padding-bottom: clamp(36px, calc(-72.271px + 11.278195vw), 96px);
    }
    :is(.page-home, .page-about) .hero-card {
        height: 710px;
        min-height: 710px;
    }
    :is(.page-home, .page-about) .hero-card h1 {
        width: clamp(697px, calc(316.278px + 39.661654vw), 908px);
        max-width: calc(100% - 72px);
        padding: 36px;
        font-size: 24px;
        font-weight: 400;
        line-height: 35px;
    }
    :is(.page-home, .page-about) .hero-patients {
        top: 36px;
        right: 36px;
        bottom: auto;
        left: auto;
    }
    :is(.page-home, .page-about) .hero-award {
        right: auto;
        bottom: 36px;
        left: 36px;
        width: 156px;
        height: 156px;
        aspect-ratio: auto;
    }
}

@media (min-width: 375px) and (max-width: 959.98px) {
    :is(.page-home, .page-about) .hero-section {
        padding-bottom: clamp(32px, calc(29.436px + .683761vw), 36px);
    }
    :is(.page-home, .page-about) .hero-card {
        height: clamp(613px, calc(550.821px + 16.581197vw), 710px);
        min-height: clamp(613px, calc(550.821px + 16.581197vw), 710px);
    }
    :is(.page-home, .page-about) .hero-card h1 {
        width: clamp(327px, calc(89.329px + 63.378378vw), 697px);
        max-width: 100%;
        padding: clamp(24px, calc(16.308px + 2.051282vw), 36px);
        font-size: clamp(19px, calc(15.795px + .854701vw), 24px);
        font-weight: 400;
        line-height: clamp(28px, calc(23.513px + 1.196581vw), 35px);
    }
    :is(.page-home, .page-about) .hero-patients {
        top: clamp(36px, calc(331.385px - 30.769231vw), 216px);
        right: auto;
        bottom: auto;
        left: clamp(24px, calc(16.308px + 2.051282vw), 36px);
    }
    :is(.page-home, .page-about) .hero-award {
        right: auto;
        bottom: clamp(24px, calc(16.308px + 2.051282vw), 36px);
        left: clamp(24px, calc(16.308px + 2.051282vw), 36px);
        width: clamp(140px, 40vw, 156px);
        height: clamp(140px, 40vw, 156px);
        aspect-ratio: auto;
    }
}

@media (max-width: 374.98px) {
    :is(.page-home, .page-about) .hero-section {
        padding-bottom: 32px;
    }
    :is(.page-home, .page-about) .hero-card {
        height: 613px;
        min-height: 613px;
    }
    :is(.page-home, .page-about) .hero-card h1 {
        width: 100%;
        max-width: none;
        padding: 24px;
        font-size: 19px;
        font-weight: 400;
        line-height: 28px;
    }
    :is(.page-home, .page-about) .hero-patients {
        top: 216px;
        right: auto;
        bottom: auto;
        left: 24px;
    }
    :is(.page-home, .page-about) .hero-award {
        right: auto;
        bottom: 24px;
        left: 24px;
        width: clamp(140px, 40vw, 156px);
        height: clamp(140px, 40vw, 156px);
        aspect-ratio: auto;
    }
}

/* Treatment typography matched to the approved 375 / 960 / desktop mockups. */
.page-home .treatment-section {
    
}
.page-home .treatment-note,
.page-home .treatment-steps p {
    color: #27313d;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
}
.page-home .treatment-note .section-kicker {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
}
.page-home .treatment-steps h3 {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 0;
}
.page-home .treatment-button {
    
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0;
}

/* Homepage offers — aligned with approved 1920 / 960 / 375 mockups. */
.page-home .offers-section {
    
}
.page-home .offers-section .section-head {
    min-width: 0;
}
.page-home .offers-section .section-head h2 {
    min-width: 0;
    letter-spacing: 0;
}
.page-home .offers-swiper .swiper-slide,
.page-home .offer-card {
    height: 400px;
    min-height: 400px;
}
.page-home .offer-card {
    justify-content: flex-start;
    padding: 38px 36px 36px;
}
.page-home .offer-card small {
    display: block;
    color: #4f565c;
    font-size: 17px;
    font-weight: 400;
    line-height: 22px;
}
.page-home .offer-card h3 {
    max-width: 100%;
    margin: 25px 0 0;
    font-size: 35px;
    font-weight: 500;
    line-height: 50px;
    letter-spacing: 0;
}
.page-home .offer-card > div {
    margin-top: auto;
}
.clinic-container .offer-card strong {
    white-space: nowrap;
}
.page-home .offer-card strong {
    font-size: 35px;
    font-weight: 500;
    line-height: 44px;
    white-space: nowrap;
}
.page-home .offer-card span {
    font-size: 19.4px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0;
}

@media (min-width: 960px) {
    .page-home .offers-section {
        padding-top: clamp(36px, calc(-56px + 9.583333vw), 128px);
    }
    .page-home .offers-section .section-head {
        margin-bottom: clamp(36px, calc(8px + 2.916667vw), 64px);
    }
    .page-home .offers-section .section-head h2 {
        font-size: 40px;
        line-height: 56px;
    }
    .page-home .offer-card {
        padding-bottom: 39px;
    }
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .offers-section .section-head {
        margin-bottom: clamp(21px, calc(40.692px - 2.051282vw), 33px);
    }
    .page-home .offers-swiper .swiper-slide,
    .page-home .offer-card {
        height: auto;
        min-height: clamp(261px, calc(171.865px + 23.760684vw), 400px);
    }
    .page-home .offer-card {
        padding: clamp(24px, calc(16.308px + 2.051282vw), 36px);
        padding-top: clamp(26px, calc(18.308px + 2.051282vw), 38px);
    }
    .page-home .offer-card h3 {
        margin-top: clamp(13px, calc(5.308px + 2.051282vw), 25px);
        font-size: clamp(23px, calc(15.308px + 2.051282vw), 35px);
        line-height: clamp(34px, calc(23.744px + 2.735043vw), 50px);
    }
    .page-home .offer-card > div {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: clamp(10px, calc(14.923px - .512821vw), 13px);
    }
    .page-home .offer-card span {
        font-size: 19.4px;
        line-height: 25px;
    }
}

@media (max-width: 374.98px) {
    .page-home .offers-section .section-head {
        margin-bottom: 32px;
    }
    .page-home .offers-swiper .swiper-slide,
    .page-home .offer-card {
        height: 261px;
        min-height: 261px;
    }
    .page-home .offer-card {
        padding: 26px 24px 24px;
    }
    .page-home .offer-card h3 {
        margin-top: 13px;
        font-size: 23px;
        line-height: 34px;
    }
    .page-home .offer-card > div {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 13px;
    }
    .page-home .offer-card span {
        font-size: 19.4px;
        line-height: 25px;
    }
}

/* Homepage patient reviews — approved 1920 / 960 / 375 composition. */
.page-home .reviews-section {
    
}
.page-home .reviews-section .reviews-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-bottom: 40px;
}
.page-home .reviews-section .reviews-head h2 {
    flex: 1 1 500px;
    min-width: 0;
    margin: 0;
    color: #27313d;
    font-size: 40.5px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: 0;
    white-space: nowrap;
}
.page-home .reviews-head__actions {
    flex: 0 1 320px;
    justify-content: flex-end;
    gap: 24px !important;
    min-width: 0;
    margin-left: auto;
}
.page-home .reviews-section .text-link {
    flex: 0 0 auto;
    min-height: 60px;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0;
}
.page-home .reviews-section .slider-controls {
    flex: 0 0 auto;
}
.page-home .reviews-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.page-home .reviews-swiper .swiper-wrapper {
    align-items: flex-start;
}
.page-home .reviews-swiper .swiper-slide {
    width: 340px;
    max-width: 100%;
    height: auto;
}
.page-home .reviews-section .person-card {
    width: 100%;
    color: #27313d;
}
.page-home .reviews-section .person-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}
.page-home .reviews-section .person-card h3 {
    margin: 36px 0 10px;
    color: #27313d;
    font-size: 18.5px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 0;
}
.page-home .reviews-section .person-card p {
    margin: 0 0 10px;
    color: #27313d;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
}
.page-home .reviews-section .person-card small {
    display: block;
    color: #27313d;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0;
}
.page-home .reviews-section .play-button {
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    padding-left: 4px;
    background: rgba(255, 255, 255, .9);
    font-size: 22px;
    line-height: 1;
}

@media (min-width: 960px) {
    .page-home .reviews-section .reviews-head {
        flex-wrap: nowrap;
    }
    .page-home .reviews-head__actions {
        flex-basis: 320px;
        flex-direction: row;
    }
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .reviews-section .reviews-head {
        align-items: flex-start;
        gap: 21px 0;
        margin-bottom: 31px;
    }
    .page-home .reviews-section .reviews-head h2 {
        flex: 1 1 100%;
        width: 100%;
        font-size: 28.5px;
        line-height: 39px;
    }
    .page-home .reviews-head__actions {
        flex: 1 1 100%;
        flex-direction: row-reverse;
        justify-content: space-between;
        gap: 24px !important;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 374.98px) {
    .page-home .reviews-section .reviews-head {
        align-items: flex-start;
        gap: 21px 0;
        margin-bottom: 31px;
    }
    .page-home .reviews-section .reviews-head h2 {
        flex: 1 1 100%;
        width: 100%;
        font-size: 28.5px;
        line-height: 39px;
    }
    .page-home .reviews-head__actions {
        flex: 1 1 100%;
        flex-direction: row-reverse;
        justify-content: space-between;
        gap: 24px !important;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .reviews-swiper { overflow: hidden; }
}
@media (max-width: 374.98px) {
    .page-home .reviews-swiper { overflow: hidden; }
}


/* Homepage stories: canonical 1920 / 960 / 375 implementation. */
.page-home .stories-section {
    overflow: hidden;
    
}
.page-home .stories-section .stories-head {
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: clamp(35px, calc(7px + 2.916667vw), 63px);
}
.page-home .stories-section .stories-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #27313d;
    font-size: 40.5px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: 0;
    white-space: nowrap;
}
.page-home .stories-head__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 24px !important;
    margin-left: auto;
}
.page-home .stories-section .text-link {
    flex: 0 0 auto;
    min-height: 60px;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0;
}
.page-home .stories-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.page-home .stories-swiper .swiper-wrapper { align-items: flex-start; }
.page-home .stories-swiper .swiper-slide {
    width: 340px;
    max-width: 100%;
    height: auto;
}
.page-home .stories-section .story-card {
    width: 100%;
    color: #27313d;
}
.page-home .stories-section .story-comparison {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}
.page-home .stories-section .story-card h3 {
    margin: 36px 0 10px;
    color: #27313d;
    font-size: 18.5px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 0;
}
.page-home .stories-section .story-card p {
    margin: 0 0 2px;
    color: #7d8288;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
.page-home .stories-section .story-card small {
    display: block;
    color: #7d8288;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .stories-section .stories-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 21px 0;
        margin-bottom: 31px;
    }
    .page-home .stories-section .stories-head h2 {
        flex: 1 1 100%;
        width: 100%;
        font-size: 28.5px;
        line-height: 39px;
        white-space: normal;
    }
    .page-home .stories-head__actions {
        flex: 1 1 100%;
        flex-direction: row-reverse;
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }
    .page-home .stories-swiper { overflow: hidden; }
    .page-home .stories-swiper .swiper-slide { width: calc((100% - 12px) / 2.2); }
    .page-home .stories-section .story-card h3 {
        margin: 14px 0 6px;
        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.35;
        overflow-wrap: break-word;
    }
    .page-home .stories-section .story-card p,
    .page-home .stories-section .story-card small {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .page-home .stories-section .clinic-btn--wide {
        height: 88px;
        min-height: 88px;
        margin-top: 62px;
        font-size: 28px;
        line-height: 34px;
    }
}

@media (max-width: 374.98px) {
    .page-home .stories-section .stories-head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 21px 0;
        margin-bottom: 31px;
    }
    .page-home .stories-section .stories-head h2 {
        flex: 1 1 100%;
        width: 100%;
        font-size: 28.5px;
        line-height: 39px;
        white-space: normal;
    }
    .page-home .stories-head__actions {
        flex: 1 1 100%;
        flex-direction: row-reverse;
        justify-content: space-between;
        width: 100%;
        margin-left: 0;
    }
    .page-home .stories-swiper { overflow: hidden; }
    .page-home .stories-swiper .swiper-slide { width: calc((100% - 10px) / 2.05); }
    .page-home .stories-section .story-card h3 {
        margin: 14px 0 6px;
        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.35;
        overflow-wrap: break-word;
    }
    .page-home .stories-section .story-card p,
    .page-home .stories-section .story-card small {
        font-size: clamp(12px, 3.2vw, 14px);
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .page-home .stories-section .clinic-btn--wide {
        height: 88px;
        min-height: 88px;
        margin-top: 62px;
        font-size: 28px;
        line-height: 34px;
    }
}

/* Appointment form: exact adaptive geometry from the approved 375 / 960 mockups. */
@media (min-width: 375px) and (max-width: 959.98px) {
    .page-home .appointment-section .clinic-container {
        container-type: inline-size;
    }

    .page-home .appointment-heading {
        top: 0;
        margin-bottom: clamp(22px, calc(14.949px + 1.880342vw), 33px);
    }

    .page-home .appointment-section h2 {
        top: 0;
        margin-bottom: 19px;
        font-size: clamp(28px, calc(20.308px + 2.051282vw), 40px);
        line-height: clamp(39px, calc(36.436px + .683761vw), 43px);
    }

    .page-home .appointment-lead {
        max-width: 690px;
        font-size: 18px;
        line-height: 25px;
    }

    .page-home .appointment-layout {
        grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
        gap: 20px;
    }

    .page-home .clinic-webform .form-question:not(.form-question--consent) {
        height: clamp(74px, calc(54.769px + 5.128205vw), 104px);
    }

    .page-home .clinic-webform .form-question:not(.form-question--consent) + .form-question:not(.form-question--consent) {
        margin-top: clamp(16px, calc(-13.487px + 7.863248vw), 62px);
    }

    .page-home .clinic-webform .form-label {
        position: relative;
        top: clamp(0px, calc(-3.205px + .854701vw), 5px);
        margin: 0 0 clamp(2px, calc(.718px + .34188vw), 4px);
        font-size: clamp(15px, calc(13.077px + .512821vw), 18px);
        line-height: clamp(19px, calc(20.641px - .17094vw), 20px);
    }

    .page-home .clinic-webform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
    .page-home .clinic-webform textarea,
    .page-home .clinic-webform select {
        height: clamp(52px, calc(34.692px + 4.615385vw), 79px);
        min-height: clamp(52px, calc(34.692px + 4.615385vw), 79px);
        padding: clamp(8px, calc(4.795px + .854701vw), 13px) 0 7px;
        font-size: clamp(20px, calc(12.308px + 2.051282vw), 32px);
        line-height: clamp(31px, calc(13.692px + 4.615385vw), 58px);
    }

    .page-home .clinic-webform .form-question--consent {
        margin-top: 18px;
    }

    .page-home .clinic-webform .form-question--consent + .col-12 {
        margin-top: clamp(38px, calc(5.949px + 8.547009vw), 88px);
    }

    .page-home .clinic-webform .clinic-btn--wide {
        height: clamp(73px, calc(56.974px + 4.273504vw), 98px);
        min-height: clamp(73px, calc(56.974px + 4.273504vw), 98px);
        font-size: clamp(18px, calc(14.154px + 1.025641vw), 24px);
    }
}

@container (max-width: 699px) {
    .page-home .appointment-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .page-home .appointment-collage {
        order: -1;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        background-image: url('/local/templates/clinic/assets/images/form-collage-home-desktop-exact.png');
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .page-home .appointment-mobile-break {
        display: block;
    }
}

.page-home .dentfriend-section--intro {
    padding-bottom: clamp(54px, 6vw, 96px);
}
.page-home .home-ambassadors-section {
    padding-top: clamp(56px, 6.5vw, 100px);
    padding-bottom: clamp(60px, 7.5vw, 116px);
    color: #374b57;
    background: #fff;
}
.page-home .home-ambassadors-section .section-head.dentfriend-ambassadors-head {
    margin-top: 0;
    margin-bottom: clamp(34px, 4vw, 64px);
}
.page-home .home-ambassadors-section .dentfriend-ambassadors-head h2 {
    color: #374b57;
}
.page-home .home-ambassadors-section .dentfriend-ambassadors-head .text-link {
    color: #374b57;
}
.page-home .home-ambassadors-slider {
    position: relative;
    padding-inline: 76px;
}
.page-home .home-ambassadors-swiper {
    width: 100%;
    overflow: hidden;
}
.page-home .home-ambassadors-swiper .swiper-wrapper {
    align-items: stretch;
}
.page-home .home-ambassadors-swiper .swiper-slide {
    display: flex;
    height: auto;
    min-width: 0;
}
.page-home .home-ambassadors-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.page-home .home-ambassadors-card__photo {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #ececec;
}
.page-home .home-ambassadors-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform .25s ease;
}
.page-home .home-ambassadors-card__photo:hover img {
    transform: none;
}
.page-home .home-ambassadors-card__quote {
    margin: clamp(22px, 3vw, 38px) 0 0;
    color: #374b57;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.page-home .home-ambassadors-card__caption {
    margin-top: 40px;
}
.page-home .home-ambassadors-card__name {
    display: inline-block;
    color: #374b57;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.page-home .home-ambassadors-card__name:hover {
    text-decoration: none;
}
.page-home .home-ambassadors-card__position {
    display: block;
    margin-top: 13px;
    color: #374b57;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}
.page-home .home-ambassadors-nav {
    position: absolute;
    z-index: 2;
    top: clamp(98px, 10.9vw, 164px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 4px;
    border: 0;
    border-radius: 50%;
    color: #374b57;
    background: transparent;
    cursor: pointer;
}
.page-home .home-ambassadors-nav--prev { left: 0; }
.page-home .home-ambassadors-nav--next { right: 0; }
.page-home .home-ambassadors-nav svg { display: block; width: 40px; height: 40px; }
.page-home .home-ambassadors-nav:hover { color: #172b38; background: #f0f2f3; }
.page-home .home-ambassadors-nav:focus-visible { outline: 2px solid #374b57; outline-offset: 3px; }
.page-home .home-ambassadors-nav.swiper-button-disabled { opacity: .3; cursor: default; }
.page-home .home-ambassadors-nav.swiper-button-lock { display: none; }
@media (min-width: 600px) and (max-width: 1099.98px) {
    .page-home .home-ambassadors-slider { padding-inline: 56px; }
    .page-home .home-ambassadors-nav { top: clamp(90px, 16vw, 160px); }
    .page-home .home-ambassadors-card__quote { font-size: 17px; }
}
@media (max-width: 599.98px) {
    .page-home .home-ambassadors-slider { padding-inline: 0; }
    .page-home .home-ambassadors-section .section-head.dentfriend-ambassadors-head {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 10px;
        margin-bottom: 28px;
    }
    .page-home .home-ambassadors-section .dentfriend-ambassadors-head h2 {
        flex: 0 1 auto;
        margin-bottom: 0;
    }
    .page-home .home-ambassadors-section .dentfriend-ambassadors-head > .text-link {
        transform: none;
    }
    .page-home .home-ambassadors-card__quote {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.4;
    }
    .page-home .home-ambassadors-card__caption { margin-top: 27px; }
    .page-home .home-ambassadors-card__name { font-size: 18px; }
    .page-home .home-ambassadors-nav {
        top: calc(50vw - clamp(24px, 3.75vw, 36px) - 22px);
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,.86);
        box-shadow: 0 2px 12px rgba(0,0,0,.08);
    }
    .page-home .home-ambassadors-nav--prev { left: 8px; }
    .page-home .home-ambassadors-nav--next { right: 8px; }
    .page-home .home-ambassadors-nav svg { width: 27px; height: 27px; }
}

@media (max-width: 959.98px) {
    body:is(.page-home, .page-about):not(.access-images-hidden):not(.access-hide-images) .hero-section .hero-card {
        background-image: url('../images/clinic-hero-mobile-20261127.jpg') !important;
    }
}
