/* ============================================================
   FtMgnt — Apple-style dark glassmorphism
   Shared design tokens & components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --bg:        #07080C;
  --bg-1:      #0B0D13;
  --bg-2:      #10131C;
  --glass:     rgba(255, 255, 255, 0.045);
  --glass-2:   rgba(255, 255, 255, 0.07);
  --glass-3:   rgba(255, 255, 255, 0.10);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.15);

  /* text */
  --text:      #ECEEF2;
  --text-dim:  #A2A8B4;
  --text-faint:#6A707E;

  /* accent — teal neon */
  --accent:    #21E6C1;
  --accent-2:  #14C9A8;
  --accent-3:  #0FA98C;
  --accent-soft: rgba(33, 230, 193, 0.14);
  --accent-line: rgba(33, 230, 193, 0.30);
  --glow:      rgba(33, 230, 193, 0.45);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* shadow */
  --shadow-1: 0 8px 30px -12px rgba(0,0,0,0.6);
  --shadow-2: 0 24px 70px -24px rgba(0,0,0,0.8);
  --glow-sm: 0 0 0 1px rgba(33,230,193,0.25), 0 8px 30px -8px rgba(33,230,193,0.35);
  --glow-lg: 0 0 40px -6px rgba(33,230,193,0.55);

  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;

  /* generative-canvas chip colours (overridden in light theme) */
  --canvas-chip: rgba(255,255,255,0.16);
  --canvas-tint: rgba(33,230,193,0.5);
  --gloss-grad: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 38%);

  color-scheme: dark;
}

/* ============================================================
   LIGHT THEME — «Қазақ айдентикасы»: песок · бирюза · золото
   ============================================================ */
:root[data-theme="light"] {
  --bg:        #F4EEE1;
  --bg-1:      #EFE7D6;
  --bg-2:      #E8DDC8;
  --glass:     rgba(255, 255, 255, 0.55);
  --glass-2:   rgba(255, 255, 255, 0.72);
  --glass-3:   rgba(255, 255, 255, 0.9);
  --border:    rgba(46, 34, 14, 0.12);
  --border-2:  rgba(46, 34, 14, 0.22);

  --text:      #20251F;
  --text-dim:  #5A5446;
  --text-faint:#8C8674;

  --accent:    #0E9C86;
  --accent-2:  #0C7C8A;
  --accent-3:  #0A6E63;
  --accent-soft: rgba(14, 124, 138, 0.12);
  --accent-line: rgba(14, 124, 138, 0.34);
  --glow:      rgba(14, 124, 138, 0.28);
  --gold:      #C0922E;

  --shadow-1: 0 8px 30px -14px rgba(72, 54, 22, 0.28);
  --shadow-2: 0 24px 70px -26px rgba(72, 54, 22, 0.34);
  --glow-sm: 0 0 0 1px rgba(14,124,138,0.18), 0 8px 26px -10px rgba(14,124,138,0.32);
  --glow-lg: 0 0 32px -8px rgba(14,124,138,0.32);

  --canvas-chip: rgba(46, 34, 14, 0.16);
  --canvas-tint: rgba(14, 124, 138, 0.42);
  --gloss-grad: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 42%);
  color-scheme: light;
}
/* light-theme element fixes (hardcoded dark surfaces → tokens) */
:root[data-theme="light"] .nav.scrolled { background: rgba(247, 243, 234, 0.82); }
:root[data-theme="light"] .mobile-menu { background: rgba(247, 243, 234, 0.96); }
:root[data-theme="light"] .eyebrow { color: var(--gold); }
:root[data-theme="light"] .eyebrow::before { background: var(--gold); }
:root[data-theme="light"] .bg-orbs span:nth-child(1){ background: radial-gradient(circle, rgba(14,124,138,0.16), transparent 65%); }
:root[data-theme="light"] .bg-orbs span:nth-child(2){ background: radial-gradient(circle, rgba(192,146,46,0.16), transparent 65%); }
:root[data-theme="light"] .bg-orbs span:nth-child(3){ background: radial-gradient(circle, rgba(14,124,138,0.12), transparent 65%); }
:root[data-theme="light"] .bg-grain { opacity: 0.05; mix-blend-mode: multiply; }
:root[data-theme="light"] body::after { opacity: 0.02; }
:root[data-theme="light"] { --grad-from: #243B33; }

/* ============================================================
   CATEGORY GRID + THEME CHIPS
   ============================================================ */
.theme-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-dim);
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--border); cursor: pointer;
  transition: all .25s var(--ease); white-space: nowrap; font-family: inherit;
}
.tchip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.tchip:hover { color: var(--text); border-color: var(--border-2); }
.tchip.active { color: var(--text); border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--r-md); text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--border);
  border-left: 3px solid var(--c, var(--accent));
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--c, var(--accent)); background: var(--glass-2); }
.cat-card__thumb {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.cat-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; z-index: 1; }
.cat-card__name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.cat-card__num { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cat-card__num b { color: var(--c, var(--accent)); font-weight: 700; }
.cat-card__dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); opacity: .55; }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .cat-card__thumb { flex-basis: 48px; width: 48px; height: 48px; } }
.back-link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-dim); text-decoration: none; transition: color .2s var(--ease); }
.back-link:hover { color: var(--accent); }

/* ============================================================
   CART
   ============================================================ */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: all .25s var(--ease); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cart-btn:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #04221C; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
:root[data-theme="light"] .cart-badge { color: #fff; }

.cart-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(4,6,10,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 999; width: 420px; max-width: 92vw; height: 100%; display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--border); box-shadow: var(--shadow-2); transform: translateX(105%); transition: transform .35s var(--ease); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 20px; font-weight: 700; }
.cart-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--glass); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 24px; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 60px 10px; font-size: 15px; display: flex; flex-direction: column; align-items: center; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: var(--bg-2) center/cover no-repeat; box-shadow: inset 0 0 0 1px var(--border); }
.cart-meta { flex: 1; min-width: 0; }
.cart-name { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.cart-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cart-step { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-step button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--glass); color: var(--text); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cart-step button:hover { border-color: var(--accent-line); color: var(--accent); }
.cart-step span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-step .cs-del { margin-left: auto; }
.cart-step .cs-del svg { width: 15px; height: 15px; }
.cart-foot { padding: 18px 24px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.cart-total b { font-size: 22px; font-weight: 800; }
.cart-clear { width: 100%; margin-top: 10px; background: none; border: 0; color: var(--text-faint); font-size: 13.5px; cursor: pointer; font-family: inherit; }
.cart-clear:hover { color: var(--text); }

.cart-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 1001; background: var(--accent); color: #04221C; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: var(--r-pill); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
:root[data-theme="light"] .cart-toast { color: #fff; }

/* B2B case galleries + lightbox */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.case-card { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--glass); border: 1px solid var(--border); cursor: zoom-in; transition: transform .25s var(--ease), border-color .25s var(--ease); aspect-ratio: 1/1; }
.case-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.case-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--text-dim); background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 16px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(4,6,10,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lightbox__x { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }

/* theme toggle button (shared) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: all .25s var(--ease);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.theme-toggle:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }

html { transition: background .4s var(--ease); }
body, .nav.scrolled, .glass, .chip, .card-product, .sec-card, .contact-card,
.feature, .step, .review, .seg, .cta-band {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* fixed generative background layers */
#bg-canvas {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none;
}
.bg-orbs {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden;
}
.bg-orbs span {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: orb-float 26s var(--ease) infinite alternate;
}
.bg-orbs span:nth-child(1){ width: 540px; height: 540px; left: -8%; top: -12%;
  background: radial-gradient(circle, rgba(33,230,193,0.30), transparent 65%); }
.bg-orbs span:nth-child(2){ width: 620px; height: 620px; right: -12%; top: 18%;
  background: radial-gradient(circle, rgba(33,150,230,0.20), transparent 65%); animation-delay: -8s; }
.bg-orbs span:nth-child(3){ width: 480px; height: 480px; left: 24%; bottom: -18%;
  background: radial-gradient(circle, rgba(33,230,193,0.16), transparent 65%); animation-delay: -15s; }
@keyframes orb-float {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(40px,-30px,0) scale(1.12); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .bg-orbs span { animation: none; }
  html { scroll-behavior: auto; }
}

/* layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--accent-line);
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.display { font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); line-height: 1.6; max-width: 56ch; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.accent-text { color: var(--accent); }
.grad-text {
  background: linear-gradient(120deg, var(--grad-from, #fff) 18%, var(--accent) 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- glass primitive ---------- */
.glass {
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04221C; box-shadow: var(--glow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(33,230,193,0.4), 0 16px 44px -10px rgba(33,230,193,0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass); border-color: var(--border-2); color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: var(--glass-3); border-color: var(--accent-line); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* whatsapp tint */
.btn-wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #03261A; box-shadow: 0 10px 34px -12px rgba(37,211,102,0.6); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(37,211,102,0.7); }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.badge-dim { background: var(--glass-2); color: var(--text-dim); border-color: var(--border); }

/* chip */
.chip {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--border); cursor: pointer;
  transition: all .25s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { color: #04221C; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04221C; font-weight: 800; font-size: 19px; box-shadow: var(--glow-sm);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name b { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-dim); text-decoration: none; white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-pill); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.current { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--border);
}
.lang button {
  font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 11px; border-radius: var(--r-pill); border: none; cursor: pointer;
  background: transparent; color: var(--text-faint); transition: all .25s var(--ease);
}
.lang button.active { background: var(--accent); color: #04221C; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: rgba(7,8,12,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 26px; display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; transition: .3s var(--ease);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a { font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; padding: 13px 6px; border-bottom: 1px solid var(--border); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 170px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.hero-stat .num b { color: var(--accent); }
.hero-stat .lbl { font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }
.hero-stat + .hero-stat { padding-left: 34px; border-left: 1px solid var(--border); }

/* hero magnet showcase */
.magnet-stage { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.magnet {
  position: relative; width: 64%; aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow-2), 0 0 60px -10px var(--glow);
  transform: rotate(-6deg); will-change: transform;
}
.magnet::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 42%); }
.magnet img, .magnet .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.magnet-float { position: absolute; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255,255,255,0.85);
  box-shadow: var(--shadow-2); }
.magnet-float.a { width: 30%; aspect-ratio:1/1; right: 4%; top: 6%; transform: rotate(8deg); animation: bob 7s ease-in-out infinite; }
.magnet-float.b { width: 26%; aspect-ratio:1/1; left: 2%; bottom: 8%; transform: rotate(-12deg); animation: bob 8s ease-in-out infinite reverse; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(var(--rot,0)); } 50%{ transform: translateY(-14px) rotate(var(--rot,0)); } }

.ph { background-size: cover; background-position: center; }

/* ============================================================
   FEATURE / VALUE CARDS
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  padding: 32px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.feature:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  margin-bottom: 22px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 9px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ============================================================
   PRODUCT CARD (3D tilt)
   ============================================================ */
.tilt { perspective: 1000px; }
.card-product {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-product:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2), 0 0 50px -16px var(--glow); }
.card-product .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.card-product .thumb .img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: translateZ(0) scale(1.02); transition: transform .5s var(--ease); }
.card-product:hover .thumb .img { transform: scale(1.06); }
.card-product .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.22), transparent 45%);
  transition: opacity .3s var(--ease); mix-blend-mode: overlay;
}
.card-product:hover .glare { opacity: 1; }
.card-product .thumb .tag { position: absolute; top: 14px; left: 14px; transform: translateZ(40px); }
.card-product .body { padding: 22px 22px 24px; transform: translateZ(30px); }
.card-product .body h3 { font-size: 19px; margin-bottom: 4px; }
.card-product .body .desc { font-size: 13.5px; color: var(--text-dim); min-height: 38px; }
.card-product .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.card-product .price { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.card-product .price small { font-size: 13px; font-weight: 500; color: var(--text-faint); }
.card-product .cta-row { display: flex; gap: 10px; margin-top: 18px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border); position: relative; }
.step .n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border);
  transition: border-color .3s var(--ease), transform .3s var(--ease); text-decoration: none; color: var(--text);
}
.contact-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.contact-card .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card .k { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-card .v { font-size: 17px; font-weight: 700; margin-top: 2px; }
.contact-card .sub { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ============================================================
   FORM
   ============================================================ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.input, .textarea, select.input {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s; outline: none;
}
.input:focus, .textarea:focus, select.input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 110px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

/* ============================================================
   CALCULATOR / PREVIEW (preview.html)
   ============================================================ */
.calc-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 32px; align-items: start; }
.calc-panel { padding: 30px; }

.dropzone {
  position: relative; border: 1.5px dashed var(--border-2); border-radius: var(--r-md);
  padding: 40px 24px; text-align: center; cursor: pointer; transition: all .25s var(--ease);
  background: var(--glass);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.dropzone .dz-ic svg { width: 28px; height: 28px; }
.dropzone p { font-size: 15px; font-weight: 600; }
.dropzone .dz-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.preview-stage {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px;
}
.magnet-preview {
  position: relative; width: 320px; height: 320px; max-width: 78vw; max-height: 78vw;
  border-radius: 18px; overflow: hidden; background: #0c0e14;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-2), 0 0 60px -14px var(--glow);
  touch-action: none; cursor: grab;
}
.magnet-preview.grabbing { cursor: grabbing; }
.magnet-preview.shape-round { border-radius: 50%; }
.magnet-preview.shape-heart { -webkit-clip-path: path('M160,300 C-40,170 30,20 160,90 C290,20 360,170 160,300 Z'); clip-path: path('M160,300 C-40,170 30,20 160,90 C290,20 360,170 160,300 Z'); border-radius: 0; }
.magnet-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.magnet-preview .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-faint); text-align: center; padding: 24px; }
.magnet-preview .empty svg { width: 46px; height: 46px; opacity: 0.5; margin-bottom: 10px; }
.magnet-preview .gloss { position: absolute; inset: 0; pointer-events: none; background: var(--gloss-grad); }
.preview-size-note { font-size: 13px; color: var(--text-dim); }
.preview-size-note b { color: var(--text); }

.seg { display: grid; grid-auto-flow: column; gap: 6px; padding: 5px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md); }
.seg button {
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text-dim);
  padding: 11px 10px; border: none; border-radius: 11px; cursor: pointer; background: transparent;
  transition: all .22s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.seg button small { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.seg button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04221C; }
.seg button.active small { color: #06392F; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 5px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: var(--glass-2); color: var(--text); font-size: 22px; font-weight: 600; display: grid; place-items: center; transition: .2s; }
.stepper button:hover { background: var(--accent); color: #04221C; }
.stepper input { width: 56px; text-align: center; background: transparent; border: none; color: var(--text); font-family: var(--font); font-size: 18px; font-weight: 700; outline: none; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--glass-3); outline: none; margin: 14px 0 4px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-soft), var(--glow-sm); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-soft); }

.calc-line { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--text-dim); padding: 10px 0; }
.calc-line + .calc-line { border-top: 1px solid var(--border); }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border-2); }
.calc-total .t-label { font-size: 15px; color: var(--text-dim); }
.calc-total .t-val { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.calc-total .t-val b { color: var(--accent); }
.save-pill { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: var(--r-pill); }

/* control block */
.ctl { margin-bottom: 26px; }
.ctl > .ctl-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.ctl > .ctl-h span { color: var(--text-faint); font-weight: 500; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review { padding: 28px; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--glass-2), var(--glass)); border: 1px solid var(--border); break-inside: avoid; }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.stars svg { width: 17px; height: 17px; }
.review p { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review .ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #04221C; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.review .who .nm { font-size: 14.5px; font-weight: 700; }
.review .who .mt { font-size: 12.5px; color: var(--text-faint); }
.masonry { columns: 3; column-gap: 22px; }
.masonry > * { margin-bottom: 22px; }

.rating-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 30px 34px; }
.rating-hero .big { font-size: 60px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rating-hero .big b { color: var(--accent); }

/* ============================================================
   B2B
   ============================================================ */
.tier {
  padding: 32px; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border); transition: .35s var(--ease); position: relative;
}
.tier:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.tier.feat { border-color: var(--accent-line); box-shadow: 0 0 50px -18px var(--glow); }
.tier .qty { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.tier .pr { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.tier .pr small { font-size: 16px; color: var(--text-faint); font-weight: 500; }
.tier .save { font-size: 13px; color: var(--accent); font-weight: 700; }
.tier ul { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.tier ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.tier ul li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* generic CTA band */
.cta-band {
  border-radius: var(--r-xl); padding: 60px; text-align: center;
  background: linear-gradient(150deg, rgba(33,230,193,0.12), var(--glass));
  border: 1px solid var(--accent-line); position: relative; overflow: hidden;
}
.cta-band::after { content:''; position:absolute; width: 400px; height: 400px; border-radius:50%; right:-80px; top:-120px; background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(40px); opacity:.5; }
.cta-band > * { position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 16px; }
.footer a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
/* hidden start-state applies ONLY in a visible tab that can animate;
   captures/hidden iframes & reduced-motion show content immediately */
@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---------- catalog section cards ---------- */
.sec-card {
  display: flex; align-items: center; gap: 18px; padding: 24px 26px;
  border-radius: var(--r-lg); background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.sec-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.sec-card.active { border-color: var(--accent-line); box-shadow: 0 0 40px -16px var(--glow); }
.sec-card .sec-ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.sec-card .sec-ic svg { width: 24px; height: 24px; }
.sec-card .sec-meta { flex: 1; min-width: 0; }
.sec-card .sec-meta h3 { font-size: 18px; margin-bottom: 3px; }
.sec-card .sec-meta p { font-size: 13.5px; color: var(--text-dim); }
.sec-card .sec-arrow { color: var(--text-faint); transition: color .3s, transform .3s var(--ease); flex: none; }
.sec-card:hover .sec-arrow { color: var(--accent); transform: translate(2px, -2px); }
.sec-card .sec-arrow svg { width: 20px; height: 20px; }

/* catalog search + context bar */
.cat-search { position: relative; max-width: 460px; }
.cat-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-faint); pointer-events: none; }
.cat-search input { width: 100%; font-family: var(--font); font-size: 15px; color: var(--text); background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 14px 18px 14px 44px; outline: none; transition: border-color .25s, box-shadow .25s; }
.cat-search input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.ctx-bar { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ctx-bar.show { display: flex; }
.ctx-bar .ctx-k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ctx-bar .ctx-v { font-size: 15px; font-weight: 700; color: var(--text); }
.ctx-bar .ctx-x { margin-left: auto; font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); }
.ctx-bar .ctx-x:hover { color: var(--text); border-color: var(--border-2); }
.cat-empty { padding: 40px; text-align: center; color: var(--text-dim); border: 1px dashed var(--border-2); border-radius: var(--r-lg); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .magnet-stage { max-width: 440px; margin: 0 auto; }
  .calc-grid { grid-template-columns: 1fr; }
  .preview-stage { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right { gap: 8px; }
  .nav-right > .btn { display: none; }        /* «Заказать магнит» прячем — есть в hero и в меню */
  .theme-toggle, .cart-btn { width: 34px; height: 34px; }
  .nav-inner { padding-top: 14px; padding-bottom: 14px; }
  .section { padding: 76px 0; }
  .hero { padding: 130px 0 60px; }
  .grid-3, .grid-2, .steps, .grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stat + .hero-stat { padding-left: 0; border-left: none; }
  .hero-stats { gap: 22px; }
  .container { padding: 0 20px; }
  .cta-band { padding: 40px 24px; }
  .calc-total .t-val { font-size: 32px; }
}
