/* GlucoSta.ru Commercial Product Site — 4 Distinct Themes:
   1. glass (Light translucent Apple Glass)
   2. graphite (Calm deep dark slate-graphite)
   3. summer (Vibrant joyful sunlit palette)
   4. asphalt (Clean light architectural stone grey)
*/

:root,
[data-ltheme="glass"] {
  --bg: #EBF2FC;
  --bg-grad: linear-gradient(160deg, #F5F9FF 0%, #E3EFFC 50%, #E7F7F3 100%);
  --blob1: rgba(56, 189, 248, 0.36);
  --blob2: rgba(16, 185, 129, 0.30);
  --blob3: rgba(139, 92, 246, 0.16);
  --surface: rgba(255, 255, 255, 0.70);
  --surface-2: rgba(255, 255, 255, 0.50);
  --border: rgba(255, 255, 255, 0.90);
  --border-2: rgba(148, 163, 184, 0.32);
  --ink: #0A1222;
  --ink-2: #2A3A52;
  --mute: #586A84;
  --accent: #0A8F6B;
  --accent-2: #0284C7;
  --accent-soft: rgba(10, 143, 107, 0.12);
  --accent-ink: #065F46;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --shadow-hover: 0 24px 54px rgba(10, 143, 107, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.98);
  --blur: 22px;
}

[data-ltheme="graphite"] {
  --bg: #181C22;
  --bg-grad: linear-gradient(160deg, #21262E 0%, #171B21 55%, #12151A 100%);
  --blob1: rgba(56, 189, 248, 0.16);
  --blob2: rgba(16, 185, 129, 0.16);
  --blob3: rgba(99, 102, 241, 0.14);
  --surface: rgba(34, 39, 47, 0.88);
  --surface-2: rgba(45, 51, 61, 0.82);
  --border: rgba(203, 213, 225, 0.16);
  --border-2: rgba(203, 213, 225, 0.26);
  --ink: #F8FAFC;
  --ink-2: #CBD5E1;
  --mute: #94A3B8;
  --accent: #10B981;
  --accent-2: #38BDF8;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --accent-ink: #6EE7B7;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-hover: 0 24px 56px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --blur: 16px;
}

[data-ltheme="summer"] {
  --bg: #FFF6EC;
  --bg-grad: linear-gradient(155deg, #FFFBF4 0%, #FEEBD7 48%, #E6FAF0 100%);
  --blob1: rgba(251, 146, 60, 0.36);
  --blob2: rgba(16, 185, 129, 0.32);
  --blob3: rgba(250, 204, 21, 0.24);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-2: rgba(255, 244, 232, 0.86);
  --border: rgba(251, 146, 60, 0.34);
  --border-2: rgba(234, 88, 12, 0.34);
  --ink: #24120B;
  --ink-2: #522B1E;
  --mute: #855646;
  --accent: #EA580C;
  --accent-2: #0D9488;
  --accent-soft: rgba(234, 88, 12, 0.13);
  --accent-ink: #9A3412;
  --shadow: 0 14px 36px rgba(154, 52, 18, 0.10);
  --shadow-hover: 0 22px 48px rgba(234, 88, 12, 0.16);
  --blur: 14px;
}

[data-ltheme="asphalt"] {
  --bg: #D8DCE2;
  --bg-grad: linear-gradient(160deg, #E3E7ED 0%, #D5DAE1 55%, #CCD2DA 100%);
  --blob1: rgba(100, 116, 139, 0.18);
  --blob2: rgba(148, 163, 184, 0.22);
  --blob3: rgba(37, 99, 235, 0.10);
  --surface: rgba(245, 247, 250, 0.88);
  --surface-2: #E4E8EE;
  --border: #C2C9D3;
  --border-2: #9AA4B2;
  --ink: #181C22;
  --ink-2: #363E4A;
  --mute: #5B6573;
  --accent: #2563EB;
  --accent-2: #0D9488;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-ink: #1D4ED8;
  --shadow: 0 12px 32px rgba(24, 28, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --shadow-hover: 0 20px 44px rgba(37, 99, 235, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --blur: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], .sec[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  line-height: 1.58;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  transition: background 0.32s ease, color 0.25s ease;
}

.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(95px); animation: floatBlob 18s ease-in-out infinite alternate; }
.b1 { width: 540px; height: 540px; top: -160px; left: -110px; background: var(--blob1); }
.b2 { width: 500px; height: 500px; bottom: -140px; right: -80px; background: var(--blob2); animation-delay: -6s; }
.b3 { width: 380px; height: 380px; top: 38%; left: 52%; background: var(--blob3); animation-delay: -11s; }
@keyframes floatBlob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(42px, 34px) scale(1.08); } }

.shell { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px 88px; }

/* Sticky Minimal Topbar */
.topbar {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(180%); -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand-emblem { width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #10B981, #38BDF8, #F59E0B); box-shadow: 0 0 12px rgba(16,185,129,0.45); }
.brand-sta { color: var(--accent); }
.brand-ru { opacity: 0.48; font-size: 14px; font-weight: 600; }

.nav-menu { display: flex; gap: 22px; }
.nav-menu a { text-decoration: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: color 0.15s; }
.nav-menu a:hover { color: var(--accent); }

.theme-bar { display: flex; gap: 3px; background: var(--surface-2); padding: 3px; border-radius: 999px; border: 1px solid var(--border-2); }
.th-pill {
  border: 0; background: transparent; color: var(--ink-2); border-radius: 50%;
  width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; cursor: pointer; transition: all 0.18s;
}
.th-pill.active { background: var(--accent); color: #FFFFFF; box-shadow: 0 2px 8px rgba(0,0,0,0.16); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* HERO */
.hero { text-align: center; padding: 56px 0 42px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 700; margin-bottom: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); } 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }

h1 {
  font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.036em;
  margin: 0 auto 20px; max-width: 19ch; color: var(--ink); font-weight: 800;
}
.grad-text {
  background: linear-gradient(125deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin: 0 auto 30px; line-height: 1.55; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.btn-solid {
  border: 0; border-radius: 14px; padding: 15px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #FFFFFF; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 30px rgba(10, 143, 107, 0.28); transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-solid:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 36px rgba(10, 143, 107, 0.36); }
.btn-outline {
  border: 1.5px solid var(--border-2); border-radius: 14px; padding: 14px 24px; background: var(--surface);
  color: var(--ink); font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(var(--blur)); transition: transform 0.18s ease, border-color 0.18s ease;
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Proof Metrics Strip */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  max-width: 820px; margin: 0 auto 36px;
}
.proof-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  display: flex; flex-direction: column; gap: 2px;
}
.proof-item strong { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.proof-item span { font-size: 12px; color: var(--mute); font-weight: 500; }

/* FULL-WIDTH INTERACTIVE DESKTOP PANORAMA */
.panorama-wrap {
  text-align: left; border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(180%); -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
}
.panorama-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border-2);
}
.p-lights { display: flex; gap: 6px; margin-right: 6px; }
.p-lights span { width: 10px; height: 10px; border-radius: 50%; }
.p-lights span:nth-child(1) { background: #F87171; }
.p-lights span:nth-child(2) { background: #FBBF24; }
.p-lights span:nth-child(3) { background: #34D399; }
.p-tab-active {
  font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface);
  padding: 5px 14px; border-radius: 8px; border: 1px solid var(--border-2);
}
.p-tab-muted { font-size: 12px; color: var(--mute); padding: 5px 10px; }
.p-demo-pill {
  margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
}
.p-toolbar-ext { position: relative; display: inline-flex; align-items: center; margin-left: 8px; }
.p-ext-logo { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #131B42, #0D9471, #F59E0B); }
.p-ext-badge {
  position: absolute; bottom: -4px; right: -7px; padding: 1px 5px; border-radius: 5px;
  background: #0F9D78; color: #FFFFFF; font-size: 10.5px; font-weight: 800; transition: background 0.2s;
}

.panorama-canvas {
  position: relative; height: 310px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(56,189,248,0.20), transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(16,185,129,0.18), transparent 45%),
    var(--bg);
}
.ws-grid { display: grid; grid-template-columns: 185px 1fr; height: 100%; opacity: 0.44; pointer-events: none; }
.ws-side { padding: 20px; border-right: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 12px; }
.ws-main { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.ws-title { width: 42%; height: 18px; border-radius: 6px; background: var(--mute); }
.ws-bar { height: 10px; border-radius: 5px; background: var(--mute); opacity: 0.55; }
.ws-bar.w90 { width: 90%; } .ws-bar.w80 { width: 80%; } .ws-bar.w75 { width: 75%; } .ws-bar.w70 { width: 70%; } .ws-bar.w60 { width: 60%; } .ws-bar.w50 { width: 50%; }
.ws-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0; }
.ws-tile { height: 88px; border-radius: 14px; }
.ws-tile.t1 { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.ws-tile.t2 { background: linear-gradient(135deg, #10B981, #34D399); }
.ws-tile.t3 { background: linear-gradient(135deg, #F59E0B, #FB923C); }

.pan-notif {
  position: absolute; top: 16px; right: 16px; width: 295px; padding: 13px 15px; border-radius: 15px;
  background: var(--surface); color: var(--ink); border: 1.5px solid #EF4444;
  box-shadow: 0 16px 38px rgba(0,0,0,0.26); backdrop-filter: blur(20px); z-index: 8;
  animation: slideDown 0.25s ease;
}
.pan-notif.hidden { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pn-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #EF4444; }
.pn-x { border: 0; background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; }
.pn-body { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }

.pan-widget {
  position: absolute; bottom: 20px; right: 22px; z-index: 6; cursor: grab; user-select: none;
  display: flex; align-items: center; gap: 14px; padding: 12px 17px; border-radius: 18px;
  background: rgba(255,255,255,0.48); color: #0B1324; border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 14px 36px rgba(15,23,42,0.20), inset 0 1.5px 0 rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(190%); -webkit-backdrop-filter: blur(20px) saturate(190%);
}
[data-ltheme="graphite"] .pan-widget {
  background: rgba(24, 28, 36, 0.68); color: #F8FAFC; border-color: rgba(255,255,255,0.24);
}
.pan-widget:active { cursor: grabbing; }
.pan-widget.stale .pw-val { text-decoration: line-through; opacity: 0.62; }
.pw-head-row { display: flex; align-items: baseline; gap: 7px; }
.pw-dot { width: 10px; height: 10px; border-radius: 50%; background: #10B981; }
.pw-val { font-size: 27px; font-weight: 800; line-height: 1; }
.pw-arrow { font-size: 18px; font-weight: 700; }
.pw-meta { font-size: 11.5px; opacity: 0.84; margin-top: 3px; }

.panorama-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--border-2);
}
.pf-hint { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.pf-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.chip-btn {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--ink-2);
  border-radius: 10px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.16s ease;
}
.chip-btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.chip-btn.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }

/* Sections */
.sec { padding: 62px 0; border-top: 1px solid var(--border-2); }
.sec-intro { margin-bottom: 30px; max-width: 66ch; }
.sec-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); margin-bottom: 8px;
}
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.028em; margin: 0 0 12px; color: var(--ink); font-weight: 800; }
.sec-intro p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* BEFORE vs AFTER COMPARISON */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cmp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 28px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cmp-card:hover { transform: translateY(-3px); }
.cmp-after { border: 1.5px solid var(--accent); box-shadow: var(--shadow-hover); }
.cmp-head { margin-bottom: 18px; }
.cmp-pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.cmp-pill.bad { background: rgba(239, 68, 68, 0.12); color: #DC2626; border: 1px solid rgba(239, 68, 68, 0.30); }
.cmp-pill.good { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); }
.cmp-head h3 { margin: 0; font-size: 19px; color: var(--ink); }
.cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cmp-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.48; }
.cmp-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; margin-top: 1px;
}
.cmp-mark.bad { background: rgba(239, 68, 68, 0.14); color: #DC2626; }
.cmp-mark.good { background: var(--accent-soft); color: var(--accent-ink); }

/* 3 Family & Scenario Cards */
.details-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  transition: transform 0.22s ease, border-color 0.2s ease, box-shadow 0.22s ease;
}
.detail-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.d-ico-wrap {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.ico-emerald { background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.34); }
.ico-sky { background: rgba(14, 165, 233, 0.16); border: 1px solid rgba(14, 165, 233, 0.34); }
.ico-amber { background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.34); }
.detail-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.detail-item p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* Widget Lab */
.lab-split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 22px; }
.lab-stage {
  position: relative; min-height: 300px; border-radius: 22px; padding: 28px 24px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(56,189,248,0.48), transparent 48%),
    radial-gradient(circle at 82% 78%, rgba(245,158,11,0.40), transparent 48%),
    linear-gradient(135deg, #111827 0%, #1E293B 50%, #0F172A 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stage-tag {
  position: absolute; top: 14px; left: 16px; z-index: 3;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px);
}
.lab-bg-pattern { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0.18; }
.lb-text { font-size: 38px; font-weight: 900; color: #FFFFFF; letter-spacing: 0.08em; }
.lab-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.lp-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-note { font-size: 12px; color: var(--mute); margin: 0 0 8px; }
.tog-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-2); font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.tog-pill.disabled { opacity: 0.40; pointer-events: none; }
.hidden { display: none !important; }

/* Lab Widget Forms & Materials */
.wl { position: relative; z-index: 2; }
.wl .hidden { display: none !important; }
.wl-card { transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.wl-dot { width: 9px; height: 9px; border-radius: 50%; background: #10B981; flex-shrink: 0; }
.wl-chip { font-size: 11px; opacity: 0.85; white-space: nowrap; }
.wl-fc { color: #38BDF8; font-weight: 700; opacity: 1; }
.wl.style-glass .wl-fc, .wl.style-titanium .wl-fc, .wl.style-bauhaus .wl-fc { color: #0284C7; }

.wl.form-pill .wl-card { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; }
.wl.form-pill .wl-main, .wl.form-pill .wl-top, .wl.form-pill .wl-meta { display: contents; }
.wl.form-pill .wl-unit, .wl.form-pill .wl-trend { display: none; }
.wl.form-pill .wl-val { font-size: 17px; font-weight: 800; }
.wl.form-pill .wl-spark { width: 82px; height: 22px; }

.wl.form-medium .wl-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; }
.wl.form-medium .wl-main { display: flex; flex-direction: column; gap: 4px; }
.wl.form-medium .wl-top { display: flex; align-items: baseline; gap: 6px; }
.wl.form-medium .wl-meta { display: flex; gap: 7px; }
.wl.form-medium .wl-val { font-size: 24px; font-weight: 800; line-height: 1; }
.wl.form-medium .wl-unit { font-size: 11px; opacity: 0.7; }
.wl.form-medium .wl-trend { display: none; }
.wl.form-medium .wl-spark { width: 98px; height: 30px; }

.wl.form-big .wl-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; width: 256px; }
.wl.form-big .wl-main { display: flex; flex-direction: column; gap: 5px; }
.wl.form-big .wl-top { display: flex; align-items: baseline; gap: 8px; }
.wl.form-big .wl-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.wl.form-big .wl-val { font-size: 38px; font-weight: 800; line-height: 1; }
.wl.form-big .wl-arrow { font-size: 24px; }
.wl.form-big .wl-unit { font-size: 12px; opacity: 0.72; }
.wl.form-big .wl-trend { display: block; font-size: 12.5px; opacity: 0.85; font-weight: 600; }
.wl.form-big .wl-spark { width: 100%; height: 64px; }

.wl.form-ring .wl-card { width: 92px; height: 92px; border-radius: 50%; border: 3px solid #10B981 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wl.form-ring .wl-dot, .wl.form-ring .wl-unit, .wl.form-ring .wl-trend, .wl.form-ring .wl-meta, .wl.form-ring .wl-spark { display: none !important; }
.wl.form-ring .wl-top { display: flex; flex-direction: column; align-items: center; }
.wl.form-ring .wl-val { font-size: 24px; font-weight: 800; line-height: 1; }

.wl.form-ticker .wl-card { display: inline-flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 10px; padding: 7px 14px; border-radius: 8px; }
.wl.form-ticker .wl-main, .wl.form-ticker .wl-top, .wl.form-ticker .wl-meta { display: contents; }
.wl.form-ticker .wl-unit, .wl.form-ticker .wl-trend { white-space: nowrap; }
.wl.form-ticker .wl-val { font-size: 18px; font-weight: 800; }
.wl.form-ticker .wl-spark { width: 94px; height: 22px; }

.wl.style-glass .wl-card { background: linear-gradient(135deg, rgba(255,255,255,0.40), rgba(235,243,255,0.24)); color: #0B1220; border: 1px solid rgba(255,255,255,0.88); backdrop-filter: blur(20px) saturate(190%); -webkit-backdrop-filter: blur(20px) saturate(190%); box-shadow: 0 14px 36px rgba(0,0,0,0.28); }
.wl.style-titanium .wl-card { background: linear-gradient(145deg, #ECEFF5, #D4DCE8); color: #0F172A; border: 1.5px solid #FFFFFF; box-shadow: 8px 8px 22px rgba(0,0,0,0.36); }
.wl.style-royal .wl-card { background: linear-gradient(135deg, #131D42, #1C1438); color: #FEFCE8; border: 1.5px solid #EAB308; box-shadow: 0 12px 30px rgba(0,0,0,0.50); }
.wl.style-cyber .wl-card { background: linear-gradient(135deg, rgba(15,8,34,0.95), rgba(24,10,48,0.92)); color: #F8FAFC; border: 1.5px solid #06B6D4; box-shadow: 0 0 24px rgba(236,72,153,0.45); }
.wl.style-bauhaus .wl-card { background: #FFFFFF; color: #111827; border: 2px solid #111827; box-shadow: 5px 5px 0 #111827; }

/* Statistics & Calculator Cards */
.stats-card, .calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
}
.sc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sc-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-kpis { display: flex; gap: 16px; font-size: 13.5px; color: var(--mute); }
.sc-kpis strong { color: var(--ink); }
.sc-caption { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }

.calc-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
.sl-item { margin-top: 14px; }
.sl-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-bottom: 5px; }
.sl-item input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.c-verdict {
  margin-top: 16px; padding: 12px 15px; border-radius: 13px; font-weight: 700; font-size: 14.5px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
}
.c-verdict.danger { background: rgba(239,68,68,0.14); color: #EF4444; border-color: #EF4444; }

/* Modular Grid */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mod-item:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.mod-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.mod-top strong { font-size: 15.5px; color: var(--ink); }
.mod-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mod-badge.on { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); }
.mod-badge.opt { background: var(--surface-2); color: var(--mute); border: 1px solid var(--border-2); }
.mod-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* Release Changelog */
.cl-list { display: flex; flex-direction: column; gap: 12px; }
.cl-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 17px 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cl-item:hover { border-color: var(--accent); transform: translateX(3px); }
.cl-ver {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700;
  color: var(--mute); background: var(--surface-2); border-radius: 9px; padding: 4px 8px; text-align: center;
}
.cl-ver.current { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #FFFFFF; }
.cl-body strong { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.cl-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* Ecosystem Cross-Project Showcase Cards */
.eco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.eco-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow); backdrop-filter: blur(var(--blur));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.eco-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.eco-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.eco-emblem {
  width: 50px; height: 50px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.eco-emblem-ozon { background: rgba(245, 158, 11, 0.16); color: #D97706; border: 1px solid rgba(245, 158, 11, 0.36); }
.eco-emblem-skv { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.eco-tag {
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
}
.eco-tag-warm { background: rgba(245, 158, 11, 0.14); color: #B45309; border-color: rgba(245, 158, 11, 0.44); }
[data-ltheme="graphite"] .eco-tag-warm { color: #FCD34D; }
.eco-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.eco-card p { margin: 0 0 20px; font-size: 14.5px; color: var(--ink-2); flex: 1; line-height: 1.55; }
.eco-cta {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
  transition: background 0.18s ease, color 0.18s ease;
}
.eco-card:hover .eco-cta { background: var(--accent); color: #FFFFFF; }

/* Install 3-Step Visual Panel */
.install-panel {
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-hover); backdrop-filter: blur(var(--blur));
}
.inst-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.inst-header h2 { margin: 0; }
.inst-free-badge {
  font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent);
}
.inst-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inst-step {
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 18px; padding: 20px;
}
.inst-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #FFFFFF;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.inst-step strong { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.inst-step p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

.footer {
  margin-top: 48px; padding-top: 28px; line-height: 1.6; border-top: 1px solid var(--border-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--mute);
}
.foot-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .proof-strip, .compare-grid, .details-row, .lab-split, .calc-card, .mod-grid, .eco-grid, .inst-steps, .cl-item { grid-template-columns: 1fr; }
  .nav-menu, .ws-side, .p-demo-pill { display: none; }
  .ws-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Interactive Ecosystem Widgets (Dwina Medallion + Skvorling Live Demo) */
.eco-mini-switch { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 999px; border: 1px solid var(--border-2); }
.eco-sw {
  border: 0; background: transparent; color: var(--ink-2); border-radius: 999px;
  padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all 0.16s ease;
}
.eco-sw.active { background: var(--accent); color: #FFFFFF; }
.eco-card.eco-ozon .eco-sw.active { background: #D97706; }

.medallion-stage {
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,23,42,0.06), rgba(245,158,11,0.10));
  border: 1px solid var(--border-2);
  display: flex;
  justify-content: center;
}
.med-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #F1F5F9, #CBD5E1);
  color: #0F172A;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16), inset 0 1px 0 #FFFFFF;
  transition: transform 0.2s ease;
}
.med-hole {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid #94A3B8; flex-shrink: 0;
}
.med-cross {
  width: 28px; height: 28px; border-radius: 8px;
  background: #DC2626; color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 900; line-height: 1; flex-shrink: 0;
}
.med-text { display: flex; flex-direction: column; gap: 2px; }
.med-text strong { font-size: 13.5px; letter-spacing: 0.04em; color: #0F172A; }
.med-text span { font-size: 11px; color: #334155; font-weight: 600; }

.skv-demo-box {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}
.skv-demo-head { font-size: 11px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.skv-hint { font-weight: 500; opacity: 0.8; }
.skv-sentence { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.skv-w {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-bottom: 1.5px dashed var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.skv-w:hover, .skv-w.active { background: var(--accent); color: #FFFFFF; }
.skv-w.off { background: transparent; color: inherit; border-bottom: 0; padding: 0; font-weight: inherit; cursor: default; }
.skv-tooltip {
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-ink);
  min-height: 18px;
}

.eco-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.eco-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.eco-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.eco-card a.eco-cta { text-decoration: none; }

/* "Ещё нагляднее" live corner widget demo on GlucoSta.ru */
.lp-corner-row { padding-top: 4px; }
.btn-corner-demo {
  width: 100%;
  border: 1.5px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-corner-demo:hover, .btn-corner-demo.active {
  background: var(--accent);
  color: #FFFFFF;
  border-style: solid;
}
.wl-live-corner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  animation: cornerPop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cornerPop {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.wl-corner-x {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}
.wl-corner-x:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

/* Realistic graphic Dwina pendant stage + oversized borderless Skvorling mascot */
.eco-card { position: relative; overflow: visible; }
.medallion-stage {
  margin: 4px 0 16px;
  padding: 12px 10px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(51, 65, 85, 0.22), rgba(15, 23, 42, 0.10));
  border: 1px solid var(--border-2);
  display: flex;
  justify-content: center;
  align-items: center;
}
.med-svg {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.eco-ozon:hover .med-svg { transform: translateY(-3px) rotate(1.2deg); }

.eco-skv { padding-right: 28px; }
.skv-corner-mascot {
  position: absolute;
  top: -16px;
  right: 16px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.eco-skv:hover .skv-corner-mascot { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.skv-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 8px;
}

/* Honest Free-Project Support & Sponsors Block */
.support-card {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
}
.sup-main h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.sup-main p { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); line-height: 1.58; }
.sup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sup-sponsors {
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: 18px;
  padding: 20px 22px;
}
.sup-sp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sup-sp-head strong { font-size: 14.5px; color: var(--ink); }
.sup-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.sup-empty {
  margin: 0;
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .support-card { grid-template-columns: 1fr; }
}
