/* ============ FREELUX — design tokens ============ */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: 90px;
}
img, svg { display: block; max-width: 100%; }

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
  --text-hero: clamp(2.6rem, 1.2rem + 4.5vw, 5.2rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;

  --radius-sm: 0.4rem; --radius-md: 0.7rem; --radius-lg: 1.1rem; --radius-xl: 1.6rem; --radius-full: 999px;

  /* FREELUX brand colors — from the logo, no foreign hues */
  --anthracite: #33363b;
  --anthracite-deep: #14151a;
  --anthracite-2: #1c1e22;
  --accent: #ff8a1e;
  --accent-2: #f5820c;
  --neutral-light: #f7f7f5;
}

/* ---- Dark theme (default) ---- */
[data-theme='dark'] {
  --bg: var(--anthracite-deep);
  --surface: var(--anthracite-2);
  --surface-2: #23252b;
  --surface-offset: #2a2d33;
  --border: #35373d;
  --divider: #2b2d33;
  --text: #f2f1ee;
  --text-muted: #a8a7a3;
  --text-faint: #6f6e6b;
  --text-inverse: #14151a;
  --glow-strength: 1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.55);
}

/* ---- Light theme ---- */
[data-theme='light'] {
  --bg: var(--neutral-light);
  --surface: #ffffff;
  --surface-2: #fbfbf9;
  --surface-offset: #efeeea;
  --border: #ddd9d2;
  --divider: #e6e3dd;
  --text: var(--anthracite);
  --text-muted: #6c6f75;
  --text-faint: #a3a5aa;
  --text-inverse: #f7f7f5;
  --glow-strength: 0;
  --shadow-sm: 0 1px 2px rgba(30,30,30,0.06);
  --shadow-md: 0 8px 24px rgba(30,30,30,0.08);
  --shadow-lg: 0 20px 50px rgba(30,30,30,0.12);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--space-6); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.header__inner { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-3); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; position: relative; width: 210px; aspect-ratio: 1185 / 310; overflow: hidden; background: transparent; border-radius: 5px; }
.brand-logo img { position: absolute; width: 129.6203%; max-width: none; height: auto; left: -14.7679%; top: -109.6774%; }
.brand-logo__dark { display: none; }
[data-theme='dark'] .brand-logo, .footer .brand-logo { background: #14151a; }
[data-theme='dark'] .brand-logo__light, .footer .brand-logo__light { display: none; }
[data-theme='dark'] .brand-logo__dark, .footer .brand-logo__dark { display: block; }
.footer__brand { flex-wrap: wrap; }
.logo__svg { width: 168px; height: auto; }
.logo__text { fill: var(--text); }
.logo__module { transition: fill 0.3s ease, stroke 0.3s ease; }
.logo__module--outline { fill: none; stroke: var(--text); stroke-width: 2.4; }
.logo__module--outline-inv { fill: none; stroke: var(--text-muted); stroke-width: 2.4; }
.logo__module--accent { fill: var(--accent); }
.logo__module--a { fill: none; stroke: var(--text); stroke-width: 2; opacity: 0; }

.nav { display: flex; gap: var(--space-6); flex: 1; justify-content: center; }
.nav a { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav a:hover { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.header__phone { font-size: var(--text-sm); font-weight: 700; color: var(--text); white-space: nowrap; transition: color 0.2s; }
.header__phone:hover { color: var(--accent); }
@media (max-width: 1180px) { .header__phone { display: none; } }
.theme-toggle, .lang-toggle {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle { width: auto; padding: 0 var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.03em; gap: 0; }
.lang-toggle button { padding: 6px 7px; min-height: 32px; border-radius: var(--radius-full); color: inherit; font: inherit; letter-spacing: inherit; opacity: 0.45; cursor: pointer; transition: opacity 0.2s, color 0.2s; }
.lang-toggle button:hover { opacity: 1; color: var(--accent); }
.lang-toggle button.is-active { opacity: 1; color: var(--accent); }
.lang-toggle__sep { opacity: 0.35; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun, .icon-moon { display: none; }
[data-theme='dark'] .icon-sun { display: block; }
[data-theme='light'] .icon-moon { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--accent { background: var(--accent); color: #1a1200; box-shadow: 0 0 0 0 rgba(255,138,30,0); }
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) calc(45% * var(--glow-strength) + 15%), transparent); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-5); font-size: var(--text-xs); }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 28px; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 84vw);
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--space-2); padding: 90px var(--space-6) var(--space-6);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  z-index: 90;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--divider); font-size: var(--text-base); }

/* ============ Hero ============ */
.hero { position: relative; min-height: min(820px, 92vh); display: flex; align-items: center; overflow: hidden; background: #10151e; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__photo--light { opacity: 0; }
[data-theme='light'] .hero__photo--dark { opacity: 0; }
[data-theme='light'] .hero__photo--light { opacity: 1; }
[data-theme='light'] .hero { background: #f7f7f5; }
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #10151ef2 0%, #10151ed9 34%, #10151e66 53%, transparent 70%), linear-gradient(0deg, var(--bg), transparent 18%);
}
[data-theme='light'] .hero__gradient {
  background: linear-gradient(90deg, #f7f7f5fa 0%, #f7f7f5e6 34%, #f7f7f566 53%, transparent 70%), linear-gradient(0deg, var(--bg), transparent 12%);
}
[data-theme='light'] .hero__title,
[data-theme='light'] .hero__subtitle { color: #33363b; }
[data-theme='light'] .hero__kpis .kpi span { color: #c9c8c4; }
[data-theme='light'] .patent-badge { border-color: #b65313; color: #a9470a; background: #ffffffb3; }
[data-theme='light'] .hero .btn--ghost { border-color: #777b80; color: #33363b; background: #ffffff80; }
[data-theme='light'] .hero .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: var(--space-24); }
.hero__inner > * { max-width: 52%; }
.hero .hero__title { font-size: clamp(2.6rem, 4.3vw, 4.5rem); color: #f2f1ee; }
.hero .hero__subtitle { color: #f2f1ee; }
[data-theme='light'] .hero .hero__title, [data-theme='light'] .hero .hero__subtitle { color: #33363b; }
[data-theme='light'] .hero__tagline { color: #a9470a; }
.hero .patent-badge { max-width: max-content; }
.patent-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklab, var(--accent) 50%, var(--border));
  color: var(--accent); font-size: var(--text-xs); font-weight: 600; margin-bottom: var(--space-6);
}
.hero__title { font-size: var(--text-hero); font-weight: 800; color: var(--text); margin-bottom: var(--space-5); max-width: 16ch; }
.hero__subtitle { font-size: var(--text-lg); color: var(--text); max-width: 42ch; margin-bottom: var(--space-2); font-weight: 500; }
.hero__tagline { font-size: var(--text-base); color: var(--accent); font-weight: 600; margin-bottom: var(--space-10); }
.hero__cta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: 0; }
.hero__kpis { display: flex; gap: var(--space-10); flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; gap: var(--space-1); }
.kpi strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--accent); font-weight: 700; }
.kpi span { font-size: var(--text-xs); color: var(--text-muted); max-width: 20ch; }

/* ============ Sections ============ */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--offset { background: var(--surface); }
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-4);
}
.section__title { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-5); max-width: 22ch; }
.section__lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 62ch; margin-bottom: var(--space-12); }

/* ============ Tech section ============ */
.tech-section { position: relative; overflow: hidden; isolation: isolate; }
.tech-section__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tech-section__photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: center 30%; }
.tech-section__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,0.88) 0%, rgba(12,13,16,0.93) 40%, var(--bg) 92%);
}
[data-theme='light'] .tech-section__gradient {
  background: linear-gradient(180deg, rgba(247,247,245,0.88) 0%, rgba(247,247,245,0.94) 40%, var(--bg) 92%);
}
[data-theme='light'] .tech-section { background: var(--bg); }
.tech-section .container { position: relative; z-index: 1; }
.tech-section .eyebrow { color: var(--accent); }
.tech-section .section__title,
.tech-section .section__lead { color: #f2f1ee; }
.tech-section .section__lead { color: #c9c8c4; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-16); }
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8); overflow: hidden; transition: border-color 0.25s, transform 0.25s;
}
.tech-card__image {
  display: block; width: calc(100% + 4rem); max-width: none;
  height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin: -2rem -2rem 1.5rem; background: #191c22;
  border-bottom: 1px solid var(--border);
}
.tech-section .tech-card {
  background: color-mix(in oklab, var(--anthracite-deep) 78%, transparent);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.tech-section .tech-card h3 { color: #f2f1ee; }
.tech-section .tech-card p { color: #b9b8b4; }
[data-theme='light'] .tech-section .section__title,
[data-theme='light'] .tech-section .tech-card h3 { color: var(--text); }
[data-theme='light'] .tech-section .section__lead,
[data-theme='light'] .tech-section .tech-card p { color: #555b63; }
[data-theme='light'] .tech-section .eyebrow { color: #a9470a; }
[data-theme='light'] .tech-section .tech-card {
  background: rgba(255,255,255,0.9);
  border-color: #ddd9d2;
  box-shadow: var(--shadow-sm);
}
[data-theme='light'] .tech-section .tech-card:hover { border-color: var(--accent); }
.tech-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tech-card__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: var(--space-5); border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.tech-card__icon svg { width: 26px; height: 26px; }
.tech-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.tech-card p { font-size: var(--text-sm); color: var(--text-muted); }


.frame-block { background: var(--surface-offset); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-10); margin-bottom: var(--space-12); }
.frame-block h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.frame-block p { font-size: var(--text-sm); color: var(--text-muted); max-width: none; }

.spec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); margin-bottom: var(--space-12); }
.spec { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; }
.spec strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--accent); margin-bottom: var(--space-2); font-weight: 700; }
.spec span { font-size: var(--text-xs); color: var(--text-muted); }


/* ============ Products ============ */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-bottom: var(--space-8); }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-card__photo { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-offset); }
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.product-card:hover .product-card__photo img { transform: scale(1.05); }
.product-card__icon {
  position: absolute; bottom: var(--space-3); left: var(--space-3); width: 30px; height: 30px;
  color: var(--accent); background: color-mix(in oklab, var(--anthracite-deep) 75%, transparent);
  border-radius: var(--radius-sm); padding: 5px; backdrop-filter: blur(4px);
}
.product-card__icon svg { width: 100%; height: 100%; }
.product-card h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; margin: var(--space-4) var(--space-6) var(--space-2); letter-spacing: 0.02em; }
.product-card p { font-size: var(--text-sm); color: var(--text-muted); margin: 0 var(--space-6) var(--space-6); }

.smart-option {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 8%, var(--surface)), var(--surface));
  margin-bottom: var(--space-16); position: relative;
}
.smart-option::before {
  content: '\2726'; position: absolute; top: var(--space-6); right: var(--space-8); color: var(--accent); font-size: var(--text-xl); opacity: 0.6;
}
.smart-option h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); color: var(--accent); }
.smart-option p { font-size: var(--text-sm); color: var(--text-muted); max-width: 640px; }


/* ============ Catalog ============ */
.catalog-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-8); }
.filter-chip {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--border);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.filter-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--accent); color: var(--text); background: color-mix(in oklab, var(--accent) 10%, transparent); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-10); }
.symbol-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  transition: border-color 0.2s, transform 0.2s;
}
.symbol-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.symbol-card__icon { width: 56px; height: 56px; color: var(--accent); }
.symbol-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; filter: drop-shadow(0 0 calc(6px * var(--glow-strength)) color-mix(in oklab, currentColor 80%, transparent)); }
.symbol-card__icon--photo { width: 72px; height: 72px; }
.symbol-card__icon--photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 calc(8px * var(--glow-strength)) rgba(255,138,30,0.25)); }
.symbol-card__name { font-size: var(--text-xs); text-align: center; color: var(--text); font-weight: 600; }
.symbol-card__size { font-size: var(--text-xs); color: var(--text-faint); }

.size-toggle { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-16); font-size: var(--text-sm); color: var(--text-muted); }
.size-toggle__buttons { display: flex; gap: var(--space-2); }
.size-toggle__buttons button { padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; }
.size-toggle__buttons button.is-active { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }

.compositions-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.compositions__title { font-size: var(--text-lg); margin: 0; }
.compositions__series-label { font-size: var(--text-sm); color: var(--accent); font-weight: 600; }
.compositions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-10); }
.composition-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; }
.composition-svg { width: 100%; height: 90px; color: var(--text-muted); margin-bottom: var(--space-3); }
.composition-card strong { display: block; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.composition-card span { font-size: var(--text-xs); color: var(--text-muted); }

.disclaimer, .rules-note { background: var(--surface-offset); border-radius: var(--radius-md); padding: var(--space-5); margin-bottom: var(--space-4); }
.disclaimer p, .rules-note p { font-size: var(--text-xs); color: var(--text-muted); max-width: none; }

/* ============ Custom vector ============ */
.transform-row { display: flex; align-items: center; justify-content: center; gap: var(--space-8); margin-bottom: var(--space-10); flex-wrap: wrap; }
.transform-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.transform-svg { width: 110px; height: 110px; color: var(--text-muted); }
.transform-card span { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.transform-card--glow span { color: var(--accent); }
.transform-arrow { width: 40px; height: 24px; color: var(--accent); flex-shrink: 0; }

.no-limit-badge {
  display: flex; align-items: center; gap: var(--space-3); background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--border)); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); margin-bottom: var(--space-10); color: var(--accent); font-weight: 600; font-size: var(--text-sm);
}
.no-limit-badge svg { flex-shrink: 0; width: 22px; height: 22px; }

.requirements-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-12); }
.req { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.req strong { display: block; font-size: var(--text-sm); color: var(--accent); margin-bottom: var(--space-2); }
.req p { font-size: var(--text-sm); color: var(--text-muted); }

.custom-process { display: flex; align-items: flex-start; gap: 0; position: relative; }
.cp-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); flex: 1; min-width: 0; text-align: center; position: relative; }
.cp-step::before {
  content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.cp-step:first-child::before { display: none; }
.cp-step span {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1a1200;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm);
  flex-shrink: 0; position: relative; z-index: 1;
}
.cp-step p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.3; padding-inline: var(--space-1); }

/* ============ Process ============ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-bottom: var(--space-16); }
.pstep { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.pstep__n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1a1200; align-items: center; justify-content: center; font-weight: 700; margin-bottom: var(--space-4); }
.pstep h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.pstep p { font-size: var(--text-sm); color: var(--text-muted); }
.pstep--wide { grid-column: span 2; }
.substeps { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.substep { display: flex; gap: var(--space-3); align-items: baseline; }
.substep span { flex-shrink: 0; font-size: var(--text-xs); font-weight: 700; color: var(--accent); width: 24px; }
.substep p { font-size: var(--text-sm); color: var(--text); }

.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.advantage { padding: var(--space-5); border-left: 2px solid var(--accent); }
.advantage strong { display: block; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.advantage p { font-size: var(--text-xs); color: var(--text-muted); }

/* ============ Calculator ============ */
.calc-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); margin-bottom: var(--space-16); align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); }
.calc-form label { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.calc-form select, .calc-form input[type="number"] {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: var(--text-sm);
}
.calc-form select:focus, .calc-form input:focus { border-color: var(--accent); }
.calc-checks { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--divider); }
.calc-form label.check { display: flex; align-items: center; gap: var(--space-3); flex-direction: row; font-size: var(--text-sm); color: var(--text); cursor: pointer; text-align: left; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.calc-file-row { padding-top: var(--space-2); border-top: 1px solid var(--divider); }
.file-drop { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; font-size: var(--text-xs); color: var(--text-faint); margin-top: var(--space-2); }

.calc-result {
  background: var(--anthracite-deep); color: #fff; border-radius: var(--radius-lg); padding: var(--space-10);
  display: flex; flex-direction: column; gap: var(--space-3); position: sticky; top: 110px;
}
.calc-result__label { font-size: var(--text-xs); color: #a8a7a3; text-transform: uppercase; letter-spacing: 0.06em; }
.calc-result__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--accent); text-shadow: 0 0 calc(24px * var(--glow-strength)) color-mix(in oklab, var(--accent) 60%, transparent); }
.calc-parts { display: grid; gap: var(--space-2); margin-block: var(--space-2) var(--space-3); padding-block: var(--space-3); border-block: 1px solid rgba(255,255,255,0.12); }
.calc-parts__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); font-size: var(--text-sm); color: #cfcfcc; }
.calc-parts__row strong { color: #f2f1ee; font-weight: 700; white-space: nowrap; }
.calc-result__note { font-size: var(--text-xs); color: #a8a7a3; }
.calc-result__disclaimer { font-size: var(--text-xs); color: #7a7975; margin-top: var(--space-4); max-width: none; }

/* ============ Lead form ============ */
.lead-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-10); }
.lead-block h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.lead-block > p { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-6); }
.lead-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-bottom: var(--space-8); }
.lead-checklist li { font-size: var(--text-sm); color: var(--text); padding-left: var(--space-6); position: relative; }
.lead-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.lead-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 520px; }
.lead-email { margin-bottom: 20px; color: var(--accent); }
.lead-contacts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); align-items: baseline; margin-bottom: 20px; }
.lead-contacts a { color: var(--accent); font-weight: 700; }
.lead-contacts__phone { font-family: var(--font-display); font-size: var(--text-xl); white-space: nowrap; }
.lead-contacts__mail { font-size: var(--text-base); }
.lead-contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead-form .lead-trap { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.lead-error { max-width: 520px; margin-top: 16px; color: var(--text); padding: 16px; border: 1px solid var(--accent); border-radius: 8px; }
.lead-form button:disabled { opacity: .6; cursor: wait; }
.lead-form input, .lead-form textarea {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: var(--text-sm); font-family: inherit; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-success { padding: var(--space-6); background: color-mix(in oklab, var(--accent) 10%, transparent); border-radius: var(--radius-md); }
.lead-success p { color: var(--accent); font-weight: 600; }

/* ============ Footer ============ */
.footer { background: var(--anthracite-deep); color: #cfcfcc; padding-block: var(--space-12); }
.footer__kpis { padding-bottom: var(--space-12); margin-bottom: var(--space-12); border-bottom: 1px solid #35373d; }
.site-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.site-kpis .kpi span { color: #c9c8c4; max-width: 28ch; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); align-items: center; }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); max-width: 34ch; }
.logo__module--outline-inv { fill: none; stroke: #cfcfcc; stroke-width: 2.4; }
.footer__links { display: flex; gap: var(--space-6); font-size: var(--text-sm); }
.footer__links { flex-wrap: wrap; }
.footer__links a:hover { color: var(--accent); }
.footer__legal { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); color: #7a7975; text-align: right; }

/* ============ Responsive ============ */
@media (max-width: 1160px) {
  .nav { display: none; }
  .nav-burger { display: flex; flex-shrink: 0; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-burger { display: flex; }
  .tech-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .compositions-grid { grid-template-columns: repeat(2, 1fr); }
  .compositions-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .process-steps, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .pstep--wide { grid-column: span 2; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .requirements-row { grid-template-columns: 1fr; }
  .lead-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header__actions .btn--sm { display: none; }
  .tech-grid, .products-grid, .spec-grid, .compositions-grid, .process-steps, .advantages-grid { grid-template-columns: 1fr; }
  .pstep--wide { grid-column: span 1; }
  .hero__kpis { gap: var(--space-6); }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__legal { text-align: left; }
  .cp-step span { width: 26px; height: 26px; font-size: var(--text-xs); }
  .cp-step p { font-size: 10px; }
  .cp-step::before { top: 13px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Keep the illuminated objects outside the text area on narrow screens. */
@media (max-width: 1000px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__inner { order: -1; padding-block: 64px 24px; }
  .hero__inner > * { max-width: 100%; }
  .hero .hero__title { max-width: 17ch; }
  .hero .hero__subtitle { max-width: 42ch; }
  .hero__bg { position: relative; width: 100%; height: clamp(280px, 48vw, 450px); }
  .hero__photo { object-position: right 60%; }
  .hero__gradient { background: linear-gradient(180deg, #10151e 0%, transparent 25%, transparent 80%, var(--bg) 100%); }
  [data-theme='light'] .hero__gradient { background: linear-gradient(180deg, #f7f7f5 0%, transparent 25%, transparent 80%, var(--bg) 100%); }
}
@media (max-width: 480px) {
  .header__inner { gap: 10px; padding-inline: 12px; }
  .header .brand-logo { width: clamp(126px, 40vw, 180px); }
  .header__actions { gap: 6px; margin-left: auto; }
  .lang-toggle { padding-inline: 4px; }
  .lang-toggle button { padding: 6px 5px; }
  .hero__inner { padding-top: 48px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; justify-content: center; }
  .site-kpis { grid-template-columns: 1fr; gap: 24px; }
}
