/* ==========================================================================
   PRINT3D LAB — LUXURY INDUSTRIAL B2B DESIGN SYSTEM
   Structure of this file:
     1. Tokens            5. Header / navigation / mobile drawer
     2. Base & reset      6. Hero (index) + page hero
     3. Typography        7. Components (cards, bento, pipeline, forms, ...)
     4. Layout & buttons  8. Portfolio, modal, toast, intro, footer, utilities
   Breakpoints used everywhere:   640 / 768 / 1024 / 1100 (nav) / 1280
   Rules of thumb:  mobile-first · no !important · no width:100vw · every grid
   uses minmax(min(100%, X), 1fr) so nothing can ever push past the viewport.
   ========================================================================== */

/* ==========================================================================
   SELF-HOSTED FONTS (OFL) — variable, Latin + Cyrillic. No third-party requests.
   Oswald  — display / headings (condensed, has real Cyrillic glyphs)
   Geist   — body text
   JetBrains Mono — technical labels
   ========================================================================== */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/oswald-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Look-alike fallbacks: same widths and line metrics as the web fonts above, so nothing jumps when they arrive
   (measured 2026-10-10: Oswald is 82.6 % as wide as Arial on this site's text, Geist 102.6 %, JetBrains Mono = Courier). */
@font-face {
  font-family: 'Oswald Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'), local('Roboto');
  size-adjust: 82.6%; ascent-override: 144.5%; descent-override: 35%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'), local('Roboto');
  size-adjust: 102.6%; ascent-override: 95.4%; descent-override: 28%; line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Courier New'), local('Liberation Mono'), local('Menlo');
  size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%;
}

/* ================= 1. TOKENS ================= */
:root {
  /* Surfaces */
  --bg-dark: #07080b;
  --bg-deep: #0b0d13;
  --bg-surface: #10131c;
  --bg-surface-hover: #151924;
  --bg-card: #0f1118;

  /* Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);

  /* Accents: precision bronze / amber */
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-blue: #38bdf8;
  --accent-green: #22c55e;

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #7c8ba1;

  /* Legacy aliases — older pages still reference these names */
  --text-sub: var(--text-muted);
  --brand-orange: var(--accent-amber);
  --brand-cyan: var(--accent-blue);

  /* Typography (all three families ship real Cyrillic glyphs, self-hosted) */
  --font-display: 'Oswald', 'Oswald Fallback', 'Bahnschrift', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font-display);
  --font-body: 'Geist', 'Geist Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Fluid type scale */
  --fs-hero: min(clamp(34px, 5.6vw, 68px), 9.3vw);   /* the 9.3vw cap keeps the longest word ("ПАРАМЕТРИЧЕСКИЕ") on one line down to 280px */
  --fs-h2: clamp(28px, 4.1vw, 50px);
  --fs-h3: clamp(21px, 2.4vw, 28px);
  --fs-lead: clamp(15px, 1.4vw + 8px, 17px);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 9999px;

  /* Layout */
  --header-h: 65px;                     /* desktop: 64 px bar + border; main.js writes the measured value (ResizeObserver) */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 100px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Motion */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Same value before the script runs, so the first screen does not jump (measured: 57 px phones, 107 px with the quick-sections bar) */
@media (max-width: 768px) {
  :root { --header-h: 57px; }
  :root:has(.mobile-sections-bar) { --header-h: 107px; }
}

/* ================= 2. BASE & RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);   /* anchors never hide under the fixed header */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }                            /* clip (not hidden) keeps position:sticky working */
}

body {
  min-width: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(245, 158, 11, 0.06), transparent 70%),
    linear-gradient(180deg, #07080b 0%, #0a0c12 50%, #050608 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img, video, svg, canvas, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
svg { flex-shrink: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, select, textarea { min-width: 0; max-width: 100%; }
textarea { resize: vertical; }
[hidden] { display: none !important; }

/* Visible keyboard focus (the old sheet removed it everywhere) */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 3px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }   /* they draw their own ring */

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100001;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent-amber); color: #07080b; font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Anything that is a grid/flex child may shrink below its content width — this alone
   removes most "block pushes past the screen" bugs. */
.grid > *, .flex > *, [class*="grid"] > *, [class*="-row"] > *, [class*="-grid"] > * { min-width: 0; }

/* ================= 3. TYPOGRAPHY ================= */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.h-section { font-size: var(--fs-h2); color: #fff; }
.h-sub     { font-size: var(--fs-h3); color: #fff; }

.text-gradient-amber,
.text-gradient-orange {
  background: linear-gradient(135deg, #ffffff 10%, #fbbf24 60%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

p, li, h1, h2, h3, h4, h5, h6, figcaption, label, td, th, dd, dt { overflow-wrap: break-word; }
h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ================= 4. LAYOUT PRIMITIVES & BUTTONS ================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 2200px) { .container { max-width: 1440px; } }

.section       { padding-block: var(--section-y); }
.section-main  { padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 90px); background: var(--bg-dark); }
.section-alt   { background: var(--bg-deep); border-block: 1px solid var(--border-subtle); }
.section-head  { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 50px); }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: var(--fs-lead); }

/* auto-fit grid that can never overflow: minimum track = min(100%, --min) */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
  gap: var(--gap, 20px);
}
/* legacy names kept for the existing markup */
.case-study-grid, .grid-2col-responsive { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.grid-3col-responsive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.grid-4col-responsive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) {
  .case-study-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-2col-responsive { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (min-width: 640px)  { .grid-3col-responsive, .grid-4col-responsive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3col-responsive { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4col-responsive { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.form-row-2col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .form-row-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; } }

.mat-spec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.mat-spec-row strong { text-align: right; }

.cta-actions-cluster, .cta-actions, .hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
}
.cta-actions-cluster, .cta-actions { justify-content: center; }
.hero-actions { margin-top: 28px; }

/* Buttons — text wraps instead of overflowing (the old nowrap was the #1 cause of spill-outs) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 100%;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.25;
  text-align: center; white-space: normal; text-wrap: balance;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-lg { padding: 15px clamp(22px, 4vw, 34px); font-size: 15.5px; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.catalog-btn-wide { max-width: 100%; }

.btn-primary { background: #ffffff; color: #07080b; box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15); }
.btn-secondary {
  background: rgba(18, 22, 34, 0.75); color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
  color: #ffffff; font-weight: 700;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (hover: hover) {
  .btn-primary:hover { background: #f1f5f9; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25); }
  .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
  .btn-amber:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}
.btn:active { transform: scale(0.98); }

/* Badges / tags / pills */
.section-badge, .tech-tag {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; line-height: 1.35; text-transform: uppercase;
  background: rgba(245, 158, 11, 0.08); color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 14px;
}
.tech-tag { margin-bottom: 0; padding: 5px 12px; }
.tech-tag-sm { font-size: 10px; padding: 4px 10px; }
.section-badge.blue, .tech-tag.cyan {
  background: rgba(56, 189, 248, 0.08); color: var(--accent-blue); border-color: rgba(56, 189, 248, 0.25);
}
.hud-pill {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text-muted);
}

/* ================= 5. HEADER / NAVIGATION / MOBILE DRAWER ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7, 8, 11, 0.78);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 8, 11, 0.94);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1360px; height: 56px; margin-inline: auto;
  padding-inline: max(14px, var(--safe-l)) max(14px, var(--safe-r));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 769px)  { .header-container { height: 64px; padding-inline: max(24px, var(--safe-l)) max(24px, var(--safe-r)); } }

.brand-logo { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.brand-emblem {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 9px; overflow: hidden;
  background: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.brand-emblem img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: 0.01em;
  color: #ffffff; white-space: nowrap;
}
.brand-pro-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.35);
}
.brand-city-badge {
  display: none;
  align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap;
}
.brand-city-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}
@media (min-width: 769px) { .brand-city-badge { display: flex; } }

/* Desktop navigation — only from 1100px up; below that the drawer takes over (no more "menu vanishes on tablets") */
.nav-links { display: none; align-items: center; gap: clamp(16px, 1.7vw, 28px); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-heading); font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-muted); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #ffffff; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent-amber); border-radius: 1px;
}
.nav-chevron { font-size: 9px; opacity: 0.6; }

.nav-dropdown-wrapper { position: relative; display: inline-flex; align-items: center; height: 64px; }
.nav-dropdown {
  position: absolute; top: calc(100% - 6px); left: -16px;
  width: 330px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px;
  background: rgba(11, 14, 21, 0.98);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium); border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1000;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
}
.nav-dropdown::before { content: ''; position: absolute; top: -20px; left: -12px; right: -12px; height: 24px; }   /* hover bridge */
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown,
.nav-dropdown-wrapper.dropdown-open .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.dropdown-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.dropdown-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(3px); }
.dropdown-icon { display: flex; flex: 0 0 auto; color: var(--accent-amber); }
.dropdown-icon.is-blue { color: var(--accent-blue); }
.dropdown-icon.is-green { color: var(--accent-green); }
.dropdown-card-title { font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; color: #ffffff; line-height: 1.3; }
.dropdown-card-desc { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-phone-apple { display: none; font-family: var(--font-heading); font-size: 14px; font-weight: 500; letter-spacing: 0.03em; color: var(--text-muted); white-space: nowrap; }
.header-phone-apple:hover { color: #ffffff; }
.btn-apple-action {
  display: none; align-items: center; white-space: nowrap;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  background: #ffffff; color: #07080b;
}
.btn-apple-action:hover { background: #f1f5f9; box-shadow: 0 0 20px rgba(245, 158, 11, 0.35); transform: translateY(-1px); }

/* language switch (RU | UZ) */
.lang-switch { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-medium); font-family: var(--font-heading); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; }
.lang-opt { padding: 5px 9px; border-radius: var(--radius-pill); line-height: 1; color: var(--text-muted); }
.lang-opt.is-active { background: rgba(245, 158, 11, 0.18); color: #ffffff; }
a.lang-opt:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
@media (min-width: 480px) { .lang-switch { display: inline-flex; } }

.mobile-call-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #ffffff;
}
.mobile-call-icon-btn:hover { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.5); color: #4ade80; }
.mobile-toggle-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.38); color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}
.mobile-toggle-badge:active { transform: scale(0.96); background: rgba(245, 158, 11, 0.25); }
.mobile-burger-bars { display: flex; flex-direction: column; gap: 3.5px; width: 16px; }
.mobile-burger-bars span { display: block; width: 100%; height: 2px; background: var(--accent-amber); border-radius: 2px; }
.mobile-toggle-label { font-family: var(--font-heading); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; color: #ffffff; }

/* very narrow phones (Galaxy Fold cover, iPhone SE 1st gen): keep brand + call + burger on one row */
@media (max-width: 379px) {
  .header-container { gap: 8px; padding-inline: max(10px, var(--safe-l)) max(10px, var(--safe-r)); }
  .brand-logo { gap: 8px; }
  .brand-title { font-size: 16px; }
  .mobile-toggle-label { display: none; }
  .mobile-toggle-badge { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 299px) { .brand-pro-badge { display: none; } }
@media (min-width: 640px) { .btn-apple-action { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .mobile-call-icon-btn, .mobile-toggle-badge { display: none; }
}
@media (min-width: 1360px) { .header-phone-apple { display: inline; } }

/* Quick section chips under the header (index only, phones) */
.mobile-sections-bar { display: none; }
@media (max-width: 768px) {
  .mobile-sections-bar {
    display: block; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 7px max(12px, var(--safe-l));
    background: rgba(11, 14, 21, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-sections-bar::-webkit-scrollbar { display: none; }
  .mobile-sections-track { display: inline-flex; gap: 6px; white-space: nowrap; }
  .sec-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0; font-family: var(--font-heading); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  }
  .sec-chip:active { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.5); color: #fff; }
  .sec-chip.chip-amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; font-weight: 600; }
}

/* Full-screen drawer — works on every width below the desktop nav breakpoint (and on landscape phones) */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(18px, var(--safe-r)) max(18px, var(--safe-b)) max(18px, var(--safe-l));
  background: rgba(7, 8, 11, 0.97);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
@media (min-width: 1100px) { .mobile-menu { display: none; } }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff; font-size: 16px; font-weight: 700;
}
.mobile-menu-close-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.15); }
.mobile-menu-scrollable {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 16px 0; display: flex; flex-direction: column; gap: 8px;
}
.menu-section-caption { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.1em; padding-left: 6px; margin-top: 8px; }
.menu-section-caption:first-child { margin-top: 0; }
.drawer-link-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-link-card:active, .drawer-link-card:focus-visible { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }
.drawer-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; font-size: 18px; }
.drawer-link-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: #ffffff; line-height: 1.3; }
.drawer-link-sub { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.mobile-drawer-footer { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
@media (min-width: 640px) and (max-height: 520px), (min-width: 900px) {
  /* wide/short screens: menu list in two columns so it fits without endless scrolling */
  .mobile-menu-scrollable { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 14px; }
  .menu-section-caption { grid-column: 1 / -1; }
  .mobile-drawer-footer { flex-direction: row; }
  .mobile-drawer-footer .btn { flex: 1 1 0; }
}

/* ================= 6a. HERO — cinematic video stage (index) =================
   Mobile-first "compact" layout is the default: one screen, content stacked in a single grid
   cell so the frame is always exactly as tall as its tallest card (nothing can be clipped).
   The scroll-scrubbed 220vh sticky stage is an enhancement that only switches on for
   screens that are big enough (JS additionally falls back to compact if the card ever
   would not fit — see initHeroStage in main.js). */
.hero-stage { position: relative; background: #07080b; }
.hero-sticky-frame {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; background: #07080b;
}
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-video-bg video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.88;
}
.hero-cinematic-vignette {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.74) 0%, rgba(7, 8, 11, 0.38) 42%, rgba(7, 8, 11, 0.9) 100%);
}

.hero-story-container {
  position: relative; z-index: 3;
  width: 100%; max-width: 1360px; margin-inline: auto;
  padding: calc(var(--header-h) + clamp(18px, 4vh, 44px)) max(clamp(16px, 5vw, 40px), var(--safe-r)) 84px max(clamp(16px, 5vw, 40px), var(--safe-l));
  display: grid; align-items: center;
  pointer-events: none;
}
.hero-story-card {
  grid-area: 1 / 1;
  width: 100%; max-width: 720px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}
.hero-story-card.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

.hero-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(27px, min(8.4vw, 8.5vh + 12px), 46px);
  line-height: 1.08; letter-spacing: 0.02em;
  color: #ffffff; text-wrap: balance; overflow-wrap: break-word;
  margin: clamp(6px, 1.2vh, 14px) 0 clamp(10px, 1.8vh, 18px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.hero-accent-amber {
  color: #ffb800; -webkit-text-fill-color: #ffb800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 184, 0, 0.45);
}
.hero-desc {
  max-width: 580px; margin: 0 0 clamp(12px, 2vh, 20px);
  font-size: clamp(13.5px, 0.8vw + 10px, 16px); font-weight: 500; line-height: 1.55;
  color: #cbd5e1; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.hero-desc strong { color: #ffffff; font-weight: 700; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: clamp(12px, 2.2vh, 24px); }
.hero-pills .hud-pill {
  background: rgba(14, 18, 28, 0.75); border-color: rgba(255, 255, 255, 0.2); color: #f8fafc;
  padding: 5px 12px; font-size: 11.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.5);
}
.hero-pills .hud-pill strong { font-weight: 700; color: #ffffff; }
.hero-story-card .section-badge {
  background: rgba(245, 158, 11, 0.14); color: #ffd043; border-color: rgba(245, 158, 11, 0.45);
  font-weight: 700; margin-bottom: 0; padding: 5px 12px; font-size: 11px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.section-badge.is-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.4); }
.hero-actions-group { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hero-actions-group .btn { padding: 12px 22px; font-size: 14px; }
@media (max-width: 640px) { .hero-actions-group { flex-direction: column; align-items: stretch; } }

.hero-floating-nav {
  position: absolute; z-index: 10;
  left: max(clamp(16px, 5vw, 40px), var(--safe-l)); right: max(16px, var(--safe-r));
  bottom: max(14px, var(--safe-b));
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-floating-nav::-webkit-scrollbar { display: none; }
.stage-nav-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(14, 18, 28, 0.82); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.5);
  color: #cbd5e1; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; cursor: pointer;
  transition: var(--transition);
}
.stage-nav-pill span { color: var(--accent-amber); font-weight: 700; }
.stage-nav-pill:hover, .stage-nav-pill.active {
  background: rgba(245, 158, 11, 0.22); border-color: rgba(251, 191, 36, 0.6); color: #ffffff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero-fullscreen-scroll-hint {
  display: none;
  position: absolute; z-index: 10; right: max(40px, var(--safe-r)); bottom: max(18px, var(--safe-b));
  align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(7, 8, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 11px; color: #ffffff; pointer-events: none;
  transition: opacity 0.3s ease;
}
.hero-fullscreen-scroll-hint .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber); animation: pulseAmber 2s infinite;
}
@keyframes pulseAmber { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.4); opacity: 1; } }

/* Big enough screens: scroll-scrubbed sticky stage */
@media (min-width: 769px) and (min-height: 561px) {
  .hero-stage:not(.is-compact) { height: 220vh; height: 220svh; }
  .hero-stage:not(.is-compact) .hero-sticky-frame { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
  .hero-stage:not(.is-compact) .hero-video-bg video { object-position: 65% center; opacity: 1; }
  .hero-stage:not(.is-compact) .hero-cinematic-vignette {
    background:
      linear-gradient(90deg, rgba(7, 8, 11, 0.88) 0%, rgba(7, 8, 11, 0.82) 28%, rgba(7, 8, 11, 0.45) 50%, rgba(7, 8, 11, 0.1) 68%, transparent 82%),
      linear-gradient(180deg, rgba(7, 8, 11, 0.6) 0%, transparent 12%, transparent 80%, rgba(7, 8, 11, 0.95) 100%);
  }
  .hero-stage:not(.is-compact) .hero-title { font-size: clamp(28px, min(4.7vw, 6.6vh), 62px); letter-spacing: 0.025em; }
  .hero-stage:not(.is-compact) .hero-actions-group .btn { padding: clamp(9px, 1.4vh, 13px) clamp(16px, 1.8vw, 26px); }
  .hero-stage:not(.is-compact) .hero-fullscreen-scroll-hint { display: flex; }
  .hero-stage:not(.is-compact) .hero-floating-nav { overflow: visible; right: auto; bottom: max(clamp(14px, 2.5vh, 32px), var(--safe-b)); }
  .hero-stage:not(.is-compact) .hero-story-container { padding-bottom: 96px; }
}
@media (min-width: 769px) and (min-height: 561px) and (max-height: 760px) {
  .hero-stage:not(.is-compact) .hero-desc { font-size: 13px; line-height: 1.45; }
  .hero-stage:not(.is-compact) .hero-pills .hud-pill { font-size: 11px; padding: 4px 10px; }
}

/* ================= 6b. PAGE HERO (inner pages) ================= */
.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 8vw, 110px)) 0 clamp(32px, 5vw, 60px);
  background: radial-gradient(ellipse 900px 500px at 80% 10%, rgba(255, 87, 34, 0.15) 0%, var(--bg-dark) 65%);
}
.page-hero-title { font-size: var(--fs-hero); color: #fff; margin-top: 14px; }
.page-hero-lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 680px; margin-top: 16px; line-height: 1.6; }
.page-hero .tech-tag { margin-bottom: 0; }

/* Sections used by the inner pages */
.section-title { font-size: var(--fs-h2); color: #fff; }
.section-cta { padding: clamp(48px, 6vw, 80px) 0; background: var(--bg-deep); border-top: 1px solid var(--border-subtle); text-align: center; }
.cta-title { font-size: clamp(26px, 4vw, 44px); color: #fff; }
.cta-lead { font-size: var(--fs-lead); color: var(--text-muted); margin: 12px auto 28px; max-width: 540px; }

.media-frame {
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.media-frame img { width: 100%; height: auto; display: block; }

.feature-stack { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-card { padding: clamp(16px, 2vw, 22px); }
.feature-title { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.35; }
.feature-text { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.6; }

.gallery-block { margin-top: clamp(40px, 6vw, 60px); }
.gallery-title { font-size: clamp(20px, 2.6vw, 28px); color: #fff; margin-bottom: 24px; text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card-img-wrapper.gallery-thumb { height: clamp(180px, 22vw, 220px); }
.card-content.gallery-body { padding: 16px; }
.gallery-name { font-size: 16px; color: #fff; margin-top: 8px; line-height: 1.3; }
.gallery-text { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; }

/* flex (not grid) so a lone card in the last row is centred instead of hanging on the left */
.stats-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: clamp(40px, 6vw, 60px); }
.stats-strip > .stat-card { flex: 1 1 240px; min-width: 0; max-width: min(100%, 340px); }
.stat-card {
  padding: 24px 20px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
}
/* The number/word scales with the CARD width (container units), so even the longest word ("МНОГОЦВЕТНОСТЬ")
   always fits on one line — no mid-word breaks whatever the grid does. Older browsers get the safe fixed range. */
.stat-card { container-type: inline-size; }
.stat-value { font-size: clamp(18px, 1vw + 10px, 22px); font-size: clamp(18px, 10.5cqw, 32px); color: var(--accent-amber); overflow-wrap: break-word; }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.value-card { padding: 28px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.value-icon { font-size: 24px; margin-bottom: 10px; color: var(--accent-amber); }
.value-icon.is-blue { color: var(--accent-blue); }
.value-title { font-size: 17px; color: #fff; }
.value-text { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }

.meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.meta-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--accent-amber); overflow-wrap: anywhere; }
.meta-label.is-cyan { color: var(--accent-blue); }
.meta-label.is-dim { color: var(--text-dim); }
.meta-label.is-green { color: #22c55e; }
.meta-label.is-red { color: #ef4444; }

/* Service rows (services.html): image + text, stacks below 900px */
.service-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; }
.card-img-wrapper.service-media { height: 100%; min-height: 220px; }
.service-body { padding: clamp(20px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.service-title { font-size: clamp(22px, 2.6vw, 32px); color: #fff; margin-top: 14px; }
.service-text { font-size: 15px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.check-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px 16px; font-size: 13.5px; color: var(--text-muted); }
.service-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; }
@media (min-width: 900px) { .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .card-img-wrapper.service-media { min-height: 300px; } }
.page-stack { display: flex; flex-direction: column; gap: 28px; }

/* Contact page */
a.spotlight-card.channel-card, .channel-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 24px; margin-bottom: 16px; }
.channel-card .meta-label { display: block; }
.channel-value { font-size: clamp(15px, 4.8vw, 20px); font-weight: 700; color: #fff; margin-top: 4px; overflow-wrap: anywhere; }
.channel-note { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.channel-arrow { font-size: 22px; flex: 0 0 auto; white-space: nowrap; }
.info-card { padding: clamp(20px, 3vw, 28px); margin-top: 16px; }
.info-card-row { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; color: var(--text-dim); }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.form-input {
  width: 100%; margin-top: 6px; padding: 12px;
  background: var(--bg-deep); border: 1px solid var(--border-medium); border-radius: var(--radius-sm);
  color: #fff; font-size: 14px; transition: var(--transition);
}
.form-input:focus { border-color: var(--accent-amber); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
select.form-input { cursor: pointer; }
.contact-form { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-form .form-row-2col { margin-bottom: 0; }

/* ================= 7. COMPONENTS ================= */
/* Cursor ambient light (fine pointers only, see main.js) */
.cursor-ambient-glow {
  position: fixed; top: 0; left: 0; width: 750px; height: 750px;
  pointer-events: none; z-index: 9990;
  transform: translate(-1000px, -1000px);
  will-change: transform; mix-blend-mode: screen; transition: opacity 0.4s ease;
}
.cursor-glow-aura {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.04) 35%, rgba(245, 158, 11, 0.01) 55%, transparent 75%);
  filter: blur(14px);
}
.cursor-glow-core {
  position: absolute; top: 50%; left: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.06) 50%, transparent 75%);
  filter: blur(8px);
}
@media (pointer: coarse), (max-width: 768px) { .cursor-ambient-glow { display: none; } }

/* Spotlight cards */
.spotlight-card, .bento-card {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
a.spotlight-card { display: block; }
.spotlight-card::before, .bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 158, 11, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.spotlight-card::after, .bento-card::after {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 191, 36, 0.45), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease;
}
@media (hover: hover) {
  .spotlight-card:hover, .bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2); transform: translateY(-4px);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(245, 158, 11, 0.15);
  }
  .spotlight-card:hover::before, .bento-card:hover::before, .spotlight-card:hover::after, .bento-card:hover::after { opacity: 1; }
  .spotlight-card:hover .card-img-wrapper img { transform: scale(1.06); }
}
.pad-lg { padding: clamp(20px, 3vw, 32px); }

.card-img-wrapper { position: relative; width: 100%; height: 220px; overflow: hidden; background: #0d0f15; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.card-img-tall { height: clamp(200px, 26vw, 240px); }
.card-content { position: relative; z-index: 3; padding: clamp(16px, 2.4vw, 24px); }

/* Bento */
.apple-bento-section { padding: var(--section-y) 0; background: var(--bg-dark); }
.apple-bento-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.bento-card {
  min-height: 300px; padding: clamp(20px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.bento-card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.bento-card-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; }
@media (hover: hover) { .bento-card:hover .bento-card-bg img { transform: scale(1.04); opacity: 0.38; } }
.bento-content { position: relative; z-index: 3; }
.bento-stat-num { font-family: var(--font-heading); font-size: clamp(42px, 5vw, 64px); font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.1; }
.stat-unit { font-size: 0.5em; color: var(--accent-amber); font-weight: 600; }
.stat-unit.is-blue { color: var(--accent-blue); }
.bento-stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent-amber); margin-top: 6px; text-transform: uppercase; }
.bento-title { font-family: var(--font-heading); font-size: clamp(19px, 1.6vw + 8px, 22px); font-weight: 600; color: #fff; margin-bottom: 10px; line-height: 1.25; }
.bento-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 560px; }
@media (min-width: 1025px) {
  .apple-bento-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 50px; }
  .bento-span-7 { grid-column: span 7; } .bento-span-5 { grid-column: span 5; } .bento-span-4 { grid-column: span 4; }
  .bento-span-8 { grid-column: span 8; }
  .bento-card { min-height: 380px; }
}

/* Full-cycle pipeline */
.full-cycle-pipeline { position: relative; margin: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 60px); }
.pipeline-track-line {
  display: none; position: absolute; top: 42px; left: 60px; right: 60px; height: 2px; z-index: 0; opacity: 0.3;
  background: linear-gradient(90deg, #38bdf8 0%, #f59e0b 35%, #22c55e 70%, #a855f7 100%);
}
.pipeline-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 641px)  { .pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1081px) { .pipeline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .pipeline-track-line { display: block; } }
.pipeline-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(18px, 2.2vw, 24px);
  background: rgba(15, 17, 24, 0.85); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.pipeline-card-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
@media (hover: hover) { .pipeline-card:hover { box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7); } }
.pipeline-card-cyan:hover { border-color: rgba(56, 189, 248, 0.4); }
.pipeline-card-amber:hover { border-color: rgba(245, 158, 11, 0.4); }
.pipeline-card-green:hover { border-color: rgba(34, 197, 94, 0.4); }
.pipeline-card-purple:hover { border-color: rgba(168, 85, 247, 0.4); }
.pipeline-node-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pipeline-step-node {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.node-cyan { background: rgba(56, 189, 248, 0.15); border-color: #38bdf8; color: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.3); }
.node-amber { background: rgba(245, 158, 11, 0.15); border-color: var(--accent-amber); color: var(--accent-amber); box-shadow: 0 0 14px rgba(245, 158, 11, 0.3); }
.node-green { background: rgba(34, 197, 94, 0.15); border-color: #22c55e; color: #22c55e; box-shadow: 0 0 14px rgba(34, 197, 94, 0.3); }
.node-purple { background: rgba(168, 85, 247, 0.15); border-color: #a855f7; color: #c084fc; box-shadow: 0 0 14px rgba(168, 85, 247, 0.3); }
.pipeline-step-phase { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); text-align: right; }
.pipeline-badge {
  align-self: flex-start; margin-bottom: 12px; padding: 3px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
}
.badge-cyan { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-green { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.pipeline-card-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 8px; letter-spacing: 0.01em; line-height: 1.2; }
@media (min-width: 1081px) and (max-width: 1240px) { .pipeline-card-title { font-size: 20px; } }
.pipeline-card-desc { flex-grow: 1; margin-bottom: 16px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.pipeline-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.pipeline-chip { padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-main); }
.pipeline-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.pipeline-link span { transition: transform 0.2s ease; }
.pipeline-link:hover span { transform: translateX(4px); }
.link-cyan { color: #38bdf8; } .link-amber { color: var(--accent-amber); } .link-green { color: #4ade80; } .link-purple { color: #c084fc; }

/* Comparison slider (clip-path based: both photos always keep identical framing) */
.comparison-container {
  --pos: 50%;
  position: relative; width: 100%; height: clamp(240px, 46vw, 440px);
  overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.comparison-after, .comparison-before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.comparison-after img, .comparison-before img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparison-before { z-index: 2; -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparison-slider-handle {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos);
  width: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
}
.comparison-slider-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #ffffff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); }
.comparison-knob {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffffff; color: #07080b; font-size: 16px; font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.comparison-slider-handle:focus-visible .comparison-knob { outline: 2px solid var(--accent-amber); outline-offset: 3px; }
.comparison-badge {
  position: absolute; bottom: 12px; z-index: 3; max-width: 46%;
  padding: 5px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; line-height: 1.3;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.badge-after { right: 12px; background: rgba(4, 28, 14, 0.85); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.55); }
.badge-before { left: 12px; background: rgba(38, 8, 8, 0.85); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.55); }

/* Case study block (scanning page) */
.case-card { padding: clamp(16px, 3vw, 24px); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.card-img-wrapper.case-media { height: clamp(220px, 32vw, 320px); border-radius: var(--radius-sm); }
.case-title { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; color: #fff; margin-top: 12px; line-height: 1.3; }
.case-text { font-size: 14px; color: var(--text-muted); margin-top: 10px; line-height: 1.65; }
.case-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-blue); }

.mat-head { margin-bottom: 18px; }
.mat-name { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: #fff; margin-top: 10px; line-height: 1.2; }
.mat-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.mat-specs { display: flex; flex-direction: column; gap: 10px; font-size: 13px; border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.mat-specs > div > span { color: var(--text-dim); }
.mat-specs strong { color: #fff; }

/* Ordinary content blocks used on the home page */
.case-steps { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.case-step { display: flex; gap: 14px; align-items: flex-start; }
.case-step-num { flex: 0 0 auto; color: var(--accent-amber); font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
.case-step strong { color: #fff; font-size: 15px; }
.case-step p { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.lead-text { font-size: var(--fs-lead); color: var(--text-muted); margin-top: 16px; line-height: 1.65; }
.card-title-lg { font-family: var(--font-heading); font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.card-text-sm { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.card-link { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent-amber); }
.card-link.is-cyan { color: var(--accent-blue); }

/* ================= Forms: RFQ + calculator ================= */
.rfq-card, .calc-card {
  position: relative; overflow: hidden;
  padding: clamp(18px, 4vw, 44px);
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}
.calc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-amber), transparent); }
.rfq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); }
@media (min-width: 1000px) {
  .rfq-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.rfq-chips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.rfq-chip-label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
  background: var(--bg-deep); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.rfq-chip-label:hover { border-color: var(--border-medium); color: #ffffff; }
.rfq-chip-label input[type="radio"] { accent-color: var(--accent-amber); flex: 0 0 auto; }
.rfq-chip-label input[type="radio"]:checked + span { color: #ffffff; }
.rfq-input {
  display: block; width: 100%; padding: 12px 16px;
  background: var(--bg-deep); border: 1px solid var(--border-medium); border-radius: var(--radius-sm);
  color: #ffffff; font-size: 14px; transition: var(--transition);
}
.rfq-input:focus { border-color: var(--accent-amber); box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.rfq-dropzone, .dropzone {
  padding: 20px; text-align: center; cursor: pointer;
  background: var(--bg-deep); border: 1px dashed var(--border-medium); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.rfq-dropzone svg { margin: 0 auto 6px; }
.rfq-dropzone:hover, .dropzone:hover { border-color: var(--accent-amber); background: rgba(245, 158, 11, 0.04); }
.rfq-side-panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 3vw, 32px);
  background: rgba(16, 19, 28, 0.7); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
}
.rfq-guarantee-list { display: flex; flex-direction: column; gap: 16px; }
.rfq-guarantee-item { display: flex; gap: 14px; align-items: flex-start; }
.rfq-guarantee-item > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.rfq-guarantee-icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle);
}

/* ================= 8a. PORTFOLIO ================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 4vw, 36px); }
.nav-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle);
  font-family: var(--font-heading); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.nav-chip:hover { color: #ffffff; border-color: var(--border-medium); }
.nav-chip.active { background: rgba(245, 158, 11, 0.14); border-color: var(--accent-amber); color: #ffffff; }
.nav-chip .count { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.portfolio-item { cursor: pointer; display: flex; flex-direction: column; }
.portfolio-item .card-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.portfolio-item .pf-desc { margin-bottom: 16px; }
.portfolio-item .pf-specs { margin-top: auto; }
.card-img-wrapper.pf-thumb { height: clamp(200px, 24vw, 250px); }
.pf-title { margin-top: 12px; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.3; }
.pf-desc { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.pf-specs {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
}

/* Lightbox */
.portfolio-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, var(--safe-r)) max(16px, var(--safe-b)) max(16px, var(--safe-l));
  background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.portfolio-modal-overlay.open { opacity: 1; visibility: visible; }
.portfolio-modal-dialog {
  position: relative; width: 100%; max-width: 860px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.96); transition: transform 0.25s ease, max-width 0.25s ease;
}
/* the dialog grows while a 3D model is on screen — it benefits the most from the extra room to inspect the part */
.portfolio-modal-dialog.is-3d { max-width: 1180px; }
.portfolio-modal-overlay.open .portfolio-modal-dialog { transform: scale(1); }
.portfolio-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(7, 8, 11, 0.72); border: 1px solid var(--border-medium); color: #fff; font-size: 24px; line-height: 1;
}
.portfolio-modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.portfolio-modal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
.portfolio-modal-img-col img { width: 100%; height: auto; max-height: min(420px, 46vh); object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.pm-category { margin-bottom: 12px; }
.pm-title { font-size: clamp(19px, 3vw, 22px); color: #fff; margin-bottom: 12px; line-height: 1.3; }
.pm-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.pm-specs { margin-bottom: 24px; padding: 14px 16px; background: var(--bg-deep); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.pm-specs .pf-specs { margin-top: 0; padding-top: 0; border-top: 0; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pm-actions .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .portfolio-modal-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 32px; } }

/* ---- 3D model viewer: a badge on cards that have a model, and a photo/3D toggle inside the modal ---- */
.pf-3d-chip {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(7, 8, 11, 0.72); border: 1px solid rgba(245, 158, 11, 0.4); backdrop-filter: blur(4px);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-amber-light);
}
.portfolio-modal-img-col { position: relative; }
.pm-view-toggle { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.pm-view-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle);
  background: rgba(11, 13, 19, 0.78); backdrop-filter: blur(6px); color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.pm-view-btn:hover { color: #fff; border-color: var(--accent-amber); }
.pm-view-btn.active { background: var(--accent-amber); border-color: var(--accent-amber); color: #07080b; }
.pm-3d-stage {
  position: relative; width: 100%; height: min(640px, 76vh); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); overflow: hidden; touch-action: none;
  background: radial-gradient(circle at 50% 32%, #171b25, #07080b 78%);
  display: none;
}
.pm-3d-stage.active { display: block; }
.pm-3d-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pm-3d-stage canvas:active { cursor: grabbing; }
.pm-3d-hint {
  position: absolute; left: 12px; bottom: 10px; z-index: 2; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.6);
  background: rgba(7, 8, 11, 0.55); padding: 5px 10px; border-radius: var(--radius-pill);
}
.pm-3d-loading, .pm-3d-error {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; text-align: center; padding: 24px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); background: rgba(7, 8, 11, 0.6);
}
.pm-3d-error { display: none; }
.pm-3d-stage.has-error .pm-3d-error { display: flex; }
.pm-3d-spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(245, 158, 11, 0.25); border-top-color: var(--accent-amber); animation: pmSpin 0.8s linear infinite; }
@keyframes pmSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pm-3d-spinner { animation-duration: 1.6s; } }

/* ================= 8b. TOAST + BACK TO TOP ================= */
.site-toast-container {
  position: fixed; z-index: 9999; right: max(16px, var(--safe-r)); bottom: calc(76px + var(--safe-b));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: calc(100vw - 32px); pointer-events: none;
}
.site-toast {
  display: flex; align-items: center; gap: 12px;
  max-width: 420px; padding: 14px 18px;
  background: rgba(14, 17, 24, 0.96); border: 1px solid var(--accent-amber); border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #ffffff; font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translateY(20px); pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-toast.show { opacity: 1; transform: translateY(0); }
.site-toast-icon { flex: 0 0 auto; font-size: 18px; color: var(--accent-amber); }
.site-toast-msg { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .site-toast-container { left: max(16px, var(--safe-l)); align-items: stretch; }
  .site-toast { max-width: none; }
}

.back-to-top-btn {
  position: fixed; z-index: 990; right: max(16px, var(--safe-r)); bottom: calc(20px + var(--safe-b));
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(16, 19, 28, 0.9); border: 1px solid var(--border-medium); color: #ffffff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--bg-surface-hover); border-color: var(--accent-amber); color: var(--accent-amber); }
@media (min-width: 769px) { .back-to-top-btn { right: max(28px, var(--safe-r)); bottom: calc(28px + var(--safe-b)); } .site-toast-container { right: max(28px, var(--safe-r)); bottom: calc(84px + var(--safe-b)); } }

/* ================= 8c. INTRO SPLASH ================= */
.intro-splash-screen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #050608; user-select: none; -webkit-user-select: none;
  opacity: 1; visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s ease;
}
.intro-splash-screen.fade-out { opacity: 0; visibility: hidden; transform: scale(1.04); filter: blur(16px); pointer-events: none; }
/* Phones: no HERO video (the hero shows a still frame instead) — the intro splash still plays, with its own vertical
   cut of the video (see the <source media> tags in index.html). Keep this query identical to NO_VIDEO in main.js. */
@media (max-width: 768px), (max-height: 560px) and (pointer: coarse) {
  .hero-video-bg {
    background: linear-gradient(rgba(7, 8, 11, 0.12), rgba(7, 8, 11, 0.12)), url(../images/hero_poster.jpg) center / cover no-repeat;
  }
}
.intro-ambient-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; pointer-events: none; }
.intro-ambient-glow video { width: 100%; height: 100%; object-fit: cover; filter: blur(60px); opacity: 0.35; transform: scale(1.2); }
.intro-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; overflow: hidden; cursor: pointer; }
.intro-video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-video-vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(circle at center, transparent 65%, rgba(5, 6, 8, 0.6) 100%); }
.intro-hud-top {
  position: absolute; z-index: 10; pointer-events: none;
  top: max(16px, env(safe-area-inset-top, 0px)); left: max(16px, var(--safe-l)); right: max(16px, var(--safe-r));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.intro-brand-badge {
  display: none; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(16, 19, 28, 0.7); border: 1px solid var(--border-medium);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
@media (min-width: 560px) { .intro-brand-badge { display: flex; } }
.intro-radar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-amber); box-shadow: 0 0 10px var(--accent-amber); }
.intro-actions-group { display: flex; align-items: center; gap: 8px; margin-left: auto; pointer-events: auto; }
.intro-hud-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: rgba(16, 19, 28, 0.78); border: 1px solid var(--border-medium);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}
.intro-hud-btn:hover { background: var(--bg-surface-hover); border-color: var(--accent-amber); color: var(--accent-amber); }
.intro-skip-btn { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.45); color: var(--accent-amber-light); }
.intro-skip-btn:hover { background: var(--accent-amber); color: #07080b; }
.intro-skip-arrow { font-size: 14px; transition: transform 0.2s ease; }
.intro-skip-btn:hover .intro-skip-arrow { transform: translateX(3px); }
.intro-hud-bottom {
  position: absolute; z-index: 10; pointer-events: none;
  left: 50%; bottom: max(22px, var(--safe-b)); transform: translateX(-50%);
  width: min(90%, 460px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.intro-progress-bar-track { width: 100%; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.intro-progress-bar-fill { width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, var(--accent-amber), #22c55e); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); transition: width 0.1s linear; }
.intro-hint-text { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }

/* ================= 8d. FOOTER ================= */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 calc(28px + var(--safe-b)); background: #040507; border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: clamp(36px, 5vw, 60px); }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; } }
.footer-col h3, .footer-col h4 { margin-bottom: 18px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.footer-about { max-width: 320px; margin-top: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.footer-col .hud-pill { margin-top: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: #ffffff; }
.footer-address { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding-top: 28px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom-links a { color: var(--text-dim); }
.footer-bottom-links a:hover { color: #ffffff; }
.footer-bottom-links .accent { color: var(--accent-amber); font-weight: 600; }
@media (min-width: 900px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; } }

/* geography block in the footer + city chips */
.footer-geo { margin-bottom: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.footer-geo h3, .footer-geo h4 { margin-bottom: 14px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.footer-geo h3 a, .footer-geo h4 a { color: inherit; }
.footer-geo-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-geo-links a { font-size: 13.5px; color: var(--text-muted); }
.footer-geo-links a:hover { color: #ffffff; }
.geo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.geo-link { padding: 9px 18px; border-radius: var(--radius-pill); background: var(--bg-card); border: 1px solid var(--border-medium); font-size: 14px; color: var(--text-main); }
.geo-link:hover { border-color: rgba(245, 158, 11, 0.5); color: #ffffff; }
.section-title + .card-grid, .section-title + .geo-links { margin-top: 24px; }
.feature-text a { color: #fbbf24; text-decoration: underline; text-decoration-color: rgba(251, 191, 36, 0.4); text-underline-offset: 3px; }
.feature-text a:hover { color: #ffffff; }

/* ================= 8e. 404 ================= */
.error-page {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 64px;
}
.error-inner { width: 100%; max-width: 720px; text-align: center; }
.error-code { margin: 14px 0 6px; font-family: var(--font-heading); font-size: clamp(88px, 22vw, 180px); font-weight: 700; line-height: 1.05; color: #ffffff; text-shadow: 0 0 60px rgba(245, 158, 11, 0.2); }
.error-title { margin-top: 16px; font-size: clamp(22px, 4vw, 34px); color: #ffffff; }
.error-lead { margin: 16px auto 32px; max-width: 520px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.error-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 32px; text-align: left; }
.error-links .spotlight-card { padding: 18px; }
.error-link-kicker { font-family: var(--font-mono); font-size: 11px; color: var(--accent-amber); }
.error-link-title { margin-top: 4px; font-size: 16px; font-weight: 700; color: #fff; }

/* ================= 8f. BLOG ================= */
.blog-section { padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 90px); background: var(--bg-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }

a.spotlight-card.blog-card { display: flex; flex-direction: column; }
.blog-card .card-img-wrapper { height: auto; min-height: 190px; aspect-ratio: 16 / 10; }
.blog-card .card-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.blog-card-title { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: break-word; }
.blog-card-text {
  margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .card-link { margin-top: auto; padding-top: 16px; }

/* newest article = wide "featured" card on large screens */
@media (min-width: 900px) {
  a.spotlight-card.blog-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .blog-card.is-featured .card-img-wrapper { height: 100%; min-height: 340px; aspect-ratio: auto; }
  .blog-card.is-featured .card-content { padding: clamp(24px, 3vw, 40px); justify-content: center; }
  .blog-card.is-featured .blog-card-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
  .blog-card.is-featured .blog-card-text { -webkit-line-clamp: 5; font-size: 15px; }
}
.blog-more { display: flex; justify-content: center; margin-top: 36px; }
.blog-empty { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); }
.blog-empty-title { font-size: clamp(24px, 3.4vw, 36px); color: #fff; }
.blog-empty p { margin: 14px auto 26px; max-width: 480px; color: var(--text-muted); }

/* ---- article page ---- */
.article-wrap { padding: calc(var(--header-h) + clamp(20px, 3vw, 36px)) 0 clamp(40px, 6vw, 72px); background: radial-gradient(ellipse 900px 480px at 82% 0%, rgba(255, 87, 34, 0.12) 0%, var(--bg-dark) 65%); }
.article-container { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: clamp(16px, 2.4vw, 24px); font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.breadcrumbs a:hover { color: #ffffff; }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs [aria-current] { color: var(--text-muted); overflow-wrap: anywhere; }

.article-cover { margin: 0 0 clamp(24px, 3.4vw, 36px); overflow: hidden; background: #0d0f15; border: 1px solid var(--border-medium); border-radius: var(--radius-md); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.article-cover img { width: 100%; height: auto; max-height: min(560px, 68vh); object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.article-meta .dot { opacity: 0.5; }
.article-title { margin-bottom: clamp(20px, 3vw, 32px); font-size: clamp(28px, 4.6vw, 48px); color: #ffffff; }

.article-body { font-size: clamp(16px, 0.5vw + 14px, 18px); line-height: 1.78; color: #cbd5e1; overflow-wrap: break-word; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { margin-top: 1.9em; font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; text-transform: uppercase; color: #ffffff; }
.article-body h3 { margin-top: 1.6em; font-family: var(--font-heading); font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; line-height: 1.25; color: #ffffff; }
.article-body strong, .article-body b { color: #ffffff; font-weight: 700; }
.article-body a { color: var(--accent-amber-light); text-decoration: underline; text-decoration-color: rgba(251, 191, 36, 0.4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body ul, .article-body ol { padding-left: 0; }
.article-body li { position: relative; padding-left: 1.5em; }
.article-body li + li { margin-top: 0.45em; }
.article-body ul li::before { content: ''; position: absolute; left: 0.25em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-amber); }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; padding-left: 2.1em; }
.article-body ol li::before { content: counter(item) '.'; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent-amber); }
.article-body blockquote { padding: 6px 0 6px 20px; border-left: 3px solid var(--accent-amber); color: #e2e8f0; font-style: italic; }
.article-body code { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); font-family: var(--font-mono); font-size: 0.88em; color: #f8fafc; }
.article-body hr { border: 0; border-top: 1px solid var(--border-subtle); }

.article-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-muted); }
.article-back:hover { color: #ffffff; }

/* ---- "read more" block ---- */
.related { padding: clamp(40px, 6vw, 64px) 0; background: var(--bg-deep); border-block: 1px solid var(--border-subtle); }
.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.related-title { font-size: clamp(22px, 3vw, 30px); color: #ffffff; }
.related-all { font-size: 14px; font-weight: 600; color: var(--accent-amber); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
a.spotlight-card.related-card { display: flex; align-items: center; gap: 14px; padding: 12px; }
.related-thumb { flex: 0 0 104px; width: 104px; height: 78px; overflow: hidden; border-radius: 8px; background: #0d0f15; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { min-width: 0; }
.related-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #ffffff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.related-date { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.related-card-title { overflow-wrap: anywhere; }
@media (max-width: 380px) { .related-thumb { flex-basis: 84px; width: 84px; height: 64px; } }
@media (max-width: 340px) {
  a.spotlight-card.related-card { flex-direction: column; align-items: stretch; }
  .related-thumb { flex: 0 0 auto; width: 100%; height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .mobile-menu, .back-to-top-btn, .cursor-ambient-glow, .intro-splash-screen, .site-toast-container { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ================= FAQ (home page) ================= */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.faq-item[open] { border-color: rgba(245, 158, 11, 0.4); }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 16px 52px 16px 18px;
  font-family: var(--font-heading); font-size: 17px; font-weight: 600; line-height: 1.35; color: #ffffff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent-amber); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 2px; border-radius: var(--radius-md); }
.faq-a { padding: 0 18px 16px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.faq-more { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.faq-more a { color: var(--accent-amber-light); font-size: 14px; font-weight: 600; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }

/* ================= CONVERSION BLOCKS: trust strip, call-me-back form, quick-contact bar (phones) ================= */
.trust-band { padding: clamp(28px, 4vw, 48px) 0 8px; background: #07080b; }
.trust-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.trust-stats li { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-stats b { font-family: var(--font-heading); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--accent-amber-light); line-height: 1.15; }
.trust-stats span { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.trust-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.trust-quotes figure { margin: 0; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 3px solid var(--accent-amber); border-radius: var(--radius-md); padding: 14px 16px; }
.trust-quotes blockquote { margin: 0; color: #ffffff; font-size: 15px; line-height: 1.5; }
.trust-quotes figcaption { margin-top: 6px; color: var(--text-dim); font-size: 12.5px; }
.callback-band { padding: 12px 0 clamp(24px, 4vw, 44px); background: #07080b; }
.callback-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px 28px; align-items: center; background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 19, 28, 0.9)); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: var(--radius-md); padding: clamp(16px, 3vw, 26px); }
.callback-text h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(19px, 2.4vw, 24px); color: #ffffff; line-height: 1.25; }
.callback-text p { margin: 6px 0 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
.callback-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; }
.callback-form input { min-width: 0; font: inherit; font-size: 15px; color: #ffffff; background: rgba(7, 8, 11, 0.85); border: 1px solid var(--border-medium); border-radius: 12px; padding: 12px 14px; }
.callback-form input:focus { outline: 2px solid var(--accent-amber); outline-offset: 1px; }
.callback-note { grid-column: 1 / -1; margin: 0; min-height: 0; font-size: 14px; }
.callback-note:empty { display: none; }
.callback-note.is-ok { color: #86efac; }
.callback-note.is-bad { color: #fca5a5; }
@media (max-width: 900px) {
  .trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-quotes { grid-template-columns: 1fr; }
  .callback-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .callback-form { grid-template-columns: 1fr; } }
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 985;
    padding: 8px max(10px, var(--safe-r)) calc(8px + var(--safe-b)) max(10px, var(--safe-l));
    background: rgba(9, 11, 16, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-medium);
  }
  .mobile-cta-bar.is-hidden { display: none; }
  .mcb {
    display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px;
    font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
    color: #ffffff; text-decoration: none; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-medium);
  }
  .mcb-call { background: var(--accent-amber); border-color: var(--accent-amber); color: #111111; }
  body.has-cta-bar { padding-bottom: calc(66px + var(--safe-b)); }
  .back-to-top-btn { bottom: calc(78px + var(--safe-b)); }
  .site-toast-container { bottom: calc(78px + var(--safe-b)); }
  body.has-cta-bar .hero-floating-nav { bottom: calc(max(14px, var(--safe-b)) + 62px); }
}

/* ================= PRICES ================= */
.price-grid { max-width: 620px; margin: 0 auto; display: block; }
.price-table-wrap { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.price-table th, .price-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.price-table th { color: var(--text-dim); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { color: var(--accent-amber-light); font-weight: 700; font-family: var(--font-heading); }
.price-table tr:last-child td { border-bottom: 0; }
.price-side { display: grid; gap: 14px; }
.price-calc, .price-cards > div, .price-note { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; }
.price-calc { display: grid; gap: 10px; border-color: rgba(245, 158, 11, 0.35); }
.price-calc h3 { margin: 0; font-family: var(--font-heading); font-size: 18px; color: #ffffff; }
.price-calc label { display: grid; gap: 4px; font-size: 13px; color: var(--text-muted); }
.price-calc select, .price-calc input { font: inherit; font-size: 15px; color: #ffffff; background: rgba(7, 8, 11, 0.85); border: 1px solid var(--border-medium); border-radius: 10px; padding: 10px 12px; width: 100%; }
.price-calc select:focus, .price-calc input:focus { outline: 2px solid var(--accent-amber); outline-offset: 1px; }
.pc-out { margin: 4px 0 0; font-size: 18px; color: #ffffff; min-height: 1.4em; }
.pc-out b { color: var(--accent-amber-light); font-family: var(--font-heading); font-size: 24px; }
.pc-note { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.price-cards { display: grid; gap: 14px; }
.price-cards b { display: block; color: #ffffff; font-family: var(--font-heading); font-size: 16px; }
.price-cards span { display: block; margin-top: 2px; color: var(--accent-amber-light); font-weight: 700; font-size: 17px; }
.price-cards small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.price-cta { text-align: center; margin-top: 22px; }
.price-note { max-width: 720px; margin: 0 auto; text-align: center; padding: 26px 22px; }
.price-note-big { margin: 10px 0 4px; font-family: var(--font-heading); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: var(--accent-amber-light); }
.price-note-small { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

.mat-info-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 6px 0 10px;
  transition: opacity 0.15s ease;
}
.mat-info-desc {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px 0;
  font-weight: 500;
}
.mat-info-scopes {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.mat-info-scopes strong {
  color: var(--accent-amber-light, #fbbf24);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

/* ================= ENGINEERING CONFIGURATOR (14 MATERIALS, NO PUBLIC PRICES) ================= */
.calc-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .calc-v2-grid { grid-template-columns: 1fr; }
}

.material-showcase-card {
  background: var(--bg-surface, #0f1219);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}
.material-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6);
}
.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber, #f59e0b);
  margin-bottom: 12px;
}
.showcase-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.showcase-name {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.showcase-category-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* RED PULSING ATTENTION ALERT */
.attention-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  position: relative;
}
.attention-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.attention-beacon {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 10px #ef4444;
  animation: beaconPulse 1.8s infinite ease-in-out;
}
.attention-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ef4444;
  animation: beaconRing 1.8s infinite ease-out;
}
.attention-label {
  color: #ef4444;
  font-family: var(--font-heading, sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: textPulse 1.8s infinite ease-in-out;
}
@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes beaconRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes textPulse {
  0%, 100% { color: #ef4444; text-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  50% { color: #f87171; text-shadow: 0 0 14px rgba(239, 68, 68, 0.9); }
}

.material-desc-text {
  color: #f1f5f9;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.scopes-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.scopes-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scopes-content {
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.55;
}

.showcase-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.showcase-feat-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.showcase-feat-item small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.showcase-feat-item strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  margin-top: 2px;
}

/* Right Card: Configurator Form */
.configurator-card {
  background: var(--bg-surface, #0f1219);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.configurator-heading {
  font-family: var(--font-heading, sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cfg-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cfg-form-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Service Checkbox Chips */
.service-chips-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .service-chips-group { grid-template-columns: 1fr; }
}
.service-chip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.service-chip-box:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.05);
}
.service-chip-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-amber, #f59e0b);
  cursor: pointer;
}
.service-chip-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}
.service-chip-sub {
  font-size: 11px;
  color: #94a3b8;
}

.cfg-select, .cfg-input {
  background: rgba(7, 8, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.cfg-select:focus, .cfg-input:focus {
  border-color: var(--accent-amber, #f59e0b);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.cfg-select option {
  background: #0f1219;
  color: #ffffff;
  padding: 8px;
}
.cfg-quick-chips {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cfg-quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.cfg-quick-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber, #f59e0b);
  color: var(--accent-amber, #f59e0b);
}

/* Client Result Box (NO PRICE) */
.client-status-box {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.client-status-box .status-icon {
  font-size: 24px;
  line-height: 1;
}
.status-text-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 2px;
}
.status-text-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Main Action Button */
.submit-calc-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #000000;
  font-family: var(--font-heading, sans-serif);
  font-size: 15px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  width: 100%;
}
.submit-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
}
.submit-calc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================= MODAL WINDOW (CONFIRMATION POPUP) ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: #0f121a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15);
  text-align: center;
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}
.modal-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  transition: color 0.15s;
}
.modal-close-x:hover {
  color: #ffffff;
}
.modal-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}
.modal-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 14px 0;
}
.modal-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.modal-urgent-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  text-align: left;
}
.modal-urgent-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-family: var(--font-heading, sans-serif);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.modal-phone-btn:hover {
  background: #f59e0b;
  color: #000000;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.modal-workhours {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
  font-family: var(--font-mono, monospace);
}
.modal-btn-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-heading, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.modal-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================= INTERACTIVE CALCULATOR LIVE STYLING ================= */
.calc-result-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}
.calc-result-box:hover {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18);
}
.calc-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-result-label {
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-tariff-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}
.calc-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.calc-price-val {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.calc-price-currency {
  font-size: 17px;
  color: #f59e0b;
  font-weight: 600;
  margin-left: 4px;
}
.calc-discount-badge {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.calc-breakdown-sub {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.calc-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}
.calc-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}


/* ==========================================================================
   ANYCUBIC PHOTOPOLYMER SLA & WASH-CURE 3 SUITE
   ========================================================================== */
.sla-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}
.sla-badge-wash {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}
.sla-equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}
.sla-equip-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(20, 26, 38, 0.8) 0%, rgba(9, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sla-equip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 24px 48px rgba(0, 240, 255, 0.12);
}
.sla-equip-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sla-equip-img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sla-equip-card:hover .sla-equip-img-wrap img {
  transform: scale(1.04);
}
.sla-equip-title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.sla-equip-subtitle {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.sla-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sla-specs-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.sla-specs-list .spec-k {
  color: #94a3b8;
}
.sla-specs-list .spec-v {
  color: #f1f5f9;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.sla-specs-list .spec-v.glow-cyan {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.sla-specs-list .spec-v.glow-purple {
  color: #c084fc;
}

/* 10 Opportunities Grid */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 32px 0 54px;
}
.opp-card {
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.opp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 240, 255, 0.12);
  background: rgba(22, 28, 40, 0.95);
}
.opp-card-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  pointer-events: none;
}
.opp-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.opp-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.opp-card-desc {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.opp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.opp-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.opp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00f0ff;
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
}
.opp-card:hover .opp-card-link {
  text-decoration: underline;
}

/* Comparison Matrix */
.sla-compare-wrapper {
  overflow-x: auto;
  margin: 32px 0 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 25, 0.85);
}
.sla-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 620px;
  font-size: 14px;
}
.sla-compare-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 20px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sla-compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.sla-compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.sla-compare-table .hi-col {
  color: #00f0ff;
  font-weight: 600;
}

/* Preview Presentation Specific */
.preview-banner {
  background: radial-gradient(80% 80% at 50% 20%, rgba(0, 240, 255, 0.15) 0%, rgba(7, 8, 11, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 60px 0 48px;
  text-align: center;
}
.preview-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.preview-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.preview-pill:hover, .preview-pill.active {
  background: #00f0ff;
  color: #07080b;
  font-weight: 700;
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}
