html,
body {
    overflow-x: clip;
}

[hidden] {
    display: none !important;
}

.brand__mark {
    display: block;
    flex: 0 0 62px;
}

.footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
}

.footer-grid > * {
    min-width: 0;
}

.footer-grid .brand--footer {
    display: flex;
    min-width: 0;
}

.hero__visual img {
    width: min(92%, 540px);
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain;
}

.page-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.remember-details {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 18px;
    border: 1px solid #d7dfd8;
    border-radius: 14px;
    background: #f3f7f2;
    color: #143b27;
    cursor: pointer;
}

.remember-details input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: #143b27;
    flex: 0 0 auto;
}

.remember-details span,
.remember-details b,
.remember-details small {
    display: block;
}

.remember-details b {
    font-size: .86rem;
}

.remember-details small {
    margin-top: 4px;
    color: #6b736d;
    font-size: .72rem;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-order {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .topline {
        display: none;
    }

    .site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 80;
        border-bottom-color: #e4e2d9;
        box-shadow: 0 6px 22px rgba(20, 59, 39, .08);
    }

    .brand__mark {
        flex-basis: 49px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .hero__grid {
        gap: 22px;
        padding: 36px 0 50px;
    }

    .hero h1 {
        margin: 12px 0 16px;
        font-size: clamp(2.5rem, 13vw, 3.15rem);
        line-height: 1.01;
    }

    .hero__content > p {
        margin-block: 0;
        font-size: .98rem;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 24px 0 28px;
    }

    .hero__actions .button {
        min-height: 48px;
        padding: 11px 12px;
        font-size: .78rem;
    }

    .hero__facts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        text-align: left;
    }

    .hero__facts span {
        padding-left: 8px;
    }

    .hero__facts b {
        font-size: .68rem;
    }

    .hero__facts small {
        font-size: .58rem;
    }

    .hero__visual {
        min-height: 280px;
    }

    .hero__visual img {
        width: min(74vw, 280px);
        height: auto !important;
    }

    .hero__halo {
        width: min(72vw, 270px);
        height: min(72vw, 270px);
    }

    .hero__badge {
        right: 8%;
        bottom: 8%;
        width: 72px;
        height: 72px;
        font-size: .82rem;
    }

    .site-header .cart-button .cart-button__label {
        display: inline !important;
    }

    .cart-button {
        min-height: 44px;
        padding: 9px 10px 9px 14px;
        font-size: .74rem;
    }

    .menu-button,
    .add-button {
        width: 44px;
        height: 44px;
    }

    .quality-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .quality-list span {
        font-size: .62rem;
    }

    .quality-list b {
        font-size: .72rem;
        line-height: 1.3;
    }

    .steps article {
        padding: 24px 18px;
    }
}

@media (max-width: 440px) {
    .page-hero h1 {
        font-size: clamp(2.15rem, 10.5vw, 2.55rem);
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    .page-hero--compact {
        padding: 54px 0;
    }

    .legal-content {
        padding-block: 50px 75px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__actions {
        grid-template-columns: 1fr;
    }

    .hero__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 361px) and (max-width: 440px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 145px;
        padding: 20px;
    }

    .category-card strong {
        font-size: 1.35rem;
    }

    .category-card > span:last-child {
        font-size: .61rem;
    }
}

@media (max-width: 360px) {
    .hero__grid {
        padding-top: 30px;
        gap: 14px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero__content > p {
        font-size: .87rem;
    }

    .hero__actions {
        margin: 20px 0 22px;
    }

    .hero__facts b {
        font-size: .62rem;
    }

    .hero__facts small {
        font-size: .53rem;
    }

    .hero__visual {
        min-height: 240px;
    }

    .hero__visual img {
        width: 225px;
    }

    .hero__halo {
        width: 225px;
        height: 225px;
    }

    .hero__badge {
        right: 5%;
        width: 60px;
        height: 60px;
        font-size: .68rem;
    }

    .category-card {
        min-height: 128px;
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
