/* ==========================================================================
   DGENERX Chem Tech — дизайн-система
   ========================================================================== */

:root {
  /* Бренд */
  --blue:        #0a5ff0;
  --blue-deep:   #0a3fa8;
  --blue-light:  #2f8bfd;
  --blue-glow:   rgba(10,95,240,0.28);

  /* Нейтральные */
  --ink:         #0d1420;
  --ink-2:       #1b2637;
  --slate:       #5a6779;
  --slate-2:     #8b97a8;
  --line:        #e6eaf0;
  --line-2:      #f1f4f8;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fc;
  --bg-dark:     #0b111c;
  --surface:     #ffffff;
  --surface-2:   #ffffff;
  --shadow-1:    0 3px 14px rgba(15,20,28,0.10);
  --shadow-2:    0 24px 50px rgba(13,20,32,0.14);
  --head-bg:     rgba(255,255,255,0.86);
  --invert-bg:   #0d1420;
  --invert-fg:   #ffffff;

  /* Метрика */
  --wrap:        1280px;
  --radius:      14px;
  --radius-sm:   10px;
  --header-h:    76px;

  /* Движение */
  --ease:        cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* Тёмная тема */
:root[data-theme="dark"] {
  --blue:        #3d8bff;
  --blue-deep:   #0a3fa8;
  --blue-light:  #6fb0ff;
  --blue-glow:   rgba(61,139,255,0.30);

  --ink:         #eef3fa;
  --ink-2:       #c7d3e4;
  --slate:       #94a3b8;
  --slate-2:     #6b7b91;
  --line:        #1f2b3d;
  --line-2:      #16202f;
  --bg:          #080d16;
  --bg-soft:     #0c1421;
  --bg-dark:     #05090f;
  --surface:     #101a29;
  --surface-2:   #0e1725;
  --shadow-1:    0 3px 14px rgba(0,0,0,0.45);
  --shadow-2:    0 24px 50px rgba(0,0,0,0.55);
  --head-bg:     rgba(8,13,22,0.82);
  --invert-bg:   #1a2536;
  --invert-fg:   #eef3fa;
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

::selection { background: var(--blue); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------- Типографика -------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.h-display { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.06; }
.h-1       { font-size: clamp(30px, 4.2vw, 54px); }
.h-2       { font-size: clamp(24px, 2.6vw, 34px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue);
}

.lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--slate);
}

/* --------------------------------- Кнопки ------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s ease, color 0.3s ease;
}

.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--blue-glow);
}

/* Блик, пробегающий по кнопке при наведении */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}

.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18), inset 0 0 0 1px var(--line);
}

.btn-white:hover { transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 12px; }

/* --------------------------------- Шапка -------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, height 0.4s var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(13,20,32,0.06);
}

.header-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  perspective: 300px;          /* меньше перспектива — сильнее объём наклона */
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)) translate3d(var(--ldx, 0px), var(--ldy, 0px), 0);
  transition: transform 0.75s var(--ease-out);
  will-change: transform;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.logo-txt strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-txt span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* Основная навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
  min-width: 0;
  overflow: hidden;
}

.nav .nav-link { white-space: nowrap; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-item.open .nav-link { background: var(--bg-soft); color: var(--blue); }

.nav-link .chev {
  width: 6px; height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  transition: transform 0.4s var(--ease);
  opacity: 0.55;
}

.nav-item.open .nav-link .chev { transform: rotate(-135deg) translate(-2px,-2px); }

/* Мега-меню */
.mega {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(13,20,32,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0.35s;
  z-index: 899;
}

.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-in {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.15fr 0.95fr;
  gap: 32px;
  padding: 34px 28px 38px;
}

.mega-col h5 {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}

.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-7px);
  transition: background 0.25s ease, color 0.25s ease,
              opacity 0.5s var(--ease), transform 0.55s var(--ease);
}

.mega.open .mega-link { opacity: 1; transform: none; }

.mega-link:hover { background: var(--bg-soft); color: var(--blue); }

.mega-link i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-2);
}

.mega-link:hover i { color: var(--blue); }

.mega-promo {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--blue-deep), var(--blue) 60%, var(--blue-light));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mega-promo h4 { font-size: 19px; margin-bottom: 8px; }
.mega-promo p { margin: 0 0 18px; font-size: 13px; line-height: 1.5; opacity: 0.85; }

.mega-promo::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}

/* Действия в шапке */
.head-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 9px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.35s var(--ease), color 0.25s ease;
}

.icon-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}

.icon-btn:hover .cart-count { background: #fff; color: var(--blue); }
.cart-count.on { transform: scale(1); }

/* Слот шапки: телефон остаётся на месте и просто сдвигается влево,
   справа от него мягко раскрывается поле поиска. */
.head-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 232px;
  height: 42px;
  flex: 0 0 auto;
  transition: width 0.7s var(--ease-out);
}

.head-slot.searching { width: 356px; }

.head-phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1.2;
  padding-right: 6px;
  margin-left: auto;
  transition: margin 0.7s var(--ease-out);
}

.head-slot.searching .head-phone { margin-left: 0; }

.head-phone span {
  max-height: 16px;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.35s ease;
}

.head-slot.searching .head-phone span { max-height: 0; opacity: 0; }

.head-search {
  flex: 0 0 auto;
  width: 186px;
  min-width: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease 0.05s;
}

.head-slot.searching .head-search { opacity: 1; pointer-events: auto; }

.head-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.head-search input::placeholder { color: var(--slate-2); font-weight: 500; }

.head-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,95,240,0.10);
}

.head-phone b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.head-phone span { font-size: 10.5px; font-weight: 600; color: var(--slate-2); white-space: nowrap; }

/* лупа подсвечивается, пока поиск открыт */
#search-btn svg { transition: transform 0.5s var(--ease-out); }
.head-acts.searching #search-btn { background: var(--blue); color: #fff; }
.head-acts.searching #search-btn svg { transform: rotate(90deg) scale(0.92); }

/* Узкий экран: шапка не растягивается — поле ложится поверх номера,
   меню остаётся целым. */
@media (max-width: 1240px) {
  .head-slot { position: relative; width: 200px; }
  .head-slot.searching { width: 200px; }

  .head-search {
    position: absolute;
    top: 0; right: 0;
    width: 100%;
  }

  .head-slot.searching .head-phone { opacity: 0; pointer-events: none; }
}

.burger { display: none; }

/* --------------------------------- Обложка ------------------------------ */
.hero {
  position: relative;
  min-height: calc(100svh - 54px);   /* чтобы бегущая строка попадала в первый экран */
  padding: calc(var(--header-h) + 26px) 0 66px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #05244f 0%, #0a3fa8 45%, #0a5ff0 100%);
  color: #fff;
  overflow: hidden;
}

/* Технический фон рисует canvas .fx-grid; здесь только виньетка */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 65% at 50% 45%, transparent 40%, rgba(3,16,44,0.45) 100%);
  pointer-events: none;
}

/* Живая сетка на canvas (hero и шапки страниц) */
canvas.fx-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* содержимое всегда поверх сетки */
.hero > .wrap,
.hero-visual,
.scroll-hint,
.page-head > .wrap { position: relative; z-index: 3; }


/* Световые пятна обложки */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow.g1 {
  width: 620px; height: 620px;
  right: -140px; top: -180px;
  background: rgba(47,139,253,0.55);
  animation: floatGlow 16s ease-in-out infinite;
}

.hero-glow.g2 {
  width: 480px; height: 480px;
  left: -160px; bottom: -160px;
  background: rgba(10,95,240,0.5);
  animation: floatGlow 20s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-40px, 40px) scale(1.12); }
}

.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-badge b {
  padding: 3px 9px;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 { margin-bottom: 18px; }

.hero h1 .accent {
  background: linear-gradient(100deg, #fff 20%, #9fc6ff 60%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 6s linear infinite;
}

@keyframes shineText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero p.lead {
  color: rgba(255,255,255,0.76);
  max-width: 480px;
  margin: 0 0 26px;
  font-size: clamp(14.5px,1.15vw,16.5px);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.stat b {
  display: block;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat > span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
}

.hero-ring.r1 { width: 330px; height: 330px; animation: spin 40s linear infinite; }
.hero-ring.r2 { width: 440px; height: 440px; border-style: dashed; animation: spin 60s linear infinite reverse; }
.hero-ring.r3 { width: 560px; height: 560px; border-color: rgba(255,255,255,0.08); }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floatY {
  0%, 100% { transform: translateY(-10px); }
  50%      { transform: translateY(14px); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  animation: floatY 5.5s ease-in-out infinite;
}

.hero-chip svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.scroll-hint .line {
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-hint .line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: #fff;
  animation: scrollDot 2.4s var(--ease) infinite;
}

@keyframes scrollDot {
  0%   { top: -50%; }
  70%  { top: 100%; }
  100% { top: 100%; }
}

/* --------------------------------- Бегущая строка ----------------------- */
.ticker {
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-row {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  animation: tickerMove 34s linear infinite;
}

.ticker-row span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--invert-fg);
  opacity: 0.78;
}

.ticker-row span::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------- Секции ------------------------------- */
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section.soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.section-head .lead { max-width: 560px; margin: 14px 0 0; }

/* Направления */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease), border-color 0.4s ease;
}

.dir-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.dir-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue-deep), var(--blue));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dir-card:hover::before { opacity: 1; }

.dir-card > * { position: relative; z-index: 1; transition: color 0.4s ease; }
.dir-card:hover, .dir-card:hover .dir-count, .dir-card:hover p { color: #fff; }

.dir-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
  transition: background 0.4s ease, color 0.4s ease, transform 0.5s var(--ease-out);
}

.dir-card:hover .dir-ico { background: rgba(255,255,255,0.16); color: #fff; transform: scale(1.08) rotate(-6deg); }
.dir-ico svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dir-count {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 26px 0 10px;
}

.dir-card h3 { font-size: 21px; margin-bottom: 10px; }
.dir-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--slate); }

.dir-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.dir-card:hover .dir-go { opacity: 1; transform: none; color: #fff; }

/* Табы + карточки товаров */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.tab {
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.on { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.7s var(--ease-out);
}

.card:hover .card-media img { transform: scale(1.07); }

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 5px;
  background: rgba(13,20,32,0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease), background 0.3s ease, color 0.3s ease;
}

.card:hover .card-fav { opacity: 1; transform: none; }
.card-fav:hover { background: var(--blue); color: #fff; }
.card-fav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.card-fav.on { background: var(--blue); color: #fff; opacity: 1; transform: none; }
.card-fav.on svg { fill: currentColor; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.card-sub {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 9px;
}

.card-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.card:hover .card-name { color: var(--blue); }

.card-sku {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-2);
  margin-bottom: 16px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.card-price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.card-add {
  width: 40px; height: 40px;
  border: none;
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}

.card-add:hover { background: var(--blue); color: #fff; transform: scale(1.08); }
.card-add svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-add.added { background: #10b981; color: #fff; }

/* Преимущества */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat {
  position: relative;
  padding: 34px 30px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  will-change: transform;
  transition: transform 0.85s var(--ease-out),
              box-shadow 0.85s var(--ease-out),
              border-color 0.6s ease;
}

/* появление: длиннее и мягче, чем у остальных блоков */
.feat.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.985);
  transition: opacity 1s var(--ease-out),
              transform 1.15s var(--ease-out),
              box-shadow 0.85s var(--ease-out),
              border-color 0.6s ease;
}

.feat.reveal.in { opacity: 1; transform: none; }

.feat.reveal[data-delay="1"] { transition-delay: 0.14s; }
.feat.reveal[data-delay="2"] { transition-delay: 0.28s; }

/* тонкая линия сверху, вырастающая при наведении */
.feat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}

.feat:hover {
  transform: translate3d(0, -8px, 0);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.feat:hover::before { transform: scaleX(1); }

.feat-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 22px;
  transition: transform 0.8s var(--ease-out);
}

.feat-num::after {
  content: '';
  width: 0;
  height: 1.5px;
  background: var(--blue);
  opacity: 0.4;
  transition: width 0.9s var(--ease-out);
}

.feat:hover .feat-num::after { width: 34px; }

.feat h3 {
  font-size: 19px;
  margin-bottom: 10px;
  transition: transform 0.8s var(--ease-out), color 0.5s ease;
}

.feat:hover h3 { transform: translateX(3px); color: var(--blue); }

.feat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  transition: transform 0.9s var(--ease-out);
}

.feat:hover p { transform: translateX(3px); }

/* Блок эксперта */
.expert {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Круговая статистика: один круг + короткий список */
.stat-panel {
  display: grid;
  grid-template-columns: minmax(0, 230px) 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ring {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring .ring-line {
  stroke-dasharray: 327;           /* 2πr при r = 52 */
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.7s var(--ease-out) 0.15s;
}

.ring-mid { position: relative; z-index: 1; text-align: center; padding: 0 22px; }

.ring-mid b {
  display: block;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.ring-mid > span {
  display: block;
  margin-top: 9px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.stat-list { margin: 0; padding: 0; list-style: none; }

.stat-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
}

.stat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.stat-list li:first-child { padding-top: 0; }

.stat-list b {
  min-width: 104px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--blue);
}

.stat-list li > span { font-size: 13.5px; font-weight: 600; color: var(--slate); }

@media (max-width: 760px) {
  .stat-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stat-list li { justify-content: center; }
}

.expert-list { margin: 30px 0 34px; padding: 0; list-style: none; }

.expert-list li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}

.expert-list li::before {
  content: '';
  position: absolute;
  left: 3px; top: 19px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* CTA */
.cta {
  position: relative;
  padding: clamp(50px, 6vw, 78px);
  border-radius: 18px;
  background: linear-gradient(140deg, #05244f, var(--blue-deep) 50%, var(--blue));
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, transparent 45%, rgba(3,16,44,0.35) 100%);
  pointer-events: none;
}

.cta > * { position: relative; z-index: 1; }
.cta p { max-width: 560px; margin: 16px auto 30px; color: rgba(255,255,255,0.8); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --------------------------------- Подвал ------------------------------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.62);
  padding: 70px 0 30px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer .logo-txt strong { color: #fff; }
.footer .logo-mark { filter: brightness(1.15); }
.footer p { margin: 18px 0 0; line-height: 1.65; max-width: 300px; }

.footer h5 {
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer a { display: block; padding: 6px 0; transition: color 0.25s ease, transform 0.3s var(--ease); }
.footer a:hover { color: #fff; transform: translateX(3px); }

.footer-contact b { display: block; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.footer-contact span { display: block; margin: 4px 0 18px; font-size: 12.5px; }

.footer-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 12.5px;
}

/* --------------------------------- Корзина ------------------------------ */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(8,13,22,0);
  z-index: 950;
  pointer-events: none;
  transition: background 0.45s ease;
}

.drawer-bg.on { background: rgba(8,13,22,0.5); pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(430px, 100%);
  height: 100%;
  background: var(--surface);
  z-index: 960;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: -20px 0 60px rgba(13,20,32,0.2);
}

.drawer.on { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 { font-size: 19px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.cart-item img {
  width: 64px; height: 64px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
}

.cart-item h4 { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.cart-item .price { font-size: 13.5px; font-weight: 800; }

.qty { display: flex; align-items: center; gap: 8px; margin-top: 7px; }

.qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.25s ease;
}

.qty button:hover { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg); }
.qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; }

.cart-del {
  border: none;
  background: none;
  color: var(--slate-2);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.25s ease;
}

.cart-del:hover { color: #ef4444; }

.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.drawer-foot .btn { width: 100%; }

.cart-empty { padding: 60px 0; text-align: center; color: var(--slate); font-size: 14px; }

/* Форма заявки */
.order-form { display: none; }
.order-form.on { display: block; }

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 10px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,95,240,0.10);
}

.form-note { font-size: 11.5px; color: var(--slate-2); margin: 10px 0 0; line-height: 1.5; }

/* Всплывающее уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--invert-bg);
  color: var(--invert-fg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(13,20,32,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; stroke: #4ade80; fill: none; stroke-width: 2.4; }

/* --------------------------------- Появление при скролле ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease-out);
}

.reveal.in { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------- Адаптив ------------------------------ */
@media (max-width: 1120px) {
  .dir-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mega-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav, .head-slot { display: none; }
  .burger { display: flex; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 340px; order: -1; }
  .hero-ring.r3, .hero-chip { display: none; }
  .expert { grid-template-columns: 1fr; gap: 30px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .prod-grid, .dir-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat b { font-size: 26px; }
}

/* ==========================================================================
   Каталог
   ========================================================================== */
.page-head {
  padding: calc(var(--header-h) + 54px) 0 44px;
  background: linear-gradient(160deg, #05244f, var(--blue-deep) 70%, var(--blue));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 85% 100% at 30% 50%, transparent 45%, rgba(3,16,44,0.4) 100%);
  pointer-events: none;
}

.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin: 14px 0 12px; }
.page-head .lead { color: rgba(255,255,255,0.75); max-width: 620px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.crumbs a { transition: color 0.25s ease; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.5; }

.catalog {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 34px;
  align-items: start;
  padding: 44px 0 90px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filters h4 {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 12px;
}

.filters h4:not(:first-child) { margin-top: 26px; }

.f-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  margin: 0 -11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.f-link:hover { background: var(--bg-soft); color: var(--blue); }
.f-link.on { background: var(--blue); color: #fff; }
.f-link i { font-style: normal; font-size: 11.5px; font-weight: 700; opacity: 0.6; }

.f-range { margin-top: 6px; }
.f-range input { width: 100%; accent-color: var(--blue); }

.f-range-val {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
  margin-top: 8px;
}

.cat-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.cat-found { font-size: 13.5px; font-weight: 600; color: var(--slate); }

.sort {
  padding: 10px 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.sort:focus { outline: none; border-color: var(--blue); }

.catalog .prod-grid { grid-template-columns: repeat(3, 1fr); }

.load-more { display: flex; justify-content: center; margin-top: 42px; }

.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--slate);
}

.f-mobile { display: none; }

/* ==========================================================================
   Карточка товара
   ========================================================================== */
.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  padding: 40px 0 80px;
  align-items: start;
}

.gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 26px;
  transition: transform 0.6s var(--ease-out), opacity 0.35s ease;
}

.gallery-main:hover img { transform: scale(1.05); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 74px; height: 74px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { transform: translateY(-3px); }
.thumb.on { border-color: var(--blue); }

.p-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.product h1 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 16px; }

.p-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

.p-stock { display: inline-flex; align-items: center; gap: 7px; color: #0f9d58; }
.p-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #0f9d58; box-shadow: 0 0 0 3px rgba(15,157,88,0.18); }

.p-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
}

.p-price b { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.p-price span { font-size: 13px; font-weight: 600; color: var(--slate-2); }

.p-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.p-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}

.p-qty button {
  width: 38px; height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 17px;
  transition: background 0.25s ease, color 0.25s ease;
}

.p-qty button:hover { background: var(--invert-bg); color: var(--invert-fg); }
.p-qty span { min-width: 34px; text-align: center; font-weight: 800; }

.p-usp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.p-usp div {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.p-usp svg {
  width: 19px; height: 19px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 9px;
  display: block;
}

.p-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }

.p-tab {
  padding: 12px 4px;
  margin-right: 22px;
  border: none;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-2);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.p-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.p-tab.on { color: var(--ink); }
.p-tab.on::after { transform: scaleX(1); }

.p-pane { display: none; font-size: 14.5px; line-height: 1.7; color: var(--slate); }
.p-pane.on { display: block; animation: fadeUp 0.5s var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}

.spec-row b { font-weight: 700; color: var(--ink); }

@media (max-width: 1120px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .catalog .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
}

@media (max-width: 620px) {
  .catalog .prod-grid { grid-template-columns: 1fr; }
  .p-usp { grid-template-columns: 1fr; }
}

/* Подиум под товаром в обложке */
.hero-plate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 74%);
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background: linear-gradient(160deg, #ffffff 0%, #eef3fb 60%, #dfe8f7 100%);
  box-shadow: 0 40px 80px rgba(2,14,45,0.45), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}

/* мягкий световой блик по подиуму */
.hero-plate::after {
  content: '';
  position: absolute;
  top: -60%; left: -70%;
  width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  transform: skewX(-18deg);
  animation: plateShine 6.5s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes plateShine {
  0%   { left: -70%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.hero-plate .hero-product {
  position: relative;
  z-index: 1;
  width: 72%;
  max-height: 78%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 18px 26px rgba(10,40,90,0.22));
}

/* подписи выносим за пределы подиума */
.hero-chip.c1 { top: 2%; left: 0; }
.hero-chip.c2 { bottom: 2%; right: 0; }

/* ==========================================================================
   Полоса прогресса чтения
   ========================================================================== */
.progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 901;
  pointer-events: none;
}

/* ==========================================================================
   Переключатель темы
   ========================================================================== */
.theme-btn { position: relative; overflow: hidden; }

.theme-btn svg {
  position: absolute;
  transition: transform 0.55s var(--ease-out), opacity 0.4s ease;
}

.theme-btn .i-sun  { transform: translateY(0) rotate(0deg); opacity: 1; }
.theme-btn .i-moon { transform: translateY(120%) rotate(-40deg); opacity: 0; }

:root[data-theme="dark"] .theme-btn .i-sun  { transform: translateY(-120%) rotate(40deg); opacity: 0; }
:root[data-theme="dark"] .theme-btn .i-moon { transform: translateY(0) rotate(0deg); opacity: 1; }

/* ==========================================================================
   Виджет связи — якорь к нижней форме
   ========================================================================== */
.contact-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 940;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 19px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px var(--blue-glow);
  overflow: hidden;
  transform: translateY(90px);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease,
              box-shadow 0.4s ease, background 0.3s ease, gap 0.5s var(--ease-out);
}

.contact-fab.show { transform: none; opacity: 1; }
.contact-fab.hide { transform: translateY(90px); opacity: 0; pointer-events: none; }

.contact-fab:hover { gap: 11px; box-shadow: 0 18px 44px var(--blue-glow); }

.contact-fab svg {
  width: 21px; height: 21px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 1;
}

.contact-fab span {
  max-width: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.6s var(--ease-out), opacity 0.4s ease;
  z-index: 1;
}

.contact-fab:hover span { max-width: 190px; opacity: 1; }

/* расходящееся кольцо — привлекает внимание, но не мигает */
.contact-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid var(--blue);
  opacity: 0;
  animation: fabWave 3.4s ease-out infinite;
}

@keyframes fabWave {
  0%   { transform: scale(1);    opacity: 0.55; }
  60%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 620px) {
  .contact-fab { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   Дополнительные анимации
   ========================================================================== */
/* Подчёркивание пунктов меню */
.nav-link { position: relative; }

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Черта у надзаголовка вырастает при появлении */
.reveal .eyebrow::before,
.eyebrow.reveal::before {
  width: 0;
  transition: width 0.9s var(--ease-out) 0.15s;
}

.reveal.in .eyebrow::before,
.eyebrow.reveal.in::before { width: 22px; }

/* Заголовки секций проявляются со срезом */
.section-head h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(14px);
  transition: clip-path 1s var(--ease-out) 0.05s, transform 1s var(--ease-out) 0.05s;
}

.reveal.in .section-head h2,
.section-head.reveal.in h2 { clip-path: inset(0 0 -10% 0); transform: none; }

/* Плавный доворот подиума за курсором */
.hero-visual { perspective: 1100px; }

.hero-plate {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

/* Строки таблицы характеристик подсвечиваются */
.spec-row { transition: background 0.3s ease, padding-left 0.4s var(--ease); }
.spec-row:hover { background: var(--bg-soft); padding-left: 8px; }

/* Ссылки подвала — с растущей чертой */
.footer a { position: relative; width: fit-content; }

/* Кнопка «наверх» в шапке-логотипе не нужна — движение задаёт прогресс-бар */

/* ==========================================================================
   Шапка поверх синей обложки — прозрачная и светлая
   ========================================================================== */
.header.on-hero {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.on-hero .logo-txt strong { color: #fff; }
.header.on-hero .logo-txt span   { color: rgba(255,255,255,0.55); }
.header.on-hero .nav-link        { color: rgba(255,255,255,0.86); }
.header.on-hero .nav-link:hover,
.header.on-hero .nav-item.open .nav-link { background: rgba(255,255,255,0.12); color: #fff; }
.header.on-hero .nav-link::after { background: #fff; }

.header.on-hero .head-phone b    { color: #fff; }
.header.on-hero .head-phone span { color: rgba(255,255,255,0.6); }

.header.on-hero .icon-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.header.on-hero .icon-btn:hover { background: #fff; color: var(--ink); }
.header.on-hero .cart-count { background: #fff; color: var(--blue); }

.header.on-hero .head-search input {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}

.header.on-hero .head-search input::placeholder { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Ограничитель прокрутки: за краями страницы не видно «пустоты»
   ========================================================================== */
html {
  background: var(--bg-dark);          /* низ страницы — цвет подвала */
  overscroll-behavior-y: none;
}

body { overscroll-behavior-y: none; }

/* сверху из-под страницы виднеется синь обложки, а не белое полотно */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50vh;
  background: #05244f;
  z-index: -2;
  pointer-events: none;
}

/* ==========================================================================
   Шапка внутренних страниц: путь по центру блока, кнопка «назад»
   ========================================================================== */
.page-head {
  display: flex;
  align-items: center;
  min-height: 260px;
}

.page-head > .wrap { width: 100%; }

.crumbs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.45s var(--ease-out);
}

.back-btn:hover { background: rgba(255,255,255,0.24); transform: translateX(-3px); }

.back-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* путь-«проводник» на подложке, чтобы читался поверх сетки */
.crumbs {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(4,20,52,0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  font-weight: 700;
}

.crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.45; }

@media (max-width: 620px) {
  .page-head { min-height: 210px; }
  .crumbs { font-size: 11.5px; padding: 0 10px; }
}

/* ==========================================================================
   Мега-меню поверх синей обложки — стеклянное, в тон шапке
   ========================================================================== */
.mega.on-hero {
  background: rgba(6, 28, 70, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px rgba(2,12,34,0.45);
}

.mega.on-hero .mega-col h5 { color: rgba(255,255,255,0.62); }

.mega.on-hero .mega-link { color: rgba(255,255,255,0.9); }

.mega.on-hero .mega-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.mega.on-hero .mega-link i { color: rgba(255,255,255,0.45); }
.mega.on-hero .mega-link:hover i { color: #fff; }

.mega.on-hero .mega-promo {
  background: rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.mega.on-hero .mega-promo .btn-white {
  background: #fff;
  color: var(--ink);
}
