@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .header-main { grid-template-columns: 1fr auto auto; min-height: 66px; }
    .site-logo img { width: auto; height: 46px; }
    .site-logo { grid-column: 1; grid-row: 1; min-width: 0; }
    .menu-toggle { grid-column: 2; grid-row: 1; }
    .header-actions { grid-column: 3; grid-row: 1; }
    .header-search-wrap { grid-column: 1 / -1; grid-row: 2; padding-bottom: 10px; }
    .header-contact { display: none; }
    .menu-toggle { display: inline-flex; }
    .site-nav { position: fixed; inset: 0 0 auto; top: 123px; max-height: 0; overflow: hidden; border-top: 0; background: var(--front-white); opacity: 0; transition: max-height .25s ease, opacity .2s ease; }
    .site-nav.is-open { max-height: calc(100vh - 123px); border-top: 1px solid var(--front-border); border-bottom: 1px solid var(--front-border); opacity: 1; box-shadow: var(--front-shadow); }
    .site-nav-inner { display: grid; gap: 0; padding-block: 10px 18px; }
    .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--front-border); }
    .hero { min-height: 500px; }
    .hero-inner { padding-block: 58px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail, .cart-layout, .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
    .product-buy-box, .summary-card { position: static; }
    .filter-toggle { display: inline-flex; margin-bottom: 12px; }
    .catalog-layout { display: block; }
    .filter-panel { position: static; display: none; width: 100%; max-height: min(76vh, 720px); margin-bottom: 18px; overflow-y: auto; border-radius: 20px; }
    .filter-panel.is-open { display: block; }
    .filter-panel-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--front-border); background: rgba(255,255,255,.98); padding: 18px 20px 14px; }
    .filter-panel-header h2, .filter-panel-header p { margin: 0; }
    .catalog-filters { grid-template-columns: 1fr; gap: 0; align-items: stretch; padding: 4px 20px 22px; }
    .filter-group { gap: 14px; padding: 19px 0; }
    .filter-group legend { margin-bottom: 10px; font-size: 1rem; }
    .filter-option-search { min-height: 48px; font-size: 1rem; }
    .filter-options { max-height: 280px; gap: 6px; }
    .filter-option { min-height: 44px; padding: 9px 10px; font-size: .94rem; }
    .filter-option input { width: 19px; min-height: 19px; }
    .filter-price-grid { grid-template-columns: 1fr; gap: 12px; }
    .filter-group input, .filter-group select { min-height: 50px; }
    .catalog-filters > .btn { min-height: 50px; margin-top: 18px; }
    .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .pagination { gap: 4px; overflow: hidden; }
    .pagination a { min-width: 38px; min-height: 40px; padding-inline: 8px; }
    .pagination-nav span { display: none; }
    .pagination-ellipsis { min-width: 18px; }
    .container { width: min(calc(100% - 20px), var(--front-container)); }
    .section { padding-block: 32px; }
    .header-main { gap: 6px; }
    .site-logo img { width: auto; height: 46px; }
    .cart-link { min-width: 48px; gap: 5px; padding: 6px 7px; font-size: .82rem; }
    .cart-link-label { display: none; }
    .cart-count { min-width: 22px; height: 22px; padding-inline: 5px; }
    .header-search-wrap { padding-bottom: 12px; }
    .header-search { grid-template-columns: minmax(0, 1fr) 50px; gap: 0; border: 1px solid var(--front-border); border-radius: 14px; background: var(--front-white); box-shadow: 0 8px 20px rgba(7,7,7,.06); padding: 3px; }
    .header-search:focus-within { border-color: var(--front-red); box-shadow: 0 0 0 3px rgba(227,6,19,.1); }
    .header-search input { min-width: 0; min-height: 44px; border: 0; background: transparent; padding-block: 8px; }
    .header-search input:focus { border-color: transparent; outline: 0; box-shadow: none; }
    .header-search .header-search-button { width: 48px; min-height: 44px; border-radius: 10px; padding: 0; box-shadow: none; }
    .header-search-button span { display: none; }
    .header-search-button svg { display: block; }
    .hero { min-height: 360px; box-shadow: inset 3px 0 0 rgba(227,6,19,.28); }
    .hero::before { right: 2%; width: 70px; height: 48%; opacity: .55; }
    .hero::after { width: 24%; height: 4px; }
    .hero-inner { padding-block: 46px 42px; }
    .hero h1 { max-width: 340px; font-size: 2rem; line-height: 1.08; }
    .hero-lead { max-width: 340px; margin-bottom: 20px; font-size: .96rem; }
    .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hero-actions .btn { min-height: 46px; padding: 9px 8px; font-size: .82rem; }
    .home-search { margin-top: 18px; }
    .home-search-form { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; border-radius: 16px; padding: 8px; box-shadow: var(--front-shadow-soft); }
    .home-search-form input { min-width: 0; }
    .home-search-form .btn { min-height: 48px; padding-inline: 14px; }
    .section-heading { display: block; }
    .category-grid { gap: 10px; }
    .category-card { min-height: 132px; padding: 15px; }
    .product-grid { gap: 9px; }
    .product-card { border-radius: 16px; }
    .product-card-body { padding: 11px; }
    .product-card h3 { min-height: 3.75em; max-height: 3.75em; font-size: .86rem; }
    .product-price { font-size: .95rem; }
    .product-actions .btn { min-height: 44px; padding: 8px; font-size: .78rem; }
    .catalog-page-header { padding: 18px; }
    .catalog-toolbar { align-items: stretch; }
    .catalog-filters .btn { width: 100%; }
    .live-search-panel { position: fixed; z-index: 250; top: 112px; right: 8px; left: 8px; width: auto; max-height: calc(100vh - 124px); }
    .live-search-panel-home { position: absolute; top: calc(100% + 8px); right: 0; left: 0; }
    .live-search-item { grid-template-columns: 50px minmax(0, 1fr) auto; padding: 9px; }
    .live-search-media { width: 50px; height: 50px; }
    .live-search-copy strong { white-space: normal; overflow-wrap: anywhere; }
    .product-detail { gap: 20px; }
    .product-buy-box { padding: 18px; }
    .product-thumbs { display: flex; overflow-x: auto; }
    .product-gallery-thumb { flex: 0 0 68px; }
    .quantity-row { grid-template-columns: 86px 1fr; }
    .buy-trust { grid-template-columns: 1fr; }
    .product-lightbox { padding: 47px 8px 8px; }
    .cart-item { grid-template-columns: 78px 1fr; gap: 11px; }
    .cart-item-media { width: 78px; }
    .cart-item-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .cart-item h3, .cart-item-meta { overflow-wrap: anywhere; }
    .coupon-form { grid-template-columns: 1fr; }
    .coupon-form .btn { width: 100%; }
    .form-grid, .choice-grid, .order-details-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .checkout-panel { padding: 17px; }
    .mobile-checkout-bar { position: sticky; z-index: 20; bottom: 8px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(7,7,7,.18); padding: 7px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom, .final-cta { display: grid; }
    .trust-grid { gap: 9px; }
    .trust-item { min-height: 108px; padding: 14px; }
}
@media (max-width: 430px) {
    .live-search-item { grid-template-columns: 50px minmax(0, 1fr); }
    .live-search-price { grid-column: 2; justify-items: start; white-space: normal; }
    .quantity-row { grid-template-columns: 82px minmax(0, 1fr); }
}
