@media (max-width: 1180px) {
    .alpha-header__inner { gap: 24px; }
    .alpha-nav__list { gap: 22px; }
    .alpha-account {
        display: inline-flex;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid var(--alpha-line);
        border-radius: var(--alpha-radius-sm);
        background: #fff;
    }
    .alpha-account__label { display: none; }
    .alpha-account__icon { display: block; }
    .alpha-account:hover { color: var(--alpha-red); border-color: color-mix(in srgb, var(--alpha-accent) 45%, transparent); box-shadow: 0 4px 16px color-mix(in srgb, var(--alpha-accent) 8%, transparent); }
    .alpha-hero__grid { grid-template-columns: 1fr .90fr; }
    .alpha-hero__art { width: 124%; left: 52%; }
    .alpha-hero__caption { display: none; }
    .alpha-category-card { grid-template-columns: 42% 1fr; }
}

@media (max-width: 980px) {
    .alpha-topbar__right { display: none; }
    .alpha-header__inner { min-height: 82px; grid-template-columns: auto 1fr; }
    .alpha-header__actions { justify-self: end; }
    .alpha-menu-toggle { display: block; }
    .alpha-nav { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(390px, 88vw); padding: 104px 30px 40px; background: #fff; box-shadow: -18px 0 44px rgba(17,24,33,.15); transform: translateX(105%); transition: transform 220ms ease; }
    .alpha-nav.is-open { transform: translateX(0); }
    .alpha-nav__list { display: grid; justify-content: stretch; gap: 0; }
    .alpha-nav__list li { border-bottom: 1px solid var(--alpha-line); }
    .alpha-nav__list a { min-height: 58px; font-size: 16px; }
    .alpha-menu-toggle { position: relative; z-index: 100; }
    .alpha-cart > span:not(.alpha-cart__count) { display: none; }
    .alpha-cart { padding: 0 8px 0 12px; }

    .alpha-hero { min-height: 0; overflow: hidden; }
    .alpha-hero__grid { min-height: 0; grid-template-columns: 1fr; position: relative; display: block; }
    .alpha-hero__content { position: relative; z-index: 3; max-width: 760px; padding: 48px 0 30px; }
    .alpha-hero h1 { position: relative; z-index: 3; font-size: clamp(30px, 4.6vw, 42px); line-height: 1.13; text-transform: none; }
    .alpha-hero__title-line--subtitle { font-size: .94em; }
    .alpha-hero__title-line--subtitle::after { content: "."; }
    .alpha-hero__lead--desktop { display: none; }
    .alpha-hero__lead--compact { display: block; width: 55%; max-width: 430px; font-size: 15px; font-weight: 500; line-height: 1.5; color: #3f4c5b; margin-bottom: 26px; }
    .alpha-hero::after { background-image: linear-gradient(90deg, rgba(250,251,253,.98) 0%, rgba(250,251,253,.90) 29%, rgba(250,251,253,.28) 58%, rgba(250,251,253,0) 82%); }
    .alpha-hero__lead { position: relative; z-index: 3; max-width: 82%; }
    .alpha-search-card { position: relative; z-index: 4; background: rgba(255,255,255,.92); backdrop-filter: blur(2px); }
    .alpha-hero__visual {
        position: absolute;
        inset: 0;
        z-index: 1;
        height: auto;
        margin-top: 0;
        pointer-events: none;
    }
    .alpha-hero__art {
        width: min(690px, 94vw);
        max-width: none;
        left: 112%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 1;
        filter: hue-rotate(var(--alpha-accent-hue-shift, 0deg)) saturate(var(--alpha-accent-saturation, 1)) drop-shadow(0 16px 20px rgba(25,30,36,.06));
    }
    .alpha-benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .alpha-benefit:nth-child(2) { border-right: 1px solid var(--alpha-line); }
    .alpha-benefit:nth-child(3), .alpha-benefit:nth-child(4) { border-top: 1px solid var(--alpha-line); }
    .alpha-category-grid { grid-template-columns: repeat(2, 1fr); }
    .alpha-step-grid { grid-template-columns: 1fr; }
    .alpha-footer__grid { grid-template-columns: 1fr 1.2fr; }
    .alpha-footer__contacts, .alpha-footer__support { grid-column: auto; }
}

@media (max-width: 782px) {
    .admin-bar .alpha-header-stack { top: 46px; }
    .admin-bar .alpha-header.is-stuck { top: auto; }
}

@media (max-width: 680px) {
    :root { --alpha-gutter: 18px; }
    .alpha-topbar__inner { min-height: 34px; justify-content: center; }
    .alpha-topbar__left { gap: 10px; font-size: 11px; }
    .alpha-topbar__dot { margin-inline: 0; }
    .alpha-header__inner { min-height: 72px; }
    .alpha-brand { gap: 8px; }
    .alpha-brand__mark { width: 43px; height: 34px; }
    .alpha-header .alpha-brand__text {
        --alpha-header-brand-alpha-size: 7px;
        --alpha-header-brand-agregat-size: 17px;
        --alpha-header-brand-alpha-tracking: .38em;
        --alpha-header-brand-agregat-tracking: .09em;
    }
    .alpha-header .alpha-brand__text small { margin-top: 4px; }
    .alpha-header__actions { gap: 8px; }
    .alpha-account { width: 44px; height: 44px; min-height: 44px; }
    .alpha-cart { min-height: 44px; }
    .alpha-cart__count { height: 25px; min-width: 23px; font-size: 11px; }

    .alpha-hero { overflow: hidden; }
    .alpha-hero::after {
        background-image: linear-gradient(90deg,
            rgba(250,251,253,.98) 0%,
            rgba(250,251,253,.93) 28%,
            rgba(250,251,253,.24) 54%,
            rgba(250,251,253,0) 78%);
    }
    .alpha-hero__grid { position: relative; display: block; }
    .alpha-hero__content { position: relative; z-index: 3; padding-top: 34px; padding-bottom: 30px; }
    .alpha-eyebrow { font-size: 10px; letter-spacing: .13em; gap: 9px; }
    .alpha-eyebrow > span { width: 23px; }
    .alpha-hero h1 { position: relative; z-index: 3; margin: 15px 0 21px; font-size: clamp(18px, 4.7vw, 21px); line-height: 1.23; letter-spacing: -.035em; text-transform: none; }
    .alpha-hero__title-line { white-space: nowrap; }
    .alpha-hero__title-line--subtitle { white-space: nowrap; font-size: .76em; }
    .alpha-hero__lead--compact { position: relative; z-index: 3; width: 56%; max-width: none; font-size: clamp(11px, 2.95vw, 13px); line-height: 1.45; margin-bottom: 22px; }
    .alpha-search-card { position: relative; z-index: 4; background: #fff; backdrop-filter: none; }
    .alpha-search-tabs { min-height: 50px; }
    .alpha-search-tabs button, .alpha-search-tabs a { font-size: 12px; padding: 0 6px; }
    .alpha-hero-search { grid-template-columns: 1fr; gap: 9px; padding: 12px 12px 7px; }
    .alpha-hero-search input, .alpha-hero-search button { height: 52px; }
    .alpha-search-help { margin: 0 12px 12px; }
    .alpha-hero__visual {
        position: absolute;
        inset: 0;
        z-index: 1;
        height: auto;
        margin-top: 0;
        pointer-events: none;
    }
    .alpha-hero__art {
        width: min(560px, 108vw);
        max-width: none;
        left: 109%;
        top: 49%;
        transform: translate(-50%, -50%);
        opacity: 1;
        filter: hue-rotate(var(--alpha-accent-hue-shift, 0deg)) saturate(var(--alpha-accent-saturation, 1)) drop-shadow(0 10px 18px rgba(25,30,36,.18));
    }

    .alpha-benefits__grid { grid-template-columns: 1fr; }
    .alpha-benefit, .alpha-benefit:first-child { border-left: 1px solid var(--alpha-line); border-right: 1px solid var(--alpha-line); border-top: 1px solid var(--alpha-line); min-height: 88px; padding: 14px 18px; }
    .alpha-benefit:first-child { border-top: 0; }
    .alpha-benefit img { width: 36px; flex-basis: 36px; max-height: 36px; }

    .alpha-section { padding: 50px 0; }
    .alpha-section__head { align-items: flex-start; display: grid; }
    .alpha-section__head h2 { font-size: 34px; }
    .alpha-section__link { justify-self: start; }
    .alpha-category-grid { grid-template-columns: 1fr; }
    .alpha-category-card { min-height: 146px; grid-template-columns: 38% 1fr; }
    .alpha-category-card__image { height: 146px; padding: 6px 0 6px 8px; }
    .alpha-category-card__image img { width: 100%; height: 100%; }
    .alpha-category-card__body { padding: 16px 42px 16px 12px; }
    .alpha-category-card__body strong { font-size: 14px; }
    .alpha-step-card { min-height: 0; padding: 20px; gap: 16px; }
    .alpha-step-card > b { width: 40px; height: 40px; flex-basis: 40px; }

    .alpha-page-shell { padding: 32px 0 52px; }
    .alpha-page-shell .alpha-content { padding: 22px 18px; }
    .alpha-footer__grid { grid-template-columns: 1fr; gap: 26px; }
    .alpha-footer__nav-list { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
    .alpha-footer__support { grid-column: auto; }
    .alpha-footer__bottom { min-height: 78px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; }
}

@media (max-width: 390px) {
    .alpha-header__actions { gap: 6px; }
    .alpha-account, .alpha-menu-toggle { width: 40px; height: 40px; min-height: 40px; }
    .alpha-cart { min-height: 40px; padding: 0 7px 0 9px; gap: 6px; }
    .alpha-brand__mark { width: 40px; height: 32px; }
    .alpha-header .alpha-brand__text {
        --alpha-header-brand-alpha-size: 6.5px;
        --alpha-header-brand-agregat-size: 15px;
        --alpha-header-brand-alpha-tracking: .34em;
        --alpha-header-brand-agregat-tracking: .08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* v0.1.50 — transparent click-outside layer below the mobile navigation. */
.alpha-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}
@media (max-width: 980px) {
    .alpha-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    html.alpha-menu-open,
    html.alpha-menu-open body {
        overflow: hidden;
    }

    /* The backdrop is a <body> child with z-index:85. The sticky header stack
       creates its own stacking context (normally z-index:70), so raising only
       .alpha-header would still leave every navigation link underneath the
       click-outside layer. Raise the entire stack while the menu is open. */
    html.alpha-menu-open .alpha-header-stack {
        z-index: 120;
    }
    html.alpha-menu-open .alpha-header {
        z-index: 100;
    }
}

/* v0.2.10 — privacy policy responsive. */
@media (max-width: 780px) {
    .alpha-privacy__intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px 20px;
    }
    .alpha-privacy__revision {
        min-width: 0;
        width: fit-content;
    }
    .alpha-privacy__summary {
        grid-template-columns: minmax(0, 1fr);
    }
    .alpha-privacy__summary-item {
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--alpha-line);
    }
    .alpha-privacy__summary-item:last-child {
        border-bottom: 0;
    }
    .alpha-privacy__body {
        padding: 2px 20px;
    }
    .alpha-privacy__section {
        padding: 19px 0;
    }
    .alpha-privacy__section h2 {
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .alpha-privacy {
        gap: 10px;
    }
    .alpha-privacy__intro {
        padding: 19px 16px;
    }
    .alpha-privacy__intro h1 {
        font-size: 25px;
    }
    .alpha-privacy__body {
        padding: 0 16px;
    }
    .alpha-privacy__section p,
    .alpha-privacy__section li {
        font-size: 12.5px;
    }
    .alpha-privacy__note {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        padding: 14px 15px;
    }
    .alpha-privacy__note svg {
        width: 20px;
        height: 20px;
    }
}


/* v0.2.26 — narrow-phone header/search safeguard (320–340 px). */
@media (max-width: 340px) {
    :root { --alpha-gutter: 14px; }
    .alpha-header__actions { gap: 4px; }
    .alpha-account,
    .alpha-menu-toggle { width: 38px; height: 38px; min-height: 38px; }
    .alpha-cart { min-height: 38px; padding: 0 6px; gap: 4px; }
    .alpha-cart__count { min-width: 22px; height: 22px; }
    .alpha-brand { gap: 6px; }
    .alpha-brand__mark { width: 36px; height: 29px; }
    .alpha-header .alpha-brand__text {
        --alpha-header-brand-alpha-size: 6px;
        --alpha-header-brand-agregat-size: 14px;
        --alpha-header-brand-alpha-tracking: .31em;
        --alpha-header-brand-agregat-tracking: .07em;
    }
    .alpha-search-tabs button,
    .alpha-search-tabs a {
        padding-inline: 4px;
        font-size: 10.5px;
        line-height: 1.15;
        text-align: center;
    }
}
