/* =====================================================================
   VESKAR — «Инструмент как инженерия»
   Премиум-тёмный редакционный дизайн с молтен-оранжевым «жаром».
   Тёмная тема по умолчанию + тёплая светлая (переключатель).
   ===================================================================== */

/* ---------- ТЁМНАЯ ТЕМА ---------- */
:root {
  --bg:        #0C0D10;
  --bg-2:      #101216;
  --panel:     #15171C;
  --panel-2:   #1B1E25;
  --surface:   rgba(255,255,255,0.045);
  --surface-2: rgba(255,255,255,0.08);
  --glass-brd: rgba(255,255,255,0.10);
  --blur:      20px;

  --text:      #F4F5F7;
  --muted:     #9A9FA8;
  --dim:       #616671;

  --accent:    #FF7A1A;
  --accent-2:  #FFB020;
  --accent-hot:#FF4D00;
  --accent-ink:#160A00;
  --glow:      rgba(255,110,0,0.34);
  --molten:    linear-gradient(135deg, #FFB020 0%, #FF7A1A 46%, #FF4D00 100%);

  --graphite:  #2C2E34;
  --hair:      rgba(255,255,255,0.08);
  --shadow:    0 30px 70px -24px rgba(0,0,0,0.7);
  --shadow-sm: 0 12px 30px -14px rgba(0,0,0,0.55);

  --r:    24px;
  --r-sm: 15px;
  --r-lg: 34px;
  --pill: 999px;

  --maxw:  1240px;
  --nav-h: 72px;

  --f-disp: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- СВЕТЛАЯ ТЕМА (тёплая «бумага») ---------- */
:root[data-theme="light"] {
  --bg:        #F2F0EC;
  --bg-2:      #EAE7E1;
  --panel:     #FFFFFF;
  --panel-2:   #F6F4F0;
  --surface:   rgba(255,255,255,0.7);
  --surface-2: rgba(255,255,255,0.92);
  --glass-brd: rgba(20,18,16,0.09);

  --text:      #17181B;
  --muted:     #595E68;
  --dim:       #8A8F98;

  --accent:    #E8641A;
  --accent-2:  #F59A18;
  --accent-hot:#E23D00;
  --accent-ink:#FFFFFF;
  --glow:      rgba(232,100,26,0.20);

  --graphite:  #CBC7C0;
  --hair:      rgba(20,18,16,0.10);
  --shadow:    0 30px 60px -26px rgba(60,50,40,0.28);
  --shadow-sm: 0 14px 30px -16px rgba(60,50,40,0.20);
}

/* ---------- БАЗА ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background .5s var(--ease), color .5s var(--ease);
}
body::before { /* атмосферный «жар» */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 40% at 82% -8%, var(--glow), transparent 62%),
    radial-gradient(45% 38% at -6% 108%, rgba(255,90,0,0.12), transparent 60%);
}
body::after { /* чертёжная сетка */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(135% 85% at 50% -14%, #000 24%, transparent 68%);
  mask: radial-gradient(135% 85% at 50% -14%, #000 24%, transparent 68%);
  opacity: .6;
}
:root[data-theme="light"] body::after { opacity: .5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { position: relative; z-index: 1; padding: 108px 0; }
[id] { scroll-margin-top: 92px; }

/* ---------- ТИПОГРАФИКА ---------- */
h1, h2, h3 { font-family: var(--f-disp); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.kicker {
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: "//"; opacity: .6; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 20px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ---------- КНОПКИ ---------- */
.btn {
  --pad: 14px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: var(--pill); font-weight: 700; font-size: .97rem;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .28s var(--ease), background .28s, box-shadow .28s, border-color .28s, color .28s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--molten); color: var(--accent-ink); box-shadow: 0 12px 34px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -14px var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--glass-brd); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--glass-brd); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: .86rem; }

/* ---------- НАВИГАЦИЯ ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-disp); font-weight: 800; font-size: 1.28rem; letter-spacing: .04em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: none; margin: -6px -2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav-links a { position: relative; padding: 9px 14px; border-radius: var(--r-sm); font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--molten); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-phone { font-family: var(--f-mono); font-weight: 600; font-size: .9rem; }
.nav-phone span { color: var(--muted); }
.theme-toggle { width: 42px; height: 42px; border-radius: var(--pill); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--glass-brd); color: var(--text); transition: background .2s; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--glass-brd); color: var(--text); place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- СЕГМЕНТ Стройка / Дом ---------- */
.segmented { display: inline-flex; padding: 5px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px); position: relative; }
.segmented button { position: relative; z-index: 1; padding: 9px 20px; border-radius: var(--pill); font-weight: 700; font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.segmented button.active { color: var(--accent-ink); }
.segmented .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; z-index: 0; border-radius: var(--pill); background: var(--molten); box-shadow: 0 8px 20px -8px var(--glow); transition: transform .4s var(--ease), width .4s var(--ease); }
.badge-soon { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.18); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 46px 0 30px; }
.hero-ghost { position: absolute; top: 46%; left: -8%; transform: translateY(-50%); width: min(60vw, 740px); opacity: .06; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 54px; align-items: center; }
.hero-copy > * { animation: fadeUp .8s var(--ease) both; }
.hero-copy .kicker { animation-delay: .02s; }
.hero-copy h1 { animation-delay: .08s; }
.hero-copy .hero-sub { animation-delay: .14s; }
.hero-copy .hero-cta { animation-delay: .2s; }
.hero-copy .hero-mini { animation-delay: .26s; }
.hero .segmented { margin-bottom: 26px; animation-delay: 0s; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); margin: 20px 0 22px; }
.hero h1 .hl { background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 32ch; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mini { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-mini .m { display: flex; flex-direction: column; gap: 3px; }
.hero-mini .m b { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.hero-mini .m span { color: var(--dim); font-size: .82rem; }
.hero-mini .m + .m { padding-left: 28px; border-left: 1px solid var(--hair); }

/* сцена с товаром */
.hero-stage { position: relative; z-index: 2; padding: 16px; }
.hero-stage.brackets { --bl: 26px; --bt: 2px; }
.stage-card { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: radial-gradient(120% 90% at 50% 8%, var(--panel-2), var(--panel) 70%); border: 1px solid var(--glass-brd); }
.stage-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 118%, var(--glow), transparent 62%); pointer-events: none; }
.stage-media { position: relative; aspect-ratio: 4/3.2; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; }
.stage-chip { position: absolute; padding: 9px 13px; border-radius: var(--pill); font-family: var(--f-mono); font-size: .78rem; font-weight: 600; background: var(--surface); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px); display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); }
.stage-chip.c-rate { top: 16px; left: 16px; }
.stage-chip.c-rate .star { color: var(--accent); }
.stage-chip.c-spec { top: 16px; right: 16px; color: var(--muted); }
.stage-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--hair); background: var(--panel); }
.stage-foot .sf-name { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.stage-foot .sf-price { font-family: var(--f-mono); font-weight: 700; font-size: 1.3rem; color: var(--accent); white-space: nowrap; }

/* сцена-бренд: логотип без фона (со своим свечением) */
.hero-logo-mark { position: relative; display: grid; place-items: center; min-height: 400px; padding: 10px; }
.hero-logo-mark img { width: min(94%, 480px); height: auto; }

/* (устаревшее) сцена-бренд (V + статистика) */
.stage-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 64px 34px; text-align: center; aspect-ratio: 1/0.92; }
.brand-mark { position: relative; --graphite: #8C9199; }
.brand-mark svg { width: 150px; height: 136px; position: relative; z-index: 1; filter: drop-shadow(0 22px 48px var(--glow)); }
.brand-mark::before { content: ""; position: absolute; inset: -34% -34% -12%; z-index: 0; background: radial-gradient(circle at 50% 55%, var(--glow), transparent 62%); }
.brand-stats { display: flex; align-items: center; gap: 32px; }
.bs { display: flex; flex-direction: column; gap: 5px; }
.bs b { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bs span { color: var(--muted); font-size: .88rem; }
.bs-div { align-self: stretch; width: 1px; background: var(--hair); }

/* технические уголки-скобки */
.brackets { --bl: 24px; --bt: 2px; --bc: var(--accent);
  background-image: linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc)),linear-gradient(var(--bc),var(--bc));
  background-repeat: no-repeat;
  background-size: var(--bl) var(--bt),var(--bt) var(--bl),var(--bl) var(--bt),var(--bt) var(--bl),var(--bl) var(--bt),var(--bt) var(--bl),var(--bl) var(--bt),var(--bt) var(--bl);
  background-position: left top,left top,right top,right top,left bottom,left bottom,right bottom,right bottom;
}

/* ---------- БЕГУЩАЯ СТРОКА ---------- */
.marquee { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; padding: 16px 0; position: relative; z-index: 1; background: var(--bg-2); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .m-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 26px; font-family: var(--f-mono); font-size: .92rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.marquee .m-item b { color: var(--text); }
.marquee .m-item .spark { color: var(--accent); }

/* ---------- КАТЕГОРИИ (круглые чипсы) ---------- */
.cats-rail { display: flex; gap: 20px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cats-rail::-webkit-scrollbar { display: none; }
.cat-chip { scroll-snap-align: start; flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r); transition: transform .3s var(--ease); }
.cat-chip:hover { transform: translateY(-4px); }
.cc-img { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; position: relative; background: radial-gradient(120% 120% at 50% 20%, var(--panel-2), var(--panel)); border: 1px solid var(--glass-brd); }
.cc-img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -30px 40px -20px var(--glow); opacity: 0; transition: opacity .35s; }
.cat-chip:hover .cc-img::after { opacity: 1; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-chip:hover .cc-img img { transform: scale(1.08); }
.cc-name { font-weight: 700; font-size: .96rem; text-align: center; }
.cc-count { font-family: var(--f-mono); font-size: .74rem; color: var(--dim); }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--glass-brd); color: var(--text); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.rail-nav button:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.rail-nav svg { width: 18px; height: 18px; }
.cats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }

/* ---------- КАТАЛОГ (карточки) ---------- */
.grid { display: grid; gap: 22px; }
.grid-products { grid-template-columns: repeat(3, 1fr); }
.p-card { border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; transition: transform .34s var(--ease), border-color .34s, box-shadow .34s; }
.p-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: var(--shadow); }
.p-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: radial-gradient(120% 110% at 50% 12%, var(--panel-2), var(--panel)); }
.p-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-heat { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 120%, var(--glow), transparent 62%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.p-card:hover .p-heat { opacity: 1; }
.p-badge { position: absolute; top: 13px; left: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--pill); font-family: var(--f-mono); font-size: .76rem; background: var(--surface); border: 1px solid var(--glass-brd); backdrop-filter: blur(12px); }
.p-badge .star { color: var(--accent); }
.p-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.p-meta { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.p-body h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tags span { font-family: var(--f-mono); font-size: .68rem; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.p-price { font-family: var(--f-mono); font-weight: 700; font-size: 1.34rem; }
.p-price small { display: block; font-size: .62rem; font-weight: 500; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- ПОЧЕМУ (фичи, асимметрия) ---------- */
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; gap: 22px; }
.feat { border-radius: var(--r); padding: 30px; background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.feat.big { grid-row: span 2; justify-content: space-between; background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent-hot) 16%, var(--panel)), var(--panel) 60%); }
.feat .f-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--molten); color: var(--accent-ink); box-shadow: 0 12px 26px -14px var(--glow); }
.feat .f-ico svg { width: 25px; height: 25px; }
.feat h3 { font-size: 1.18rem; }
.feat.big h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.feat p { margin: 0; color: var(--muted); font-size: .96rem; }
.feat.big p { font-size: 1.05rem; max-width: 34ch; }

/* ---------- О БРЕНДЕ (редакционные плитки) ---------- */
.brand-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.brand-lead { border-radius: var(--r); padding: 40px; background: var(--panel); border: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.brand-lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.brand-lead p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { border-radius: var(--r-sm); padding: 22px; background: var(--panel-2); border: 1px solid var(--hair); }
.stat .num { font-family: var(--f-mono); font-weight: 700; font-size: 2.3rem; background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: .9rem; }
.brand-media { display: grid; grid-template-rows: 1.3fr 1fr; gap: 22px; }
.brand-tile { border-radius: var(--r); overflow: hidden; position: relative; border: 1px solid var(--hair); min-height: 180px; background: radial-gradient(120% 100% at 50% 0%, var(--panel-2), var(--panel)); }
.brand-tile img { width: 100%; height: 100%; object-fit: cover; }
.brand-tile .bt-cap { position: absolute; left: 20px; bottom: 18px; font-family: var(--f-mono); font-size: .8rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); background: rgba(0,0,0,.28); padding: 6px 12px; border-radius: var(--pill); backdrop-filter: blur(6px); }

/* О бренде: интро + статистика + карта России + слоты */
.brand-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; margin-bottom: 22px; }
.brand-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.brand-intro p { color: var(--muted); font-size: 1.06rem; margin: 16px 0 0; max-width: 44ch; }
.brand-map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); background: var(--panel); margin-bottom: 22px; line-height: 0; }
.brand-map img { width: 100%; height: auto; display: block; }
.brand-map .bt-cap { position: absolute; left: 20px; bottom: 18px; font-family: var(--f-mono); font-size: .82rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); background: rgba(0,0,0,.34); padding: 7px 13px; border-radius: var(--pill); backdrop-filter: blur(6px); }
.brand-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.brand-slot { border-radius: var(--r); border: 1px solid var(--hair); background: var(--panel); min-height: 132px; }

@media (max-width: 1040px) {
  .brand-top { grid-template-columns: 1fr; gap: 20px; }
  .brand-slots { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta { border-radius: var(--r-lg); padding: 54px; position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--glass-brd); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 130% at 88% 6%, var(--glow), transparent 54%); pointer-events: none; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.cta p { color: var(--muted); margin: 0 0 24px; }
.cta-contacts { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: var(--pill); font-weight: 600; font-size: .9rem; background: var(--surface); border: 1px solid var(--glass-brd); }
.chip svg { width: 18px; height: 18px; }
.form { display: grid; gap: 12px; padding: 28px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--hair); }
.form label { font-size: .8rem; color: var(--muted); font-family: var(--f-mono); letter-spacing: .04em; }
.form input { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--glass-brd); color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .2s; }
.form input:focus { outline: none; border-color: var(--accent); }
.form .hint { font-size: .77rem; color: var(--dim); margin: 2px 0 0; }

/* ---------- ФУТЕР ---------- */
.footer { border-top: 1px solid var(--hair); padding: 60px 0 34px; position: relative; z-index: 1; }
.footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: .78rem; font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
.footer a, .footer li { color: var(--muted); font-size: .93rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent); }
.footer .f-brand p { color: var(--muted); max-width: 34ch; margin: 14px 0 0; font-size: .92rem; }
.footer .f-phone { font-family: var(--f-mono); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: .82rem; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; box-shadow: 0 18px 44px -12px var(--glow); }

/* ---------- АНИМАЦИИ ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- МОБИЛЬНОЕ МЕНЮ ---------- */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 45; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(22px); padding: 26px; display: none; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 16px; border-radius: var(--r-sm); font-size: 1.12rem; font-weight: 600; border-bottom: 1px solid var(--hair); }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { max-width: 500px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .feat.big { grid-row: auto; grid-column: span 2; }
  .brand-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .nav-links, .nav-phone { display: none; }
  .burger { display: grid; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
/* ===== МОБИЛЬНАЯ ВЕРСИЯ — компактно и минималистично ===== */
@media (max-width: 680px) {
  :root { --nav-h: 60px; --r: 18px; --r-lg: 24px; }
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 1.55rem; }
  .section-head p { font-size: .94rem; }
  .kicker { font-size: .64rem; letter-spacing: .1em; }

  /* Hero: компактный, без большого логотипа */
  .hero { padding: 16px 0 6px; overflow: visible; }
  .hero .wrap { gap: 0; }
  .hero .segmented { margin-bottom: 16px; }
  .hero h1 { font-size: 1.95rem; margin: 12px 0 14px; }
  .hero-sub { font-size: 1rem; margin-bottom: 20px; max-width: none; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-mini { gap: 22px; margin-top: 22px; }
  .hero-mini .m + .m { padding-left: 0; border-left: 0; }
  .hero-mini .m b { font-size: 1.25rem; }
  .hero-logo-mark { display: none; }
  .hero-ghost { display: none; }

  /* Каталог: 2 карточки в ряд, компактно */
  .grid-products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-body { padding: 12px; gap: 8px; }
  .p-meta { font-size: .58rem; }
  .p-body h3 { font-size: .85rem; line-height: 1.2; }
  .p-tags { display: none; }
  .p-price { font-size: 1rem; }
  .p-price small { font-size: .52rem; }
  .p-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .p-more { width: 100%; padding: 8px; font-size: .76rem; }
  .p-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: .66rem; }

  /* Почему: компактные плитки */
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .feat { padding: 20px; }
  .feat.big { grid-column: auto; }
  .feat.big h3 { font-size: 1.35rem; }
  .feat h3 { font-size: 1.05rem; }
  .feat.big p, .feat p { font-size: .92rem; }
  .feat .f-ico { width: 42px; height: 42px; }

  /* Категории-чипсы меньше */
  .cats-head { margin-bottom: 22px; }
  .cat-chip { width: 116px; }
  .cc-img { width: 100px; height: 100px; }
  .cc-name { font-size: .88rem; }

  /* О бренде */
  .brand-top { grid-template-columns: 1fr; gap: 16px; margin-bottom: 14px; }
  .brand-intro h2 { font-size: 1.45rem; }
  .brand-intro p { font-size: .96rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat .num { font-size: 1.7rem; }

  /* Бегущая строка */
  .marquee { padding: 12px 0; }
  .marquee .m-item { font-size: .76rem; padding: 0 16px; gap: 10px; }

  /* CTA / формы */
  .cta { padding: 24px; }
  .cta-inner { gap: 22px; }
  .cta h2 { font-size: 1.5rem; }
  .form { padding: 20px; }

  /* Футер */
  .footer { padding: 40px 0 26px; }
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer .f-brand { grid-column: 1 / -1; }

  /* Страница товара */
  .pr-grid { gap: 20px; }
  .pr-info h1 { font-size: 1.4rem; }
  .pr-price { font-size: 1.55rem; }
  .pr-actions { gap: 10px; }
  .pr-actions .btn { flex: 1; }
  .pr-thumb { width: 56px; height: 56px; }
  .pr-details { margin-top: 30px; }
  .pr-block { padding: 20px; }

  /* Плашки-модалки */
  .call-box { padding: 32px 22px; }
  .call-number { font-size: clamp(1.5rem, 8vw, 2rem); }

  /* Плавающая кнопка компактнее */
  .fab { right: 14px; bottom: 14px; padding: 11px 17px; font-size: .86rem; }
}

@media (max-width: 400px) {
  .grid-products { gap: 10px; }
  .footer .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =====================================================================
   КЛИКАБЕЛЬНЫЕ КАРТОЧКИ + СТРАНИЦА ТОВАРА
   ===================================================================== */
.p-card { cursor: pointer; }
.p-more { pointer-events: none; }

/* Хлебные крошки */
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: .82rem; letter-spacing: .02em; margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--dim); }

/* Раскладка товара */
.pr-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: start; }
.pr-main { border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, var(--panel-2), var(--panel)); border: 1px solid var(--hair); aspect-ratio: 3/4; display: grid; place-items: center; }
.pr-main img { width: 100%; height: 100%; object-fit: contain; }
.pr-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pr-thumb { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); background: var(--panel); padding: 0; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-thumb:hover { transform: translateY(-2px); border-color: var(--glass-brd); }
.pr-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.pr-info { display: flex; flex-direction: column; gap: 14px; }
.pr-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; }
.pr-rating { font-family: var(--f-mono); color: var(--muted); font-size: .92rem; }
.pr-rating .star { color: var(--accent); }
.pr-tags { margin: 2px 0; }
.pr-price { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.pr-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pr-note { color: var(--dim); font-size: .82rem; margin-top: 6px; }

/* Описание / характеристики / комплектация */
.pr-details { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.pr-block { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); padding: 30px; }
.pr-block .kicker { margin-bottom: 18px; }
.pr-block p { color: var(--muted); font-size: 1.04rem; line-height: 1.7; margin: 0; }
.pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specs { display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: .95rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-k { color: var(--muted); }
.spec-v { color: var(--text); text-align: right; }
.kit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.kit li { position: relative; padding-left: 26px; color: var(--muted); font-size: .96rem; }
.kit li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--molten); }

/* FAQ — раскрывающийся аккордеон */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; font-weight: 600; font-size: 1.04rem; color: var(--text); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-a { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0; padding: 0 0 20px; }

@media (max-width: 1040px) {
  .pr-grid { grid-template-columns: 1fr; gap: 28px; }
  .pr-two { grid-template-columns: 1fr; }
}

/* =====================================================================
   ПЛАШКА С НОМЕРОМ ТЕЛЕФОНА (модалка «Позвонить»)
   ===================================================================== */
.call-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.call-modal.open { display: flex; animation: fadeUp .25s var(--ease); }
.call-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.call-box { position: relative; z-index: 1; width: 100%; max-width: 580px; text-align: center; padding: 40px 48px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--glass-brd); box-shadow: var(--shadow); }
.call-box::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); background: radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 60%); pointer-events: none; }
.call-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--glass-brd); color: var(--muted); font-size: .95rem; }
.call-x:hover { color: var(--text); background: var(--surface-2); }
.call-kicker { position: relative; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; margin-bottom: 16px; }
.call-number { position: relative; display: block; white-space: nowrap; font-weight: 700; font-size: clamp(1.35rem, 5vw, 2.05rem); letter-spacing: -.02em; color: var(--text); margin-bottom: 28px; }
.call-number:hover { color: var(--accent); }
.call-actions { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Модалка «Написать» (Telegram / MAX) */
.write-sub { position: relative; color: var(--muted); font-size: .95rem; margin: 0 0 22px; }
.write-actions { position: relative; display: grid; gap: 12px; }
.write-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; border-radius: var(--pill); font-weight: 700; font-size: 1rem; border: 1px solid var(--glass-brd); transition: transform .2s var(--ease), background .2s, border-color .2s; }
.write-btn:hover { transform: translateY(-2px); }
.write-btn svg { width: 22px; height: 22px; }
.write-btn.tg { background: #229ED9; color: #fff; border-color: transparent; }
.write-btn.tg:hover { background: #1b8ec5; }
.write-btn.max { background: var(--surface); color: var(--text); }
.write-btn.max:hover { background: var(--surface-2); border-color: var(--accent); }
.max-badge { display: inline-grid; place-items: center; min-width: 42px; height: 24px; padding: 0 7px; border-radius: 7px; background: linear-gradient(135deg, #8A5CFF, #4D6BFF); color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: .72rem; letter-spacing: .02em; }

/* =====================================================================
   СОГЛАСИЕ НА ОБРАБОТКУ ДАННЫХ + СТРАНИЦА ПОЛИТИКИ
   ===================================================================== */
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--muted); line-height: 1.45; cursor: pointer; margin: 2px 0; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 12px 0 6px; letter-spacing: -.02em; }
.legal .legal-upd { font-family: var(--f-mono); color: var(--dim); font-size: .82rem; margin: 0 0 26px; }
.legal h2 { font-size: 1.18rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal .legal-note { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 16px 18px; color: var(--muted); font-size: .92rem; margin: 22px 0 8px; }
.legal .ph { color: var(--accent); font-family: var(--f-mono); font-size: .92em; }

/* ===== Галерея товара: стрелки на фото ===== */
.pr-main { position: relative; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,19,24,.5); color: #fff; border: 1px solid var(--glass-brd); backdrop-filter: blur(6px); font-size: 26px; line-height: 1; cursor: pointer; z-index: 3; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.pr-main:hover .gal-arrow { opacity: 1; }
.gal-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
@media (hover: none) { .gal-arrow { opacity: 1; } }

/* ===== Лайтбокс: фото на весь экран ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,9,12,.94); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb-close, .lb-arrow { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); cursor: pointer; z-index: 2; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s; }
.lb-close:hover, .lb-arrow:hover { background: var(--accent); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lb-prev { left: 3vw; }
.lb-next { right: 3vw; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .04em; }
@media (max-width: 640px) { .lb-arrow { width: 44px; height: 44px; font-size: 26px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 12px; right: 12px; } }