:root {
    --amma-bg: #edf4ff;
    --amma-bg-soft: #f7fbff;
    --amma-surface: rgba(255, 255, 255, 0.96);
    --amma-surface-strong: #ffffff;
    --amma-text: #2c466c;
    --amma-title: #173663;
    --amma-muted: #6d83a6;
    --amma-border: #d9e6f8;
    --amma-accent: #2f80ed;
    --amma-accent-dark: #1f6fdb;
    --amma-shadow: 0 18px 48px rgba(22, 54, 99, 0.08);
    --amma-radius-xl: 30px;
    --amma-radius-lg: 24px;
    --amma-radius-md: 18px;
    --amma-radius-sm: 14px;
    --amma-container: 1360px;
}

html {
    scroll-behavior: smooth;
}

body.amma-med-theme {
    margin: 0;
    background: linear-gradient(180deg, #f6faff 0%, #edf5ff 100%);
    color: var(--amma-text);
    font-family: "Onest", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.amma-med-theme * {
    box-sizing: border-box;
}

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

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

body.amma-med-theme a:hover {
    color: var(--amma-accent-dark);
}

body.amma-med-theme .container {
    width: min(100% - 40px, var(--amma-container));
    margin-inline: auto;
}

body.amma-med-theme h1,
body.amma-med-theme h2,
body.amma-med-theme h3,
body.amma-med-theme h4 {
    margin: 0;
    color: var(--amma-title);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.amma-med-theme .amma-card,
body.amma-med-theme .amma-content-box,
body.amma-med-theme .amma-info-box,
body.amma-med-theme .amma-contact-card,
body.amma-med-theme .amma-map-card,
body.amma-med-theme .amma-price-table-wrap,
body.amma-med-theme .amma-doc-card,
body.amma-med-theme .amma-callout,
body.amma-med-theme .amma-search-result {
    background: var(--amma-surface);
    border: 1px solid var(--amma-border);
    border-radius: var(--amma-radius-xl);
    box-shadow: var(--amma-shadow);
}

body.amma-med-theme .amma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    background: var(--amma-accent);
    border: 1px solid var(--amma-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: all .2s ease;
    cursor: pointer;
}

body.amma-med-theme .amma-btn:hover {
    background: var(--amma-accent-dark);
    border-color: var(--amma-accent-dark);
    color: #fff;
}

body.amma-med-theme .amma-btn--ghost {
    background: #fff;
    border-color: var(--amma-border);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-btn--ghost:hover {
    background: #f5f9ff;
    border-color: var(--amma-accent);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-btn--small {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
}

body.amma-med-theme .amma-kicker,
body.amma-med-theme .amma-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.1);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body.amma-med-theme .amma-section {
    padding: 36px 0 44px;
}

body.amma-med-theme .amma-section-title {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
}

body.amma-med-theme .amma-section-text {
    margin: 0;
    color: var(--amma-muted);
    font-size: 17px;
}

body.amma-med-theme .amma-section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}

body.amma-med-theme .amma-grid {
    display: grid;
    gap: 24px;
}

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

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

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

body.amma-med-theme .amma-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .amma-sidebar-boxes {
    display: grid;
    gap: 20px;
}

body.amma-med-theme .amma-content-box {
    padding: 34px;
}

body.amma-med-theme .amma-info-box,
body.amma-med-theme .amma-contact-card,
body.amma-med-theme .amma-map-card,
body.amma-med-theme .amma-callout {
    padding: 28px;
}

body.amma-med-theme .amma-entry-content,
body.amma-med-theme .amma-entry-content p,
body.amma-med-theme .amma-page-top__lead,
body.amma-med-theme .amma-page-top__lead p {
    color: var(--amma-text);
}

body.amma-med-theme .amma-entry-content > *:first-child,
body.amma-med-theme .amma-page-top__lead > *:first-child {
    margin-top: 0;
}

body.amma-med-theme .amma-entry-content > *:last-child,
body.amma-med-theme .amma-page-top__lead > *:last-child {
    margin-bottom: 0;
}

body.amma-med-theme .amma-entry-content ul,
body.amma-med-theme .amma-info-list {
    margin: 0;
    padding-left: 20px;
}

body.amma-med-theme .amma-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 230, 248, 0.9);
}

body.amma-med-theme .amma-header__row {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 90px;
}

body.amma-med-theme .amma-header__logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

body.amma-med-theme .amma-header__logo img {
    max-height: 72px;
    width: auto;
}

body.amma-med-theme .amma-header__logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f80ed, #57a1ff);
    color: #fff;
    font-weight: 800;
}

body.amma-med-theme .amma-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-menu a {
    color: var(--amma-title);
    font-size: 15px;
    font-weight: 700;
}

body.amma-med-theme .amma-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.amma-med-theme .amma-header__phone,
body.amma-med-theme .amma-header__whatsapp,
body.amma-med-theme .amma-header__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

body.amma-med-theme .amma-header__search-toggle {
    cursor: pointer;
}

body.amma-med-theme .amma-header__cta {
    min-height: 48px;
}

body.amma-med-theme .amma-burger {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--amma-border);
    border-radius: 16px;
    background: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

body.amma-med-theme .amma-burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--amma-title);
}

body.amma-med-theme .amma-breadcrumbs {
    padding: 14px 0;
    background: rgba(239, 246, 255, 0.9);
    border-bottom: 1px solid var(--amma-border);
    font-size: 14px;
}

body.amma-med-theme .amma-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--amma-muted);
}

body.amma-med-theme .amma-breadcrumbs-sep {
    opacity: .55;
}

body.amma-med-theme .amma-page-top {
    padding: 32px 0 8px;
}

body.amma-med-theme .amma-page-top__wrap {
    padding: 34px 36px;
}

body.amma-med-theme .amma-page-top__wrap--media {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
    gap: 28px;
    align-items: stretch;
}

body.amma-med-theme .amma-page-top__content {
    display: grid;
    align-content: center;
    gap: 16px;
}

body.amma-med-theme .amma-page-top__title {
    font-size: clamp(38px, 6vw, 74px);
    line-height: .96;
}

body.amma-med-theme .amma-page-top__lead {
    font-size: 18px;
    color: var(--amma-muted);
}

body.amma-med-theme .amma-page-top__actions,
body.amma-med-theme .amma-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

body.amma-med-theme .amma-page-top__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.amma-med-theme .amma-page-top__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, .08);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-page-top__media {
    min-height: 100%;
}

body.amma-med-theme .amma-page-top__image,
body.amma-med-theme .amma-doctor-card-v2__image {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fbff 0%, #ebf3ff 100%);
}

body.amma-med-theme .amma-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ebf3ff 100%);
    border: 1px solid var(--amma-border);
}

body.amma-med-theme .amma-media-placeholder__logo {
    color: var(--amma-title);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.amma-med-theme .amma-contact-card h3,
body.amma-med-theme .amma-info-box h3,
body.amma-med-theme .amma-doc-card__title,
body.amma-med-theme .amma-service-card-v2__title,
body.amma-med-theme .amma-doctor-card-v2__name,
body.amma-med-theme .amma-search-result__title {
    font-size: 26px;
    line-height: 1.12;
}

body.amma-med-theme .amma-contact-card__value,
body.amma-med-theme .amma-map-card__body,
body.amma-med-theme .amma-doc-card__excerpt,
body.amma-med-theme .amma-search-result__excerpt {
    margin-top: 14px;
    color: var(--amma-text);
}

body.amma-med-theme .amma-doc-list {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-doc-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 28px;
}

body.amma-med-theme .amma-doc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--amma-muted);
    font-size: 14px;
    font-weight: 700;
}

body.amma-med-theme .amma-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

body.amma-med-theme .amma-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--amma-border);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-filter-pill:hover {
    border-color: var(--amma-accent);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-price-sections {
    display: grid;
    gap: 28px;
}

body.amma-med-theme .amma-price-section__head {
    margin-bottom: 12px;
}

body.amma-med-theme .amma-price-section__head h2 {
    font-size: 34px;
}

body.amma-med-theme .amma-price-table-wrap {
    overflow: hidden;
    padding: 8px;
}

body.amma-med-theme .amma-price-table {
    width: 100%;
    border-collapse: collapse;
}

body.amma-med-theme .amma-price-table th,
body.amma-med-theme .amma-price-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--amma-border);
    text-align: left;
    vertical-align: top;
}

body.amma-med-theme .amma-price-table thead th {
    color: var(--amma-title);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.amma-med-theme .amma-price-table tbody tr:last-child td {
    border-bottom: none;
}

body.amma-med-theme .amma-service-card-v2,
body.amma-med-theme .amma-doctor-card-v2,
body.amma-med-theme .amma-search-result {
    padding: 24px;
}

body.amma-med-theme .amma-service-card-v2 {
    display: grid;
    gap: 14px;
}

body.amma-med-theme .amma-service-card-v2__top,
body.amma-med-theme .amma-service-card-v2__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.amma-med-theme .amma-service-card-v2__code,
body.amma-med-theme .amma-doctor-card-v2__experience,
body.amma-med-theme .amma-doctor-card-v2__position {
    color: var(--amma-muted);
    font-size: 14px;
    font-weight: 700;
}

body.amma-med-theme .amma-service-card-v2__text {
    color: var(--amma-text);
}

body.amma-med-theme .amma-service-card-v2__price {
    color: var(--amma-title);
    font-size: 22px;
    font-weight: 800;
}

body.amma-med-theme .amma-doctor-card-v2 {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-doctor-card-v2__media {
    aspect-ratio: 4 / 3.25;
}

body.amma-med-theme .amma-doctor-card-v2__content {
    display: grid;
    gap: 10px;
}

body.amma-med-theme .amma-doctor-card-v2__services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.amma-med-theme .amma-doctor-card-v2__services span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--amma-title);
    font-size: 13px;
    font-weight: 700;
}

body.amma-med-theme .amma-search-results {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-link-more {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: var(--amma-accent);
    font-weight: 700;
}

body.amma-med-theme .amma-empty-state {
    padding: 30px;
}

body.amma-med-theme .amma-pagination {
    margin-top: 28px;
}

body.amma-med-theme .amma-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.amma-med-theme .amma-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--amma-border);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-pagination .current {
    background: var(--amma-accent);
    border-color: var(--amma-accent);
    color: #fff;
}

body.amma-med-theme .amma-footer {
    margin-top: 34px;
    padding: 44px 0 28px;
    background: linear-gradient(180deg, #173663 0%, #10284c 100%);
    color: rgba(255, 255, 255, .82);
}

body.amma-med-theme .amma-footer a {
    color: #fff;
}

body.amma-med-theme .amma-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 28px;
}

body.amma-med-theme .amma-footer__title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

body.amma-med-theme .amma-footer__contacts,
body.amma-med-theme .amma-footer-menu,
body.amma-med-theme .amma-footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px;
}

body.amma-med-theme .amma-mobile-sticky-bar {
    display: none;
}

body.amma-med-theme .amma-search-form {
    display: grid;
    gap: 12px;
}

body.amma-med-theme .amma-search-form__label {
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-search-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

body.amma-med-theme .amma-search-form__input {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 16px;
}

body.amma-med-theme .amma-search-drawer,
body.amma-med-theme .amma-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transition: .2s ease;
}

body.amma-med-theme .amma-search-drawer.is-open,
body.amma-med-theme .amma-mobile-drawer.is-open {
    visibility: visible;
    opacity: 1;
}

body.amma-med-theme .amma-search-drawer__overlay,
body.amma-med-theme .amma-mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 21, 40, .44);
}

body.amma-med-theme .amma-search-drawer__panel,
body.amma-med-theme .amma-mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(92vw, 460px);
    height: 100%;
    padding: 28px;
    background: #fff;
    box-shadow: -20px 0 50px rgba(0,0,0,.14);
}

body.amma-med-theme .amma-search-drawer__head,
body.amma-med-theme .amma-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

body.amma-med-theme .amma-search-drawer__title,
body.amma-med-theme .amma-mobile-drawer__title {
    color: var(--amma-title);
    font-size: 22px;
    font-weight: 800;
}

body.amma-med-theme .amma-search-drawer__close,
body.amma-med-theme .amma-mobile-drawer__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 24px;
}

body.amma-med-theme .amma-mobile-menu {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--amma-bg-soft);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-mobile-drawer__actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 1360px) {
    body.amma-med-theme .amma-header__search-toggle {
        display: none;
    }

    body.amma-med-theme .amma-header__row {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
    }
}

@media (max-width: 1240px) {
    body.amma-med-theme .amma-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-med-theme .amma-header__nav,
    body.amma-med-theme .amma-header__phone,
    body.amma-med-theme .amma-header__whatsapp,
    body.amma-med-theme .amma-header__cta {
        display: none;
    }

    body.amma-med-theme .amma-burger {
        display: inline-flex;
    }

    body.amma-med-theme .amma-header__row {
        grid-template-columns: 1fr auto;
        min-height: 84px;
    }
}

@media (max-width: 980px) {
    body.amma-med-theme .amma-grid-3,
    body.amma-med-theme .amma-grid-2,
    body.amma-med-theme .amma-layout-grid,
    body.amma-med-theme .amma-page-top__wrap--media,
    body.amma-med-theme .amma-footer__grid,
    body.amma-med-theme .amma-doc-card {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-page-top__title {
        font-size: clamp(32px, 8vw, 52px);
    }

    body.amma-med-theme .amma-page-top__wrap,
    body.amma-med-theme .amma-content-box,
    body.amma-med-theme .amma-info-box,
    body.amma-med-theme .amma-contact-card,
    body.amma-med-theme .amma-map-card,
    body.amma-med-theme .amma-search-result {
        padding: 24px;
    }
}

@media (max-width: 760px) {
    body.amma-med-theme .container {
        width: min(100% - 24px, var(--amma-container));
    }

    body.amma-med-theme .amma-grid-4,
    body.amma-med-theme .amma-grid-3,
    body.amma-med-theme .amma-grid-2,
    body.amma-med-theme .amma-search-form__row {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-price-table-wrap {
        overflow-x: auto;
    }

    body.amma-med-theme .amma-price-table {
        min-width: 720px;
    }

    body.amma-med-theme .amma-page-top {
        padding-top: 24px;
    }

    body.amma-med-theme .amma-mobile-sticky-bar {
        position: sticky;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.94);
        border-top: 1px solid var(--amma-border);
        backdrop-filter: blur(10px);
    }

    body.amma-med-theme .amma-mobile-sticky-bar__item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 10px;
        border-radius: 14px;
        border: 1px solid var(--amma-border);
        background: #fff;
        color: var(--amma-title);
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    body.amma-med-theme .amma-mobile-sticky-bar__item--accent {
        background: var(--amma-accent);
        border-color: var(--amma-accent);
        color: #fff;
    }
}
body.amma-med-theme.amma-lock{overflow:hidden;}

/* Services redesign */
body.amma-services-page .amma-services-hero {
    position: relative;
    padding: 34px 0 26px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    overflow: hidden;
}

body.amma-services-page .amma-services-hero::before,
body.amma-services-page .amma-services-section[style]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.94), rgba(238, 245, 255, 0.94));
    pointer-events: none;
}

body.amma-services-page .amma-services-hero > .container,
body.amma-services-page .amma-services-section > .container {
    position: relative;
    z-index: 1;
}

body.amma-services-page .amma-services-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

body.amma-services-page .amma-services-hero__content,
body.amma-services-page .amma-services-hero__side,
body.amma-services-page .amma-services-intro,
body.amma-services-page .amma-services-bottom-card,
body.amma-services-page .amma-services-seo {
    position: relative;
    z-index: 1;
    padding: 30px;
}

body.amma-services-page .amma-services-hero__title {
    margin-top: 16px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

body.amma-services-page .amma-services-hero__lead {
    margin-top: 18px;
    color: var(--amma-text);
    font-size: 18px;
    line-height: 1.7;
}

body.amma-services-page .amma-services-hero__lead p,
body.amma-services-page .amma-services-bottom-card .amma-section-text p,
body.amma-services-page .amma-services-seo .amma-section-text p {
    margin: 0;
}

body.amma-services-page .amma-services-hero__actions,
body.amma-services-page .amma-services-bottom-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

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

body.amma-services-page .amma-services-stat {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid var(--amma-border);
}

body.amma-services-page .amma-services-stat strong {
    color: var(--amma-accent);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

body.amma-services-page .amma-services-stat span {
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.45;
}

body.amma-services-page .amma-services-hero__side-text {
    margin-top: 18px;
    color: var(--amma-muted);
    font-size: 16px;
    line-height: 1.68;
}

body.amma-services-page .amma-services-hero__side-links,
body.amma-services-page .amma-services-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.amma-services-page .amma-services-hero__side-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--amma-accent);
    font-size: 14px;
    font-weight: 700;
}

body.amma-services-page .amma-services-section {
    position: relative;
}

body.amma-services-page .amma-services-intro__text {
    margin-top: 14px;
}

body.amma-services-page .amma-services-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

body.amma-services-page .amma-services-category-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--amma-border);
    box-shadow: 0 18px 34px rgba(22, 54, 99, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.amma-services-page .amma-services-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 128, 237, 0.35);
    box-shadow: 0 20px 36px rgba(22, 54, 99, 0.08);
}

body.amma-services-page .amma-services-category-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 700;
}

body.amma-services-page .amma-services-category-card__title {
    margin-top: 16px;
    font-size: 28px;
    line-height: 1.06;
}

body.amma-services-page .amma-services-category-card__text {
    margin-top: 14px;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.62;
}

body.amma-services-page .amma-services-category-card__link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--amma-accent);
    font-size: 15px;
    font-weight: 800;
}

body.amma-services-page .amma-filter-row--services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

body.amma-services-page .amma-filter-pill.is-active {
    background: var(--amma-accent);
    color: #fff;
    border-color: var(--amma-accent);
}

body.amma-services-page .amma-service-info-box h3 {
    margin-bottom: 14px;
    font-size: 24px;
}

body.amma-services-page .amma-services-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

body.amma-services-page .amma-services-bottom-card__contact {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid var(--amma-border);
}

body.amma-services-page .amma-services-bottom-card__contact span {
    color: var(--amma-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.amma-services-page .amma-services-bottom-card__contact a {
    color: var(--amma-title);
    font-size: 18px;
    font-weight: 800;
}

body.amma-services-page .amma-services-seo {
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    body.amma-services-page .amma-services-hero__grid,
    body.amma-services-page .amma-services-bottom-grid {
        grid-template-columns: 1fr;
    }

    body.amma-services-page .amma-services-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.amma-services-page .amma-services-hero,
    body.amma-services-page .amma-services-section {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    body.amma-services-page .amma-services-hero__content,
    body.amma-services-page .amma-services-hero__side,
    body.amma-services-page .amma-services-intro,
    body.amma-services-page .amma-services-bottom-card,
    body.amma-services-page .amma-services-seo {
        padding: 22px;
    }

    body.amma-services-page .amma-services-hero__title {
        font-size: 38px;
    }

    body.amma-services-page .amma-services-hero__stats,
    body.amma-services-page .amma-services-categories-grid,
    body.amma-services-page .amma-services-bottom-grid {
        grid-template-columns: 1fr;
    }

    body.amma-services-page .amma-services-hero__actions,
    body.amma-services-page .amma-services-bottom-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.amma-services-page .amma-services-hero__actions .amma-btn,
    body.amma-services-page .amma-services-bottom-card__actions .amma-btn {
        width: 100%;
    }

    body.amma-services-page .amma-services-category-card__title {
        font-size: 24px;
    }
}


body.amma-med-theme .amma-doctor-card-v2__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

body.amma-med-theme .amma-doctor-card-v2__excerpt {
    color: #6d84a0;
    font-size: 15px;
    line-height: 1.58;
}

body.amma-med-theme .amma-chip--soft {
    background: rgba(22, 59, 112, 0.06);
    color: #35517b;
}

body.amma-med-theme .amma-specialists-hero {
    padding: 34px 0 24px;
    background:
        radial-gradient(circle at top right, rgba(47, 128, 237, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.88) 0%, rgba(237, 245, 255, 0.62) 100%);
    background-size: cover;
    background-repeat: no-repeat;
}

body.amma-med-theme .amma-specialists-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .amma-specialists-hero__content,
body.amma-med-theme .amma-specialists-hero__side,
body.amma-med-theme .amma-specialists-hero__profile,
body.amma-med-theme .amma-specialists-intro,
body.amma-med-theme .amma-specialists-seo {
    padding: 28px;
    border-radius: 30px;
}

body.amma-med-theme .amma-specialists-hero__title {
    margin-top: 10px;
    font-size: clamp(36px, 4.8vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #163b70;
}

body.amma-med-theme .amma-specialists-hero__lead,
body.amma-med-theme .amma-specialists-hero__summary {
    margin-top: 16px;
    color: #607b99;
    font-size: 18px;
    line-height: 1.65;
}

body.amma-med-theme .amma-specialists-hero__actions,
body.amma-med-theme .amma-specialists-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

body.amma-med-theme .amma-specialists-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.amma-med-theme .amma-specialists-stat,
body.amma-med-theme .amma-specialists-fact {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid rgba(220, 231, 242, 0.95);
    border-radius: 20px;
}

body.amma-med-theme .amma-specialists-stat strong,
body.amma-med-theme .amma-specialists-fact strong {
    color: var(--amma-accent);
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

body.amma-med-theme .amma-specialists-stat span,
body.amma-med-theme .amma-specialists-fact span {
    color: #7088a5;
    font-size: 14px;
    line-height: 1.5;
}

body.amma-med-theme .amma-specialists-hero__side-text {
    margin-top: 18px;
    color: #627d9b;
    font-size: 16px;
    line-height: 1.62;
}

body.amma-med-theme .amma-specialists-hero__side-links {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

body.amma-med-theme .amma-specialists-hero__side-links a {
    color: var(--amma-accent);
    font-weight: 700;
}

body.amma-med-theme .amma-specialists-section {
    padding: 34px 0;
}

body.amma-med-theme .amma-specialists-section--soft {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.62) 0%, rgba(237, 245, 255, 0.42) 100%);
    background-size: cover;
}

body.amma-med-theme .amma-specialists-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.68fr);
    gap: 24px;
}

body.amma-med-theme .amma-specialists-intro__facts {
    display: grid;
    gap: 14px;
}

body.amma-med-theme .amma-specializations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

body.amma-med-theme .amma-specialization-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(220, 231, 242, 0.95);
    border-radius: 28px;
    box-shadow: 0 16px 28px rgba(22, 59, 112, 0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.amma-med-theme .amma-specialization-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 34px rgba(22, 59, 112, 0.08);
    border-color: rgba(47, 128, 237, 0.32);
}

body.amma-med-theme .amma-specialization-card__count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

body.amma-med-theme .amma-specialization-card__title {
    margin-top: 16px;
    color: #163b70;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

body.amma-med-theme .amma-specialization-card__text {
    margin-top: 14px;
    color: #6e86a2;
    font-size: 15px;
    line-height: 1.58;
}

body.amma-med-theme .amma-specialization-card__link {
    margin-top: auto;
    padding-top: 18px;
    color: var(--amma-accent);
    font-weight: 800;
}

body.amma-med-theme .amma-specialists-hero__profile {
    overflow: hidden;
}

body.amma-med-theme .amma-specialists-profile__media {
    overflow: hidden;
    border-radius: 24px;
}

body.amma-med-theme .amma-specialists-profile__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.3;
    object-fit: cover;
}

body.amma-med-theme .amma-specialists-profile__facts {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

body.amma-med-theme .amma-specialists-profile__facts > div {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid rgba(220, 231, 242, 0.95);
    border-radius: 18px;
}

body.amma-med-theme .amma-specialists-profile__facts strong {
    color: #7b8ea8;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.amma-med-theme .amma-specialists-profile__facts span {
    color: #1f426f;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
}

body.amma-med-theme .amma-specialist-info-box {
    border-radius: 24px;
}

@media (max-width: 1200px) {
    body.amma-med-theme .amma-specialists-hero__grid,
    body.amma-med-theme .amma-specialists-intro {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    body.amma-med-theme .amma-specialists-hero,
    body.amma-med-theme .amma-specialists-section {
        padding: 24px 0;
    }

    body.amma-med-theme .amma-specialists-hero__content,
    body.amma-med-theme .amma-specialists-hero__side,
    body.amma-med-theme .amma-specialists-hero__profile,
    body.amma-med-theme .amma-specialists-intro,
    body.amma-med-theme .amma-specialists-seo {
        padding: 22px;
        border-radius: 24px;
    }

    body.amma-med-theme .amma-specialists-hero__title {
        font-size: 38px;
    }

    body.amma-med-theme .amma-specializations-grid,
    body.amma-med-theme .amma-specialists-hero__actions,
    body.amma-med-theme .amma-specialists-hero__chips {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-specializations-grid {
        display: grid;
    }

    body.amma-med-theme .amma-specialists-hero__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    body.amma-med-theme .amma-specialists-hero__actions .amma-btn {
        width: 100%;
    }

    body.amma-med-theme .amma-specialization-card {
        min-height: auto;
    }
}
:root {
    --amma-bg: #edf4ff;
    --amma-bg-soft: #f7fbff;
    --amma-surface: rgba(255, 255, 255, 0.96);
    --amma-surface-strong: #ffffff;
    --amma-text: #2c466c;
    --amma-title: #173663;
    --amma-muted: #6d83a6;
    --amma-border: #d9e6f8;
    --amma-accent: #2f80ed;
    --amma-accent-dark: #1f6fdb;
    --amma-shadow: 0 18px 48px rgba(22, 54, 99, 0.08);
    --amma-radius-xl: 30px;
    --amma-radius-lg: 24px;
    --amma-radius-md: 18px;
    --amma-radius-sm: 14px;
    --amma-container: 1360px;
}

html {
    scroll-behavior: smooth;
}

body.amma-med-theme {
    margin: 0;
    background: linear-gradient(180deg, #f6faff 0%, #edf5ff 100%);
    color: var(--amma-text);
    font-family: "Onest", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.amma-med-theme * {
    box-sizing: border-box;
}

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

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

body.amma-med-theme a:hover {
    color: var(--amma-accent-dark);
}

body.amma-med-theme .container {
    width: min(100% - 40px, var(--amma-container));
    margin-inline: auto;
}

body.amma-med-theme h1,
body.amma-med-theme h2,
body.amma-med-theme h3,
body.amma-med-theme h4 {
    margin: 0;
    color: var(--amma-title);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.amma-med-theme .amma-card,
body.amma-med-theme .amma-content-box,
body.amma-med-theme .amma-info-box,
body.amma-med-theme .amma-contact-card,
body.amma-med-theme .amma-map-card,
body.amma-med-theme .amma-price-table-wrap,
body.amma-med-theme .amma-doc-card,
body.amma-med-theme .amma-callout,
body.amma-med-theme .amma-search-result {
    background: var(--amma-surface);
    border: 1px solid var(--amma-border);
    border-radius: var(--amma-radius-xl);
    box-shadow: var(--amma-shadow);
}

body.amma-med-theme .amma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    background: var(--amma-accent);
    border: 1px solid var(--amma-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: all .2s ease;
    cursor: pointer;
}

body.amma-med-theme .amma-btn:hover {
    background: var(--amma-accent-dark);
    border-color: var(--amma-accent-dark);
    color: #fff;
}

body.amma-med-theme .amma-btn--ghost {
    background: #fff;
    border-color: var(--amma-border);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-btn--ghost:hover {
    background: #f5f9ff;
    border-color: var(--amma-accent);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-btn--small {
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
}

body.amma-med-theme .amma-kicker,
body.amma-med-theme .amma-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.1);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

body.amma-med-theme .amma-section {
    padding: 36px 0 44px;
}

body.amma-med-theme .amma-section-title {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
}

body.amma-med-theme .amma-section-text {
    margin: 0;
    color: var(--amma-muted);
    font-size: 17px;
}

body.amma-med-theme .amma-section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 26px;
}

body.amma-med-theme .amma-grid {
    display: grid;
    gap: 24px;
}

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

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

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

body.amma-med-theme .amma-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .amma-sidebar-boxes {
    display: grid;
    gap: 20px;
}

body.amma-med-theme .amma-content-box {
    padding: 34px;
}

body.amma-med-theme .amma-info-box,
body.amma-med-theme .amma-contact-card,
body.amma-med-theme .amma-map-card,
body.amma-med-theme .amma-callout {
    padding: 28px;
}

body.amma-med-theme .amma-entry-content,
body.amma-med-theme .amma-entry-content p,
body.amma-med-theme .amma-page-top__lead,
body.amma-med-theme .amma-page-top__lead p {
    color: var(--amma-text);
}

body.amma-med-theme .amma-entry-content > *:first-child,
body.amma-med-theme .amma-page-top__lead > *:first-child {
    margin-top: 0;
}

body.amma-med-theme .amma-entry-content > *:last-child,
body.amma-med-theme .amma-page-top__lead > *:last-child {
    margin-bottom: 0;
}

body.amma-med-theme .amma-entry-content ul,
body.amma-med-theme .amma-info-list {
    margin: 0;
    padding-left: 20px;
}

body.amma-med-theme .amma-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217, 230, 248, 0.9);
}

body.amma-med-theme .amma-header__row {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 90px;
}

body.amma-med-theme .amma-header__logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

body.amma-med-theme .amma-header__logo img {
    max-height: 72px;
    width: auto;
}

body.amma-med-theme .amma-header__logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f80ed, #57a1ff);
    color: #fff;
    font-weight: 800;
}

body.amma-med-theme .amma-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-menu a {
    color: var(--amma-title);
    font-size: 15px;
    font-weight: 700;
}

body.amma-med-theme .amma-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.amma-med-theme .amma-header__phone,
body.amma-med-theme .amma-header__whatsapp,
body.amma-med-theme .amma-header__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

body.amma-med-theme .amma-header__search-toggle {
    cursor: pointer;
}

body.amma-med-theme .amma-header__cta {
    min-height: 48px;
}

body.amma-med-theme .amma-burger {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--amma-border);
    border-radius: 16px;
    background: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

body.amma-med-theme .amma-burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--amma-title);
}

body.amma-med-theme .amma-breadcrumbs {
    padding: 14px 0;
    background: rgba(239, 246, 255, 0.9);
    border-bottom: 1px solid var(--amma-border);
    font-size: 14px;
}

body.amma-med-theme .amma-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--amma-muted);
}

body.amma-med-theme .amma-breadcrumbs-sep {
    opacity: .55;
}

body.amma-med-theme .amma-page-top {
    padding: 32px 0 8px;
}

body.amma-med-theme .amma-page-top__wrap {
    padding: 34px 36px;
}

body.amma-med-theme .amma-page-top__wrap--media {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(300px, .98fr);
    gap: 28px;
    align-items: stretch;
}

body.amma-med-theme .amma-page-top__content {
    display: grid;
    align-content: center;
    gap: 16px;
}

body.amma-med-theme .amma-page-top__title {
    font-size: clamp(38px, 6vw, 74px);
    line-height: .96;
}

body.amma-med-theme .amma-page-top__lead {
    font-size: 18px;
    color: var(--amma-muted);
}

body.amma-med-theme .amma-page-top__actions,
body.amma-med-theme .amma-callout {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

body.amma-med-theme .amma-page-top__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.amma-med-theme .amma-page-top__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, .08);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-page-top__media {
    min-height: 100%;
}

body.amma-med-theme .amma-page-top__image,
body.amma-med-theme .amma-doctor-card-v2__image {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fbff 0%, #ebf3ff 100%);
}

body.amma-med-theme .amma-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ebf3ff 100%);
    border: 1px solid var(--amma-border);
}

body.amma-med-theme .amma-media-placeholder__logo {
    color: var(--amma-title);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.amma-med-theme .amma-contact-card h3,
body.amma-med-theme .amma-info-box h3,
body.amma-med-theme .amma-doc-card__title,
body.amma-med-theme .amma-service-card-v2__title,
body.amma-med-theme .amma-doctor-card-v2__name,
body.amma-med-theme .amma-search-result__title {
    font-size: 26px;
    line-height: 1.12;
}

body.amma-med-theme .amma-contact-card__value,
body.amma-med-theme .amma-map-card__body,
body.amma-med-theme .amma-doc-card__excerpt,
body.amma-med-theme .amma-search-result__excerpt {
    margin-top: 14px;
    color: var(--amma-text);
}

body.amma-med-theme .amma-doc-list {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-doc-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 28px;
}

body.amma-med-theme .amma-doc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--amma-muted);
    font-size: 14px;
    font-weight: 700;
}

body.amma-med-theme .amma-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

body.amma-med-theme .amma-filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--amma-border);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-filter-pill:hover {
    border-color: var(--amma-accent);
    color: var(--amma-accent);
}

body.amma-med-theme .amma-price-sections {
    display: grid;
    gap: 28px;
}

body.amma-med-theme .amma-price-section__head {
    margin-bottom: 12px;
}

body.amma-med-theme .amma-price-section__head h2 {
    font-size: 34px;
}

body.amma-med-theme .amma-price-table-wrap {
    overflow: hidden;
    padding: 8px;
}

body.amma-med-theme .amma-price-table {
    width: 100%;
    border-collapse: collapse;
}

body.amma-med-theme .amma-price-table th,
body.amma-med-theme .amma-price-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--amma-border);
    text-align: left;
    vertical-align: top;
}

body.amma-med-theme .amma-price-table thead th {
    color: var(--amma-title);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.amma-med-theme .amma-price-table tbody tr:last-child td {
    border-bottom: none;
}

body.amma-med-theme .amma-service-card-v2,
body.amma-med-theme .amma-doctor-card-v2,
body.amma-med-theme .amma-search-result {
    padding: 24px;
}

body.amma-med-theme .amma-service-card-v2 {
    display: grid;
    gap: 14px;
}

body.amma-med-theme .amma-service-card-v2__top,
body.amma-med-theme .amma-service-card-v2__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.amma-med-theme .amma-service-card-v2__code,
body.amma-med-theme .amma-doctor-card-v2__experience,
body.amma-med-theme .amma-doctor-card-v2__position {
    color: var(--amma-muted);
    font-size: 14px;
    font-weight: 700;
}

body.amma-med-theme .amma-service-card-v2__text {
    color: var(--amma-text);
}

body.amma-med-theme .amma-service-card-v2__price {
    color: var(--amma-title);
    font-size: 22px;
    font-weight: 800;
}

body.amma-med-theme .amma-doctor-card-v2 {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-doctor-card-v2__media {
    aspect-ratio: 4 / 3.25;
}

body.amma-med-theme .amma-doctor-card-v2__content {
    display: grid;
    gap: 10px;
}

body.amma-med-theme .amma-doctor-card-v2__services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.amma-med-theme .amma-doctor-card-v2__services span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--amma-title);
    font-size: 13px;
    font-weight: 700;
}

body.amma-med-theme .amma-search-results {
    display: grid;
    gap: 18px;
}

body.amma-med-theme .amma-link-more {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: var(--amma-accent);
    font-weight: 700;
}

body.amma-med-theme .amma-empty-state {
    padding: 30px;
}

body.amma-med-theme .amma-pagination {
    margin-top: 28px;
}

body.amma-med-theme .amma-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.amma-med-theme .amma-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--amma-border);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-pagination .current {
    background: var(--amma-accent);
    border-color: var(--amma-accent);
    color: #fff;
}

body.amma-med-theme .amma-footer {
    margin-top: 34px;
    padding: 44px 0 28px;
    background: linear-gradient(180deg, #173663 0%, #10284c 100%);
    color: rgba(255, 255, 255, .82);
}

body.amma-med-theme .amma-footer a {
    color: #fff;
}

body.amma-med-theme .amma-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 28px;
}

body.amma-med-theme .amma-footer__title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

body.amma-med-theme .amma-footer__contacts,
body.amma-med-theme .amma-footer-menu,
body.amma-med-theme .amma-footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px;
}

body.amma-med-theme .amma-mobile-sticky-bar {
    display: none;
}

body.amma-med-theme .amma-search-form {
    display: grid;
    gap: 12px;
}

body.amma-med-theme .amma-search-form__label {
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-search-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

body.amma-med-theme .amma-search-form__input {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 16px;
}

body.amma-med-theme .amma-search-drawer,
body.amma-med-theme .amma-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transition: .2s ease;
}

body.amma-med-theme .amma-search-drawer.is-open,
body.amma-med-theme .amma-mobile-drawer.is-open {
    visibility: visible;
    opacity: 1;
}

body.amma-med-theme .amma-search-drawer__overlay,
body.amma-med-theme .amma-mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 21, 40, .44);
}

body.amma-med-theme .amma-search-drawer__panel,
body.amma-med-theme .amma-mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(92vw, 460px);
    height: 100%;
    padding: 28px;
    background: #fff;
    box-shadow: -20px 0 50px rgba(0,0,0,.14);
}

body.amma-med-theme .amma-search-drawer__head,
body.amma-med-theme .amma-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

body.amma-med-theme .amma-search-drawer__title,
body.amma-med-theme .amma-mobile-drawer__title {
    color: var(--amma-title);
    font-size: 22px;
    font-weight: 800;
}

body.amma-med-theme .amma-search-drawer__close,
body.amma-med-theme .amma-mobile-drawer__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--amma-border);
    background: #fff;
    color: var(--amma-title);
    font-size: 24px;
}

body.amma-med-theme .amma-mobile-menu {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.amma-med-theme .amma-mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--amma-bg-soft);
    color: var(--amma-title);
    font-weight: 700;
}

body.amma-med-theme .amma-mobile-drawer__actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 1360px) {
    body.amma-med-theme .amma-header__search-toggle {
        display: none;
    }

    body.amma-med-theme .amma-header__row {
        grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
    }
}

@media (max-width: 1240px) {
    body.amma-med-theme .amma-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-med-theme .amma-header__nav,
    body.amma-med-theme .amma-header__phone,
    body.amma-med-theme .amma-header__whatsapp,
    body.amma-med-theme .amma-header__cta {
        display: none;
    }

    body.amma-med-theme .amma-burger {
        display: inline-flex;
    }

    body.amma-med-theme .amma-header__row {
        grid-template-columns: 1fr auto;
        min-height: 84px;
    }
}

@media (max-width: 980px) {
    body.amma-med-theme .amma-grid-3,
    body.amma-med-theme .amma-grid-2,
    body.amma-med-theme .amma-layout-grid,
    body.amma-med-theme .amma-page-top__wrap--media,
    body.amma-med-theme .amma-footer__grid,
    body.amma-med-theme .amma-doc-card {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-page-top__title {
        font-size: clamp(32px, 8vw, 52px);
    }

    body.amma-med-theme .amma-page-top__wrap,
    body.amma-med-theme .amma-content-box,
    body.amma-med-theme .amma-info-box,
    body.amma-med-theme .amma-contact-card,
    body.amma-med-theme .amma-map-card,
    body.amma-med-theme .amma-search-result {
        padding: 24px;
    }
}

@media (max-width: 760px) {
    body.amma-med-theme .container {
        width: min(100% - 24px, var(--amma-container));
    }

    body.amma-med-theme .amma-grid-4,
    body.amma-med-theme .amma-grid-3,
    body.amma-med-theme .amma-grid-2,
    body.amma-med-theme .amma-search-form__row {
        grid-template-columns: 1fr;
    }

    body.amma-med-theme .amma-price-table-wrap {
        overflow-x: auto;
    }

    body.amma-med-theme .amma-price-table {
        min-width: 720px;
    }

    body.amma-med-theme .amma-page-top {
        padding-top: 24px;
    }

    body.amma-med-theme .amma-mobile-sticky-bar {
        position: sticky;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.94);
        border-top: 1px solid var(--amma-border);
        backdrop-filter: blur(10px);
    }

    body.amma-med-theme .amma-mobile-sticky-bar__item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 10px;
        border-radius: 14px;
        border: 1px solid var(--amma-border);
        background: #fff;
        color: var(--amma-title);
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    body.amma-med-theme .amma-mobile-sticky-bar__item--accent {
        background: var(--amma-accent);
        border-color: var(--amma-accent);
        color: #fff;
    }
}
body.amma-med-theme.amma-lock{overflow:hidden;}

/* About page and contacts page */
body.amma-med-theme .amma-about-hero,
body.amma-med-theme .amma-contacts-hero,
body.amma-med-theme .amma-about-story,
body.amma-med-theme .amma-about-values,
body.amma-med-theme .amma-about-team,
body.amma-med-theme .amma-about-cta,
body.amma-med-theme .amma-contacts-cards,
body.amma-med-theme .amma-contacts-route,
body.amma-med-theme .amma-contacts-help {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.amma-med-theme .amma-about-hero .amma-page-top__wrap,
body.amma-med-theme .amma-contacts-hero .amma-page-top__wrap {
    background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(247,251,255,.95) 100%);
}

body.amma-med-theme .amma-about-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

body.amma-med-theme .amma-about-hero__stat {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(22,54,99,.06);
}

body.amma-med-theme .amma-about-hero__value {
    color: var(--amma-accent);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

body.amma-med-theme .amma-about-hero__label {
    color: var(--amma-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

body.amma-med-theme .amma-value-card,
body.amma-med-theme .amma-doctor-mini,
body.amma-med-theme .amma-about-directions,
body.amma-med-theme .amma-cta-band,
body.amma-med-theme .amma-reputation-band,
body.amma-med-theme .amma-contacts-intro,
body.amma-med-theme .amma-helper-card {
    padding: 28px;
}

body.amma-med-theme .amma-value-card {
    min-height: 100%;
}

body.amma-med-theme .amma-value-card h3,
body.amma-med-theme .amma-helper-card h3,
body.amma-med-theme .amma-about-directions h3 {
    font-size: 24px;
    line-height: 1.15;
}

body.amma-med-theme .amma-value-card p,
body.amma-med-theme .amma-helper-card p,
body.amma-med-theme .amma-doctor-mini__meta,
body.amma-med-theme .amma-about-directions__count {
    margin: 12px 0 0;
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.6;
}

body.amma-med-theme .amma-about-team__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 24px;
    align-items: start;
}

body.amma-med-theme .amma-doctor-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.amma-med-theme .amma-doctor-mini__title {
    color: var(--amma-title);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

body.amma-med-theme .amma-doctor-mini__link {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 700;
}

body.amma-med-theme .amma-about-directions__list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

body.amma-med-theme .amma-about-directions__item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(247,251,255,.92);
    border: 1px solid var(--amma-border);
    transition: all .2s ease;
}

body.amma-med-theme .amma-about-directions__item:hover,
body.amma-med-theme .amma-quick-actions__item:hover {
    border-color: rgba(47,128,237,.35);
    background: #fff;
}

body.amma-med-theme .amma-about-directions__name {
    color: var(--amma-title);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

body.amma-med-theme .amma-about-directions__actions,
body.amma-med-theme .amma-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

body.amma-med-theme .amma-cta-band,
body.amma-med-theme .amma-reputation-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

body.amma-med-theme .amma-cta-band__content,
body.amma-med-theme .amma-reputation-band > div {
    max-width: 860px;
}

body.amma-med-theme .amma-contact-card__subvalue {
    margin-top: 10px;
    color: var(--amma-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.amma-med-theme .amma-contacts-intro {
    margin-top: 24px;
}

body.amma-med-theme .amma-quick-actions {
    display: grid;
    gap: 12px;
}

body.amma-med-theme .amma-quick-actions__item {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(247,251,255,.92);
    border: 1px solid var(--amma-border);
    color: var(--amma-title);
    font-weight: 700;
    transition: all .2s ease;
}

body.amma-med-theme .amma-helper-card {
    display: block;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.amma-med-theme .amma-helper-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47,128,237,.35);
}

@media (max-width: 1100px) {
    body.amma-med-theme .amma-about-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.amma-med-theme .amma-about-team__grid,
    body.amma-med-theme .amma-cta-band,
    body.amma-med-theme .amma-reputation-band {
        display: grid;
        grid-template-columns: 1fr;
    }
}

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

    body.amma-med-theme .amma-value-card,
    body.amma-med-theme .amma-doctor-mini,
    body.amma-med-theme .amma-about-directions,
    body.amma-med-theme .amma-cta-band,
    body.amma-med-theme .amma-reputation-band,
    body.amma-med-theme .amma-contacts-intro,
    body.amma-med-theme .amma-helper-card {
        padding: 22px;
    }

    body.amma-med-theme .amma-about-hero__value {
        font-size: 28px;
    }

    body.amma-med-theme .amma-cta-band__actions .amma-btn,
    body.amma-med-theme .amma-about-directions__actions .amma-btn {
        width: 100%;
    }
}

/* Service UX refinements: cleaner headings, meta badges and price table readability */
body.amma-med-theme .amma-service-card-v2__code {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 76, 151, 0.08);
    color: var(--amma-accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

body.amma-med-theme .amma-page-top__title,
body.amma-services-page .amma-services-hero__title,
body.amma-services-page .amma-section-title {
    text-wrap: balance;
}

body.amma-med-theme .amma-page-top__lead,
body.amma-med-theme .amma-section-text,
body.amma-services-page .amma-services-hero__lead,
body.amma-services-page .amma-services-hero__side-text,
body.amma-services-page .amma-entry-content {
    max-width: 74ch;
    text-wrap: pretty;
}

body.amma-med-theme .amma-price-table th:nth-child(2),
body.amma-med-theme .amma-price-table td:nth-child(2) {
    width: 180px;
    white-space: nowrap;
}

body.amma-med-theme .amma-price-table td:nth-child(3) a {
    color: var(--amma-title);
    font-weight: 700;
    text-decoration: none;
}

body.amma-med-theme .amma-price-table td:nth-child(3) a:hover {
    color: var(--amma-accent);
}
