/* ==========================================================================
   Север Сън: design tokens (dark theme)
   The ONLY place colours, gradients, radii, shadows and type stacks are defined.
   Source: DESIGN_SPEC §1 + design/source/*.dc.html
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Base colours ---- */
  --c-night: #0A1626;
  --c-navy: #13294B;
  --c-navy-2: #0E1F3A;
  --c-canvas: #05090F;
  --c-white: #FFFFFF;

  /* ---- Text ---- */
  --c-ink: #F2F5FA;
  --c-ink-muted: rgba(220, 230, 245, 0.78);    /* nav links, body copy */
  --c-ink-body: rgba(220, 230, 245, 0.75);     /* card body copy */
  --c-ink-soft: rgba(220, 230, 245, 0.72);     /* stat labels, footer links */
  --c-ink-subtle: rgba(220, 230, 245, 0.68);   /* meta / labels: never lower than 0.65 */
  --c-ink-faint: rgba(242, 245, 250, 0.65);    /* brand wordmarks (17px+ bold) */

  /* ---- Accents ---- */
  --c-solar-1: #F5A524;
  --c-solar-2: #FF7A1A;
  --c-solar-text: #F5A524;
  --c-on-solar: #1A1205;
  --c-sky: #4FB3FF;
  --c-sky-hover: #8FD0FF;
  --c-savings: #3DDC97;
  --c-error-border: #FF7A6B;
  --c-error-text: #FF9B8F;

  --g-solar: linear-gradient(135deg, var(--c-solar-1), var(--c-solar-2));
  --g-solar-text: linear-gradient(90deg, var(--c-solar-1), var(--c-solar-2));

  /* ---- Tints ---- */
  --c-solar-tint: rgba(245, 165, 36, 0.12);
  --c-solar-tint-2: rgba(245, 165, 36, 0.14);
  --c-solar-border: rgba(245, 165, 36, 0.55);
  --c-solar-border-soft: rgba(245, 165, 36, 0.4);
  --c-solar-border-hover: rgba(245, 165, 36, 0.5);
  --c-sky-tint: rgba(79, 179, 255, 0.14);
  --c-sky-border: rgba(79, 179, 255, 0.4);
  --c-savings-tint: rgba(61, 220, 151, 0.12);
  --c-savings-border: rgba(61, 220, 151, 0.45);

  /* ---- Glass ---- */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.13);
  --glass-bg-nav-m: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  --glass-strong-bg: rgba(255, 255, 255, 0.12);
  --glass-strong-border: rgba(255, 255, 255, 0.25);
  --glass-strong-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --glass-fallback: rgba(19, 41, 75, 0.85);
  --glass-blur: blur(20px) saturate(140%);

  --well-bg: rgba(10, 22, 38, 0.4);
  --well-border: rgba(255, 255, 255, 0.12);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --chip-border: rgba(255, 255, 255, 0.15);
  --pill-border: rgba(255, 255, 255, 0.18);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-soft: rgba(255, 255, 255, 0.08);

  --logo-pill-bg: rgba(244, 247, 251, 0.94);
  --logo-pill-border: rgba(255, 255, 255, 0.8);

  --sticky-bar-bg: rgba(19, 41, 75, 0.7);
  --sticky-bar-border: rgba(255, 255, 255, 0.3);
  --sticky-btn-bg: rgba(255, 255, 255, 0.1);
  --sticky-btn-border: rgba(255, 255, 255, 0.25);

  --footer-bg: rgba(5, 12, 22, 0.8);
  --sheet-bg: rgba(10, 22, 38, 0.72);
  --backdrop: rgba(5, 9, 15, 0.6);

  /* ---- Page background ---- */
  --g-page: linear-gradient(180deg, #0A1626 0%, #13294B 38%, #0E1F3A 70%, #0A1626 100%);
  --g-page-m: linear-gradient(180deg, #0A1626 0%, #13294B 40%, #0E1F3A 75%, #0A1626 100%);
  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-size: 40px 26px;
  --grid-size-lg: 64px 40px;
  --glow-sky: rgba(79, 179, 255, 0.45);
  --glow-sky-soft: rgba(79, 179, 255, 0.35);
  --glow-amber: rgba(245, 165, 36, 0.4);
  --glow-orange: rgba(255, 122, 26, 0.35);

  /* ---- Image placeholders (until real photos arrive) ---- */
  --ph-stripes: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 16px);
  --g-ph-hero: linear-gradient(165deg, #1B2C52 0%, #4A3550 38%, #B0602A 74%, #F2A847 100%);
  --g-ph-warm: linear-gradient(160deg, #1E3A66, #7A5A3A);
  --g-ph-cool: linear-gradient(160deg, #1E3A66, #2A4A7A);

  /* ---- Component states ---- */
  --c-solar-tint-on: rgba(245, 165, 36, 0.16);
  --c-solar-border-on: rgba(245, 165, 36, 0.7);
  --c-solar-icon-grad: linear-gradient(135deg, rgba(245, 165, 36, 0.22), rgba(255, 122, 26, 0.08));
  --c-sky-border-on: rgba(79, 179, 255, 0.45);
  --c-savings-tint-2: rgba(61, 220, 151, 0.14);
  --c-savings-tint-3: rgba(61, 220, 151, 0.15);
  --c-savings-border-on: rgba(61, 220, 151, 0.55);
  --c-savings-border-soft: rgba(61, 220, 151, 0.4);
  --c-error-tint: rgba(255, 122, 107, 0.12);

  --surface-1: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.07);
  --surface-4: rgba(255, 255, 255, 0.10);
  --surface-5: rgba(255, 255, 255, 0.11);
  --surface-6: rgba(255, 255, 255, 0.12);
  --border-1: rgba(255, 255, 255, 0.15);
  --border-2: rgba(255, 255, 255, 0.20);
  --border-3: rgba(255, 255, 255, 0.25);
  --border-4: rgba(255, 255, 255, 0.30);
  --border-dashed: rgba(255, 255, 255, 0.28);

  --overlay-dark: rgba(10, 22, 38, 0.55);   /* stock pill, map chips */
  --overlay-glass: rgba(10, 22, 38, 0.4);   /* glass chips over images */
  --well-bg-2: rgba(10, 22, 38, 0.35);
  --well-border-2: rgba(255, 255, 255, 0.14);

  /* ---- Form fields ---- */
  --input-bg: rgba(10, 22, 38, 0.45);
  --input-border: rgba(255, 255, 255, 0.22);
  --input-placeholder: rgba(220, 230, 245, 0.6);
  --input-light-bg: rgba(255, 255, 255, 0.55);
  --input-light-border: rgba(26, 18, 5, 0.2);
  --input-light-placeholder: rgba(26, 18, 5, 0.62);
  --cta-glass-bg: rgba(255, 255, 255, 0.28);
  --cta-glass-border: rgba(255, 255, 255, 0.6);
  --cta-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* ---- Slider ---- */
  --range-track: rgba(255, 255, 255, 0.16);
  --halo-solar: rgba(245, 165, 36, 0.3);
  --halo-sky: rgba(79, 179, 255, 0.3);
  --sh-thumb: 0 4px 12px rgba(0, 0, 0, 0.4);

  /* ---- Drawer ---- */
  --drawer-bg: rgba(19, 41, 75, 0.72);
  --drawer-backdrop: rgba(5, 10, 20, 0.55);
  --sh-drawer: inset 1px 0 0 rgba(255, 255, 255, 0.15), -30px 0 80px rgba(0, 0, 0, 0.5);
  --fab-bg: rgba(255, 255, 255, 0.14);

  /* ---- Extra shadows ---- */
  --sh-btn-lg: 0 14px 36px rgba(255, 122, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --sh-glow-savings: 0 0 40px rgba(61, 220, 151, 0.3);
  --sh-dot-savings: 0 0 10px #3DDC97;

  /* ---- More image placeholders ---- */
  --ph-stripes-sm: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 12px);
  --ph-stripes-md: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
  --g-ph-product: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  --g-ph-project: linear-gradient(160deg, #1E3A66, #5C4A48);
  --g-ph-post: linear-gradient(160deg, #1E3A66, #2E4C7A);
  --g-ph-segment: linear-gradient(160deg, #1E3A66, #2B3F63 50%, #7A5A3A);

  /* ---- Home page ---- */
  --c-ink-lead: rgba(220, 230, 245, 0.82);
  --c-ink-brand: rgba(242, 245, 250, 0.7);
  --g-scrim-x: linear-gradient(90deg, rgba(10, 22, 38, 0.94) 0%, rgba(10, 22, 38, 0.72) 42%, rgba(10, 22, 38, 0.15) 100%);
  --g-scrim-y: linear-gradient(180deg, rgba(10, 22, 38, 0.7) 0%, rgba(10, 22, 38, 0.82) 55%, #0A1626 100%);
  --g-fade-night: linear-gradient(180deg, transparent, #0A1626);
  --sh-panel: 0 24px 60px rgba(3, 8, 18, 0.35);
  --sh-teaser: 0 30px 80px rgba(3, 8, 18, 0.4);
  --sh-preview: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 60px rgba(0, 0, 0, 0.4);
  --preview-bg: rgba(10, 22, 38, 0.45);
  --preview-result-bg: rgba(10, 22, 38, 0.5);
  --glow-amber-strong: rgba(245, 165, 36, 0.45);
  --glow-amber-mobile: rgba(245, 165, 36, 0.5);

  --g-steps-line: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.6), rgba(79, 179, 255, 0.6), transparent);
  --step-num-border: rgba(245, 165, 36, 0.6);
  --sh-step-num: 0 0 24px rgba(245, 165, 36, 0.3);

  --map-bg: rgba(6, 14, 26, 0.6);
  --map-dots: rgba(79, 179, 255, 0.22);
  --map-danube: rgba(79, 179, 255, 0.6);
  --map-river-label: rgba(79, 179, 255, 0.85);
  --map-border-line: rgba(220, 230, 245, 0.3);
  --map-pin-name: rgba(242, 245, 250, 0.85);
  --sh-pin: 0 0 12px rgba(245, 165, 36, 0.6);
  --sh-pin-on: 0 0 0 8px rgba(245, 165, 36, 0.2), 0 0 28px rgba(245, 165, 36, 0.9);
  --pin-chip-on: rgba(245, 165, 36, 0.22);
  --pin-chip-on-border: rgba(245, 165, 36, 0.8);

  --g-cta: linear-gradient(120deg, #F5A524 0%, #FF7A1A 100%);
  --cta-grid: rgba(26, 18, 5, 0.06);
  --sh-cta: 0 30px 80px rgba(255, 122, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --sh-cta-m: 0 20px 50px rgba(255, 122, 26, 0.3);

  /* ---- Calculator page ---- */
  --g-page-calc: linear-gradient(180deg, #0A1626 0%, #13294B 45%, #0A1626 100%);
  --g-page-calc-m: linear-gradient(180deg, #0A1626 0%, #13294B 60%, #0A1626 100%);
  --glow-sky-calc: rgba(79, 179, 255, 0.4);
  --glow-orange-soft: rgba(255, 122, 26, 0.28);
  --g-roof-sky: linear-gradient(180deg, rgba(79, 179, 255, 0.12), rgba(10, 22, 38, 0.3));
  --g-roof: linear-gradient(180deg, #2A3F63, #1C2E4D);
  --g-panel-tile: linear-gradient(160deg, #3D6FB8, #173463);
  --panel-tile-border: rgba(160, 205, 255, 0.55);
  --sh-sun: 0 0 40px rgba(245, 165, 36, 0.8);
  --donut-hole: #12264A;
  --summary-bg: rgba(19, 41, 75, 0.78);
  --sh-summary: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 -10px 40px rgba(0, 0, 0, 0.45);

  /* ---- Catalog page ---- */
  --g-page-catalog: linear-gradient(180deg, #0A1626 0%, #13294B 35%, #0E1F3A 75%, #0A1626 100%);
  --g-page-catalog-m: linear-gradient(180deg, #0A1626 0%, #13294B 40%, #0A1626 100%);
  --glow-amber-soft: rgba(245, 165, 36, 0.38);
  --glow-sky-faint: rgba(79, 179, 255, 0.3);
  --glow-orange-faint: rgba(255, 122, 26, 0.3);
  --glow-promo: rgba(245, 165, 36, 0.55);
  --search-border: rgba(255, 255, 255, 0.28);
  --sh-search: 0 24px 60px rgba(3, 8, 18, 0.4);
  --fab-bg-m: rgba(19, 41, 75, 0.75);
  --sh-fab-m: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 30px rgba(0, 0, 0, 0.5);
  --sheet-bg-strong: rgba(19, 41, 75, 0.88);

  /* ---- Real photos ---- */
  --product-photo-bg: rgba(244, 247, 251, 0.96);   /* product shots are on white: same light pill as the logo */
  --gallery-bg: rgba(5, 9, 15, 0.92);

  /* ---- Focus ---- */
  --focus-ring: 0 0 0 4px rgba(245, 165, 36, 0.25);
  --focus-outline: 2px solid var(--c-solar-1);

  /* ---- Radii ---- */
  --r-pill: 999px;
  --r-card: 24px;
  --r-panel: 28px;
  --r-panel-lg: 32px;
  --r-well: 16px;
  --r-input: 14px;
  --r-tile: 16px;
  --r-sm: 8px;

  /* ---- Shadows ---- */
  --sh-card: 0 24px 60px rgba(3, 8, 18, 0.32);
  --sh-float: 0 30px 80px rgba(3, 8, 18, 0.5);
  --sh-nav: 0 20px 50px rgba(3, 8, 18, 0.3);
  --sh-logo: inset 0 1px 0 #FFFFFF, 0 6px 20px rgba(3, 8, 18, 0.25);
  --sh-btn-primary: 0 12px 32px rgba(255, 122, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --sh-btn-nav: 0 10px 30px rgba(255, 122, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --sh-sticky: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.5);

  /* ---- Type ---- */
  --f-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, Menlo, Consolas, monospace;

  /* ---- Layout ---- */
  --container: 1280px;
  --gutter: 16px;          /* mobile 16 (headings indent 4 more) → 40 → 80 desktop */
  --section-pt: 72px;      /* → 140px desktop */
  --header-h: 60px;
  --header-top: 14px;
  --header-inset: 14px;

  /* ---- Motion ---- */
  --t-fast: 0.2s ease;
  --t-med: 0.25s ease;
}

@media (min-width: 640px) {
  :root {
    --gutter: 40px;
    --section-pt: 100px;
    --header-inset: 24px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
    --section-pt: 140px;
    --header-h: 72px;
    --header-top: 24px;
    --header-inset: 40px;
    --grid-size: var(--grid-size-lg);
  }
}
