/**
 * EMMA•MED — global frontend styles
 *
 * Сюда будем постепенно выносить визуальную часть блоков:
 * - направления
 * - врачи
 * - услуги
 * - страницы врача / услуги / направления
 * - общие кнопки, типографику и адаптив
 */

:root {
    --emma-teal: #008f96;
    --emma-teal-dark: #00777e;
    --emma-navy: #102a4c;
    --emma-text: #41566a;
    --emma-muted: #718190;
    --emma-border: #dfe9eb;
    --emma-soft: #f6fbfb;
}


/* =========================================================
   EMMA•MED — ГЛАВНАЯ / ПОПУЛЯРНЫЕ УСЛУГИ И ЦЕНЫ
   Данные и ссылки приходят из EMMA•MED Core.
   Визуальная часть находится только в дочерней теме.
   ========================================================= */

.emma-home-prices,
.emma-home-prices * {
    box-sizing: border-box;
}

.emma-home-prices {
    width: calc(100% - 44px);
    max-width: 1490px;
    margin: 0 auto;
    padding: 52px 0 62px;
    font-family: Inter, Arial, sans-serif;
    color: var(--emma-text);
}

.emma-home-prices__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 26px;
}

.emma-home-prices__head-copy {
    max-width: 760px;
}

.emma-home-prices__eyebrow {
    margin: 0 0 9px;
    color: var(--emma-teal);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.emma-home-prices__title {
    margin: 0 0 10px !important;
    color: var(--emma-navy) !important;
    font-family: Lora, Georgia, serif !important;
    font-size: 43px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    letter-spacing: -.45px;
}

.emma-home-prices__intro {
    max-width: 700px;
    margin: 0 !important;
    color: var(--emma-muted) !important;
    font-size: 14px;
    line-height: 1.62;
}

.emma-home-prices__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 3px;
    color: var(--emma-teal) !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.emma-home-prices__all span {
    font-size: 17px;
    line-height: 1;
    transition: transform .22s ease;
}

.emma-home-prices__all:hover span {
    transform: translateX(4px);
}

.emma-home-prices__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.emma-home-price__item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--emma-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.emma-home-price__item:hover {
    border-color: rgba(0, 143, 150, .32) !important;
    box-shadow: 0 15px 34px rgba(16, 42, 76, .065);
    transform: translateY(-2px);
}

.emma-home-price__item:has(.emma-home-price__trigger[aria-expanded="true"]) {
    border-color: rgba(0, 143, 150, .35) !important;
    box-shadow: 0 16px 36px rgba(16, 42, 76, .07);
}

.emma-home-price__trigger {
    width: 100%;
    min-height: 92px !important;
    padding: 18px 19px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--emma-navy) !important;
    text-align: left !important;
    font: inherit !important;
    cursor: pointer;
    transition: background .22s ease;
}

.emma-home-price__trigger:hover,
.emma-home-price__trigger[aria-expanded="true"] {
    background: #f7fbfb !important;
}

.emma-home-price__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.emma-home-price__category {
    color: var(--emma-teal) !important;
    font-size: 10px !important;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.emma-home-price__name {
    display: block;
    color: var(--emma-navy) !important;
    font-size: 15px !important;
    line-height: 1.38 !important;
    font-weight: 700 !important;
}

.emma-home-price__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.emma-home-price__value {
    color: var(--emma-teal-dark) !important;
    font-size: 16px !important;
    line-height: 1.2;
    font-weight: 800 !important;
    white-space: nowrap;
}

.emma-home-price__plus {
    position: relative;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border: 1px solid #d5e5e7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.emma-home-price__plus::before,
.emma-home-price__plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--emma-teal);
    transform: translate(-50%, -50%);
    transition: transform .22s ease, background .22s ease;
}

.emma-home-price__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.emma-home-price__trigger:hover .emma-home-price__plus,
.emma-home-price__trigger[aria-expanded="true"] .emma-home-price__plus {
    border-color: var(--emma-teal) !important;
    background: var(--emma-teal) !important;
}

.emma-home-price__trigger:hover .emma-home-price__plus::before,
.emma-home-price__trigger:hover .emma-home-price__plus::after,
.emma-home-price__trigger[aria-expanded="true"] .emma-home-price__plus::before,
.emma-home-price__trigger[aria-expanded="true"] .emma-home-price__plus::after {
    background: #fff;
}

.emma-home-price__trigger[aria-expanded="true"] .emma-home-price__plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.emma-home-price__panel[hidden] {
    display: none !important;
}

.emma-home-price__panel {
    background: #f7fbfb;
}

.emma-home-price__panel-inner {
    position: relative;
    padding: 0 72px 21px 19px !important;
    background: #f7fbfb !important;
}

.emma-home-price__panel-inner::before {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    margin: 0 0 14px;
    background: rgba(0, 143, 150, .35);
}

.emma-home-price__panel-inner p {
    max-width: 640px;
    margin: 0 0 14px !important;
    color: var(--emma-muted) !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
}

.emma-home-price__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emma-teal) !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    line-height: 1.2;
    font-weight: 700 !important;
}

.emma-home-price__more span {
    font-size: 16px;
    transition: transform .22s ease;
}

.emma-home-price__more:hover span {
    transform: translateX(4px);
}

.emma-home-prices__empty {
    padding: 25px;
    border: 1px solid var(--emma-border);
    border-radius: 16px;
    background: var(--emma-soft);
    color: var(--emma-muted);
    font-size: 14px;
}

@media (max-width: 1280px) {
    .emma-home-prices {
        width: calc(100% - 30px);
    }
}

@media (max-width: 900px) {
    .emma-home-prices__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .emma-home-prices__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .emma-home-prices {
        width: calc(100% - 20px);
        padding: 38px 0 48px;
    }

    .emma-home-prices__title {
        font-size: 34px !important;
    }

    .emma-home-prices__intro {
        font-size: 13px !important;
    }

    .emma-home-price__trigger {
        min-height: 82px !important;
        padding: 15px !important;
        gap: 13px !important;
    }

    .emma-home-price__main {
        gap: 5px;
    }

    .emma-home-price__category {
        font-size: 9px !important;
    }

    .emma-home-price__name {
        font-size: 13px !important;
    }

    .emma-home-price__right {
        gap: 9px;
    }

    .emma-home-price__value {
        font-size: 13px !important;
    }

    .emma-home-price__plus {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    .emma-home-price__panel-inner {
        padding: 0 15px 17px !important;
    }

    .emma-home-prices__all {
        font-size: 12.5px;
    }
}

@media (max-width: 420px) {
    .emma-home-price__trigger {
        align-items: flex-start !important;
    }

    .emma-home-price__right {
        padding-top: 2px;
    }

    .emma-home-price__value {
        max-width: 90px;
        text-align: right;
    }
}
