/* ==========================================================================
   Ubiquiti.ru — главная страница
   Палитра сохранена с действующего сайта:
   фон #2d3240 · панели #383f52 / #353b4c / #32384a · подвал #313644
   линии #3a4154 · акцент #27b0e4 / #00a3e1 / #1f90bb · покупка #24ad34
   метки: хит #ff7104 · новинка #15be5b
   ========================================================================== */

:root {
  --bg: #2d3240;
  --bg-deep: #272c38;
  --surface: #353b4c;
  --surface-2: #383f52;
  --surface-3: #32384a;
  --surface-hi: #414960;
  --footer: #313644;
  --line: #3a4154;
  --line-2: #4d5670;

  --text: #ffffff;
  --text-2: #bfc7db;
  --text-3: #a2a7b6;
  --muted: #8a9ab3;

  --accent: #27b0e4;
  --accent-2: #00a3e1;
  --accent-dark: #1f90bb;
  --accent-light: #49ccff;
  --green: #24ad34;
  --green-dark: #05a317;
  --green-light: #62d666;
  --hit: #ff7104;
  --new: #15be5b;
  --field: #e3e7f1;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 12px 32px -14px rgba(9, 24, 35, .55);
  --shadow-lg: 0 32px 64px -28px rgba(9, 24, 35, .8);

  --container: 1360px;
  --gutter: clamp(16px, 3vw, 32px);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Manrope', var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 88% -120px, rgba(39, 176, 228, .13), transparent 62%),
    radial-gradient(800px 420px at -10% 240px, rgba(39, 176, 228, .06), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
kbd {
  font: 600 11px/1 var(--font);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
}

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-2); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--accent-2); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 14px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn--sm .icon { width: 18px; height: 18px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }

.btn--primary { background: var(--accent-2); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 163, 225, .9); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--green { background: linear-gradient(180deg, #3cc04b 0%, var(--green) 100%); color: #fff; box-shadow: 0 10px 22px -12px rgba(36, 173, 52, .9); }
.btn--green:hover { background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%); }
.btn--green.is-added { background: var(--surface-hi); box-shadow: none; }

.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }

.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { background: var(--field); }

.btn--glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Метки и чипы ---------- */
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid currentColor;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge--hit { color: var(--hit); background: rgba(255, 113, 4, .12); }
.badge--new { color: var(--new); background: rgba(21, 190, 91, .12); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { color: #fff; border-color: var(--accent); background: rgba(39, 176, 228, .14); }
.chip .icon { width: 16px; height: 16px; }
.chip--sm { height: 28px; padding: 0 11px; font-size: 13px; }
.chip--lg { height: 46px; padding: 0 18px; font-size: 15px; }
.chip--lg .icon { width: 18px; height: 18px; color: var(--accent); }
.chip--accent { color: #fff; border-color: transparent; background: var(--accent-2); }
.chip--accent:hover { background: var(--accent-dark); border-color: transparent; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.tag-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s;
}
.tag-link .icon { width: 16px; height: 16px; }
.tag-link--sale { color: var(--hit); }
.tag-link--sale:hover { background: rgba(255, 113, 4, .14); }
.tag-link--new { color: var(--new); }
.tag-link--new:hover { background: rgba(21, 190, 91, .14); }
.tag-link--hit { color: var(--accent-light); }
.tag-link--hit:hover { background: rgba(39, 176, 228, .16); }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.topbar__nav { display: flex; align-items: center; gap: 2px; margin-left: -10px; }
.topbar__link { padding: 6px 10px; border-radius: 8px; color: var(--text-2); transition: color .2s, background-color .2s; }
.topbar__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topbar__contacts { display: flex; align-items: center; gap: 20px; color: var(--text-2); white-space: nowrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--accent); }
a.topbar__item:hover { color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(56, 63, 82, .9);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 16px 36px -20px rgba(9, 24, 35, .9); }
.header__main { display: flex; align-items: center; gap: 20px; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo__tag { margin-top: 4px; font-size: 11px; color: var(--text-3); letter-spacing: .02em; }

.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); flex: none; }
.burger .icon { width: 22px; height: 22px; }

.catalog-btn { height: 48px; flex: none; }
.catalog-btn.is-open { background: var(--accent-dark); }

.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.search__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; height: 48px; padding: 0 128px 0 46px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); color: #fff; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search__input::placeholder { color: var(--muted); }
.search__input:hover { border-color: #5d6886; }
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(39, 176, 228, .18); background: var(--bg-deep); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__kbd { position: absolute; right: 92px; }
.search__btn {
  position: absolute; right: 5px; height: 38px; padding: 0 16px;
  border-radius: 10px; background: var(--surface-hi); color: #fff; font-weight: 600; font-size: 14px;
  transition: background-color .2s;
}
.search__btn:hover { background: var(--accent-2); }

.header__phone { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.2; }
.header__phone-num { font-family: var(--font-head); font-weight: 700; font-size: 17px; white-space: nowrap; }
.header__phone-num:hover { color: var(--accent-light); }
.header__phone-link { margin-top: 4px; font-size: 12.5px; color: var(--accent); border-bottom: 1px dashed rgba(39, 176, 228, .5); }
.header__phone-link:hover { color: var(--accent-light); }

.header__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 64px; padding: 8px 8px 6px; border-radius: 12px;
  color: var(--text-2); font-size: 11.5px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.action:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.action__icon, .tabbar__icon { position: relative; display: block; }
.action__icon .icon { width: 22px; height: 22px; }
.action__count {
  position: absolute; top: -7px; right: -11px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--accent-2); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface-2);
}
.action__count.is-empty { display: none; }

/* Навигация по категориям */
.catnav { border-top: 1px solid rgba(255, 255, 255, .05); }
.catnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 50px; }
.catnav__list {
  display: flex; align-items: center; gap: 2px; margin-left: -12px; padding-right: 28px; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__link { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: color .2s, background-color .2s; }
.catnav__link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.catnav__promo { display: flex; align-items: center; gap: 2px; flex: none; margin-right: -12px; }

/* Мега-меню */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 140px); overflow: auto;
  animation: drop .25s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; padding-block: 32px 24px; }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.mega__title .icon { color: var(--accent); margin-top: 1px; width: 18px; height: 18px; }
.mega__title:hover { color: var(--accent-light); }
.mega__link { padding: 5px 0 5px 28px; color: var(--text-2); font-size: 14px; transition: color .2s, transform .2s var(--ease); }
.mega__link:hover { color: #fff; transform: translateX(3px); }
.mega__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px 28px; border-top: 1px solid var(--line); }
.mega__more-label { margin-right: 8px; color: var(--text-3); font-size: 13px; }

/* ---------- Первый экран ---------- */
.hero { padding-block: 24px 12px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 20px; }

.slider {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 540px; display: flex;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(620px 420px at 78% 42%, rgba(39, 176, 228, .32), transparent 65%),
    radial-gradient(520px 360px at 8% 110%, rgba(39, 176, 228, .12), transparent 60%),
    linear-gradient(135deg, var(--surface-hi) 0%, var(--surface-3) 100%);
  box-shadow: var(--shadow-lg);
}
.slider::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
}
.slider__track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 16px;
  padding: clamp(24px, 4vw, 48px); padding-bottom: 96px;
}
.slide__content { min-width: 0; container-type: inline-size; }
.slide__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; }
.slide__sku { padding: 3px 9px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--text-2); font-weight: 600; letter-spacing: .04em; }
.slide__cat { color: var(--accent-light); font-weight: 600; }
.slide__title { font-size: clamp(2.1rem, 4.3vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.slide__text { max-width: 46ch; margin-top: 16px; color: var(--text-2); font-size: clamp(15px, 1.2vw, 17px); }

.specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 16px 0; margin-top: 28px; }
.spec { display: flex; flex-direction: column; padding-inline: 18px; border-left: 1px solid rgba(255, 255, 255, .14); }
.spec:first-child { padding-left: 0; border-left: 0; }
@container (max-width: 440px) {
  .specs { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .spec { padding-inline: 22px; }
  .spec:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.spec__val { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.spec__label { margin-top: 4px; color: var(--text-3); font-size: 13px; white-space: nowrap; }

.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.slide__media { position: relative; display: grid; place-items: center; }
.slide__media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 204, 255, .38) 0%, rgba(39, 176, 228, .12) 45%, transparent 70%);
  filter: blur(8px);
}
.slide__media img {
  position: relative; width: min(100%, 470px);
  filter: drop-shadow(0 36px 44px rgba(9, 24, 35, .6));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.slider__nav { position: absolute; left: clamp(24px, 4vw, 48px); right: clamp(24px, 4vw, 48px); bottom: 28px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.slider__nav > * { pointer-events: auto; }
.slider__dots { display: flex; align-items: center; gap: 8px; }
.slider__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: width .35s var(--ease), background-color .3s; }
.slider__dot:hover { background: rgba(255, 255, 255, .5); }
.slider__dot.is-active { width: 34px; background: var(--accent); }
.slider__arrows { display: flex; gap: 8px; }
.slider__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .2s, border-color .2s;
}
.slider__arrow:hover { background: var(--accent-2); border-color: transparent; }

/* Боковые карточки */
.hero__side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: 260px; padding: 28px;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(320px 240px at 92% 96%, rgba(39, 176, 228, .22), transparent 65%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--surface-3) 100%);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.promo:hover { transform: translateY(-4px); border-color: rgba(39, 176, 228, .6); box-shadow: var(--shadow-lg); }
.promo__body { position: relative; z-index: 1; max-width: 66%; }
.promo__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.promo__sku { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.promo__title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; }
.promo__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.promo__cat { margin-top: 6px; color: var(--accent-light); font-size: 13.5px; font-weight: 600; }
.promo__list { margin-top: 14px; display: grid; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.promo__list li { position: relative; padding-left: 14px; }
.promo__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.promo__img {
  --ty: 16%;
  position: absolute; z-index: 0; right: -30px; bottom: 0; width: min(60%, 270px);
  transform: translateY(var(--ty));
  filter: drop-shadow(0 22px 28px rgba(9, 24, 35, .55));
  transition: transform .5s var(--ease);
}
.promo__img--tall { --ty: 12%; right: 0; width: min(48%, 215px); }
.promo__img--wide { --ty: 33%; right: -60px; width: min(84%, 360px); }
.promo--wide .promo__body { padding-bottom: 72px; }
.promo:hover .promo__img { transform: translateY(calc(var(--ty) - 2%)) scale(1.05); }
.promo__arrow {
  position: absolute; top: 22px; right: 22px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--text-2);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.promo:hover .promo__arrow { background: var(--accent-2); color: #fff; transform: rotate(45deg); }

/* ---------- Сервис ---------- */
.benefits-wrap { padding-block: 12px 8px; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.benefit {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(53, 59, 76, .6);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.benefit:hover { border-color: rgba(39, 176, 228, .55); background: var(--surface); transform: translateY(-2px); }
.benefit__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(39, 176, 228, .14); color: var(--accent-light); }
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit__body { display: flex; flex-direction: column; min-width: 0; }
.benefit__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.benefit__text { margin-top: 2px; color: var(--text-3); font-size: 13px; line-height: 1.35; }

/* ---------- Секции ---------- */
.section { padding-block: clamp(40px, 5.2vw, 72px); }
.section--tint { background: linear-gradient(180deg, rgba(39, 44, 56, .75), rgba(39, 44, 56, .35)); border-block: 1px solid rgba(58, 65, 84, .7); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.section__eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section__title { font-size: clamp(1.6rem, 2.7vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; }
.section__sub { margin-top: 8px; color: var(--text-3); }
.section__link { display: inline-flex; align-items: center; gap: 8px; flex: none; padding-bottom: 6px; color: var(--accent-light); font-weight: 600; white-space: nowrap; }
.section__link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.section__link:hover .icon { transform: translateX(4px); }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(224px, auto); gap: 16px; }
.cat {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; padding: 24px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface-3) 100%);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.cat:hover { transform: translateY(-4px); border-color: rgba(39, 176, 228, .6); box-shadow: var(--shadow); }
.cat--xl {
  grid-column: span 2; grid-row: span 2; padding: 32px;
  background:
    radial-gradient(480px 380px at 80% 78%, rgba(39, 176, 228, .28), transparent 65%),
    linear-gradient(165deg, var(--surface-hi) 0%, var(--surface-3) 100%);
}
.cat__title { position: relative; z-index: 1; max-width: 72%; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cat--xl .cat__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.cat__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat__text { position: relative; z-index: 1; max-width: 34ch; margin-top: 10px; color: var(--text-2); }
.cat__links { position: relative; z-index: 2; display: grid; gap: 5px; margin-top: 14px; max-width: 62%; font-size: 14px; color: var(--text-2); }
.cat--xl .cat__links { margin-top: 22px; font-size: 15px; gap: 8px; max-width: 40%; }
.cat__links a { position: relative; transition: color .2s; }
.cat__links a:hover { color: var(--accent-light); }
.cat__img {
  --ty: 16%;
  position: absolute; z-index: 0; right: -28px; bottom: 0; width: min(60%, 210px);
  transform: translateY(var(--ty));
  filter: drop-shadow(0 20px 26px rgba(9, 24, 35, .55));
  transition: transform .5s var(--ease);
}
.cat__img--wide { --ty: 34%; right: -52px; width: min(80%, 270px); }
.cat--wide { padding-bottom: 84px; }
.cat--xl .cat__img { --ty: 14%; right: -7%; width: 66%; }
.cat:hover .cat__img { transform: translateY(calc(var(--ty) - 2%)) scale(1.06); }
.cat__icon { position: absolute; z-index: 0; right: 18px; bottom: 14px; width: 104px; height: 104px; stroke-width: 1; color: var(--accent); opacity: .22; transition: opacity .3s, transform .5s var(--ease); }
.cat:hover .cat__icon { opacity: .45; transform: scale(1.06); }
.cat__arrow {
  position: absolute; z-index: 1; top: 20px; right: 20px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: var(--text-2);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.cat__arrow .icon { width: 18px; height: 18px; }
.cat:hover .cat__arrow { background: var(--accent-2); color: #fff; transform: rotate(45deg); }

.cat--all { justify-content: flex-end; background: linear-gradient(150deg, var(--accent-2) 0%, var(--accent-dark) 100%); border-color: transparent; }
.cat--all:hover { border-color: transparent; box-shadow: 0 24px 44px -22px rgba(0, 163, 225, .9); }
.cat__all-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.cat__all-text { margin-top: 6px; color: rgba(255, 255, 255, .85); font-size: 14px; max-width: 22ch; }
.cat__arrow--solid { background: rgba(255, 255, 255, .2); color: #fff; }
.cat--all:hover .cat__arrow { background: #fff; color: var(--accent-dark); transform: translateX(4px); }

/* ---------- Товары ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; padding: 12px;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-4px); border-color: rgba(39, 176, 228, .6); box-shadow: var(--shadow-lg); }
.product__media {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 1 / .86; padding: 22px; border-radius: var(--r);
  background: radial-gradient(circle at 50% 38%, #4c556f 0%, #3c445a 55%, var(--surface-3) 100%);
}
.product__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(9, 24, 35, .5)); transition: transform .5s var(--ease); }
.product:hover .product__media img { transform: scale(1.07); }
.product__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(39, 176, 228, .18); color: var(--accent-light);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.product__tools { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; gap: 6px; }
.tool-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: rgba(45, 50, 64, .7); color: var(--text-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.tool-btn .icon { width: 18px; height: 18px; }
.tool-btn:hover { background: var(--accent-2); color: #fff; }
.tool-btn[aria-pressed="true"] { background: var(--accent-2); color: #fff; }
.tool-btn[aria-pressed="true"] .icon { fill: currentColor; }
.product__body { flex: 1; padding: 16px 8px 0; }
.product__cat { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.product__name { margin-top: 4px; font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.product__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.product__name a:hover { color: var(--accent-light); }
.product__stock { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--green-light); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(98, 214, 102, .2); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 8px 8px; }
.product__price { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.rub { font-weight: 600; color: var(--text-2); }

/* ---------- Серии ---------- */
.series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.serie {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 20px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface-3);
  transition: border-color .25s, background-color .25s;
}
.serie:hover { border-color: var(--line-2); background: var(--surface); }
.serie__name { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; transition: color .2s; }
.serie__name .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.serie__name:hover { color: var(--accent-light); }
.serie__name:hover .icon { color: var(--accent-light); transform: translate(2px, -2px); }
.serie__models { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Готовые решения ---------- */
.solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.solution {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 236px; padding: 26px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(39, 176, 228, .2), transparent 70%),
    var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.solution:hover { transform: translateY(-4px); border-color: rgba(39, 176, 228, .6); box-shadow: var(--shadow); }
.solution__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%); box-shadow: 0 14px 26px -14px rgba(39, 176, 228, .95); }
.solution__icon .icon { width: 28px; height: 28px; }
.solution__title { margin-top: 22px; font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.solution__text { margin-top: 6px; color: var(--text-2); font-size: 14.5px; flex: 1; }
.solution__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent-light); font-weight: 600; font-size: 14px; }
.solution__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.solution:hover .solution__more .icon { transform: translateX(4px); }

.purpose { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; padding: 20px 24px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.purpose__label { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.purpose__list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- О бренде ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.about__intro { position: sticky; top: 160px; }
.about__title { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.about__lead { margin-top: 20px; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; color: #e8ecf6; }
.about__text { margin-top: 14px; color: var(--text-2); }
.about__intro a:not(.btn) { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(73, 204, 255, .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.about__intro a:not(.btn):hover { text-decoration-color: currentColor; }
.about__intro .btn { margin-top: 28px; }
.about__cards { display: grid; gap: 16px; }
.about-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.about-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(39, 176, 228, .14); color: var(--accent-light); }
.about-card__icon .icon { width: 24px; height: 24px; }
.about-card__title { font-size: 20px; font-weight: 800; }
.about-card p { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); border-color: rgba(39, 176, 228, .6); box-shadow: var(--shadow); }
.news-card--featured { grid-column: span 2; grid-row: span 2; }
.news-card__media { display: block; overflow: hidden; aspect-ratio: 12 / 5; background: var(--surface-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.news-card--featured .news-card__body { padding: 28px 32px 32px; }
.news-card__date { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.news-card__date .icon { width: 15px; height: 15px; }
.news-card__title { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.news-card--featured .news-card__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.news-card__title a { transition: color .2s; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover .news-card__title a { color: var(--accent-light); }
.news-card__text { margin-top: 10px; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card--featured .news-card__text { font-size: 15.5px; line-height: 1.6; -webkit-line-clamp: 6; max-width: 72ch; }
.news-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--accent-light); font-weight: 600; }
.news-card__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(4px); }

/* ---------- Форум ---------- */
.tabs__list { display: flex; gap: 6px; padding: 6px; margin-bottom: 16px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-3); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__btn { height: 40px; padding: 0 16px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background-color .2s, color .2s; }
.tabs__btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tabs__btn.is-active, .tabs__btn[aria-selected="true"] { background: var(--accent-2); color: #fff; }
.tabs__panel { display: grid; gap: 10px; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.topic {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 32px;
  padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.topic:hover { border-color: rgba(39, 176, 228, .6); background: var(--surface-2); transform: translateX(4px); }
.topic__title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.topic:hover .topic__title { color: var(--accent-light); }
.topic__meta, .topic__stats { display: flex; align-items: center; gap: 18px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.topic__meta span, .topic__stats span { display: inline-flex; align-items: center; gap: 6px; }
.topic__meta .icon, .topic__stats .icon { width: 15px; height: 15px; color: var(--muted); }
.topic__stats { min-width: 128px; justify-content: flex-end; font-weight: 600; color: var(--text-2); }
.tabs__updated { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- Поддержка ---------- */
.support { padding-block: 8px clamp(40px, 5vw, 72px); }
.support__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4.6vw, 60px); border-radius: var(--r-xl);
  background:
    radial-gradient(640px 320px at 96% -10%, rgba(255, 255, 255, .28), transparent 62%),
    linear-gradient(120deg, var(--accent-dark) 0%, var(--accent-2) 52%, var(--accent) 100%);
  box-shadow: 0 36px 70px -36px rgba(0, 163, 225, .85);
}
.support__inner::before {
  content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, .07);
}
.support__title { font-size: clamp(1.6rem, 2.9vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.support__text { max-width: 54ch; margin-top: 14px; font-size: 16.5px; color: rgba(255, 255, 255, .92); }
.support__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.support__contacts { display: grid; gap: 4px; padding: 10px; border-radius: var(--r-lg); background: rgba(21, 50, 70, .26); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.support__contacts li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.support__contacts .icon { width: 22px; height: 22px; }
.support__contacts span { display: flex; flex-direction: column; line-height: 1.3; }
.support__contacts small { font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .82); }
.support__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Подвал ---------- */
.footer { background: var(--footer); border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.45fr; gap: 32px; padding-block: clamp(36px, 4.4vw, 60px); }
.footer__about { margin-top: 18px; max-width: 34ch; color: var(--text-3); }
.footer__hint { margin-top: 18px; color: var(--muted); font-size: 13px; }
.footer__title { margin-bottom: 16px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.footer__list { display: grid; gap: 10px; }
.footer__list a { transition: color .2s; }
.footer__list a:hover, .footer__contacts a:hover, .footer__bottom a:hover { color: var(--accent-light); }
.footer__contacts { display: grid; gap: 14px; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer__contacts .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.footer__contacts a { color: #fff; font-weight: 600; transition: color .2s; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__bottom a { text-decoration: underline; text-decoration-color: rgba(138, 154, 179, .45); text-underline-offset: 3px; transition: color .2s; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Мобильное меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 30, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer__panel {
  position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
  background: var(--surface-2); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.drawer__promo { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 14px; background: var(--surface-3); }
.drawer__label { margin: 20px 0 8px 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; font-weight: 500; font-size: 15.5px; transition: background-color .2s; }
.drawer__link:hover { background: rgba(255, 255, 255, .06); }
.drawer__link .icon { color: var(--accent); }
.drawer__link--all { color: var(--accent-light); font-weight: 600; }
.drawer__nav--plain { grid-template-columns: 1fr 1fr; }
.drawer__nav--plain .drawer__link { color: var(--text-2); font-size: 14.5px; padding-block: 9px; }
.drawer__contacts { display: grid; gap: 10px; margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--surface-3); font-weight: 600; }
.drawer__contacts a { display: flex; align-items: center; gap: 10px; }
.drawer__contacts .icon { color: var(--accent); }

/* ---------- Нижняя панель ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(56, 63, 82, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: var(--text-3); font-size: 11px; font-weight: 500; }
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item.is-active { color: var(--accent-light); }
.tabbar__item:hover { color: #fff; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(440px, calc(100vw - 40px));
  padding: 20px; border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(56, 63, 82, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg); animation: fade .4s var(--ease);
}
.cookie__text { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.cookie__text a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; margin-top: 14px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1280px) {
  .header__phone { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider { min-height: 500px; }
  .catnav__link { padding-inline: 10px; font-size: 14px; }
  .catnav__promo .icon { display: none; }
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 3; }
  .footer__about { max-width: 60ch; }
}

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat--xl { grid-column: span 3; grid-row: span 1; min-height: 320px; }
  .cat--xl .cat__img { --ty: 20%; width: 44%; right: 0; }
  .cat--all { grid-column: span 2; }
  .action__label { display: none; }
  .action { min-width: 46px; padding: 12px; }
  .topbar__contacts .topbar__item:first-child { display: none; }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card--featured { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 992px) {
  html { scroll-padding-top: 130px; }
  .topbar { display: none; }
  .burger { display: grid; }
  .catalog-btn { display: none; }
  .header__main { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-block: 10px; }
  .logo { margin-right: auto; }
  .search { order: 3; flex-basis: 100%; }
  .search__kbd { display: none; }
  .search__input { padding-right: 92px; }
  .catnav__promo { display: none; }
  .catnav__inner { height: 46px; }
  .mega { display: none !important; }

  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__intro { position: static; }
  .support__inner { grid-template-columns: minmax(0, 1fr); }
  .topic { grid-template-columns: minmax(0, 1fr) auto; }
  .topic__title { grid-column: 1 / -1; }
  .topic__stats { min-width: 0; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; }
  .action--hide-sm { display: none; }
  .logo__tag { display: none; }
  .cookie { left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: auto; }

  .hero { padding-top: 16px; }
  .slider { min-height: 0; border-radius: var(--r-lg); }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 20px 84px; align-content: start; }
  .slide__media { order: -1; }
  .slide__media img { width: min(62%, 280px); animation: none; }
  .slide__eyebrow { margin-bottom: 12px; }
  .specs { margin-top: 22px; }
  .slide__actions { margin-top: 24px; }
  .slide__actions .btn { flex: 1 1 auto; height: 50px; padding-inline: 18px; font-size: 15px; }
  .slider__nav { left: 20px; right: 20px; bottom: 22px; }
  .promo { border-radius: var(--r-lg); padding: 22px; min-height: 230px; }

  .section__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section__link { padding-bottom: 0; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 12px; }
  .cat { padding: 18px; border-radius: 20px; }
  .cat--xl { grid-column: span 2; min-height: 300px; padding: 22px; }
  .cat--xl .cat__img { --ty: 10%; width: 58%; right: -8%; }
  .cat--xl .cat__links { max-width: 50%; }
  .cat__title { font-size: 16px; max-width: 80%; }
  .cat__links { font-size: 13.5px; }
  .cat__arrow { display: none; }
  .cat--all .cat__arrow { display: grid; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }

  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__brand, .footer__col--contacts { grid-column: span 2; }
  .about-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
  .news-card--featured .news-card__body { padding: 22px; }
  .purpose { padding: 18px; }
}

@media (max-width: 560px) {
  .hero__side { grid-template-columns: minmax(0, 1fr); }
  .benefits { gap: 10px; }
  .benefit { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 20px; }
  .benefit__icon { width: 42px; height: 42px; border-radius: 12px; }
  .solutions { gap: 12px; }
  .solution { min-height: 0; padding: 20px; border-radius: 20px; }
  .solution__icon { width: 46px; height: 46px; border-radius: 14px; }
  .solution__icon .icon { width: 24px; height: 24px; }
  .solution__title { margin-top: 16px; font-size: 18px; }
  .solution__text { font-size: 13.5px; }

  .series {
    grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(240px, 74%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .series::-webkit-scrollbar { display: none; }
  .serie { scroll-snap-align: start; }

  .product { padding: 8px; border-radius: 20px; }
  .product__tools .tool-btn + .tool-btn { display: none; }
  .product__media { padding: 14px; border-radius: 14px; }
  .product__tools { top: 8px; right: 8px; }
  .tool-btn { width: 32px; height: 32px; border-radius: 10px; }
  .product__tag { top: 8px; left: 8px; }
  .product__body { padding: 12px 6px 0; }
  .product__name { font-size: 14.5px; }
  .product__foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 6px 6px; }
  .product__price { font-size: 19px; }
  .product__buy { width: 100%; }

  .news { grid-template-columns: minmax(0, 1fr); }
  .news-card--featured { grid-column: auto; }
  .topic { padding: 16px; gap: 10px 16px; }
  .topic__meta { gap: 12px; flex-wrap: wrap; }
  .topic__title { font-size: 15px; }
  .support__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .cats { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(172px, auto); }
  .cat--xl, .cat--all { grid-column: auto; }
  .cat--all { min-height: 150px; }
  .slide__title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .topbar, .header, .tabbar, .cookie, .drawer, .slider__nav { display: none !important; }
  body { background: #fff; color: #000; }
}
