﻿/* National Safety — светлая витрина спецодежды.
   Заголовки и цены — Unbounded (широкий, уверенный), текст — Golos Text.
   Цвета: рабочий синий из логотипа, сигнальный оранжевый для акцентов, тёплый светлый фон и белые карточки. */

:root {
  --bg: #F2F3F0;
  --card: #FFFFFF;
  --ink: #132030;
  --text: #34414E;
  --muted: #5F6A76;
  --line: #E4E6E2;

  --brand: #1F5582;
  --brand-2: #173F62;
  --brand-soft: #DFEAF4;
  --brand-tint: #EEF4F9;
  --accent: #FF7A1A;
  --accent-2: #E4620A;
  --accent-soft: #FFEFE2;
  --wa: #14803F;
  --wa-2: #0F6B33;
  --navy: #12263A;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(19, 32, 48, .04), 0 6px 20px rgba(19, 32, 48, .05);
  --shadow-up: 0 2px 6px rgba(19, 32, 48, .06), 0 18px 40px rgba(19, 32, 48, .10);

  --f: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --gut: clamp(16px, 3vw, 40px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(31, 85, 130, .35); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--f-head); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
/* Unbounded — только для крупных заголовков; в карточках и подписях — Golos */
h3, h4 { font-family: var(--f); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.price { font-family: var(--f-head); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.img-missing { object-fit: contain !important; padding: 25%; opacity: .25; }

/* ——— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; line-height: 1;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #FF8B38; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light:hover { box-shadow: inset 0 0 0 1px #C9CDD2; }
.btn-wide { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { background: var(--bg); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover { color: var(--brand-2); }
.link:hover svg, a:hover > .link svg { transform: translateX(3px); }
.link-wa { gap: 8px; }
.link-wa svg { width: 20px; height: 20px; }
.link-wa:hover svg { transform: none; }

/* ——— шапка ——— */
.topline { font-size: 13px; color: var(--muted); }
.topline .wrap { display: flex; gap: 24px; align-items: center; height: 40px; }
.topline-r { margin-left: auto; display: flex; gap: 20px; }
.topline a:hover { color: var(--brand); }
.open-dot { display: inline-flex; align-items: center; gap: 8px; }
.open-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B9BEC4; flex: none; }
.open-dot.on::before { background: var(--wa); box-shadow: 0 0 0 3px rgba(31, 175, 90, .18); }

.head { position: sticky; top: 0; z-index: 40; padding-bottom: 12px; }
.head::before { content: ""; position: absolute; inset: 0; background: var(--bg); z-index: -1; }
.head-box { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.head-main { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 44px; width: auto; }
.logo span { font-family: var(--f-head); font-weight: 600; font-size: 13px; line-height: 1.1; letter-spacing: .04em; color: var(--ink); }
.cat-toggle { min-height: 48px; padding: 0 20px 0 16px; }
.cat-toggle svg { width: 20px; height: 20px; }
.cat-toggle[aria-expanded="true"] { background: var(--brand-2); }
.search-inline { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; border-radius: var(--r-sm); background: var(--bg); transition: background .2s; cursor: pointer; }
.search-inline:hover { background: #EAEBE7; }
.search-inline span { flex: 1; min-width: 0; padding: 0 16px; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-inline i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--brand); color: #fff; flex: none; }
.search-inline i svg { width: 20px; height: 20px; }
.head-phone { display: flex; flex-direction: column; line-height: 1.25; }
.head-phone a:first-child { font-weight: 600; color: var(--ink); font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-link { font-size: 13px; color: var(--wa-2); font-weight: 600; }
.cart-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; font-size: 13px; font-weight: 500; color: var(--text); padding: 4px 8px; border-radius: var(--r-sm); }
.cart-btn:hover { background: var(--bg); }
.cart-btn svg { width: 26px; height: 26px; color: var(--ink); }
.cart-btn b { position: absolute; top: 0; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.cart-btn b[data-zero] { display: none; }
.cart-btn.bump svg { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.12); } }

.head-nav { display: flex; align-items: center; gap: 4px; padding: 0 12px 12px; }
.head-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--text); font-size: 15px; transition: background .2s, color .2s; }
.head-nav a:hover { background: var(--bg); color: var(--ink); }
.head-nav a.is-active { color: var(--brand); background: var(--brand-tint); }
.head-nav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }

/* мегаменю */
.mega { position: absolute; left: 0; right: 0; top: calc(100% - 4px); }
.mega-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-up); animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mega-col { display: grid; grid-template-columns: 88px 1fr; gap: 4px 16px; padding: 16px; border-radius: var(--r); align-content: start; }
.mega-col:hover { background: var(--brand-tint); }
.mega-col img { grid-row: span 2; width: 88px; height: 104px; object-fit: contain; }
.mega-col h3 { font-size: 17px; }
.mega-col h3 a:hover { color: var(--brand); }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mega-col li a { display: block; padding: 4px 0; color: var(--text); font-size: 15px; }
.mega-col li a:hover { color: var(--brand); }

/* ——— общие блоки ——— */
.sec { padding: clamp(40px, 5vw, 64px) 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.card-box { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span::before { content: "›"; margin-right: 8px; }
.page-title { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 24px; }

/* ——— первый экран ——— */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.slider img { -webkit-user-drag: none; user-select: none; }
.slider { position: relative; height: 500px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; touch-action: pan-y; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: 44px 0 76px clamp(28px, 4vw, 56px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.slide:not(.is-on) .slide-text { opacity: 0; transition: opacity .15s; }
/* вход слайда: текст и вещи коротко поднимаются по очереди */
.slide.is-on .slide-text > * { animation: rise .7s var(--ease) both; }
.slide.is-on .slide-text > :nth-child(2) { animation-delay: .08s; }
.slide.is-on .slide-text > :nth-child(3) { animation-delay: .16s; }
.slide.is-on .slide-text > :nth-child(4) { animation-delay: .24s; }
.slide.is-on .slide-pic > * { animation: rise .7s var(--ease) both; }
.slide.is-on .slide-pic > :nth-child(2) { animation-delay: .12s; }
.slide.is-on .slide-pic > :nth-child(3) { animation-delay: .22s; }
.slide.is-on .slide-pic > :nth-child(4) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
/* слайды на фотографиях: фото во весь баннер, слева мягкая подложка под текст */
.slide.photo { background: #DCE8F3; }
.slide-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(244, 247, 250, .94) 0%, rgba(244, 247, 250, .78) 34%, rgba(244, 247, 250, 0) 58%); }
.slide-1 { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.slide-1 .slide-bg { object-position: 82% center; }
.slide-3 .slide-bg { object-position: 80% center; }
.slide-2 .slide-bg { object-position: 70% 70%; }
.slide.dark::before { background: linear-gradient(90deg, rgba(10, 22, 34, .9) 0%, rgba(10, 22, 34, .6) 38%, rgba(10, 22, 34, 0) 62%); }
.slide.dark .slide-text h2 { color: #fff; }
.slide.dark .slide-text p { color: #D2DEE9; }
.slide.dark .kicker { color: #fff; }
.slide.dark .link-wa { color: #fff; }
.slide-pic { z-index: 2; }
.slide-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 520px; }
/* фирменная деталь: отрезок световозвращающей ленты перед подписью */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--brand); }
.kicker::before { content: ""; width: 24px; height: 6px; border-radius: 1px; background: linear-gradient(180deg, #C3CAD1 0 33%, #F4F6F8 33% 67%, #C3CAD1 67%); box-shadow: 0 0 0 1px rgba(19, 32, 48, .08); }
.slide-2 .kicker { color: #B34D00; }
.slide-text h1, .slide-text h2 { max-width: 440px; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.slide-text p { font-size: clamp(15px, 1.2vw, 18px); color: var(--text); max-width: 440px; }
.slide-text .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.slide-pic { position: relative; height: calc(100% + 120px); margin: -44px 0 -76px; }
.slide-pic img { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(19, 32, 48, .16)); }
/* 2: новинки с ценниками */
/* настоящие фото костюмов стоят на снегу */
.s2-a { right: 40%; bottom: 7%; height: 84%; }
.s2-b { right: 8%; bottom: 7%; height: 80%; }
.s2-prices { display: flex; gap: 0; align-self: stretch; max-width: 400px; border-top: 1px solid rgba(19, 32, 48, .12); border-bottom: 1px solid rgba(19, 32, 48, .12); }
.s2-price { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 0; color: var(--ink); }
.s2-price + .s2-price { padding-left: 20px; border-left: 1px solid rgba(19, 32, 48, .12); }
.s2-price i { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
.s2-price[data-fig="a"] i { background: #1E2F55; }
.s2-price[data-fig="b"] i { background: #6F7A55; }
.s2-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.s2-price .price { font-size: 20px; }
.s2-price:hover .price { color: var(--brand); }
.s2-a, .s2-b { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.slide-2:has([data-fig="a"]:hover) .s2-b, .slide-2:has([data-fig="b"]:hover) .s2-a { opacity: .35; filter: grayscale(.6); }

.slider-nav { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255,255,255,.78); backdrop-filter: blur(8px); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
/* переключатель появляется, только когда навели мышь на баннер (или перешли на него с клавиатуры) */
.slider:hover .slider-nav, .slider:focus-within .slider-nav { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.slider-nav .pause { margin-left: 2px; border-left: 1px solid rgba(19, 32, 48, .12); border-radius: 0 50% 50% 0; }
.slider-nav > button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.slider-nav > button:hover { background: #fff; }
.slider-nav svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; padding: 0 8px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(19, 32, 48, .22); transition: width .3s var(--ease), background .3s; }
.dots button.is-on { width: 24px; background: var(--brand); }

.promos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; transition: box-shadow .3s; }
.promo:hover { box-shadow: var(--shadow-up); }
.promo h3 { font-size: 20px; line-height: 1.2; }
.promo p { font-size: 15px; line-height: 1.45; max-width: 240px; }
.promo .link { margin-top: auto; }
.promo-ship { background: #12263A; color: #D5E0EA; }
.promo-ship::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 30, 46, .9) 0%, rgba(14, 30, 46, .55) 42%, rgba(14, 30, 46, 0) 62%), linear-gradient(90deg, rgba(14, 30, 46, .55) 0%, rgba(14, 30, 46, 0) 45%); }
.promo-ship .van-scene { z-index: -2; }
.promo-ship .van-stage { left: -6%; right: auto; bottom: -4%; width: 118%; }
.promo-ship .van-car { left: 58%; }
.promo-ship h3 { color: #fff; }
.promo-ship .link { color: #fff; align-self: flex-start; padding: 8px 12px; margin-left: -12px; border-radius: 8px; background: rgba(14, 30, 46, .72); }
.promo-sew { background: var(--card); box-shadow: var(--shadow); }
.promo-sew h3, .promo-sew p { max-width: 64%; }
.promo-sew .promo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 92% center; }
.promo-sew::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 46%, rgba(255,255,255,.1) 82%); }

/* преимущества */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.perk { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.perk-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: #EDF3F8; }
.perk-ic svg { width: 24px; height: 24px; }
.perk b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.25; }
.perk b + span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* категории */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; gap: 16px; padding: 20px 20px 12px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: box-shadow .3s; min-width: 0; }
.cat:hover { box-shadow: var(--shadow-up); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-head h3 { font-size: 20px; }
.cat-head h3 a:hover { color: var(--brand); }
.cat-head .link { font-size: 15px; }
/* фото тянется по высоте, чтобы списки разной длины стояли ровно по низу */
.cat-media { position: relative; display: block; flex: 1 1 auto; min-height: 210px; border-radius: var(--r); overflow: hidden; background: #E6EAEE; }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px; font-weight: 500; color: var(--ink); transition: color .2s; }
.cat-list a svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease), color .2s; flex: none; }
.cat-list a:hover { color: var(--brand); }
.cat-list a:hover svg { color: var(--brand); transform: translateX(3px); }

/* карусель товаров */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 40px; padding: 0 16px; border-radius: 20px; font-weight: 600; font-size: 15px; color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.tabs button:hover { box-shadow: inset 0 0 0 1px #C9CDD2; }
.tabs button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px; margin: -6px -2px -24px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 36%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-up); display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.rail-wrap:hover .rail-btn, .rail-wrap:focus-within .rail-btn { opacity: 1; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.prev { left: -20px; } .rail-btn.next { right: -20px; }
.rail-btn[disabled] { opacity: 0 !important; pointer-events: none; }

/* витрина «Новинки и хиты»: мозаика во всю ширину */
.showcase { margin-top: clamp(48px, 6vw, 80px); padding: clamp(44px, 5vw, 72px) 0; background: var(--navy); color: #fff; }
.showcase .sec-head h2 { color: #fff; }
.showcase .sec-sub { color: #A9BBCD; margin-top: 8px; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 104px; grid-auto-flow: dense; gap: 16px; }
.tile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: var(--ink); background: #fff; transition: background .2s; }
.tile:hover { background: #F7F8F6; }
.tile-tall { grid-column: span 2; grid-row: span 4; }
.tile-wide { grid-column: span 2; grid-row: span 2; }
.tile-small { grid-column: span 1; grid-row: span 2; }
.tile img { position: absolute; inset: 44px 16px 52px; width: calc(100% - 32px); height: calc(100% - 96px); object-fit: contain; mix-blend-mode: multiply; }
.tile-small img { inset: 40px 12px 56px; width: calc(100% - 24px); height: calc(100% - 96px); }
.tile-tag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.is-new > .tile-tag { background: var(--accent); color: var(--ink); box-shadow: none; }
.tile-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px; }
.tile-name, .tile-go { grid-area: 1 / 1; align-self: end; }
.tile-name { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); transition: opacity .3s, transform .4s var(--ease); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-small .tile-name { font-size: 13px; }
.tile-go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.tile-go svg { width: 16px; height: 16px; }
.tile:hover .tile-name, .tile:focus-visible .tile-name { opacity: 0; transform: translateY(-4px); }
.tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; transform: none; }
.tile-small .tile-go { padding: 0 12px; font-size: 13px; }
.showcase-more { display: flex; justify-content: center; margin-top: 32px; }
.showcase-more .btn-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.showcase-more .btn-light:hover { background: rgba(255,255,255,.14); }
.showcase-more svg { width: 18px; height: 18px; }
@media (hover: none) {
  .slider-nav, .rail-btn { display: none !important; }
  .tile-name { opacity: 1 !important; transform: none !important; }
  .tile-go { display: none; }
}

/* плавное появление при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* полёт товара в корзину */
.fly { position: fixed; z-index: 90; pointer-events: none; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(19, 32, 48, .25); will-change: transform, opacity; }
.thumb .bump svg { animation: bump .5s var(--ease); }

/* карточка товара */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-up); }.card-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.card-pic img { position: absolute; inset: 16px 16px 4px; width: calc(100% - 32px); height: calc(100% - 20px); object-fit: contain; }
.badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 4px; }
.badge { height: 24px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; }
.badge-new { background: var(--accent); color: var(--ink); }
.badge-hit { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge-na { background: #ECEDEE; color: var(--muted); }
.card-na .card-pic img { opacity: .5; filter: grayscale(1); }
.card-info { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; flex: 1; }
.card-info h3 { font-family: var(--f); font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: 0; color: var(--ink); min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-info h3 a:hover { color: var(--brand); }
.card-info .price { font-size: 18px; margin-top: auto; }
.card-info .price.ask { font-family: var(--f); font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.add { width: 100%; min-height: 44px; border-radius: var(--r-sm); background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; }
.add:hover { background: var(--brand-2); }
.add svg { width: 18px; height: 18px; }
.add.in { background: var(--brand-soft); color: var(--brand); }
.add.ask { background: var(--bg); color: var(--ink); }
.add.ask:hover { background: #E8E9E5; }

/* услуги */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: box-shadow .3s; min-width: 0; }
.svc-card:hover { box-shadow: var(--shadow-up); }
.svc-media { position: relative; height: 232px; border-radius: var(--r-sm); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.media-photo { background: #E6EAEE; }
.media-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.media-ship { background: #6B7A55; }

/* сцена доставки: дорога + фургон отдельным слоем */
.van-scene { position: absolute; inset: 0; overflow: hidden; }
.van-stage { position: absolute; right: -10%; bottom: -6%; width: 125%; aspect-ratio: 1586 / 992; }
.media-ship .van-stage { right: -8%; bottom: -10%; width: 118%; }
.van-road { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.van-car { position: absolute; left: 40%; top: 58.97%; width: 30%; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.van-car img { width: 100%; height: auto; }
.van-car::after { content: ""; position: absolute; left: 4%; right: 3%; bottom: -4%; height: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
[data-van]:hover .van-car { transform: translateX(6%); }
[data-van].go .van-road { transform: translateX(-12%) scale(1.06); filter: blur(2px); transition-duration: .7s; }
[data-van].go .van-car { transform: translateX(320%); transition: transform .7s cubic-bezier(.55, 0, .9, .35); }
.svc-body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; flex: 1; }
.svc-body h3 { font-size: 20px; }
.svc-body p { color: var(--muted); }
.svc-body .link { margin-top: auto; padding-top: 8px; }

/* клиенты: неполный последний ряд встаёт по центру */
.logos { --cols: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos div { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); min-width: 0; aspect-ratio: 2 / 1; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid; place-items: center; padding: 16px 20px; }
.logos img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* бегущая строка партнёров на главной: логотипы в цвете, при наведении лента останавливается */
.marquee { --gap: 12px; display: flex; gap: var(--gap); overflow: hidden; padding: 8px 0 16px; margin: -8px 0 -16px;
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.marquee-track { flex: none; display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { flex: none; display: grid; place-items: center; width: 200px; height: 100px; padding: 16px 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.marquee img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden] { display: none; }
}

/* контакты */
.contact { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.contact-info h2 { font-family: var(--f); font-weight: 600; font-size: 24px; letter-spacing: 0; }
.c-row { display: grid; gap: 4px; }
.c-row span { font-size: 13px; color: var(--muted); }
.c-row b, .c-row a { font-weight: 600; color: var(--ink); font-size: 17px; }
.c-row a:hover { color: var(--brand); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; margin: 0; }
.hours dt { color: var(--muted); } .hours dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-info .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.map { display: flex; min-height: 440px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #E6E8EA; }
.map iframe { flex: 1; display: block; width: 100%; min-height: 440px; border: 0; }

/* подвал */
.foot { margin-top: clamp(48px, 6vw, 80px); background: var(--navy); color: #AFC0D0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 32px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot a:hover { color: #fff; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .mark { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.foot-brand .mark img { width: 44px; }
.foot-brand p { font-size: 15px; max-width: 280px; }
.foot-phone { font-size: 20px; font-weight: 600; color: #fff !important; font-variant-numeric: tabular-nums; }
.foot-bottom { border-top: 1px solid rgba(175, 192, 208, .16); padding: 20px 0 24px; font-size: 13px; }

/* ——— каталог ——— */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: 150px; display: grid; gap: 24px; padding: 24px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.f-group h4 { font-size: 15px; margin-bottom: 12px; }
.f-subs { display: grid; gap: 2px; }
.f-subs a { display: block; padding: 8px 12px; margin: 0 -12px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: background .2s; }
.f-subs a:hover { background: var(--bg); }
.f-subs a.is-on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.f-subs a.sub { padding-left: 28px; font-size: 14px; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-price input { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; outline: none; min-width: 0; }
.f-price input:focus { box-shadow: inset 0 0 0 2px var(--brand-soft); }
.check { display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; font-weight: 500; font-size: 15px; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #C2C7CD; display: grid; place-items: center; margin: 0; transition: background .2s; flex: none; }
.check input:checked { background: var(--brand); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.f-reset { justify-self: start; font-size: 14px; color: var(--muted); font-weight: 600; }
.f-reset:hover { color: var(--brand); }
.chips { display: none; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.chip:hover { box-shadow: inset 0 0 0 1px #C9CDD2; }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-bar .count { color: var(--muted); font-size: 15px; }
.q-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-weight: 600; max-width: 100%; }
.q-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-pill button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.q-pill button:hover { background: rgba(255,255,255,.6); }
.sort { height: 42px; padding: 0 38px 0 14px; border: 0; border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23132030' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.filter-btn { display: none; }
.filters-head { display: none; }
.filters .show-btn { display: none; }
.empty { grid-column: 1 / -1; padding: 56px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 360px; }

/* ——— товар ——— */
.item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gallery { position: sticky; top: 150px; padding: 20px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.gallery-main { position: relative; grid-column: 2; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .badges { top: 0; left: 0; }
.gallery-main img { cursor: zoom-in; }
.g-zoom { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.g-zoom:hover { background: var(--brand); color: #fff; }
.g-zoom svg { width: 18px; height: 18px; }

/* просмотр фото на весь экран */
.viewer { position: fixed; inset: 0; z-index: 90; background: #fff; overscroll-behavior: contain; }
.viewer-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.viewer.zoomed .viewer-stage { cursor: grab; }
.viewer-img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 12px 20px; pointer-events: none; }
.viewer-bar > * { pointer-events: auto; }
.viewer-count { font-weight: 600; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(242, 243, 240, .92); backdrop-filter: blur(6px); transition: background .2s; }
.viewer-btn:hover { background: #E6E8E3; }
.viewer-btn svg { width: 22px; height: 22px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-nav.prev { left: 16px; } .viewer-nav.next { right: 16px; }
.viewer.single .viewer-nav, .viewer.single .viewer-count { display: none; }
.viewer.zoomed .viewer-nav { opacity: 0; pointer-events: none; }
@media (hover: none) { .viewer-nav { display: none; } }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.gallery.single .gallery-main { grid-column: 1; }
.thumbs { grid-column: 1; grid-row: 1; display: grid; gap: 8px; align-content: start; }
.thumbs button { aspect-ratio: 1; border-radius: 12px; padding: 6px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.thumbs button.is-on { box-shadow: inset 0 0 0 2px var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.item-info { display: grid; gap: 16px; min-width: 0; }
.buy-box { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.buy-box h1 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wa-2); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.off { color: var(--muted); }
.item-price .price { font-size: clamp(28px, 2.6vw, 34px); }
.item-desc { color: var(--text); }
.item-desc a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.about { scroll-margin-top: 150px; }
.about p { color: var(--text); font-size: 15px; line-height: 1.6; }
.about p + p { margin-top: 10px; }
.item-blocks.one { grid-template-columns: minmax(0, 1fr); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy .btn-wa { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r-sm); background: var(--bg); }
.qty button { width: 44px; height: 100%; font-size: 22px; font-weight: 500; border-radius: var(--r-sm); }
.qty button:hover { background: #E8E9E5; }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.specs { padding: 24px 28px; }
.specs h2 { font-family: var(--f); font-weight: 600; font-size: 18px; letter-spacing: 0; margin-bottom: 8px; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec-row:last-child { border: 0; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.item-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ib { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg); }
.ib h3 { font-size: 16px; }
.ib p { font-size: 14px; color: var(--text); }
.ib .link { margin-top: auto; padding-top: 4px; }
.ib-logo { background: var(--brand-soft); }
.ib-ship { background: var(--accent-soft); }
.ib-ship .link { color: #B34D00; }

/* ——— услуги (страница) ——— */
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.svc-row .svc-media { height: 420px; border-radius: var(--r-lg); }
.svc-row .svc-body { padding: 36px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); gap: 16px; justify-content: center; }
.svc-row .svc-body h2 { font-size: clamp(24px, 2.4vw, 32px); }
.svc-row .svc-body p { color: var(--text); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%231F5582' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-sm); background: var(--bg); align-self: flex-start; }
.seg button { height: 40px; padding: 0 18px; border-radius: 9px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.patch-stage { position: relative; display: grid; place-items: center; height: 420px; border-radius: var(--r-lg); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.12) 0 1px, transparent 1px 4px),
    radial-gradient(90% 100% at 30% 20%, #3A5A7A, #22374D); }
.patch { position: relative; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 40px); padding: 24px 32px 24px 24px; transition: background-color .35s var(--ease), outline-color .35s var(--ease), box-shadow .35s var(--ease); }
.patch img { width: 70px; flex: none; }
.patch span { font-family: var(--f-head); font-size: clamp(18px, 2vw, 28px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; min-width: 0; line-height: 1.15; }
.emb .patch { background: #2C4865; border-radius: 16px; outline: 3px dashed rgba(230,236,242,.75); outline-offset: -10px; box-shadow: 0 12px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.14); }
.emb .patch span { color: transparent; background: repeating-linear-gradient(100deg, #F6F8FA 0 1.5px, #BCC7D1 1.5px 3px); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.dtf .patch { background: transparent; outline: 0 dashed transparent; box-shadow: none; }
.dtf .patch span { color: #fff; }
.patch-input { width: 100%; max-width: 380px; height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--bg); outline: none; }
.patch-input:focus { box-shadow: inset 0 0 0 2px var(--brand-soft); }

/* ——— поиск ——— */
.search { position: fixed; inset: 0; z-index: 60; background: rgba(19, 32, 48, .45); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.search-box { width: min(760px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-up); overflow: hidden; animation: drop .25s var(--ease); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 22px; height: 70px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 18px; outline: none; color: var(--ink); }
.search-close { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text); }
.search-results { overflow-y: auto; padding: 8px; }
.sr { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); }
.sr:hover, .sr.is-on { background: var(--bg); }
.sr img { width: 56px; height: 56px; object-fit: contain; }
.sr span { font-weight: 500; color: var(--ink); }
.sr small { display: block; color: var(--muted); font-size: 13px; }
.sr .price { font-size: 14px; }
.sr-empty { padding: 28px 20px; color: var(--muted); }
.sr-empty a { color: var(--wa-2); font-weight: 600; }
.sr-hint { padding: 16px 12px; }
.sr-hint p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sr-hint div { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-all { display: block; padding: 12px; text-align: center; color: var(--brand); font-weight: 600; }

/* ——— корзина ——— */
.cart { position: fixed; inset: 0; z-index: 70; background: rgba(19, 32, 48, .45); display: flex; justify-content: flex-end; }
.cart-panel { width: min(460px, 100%); height: 100%; height: 100dvh; background: var(--bg); display: flex; flex-direction: column; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 14px 16px 24px; background: var(--card); }
.cart-head h2 { font-size: 22px; }
.cart-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.ci { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; background: var(--card); border-radius: var(--r); align-items: center; }
.ci img { grid-row: 1 / span 3; align-self: start; width: 64px; height: 64px; object-fit: contain; }
.ci a { font-weight: 500; line-height: 1.3; color: var(--ink); font-size: 15px; align-self: start; }
.ci-del { width: 32px; height: 32px; margin: -6px -6px 0 0; align-self: start; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.ci-del:hover { background: var(--bg); color: var(--ink); }
.ci-del svg { width: 16px; height: 16px; }
.ci .size-field, .ci-bottom { grid-column: 2 / -1; }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.size-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.size-field input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 500 15px/1 var(--f); color: var(--ink); min-width: 0; }
.size-field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.ci .size-field input { height: 38px; font-size: 14px; }
.cart-ask { margin-top: -8px; font-size: 14px; color: var(--muted); }
.cart-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -4px; }
.ci .price { font-size: 14px; }
.ci .qty { height: 38px; }
.ci .qty button { width: 34px; font-size: 18px; }
.ci .qty input { width: 34px; }
.cart-sum { margin-top: auto; padding: 20px; background: var(--card); border-radius: var(--r-lg); display: grid; gap: 14px; position: sticky; bottom: 0; box-shadow: 0 -10px 30px rgba(19, 32, 48, .06); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cart-total b { font-size: 22px; }
.ship { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ship-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 4px; transition: width .4s var(--ease); }
.ship.done .ship-bar i { background: var(--wa); }
.ship b { color: var(--ink); }
.cart-empty { padding: 48px 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.cart-empty h3 { font-size: 20px; }
.cart-empty p { color: var(--muted); }
.cart-who { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: var(--r-sm); background: var(--bg); }
.cart-who button { height: 38px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.cart-who button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ——— тост ——— */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--shadow-up); transition: transform .35s var(--ease), opacity .35s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { height: 36px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.14); font-weight: 600; }

.thumb { display: none; }

/* ——— адаптив ——— */
@media (max-width: 1240px) {
  .hero { grid-template-columns: 1fr; }
  .promos { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .promo { min-height: 210px; }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .head-phone .wa-link { display: none; }
  .topline-r a:last-child { display: none; }
}
@media (max-width: 1080px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcs > :last-child { grid-column: 1 / -1; }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 10px 24px; padding: 16px 24px 16px 16px; }
  .cat-media { grid-column: 1; grid-row: 1 / span 2; min-height: 220px; }
  .cat-head { grid-column: 2; grid-row: 1; padding-top: 6px; }
  .cat-list { grid-column: 2; grid-row: 2; align-self: end; }
  .logos { --cols: 4; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .shop { grid-template-columns: 230px minmax(0, 1fr); }
  .slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }
  .topline { display: none; }
  .head { padding-bottom: 10px; }
  .head-box { border-radius: 0 0 var(--r-lg) var(--r-lg); margin: 0 calc(var(--gut) * -1); }
  .head-main { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .logo img { height: 38px; }
  .logo span { font-size: 12px; }
  .cat-toggle, .head-phone, .head-nav, .cart-btn span { display: none; }
  .cart-btn { margin-left: auto; min-width: 0; padding: 8px; }
  .search-inline { order: 3; flex: 1 0 100%; height: 46px; }
  .search-inline i { width: 46px; height: 46px; }
  .mega { display: none !important; }

  .thumb {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(19, 32, 48, .08);
  }
  .thumb > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .thumb svg { width: 24px; height: 24px; }
  .thumb .is-active { color: var(--brand); }
  .thumb i { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font: 700 11px/1 var(--f); font-style: normal; }
  .thumb i[data-zero] { display: none; }
  .thumb .thumb-wa { background: var(--wa); color: #fff; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100% - 24px); justify-content: space-between; }

  .slider { height: auto; display: grid; border-radius: var(--r-lg); }
  .slide { position: relative; grid-area: 1 / 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 250px; padding: 26px 20px 0; gap: 14px; }
  .slide-text { gap: 12px; }
  .slide-text h1, .slide-text h2 { font-size: clamp(22px, 6.4vw, 30px); }
  .slide-text p { font-size: 15px; }
  .slide-text .row .btn + .btn, .slide-text .row .link-wa { display: none; }
  .slide-pic { height: 250px; margin: 0 -20px 0; }
  .slide.photo { --pic: 210px; --base: #EEF3F8; background: var(--base); grid-template-rows: auto; align-content: start; padding-top: calc(var(--pic) + 14px); }
  .slide.photo .slide-bg { inset: 0 0 auto 0; height: var(--pic); }
  .slide.photo::before { inset: 0 0 auto 0; height: calc(var(--pic) + 1px); background: linear-gradient(180deg, transparent 62%, var(--base) 100%); }
  .slide.dark { --base: #0F1F2E; }
  .slide-1 .slide-bg { object-position: 97% 30%; }
  .slide-3 .slide-bg { object-position: 84% center; }
  .slide-2 .slide-bg { object-position: 70% 70%; }
  .slide-2 .slide-pic { position: absolute; inset: 0 0 auto 0; height: var(--pic); margin: 0; }
  .s2-a { right: 46%; bottom: 5%; height: 84%; } .s2-b { right: 8%; bottom: 5%; height: 78%; }
  .s2-prices { max-width: none; }
  .s2-price { padding: 10px 0; column-gap: 8px; }
  .s2-price + .s2-price { padding-left: 14px; }
  .s2-price .price { font-size: 16px; }
  .slide { padding-bottom: 22px; }
  .promos { grid-template-columns: minmax(0, 1fr); }
  .promo { min-height: 0; }
  .perks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .perk { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; }
  .cats, .svcs { grid-template-columns: minmax(0, 1fr); }
  .sec-sub { font-size: 15px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 88px; gap: 10px; }
  .tile-tall { grid-column: span 1; grid-row: span 4; }
  .tile-small { grid-row: span 2; }
  .tile img { inset: 42px 10px 58px; width: calc(100% - 20px); height: calc(100% - 100px); }
  .tile-tall img { bottom: 74px; height: calc(100% - 116px); }
  .tile-foot { padding: 12px; }
  .tile-name, .tile-small .tile-name { font-size: 13px; -webkit-line-clamp: 3; text-wrap: balance; }
  .showcase { border-radius: 0; }
  .cat { display: flex; padding: 16px 16px 8px; }
  .cat-list { align-self: stretch; }
  .cat-head { padding-top: 0; }
  .cat-media { min-height: 190px; }

  .rail { grid-auto-columns: calc(50% - 5px); gap: 10px; }
  .rail-btn { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gut) * 2); margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .tabs::-webkit-scrollbar { display: none; }
  .logos { --cols: 3; gap: 8px; }
  .marquee { --gap: 8px; margin: -8px calc(var(--gut) * -1) -16px; mask-image: none; }
  .marquee-track { animation-duration: 30s; }
  .marquee li { width: 148px; height: 76px; padding: 12px 16px; }
  .logos div { flex-basis: calc((100% - 16px) / 3); padding: 8px 12px; }
  .map, .map iframe { min-height: 320px; }
  .map iframe { height: 320px; }
  .foot { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }

  .shop { grid-template-columns: minmax(0, 1fr); }
  .chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 14px; padding: 0 var(--gut); }
  .chips::-webkit-scrollbar { display: none; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 65;
    max-height: 82vh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 20px var(--gut) calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(0,0,0,.2);
    transform: translateY(105%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; }
  .filters-head h4 { font-size: 20px; }
  .filters .show-btn { display: inline-flex; }
  .filters .f-cats { display: none; }
  .filter-btn { display: inline-flex; height: 42px; padding: 0 16px; align-items: center; gap: 8px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-pic img { inset: 10px 10px 2px; width: calc(100% - 20px); height: calc(100% - 12px); }
  .card-info { padding: 2px 12px 12px; gap: 8px; }
  .card-info h3 { font-size: 14px; }
  .card-info .price { font-size: 16px; }
  .add { min-height: 40px; font-size: 14px; }

  .item { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 10px; }
  .gallery-main { grid-column: 1; aspect-ratio: auto; height: min(300px, 72vw); grid-template-rows: minmax(0, 1fr); }
  .gallery-main img { min-height: 0; }
  .thumbs { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 54px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .thumbs button { padding: 4px; }
  .buy-box { gap: 14px; }
  .buy-box .item-desc { order: 5; font-size: 15px; }
  .buy-box .item-desc.has-more { display: none; }
  .buy-box > .buy, .buy-box > .size-field { order: 4; }
  .buy-box > :not(.item-desc):not(.buy):not(.size-field) { order: 1; }
  .about { scroll-margin-top: 90px; }
  .buy-box, .specs { padding: 20px; }
  .item-blocks { grid-template-columns: minmax(0, 1fr); }
  .svc-row .svc-media, .patch-stage { height: 280px; }
  .svc-row .svc-body { padding: 24px; }
  .contact-info { padding: 22px; }
}
@media (max-width: 380px) {
  .buy { grid-template-columns: minmax(0, 1fr); }
  .buy .qty { justify-content: space-between; }
  .buy-box, .specs { padding: 18px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { flex-direction: row; align-items: center; }
  .grid { gap: 8px; }
  .card-info { padding: 2px 10px 10px; }
  .add svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
.item-price .price.ask { font-size: 22px; white-space: normal; }
