/* ═══════════════════════════════════════════
   УЛОВ 100 ПУДОВ — E-COMMERCE DESIGN SYSTEM
   ═══════════════════════════════════════════ */

:root{
  /* Нейтральная палитра с рыболовным акцентом */
  --bg:          #f5f5f5;
  --surface:     #ffffff;
  --surface-2:   #f0f0f0;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  
  --border:      #e5e7eb;
  --border-dark: #d1d5db;
  
  /* Акценты */
  --primary:     #2d6a4f;
  --primary-dark:#1b4332;
  --primary-light:#d8f3dc;
  --accent:      #e76f51;
  --accent-dark: #c1121f;
  --success:     #2d6a4f;
  
  /* Геометрия */
  --radius:      6px;
  --radius-lg:   10px;
  --radius-full: 999px;
  
  /* Тени */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  
  /* Анимации */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  font-family:"IBM Plex Sans", system-ui, sans-serif;
  font-size:15px;
  line-height:1.5;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; cursor:pointer; }

h1,h2,h3{
  font-family:"Golos Text", system-ui, sans-serif;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.2;
  margin:0;
  color:var(--text);
}

.wrap{ width:min(1280px, 100% - 32px); margin-inline:auto; }

/* ── Утилиты ── */
.eyebrow{
  font-size:11px; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; color:var(--text-muted); margin:0 0 12px;
}

.price{
  font-family:"Golos Text", sans-serif; font-weight:700;
  font-size:18px; letter-spacing:-.01em; white-space:nowrap;
  font-variant-numeric: tabular-nums;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 20px; font-size:14px; font-weight:600;
  color:#fff; background:var(--primary);
  border:1px solid var(--primary); border-radius:var(--radius);
  transition:all .2s var(--ease);
}
.btn:hover{ background:var(--primary-dark); border-color:var(--primary-dark); }
.btn:active{ transform:scale(0.98); }
.btn--full{ width:100%; }

.btn-catalog {
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px;
  font-size:13.5px; font-weight:600; color:#fff;
  background:var(--primary); border-radius:var(--radius);
  transition:background .2s; margin-left:16px;
}
.btn-catalog:hover { background:var(--primary-dark); }
.btn-catalog svg { width:18px; height:18px; }

.tag{
  position:absolute; top:10px; left:10px; padding:3px 8px;
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:#fff; background:var(--accent); border-radius:var(--radius);
  z-index:2;
}
.tag--new{ background:var(--primary); }

/* ═══ Топбар ═══ */
.topbar{ background:var(--primary-dark); color:rgba(255,255,255,.8); font-size:12.5px; }
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; }
.topbar__note{ margin:0; }
.topbar__phone{ font-weight:600; color:#fff; white-space:nowrap; transition:opacity .2s; }
.topbar__phone:hover{ opacity:.8; }

/* ═══ Шапка ═══ */
.header{
  position:sticky; top:0; z-index:60;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.header__inner{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center; gap:clamp(16px, 3vw, 40px); padding:12px 0;
}

.header__brand { display:flex; align-items:center; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo__img { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; }
.logo__text{ display:flex; flex-direction:column; line-height:1; }
.logo__top{
  font-family:"Golos Text", sans-serif; font-size:10px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--text-muted);
}
.logo__bottom{
  font-family:"Golos Text", sans-serif; font-size:17px; font-weight:800;
  letter-spacing:-.02em; color:var(--text); margin-top:2px;
}

.search{
  display:flex; align-items:center; gap:8px; height:42px;
  padding:0 4px 0 12px; background:var(--surface-2);
  border:1px solid var(--border); border-radius:var(--radius);
  transition:border-color .2s, box-shadow .2s;
}
.search:focus-within{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(45,106,79,.1); }
.search__icon{ width:18px; height:18px; color:var(--text-light); flex:none; }
.search__input{
  flex:1; min-width:0; background:transparent; border:0; outline:0;
  font:inherit; font-size:14px; color:var(--text);
}
.search__input::placeholder{ color:var(--text-light); }
.search__btn{
  height:32px; padding:0 14px; font-size:13px; font-weight:600;
  color:#fff; background:var(--primary); border:0; border-radius:var(--radius);
  transition:background .2s;
}
.search__btn:hover{ background:var(--primary-dark); }

.header__actions{ display:flex; align-items:center; gap:12px; }

/* Обновленный стиль для VK иконки в шапке (синий фон, белый логотип) */
.vk {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: #0077FF; /* Фирменный синий цвет VK */
  border: 1px solid #0077FF; border-radius: var(--radius);
  color: #fff;
  transition: all .2s var(--ease);
}
.vk:hover {
  background: #0066DD;
  border-color: #0066DD;
  transform: translateY(-1px);
}
.vk svg {
  width: 22px; height: 22px;
}

/* Стиль для текстовых ссылок с иконкой (в контактах, футере и моб. меню) */
.vk-text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
  transition: color .2s;
}
.vk-text-link:hover { color: var(--primary); }
.vk-text-link .vk-icon-bg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; background: #0077FF; border-radius: 4px;
  color: #fff; flex: none;
}
.vk-text-link .vk-icon-bg svg { width: 14px; height: 14px; }

.cart-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius);
  transition:all .2s var(--ease);
}
.cart-btn:hover{ border-color:var(--primary); background:var(--surface-2); }
.cart-btn svg{ width:20px; height:20px; color:var(--text); }
.cart-btn__count{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px;
  padding:0 5px; display:grid; place-items:center;
  font-size:10px; font-weight:700; color:#fff;
  background:var(--accent); border-radius:var(--radius-full);
}

.burger{
  display:none; width:42px; height:42px; padding:0;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.burger span{ display:block; width:18px; height:1.5px; background:var(--text); transition:transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

/* ═══ Навигация ═══ */
.nav{
  background:var(--surface); border-bottom:1px solid var(--border);
  position:sticky; top:65px; z-index:55;
}
.nav__inner{
  display:flex; gap:clamp(16px, 2.5vw, 32px); overflow-x:auto;
  scrollbar-width:none; padding:10px 0;
}
.nav__inner::-webkit-scrollbar{ display:none; }
.nav__inner a{
  font-size:14px; font-weight:500; white-space:nowrap; color:var(--text-muted);
  padding-bottom:2px; border-bottom:2px solid transparent;
  transition:color .2s, border-color .2s;
}
.nav__inner a:hover{ color:var(--primary); border-color:var(--primary); }

/* ═══ Первый экран ═══ */
.hero{
  display:grid; grid-template-columns:1.1fr .9fr;
  gap:clamp(24px, 4vw, 48px); align-items:start;
  padding:clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px);
}
.hero h1{ font-size:clamp(34px, 4.5vw, 56px); margin-bottom:20px; }
.hero h1 .mark{ position:relative; display:inline-block; color:var(--primary); }
.hero h1 .mark::after{
  content:""; position:absolute; left:-2px; right:-2px; bottom:.04em; height:.14em;
  background:var(--accent); opacity:.3; z-index:-1;
}
.hero__lead{
  max-width:48ch; margin:0 0 28px; font-size:16px; line-height:1.6; color:var(--text-muted);
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.hero__facts{
  display:flex; flex-wrap:wrap; gap:clamp(20px, 3vw, 40px); margin:0;
  padding-top:20px; border-top:1px solid var(--border);
}
.hero__facts div{ display:flex; flex-direction:column; }
.hero__facts dt{
  font-family:"Golos Text", sans-serif; font-size:20px; font-weight:800; letter-spacing:-.02em; color:var(--primary);
}
.hero__facts dd{ margin:2px 0 0; font-size:12.5px; color:var(--text-muted); }

.hero__grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hero__grid .mini:nth-child(even){ transform:translateY(20px); }

/* ── Мини-карточка ── */
.mini{
  display:flex; flex-direction:column; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:box-shadow .2s, border-color .2s;
}
.mini:hover{ border-color:var(--border-dark); box-shadow:var(--shadow-md); }
.mini__media{
  position:relative; aspect-ratio:1 / .9; background:var(--surface-2);
  border-bottom:1px solid var(--border); padding:12px;
  display:flex; align-items:center; justify-content:center;
}
.mini__media a { display:block; width:100%; height:100%; }
.mini__media img { 
  width:100%; height:100%; object-fit:contain; 
  transition: transform .3s var(--ease);
}
.mini:hover .mini__media img { transform:scale(1.04); }
.mini__brand{
  margin:10px 12px 0; font-size:10px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; color:var(--text-light);
}
.mini__title{
  margin:2px 12px 0; font-size:13.5px; font-weight:600; line-height:1.3;
}
.mini__foot{
  margin:auto 12px 12px; padding-top:10px;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.mini__foot .price{ font-size:15px; }

.btn-add{
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 12px; font-size:12.5px; font-weight:600;
  color:var(--text); background:transparent; border:1px solid var(--border-dark);
  border-radius:var(--radius); transition:all .2s var(--ease); white-space:nowrap;
}
.btn-add:hover{ background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-add:active{ transform:scale(0.97); }
.btn-add--icon{ width:32px; height:32px; padding:0; }
.btn-add--icon svg{ width:15px; height:15px; }

/* ═══ Секции ═══ */
.section{ padding-block:clamp(32px, 4vw, 56px); }
.section--tight{ padding-block:clamp(24px, 3vw, 40px); }
.section__head{
  display:flex; align-items:baseline; justify-content:space-between;
  flex-wrap:wrap; gap:8px 16px; padding-bottom:12px; margin-bottom:24px;
  border-bottom:1px solid var(--border);
}
.section__title{ font-size:clamp(22px, 2.8vw, 28px); }
.section__note{ margin:0; font-size:13px; color:var(--text-muted); }
.section__link{
  font-size:13.5px; font-weight:600; color:var(--primary);
  border-bottom:1px solid var(--primary); padding-bottom:1px;
  transition:opacity .2s;
}
.section__link:hover{ opacity:.7; }

/* ═══ МЕГА-КАТАЛОГ ═══ */
.catalog-masonry { column-count: 4; column-gap: 16px; }
.cat-block {
  break-inside: avoid; margin-bottom: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: box-shadow .2s;
}
.cat-block:hover { box-shadow: var(--shadow-sm); }
.cat-block__title {
  display: flex; align-items: center; gap: 10px;
  font-family: "Golos Text", sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.cat-block__title svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.cat-block__title a { display: flex; align-items: center; gap: 10px; color: inherit; transition: color 0.2s; }
.cat-block__title a:hover { color: var(--primary); }
.cat-block__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-block__list a { font-size: 13.5px; color: var(--text-muted); transition: color 0.2s, padding-left 0.2s var(--ease); display: inline-block; }
.cat-block__list a:hover { color: var(--primary); padding-left: 3px; }

/* ═══ Сетка товаров ═══ */
.grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }

.card{
  display:flex; flex-direction:column; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:box-shadow .2s, border-color .2s;
}
.card:hover{ border-color:var(--border-dark); box-shadow:var(--shadow-md); }
.card__media{
  position:relative; aspect-ratio:4 / 3; background:var(--surface-2);
  border-bottom:1px solid var(--border); padding:12px;
  display:flex; align-items:center; justify-content:center;
}
.card__media a { display:block; width:100%; height:100%; }
.card__media img { 
  width:100%; height:100%; object-fit:contain; 
  transition: transform .3s var(--ease);
}
.card:hover .card__media img { transform:scale(1.03); }
.card__body{ display:flex; flex-direction:column; flex:1; padding:12px 14px 14px; }
.card__brand{ margin:0 0 4px; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-light); }
.card__title{ font-size:14px; font-weight:600; line-height:1.3; margin:0 0 6px; }
.card__spec{ margin:0; font-size:12.5px; line-height:1.4; color:var(--text-muted); }
.card__foot{ margin-top:auto; padding-top:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* ═══ Отзывы ═══ */
.reviews{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:16px; align-items:start; }
.review{ padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
.review--lead{ background:var(--surface-2); border-color:var(--border-dark); padding:24px 22px; }
.stars{ display:flex; gap:2px; margin-bottom:12px; color:var(--accent); }
.stars svg{ width:14px; height:14px; }
.review__text{ margin:0 0 12px; font-size:14px; line-height:1.6; color:var(--text); }
.review--lead .review__text{ font-family:"Golos Text", sans-serif; font-size:18px; font-weight:500; line-height:1.5; }
.review__author{ margin:0; font-size:12.5px; font-weight:600; }
.review__author span{ font-weight:400; color:var(--text-muted); }

/* ═══ Контакты ═══ */
.contacts{ display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(24px, 3vw, 48px); align-items:start; }
.contacts__list{ display:grid; gap:20px; margin:0 0 24px; }
.contacts__list > div{ padding-bottom:14px; border-bottom:1px solid var(--border); }
.contacts__list dt{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-light); margin-bottom:4px; }
.contacts__list dd{ margin:0; font-size:15px; line-height:1.5; }
.contacts__list dd span{ color:var(--text-muted); font-size:13px; }
.contacts__list a:not(.vk-text-link){ border-bottom:1px solid var(--border); transition:border-color .2s, color .2s; }
.contacts__list a:not(.vk-text-link):hover{ color:var(--primary); border-color:var(--primary); }

.map{ 
  position:relative; 
  min-height:clamp(320px, 36vw, 420px); 
  border:1px solid var(--border); 
  border-radius:var(--radius); 
  overflow:hidden; 
  background:var(--surface-2); 
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__art{ position:absolute; inset:0; width:100%; height:100%; }
.map__pin{ position:absolute; top:44%; left:47%; display:grid; place-items:center; width:38px; height:38px; color:#fff; background:var(--accent); border-radius:50% 50% 50% 2px; transform:translate(-50%,-50%) rotate(-45deg); box-shadow:0 4px 12px rgba(0,0,0,.2); }
.map__pin svg{ width:20px; height:20px; transform:rotate(45deg); }
.map__label{ position:absolute; left:12px; bottom:12px; padding:6px 12px; font-size:12px; font-weight:600; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }

/* ═══ Футер ═══ */
.footer{ margin-top:clamp(32px, 4vw, 56px); background:var(--primary-dark); color:#c8d3c5; }
.footer__inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.1fr; gap:clamp(20px, 3vw, 40px); padding-block:clamp(32px, 4vw, 48px); }
.footer__logo{ font-family:"Golos Text", sans-serif; font-size:20px; font-weight:800; letter-spacing:-.02em; color:#fff; margin:0 0 10px; }
.footer__text{ margin:0 0 16px; font-size:13px; line-height:1.5; color:#96a894; max-width:36ch; }
.footer__col{ display:flex; flex-direction:column; gap:8px; }
.footer__head{ margin:0 0 6px; font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#7f947d; }
.footer__col a{ font-size:13.5px; color:#c8d3c5; width:fit-content; transition:color .2s; }
.footer__col a:hover{ color:#fff; }
.footer__hours{ margin:6px 0 0; font-size:12.5px; color:#96a894; line-height:1.5; }
.footer__bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; padding:16px 0 24px; border-top:1px solid #24402f; font-size:12px; color:#7f947d; }
.footer__bottom p{ margin:0; }

/* Переопределяем цвет текста для ссылки ВК в футере на светлый */
.footer .vk-text-link { color: #dfe8dc; }
.footer .vk-text-link:hover { color: #fff; }

/* ═══ Корзина ═══ */
.overlay{ position:fixed; inset:0; z-index:900; background:rgba(0,0,0,.4); opacity:0; transition:opacity .3s var(--ease); }
.overlay.is-open{ opacity:1; }

.cart{ position:fixed; top:0; right:0; z-index:1000; width:min(420px, 100%); height:100dvh; display:flex; flex-direction:column; background:var(--surface); border-left:1px solid var(--border); transform:translateX(101%); transition:transform .3s var(--ease); box-shadow:-4px 0 20px rgba(0,0,0,.08); }
.cart.is-open{ transform:translateX(0); }
.cart__head{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.cart__title{ font-size:18px; display:flex; align-items:center; gap:8px; }
.cart__count{ display:grid; place-items:center; min-width:22px; height:22px; padding:0 6px; font-family:"IBM Plex Sans", sans-serif; font-size:11px; font-weight:700; color:#fff; background:var(--primary); border-radius:var(--radius-full); }
.cart__close{ width:32px; height:32px; display:grid; place-items:center; background:transparent; border:1px solid var(--border); border-radius:var(--radius); cursor:pointer; transition:all .2s; }
.cart__close:hover{ border-color:var(--text); background:var(--surface-2); }
.cart__close svg{ width:16px; height:16px; }

.cart__body{ flex:1; overflow-y:auto; padding:16px 20px; }
.cart__empty{ margin:0; padding:32px 0; font-size:13.5px; line-height:1.5; color:var(--text-muted); text-align:center; }
.cart__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.cart-item{ display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.cart-item__name{ margin:0 0 2px; font-size:13.5px; font-weight:600; line-height:1.3; }
.cart-item__price{ margin:0; font-size:12.5px; color:var(--text-muted); }
.qty{ display:flex; align-items:center; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.qty button{ width:26px; height:28px; display:grid; place-items:center; background:transparent; border:0; font-size:15px; cursor:pointer; transition:background .15s; }
.qty button:hover{ background:var(--surface-2); }
.qty span{ min-width:26px; text-align:center; font-size:12.5px; font-weight:600; }
.cart-item__remove{ width:26px; height:28px; display:grid; place-items:center; background:transparent; border:0; font-size:17px; color:var(--text-light); cursor:pointer; transition:color .15s; }
.cart-item__remove:hover{ color:var(--accent-dark); }

.cart__form{ padding:16px 20px 20px; border-top:1px solid var(--border); background:var(--surface-2); overflow-y:auto; max-height:60dvh; }
.cart--empty .cart__form{ display:none; }
.cart__summary{ margin-bottom:16px; }
.cart__row{ display:flex; justify-content:space-between; gap:10px; font-size:13.5px; color:var(--text-muted); padding:3px 0; }
.cart__row--total{ margin-top:6px; padding-top:10px; border-top:1px solid var(--border); font-size:15px; font-weight:600; color:var(--text); }
.cart__row--total span:last-child{ font-family:"Golos Text", sans-serif; font-size:20px; font-weight:800; letter-spacing:-.02em; }

.field{ display:block; margin-bottom:12px; }
.field > span{ display:block; margin-bottom:4px; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.field input, .field textarea{ width:100%; padding:10px 12px; font:inherit; font-size:14px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); outline:0; resize:vertical; transition:border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(45,106,79,.1); }
.field input.is-invalid{ border-color:var(--accent); }

.cart__note{ margin:0 0 12px; font-size:11.5px; line-height:1.5; color:var(--text-light); }
.cart__status{ margin:10px 0 0; font-size:13px; font-weight:500; min-height:1em; text-align:center; }
.cart__status.is-error{ color:var(--accent-dark); }
.cart__status.is-ok{ color:var(--success); }

/* ═══ Мобильное меню ═══ */
.mobile-menu{ position:fixed; inset:0 0 0 auto; z-index:1000; width:min(340px, 90%); display:flex; flex-direction:column; background:var(--surface); border-left:1px solid var(--border); transform:translateX(101%); transition:transform .3s var(--ease); overflow-y:auto; box-shadow:-4px 0 20px rgba(0,0,0,.08); }
.mobile-menu.is-open{ transform:translateX(0); }
.mobile-menu__head{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.mobile-menu__head p{ margin:0; color:var(--text); font-weight:700; }
.mobile-menu__head button{ width:32px; height:32px; display:grid; place-items:center; background:transparent; border:1px solid var(--border); border-radius:var(--radius); cursor:pointer; }
.mobile-menu__head svg{ width:16px; height:16px; }
.mobile-menu__nav{ display:flex; flex-direction:column; padding:8px 0; }
.mobile-menu__nav a{ padding:14px 20px; font-family:"Golos Text", sans-serif; font-size:16px; font-weight:600; border-bottom:1px solid var(--border); transition:background .2s; }
.mobile-menu__nav a:hover, .mobile-menu__nav a:active{ background:var(--surface-2); }
.mobile-menu__foot{ margin-top:auto; padding:20px; display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:var(--text-muted); border-top:1px solid var(--border); }
.mobile-menu__foot a:first-child{ font-family:"Golos Text", sans-serif; font-size:18px; font-weight:800; color:var(--text); letter-spacing:-.02em; }
.mobile-menu__foot p{ margin:0; font-size:12.5px; }

/* ═══ Пагинация ═══ */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--border); grid-column: 1 / -1; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all .2s var(--ease); cursor: pointer; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination-dots { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; font-size: 14px; font-weight: 600; color: var(--text-light); }

/* ═══════════════════════════════════════════
   Страница категории
   ═══════════════════════════════════════════ */
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumbs a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.breadcrumbs a:hover { color: var(--primary); border-color: var(--primary); }
.category-header { margin-bottom: 32px; }
.category-header__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.category-title { font-size: 32px; margin: 0; }
.category-sort { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--radius); border: 1px solid var(--border); }
.btn-sort { padding: 6px 14px; font-size: 13px; font-weight: 500; background: transparent; border: none; border-radius: 4px; cursor: pointer; transition: all .2s; color: var(--text-muted); }
.btn-sort:hover { color: var(--text); }
.btn-sort.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 12px; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }
.filter-group { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-title { font-family: "Golos Text", sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-size: 13.5px; color: var(--text-muted); transition: color .2s; }
.filter-checkbox:hover { color: var(--text); }
.filter-checkbox input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--border-dark); border-radius: 4px; background: var(--surface); cursor: pointer; position: relative; transition: all .2s; flex: none; }
.filter-checkbox input:checked { background: var(--primary); border-color: var(--primary); }
.filter-checkbox input:checked::after { content: ""; position: absolute; top: 3px; left: 6px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-checkbox span { flex: 1; display: flex; justify-content: space-between; }
.filter-checkbox i { color: var(--text-light); font-style: normal; font-size: 12px; }
.filter-more { background: transparent; border: none; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; padding: 0; margin-top: 6px; border-bottom: 1px solid var(--primary); }

.products-area { display: flex; flex-direction: column; gap: 12px; }
.product-row { display: grid; grid-template-columns: 160px 1fr 180px; gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; transition: box-shadow .2s; }
.product-row:hover { box-shadow: var(--shadow-md); }
.product-row__img { display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius); padding: 12px; }
.product-row__img img { max-height: 120px; object-fit: contain; transition: transform .3s var(--ease); }
.product-row:hover .product-row__img img { transform: scale(1.05); }
.product-row__info { display: flex; flex-direction: column; justify-content: center; }
.product-row__title { font-family: "Golos Text", sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); margin-bottom: 6px; transition: color .2s; }
.product-row__title:hover { color: var(--primary); }
.product-row__sku { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.product-row__specs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 12.5px; color: var(--text-muted); }
.product-row__buy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; }
.product-row__availability { font-size: 12px; color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 2px rgba(45,106,79,.2); }
.product-row__price-box { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 12px 0; }
.product-row__price-box .price { font-size: 22px; }

/* ═══════════════════════════════════════════
   Страница товара
   ═══════════════════════════════════════════ */
.product-main { display: grid; grid-template-columns: minmax(300px, 1fr) 1.2fr 320px; gap: 32px; margin-bottom: 48px; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery__main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product-gallery__main img { max-width: 100%; max-height: 380px; object-fit: contain; }
.product-gallery__thumbs { display: flex; gap: 10px; }
.product-gallery__thumb { width: 64px; height: 64px; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; cursor: pointer; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.product-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery__thumb.is-active { border-color: var(--primary); }
.product-info__title { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.product-info__sku { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.short-specs { display: grid; gap: 8px; font-size: 14.5px; margin-bottom: 24px; }
.short-specs__row { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--border-dark); padding-bottom: 4px; }
.short-specs__name { color: var(--text-muted); }
.short-specs__val { font-weight: 500; text-align: right; }
.short-specs__val a { color: var(--primary); border-bottom: 1px solid var(--primary); }
.link-all-specs { display: inline-block; font-size: 14px; color: var(--primary); border-bottom: 1px solid var(--primary); font-weight: 500; margin-bottom: 24px; transition: opacity .2s; }
.link-all-specs:hover { opacity: 0.7; }
.product-buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: fit-content; position: sticky; top: 100px; box-shadow: var(--shadow-sm); }
.product-buy__price { font-family: "Golos Text", sans-serif; font-size: 30px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.product-buy__status { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 500;}
.product-buy__tags { display: flex; gap: 6px; margin-bottom: 20px; }
.product-buy__tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.product-buy .btn { width: 100%; padding: 14px; font-size: 15px; }

/* ═══════════════════════════════════════════
   Бренды
   ═══════════════════════════════════════════ */
.brands-alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.brand-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; transition: all 0.2s var(--ease); }
.brand-letter:hover { border-color: var(--primary); color: var(--primary); }
.brand-letter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.brand-card { display: flex; align-items: center; justify-content: center; height: 110px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s var(--ease); }
.brand-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; transition: all 0.2s var(--ease); }
.brand-card:hover img { transform: scale(1.05); }
.brand-card__fallback { font-family: "Golos Text", sans-serif; font-size: 20px; font-weight: 800; color: var(--text); text-align: center; letter-spacing: -0.02em; }
.brands-home { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
.brands-home__item { width: 130px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; transition: all 0.2s var(--ease); }
.brands-home__item:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.brands-home__item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ═══════════════════════════════════════════
   Адаптивность
   ═══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .catalog-masonry { column-count: 3; }
  .grid{ grid-template-columns:repeat(3, 1fr); }
  .reviews{ grid-template-columns:1fr 1fr; }
  .review--lead{ grid-column:1 / -1; }
  .footer__inner{ grid-template-columns:1.4fr 1fr 1fr; }
  .footer__col:last-child{ grid-column:1 / -1; }
}

@media (max-width:900px){
  .wrap{ width:calc(100% - 24px); }
  .header__inner{ grid-template-columns:1fr auto; grid-template-areas: "brand actions" "search search"; gap:10px; padding:10px 0; }
  .header__brand { grid-area: brand; }
  .search{ grid-area: search; height:40px; }
  .header__actions{ grid-area: actions; }
  .vk{ display:none; } /* Скрываем иконку ВК в шапке на мобильных, так как она есть в бургер-меню */
  .burger{ display:flex; }
  .nav{ top:0; position:static; }
  .hero{ grid-template-columns:1fr; gap:32px; }
  .hero__grid{ grid-template-columns:1fr 1fr; }
  .hero__grid .mini:nth-child(even){ transform:none; }
  .catalog-masonry { column-count: 2; column-gap: 12px; }
  .cat-block { margin-bottom: 12px; padding: 16px; }
  .contacts{ grid-template-columns:1fr; }
  .map{ min-height:260px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; display: none; }
  .product-row { grid-template-columns: 120px 1fr; }
  .product-row__buy { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .product-row__price-box { align-items: flex-start; flex-direction: row; align-items: baseline; gap: 8px; margin: 0; }
  .product-row__buy .btn { width: auto; padding: 8px 20px; }
}

@media (max-width:720px){
  .grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .card__spec{ display:none; }
  .card__body{ padding:10px 12px 12px; }
  .card__title{ font-size:13px; }
  .price{ font-size:16px; }
  .btn-add{ padding:6px 10px; font-size:12px; }
  .btn-add--icon{ width:30px; height:30px; }
  .reviews{ grid-template-columns:1fr; }
  .footer__inner{ grid-template-columns:1fr 1fr; gap:24px; }
  .footer__brand{ grid-column:1 / -1; }
  .footer__col:last-child{ grid-column:1 / -1; }
  .footer__bottom{ flex-direction:column; }
  .topbar__note{ display:none; }
  .topbar__inner{ justify-content:center; }
  .btn-catalog { margin-left: 10px; padding: 7px 12px; }
  .btn-catalog span { display: none; }
  .product-row { grid-template-columns: 1fr; }
  .product-row__img { height: 180px; }
  .product-row__specs { grid-template-columns: 1fr; }
  .product-row__buy { flex-wrap: wrap; gap: 12px; justify-content: space-between; }
}

@media (max-width:460px){
  .wrap{ width:calc(100% - 16px); }
  .hero h1{ font-size:30px; }
  .hero__facts{ gap:16px; }
  .hero__facts dt{ font-size:17px; }
  .hero__actions .btn{ flex:1; padding:10px; font-size:13.5px; }
  .section__head{ gap:6px; }
  .cart-item{ grid-template-columns:1fr auto; }
  .cart-item__remove{ grid-column:2; }
  .cart__form{ max-height:56dvh; }
  .catalog-masonry { column-count: 1; }
  .product-main { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
}

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

/* ═══════════════════════════════════════════
   Текстовые страницы (Доставка, Возврат и т.д.)
   ═══════════════════════════════════════════ */
.text-page {
  max-width: 840px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.text-page h1 {
  font-size: 32px;
  margin-bottom: 24px;
}
.text-page h2 {
  font-family: "Golos Text", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text);
}
.text-page p {
  margin: 0 0 16px;
}
.text-page ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.text-page li {
  margin-bottom: 8px;
}
.text-page .highlight-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   Модальное окно успешного заказа
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.modal-content {
  background: var(--surface);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  width: min(440px, 90%);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}
.modal-overlay.is-open .modal-content {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 72px; height: 72px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.modal-icon svg { width: 36px; height: 36px; }
.modal-title {
  font-size: 26px; margin-bottom: 12px;
}
.modal-text {
  font-size: 15.5px; color: var(--text-muted);
  margin-bottom: 28px; line-height: 1.6;
}

/* ═══ Кастомные радиокнопки в корзине ═══ */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start; /* Прижимаем всё влево */
  gap: 10px; /* Расстояние между кружком и текстом */
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  margin: 0;
}

/* Текст рядом с кнопкой */
.radio-label span {
  flex: 1;
  text-align: left;
}

/* Сама радиокнопка */
.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex: none; /* Запрещаем сжиматься */
  margin: 0; /* Убираем дефолтные отступы */
  padding: 0;
  transition: border-color .2s;
}

/* Активное состояние (выбрано) */
.radio-label input[type="radio"]:checked {
  border-color: var(--primary);
}

/* Внутренняя точка при выборе */
.radio-label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}