:root {
  --blue: #155eef;
  --blue-dark: #0c3eaa;
  --ink: #111b2e;
  --muted: #657086;
  --line: #dce2ec;
  --soft: #f3f6fa;
  --white: #fff;
  --orange: #ff8a1f;
  --green: #20a464;
  --danger: #d23b3b;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(17, 27, 46, .1);
  --container: 1440px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 15px/1.55 Inter, Arial, sans-serif; }
body.menu-open, body.filters-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kicker { display: block; margin-bottom: 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 800; transition: .2s ease; }
.btn:hover { border-color: var(--blue-dark); background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); background: var(--soft); color: var(--blue); }
.btn--full { width: 100%; }
.btn--icon { width: 48px; min-height: 48px; padding: 0; }
.btn svg, a svg, button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: relative; z-index: 30; background: var(--white); }
.topbar { background: var(--ink); color: #cbd3e1; font-size: 12px; }
.topbar__inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; }
.topbar a { color: var(--white); font-weight: 800; letter-spacing: .04em; }
.header-main { display: grid; grid-template-columns: auto auto minmax(260px, 1fr) auto; gap: 20px; align-items: center; min-height: 92px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 210px; height: auto; }
.catalog-toggle { display: inline-flex; height: 48px; align-items: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 800; }
.header-search { position: relative; display: flex; height: 48px; border: 2px solid var(--blue); border-radius: 10px; background: var(--white); }
.header-search input { min-width: 0; flex: 1; padding: 0 16px; border: 0; border-radius: 10px; outline: none; }
.header-search button { width: 52px; border: 0; background: transparent; color: var(--blue); }
.search-suggest { position: absolute; z-index: 50; top: calc(100% + 8px); left: -2px; right: -2px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.search-suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; }
.search-suggest a:hover { background: var(--soft); }
.search-suggest img { width: 44px; height: 40px; object-fit: contain; }
.search-suggest span { font-weight: 700; }
.search-suggest b { color: var(--blue); }
.header-actions { display: flex; gap: 8px; }
.header-actions a { position: relative; display: grid; min-width: 72px; justify-items: center; gap: 3px; color: var(--muted); font-size: 11px; }
.header-actions a:hover { color: var(--blue); }
.header-actions b { position: absolute; top: -7px; left: calc(50% + 7px); display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid var(--white); border-radius: 50px; background: var(--orange); color: var(--ink); font-size: 9px; }
.category-nav { border-block: 1px solid var(--line); }
.category-nav .container { display: flex; gap: 42px; min-height: 48px; align-items: center; }
.category-nav a { font-weight: 800; }
.category-nav a:hover { color: var(--blue); }
.catalog-menu[hidden] { display: none !important; }
.catalog-menu { position: absolute; z-index: 60; top: 100%; right: 0; left: 0; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 24px 55px rgba(17, 27, 46, .18); }
.catalog-menu > .container { padding-block: 28px 20px; }
.catalog-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.catalog-menu__grid section { display: flex; flex-direction: column; gap: 8px; }
.catalog-menu__grid a { padding: 5px 0; color: var(--muted); }
.catalog-menu__grid a:hover { color: var(--blue); }
.catalog-menu__grid .catalog-menu__title { margin-bottom: 7px; color: var(--ink); font-size: 18px; font-weight: 800; }
.catalog-menu__bottom { display: flex; gap: 30px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 800; }
.catalog-menu__bottom a:hover { color: var(--blue); }

.hero { overflow: hidden; background: linear-gradient(115deg, #eef3fa 0 60%, var(--blue) 60%); }
.hero__grid { display: grid; min-height: 620px; grid-template-columns: 1.08fr .92fr; align-items: center; }
.hero h1 { max-width: 760px; margin-bottom: 24px; }
.hero p { max-width: 680px; color: var(--muted); font-size: 19px; }
.hero__actions { display: flex; gap: 12px; margin: 34px 0 48px; }
.hero__facts { display: flex; gap: 32px; }
.hero__facts span { max-width: 145px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.hero__facts b { display: block; color: var(--ink); font-size: 21px; }
.hero__visual { position: relative; align-self: stretch; }
.hero__visual::after { position: absolute; inset: 14% -20% 8% 8%; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; content: ''; }
.hero__visual img { position: absolute; z-index: 2; right: -20px; bottom: 0; width: 92%; height: 85%; object-fit: contain; filter: drop-shadow(0 38px 35px rgba(0, 0, 0, .25)); mix-blend-mode: multiply; }

.section { padding: 90px 0; }
.section--muted { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 390px; overflow: hidden; padding: 34px; border-radius: var(--radius); background: #17263f; color: var(--white); }
.category-card::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 55%); content: ''; }
.category-card--2 { background: var(--blue); }
.category-card--3 { background: #263c48; }
.category-card > span { position: relative; z-index: 2; color: #a8bad4; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-card h2 { position: relative; z-index: 2; max-width: 340px; margin: 14px 0; font-size: 38px; }
.category-card p { position: relative; z-index: 2; max-width: 390px; color: #c8d3e3; }
.category-card b { position: absolute; z-index: 3; bottom: 30px; left: 34px; display: inline-flex; align-items: center; gap: 6px; }
.category-card img { position: absolute; right: -20px; bottom: -15px; width: 55%; height: 54%; object-fit: contain; filter: drop-shadow(0 20px 20px rgba(0,0,0,.28)); transition: transform .3s ease; mix-blend-mode: multiply; }
.category-card:hover img { transform: translate(-8px, -5px) rotate(-2deg); }
.category-grid--catalog .category-card { min-height: 460px; }
.catalog-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.catalog-summary a { display: flex; align-items: center; justify-content: space-between; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.catalog-summary span { font-weight: 800; }
.catalog-summary b { display: inline-flex; align-items: center; color: var(--blue); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: .2s ease; }
.product-card:hover { border-color: #bac5d8; box-shadow: 0 14px 35px rgba(17,27,46,.08); transform: translateY(-2px); }
.product-card__image { display: block; margin-bottom: 14px; border-radius: 10px; background: var(--soft); }
.product-card__image img { width: 100%; height: 210px; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.favorite-btn { position: absolute; z-index: 3; top: 28px; right: 28px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--muted); }
.favorite-btn.is-active { border-color: #ffd9df; background: #fff1f3; color: #d92b4c; }
.favorite-btn.is-active svg { fill: currentColor; }
.product-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.product-card h3 { min-height: 48px; margin-bottom: 13px; font-size: 15px; line-height: 1.42; }
.product-card h3 a:hover { color: var(--blue); }
.stock { display: flex; align-items: center; gap: 7px; margin: auto 0 16px; color: var(--green); font-size: 12px; font-weight: 700; }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(32,164,100,.12); }
.product-card__buy { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-card__buy > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.product-card__buy strong { font-size: 20px; }
.product-card__buy del { color: #9aa3b4; font-size: 12px; }
.product-card__buy small { flex-basis: 100%; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > div { padding: 42px; }
.steps > div + div { border-left: 1px solid var(--line); }
.steps span { color: var(--blue); font: 900 30px/1 Arial, sans-serif; }
.steps h3 { margin: 22px 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

.page-hero { padding: 82px 0 72px; background: linear-gradient(120deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.page-hero--compact { padding: 46px 0 54px; }
.page-hero h1 { max-width: 960px; margin-bottom: 18px; }
.page-hero p { max-width: 820px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 34px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs svg { width: 14px; height: 14px; }

.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; padding-block: 46px 90px; }
.filters { align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { margin: 0 0 20px; font-size: 24px; }
.filters__head button, .filter-toggle { display: none; }
.filters > label, .filters fieldset { display: block; margin: 0 0 24px; padding: 0; border: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.filters input[type="search"] { width: 100%; height: 44px; margin-top: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.filters input[type="range"] { width: 100%; margin-top: 13px; accent-color: var(--blue); }
.filters output { display: block; color: var(--blue); font-size: 16px; }
.filters legend { margin-bottom: 10px; }
.check { display: flex; gap: 9px; margin: 9px 0; color: var(--muted); font-weight: 500; }
.check input { accent-color: var(--blue); }
.catalog-toolbar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-toolbar p { margin: 0; color: var(--muted); }
.catalog-toolbar label { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.catalog-toolbar select { height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 42px 0; }
.pagination a, .pagination span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }
.pagination span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.seo-text { max-width: 900px; margin-top: 70px; padding-top: 48px; border-top: 1px solid var(--line); }
.seo-text h2 { font-size: 30px; }
.seo-text p { color: var(--muted); }
.empty-filter { padding: 50px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }

.product-page { padding-block: 34px 90px; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.product-gallery { position: relative; display: grid; min-height: 590px; place-items: center; border-radius: var(--radius); background: var(--soft); }
.product-gallery img { width: 88%; height: 540px; object-fit: contain; mix-blend-mode: multiply; }
.product-badge { position: absolute; top: 20px; left: 20px; padding: 7px 12px; border-radius: 50px; background: #e6f8ef; color: var(--green); font-size: 11px; font-weight: 800; }
.product-info { padding-top: 18px; }
.product-code { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.product-info h1 { margin: 16px 0 20px; font-size: clamp(34px, 4vw, 58px); }
.product-summary { max-width: 650px; color: var(--muted); font-size: 17px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 32px 0 14px; }
.product-price strong { font-size: 38px; }
.product-price del { color: #9aa3b4; }
.product-price span { flex-basis: 100%; color: var(--muted); }
.stock--large { margin: 0 0 28px; font-size: 14px; }
.product-order { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 26px; border-block: 1px solid var(--line); }
.product-order label { color: var(--muted); font-size: 11px; font-weight: 700; }
.product-order input { width: 100%; height: 50px; margin-top: 5px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.favorite-btn--wide { position: static; display: flex; width: auto; height: 46px; grid-column: 1 / -1; gap: 9px; border-radius: 9px; }
.confirm-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 24px; padding: 18px; border-radius: 10px; background: #fff4e9; }
.confirm-note b { color: #a34b00; }
.confirm-note span { color: #6d4a2f; }
.product-specs { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; margin-top: 80px; padding: 54px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.product-specs p { color: #b7c2d4; }
.product-specs dl { margin: 0; }
.product-specs dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid #36435a; }
.product-specs dt { color: #aeb9ca; }
.product-specs dd { margin: 0; font-weight: 700; }
.related { margin-top: 90px; }

.search-page-form { display: grid; max-width: 900px; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 22px; }
.search-page-form input { height: 54px; padding: 0 17px; border: 2px solid var(--blue); border-radius: 10px; outline: none; font-size: 17px; }
.search-status { margin-bottom: 26px; color: var(--muted); }
.state-empty { grid-column: 1 / -1; padding: 70px 30px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.state-empty h2 { font-size: 32px; }
.state-empty p { color: var(--muted); }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 120px; height: 100px; object-fit: contain; border-radius: 10px; background: var(--soft); mix-blend-mode: multiply; }
.cart-item h3 { margin-bottom: 5px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 12px; }
.cart-item__qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.cart-item__qty button { width: 35px; height: 40px; border: 0; background: transparent; }
.cart-item__qty input { width: 46px; height: 40px; padding: 0; border: 0; text-align: center; }
.cart-item__price { min-width: 120px; text-align: right; }
.cart-item__price strong { display: block; font-size: 19px; }
.link-danger { border: 0; background: none; color: var(--danger); font-size: 12px; }
.order-summary { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.order-summary h2 { font-size: 26px; }
.order-summary > div:not(.checkout-items) { display: flex; justify-content: space-between; padding: 10px 0; }
.order-summary__total { margin-top: 16px; padding-top: 22px !important; border-top: 1px solid var(--line); }
.order-summary__total strong { font-size: 24px; }
.order-summary p { color: var(--muted); font-size: 12px; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
.checkout-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.checkout-form h2 { font-size: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkout-form label { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 800; }
.checkout-form label span { color: var(--muted); font-weight: 500; }
.checkout-form input:not([type="checkbox"]), .checkout-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,94,239,.1); }
.checkout-form .consent { display: flex; align-items: start; gap: 10px; font-weight: 500; }
.consent input { margin-top: 5px; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.form-error { color: var(--danger); }
.checkout-items { max-height: 340px; overflow: auto; }
.checkout-mini { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkout-mini img { width: 44px; height: 44px; object-fit: contain; }
.checkout-mini span { font-size: 12px; }
.checkout-mini b { font-size: 12px; }

.success-page { display: grid; min-height: 670px; place-items: center; padding: 70px 0; background: var(--soft); }
.success-card { max-width: 700px; margin: auto; padding: 58px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.success-card h1 { margin: 18px 0; }
.success-card > p { color: var(--muted); font-size: 17px; }
.success-icon { display: grid; width: 76px; height: 76px; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #e7f8ef; color: var(--green); font-size: 36px; font-weight: 800; }
.success-order { display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; max-width: 410px; margin: 30px auto; padding: 22px; border-radius: 12px; background: var(--soft); text-align: left; }
.success-order strong { color: var(--blue); text-align: right; }
.success-help { margin-top: 20px; font-size: 13px !important; }
.success-help a { color: var(--blue); font-weight: 800; }
.error-code { color: var(--blue); font: 900 80px/1 Arial, sans-serif; }

.editorial { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.editorial > div:first-child p { color: var(--muted); font-size: 17px; }
.values { display: grid; gap: 14px; }
.values article { display: grid; grid-template-columns: 60px 1fr; gap: 4px 20px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.values b { grid-row: 1 / 3; color: var(--blue); font: 900 28px/1 Arial, sans-serif; }
.values h3, .values p { margin: 0; }
.values p { color: var(--muted); }

.legal { max-width: 960px; }
.legal-site { margin: 0 0 32px; padding: 16px 20px; border-radius: 10px; background: var(--soft); font-weight: 700; }
.legal-site a, .requisites a { color: var(--blue); }
.legal-note { margin-bottom: 46px; padding: 22px; border-left: 4px solid var(--orange); border-radius: 4px 10px 10px 4px; background: #fff4e9; }
.legal-note p { margin: 6px 0 0 !important; }
.legal-note--danger { border-color: var(--danger); background: #fff0f0; }
.legal section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 26px; }
.legal p { color: #4d586b; }
.requisites { border: 1px solid var(--line); border-radius: 14px; }
.requisites div { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 18px 22px; }
.requisites div + div { border-top: 1px solid var(--line); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 800; }
.document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.document-grid a { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.document-grid a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.document-grid span { color: var(--blue); font: 900 28px/1 Arial, sans-serif; }
.document-grid h2 { margin: 22px 0 8px; font-size: 26px; }
.document-grid p { margin: 0; color: var(--muted); }

.site-footer { padding-top: 64px; background: var(--ink); color: #b7c1d2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 46px; }
.brand--light { padding: 8px 12px; border-radius: 10px; background: var(--white); }
.footer-grid > div:first-child p { max-width: 330px; margin-top: 22px; }
.footer-grid h2 { margin-bottom: 18px; color: var(--white); font-size: 14px; letter-spacing: 0; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-phone { color: var(--white); font-size: 18px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-block: 22px; border-top: 1px solid #334057; font-size: 11px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; border-radius: 10px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: auto auto 1fr; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .header-search { grid-column: 1 / -1; margin-bottom: 18px; }
  .hero__grid { min-height: 560px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-card { min-height: 420px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .category-nav { display: none; }
  .catalog-menu { max-height: calc(100vh - 120px); overflow: auto; }
  .catalog-menu__grid { grid-template-columns: 1fr; gap: 22px; }
  .catalog-menu__bottom { flex-wrap: wrap; gap: 12px 24px; }
  .hero { background: var(--soft); }
  .hero__grid { grid-template-columns: 1fr; padding-top: 70px; }
  .hero__visual { min-height: 420px; margin-top: 30px; background: var(--blue); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 330px; }
  .catalog-summary { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 90; inset: 0 0 0 auto; width: min(380px, 90vw); overflow: auto; border: 0; border-radius: 0; background: var(--white); transform: translateX(105%); transition: .25s ease; }
  .filters-open .filters { transform: translateX(0); box-shadow: -20px 0 50px rgba(0,0,0,.2); }
  .filters__head button, .filter-toggle { display: inline-flex; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
  .product-detail, .product-specs, .editorial { grid-template-columns: 1fr; }
  .product-gallery { min-height: 440px; }
  .product-gallery img { height: 400px; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .cart-layout .order-summary { grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  h1 { font-size: 38px; }
  .topbar__inner span { display: none; }
  .topbar__inner { justify-content: center; }
  .header-main { grid-template-columns: 1fr auto; gap: 12px; min-height: 74px; }
  .brand img { width: 174px; }
  .catalog-toggle { width: 44px; padding: 0; justify-content: center; }
  .catalog-toggle span { display: none; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-around; }
  .header-actions a { display: flex; min-height: 36px; align-items: center; gap: 8px; }
  .header-search { grid-column: 1 / -1; grid-row: 3; margin-bottom: 14px; }
  .hero__grid { padding-top: 50px; }
  .hero p { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__facts { flex-wrap: wrap; gap: 18px; }
  .hero__visual { min-height: 330px; margin-inline: -16px; }
  .section { padding: 62px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 360px; padding: 26px; }
  .category-card h2 { font-size: 31px; }
  .category-card b { bottom: 24px; left: 26px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .page-hero--compact { padding: 34px 0 42px; }
  .breadcrumbs { margin-bottom: 22px; }
  .catalog-toolbar { align-items: stretch; flex-wrap: wrap; }
  .catalog-toolbar p { order: 3; width: 100%; }
  .catalog-toolbar label { flex: 1; justify-content: end; }
  .catalog-toolbar select { max-width: 170px; }
  .product-gallery { min-height: 330px; }
  .product-gallery img { height: 300px; }
  .product-order { grid-template-columns: 90px 1fr; }
  .product-specs { gap: 30px; padding: 28px; }
  .product-specs dl div { grid-template-columns: 1fr; gap: 5px; }
  .cart-item { grid-template-columns: 86px 1fr; gap: 12px; }
  .cart-item img { width: 86px; height: 78px; }
  .cart-item__qty { grid-column: 2; justify-self: start; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-form { padding: 24px; }
  .success-card { padding: 40px 22px; }
  .success-order { grid-template-columns: 1fr; text-align: center; }
  .success-order strong { text-align: center; }
  .document-grid { grid-template-columns: 1fr; }
  .requisites div { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
