@media (min-width: 768px) {
    .page-home .hero-card--kids {
        background: url("../images/hero/banner.png") center center / cover no-repeat;
    }
}

@media (max-width: 767.98px) {
    .page-home .hero-card--kids {
        background: linear-gradient(to bottom, #d9d9d9 0%, #e2e2e2 100%);
    }

    .kids-plan__consult {
        margin: 0;
        padding: 0 0 24px;
    }
    .kids-plan__consult-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 24px 24px 0;
        overflow: visible;
        border-radius: 20px;
        background: rgba(240, 230, 90, 0.3);
    }
    .kids-plan__consult-body h3 {
        margin: 0 0 12px;
        font-size: 24px;
        font-weight: 500;
        line-height: normal;
    }
    .kids-plan__consult-body p {
        margin: 0 0 24px;
        font-size: 24px;
        font-weight: 400;
        line-height: normal;
    }
    .kids-plan__art-wrap {
        position: relative;
        display: flex;
        justify-content: center;
        width: calc(100% + 48px);
        height: auto;
        margin: 0 -24px;
        overflow: visible;
    }
    .kids-plan__art {
        position: relative;
        top: auto;
        left: auto;
        width: min(324.234px, 100%);
        height: auto;
        max-width: 100%;
        max-height: none;
    }
    .kids-plan__note {
        padding-top: 0;
        border-top: 0;
    }
    .kids-plan__button {
        width: 100%;
    }

    .page-home .offers-section {
        padding: 32px 0;
    }
    .page-home .offers-section .section-head {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        margin-bottom: 32px;
    }
    .page-home .offers-section .section-head h2 {
        width: 100%;
        max-width: 700px;
        margin: 0;
        color: #272f39;
        font-size: 28px;
        font-weight: 500;
        line-height: normal;
        text-transform: uppercase;
    }
    .page-home .offers-section .slider-controls {
        gap: 24px;
    }
    .page-home .offers-swiper .swiper-slide,
    .page-home .offers-swiper .swiper-slide:has(.offer-card--picture),
    .page-home .offer-card,
    .page-home .offer-card--picture {
        height: auto;
        min-height: 261px;
    }
    .page-home .offer-card,
    .page-home .offer-card--picture {
        justify-content: flex-start;
        padding: 24px;
        overflow: hidden;
        border-radius: 0;
        background: #fff;
    }
    .page-home .offer-card img,
    .page-home .offer-card--picture img {
        display: none;
    }
    .page-home .offer-card small,
    .page-home .offer-card--picture small {
        display: block;
        width: 100%;
        color: #272f39;
        font-size: 18px;
        font-weight: 400;
        line-height: normal;
    }
    .page-home .offer-card h3,
    .page-home .offer-card--picture h3 {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        color: #272f39;
        font-size: 24px;
        font-weight: 500;
        line-height: normal;
        text-transform: uppercase;
    }
    .page-home .offer-card > div,
    .page-home .offer-card--picture > div {
        width: 100%;
        margin-top: 24px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
    }
    .page-home .offer-card strong,
    .page-home .offer-card--picture strong {
        color: #272f39;
        font-size: 36px;
        font-weight: 500;
        line-height: normal;
        text-transform: uppercase;
    }
    .page-home .offer-card span,
    .page-home .offer-card--picture span {
        color: #272f39;
        font-size: 20px;
        font-weight: 500;
        line-height: normal;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    .page-home .clinic-container {
        width: min(calc(100% - 48px), var(--clinic-container));
    }
    .page-home .section-head,
    .page-home .about-doctors__head {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        margin-bottom: 32px;
    }
    .page-home .section-head h2,
    .page-home .about-doctors h2,
    .page-home .ratings-title,
    .page-home .clinic-today h2,
    .page-home .blog-section h2,
    .page-home .tech-section > .clinic-container > h2,
    .page-home .first-visit h2,
    .page-home .kids-plan__title {
        width: 100%;
        max-width: 700px;
        margin: 0;
        font-size: 28px;
        font-weight: 500;
        line-height: normal;
    }
    .page-home .ratings-title,
    .page-home .clinic-today h2,
    .page-home .tech-section > .clinic-container > h2,
    .page-home .kids-plan__title {
        margin-bottom: 32px;
    }
    .page-home .hero-section {
        padding-bottom: 32px;
    }
    .page-home .services-section,
    .page-home .home-services-hero,
    .page-home .treatment-section,
    .page-home .kids-plan {
        padding-top: 0;
        padding-bottom: 32px;
    }
    .page-home .home-services-grid {
        row-gap: 32px;
        margin-top: 32px;
    }
    .page-home .offers-section,
    .page-home .reviews-section,
    .page-home .stories-section,
    .page-home .ratings-section,
    .page-home .media-section,
    .page-home .blog-section,
    .page-home .clinic-today,
    .page-home .mission-section,
    .page-home .tech-section,
    .page-home .appointment-section,
    .page-home .about-doctors,
    .page-home .kids-dentfriend {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .page-home .first-visit {
        padding-top: 32px;
        padding-bottom: 24px;
    }
    .page-home .first-visit .section-head {
        display: flex;
        margin-bottom: 32px;
    }
    .page-home .first-visit h2 {
        margin-bottom: 12px;
    }
    .page-home .contacts-section {
        padding: 24px 0;
    }
    .page-home .stories-section .clinic-btn--wide,
    .page-home .mission-actions {
        margin-top: 32px;
    }
}

.clinic-brands {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    min-width: 0;
}

.clinic-brand--kids .clinic-brand__image {
    width: auto;
    height: 74px;
    max-width: 150px;
    object-fit: contain;
}

.header-main.is-sticky .clinic-brand--kids .clinic-brand__image {
    width: auto;
    height: 56px;
    max-width: 120px;
}

@media (max-width: 959.98px) {
    .header-main .clinic-brands {
        order: 3;
        width: 100%;
        margin-top: 27px;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .header-main .clinic-brands .clinic-brand {
        order: initial;
        width: auto;
        margin-top: 0;
    }

    .header-main.is-sticky .clinic-brands {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: auto;
        margin: 0;
        gap: 10px;
    }

    .header-main.is-sticky .clinic-brands .clinic-brand {
        grid-column: auto;
        justify-self: auto;
        width: auto;
        margin: 0;
    }

    .header-main.is-sticky .clinic-brand--adult .clinic-brand__image {
        width: 120px;
    }

    .header-main.is-sticky .clinic-brand--kids .clinic-brand__image {
        width: auto;
        height: 40px;
        max-width: 88px;
    }

    #mobileMenu .offcanvas-header .clinic-brands {
        display: flex;
        align-items: center;
        gap: 16px;
        max-width: calc(100% - 24px);
    }

    #mobileMenu .offcanvas-header .clinic-brand--kids .clinic-brand__image {
        width: auto;
        max-width: 140px;
        height: auto;
        max-height: 72px;
    }
}
