/* Home — Figma mobile 401:4073 + desktop 412:4 */

body.medagg-body.medagg-body--home {
    --bb-navy: #003670;
    --bb-ink: #2d3748;
    --bb-ink-strong: #1a202c;
    --bb-muted: #718096;
    --bb-line: #e2e8f0;
    --bb-badge: #f9dfde;
    --bb-danger: #d13838;
    --bb-shadow: 0 4px 5px rgba(26, 39, 68, 0.05);
    --bb-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bb-display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bb-navy);
    color: var(--bb-ink);
    font-family: var(--bb-font);
}

.medagg-body--home .medagg-main {
    padding: 0;
    min-height: 0;
    background: var(--bb-navy);
}

.medagg-v2 {
    width: 100%;
    background: var(--bb-navy);
}

/* Header */
.medagg-v2-header {
    background: var(--bb-navy);
}

.medagg-v2-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 63px;
    padding: 12px 30px;
}

.medagg-v2-header__logo {
    display: flex;
    flex-shrink: 0;
    width: 116px;
    height: 28px;
}

.medagg-v2-header__logo-img {
    display: block;
    width: 116px;
    height: 28px;
    object-fit: contain;
}

.medagg-v2-header__logo-img--desktop {
    display: none;
}

.medagg-v2-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.medagg-v2-city {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 4px;
    cursor: pointer;
    font: inherit;
}

.medagg-v2-city__select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: var(--bb-font);
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px 0 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.medagg-v2-city__chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    pointer-events: none;
}

.medagg-v2-header__cart {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
}

.medagg-v2-header__cart img {
    display: block;
    width: 18px;
    height: 18px;
}

.medagg-v2-header__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #d13838;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.medagg-v2-header__cart.is-empty .medagg-v2-header__cart-count {
    display: none;
}

.medagg-v2-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.medagg-v2-burger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
}

/* Hero */
.medagg-v2-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 32px;
    background: var(--bb-navy);
}

.medagg-v2-hero__banner {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
}

.medagg-v2-hero__title {
    margin: 0;
}

.medagg-v2-hero__title-line {
    display: block;
    color: #fff;
    font-family: var(--bb-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.medagg-v2-hero__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.medagg-v2-hero__title-row .medagg-v2-hero__title-line {
    line-height: normal;
}

.medagg-v2-hero__badge {
    display: inline-flex;
    background: var(--bb-badge);
    color: var(--bb-danger);
    border-radius: 10px;
    padding: 4px 12px;
    font-family: var(--bb-display);
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
}

.medagg-v2-hero__badge--desktop {
    display: none;
}

.medagg-v2-hero__lead {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.medagg-v2-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--bb-line);
    border-radius: 100px;
}

.medagg-v2-search__catalog {
    flex-shrink: 0;
    background: var(--bb-navy);
    color: #fff;
    border-radius: 100px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.medagg-v2-search__catalog:hover {
    color: #fff;
    opacity: 0.92;
}

.medagg-v2-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--bb-ink);
    font-family: var(--bb-font);
    font-size: 14px;
    outline: none;
}

.medagg-v2-search__input::placeholder {
    color: var(--bb-muted);
}

.medagg-v2-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0 10px 0 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.medagg-v2-search__btn img {
    display: block;
    width: 18px;
    height: 18px;
}

.medagg-v2-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.medagg-v2-chips::-webkit-scrollbar {
    display: none;
}

.medagg-v2-chip {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* White sheet */
.medagg-v2-sheet {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding-bottom: 15px;
}

.medagg-v2-h {
    margin: 0;
    color: var(--bb-navy);
    font-family: var(--bb-display);
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
}

.medagg-v2-cats {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 24px 20px 16px;
}

.medagg-v2-cat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    width: auto;
    text-decoration: none;
    color: var(--bb-ink);
}

.medagg-v2-cat__icon {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bb-navy);
    box-shadow: var(--bb-shadow);
}

.medagg-v2-cat__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.medagg-v2-cat__photo--placeholder {
    object-fit: contain;
    padding: 18%;
    box-sizing: border-box;
}

.medagg-v2-cat__label {
    font-family: var(--bb-font);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.medagg-v2-partners {
    padding: 14px 20px 8px;
}

.medagg-v2-partners .medagg-v2-h {
    font-family: var(--bb-font);
    font-weight: 600;
    margin-bottom: 16px;
}

.medagg-v2-partners__row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.medagg-v2-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.medagg-v2-partner__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid var(--bb-line);
    border-radius: 36px;
    background: #fff;
    box-shadow: var(--bb-shadow);
}

.medagg-v2-partner__circle img {
    display: block;
    object-fit: contain;
}

.medagg-v2-partner__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bb-ink);
}

.medagg-v2-partner__wordmark {
    display: none;
}

.medagg-v2-block {
    padding: 8px 20px 0;
}

.medagg-v2-block > .medagg-v2-h {
    padding: 16px 0 12px;
}

.medagg-v2-block:nth-of-type(n + 3) > .medagg-v2-h {
    padding-top: 24px;
}

.medagg-v2-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.medagg-v2-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bb-shadow);
}

.medagg-v2-step__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: rgba(0, 54, 112, 0.07);
    color: var(--bb-navy);
    font-family: var(--bb-display);
    font-size: 14px;
    font-weight: 700;
}

.medagg-v2-step__body h3 {
    margin: 0 0 4px;
    color: var(--bb-ink);
    font-size: 15px;
    font-weight: 700;
}

.medagg-v2-step__body p {
    margin: 0;
    color: var(--bb-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.medagg-v2-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.medagg-v2-why__card {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--bb-shadow);
}

.medagg-v2-why__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(0, 54, 112, 0.07);
}

.medagg-v2-why__icon img {
    display: block;
    width: 16px;
    height: 16px;
}

.medagg-v2-why__card h3 {
    margin: 0 0 2px;
    color: var(--bb-ink);
    font-size: 13px;
    font-weight: 700;
}

.medagg-v2-why__card p {
    margin: 0;
    color: var(--bb-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.medagg-v2-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.medagg-v2-faq .medagg-home-faq__item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(26, 39, 68, 0.05);
}

.medagg-v2-faq .medagg-home-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--bb-ink);
    font-family: var(--bb-font);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.medagg-v2-faq .medagg-home-faq__chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.medagg-v2-faq .is-open .medagg-home-faq__chevron {
    transform: rotate(90deg);
}

.medagg-v2-faq .medagg-home-faq__answer {
    display: none;
    padding: 0 16px 16px;
    color: var(--bb-muted);
    font-size: 13px;
    line-height: 1.4;
}

.medagg-v2-faq .is-open .medagg-home-faq__answer {
    display: block;
}

.medagg-v2-faq .medagg-home-faq__answer p {
    margin: 0;
}

/* Footer — desktop only */
.medagg-v2-footer {
    display: none;
    background: var(--bb-navy);
    color: rgba(255, 255, 255, 0.83);
}

/* Tab bar on home */
.medagg-body--home .medagg-tabbar {
    border-top: 1px solid var(--bb-line);
}

.medagg-body--home .medagg-tabbar__inner {
    max-width: none;
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
}

.medagg-body--home .medagg-tabbar__item {
    flex: 1 0 0;
    width: auto;
    min-width: 0;
    height: 34px;
    gap: 4px;
    color: var(--bb-muted);
    font-family: var(--bb-font);
    font-size: 10px;
    font-weight: 600;
}

.medagg-body--home .medagg-tabbar__item.is-active {
    color: var(--bb-navy);
}

.medagg-body--home .medagg-tabbar__icon,
.medagg-body--home .medagg-tabbar__icon-wrap {
    width: 18px;
    height: 18px;
}

.medagg-body--home .medagg-tabbar__icon svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    body.medagg-body.medagg-body--home {
        --bb-container: 1200px;
        background: var(--bb-navy);
    }

    .medagg-v2 {
        max-width: none;
        background: var(--bb-navy);
    }

    .medagg-v2-header,
    .medagg-v2-hero,
    .medagg-v2-sheet,
    .medagg-v2-footer {
        box-sizing: border-box;
    }

    .medagg-v2-header__inner,
    .medagg-v2-hero,
    .medagg-v2-sheet,
    .medagg-v2-footer__inner {
        width: min(var(--bb-container), calc(100% - 48px));
        margin-left: auto;
        margin-right: auto;
    }

    .medagg-v2-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .medagg-v2-header__inner {
        height: auto;
        padding: 24px 0;
    }

    .medagg-v2-header__logo,
    .medagg-v2-header__logo-img--desktop {
        display: block;
        width: 124px;
        height: 32px;
    }

    .medagg-v2-header__logo-img--mobile {
        display: none;
    }

    .medagg-v2-city {
        background: rgba(255, 255, 255, 0.08);
        padding: 8px 14px;
        gap: 6px;
    }

    .medagg-v2-city__select {
        font-size: 14px;
    }

    .medagg-v2-header__cart {
        display: flex;
    }

    .medagg-v2-burger {
        display: none;
    }

    .medagg-v2-hero {
        gap: 16px;
        padding: 64px 0 70px;
    }

    .medagg-v2-hero__banner {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .medagg-v2-hero__title-line {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.2;
    }

    .medagg-v2-hero__title-row {
        gap: 16px;
        margin-top: 12px;
    }

    .medagg-v2-hero__badge {
        border-radius: 16px;
        padding: 8px 20px;
        font-size: 32px;
    }

    .medagg-v2-hero__badge--mobile {
        display: none;
    }

    .medagg-v2-hero__badge--desktop {
        display: inline-flex;
    }

    .medagg-v2-hero__lead {
        margin-top: 12px;
        font-size: 18px;
        line-height: 1.5;
    }

    .medagg-v2-search {
        height: 56px;
        gap: 12px;
        padding: 6px;
        border: 0;
        max-width: 100%;
    }

    .medagg-v2-search__catalog {
        padding: 12px 24px;
        font-size: 14px;
    }

    .medagg-v2-search__input {
        font-size: 15px;
    }

    .medagg-v2-search__btn {
        padding-right: 16px;
    }

    .medagg-v2-chips {
        gap: 10px;
        overflow: visible;
    }

    .medagg-v2-chip {
        padding: 8px 16px;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .medagg-v2-sheet {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        border-radius: 0;
        padding: 0 0 32px;
    }

    .medagg-v2-cats {
        width: 100%;
        max-width: none;
        margin: 0;
        gap: 24px;
        justify-content: center;
        padding: 32px 40px;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .medagg-v2-cat {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .medagg-v2-cat__icon {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .medagg-v2-cat__label {
        font-size: 16px;
    }

    .medagg-v2-partners {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px 40px;
        background: #fff;
    }

    .medagg-v2-partners .medagg-v2-h {
        font-family: var(--bb-display);
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 20px;
    }

    .medagg-v2-partners__row {
        justify-content: center;
        gap: 64px;
    }

    .medagg-v2-partner__circle,
    .medagg-v2-partner__name {
        display: none;
    }

    .medagg-v2-partner__wordmark {
        display: block;
        object-fit: contain;
    }

    .medagg-v2-block {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 40px;
        background: #fff;
    }

    .medagg-v2-block:last-of-type {
        padding-bottom: 80px;
        border-radius: 0 0 24px 24px;
    }

    .medagg-v2-block > .medagg-v2-h,
    .medagg-v2-block:nth-of-type(n + 3) > .medagg-v2-h {
        padding: 27px 0 20px;
        font-size: 28px;
    }

    .medagg-v2-steps {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .medagg-v2-step {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .medagg-v2-step__num {
        width: 36px;
        height: 36px;
        border-radius: 18px;
        font-size: 16px;
    }

    .medagg-v2-step__body h3 {
        margin-bottom: 8px;
        color: var(--bb-ink-strong);
        font-size: 18px;
    }

    .medagg-v2-step__body p {
        font-size: 14px;
    }

    .medagg-v2-why {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .medagg-v2-why__card {
        padding: 24px;
    }

    .medagg-v2-why__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .medagg-v2-why__icon img {
        width: 24px;
        height: 24px;
    }

    .medagg-v2-why__card h3 {
        margin-bottom: 6px;
        color: var(--bb-ink-strong);
        font-size: 16px;
    }

    .medagg-v2-why__card p {
        font-size: 13px;
        line-height: 1.4;
    }

    .medagg-v2-faq {
        gap: 12px;
        padding-bottom: 0;
    }

    .medagg-v2-faq .medagg-home-faq__question {
        padding: 20px;
        color: var(--bb-ink-strong);
        font-size: 16px;
    }

    .medagg-v2-footer {
        display: block;
        padding: 64px 0 48px;
    }

    .medagg-v2-footer__top {
        display: flex;
        justify-content: space-between;
        gap: 32px;
        margin-bottom: 48px;
    }

    .medagg-v2-footer__brand {
        width: 300px;
        flex-shrink: 0;
    }

    .medagg-v2-footer__brand img {
        display: block;
        width: 140px;
        height: 36px;
        object-fit: contain;
        margin-bottom: 16px;
    }

    .medagg-v2-footer__brand p {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.83);
    }

    .medagg-v2-footer__col {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .medagg-v2-footer__col strong {
        color: #fff;
        font-family: var(--bb-display);
        font-size: 16px;
        font-weight: 700;
    }

    .medagg-v2-footer__col a {
        color: rgba(255, 255, 255, 0.83);
        font-size: 14px;
        text-decoration: none;
    }

    .medagg-v2-footer__col a:hover {
        color: #fff;
    }

    .medagg-v2-footer__bottom {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 13px;
        color: rgba(255, 255, 255, 0.83);
    }

    .medagg-v2-footer__bottom p {
        margin: 0;
    }

    .medagg-body--home .medagg-tabbar {
        display: none;
    }

    .medagg-body--home .medagg-main {
        padding-bottom: 0;
    }
}

/* Mobile menu — Figma 401:3155 */
.medagg-drawer {
    z-index: 1600;
}

.medagg-drawer__backdrop {
    background: rgba(0, 54, 112, 0.35);
}

.medagg-drawer__panel {
    box-sizing: border-box;
    width: min(340px, 86vw);
    padding: 16px 20px 32px;
    gap: 0;
    font-family: var(--bb-font);
}

.medagg-drawer__brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.medagg-drawer__logo img {
    display: block;
    width: 148px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.medagg-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e8eef6;
    cursor: pointer;
}

.medagg-drawer__phone {
    display: block;
    margin: 0 0 14px;
    color: var(--bb-navy, #003670);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.medagg-drawer__socials {
    display: flex;
    gap: 10px;
    margin: 0 0 20px;
}

.medagg-drawer__social {
    display: block;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.medagg-drawer__social img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medagg-drawer__nav {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.medagg-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--bb-navy, #003670);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.medagg-drawer__link:hover,
.medagg-drawer__link.is-active {
    background: transparent;
    color: var(--bb-navy, #003670);
}

.medagg-drawer__chevron {
    flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 0.15s ease;
}

.medagg-drawer__group:not(.is-open) .medagg-drawer__chevron {
    transform: rotate(0deg);
}

.medagg-drawer__group:not(.is-open) .medagg-drawer__sub {
    display: none;
}

.medagg-drawer__sub {
    display: flex;
    flex-direction: column;
    padding: 0 0 8px 12px;
}

.medagg-drawer__sublink {
    padding: 8px 0;
    color: #718096;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.medagg-drawer__sublink.is-active {
    color: var(--bb-navy, #003670);
    font-weight: 700;
}

.medagg-drawer__search,
.medagg-drawer__head,
.medagg-drawer__region {
    display: none;
}

/* Desktop sticky header — Figma 449:93 */
.medagg-v2-header--sticky {
    display: none;
}

@media (min-width: 768px) {
    .medagg-v2-header--sticky {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        right: auto;
        z-index: 1200;
        box-sizing: border-box;
        width: min(var(--bb-container, 1200px), calc(100% - 48px));
        height: 85px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 0;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 8px 24px rgba(0, 54, 112, 0.08);
        transform: translate(-50%, -110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.22s ease;
    }

    .medagg-v2-header--sticky.is-visible {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .medagg-v2-header--sticky .medagg-v2-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
        height: 85px;
        margin: 0;
        padding: 20px 24px;
    }

    .medagg-v2-header--sticky .medagg-v2-header__logo,
    .medagg-v2-header--sticky .medagg-v2-header__logo-img {
        display: block;
        width: 124px;
        height: 28px;
        object-fit: contain;
    }

    .medagg-v2-search--sticky {
        display: flex;
        flex: 1 1 auto;
        max-width: 857px;
        height: 44px;
        margin: 0;
        padding: 6px;
        gap: 12px;
        border: 0;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 54, 112, 0.06);
    }

    .medagg-v2-search--sticky .medagg-v2-search__catalog {
        display: inline-flex;
        align-items: center;
        align-self: stretch;
        padding: 0 24px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .medagg-v2-search--sticky .medagg-v2-search__input {
        font-size: 15px;
    }

    .medagg-v2-search--sticky .medagg-v2-search__btn {
        padding-right: 16px;
    }

    .medagg-v2-search--sticky .medagg-v2-search__btn img {
        display: block;
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    .medagg-v2-header--sticky .medagg-v2-city {
        background: rgba(0, 54, 112, 0.06);
        box-shadow: none;
    }

    .medagg-v2-header--sticky .medagg-v2-city__select {
        color: var(--bb-navy);
    }

    .medagg-v2-header--sticky .medagg-v2-city__chevron {
        filter: invert(1);
    }

    .medagg-v2-header--sticky .medagg-v2-header__cart {
        display: flex;
    }

    .medagg-v2-header--sticky .medagg-v2-header__cart img {
        filter: invert(1);
    }

    .medagg-v2-header--sticky .medagg-v2-burger {
        display: none;
    }
}

.medagg-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a0aec0;
    cursor: pointer;
}

.medagg-search-clear[hidden] {
    display: none !important;
}

.medagg-search-clear:hover {
    color: #718096;
}

.medagg-v2-search__input::-webkit-search-decoration,
.medagg-v2-search__input::-webkit-search-cancel-button,
.medagg-v2-search__input::-webkit-search-results-button,
.medagg-v2-search__input::-webkit-search-results-decoration,
.medagg-header__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.medagg-search-suggest {
    position: fixed;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    max-height: min(70vh, 640px);
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(26, 39, 68, 0.16);
    color: #2d3748;
}

.medagg-search-suggest[hidden] {
    display: none !important;
}

.medagg-search-suggest__chips {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px 16px 0;
}

.medagg-search-suggest__chip {
    max-width: 100%;
    padding: 6px 12px;
    border: 0;
    border-radius: 100px;
    background: #edf2f7;
    color: #4a5568;
    font: 13px/1.3 system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medagg-search-suggest__tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 20px;
    padding: 12px 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.medagg-search-suggest__tab {
    padding: 8px 0 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #718096;
    font: 600 15px/1.2 system-ui, sans-serif;
    cursor: pointer;
}

.medagg-search-suggest__tab.is-active {
    color: #003670;
    border-bottom-color: #003670;
}

.medagg-search-suggest__tab[hidden] {
    display: none !important;
}

.medagg-search-suggest__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px 16px;
}

.medagg-search-suggest__group {
    padding: 12px 0 4px;
}

.medagg-search-suggest__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.medagg-search-suggest__group-title {
    margin: 0;
    color: #1a202c;
    font: 700 16px/1.2 system-ui, sans-serif;
}

.medagg-search-suggest__more {
    color: #3182ce;
    font: 600 13px/1.2 system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.medagg-search-suggest__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.medagg-search-suggest__row:hover {
    border-color: #cbd5e0;
}

.medagg-search-suggest__text {
    flex: 1;
    min-width: 0;
}

.medagg-search-suggest__name {
    display: block;
    color: #2d3748;
    font: 600 15px/1.35 system-ui, sans-serif;
}

.medagg-search-suggest__name b {
    font-weight: 800;
}

.medagg-search-suggest__meta {
    display: block;
    margin-top: 4px;
    color: #718096;
    font: 13px/1.3 system-ui, sans-serif;
}

.medagg-search-suggest__price {
    color: #3182ce;
    font-weight: 600;
}

.medagg-search-suggest__add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #ebf8ff;
    color: #3182ce;
    cursor: pointer;
}

.medagg-search-suggest__add svg {
    display: block;
}

.medagg-search-suggest__add:hover {
    background: #bee3f8;
}

.medagg-search-suggest__add.is-in-cart {
    background: #003670;
    color: #fff;
}

.medagg-search-suggest__empty,
.medagg-search-suggest__status {
    padding: 24px 8px;
    color: #718096;
    font: 14px/1.4 system-ui, sans-serif;
    text-align: center;
}
