body.amma-med-theme img {
    max-width: 100%;
    height: auto;
}

body.amma-med-theme iframe,
body.amma-med-theme table {
    max-width: 100%;
}

body.amma-med-theme :where(
    .amma-header__row,
    .amma-header__nav,
    .amma-header__actions,
    .amma-home-hero__grid,
    .amma-home-hero__content,
    .amma-home-hero__aside,
    .amma-home-brand-card,
    .amma-home-services-grid,
    .amma-home-doctors-grid,
    .amma-home-directions,
    .amma-home-about-grid,
    .amma-home-info-grid,
    .amma-company-overview,
    .amma-about-route,
    .amma-legal-layout,
    .amma-company-doc-grid,
    .amma-company-cards,
    .amma-authority-grid,
    .amma-doc-list,
    .amma-grid,
    .amma-layout-grid,
    .amma-services-hero__grid,
    .amma-services-bottom-grid,
    .amma-archive-doctors-hero__grid,
    .amma-archive-services-hero__grid,
    .smed-cat-hero,
    .smed-cat-layout,
    .amma-site-footer__grid,
    .amma-submenu__grid,
    .amma-price-table-wrap
) > * {
    min-width: 0;
}

body.amma-med-theme :where(
    .amma-page-top__title,
    .amma-home-hero__title,
    .amma-section-title,
    .amma-home-section__title,
    .amma-services-hero__title,
    .amma-archive-services-hero__title,
    .amma-archive-doctors-hero__title,
    .smed-cat-hero__title,
    .amma-specialists-profile__title,
    .amma-company-doc-card__title,
    .amma-home-service-card__title,
    .amma-home-directions__title,
    .amma-submenu-card__title,
    .amma-company-link-card__title,
    .amma-home-doctor-card__name,
    .amma-authority-card__title,
    .amma-doc-card__title,
    .amma-contact-card h3,
    .amma-helper-card h3,
    .amma-info-box h3,
    .amma-price-section__head h2,
    .amma-submenu__title,
    .amma-search-drawer__title,
    .amma-mobile-drawer__title
) {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

body.amma-med-theme .amma-page-top__title {
    font-size: clamp(30px, 3.1vw, 40px);
    line-height: 1.08;
}

body.amma-homepage .amma-home-hero__title {
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.03;
    max-width: 15ch;
}

body.amma-med-theme .amma-section-title,
body.amma-med-theme .amma-home-section__title,
body.amma-med-theme .amma-services-hero__title,
body.amma-med-theme .amma-archive-services-hero__title,
body.amma-med-theme .amma-archive-doctors-hero__title,
body.amma-med-theme .smed-cat-hero__title,
body.amma-med-theme .amma-specialists-profile__title {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.12;
}

body.amma-med-theme .amma-company-doc-card__title,
body.amma-med-theme .amma-home-service-card__title,
body.amma-med-theme .amma-home-directions__title,
body.amma-med-theme .amma-submenu-card__title,
body.amma-med-theme .amma-company-link-card__title,
body.amma-med-theme .amma-home-doctor-card__name,
body.amma-med-theme .amma-authority-card__title,
body.amma-med-theme .amma-doc-card__title,
body.amma-med-theme .amma-contact-card h3,
body.amma-med-theme .amma-helper-card h3,
body.amma-med-theme .amma-info-box h3,
body.amma-med-theme .amma-price-section__head h2 {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.2;
}

body.amma-med-theme .amma-page-top__lead,
body.amma-med-theme .amma-home-hero__lead,
body.amma-med-theme .amma-section-text,
body.amma-med-theme .amma-entry-content,
body.amma-med-theme .amma-company-richtext,
body.amma-med-theme .amma-legal-richtext,
body.amma-med-theme .amma-home-section__text,
body.amma-med-theme .smed-cat-hero__lead,
body.amma-med-theme .amma-archive-services-hero__lead,
body.amma-med-theme .amma-archive-doctors-hero__lead {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.72;
}

body.amma-med-theme :where(
    .amma-page-top__actions,
    .amma-home-hero__actions,
    .amma-home-contact-card__actions,
    .amma-home-about-card__actions,
    .amma-services-hero__actions,
    .amma-services-bottom-card__actions,
    .amma-company-doc-card__actions,
    .amma-company-link-card__actions,
    .amma-home-service-card__actions,
    .amma-quick-actions,
    .amma-filter-row,
    .amma-company-pill-row,
    .amma-legal-anchor-nav,
    .amma-home-hero__contactline,
    .amma-site-footer__actions,
    .amma-site-footer__socials
) {
    flex-wrap: wrap;
}

body.amma-med-theme .amma-home-hero__contactline {
    gap: 10px 16px;
}

body.amma-med-theme .amma-home-hero-links__item,
body.amma-med-theme .amma-home-direction__card,
body.amma-med-theme .amma-company-summary-card,
body.amma-med-theme .amma-company-data-card,
body.amma-med-theme .amma-company-doc-card,
body.amma-med-theme .amma-company-link-card,
body.amma-med-theme .amma-home-service-card,
body.amma-med-theme .amma-home-doctor-card,
body.amma-med-theme .amma-authority-card,
body.amma-med-theme .amma-doc-card,
body.amma-med-theme .amma-helper-card,
body.amma-med-theme .amma-info-box,
body.amma-med-theme .amma-contact-card,
body.amma-med-theme .amma-price-table-wrap,
body.amma-med-theme .amma-company-route-card {
    overflow: hidden;
}

body.amma-med-theme .amma-home-service-card__chip,
body.amma-med-theme .amma-submenu-card__title,
body.amma-med-theme .amma-home-directions__title,
body.amma-med-theme .amma-company-link-card__title,
body.amma-med-theme .amma-home-legal-card__title,
body.amma-med-theme .amma-site-footer__chips a,
body.amma-med-theme .amma-filter-pill {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.amma-med-theme .amma-home-service-card__chip,
body.amma-med-theme .amma-site-footer__chips a,
body.amma-med-theme .amma-filter-pill {
    -webkit-line-clamp: 1;
}

body.amma-med-theme .amma-submenu-card__title,
body.amma-med-theme .amma-home-directions__title,
body.amma-med-theme .amma-company-link-card__title,
body.amma-med-theme .amma-home-service-card__title a,
body.amma-med-theme .amma-home-legal-card__title,
body.amma-med-theme .amma-company-doc-card__title {
    -webkit-line-clamp: 2;
}

body.amma-med-theme .amma-submenu-card__desc,
body.amma-med-theme .amma-home-directions__text,
body.amma-med-theme .amma-home-service-card__text,
body.amma-med-theme .amma-company-doc-card p,
body.amma-med-theme .amma-authority-card__row span,
body.amma-med-theme .amma-doc-card__excerpt,
body.amma-med-theme .amma-company-summary-card p,
body.amma-med-theme .amma-home-hero-links__text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.amma-med-theme .amma-home-service-card__chip,
body.amma-med-theme .amma-filter-pill,
body.amma-med-theme .amma-company-pill,
body.amma-med-theme .amma-site-footer__chips a,
body.amma-med-theme .amma-home-directions__count,
body.amma-med-theme .amma-home-hero-links__badge,
body.amma-med-theme .amma-submenu-card__meta,
body.amma-med-theme .amma-company-doc-card__type {
    font-size: 12px;
    line-height: 1.25;
}

body.amma-med-theme .amma-home-service-card__chip,
body.amma-med-theme .amma-filter-pill,
body.amma-med-theme .amma-site-footer__chips a {
    max-width: 100%;
}

body.amma-med-theme .amma-home-doctor-card__media img,
body.amma-med-theme .amma-page-top__image,
body.amma-med-theme .amma-about-route__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

body.amma-med-theme .amma-home-doctor-card__media img {
    aspect-ratio: 4 / 5;
}

body.amma-med-theme .amma-price-table-wrap,
body.amma-med-theme .amma-map-card__body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.amma-med-theme .amma-map-card__body iframe,
body.amma-med-theme .amma-home-map-card iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
}

@media (max-width: 1440px) {
    body.amma-med-theme .amma-header__row {
        gap: 18px;
        grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto;
    }

    body.amma-med-theme .amma-menu--desktop {
        gap: 18px;
    }

    body.amma-med-theme .amma-header__actions {
        gap: 10px;
    }

    body.amma-med-theme .amma-header__phone {
        max-width: 220px;
        padding-inline: 14px;
    }

    body.amma-homepage .amma-home-hero__grid,
    body.amma-med-theme .amma-home-about-grid,
    body.amma-med-theme .amma-home-info-grid,
    body.amma-med-theme .amma-company-overview,
    body.amma-med-theme .amma-about-route,
    body.amma-med-theme .amma-legal-layout,
    body.amma-med-theme .amma-services-hero__grid,
    body.amma-med-theme .amma-services-bottom-grid,
    body.amma-med-theme .amma-archive-doctors-hero__grid,
    body.amma-med-theme .amma-archive-services-hero__grid,
    body.amma-med-theme .smed-cat-hero {
        gap: 24px;
    }
}

@media (max-width: 1280px) {
    body.amma-med-theme .amma-header__row {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    }

    body.amma-med-theme .amma-header__search-label,
    body.amma-med-theme .amma-header__phone-label {
        display: none;
    }

    body.amma-med-theme .amma-header__phone {
        max-width: 165px;
        padding-inline: 12px;
    }

    body.amma-med-theme .amma-header__phone-value {
        font-size: 14px;
    }

    body.amma-med-theme .amma-home-services-grid,
    body.amma-med-theme .amma-home-doctors-grid,
    body.amma-med-theme .amma-company-doc-grid,
    body.amma-med-theme .amma-authority-grid,
    body.amma-med-theme .amma-doc-list,
    body.amma-med-theme .amma-grid.amma-grid-4,
    body.amma-med-theme .amma-company-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-homepage .amma-home-hero__title {
        max-width: 17ch;
    }
}

@media (max-width: 1180px) {
    body.amma-med-theme .amma-home-hero__grid,
    body.amma-med-theme .amma-home-about-grid,
    body.amma-med-theme .amma-home-info-grid,
    body.amma-med-theme .amma-company-overview,
    body.amma-med-theme .amma-about-route,
    body.amma-med-theme .amma-legal-layout,
    body.amma-med-theme .amma-services-hero__grid,
    body.amma-med-theme .amma-services-bottom-grid,
    body.amma-med-theme .amma-layout-grid,
    body.amma-med-theme .amma-archive-doctors-hero__grid,
    body.amma-med-theme .amma-archive-services-hero__grid,
    body.amma-med-theme .smed-cat-hero {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-page-top__wrap--media {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-page-top__media {
        order: -1;
    }

    body.amma-med-theme .amma-page-top__image {
        max-height: 420px;
        object-fit: cover;
    }
}

@media (max-width: 1024px) {
    body.amma-med-theme .amma-page-top__title {
        font-size: clamp(28px, 6vw, 36px);
    }

    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(30px, 7vw, 40px);
        max-width: 100%;
    }

    body.amma-med-theme .amma-section-title,
    body.amma-med-theme .amma-home-section__title,
    body.amma-med-theme .amma-services-hero__title,
    body.amma-med-theme .amma-archive-services-hero__title,
    body.amma-med-theme .amma-archive-doctors-hero__title,
    body.amma-med-theme .smed-cat-hero__title,
    body.amma-med-theme .amma-specialists-profile__title {
        font-size: clamp(22px, 5vw, 30px);
    }

    body.amma-med-theme .amma-home-services-grid,
    body.amma-med-theme .amma-home-doctors-grid,
    body.amma-med-theme .amma-home-directions,
    body.amma-med-theme .amma-company-doc-grid,
    body.amma-med-theme .amma-authority-grid,
    body.amma-med-theme .amma-doc-list,
    body.amma-med-theme .amma-company-cards,
    body.amma-med-theme .amma-grid.amma-grid-4,
    body.amma-med-theme .amma-grid.amma-grid-3 {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-company-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.amma-med-theme .amma-company-summary-grid {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-home-hero__contactline,
    body.amma-med-theme .amma-page-top__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    body.amma-med-theme .amma-map-card__body iframe,
    body.amma-med-theme .amma-home-map-card iframe {
        min-height: 300px;
    }
}

/* v3 typography and overflow safeguards */
body.amma-med-theme .amma-page-top__title,
body.amma-med-theme .amma-services-hero__title,
body.amma-med-theme .amma-archive-services-hero__title,
body.amma-med-theme .amma-archive-doctors-hero__title,
body.amma-med-theme .smed-cat-hero__title,
body.amma-med-theme .amma-specialists-profile__title {
    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

body.amma-homepage .amma-home-hero__title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    max-width: 12ch;
    text-wrap: balance;
}

body.amma-med-theme .amma-section-title,
body.amma-med-theme .amma-home-section__title,
body.amma-med-theme .amma-company-section-head h2,
body.amma-med-theme .amma-submenu__title,
body.amma-med-theme .amma-home-hero-panel__title {
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

body.amma-med-theme .amma-card h3,
body.amma-med-theme .amma-home-service-card__title,
body.amma-med-theme .amma-home-direction-card__title,
body.amma-med-theme .amma-legal-doc-row__title,
body.amma-med-theme .amma-company-summary-card__value {
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 1.24;
    text-wrap: balance;
}

body.amma-med-theme .amma-home-service-card__title,
body.amma-med-theme .amma-home-direction-card__title,
body.amma-med-theme .amma-legal-doc-row__title,
body.amma-med-theme .amma-submenu-card__title,
body.amma-med-theme .amma-menu a,
body.amma-med-theme .amma-menu button,
body.amma-med-theme .amma-mobile-menu a,
body.amma-med-theme .amma-mobile-menu button {
    overflow-wrap: anywhere;
    hyphens: auto;
}

body.amma-med-theme .amma-home-service-card__title,
body.amma-med-theme .amma-home-direction-card__title,
body.amma-med-theme .amma-submenu-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.amma-med-theme .amma-home-hero__lead,
body.amma-med-theme .amma-page-top__lead,
body.amma-med-theme .amma-company-richtext,
body.amma-med-theme .amma-legal-doc-row__text,
body.amma-med-theme .amma-submenu-card__desc {
    max-width: 72ch;
}

body.amma-med-theme .amma-page-top__actions,
body.amma-med-theme .amma-home-hero__actions,
body.amma-med-theme .amma-home-hero__contactline,
body.amma-med-theme .amma-header__actions {
    row-gap: 10px;
}

body.amma-med-theme .amma-home-hero__direction-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.amma-med-theme .amma-legal-anchor-nav--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1279px) {
    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(32px, 4.6vw, 42px);
        max-width: 13ch;
    }

    body.amma-med-theme .amma-page-top__title,
    body.amma-med-theme .amma-services-hero__title,
    body.amma-med-theme .amma-archive-services-hero__title,
    body.amma-med-theme .amma-archive-doctors-hero__title,
    body.amma-med-theme .smed-cat-hero__title,
    body.amma-med-theme .amma-specialists-profile__title {
        font-size: clamp(28px, 3.8vw, 34px);
    }

    body.amma-med-theme .amma-section-title,
    body.amma-med-theme .amma-home-section__title,
    body.amma-med-theme .amma-company-section-head h2,
    body.amma-med-theme .amma-submenu__title,
    body.amma-med-theme .amma-home-hero-panel__title {
        font-size: clamp(22px, 2.3vw, 27px);
    }
}

@media (max-width: 991px) {
    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(30px, 6.2vw, 38px);
        max-width: 100%;
    }

    body.amma-med-theme .amma-page-top__title,
    body.amma-med-theme .amma-services-hero__title,
    body.amma-med-theme .amma-archive-services-hero__title,
    body.amma-med-theme .amma-archive-doctors-hero__title,
    body.amma-med-theme .smed-cat-hero__title,
    body.amma-med-theme .amma-specialists-profile__title {
        font-size: clamp(26px, 5vw, 32px);
    }

    body.amma-med-theme .amma-home-hero__direction-cards,
    body.amma-med-theme .amma-legal-anchor-nav--dense {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.05;
    }

    body.amma-med-theme .amma-page-top__title,
    body.amma-med-theme .amma-services-hero__title,
    body.amma-med-theme .amma-archive-services-hero__title,
    body.amma-med-theme .amma-archive-doctors-hero__title,
    body.amma-med-theme .smed-cat-hero__title,
    body.amma-med-theme .amma-specialists-profile__title {
        font-size: clamp(24px, 7vw, 29px);
    }

    body.amma-med-theme .amma-section-title,
    body.amma-med-theme .amma-home-section__title,
    body.amma-med-theme .amma-company-section-head h2,
    body.amma-med-theme .amma-submenu__title,
    body.amma-med-theme .amma-home-hero-panel__title {
        font-size: clamp(20px, 6vw, 24px);
    }

    body.amma-med-theme .amma-card h3,
    body.amma-med-theme .amma-home-service-card__title,
    body.amma-med-theme .amma-home-direction-card__title,
    body.amma-med-theme .amma-legal-doc-row__title,
    body.amma-med-theme .amma-company-summary-card__value {
        font-size: 18px;
    }

    body.amma-med-theme .amma-home-service-card__title,
    body.amma-med-theme .amma-home-direction-card__title,
    body.amma-med-theme .amma-submenu-card__title {
        -webkit-line-clamp: 4;
    }
}

/* Актуальные правки: компактнее первый экран, список услуг в категориях, версия для слабовидящих */
body.amma-homepage .amma-home-hero {
    padding: 28px 0 18px;
}

body.amma-homepage .amma-home-hero__shell {
    padding: 26px 28px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(216, 229, 245, 0.92);
    box-shadow: 0 24px 54px rgba(20, 64, 117, 0.08);
}


body.amma-homepage .amma-home-hero__grid--clinic {
    gap: 20px;
}

body.amma-homepage .amma-home-hero__grid--unified {
    align-items: stretch;
}

body.amma-homepage .amma-home-hero__grid--text-only {
    grid-template-columns: 1fr;
}

body.amma-homepage .amma-home-hero__content {
    gap: 18px;
    padding-top: 0;
}

body.amma-homepage .amma-home-hero__title {
    margin-top: 12px;
    font-size: clamp(28px, 3.6vw, 36px);
}

body.amma-homepage .amma-home-hero__lead {
    margin-top: 16px;
    max-width: 58ch;
    font-size: 17px;
    line-height: 1.62;
}

body.amma-homepage .amma-home-hero__actions {
    margin-top: 20px;
}

body.amma-homepage .amma-home-hero__contactline {
    margin-top: 14px;
}

body.amma-homepage .amma-home-hero__trust {
    gap: 10px;
}

body.amma-homepage .amma-home-hero__trust-item {
    padding: 14px 16px;
}

body.amma-homepage .amma-home-hero__visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 13;
    background: linear-gradient(180deg, rgba(47, 128, 237, 0.1), rgba(47, 128, 237, 0.03));
    border: 1px solid rgba(216, 229, 245, 0.92);
}

body.amma-homepage .amma-home-hero__visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.amma-med-theme .smed-cat-page {
    padding: 16px 0 8px;
}

body.amma-med-theme .smed-cat-hero {
    gap: 16px;
}

body.amma-med-theme .smed-cat-hero--single {
    grid-template-columns: 1fr;
}

body.amma-med-theme .smed-cat-hero__main {
    padding: 22px 24px;
}

body.amma-med-theme .smed-cat-hero__aside {
    padding: 20px 20px 18px;
}

body.amma-med-theme .smed-cat-hero__title {
    margin: 8px 0 10px;
    font-size: clamp(30px, 3.4vw, 44px);
}

body.amma-med-theme .smed-cat-hero__lead {
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.62;
}

body.amma-med-theme .smed-cat-hero__stats {
    gap: 10px;
    margin-top: 16px;
}

body.amma-med-theme .smed-cat-stat {
    min-width: 140px;
    padding: 12px 14px;
}

body.amma-med-theme .smed-cat-stat strong {
    font-size: 17px;
}

body.amma-med-theme .smed-cat-hero__actions {
    margin-top: 16px;
}

body.amma-med-theme .smed-cat-hero__anchors {
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
}

body.amma-med-theme .smed-cat-top-pills {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px 16px;
}

body.amma-med-theme .smed-cat-top-pills__label {
    padding-top: 8px;
}

body.amma-med-theme .smed-cat-top-pills__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

body.amma-med-theme .smed-cat-search-panel {
    padding: 18px 20px;
    margin-bottom: 16px;
}

body.amma-med-theme .smed-cat-services__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .smed-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 107, 184, 0.1);
    box-shadow: 0 12px 32px rgba(20, 44, 92, 0.06);
}

body.amma-med-theme .smed-service-row__main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

body.amma-med-theme .smed-service-row__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.amma-med-theme .smed-service-row__specialists {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 76, 151, 0.08);
    color: var(--amma-accent);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

body.amma-med-theme .smed-service-row__title {
    margin: 0;
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

body.amma-med-theme .smed-service-row__title a {
    color: var(--amma-text);
    text-decoration: none;
}

body.amma-med-theme .smed-service-row__title a:hover,
body.amma-med-theme .smed-service-row__title a:focus-visible {
    color: var(--amma-accent);
}

body.amma-med-theme .smed-service-row__text {
    max-width: 78ch;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.55;
}

body.amma-med-theme .smed-service-row__side {
    display: grid;
    gap: 12px;
    justify-items: end;
    align-items: center;
}

body.amma-med-theme .smed-service-row__price {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--amma-text);
    text-align: right;
    white-space: nowrap;
}

body.amma-med-theme .smed-service-row__actions {
    display: grid;
    gap: 10px;
    width: 100%;
}

body.amma-med-theme .smed-service-row__actions .amma-btn {
    width: 100%;
    justify-content: center;
}

body.amma-med-theme .amma-header__accessibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--amma-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--amma-title);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

body.amma-med-theme .amma-header__accessibility-toggle--topline {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1;
}

body.amma-med-theme .amma-header__accessibility-toggle:hover,
body.amma-med-theme .amma-header__accessibility-toggle:focus-visible {
    border-color: rgba(47, 128, 237, 0.24);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-header__accessibility-toggle[aria-pressed='true'] {
    background: #163b70;
    border-color: #163b70;
    color: #fff;
}

body.amma-med-theme .amma-mobile-drawer__quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.amma-med-theme button.amma-mobile-drawer__quick-link {
    font: inherit;
    cursor: pointer;
}

body.amma-med-theme.amma-accessibility-on {
    --amma-bg: #ffffff;
    --amma-surface: #ffffff;
    --amma-surface-2: #ffffff;
    --amma-text: #000000;
    --amma-title: #000000;
    --amma-muted: #000000;
    --amma-border: #000000;
    --amma-accent: #000000;
    --amma-accent-2: #000000;
    --amma-accent-dark: #000000;
    --amma-shadow: none;
}

body.amma-med-theme.amma-accessibility-on,
body.amma-med-theme.amma-accessibility-on p,
body.amma-med-theme.amma-accessibility-on li,
body.amma-med-theme.amma-accessibility-on input,
body.amma-med-theme.amma-accessibility-on textarea,
body.amma-med-theme.amma-accessibility-on button,
body.amma-med-theme.amma-accessibility-on select {
    font-size: 18px;
    line-height: 1.75;
}

body.amma-med-theme.amma-accessibility-on h1 {
    font-size: clamp(36px, 4.4vw, 56px) !important;
    line-height: 1.12 !important;
}

body.amma-med-theme.amma-accessibility-on h2 {
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.18 !important;
}

body.amma-med-theme.amma-accessibility-on h3 {
    font-size: clamp(22px, 2.2vw, 30px) !important;
    line-height: 1.24 !important;
}

body.amma-med-theme.amma-accessibility-on .amma-header--redesign {
    background: #ffffff !important;
    border-bottom: 2px solid #000000;
    backdrop-filter: none;
}

body.amma-med-theme.amma-accessibility-on .amma-home-hero,
body.amma-med-theme.amma-accessibility-on .amma-home-intro,
body.amma-med-theme.amma-accessibility-on .amma-home-section,
body.amma-med-theme.amma-accessibility-on .smed-cat-page,
body.amma-med-theme.amma-accessibility-on .smed-cat-doctors,
body.amma-med-theme.amma-accessibility-on .smed-cat-about,
body.amma-med-theme.amma-accessibility-on .amma-services-hero,
body.amma-med-theme.amma-accessibility-on .amma-archive-services-hero,
body.amma-med-theme.amma-accessibility-on .amma-archive-doctors-hero,
body.amma-med-theme.amma-accessibility-on .amma-page-top {
    background: #ffffff !important;
    background-image: none !important;
}

body.amma-med-theme.amma-accessibility-on .amma-card,
body.amma-med-theme.amma-accessibility-on .amma-submenu,
body.amma-med-theme.amma-accessibility-on .amma-search-drawer__panel,
body.amma-med-theme.amma-accessibility-on .amma-mobile-drawer__panel,
body.amma-med-theme.amma-accessibility-on .amma-booking-modal__dialog {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

body.amma-med-theme.amma-accessibility-on a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

body.amma-med-theme.amma-accessibility-on .amma-btn,
body.amma-med-theme.amma-accessibility-on .amma-header__accessibility-toggle,
body.amma-med-theme.amma-accessibility-on .amma-mobile-drawer__quick-link,
body.amma-med-theme.amma-accessibility-on .amma-header__search-toggle,
body.amma-med-theme.amma-accessibility-on .amma-header__phone,
body.amma-med-theme.amma-accessibility-on .amma-header__messenger,
body.amma-med-theme.amma-accessibility-on .amma-booking-date,
body.amma-med-theme.amma-accessibility-on .amma-booking-time,
body.amma-med-theme.amma-accessibility-on .amma-booking-form__input,
body.amma-med-theme.amma-accessibility-on .smed-cat-search input {
    min-height: 56px;
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    text-decoration: none;
    box-shadow: none !important;
}

body.amma-med-theme.amma-accessibility-on .amma-btn:not(.amma-btn--ghost),
body.amma-med-theme.amma-accessibility-on .amma-header__accessibility-toggle[aria-pressed='true'] {
    background: #000000 !important;
    color: #ffffff !important;
}

body.amma-med-theme.amma-accessibility-on .amma-chip,
body.amma-med-theme.amma-accessibility-on .smed-service-row__specialists,
body.amma-med-theme.amma-accessibility-on .smed-cat-anchor,
body.amma-med-theme.amma-accessibility-on .amma-home-service-card__chip,
body.amma-med-theme.amma-accessibility-on .amma-home-service-card__code {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

body.amma-med-theme.amma-accessibility-on :focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    body.amma-homepage .amma-home-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-med-theme .smed-service-row {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 230px);
    }
}

@media (max-width: 991px) {
    body.amma-homepage .amma-home-hero {
        padding: 24px 0 16px;
    }

    body.amma-homepage .amma-home-hero__shell {
        padding: 22px;
    }

    body.amma-homepage .amma-home-hero__grid--clinic {
        gap: 16px;
    }

    body.amma-med-theme .smed-cat-hero {
        gap: 12px;
    }

    body.amma-med-theme .smed-cat-top-pills {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-cat-top-pills__label {
        padding-top: 0;
    }

    body.amma-med-theme .smed-service-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.amma-med-theme .smed-service-row__side {
        width: 100%;
        justify-items: start;
    }

    body.amma-med-theme .smed-service-row__price {
        text-align: left;
    }

    body.amma-med-theme .smed-service-row__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.amma-homepage .amma-home-hero__trust {
        grid-template-columns: 1fr;
    }

    body.amma-homepage .amma-home-hero__shell {
        padding: 18px;
        border-radius: 24px;
    }

    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(26px, 7.2vw, 32px);
    }

    body.amma-homepage .amma-home-hero__visual {
        border-radius: 22px;
    }

    body.amma-med-theme .smed-cat-hero__main,
    body.amma-med-theme .smed-cat-hero__aside,
    body.amma-med-theme .smed-service-row,
    body.amma-med-theme .smed-cat-search-panel {
        padding: 16px;
    }

    body.amma-med-theme .smed-service-row__actions {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-header__accessibility-toggle {
        display: none;
    }
}

/* Финальная полировка шаблона: админ-шаблоны, адаптив, логотип, главная и таксономии */
body.amma-med-theme .amma-header__topline-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
}

body.amma-med-theme .amma-header__topline-item,
body.amma-med-theme .amma-header__topline-item--link {
    white-space: nowrap;
}

body.amma-med-theme .amma-header--redesign .amma-header__logo,
body.amma-med-theme .amma-header--redesign .custom-logo-link,
body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo-link,
body.amma-med-theme .amma-footer-brand-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

body.amma-med-theme .amma-header--redesign .amma-header__logo img,
body.amma-med-theme .amma-header--redesign .custom-logo,
body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo,
body.amma-med-theme .amma-footer-brand-logo .custom-logo {
    display: block;
    width: auto;
    max-width: min(100%, 244px);
    max-height: 68px;
    object-fit: contain;
}

body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo,
body.amma-med-theme .amma-footer-brand-logo .custom-logo {
    max-width: min(100%, 226px);
    max-height: 66px;
}

body.amma-homepage .amma-home-hero {
    padding: 22px 0 18px;
}

body.amma-homepage .amma-home-hero__shell {
    overflow: hidden;
}

body.amma-homepage .amma-home-hero__grid--unified {
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    gap: 24px;
    align-items: stretch;
}

body.amma-homepage .amma-home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.amma-homepage .amma-home-hero__lead {
    max-width: 62ch;
}

body.amma-homepage .amma-home-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.amma-homepage .amma-home-hero__trust-item {
    height: 100%;
}

body.amma-homepage .amma-home-hero__visual {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    min-height: 100%;
    max-height: 640px;
    aspect-ratio: auto;
}

body.amma-homepage .amma-home-hero__visual-image,
body.amma-homepage .amma-home-hero__visual img,
body.amma-homepage .amma-home-hero__visual .amma-media-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

body.amma-homepage .amma-home-hero__visual .amma-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.amma-med-theme .amma-grid.amma-grid-3 {
    gap: 18px;
}

body.amma-med-theme .amma-service-card-v2,
body.amma-med-theme .amma-doctor-card-v2,
body.amma-med-theme .amma-archive-service-card,
body.amma-med-theme .amma-home-service-card,
body.amma-med-theme .amma-home-doctor-card,
body.amma-med-theme .amma-archive-doctors-card {
    height: 100%;
}

body.amma-med-theme .amma-service-card-v2__price,
body.amma-med-theme .amma-archive-service-card__price,
body.amma-med-theme .amma-home-service-card__price,
body.amma-med-theme .smed-service-row__price {
    font-size: 15px;
    line-height: 1.35;
}

body.amma-med-theme .amma-page-top__grid,
body.amma-med-theme .amma-services-bottom-grid,
body.amma-med-theme .amma-company-overview,
body.amma-med-theme .amma-about-route,
body.amma-med-theme .amma-legal-layout,
body.amma-med-theme .amma-home-about-grid,
body.amma-med-theme .amma-home-info-grid {
    gap: 20px;
}

body.amma-med-theme .smed-cat-hero--compact {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .smed-cat-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .smed-cat-hero__content {
    min-width: 0;
}

body.amma-med-theme .smed-cat-hero__summary,
body.amma-med-theme .smed-spec-hero__summary {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(216, 229, 245, 0.9);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

body.amma-med-theme .smed-cat-hero__summary-copy,
body.amma-med-theme .smed-spec-hero__summary {
    display: grid;
    gap: 10px;
}

body.amma-med-theme .smed-cat-hero__summary-copy h2,
body.amma-med-theme .smed-spec-hero__summary h2 {
    margin: 0;
    color: var(--amma-title);
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.18;
}

body.amma-med-theme .smed-cat-hero__summary-copy p,
body.amma-med-theme .smed-spec-hero__summary p {
    margin: 0;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.6;
}

body.amma-med-theme .smed-cat-contact-list {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(216, 229, 245, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

body.amma-med-theme .smed-cat-contact-list a {
    color: var(--amma-accent);
    font-weight: 800;
    text-decoration: none;
}

body.amma-med-theme .smed-cat-contact-list a:hover,
body.amma-med-theme .smed-cat-contact-list a:focus-visible {
    text-decoration: underline;
}

body.amma-med-theme .smed-cat-contact-list div {
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.amma-med-theme .smed-cat-top-pills {
    padding: 18px 20px;
    border-radius: 28px;
}

body.amma-med-theme .smed-cat-section-head--compact,
body.amma-med-theme .smed-spec-section-head,
body.amma-med-theme .smed-spec-section-head--compact {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

body.amma-med-theme .smed-cat-section-head--compact .amma-section-text,
body.amma-med-theme .smed-spec-section-head .amma-section-text,
body.amma-med-theme .smed-spec-section-head--compact .amma-section-text {
    margin: 0;
    max-width: none;
}

body.amma-med-theme .smed-cat-search-panel {
    padding: 20px 22px;
    margin-bottom: 16px;
}

body.amma-med-theme .smed-cat-search-panel__top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

body.amma-med-theme .smed-cat-search-panel__top h3 {
    margin: 0 0 8px;
}

body.amma-med-theme .smed-cat-search-panel__top p,
body.amma-med-theme .smed-cat-search-panel__meta span {
    margin: 0;
    color: var(--amma-muted);
}

body.amma-med-theme .smed-cat-search-panel__meta {
    display: grid;
    gap: 4px;
    min-width: 170px;
    text-align: right;
}

body.amma-med-theme .smed-cat-search-panel__meta strong {
    color: var(--amma-title);
    font-size: 28px;
    line-height: 1;
}

body.amma-med-theme .smed-cat-search {
    position: relative;
    display: block;
}

body.amma-med-theme .smed-cat-search input {
    width: 100%;
    min-height: 60px;
    padding: 0 124px 0 18px;
    border: 1px solid rgba(216, 229, 245, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--amma-title);
    font: inherit;
}

body.amma-med-theme .smed-cat-search input:focus {
    outline: none;
    border-color: rgba(47, 128, 237, 0.28);
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.08);
}

body.amma-med-theme .smed-cat-search__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(216, 229, 245, 0.96);
    border-radius: 14px;
    background: #fff;
    color: var(--amma-title);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.amma-med-theme .smed-service-row {
    align-items: stretch;
    gap: 20px;
    border-radius: 24px;
}

body.amma-med-theme .smed-service-row__title {
    font-size: clamp(19px, 1.6vw, 23px);
}

body.amma-med-theme .smed-service-row__side {
    align-self: stretch;
    padding-left: 16px;
    border-left: 1px solid rgba(216, 229, 245, 0.92);
}

body.amma-med-theme .smed-service-row__price {
    color: var(--amma-muted);
    font-weight: 700;
}

body.amma-med-theme .smed-service-row__actions .amma-btn {
    min-height: 46px;
}

body.amma-med-theme .smed-cat-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 20px;
    align-items: start;
}

body.amma-med-theme .smed-cat-about__content,
body.amma-med-theme .smed-cat-about__aside {
    padding: 24px 26px;
}

body.amma-med-theme .smed-cat-about__seo {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(216, 229, 245, 0.9);
}

body.amma-med-theme .smed-cat-about__seo h3 {
    margin: 0;
    color: var(--amma-title);
    font-size: clamp(20px, 1.9vw, 24px);
    line-height: 1.2;
}

body.amma-med-theme .smed-spec-page {
    padding: 18px 0 6px;
}

body.amma-med-theme .smed-spec-hero {
    padding: 24px 26px;
    border-radius: 32px;
}

body.amma-med-theme .smed-spec-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .smed-spec-hero__title {
    margin: 8px 0 10px;
    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 1.08;
}

body.amma-med-theme .smed-spec-hero__lead {
    max-width: 60ch;
}

body.amma-med-theme .smed-spec-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

body.amma-med-theme .smed-spec-hero__anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(216, 229, 245, 0.9);
}

body.amma-med-theme .smed-spec-hero__meta {
    display: grid;
    gap: 16px;
}

body.amma-med-theme .smed-spec-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.amma-med-theme .smed-spec-hero__stats .smed-cat-stat:last-child {
    grid-column: 1 / -1;
}

body.amma-med-theme .smed-spec-section {
    position: relative;
}

body.amma-med-theme .smed-spec-info {
    display: grid;
    gap: 20px;
    padding: 24px 26px;
}

body.amma-med-theme .smed-spec-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.amma-med-theme .smed-spec-fact {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid rgba(216, 229, 245, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

body.amma-med-theme .smed-spec-fact strong {
    color: var(--amma-title);
    font-size: 24px;
    line-height: 1;
}

body.amma-med-theme .smed-spec-fact span {
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.amma-med-theme .smed-spec-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.amma-med-theme.amma-accessibility-on .smed-spec-page,
body.amma-med-theme.amma-accessibility-on .smed-spec-section {
    background: #ffffff !important;
    background-image: none !important;
}

body.amma-med-theme.amma-accessibility-on .smed-cat-hero__summary,
body.amma-med-theme.amma-accessibility-on .smed-cat-contact-list,
body.amma-med-theme.amma-accessibility-on .smed-spec-hero__summary,
body.amma-med-theme.amma-accessibility-on .smed-spec-fact,
body.amma-med-theme.amma-accessibility-on .smed-spec-info {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
}

@media (max-width: 1365px) {
    body.amma-med-theme .amma-header--redesign .amma-header__logo img,
    body.amma-med-theme .amma-header--redesign .custom-logo {
        max-width: min(100%, 220px);
        max-height: 60px;
    }

    body.amma-homepage .amma-home-hero__grid--unified {
        grid-template-columns: minmax(0, 1fr);
    }

    body.amma-homepage .amma-home-hero__visual {
        max-height: none;
        min-height: 360px;
    }
}

@media (max-width: 1199px) {
    body.amma-homepage .amma-home-hero__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-med-theme .smed-cat-hero__grid,
    body.amma-med-theme .smed-cat-about__grid,
    body.amma-med-theme .smed-spec-hero__grid,
    body.amma-med-theme .smed-spec-bottom-grid,
    body.amma-med-theme .smed-cat-section-head--compact,
    body.amma-med-theme .smed-spec-section-head,
    body.amma-med-theme .smed-spec-section-head--compact {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-cat-search-panel__top {
        align-items: start;
    }

    body.amma-med-theme .smed-spec-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.amma-med-theme .amma-header--redesign .amma-header__logo img,
    body.amma-med-theme .amma-header--redesign .custom-logo {
        max-width: min(100%, 198px);
        max-height: 54px;
    }

    body.amma-homepage .amma-home-hero__visual {
        min-height: 320px;
    }

    body.amma-med-theme .smed-cat-hero__main,
    body.amma-med-theme .smed-spec-hero,
    body.amma-med-theme .smed-spec-info,
    body.amma-med-theme .smed-cat-about__content,
    body.amma-med-theme .smed-cat-about__aside {
        padding: 20px 22px;
    }

    body.amma-med-theme .smed-cat-search-panel__top {
        flex-direction: column;
    }

    body.amma-med-theme .smed-cat-search-panel__meta {
        width: 100%;
        text-align: left;
    }

    body.amma-med-theme .smed-service-row {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-service-row__side {
        padding-left: 0;
        padding-top: 12px;
        border-left: 0;
        border-top: 1px solid rgba(216, 229, 245, 0.92);
        justify-items: start;
    }

    body.amma-med-theme .smed-spec-hero__stats {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-spec-hero__stats .smed-cat-stat:last-child {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    body.amma-med-theme .amma-header--redesign .amma-header__logo img,
    body.amma-med-theme .amma-header--redesign .custom-logo {
        max-width: min(100%, 172px);
        max-height: 46px;
    }

    body.amma-med-theme .amma-site-footer__logo-wrap .custom-logo,
    body.amma-med-theme .amma-footer-brand-logo .custom-logo {
        max-width: min(100%, 188px);
        max-height: 52px;
    }

    body.amma-homepage .amma-home-hero__title {
        max-width: none;
    }

    body.amma-homepage .amma-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.amma-homepage .amma-home-hero__primary,
    body.amma-homepage .amma-home-hero__secondary {
        min-width: 0;
        width: 100%;
    }

    body.amma-homepage .amma-home-hero__contactline {
        flex-direction: column;
        gap: 8px;
    }

    body.amma-homepage .amma-home-hero__contactline a::after,
    body.amma-homepage .amma-home-hero__contactline span::after {
        display: none;
    }

    body.amma-homepage .amma-home-hero__visual {
        min-height: 240px;
    }

    body.amma-homepage .amma-home-hero__trust,
    body.amma-med-theme .smed-spec-facts {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-cat-top-pills,
    body.amma-med-theme .smed-cat-hero__main,
    body.amma-med-theme .smed-spec-hero,
    body.amma-med-theme .smed-spec-info,
    body.amma-med-theme .smed-cat-about__content,
    body.amma-med-theme .smed-cat-about__aside,
    body.amma-med-theme .smed-cat-search-panel,
    body.amma-med-theme .smed-service-row {
        padding: 16px;
    }

    body.amma-med-theme .smed-cat-search input {
        min-height: 54px;
        padding-right: 18px;
    }

    body.amma-med-theme .smed-cat-search__clear {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    body.amma-med-theme .smed-service-row__actions,
    body.amma-med-theme .smed-spec-hero__actions {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-service-row__actions .amma-btn,
    body.amma-med-theme .smed-spec-hero__actions .amma-btn,
    body.amma-med-theme .amma-services-bottom-card__actions .amma-btn {
        width: 100%;
        justify-content: center;
    }

    body.amma-med-theme .smed-spec-hero__actions {
        display: grid;
    }
}

body.amma-med-theme .smed-cat-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(216, 229, 245, 0.96);
    border-radius: 999px;
    background: rgba(247, 251, 255, 0.94);
    color: var(--amma-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

body.amma-med-theme .smed-cat-anchor:hover,
body.amma-med-theme .smed-cat-anchor:focus-visible {
    border-color: rgba(47, 128, 237, 0.28);
    background: rgba(47, 128, 237, 0.08);
}

/* Мобильный хедер и меню: компактная шапка без пустой кнопки телефона */
body.amma-med-theme .amma-header--redesign .amma-header__phone .amma-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.amma-med-theme .amma-header--redesign .amma-header__phone .amma-header__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

body.amma-med-theme .amma-header--redesign .amma-header__actions > * {
    flex-shrink: 0;
}

/* Категория услуг: первый блок на всю ширину, связанные направления — отдельным блоком ниже */
body.amma-med-theme .smed-cat-page .smed-cat-hero {
    grid-template-columns: minmax(0, 1fr);
}

body.amma-med-theme .smed-cat-page .smed-cat-hero__main {
    width: 100%;
}

body.amma-med-theme .smed-cat-page .smed-cat-top-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
}

body.amma-med-theme .smed-cat-page .smed-cat-top-pills__label {
    padding-top: 0;
}

body.amma-med-theme .smed-cat-page .smed-cat-top-pills__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

body.amma-med-theme .smed-cat-page .smed-cat-top-pills .amma-filter-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    white-space: normal;
    line-height: 1.4;
    -webkit-line-clamp: unset;
}

@media (max-width: 767px) {
    body.amma-med-theme .amma-header--redesign {
        backdrop-filter: blur(14px);
        background: rgba(255, 255, 255, 0.97);
    }

    body.amma-med-theme .amma-header--redesign .amma-header__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 68px;
        padding: 10px 0;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__brand {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__logo,
    body.amma-med-theme .amma-header--redesign .custom-logo-link {
        max-width: min(100%, 144px);
    }

    body.amma-med-theme .amma-header--redesign .amma-header__logo img,
    body.amma-med-theme .amma-header--redesign .custom-logo {
        width: auto;
        max-width: 144px;
        max-height: 42px;
        object-fit: contain;
        object-position: left center;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__actions {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 46px;
        gap: 8px;
        justify-content: end;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__search-toggle,
    body.amma-med-theme .amma-header--redesign .amma-header__phone,
    body.amma-med-theme .amma-header--redesign .amma-burger {
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        border-radius: 14px;
        background: rgba(247, 251, 255, 0.96);
        border-color: rgba(216, 229, 245, 0.96);
        box-shadow: none;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__phone {
        gap: 0;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__search-label,
    body.amma-med-theme .amma-header--redesign .amma-header__phone-label,
    body.amma-med-theme .amma-header--redesign .amma-header__phone-value {
        display: none;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__search-toggle .amma-header__icon,
    body.amma-med-theme .amma-header--redesign .amma-header__phone .amma-header__icon {
        color: var(--amma-accent);
    }

    body.amma-med-theme .amma-mobile-drawer__panel {
        width: 100vw;
        padding: 18px 16px 22px;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: none;
    }

    body.amma-med-theme .amma-mobile-drawer__head {
        margin-bottom: 14px;
    }

    body.amma-med-theme .amma-mobile-drawer__title {
        font-size: 20px;
        line-height: 1.2;
    }

    body.amma-med-theme .amma-mobile-drawer__intro-card {
        margin-bottom: 16px;
        padding: 16px;
        border-radius: 20px;
    }

    body.amma-med-theme .amma-mobile-drawer__intro-title {
        font-size: 18px;
    }

    body.amma-med-theme .amma-mobile-drawer__search {
        margin-bottom: 16px;
    }

    body.amma-med-theme .amma-mobile-drawer__search .search-form,
    body.amma-med-theme .amma-mobile-drawer__search form {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-mobile-drawer__quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    body.amma-med-theme .amma-mobile-menu {
        gap: 10px;
    }

    body.amma-med-theme .amma-mobile-menu > li > a,
    body.amma-med-theme .amma-mobile-menu__toggle {
        min-height: 54px;
        padding: 0 16px;
        border-radius: 16px;
    }

    body.amma-med-theme .amma-mobile-submenu {
        padding: 8px 0 0 10px;
    }

    body.amma-med-theme .amma-mobile-submenu a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    body.amma-med-theme .amma-mobile-drawer__contacts {
        gap: 12px;
        margin-top: 18px;
        padding-top: 16px;
    }

    body.amma-med-theme .amma-mobile-drawer__contact {
        padding: 14px 16px;
        border-radius: 16px;
    }

    body.amma-med-theme .smed-cat-page .smed-cat-top-pills {
        padding: 16px;
    }
}

@media (max-width: 479px) {
    body.amma-med-theme .amma-header--redesign .amma-header__row {
        min-height: 64px;
        gap: 10px;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__logo,
    body.amma-med-theme .amma-header--redesign .custom-logo-link {
        max-width: min(100%, 132px);
    }

    body.amma-med-theme .amma-header--redesign .amma-header__logo img,
    body.amma-med-theme .amma-header--redesign .custom-logo {
        max-width: 132px;
        max-height: 38px;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__actions {
        grid-auto-columns: 44px;
    }

    body.amma-med-theme .amma-header--redesign .amma-header__search-toggle,
    body.amma-med-theme .amma-header--redesign .amma-header__phone,
    body.amma-med-theme .amma-header--redesign .amma-burger {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }
}

/* Компактный первый экран и точечные правки UX */
body.amma-homepage .amma-home-hero {
    padding: 28px 0 20px;
}

body.amma-homepage .amma-home-hero__shell {
    padding: 24px;
}

body.amma-homepage .amma-home-hero__grid--unified {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 24px;
    align-items: stretch;
}

body.amma-homepage .amma-home-hero__content {
    gap: 18px;
    justify-content: center;
}

body.amma-homepage .amma-home-hero__title {
    margin: 0;
    font-size: clamp(42px, 4.8vw, 64px);
    line-height: 0.95;
    max-width: 560px;
}

body.amma-homepage .amma-home-hero__lead {
    margin: 0;
    max-width: 620px;
}

body.amma-homepage .amma-home-hero__lead p {
    margin: 0;
}

body.amma-homepage .amma-home-hero__actions {
    margin-top: 0;
    gap: 16px;
}

body.amma-homepage .amma-home-hero__contactline {
    margin-top: 2px;
    padding: 18px 20px;
}

body.amma-homepage .amma-home-hero__visual {
    min-height: 360px;
    max-height: 420px;
    height: 100%;
    overflow: hidden;
    align-self: stretch;
}

body.amma-homepage .amma-home-hero__visual-image,
body.amma-homepage .amma-home-hero__visual img,
body.amma-homepage .amma-home-hero__visual .amma-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 1199px) {
    body.amma-homepage .amma-home-hero__grid--unified {
        grid-template-columns: minmax(0, 1fr);
    }

    body.amma-homepage .amma-home-hero__visual,
    body.amma-homepage .amma-home-hero__visual-image,
    body.amma-homepage .amma-home-hero__visual img,
    body.amma-homepage .amma-home-hero__visual .amma-media-placeholder {
        min-height: 320px;
        max-height: 360px;
    }
}

@media (max-width: 767px) {
    body.amma-homepage .amma-home-hero {
        padding: 18px 0 12px;
    }

    body.amma-homepage .amma-home-hero__shell {
        padding: 18px;
        border-radius: 22px;
    }

    body.amma-homepage .amma-home-hero__title {
        font-size: clamp(34px, 11vw, 48px);
        max-width: 100%;
    }

    body.amma-homepage .amma-home-hero__actions {
        gap: 12px;
    }

    body.amma-homepage .amma-home-hero__contactline {
        padding: 14px 16px;
    }

    body.amma-homepage .amma-home-hero__visual,
    body.amma-homepage .amma-home-hero__visual-image,
    body.amma-homepage .amma-home-hero__visual img,
    body.amma-homepage .amma-home-hero__visual .amma-media-placeholder {
        min-height: 240px;
        max-height: none;
    }
}

/* Фоны секций из админки: растягиваем на всю ширину и заполняем блок */
body.amma-med-theme [data-am-bg="1"] {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body.amma-homepage .amma-home-section--has-image {
    background-position: center center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: 100% 100%, cover !important;
}

/* Специализации врачей: пересобранный UX блока направления */
body.amma-med-theme .smed-spec-hero--redesign {
    padding: 28px 30px;
}

body.amma-med-theme .smed-spec-hero__grid--expanded {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 24px;
}

body.amma-med-theme .smed-spec-hero--redesign .smed-spec-hero__content {
    display: grid;
    align-content: start;
}

body.amma-med-theme .smed-spec-hero--redesign .smed-spec-hero__lead {
    max-width: 68ch;
}

body.amma-med-theme .smed-spec-hero__stats--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.amma-med-theme .smed-spec-hero__stats--wide .smed-cat-stat:last-child {
    grid-column: auto;
}

body.amma-med-theme .smed-spec-related {
    display: grid;
    gap: 16px;
}

body.amma-med-theme .smed-spec-related__head {
    display: grid;
    gap: 6px;
}

body.amma-med-theme .smed-spec-related__head h3 {
    margin: 0;
    color: var(--amma-title);
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.12;
}

body.amma-med-theme .smed-spec-related__head p {
    margin: 0;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.6;
}

body.amma-med-theme .smed-spec-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.amma-med-theme .smed-spec-related__card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid rgba(216, 229, 245, 0.96);
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.94);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.amma-med-theme .smed-spec-related__card:hover,
body.amma-med-theme .smed-spec-related__card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(47, 128, 237, 0.34);
    box-shadow: 0 18px 40px rgba(22, 54, 99, 0.08);
}

body.amma-med-theme .smed-spec-related__card strong {
    color: var(--amma-title);
    font-size: 18px;
    line-height: 1.2;
}

body.amma-med-theme .smed-spec-related__card span {
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.55;
}

body.amma-med-theme .smed-spec-search-panel {
    display: grid;
    gap: 14px;
}

body.amma-med-theme .smed-spec-search-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.amma-med-theme .smed-spec-search-panel__chips .amma-chip {
    border: 0;
    cursor: pointer;
}

body.amma-med-theme .smed-spec-doctors-grid {
    align-items: stretch;
}

body.amma-med-theme .smed-spec-doctor-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
}

body.amma-med-theme .smed-spec-doctor-card__media {
    display: block;
    aspect-ratio: 1.14 / 1;
    background: linear-gradient(180deg, rgba(243, 248, 255, 0.92) 0%, rgba(230, 240, 252, 0.9) 100%);
    overflow: hidden;
}

body.amma-med-theme .smed-spec-doctor-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.amma-med-theme .smed-spec-doctor-card__content {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px 22px 24px;
}

body.amma-med-theme .smed-spec-doctor-card__chips,
body.amma-med-theme .smed-spec-doctor-card__services,
body.amma-med-theme .smed-spec-doctor-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.amma-med-theme .smed-spec-doctor-card__chips .amma-chip,
body.amma-med-theme .smed-spec-doctor-card__services span,
body.amma-med-theme .smed-spec-doctor-card__facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 76, 151, 0.08);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

body.amma-med-theme .smed-spec-doctor-card__name {
    margin: 0;
    font-size: clamp(21px, 1.75vw, 26px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

body.amma-med-theme .smed-spec-doctor-card__name a {
    color: var(--amma-title);
    text-decoration: none;
}

body.amma-med-theme .smed-spec-doctor-card__name a:hover,
body.amma-med-theme .smed-spec-doctor-card__name a:focus-visible {
    color: var(--amma-accent);
}

body.amma-med-theme .smed-spec-doctor-card__position {
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.5;
}

body.amma-med-theme .smed-spec-doctor-card__slot {
    background: rgba(85, 97, 126, 0.08);
    color: var(--amma-muted);
}

body.amma-med-theme .smed-spec-doctor-card__slot.is-active {
    background: rgba(19, 157, 102, 0.12);
    color: #157a56;
}

body.amma-med-theme .smed-spec-doctor-card__excerpt {
    margin: 0;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

body.amma-med-theme .smed-spec-doctor-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

body.amma-med-theme .smed-spec-doctor-card__actions .amma-btn {
    width: 100%;
    justify-content: center;
}

body.amma-med-theme .smed-spec-services-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .smed-spec-service-row {
    margin: 0;
}

body.amma-med-theme .smed-spec-empty {
    margin-top: 16px;
}

body.amma-med-theme .smed-spec-section--soft {
    position: relative;
}

@media (max-width: 1199px) {
    body.amma-med-theme .smed-spec-hero__grid--expanded,
    body.amma-med-theme .smed-spec-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    body.amma-med-theme .smed-spec-hero--redesign {
        padding: 22px;
    }

    body.amma-med-theme .smed-spec-doctor-card__content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    body.amma-med-theme .smed-spec-hero--redesign,
    body.amma-med-theme .smed-spec-related__card {
        padding: 18px;
    }

    body.amma-med-theme .smed-spec-hero__stats--wide,
    body.amma-med-theme .smed-spec-doctor-card__actions {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-spec-doctor-card__media {
        aspect-ratio: 1.25 / 1;
    }

    body.amma-med-theme .smed-spec-doctor-card__content {
        padding: 18px;
    }
}

/* Специализации врачей: убираем второй вводный блок и делаем единый UX под hero */
body.amma-med-theme .smed-spec-section {
    padding-top: 14px;
}

body.amma-med-theme .smed-spec-hero__grid--expanded {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
}

body.amma-med-theme .smed-spec-search-panel {
    padding: 24px 28px;
    gap: 18px;
}

body.amma-med-theme .smed-spec-search-panel__related {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 107, 184, 0.1);
}

body.amma-med-theme .smed-spec-search-panel__related-label {
    color: var(--amma-title);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

body.amma-med-theme .smed-spec-search-panel__related-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.amma-med-theme .smed-spec-doctors-grid.amma-grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
}

body.amma-med-theme .smed-spec-doctor-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    grid-template-rows: none;
}

body.amma-med-theme .smed-spec-doctor-card__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
}

body.amma-med-theme .smed-spec-doctor-card__content {
    gap: 12px;
}

body.amma-med-theme .smed-spec-doctor-card__name {
    font-size: clamp(24px, 1.8vw, 30px);
}

body.amma-med-theme .smed-spec-doctor-card__excerpt {
    -webkit-line-clamp: 3;
}

body.amma-med-theme .smed-spec-doctor-card__actions {
    max-width: 420px;
}

body.amma-med-theme .smed-cat-hero__summary {
    gap: 14px;
}

@media (max-width: 1199px) {
    body.amma-med-theme .smed-spec-hero__grid--expanded {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    body.amma-med-theme .smed-spec-search-panel {
        padding: 22px;
    }

    body.amma-med-theme .smed-spec-doctor-card {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .smed-spec-doctor-card__media {
        aspect-ratio: 1.2 / 1;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    body.amma-med-theme .smed-spec-search-panel {
        padding: 18px;
    }

    body.amma-med-theme .smed-spec-doctor-card__actions {
        max-width: none;
    }
}

/* Cookie consent */
body.amma-med-theme.amma-cookie-open {
    padding-bottom: 138px;
}

body.amma-med-theme .amma-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    pointer-events: none;
}

body.amma-med-theme .amma-cookie-banner[hidden],
body.amma-med-theme .amma-cookie-banner.is-hidden {
    display: none !important;
}

body.amma-med-theme .amma-cookie-banner .container {
    width: 100%;
    max-width: calc(var(--amma-container) + 36px);
    margin: 0 auto;
    padding: 0;
}

body.amma-med-theme .amma-cookie-banner__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px 24px 20px 28px;
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(219, 230, 240, 0.98);
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.99) 0%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 -12px 34px rgba(22, 54, 99, 0.12), 0 16px 40px rgba(22, 54, 99, 0.18);
    overflow: hidden;
    pointer-events: auto;
}

body.amma-med-theme .amma-cookie-banner__inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #2f80ed 0%, #5ca9ff 100%);
}

body.amma-med-theme .amma-cookie-banner__content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

body.amma-med-theme .amma-cookie-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.12);
    color: #2f80ed;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.amma-med-theme .amma-cookie-banner__title {
    color: var(--amma-title);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

body.amma-med-theme .amma-cookie-banner__text {
    margin: 0;
    max-width: 74ch;
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.65;
}

body.amma-med-theme .amma-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

body.amma-med-theme .amma-cookie-banner__link,
body.amma-med-theme .amma-cookie-banner__button {
    min-height: 48px;
    white-space: nowrap;
}

body.amma-med-theme .amma-cookie-banner__link {
    min-width: 132px;
}

body.amma-med-theme .amma-cookie-banner__button {
    min-width: 148px;
}

@media (max-width: 991px) {
    body.amma-med-theme.amma-cookie-open {
        padding-bottom: 176px;
    }

    body.amma-med-theme .amma-cookie-banner {
        padding: 0 14px calc(14px + env(safe-area-inset-bottom));
    }

    body.amma-med-theme .amma-cookie-banner__inner {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 18px 18px 18px 22px;
        border-radius: 24px 24px 0 0;
    }

    body.amma-med-theme .amma-cookie-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    body.amma-med-theme .amma-cookie-banner {
        bottom: calc(88px + env(safe-area-inset-bottom));
        padding: 0 10px;
    }

    body.amma-med-theme.amma-cookie-open {
        padding-bottom: 244px;
    }

    body.amma-med-theme .amma-cookie-banner__inner {
        gap: 16px;
        padding: 16px 16px 16px 20px;
        border-radius: 22px;
    }

    body.amma-med-theme .amma-cookie-banner__title {
        font-size: 18px;
    }

    body.amma-med-theme .amma-cookie-banner__text {
        font-size: 14px;
    }

    body.amma-med-theme .amma-cookie-banner__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    body.amma-med-theme .amma-cookie-banner__link,
    body.amma-med-theme .amma-cookie-banner__button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
}
