.smed-cat-page {
    padding: 24px 0 10px;
    background-position: center top;
    background-size: cover;
}

.smed-cat-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
    gap: 20px;
    align-items: start;
}

.smed-cat-hero__main,
.smed-cat-hero__aside,
.smed-cat-top-pills,
.smed-cat-search-panel,
.smed-service-card,
.smed-cat-help,
.smed-cat-about__content,
.smed-cat-about__aside {
    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);
}

.smed-cat-hero__main {
    padding: 28px 30px;
}

.smed-cat-hero__aside {
    padding: 24px 24px 22px;
}

.smed-cat-hero__title {
    margin: 10px 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.smed-cat-hero__lead {
    max-width: 64ch;
    color: var(--amma-muted);
    font-size: 17px;
    line-height: 1.7;
}

.smed-cat-hero__lead p:last-child,
.smed-cat-about__content .amma-section-text p:last-child,
.smed-cat-about__aside .amma-section-text p:last-child,
.smed-cat-hero__aside-text p:last-child {
    margin-bottom: 0;
}

.smed-cat-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.smed-cat-stat {
    min-width: 160px;
    flex: 1 1 0;
    border: 1px solid rgba(23, 107, 184, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(237, 244, 252, 0.94));
}

.smed-cat-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--amma-text);
}

.smed-cat-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--amma-muted);
}

.smed-cat-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.smed-cat-hero__anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 107, 184, 0.1);
}

.smed-cat-anchor {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    border: 1px solid rgba(23, 107, 184, 0.14);
    color: var(--amma-text);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.smed-cat-anchor:hover,
.smed-cat-anchor:focus-visible {
    color: #fff;
    background: var(--amma-accent);
    border-color: var(--amma-accent);
}

.smed-cat-hero__aside-title {
    margin: 10px 0 12px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--amma-text);
}

.smed-cat-hero__aside-text {
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.65;
}

.smed-cat-benefits {
    margin: 16px 0 0;
    padding: 16px 0 0 18px;
    border-top: 1px solid rgba(23, 107, 184, 0.1);
    color: var(--amma-muted);
    display: grid;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.smed-cat-benefits li::marker {
    color: var(--amma-accent);
}

.smed-cat-contact-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(23, 107, 184, 0.1);
    display: grid;
    gap: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--amma-muted);
}

.smed-cat-contact-box a,
.smed-cat-contact-list a {
    font-weight: 700;
}

.smed-cat-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.smed-cat-top-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
}

.smed-cat-top-pills__label {
    font-size: 14px;
    font-weight: 800;
    color: var(--amma-text);
}

.smed-cat-services {
    padding-top: 30px;
}

.smed-cat-section-head {
    max-width: 860px;
    margin-bottom: 18px;
}

.smed-cat-search-panel {
    padding: 20px 22px;
    margin-bottom: 22px;
}

.smed-cat-search-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.smed-cat-search-panel__top h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    color: var(--amma-text);
}

.smed-cat-search-panel__top p {
    margin: 0;
    color: var(--amma-muted);
    line-height: 1.6;
}

.smed-cat-search-panel__meta {
    min-width: 170px;
    text-align: right;
    color: var(--amma-muted);
}

.smed-cat-search-panel__meta strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: var(--amma-text);
}

.smed-cat-search-panel__meta span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.smed-cat-search {
    position: relative;
}

.smed-cat-search input {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(23, 107, 184, 0.18);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    padding: 0 120px 0 18px;
    font-size: 16px;
    color: var(--amma-text);
}

.smed-cat-search input:focus {
    outline: none;
    border-color: rgba(23, 107, 184, 0.45);
    box-shadow: 0 0 0 4px rgba(23, 107, 184, 0.08);
}

.smed-cat-search__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(23, 107, 184, 0.08);
    color: var(--amma-accent);
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.smed-cat-services__grid {
    align-items: stretch;
}

.smed-service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px 20px 18px;
}

.smed-service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.smed-service-card .amma-chip {
    max-width: calc(100% - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smed-service-card__code {
    flex: 0 0 auto;
    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;
}

.smed-service-card__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smed-service-card__title a {
    color: var(--amma-text);
    text-decoration: none;
}

.smed-service-card__title a:hover {
    color: var(--amma-accent);
}

.smed-service-card__text {
    color: var(--amma-muted);
    font-size: 15px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smed-service-card__footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.smed-service-card__price {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: var(--amma-text);
    white-space: nowrap;
}

.smed-cat-services__empty,
.smed-cat-help {
    padding: 24px 26px;
}

.smed-cat-help {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.smed-cat-help strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    color: var(--amma-text);
}

.smed-cat-help span {
    color: var(--amma-muted);
    line-height: 1.6;
}

.smed-cat-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.smed-cat-about {
    padding-top: 30px;
}

.smed-cat-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
    gap: 20px;
}

.smed-cat-about__content,
.smed-cat-about__aside {
    padding: 26px 28px;
}

.smed-cat-about__seo {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(23, 107, 184, 0.12);
}

.smed-cat-about__seo h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.smed-cat-contact-list {
    display: grid;
    gap: 8px;
    font-size: 15px;
    color: var(--amma-muted);
}

.smed-cat-contact-list--aside {
    margin-top: 16px;
}

.smed-cat-page .amma-doctor-card-v2 {
    min-height: 100%;
}

.smed-cat-page [hidden] {
    display: none !important;
}

@media (max-width: 1200px) {
    .smed-cat-hero,
    .smed-cat-about__grid {
        grid-template-columns: 1fr;
    }

    .smed-cat-search-panel__top {
        flex-direction: column;
    }

    .smed-cat-search-panel__meta {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .smed-cat-hero__main,
    .smed-cat-hero__aside,
    .smed-cat-search-panel,
    .smed-cat-about__content,
    .smed-cat-about__aside {
        padding: 22px;
    }

    .smed-cat-stat {
        min-width: calc(50% - 6px);
    }

    .smed-cat-help {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .smed-cat-page {
        padding-top: 16px;
    }

    .smed-cat-hero__title {
        font-size: 36px;
    }

    .smed-cat-hero__lead,
    .smed-cat-hero__aside-text,
    .smed-cat-benefits {
        font-size: 15px;
    }

    .smed-cat-hero__stats {
        flex-direction: column;
    }

    .smed-cat-stat {
        min-width: 100%;
    }

    .smed-cat-hero__actions,
    .smed-cat-contact-actions,
    .smed-cat-help__actions {
        flex-direction: column;
    }

    .smed-cat-hero__actions .amma-btn,
    .smed-cat-contact-actions .amma-btn,
    .smed-cat-help__actions .amma-btn {
        width: 100%;
        justify-content: center;
    }

    .smed-cat-search input {
        min-height: 54px;
        padding-right: 104px;
        font-size: 15px;
    }

    .smed-service-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .smed-service-card__price {
        font-size: 24px;
    }

    .smed-cat-top-pills {
        padding: 14px;
    }
}