/* SunElec — main stylesheet (mobile-first) */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/manrope-latin-400-normal.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: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/manrope-latin-500-normal.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: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-latin-600-normal.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: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/manrope-latin-700-normal.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: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/manrope-latin-800-normal.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; }

:root {
  --ink: #0a1324;
  --ink-2: #111d35;
  --ink-3: #1b2a48;
  --line-dark: rgba(255, 255, 255, .09);
  --text: #0f1a2e;
  --muted: #5b6577;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --line: #e3e6e0;
  --sun: #ffb400;
  --sun-2: #ff8a00;
  --sun-soft: #fff4d6;
  --volt: #19c37d;
  --volt-soft: #e2f8ee;
  --sky: #5ab0ff;
  --danger: #d93a3a;
  --grad-sun: linear-gradient(135deg, #ffd54a 0%, #ffb400 45%, #ff8a00 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 19, 36, .04), 0 8px 24px rgba(10, 19, 36, .06);
  --shadow-lg: 0 24px 60px rgba(10, 19, 36, .14);
  --container: 1180px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
  color-scheme: light;
  /* theme tokens for light sections (dark sections — hero, header, footer — are dark in both themes) */
  --surface-2: #fbfcfa;          /* form fields, chips */
  --field-line: #d5d9d2;
  --field-hover: #b9bfb5;
  --placeholder: #9aa3b2;
  --dashed: #cfd5ca;
  --prose: #344055;
  --green-text: #0e9c62;
  --sky-soft: #e6f2ff;
  --sky-text: #2b7fd8;
  --chip-on: #5c3b00;
  --notice-text: #0b5e3c;
  --invalid-bg: #fff8f8;
  --invalid-line: #f0b4b4;
  --alert-bg: #fdecec;
  --alert-text: #8a1f1f;
  --danger-soft: #fde8e8;
  --btn-back: #eef0eb;
  --btn-back-hover: #e3e6df;
  --nav-bg: rgba(255, 255, 255, .94);
  --track: rgba(10, 19, 36, .08);
}

/* Dark theme: OS preference (unless the visitor chose light) or explicit choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #e8ecf3; --muted: #9aa6bb; --bg: #0d1526; --surface: #141e33; --surface-2: #18233b;
    --line: #253150; --field-line: #2f3c5c; --field-hover: #45537a; --placeholder: #6f7c96; --dashed: #3a4766;
    --prose: #c9d1e0; --green-text: #34d399; --sky-soft: rgba(90, 176, 255, .14); --sky-text: #7cc0ff;
    --sun-soft: rgba(255, 180, 0, .13); --volt-soft: rgba(25, 195, 125, .14); --chip-on: #ffd36b; --notice-text: #7ee2b5;
    --invalid-bg: rgba(217, 58, 58, .1); --invalid-line: #8a3a3a; --alert-bg: rgba(217, 58, 58, .14); --alert-text: #ffb4b4;
    --danger: #ff7272; --danger-soft: rgba(255, 114, 114, .14); --btn-back: #1f2a44; --btn-back-hover: #26334f;
    --nav-bg: rgba(20, 30, 51, .94); --track: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8ecf3; --muted: #9aa6bb; --bg: #0d1526; --surface: #141e33; --surface-2: #18233b;
  --line: #253150; --field-line: #2f3c5c; --field-hover: #45537a; --placeholder: #6f7c96; --dashed: #3a4766;
  --prose: #c9d1e0; --green-text: #34d399; --sky-soft: rgba(90, 176, 255, .14); --sky-text: #7cc0ff;
  --sun-soft: rgba(255, 180, 0, .13); --volt-soft: rgba(25, 195, 125, .14); --chip-on: #ffd36b; --notice-text: #7ee2b5;
  --invalid-bg: rgba(217, 58, 58, .1); --invalid-line: #8a3a3a; --alert-bg: rgba(217, 58, 58, .14); --alert-text: #ffb4b4;
  --danger: #ff7272; --danger-soft: rgba(255, 114, 114, .14); --btn-back: #1f2a44; --btn-back-hover: #26334f;
  --nav-bg: rgba(20, 30, 51, .94); --track: rgba(255, 255, 255, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(28px, 6.4vw, 44px); }
.lead { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { --b: var(--grad-sun); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--b); color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s; box-shadow: 0 8px 24px rgba(255, 150, 0, .28); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 150, 0, .38); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-ghost { --b: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; background: rgba(255, 255, 255, .06); }
.btn-dark { --b: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(10, 19, 36, .25); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(10, 19, 36, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-dark); color: #fff; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: #fff; }
.logo img { width: 32px; height: 32px; }
.logo b { font-weight: 800; }
.logo span { color: var(--sun); }
.nav { display: none; margin-left: auto; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 15px; }
.header-phone .icon { color: var(--sun); }
.header-phone span { display: none; }
.header-cta { display: none; min-height: 42px; padding: 0 18px; font-size: 14px; box-shadow: none; }
@media (min-width: 560px) { .header-phone span { display: inline; } }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-phone { margin-left: 12px; }
  .header-cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 40px 0 56px; isolation: isolate; }
.hero::before { /* solar-cell grid */
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after { /* sun glow */
  content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 0, .35) 0%, rgba(255, 138, 0, .12) 35%, transparent 65%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.badge-line { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); font-size: 13px; font-weight: 600; color: #d6dcea; }
.badge-line i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(25, 195, 125, .16); color: var(--volt); font-style: normal; }
.hero h1 { margin-top: 20px; font-size: clamp(30px, 7.6vw, 50px); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: 18px; line-height: 1.55; color: #b9c2d3; max-width: 560px; }
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.hero-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: #d6dcea; }
.hero-points li { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.hero-points .icon { color: var(--volt); width: 20px; height: 20px; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1000px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* energy-flow diagram */
.flow { position: relative; border-radius: 28px; padding: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line-dark); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.flow svg { width: 100%; height: auto; }
.flow .wire { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.flow .wire-sun { stroke: var(--sun); }
.flow .wire-volt { stroke: var(--volt); }
.flow .wire-sky { stroke: var(--sky); animation-direction: reverse; }
.flow .node rect { fill: #13213d; stroke: rgba(255, 255, 255, .12); }
.flow .node text { fill: #fff; font: 700 13px var(--font); }
.flow .node .sub { fill: #8f9bb3; font: 600 11px var(--font); }
.flow .soc { fill: #19c37d; }
.flow .ray { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; transform-origin: 70px 62px; animation: spin 18s linear infinite; }
.flow-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.flow-stats div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.flow-stats b { display: block; font-size: 17px; }
.flow-stats small { color: #8f9bb3; font-size: 12px; font-weight: 600; }
.flow-stats .c-sun b { color: var(--sun); } .flow-stats .c-volt b { color: var(--volt); } .flow-stats .c-sky b { color: var(--sky); }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; } }
.flow .soc { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- cards / benefits ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-2); }
.ico .icon { width: 24px; height: 24px; }
.ico.v { background: var(--volt-soft); color: var(--green-text); }
.ico.s { background: var(--sky-soft); color: var(--sky-text); }

/* ---------- solutions (home / business) ---------- */
.solutions { display: grid; gap: 16px; }
@media (min-width: 900px) { .solutions { grid-template-columns: 1fr 1fr; } }
.solution { position: relative; overflow: hidden; border-radius: 26px; padding: 30px; color: #fff; background: var(--ink); min-height: 100%; display: flex; flex-direction: column; isolation: isolate; }
.solution::after { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%; right: -140px; top: -160px; background: radial-gradient(circle, rgba(255, 180, 0, .28), transparent 65%); }
.solution.biz { background: #0d2a24; }
.solution.biz::after { background: radial-gradient(circle, rgba(25, 195, 125, .3), transparent 65%); }
.solution .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; }
.solution.biz .tag { color: var(--volt); }
.solution h3 { font-size: clamp(24px, 5vw, 32px); margin: 14px 0 12px; }
.solution > p { color: #b9c2d3; }
.checks { margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 180, 0, .16); color: var(--sun); margin-top: 1px; }
.biz .checks .icon { background: rgba(25, 195, 125, .16); color: var(--volt); }
.solution .btn { margin-top: auto; align-self: flex-start; }
.biz .btn { --b: var(--volt); box-shadow: 0 8px 24px rgba(25, 195, 125, .25); }

/* ---------- station types ---------- */
.types { display: grid; gap: 14px; }
@media (min-width: 900px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.type.featured { border-color: transparent; box-shadow: 0 0 0 2px var(--sun), var(--shadow-lg); }
.type .ribbon { position: absolute; top: -12px; left: 24px; background: var(--grad-sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.type h3 { font-size: 22px; margin: 16px 0 6px; }
.type .for { color: var(--muted); font-size: 15px; }
.type dl { margin: 18px 0 0; display: grid; gap: 10px; font-size: 15px; }
.type dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.type dt { color: var(--muted); }
.type dd { margin: 0; font-weight: 700; text-align: right; }
.type .note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.yes { color: var(--green-text); } .no { color: var(--muted); }

/* ---------- selection / process ---------- */
.pt0 { padding-top: 0 !important; }
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: #b9c2d3; }
.analyze { display: grid; gap: 14px; }
@media (min-width: 640px) { .analyze { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .analyze { grid-template-columns: repeat(4, 1fr); } }
.analyze li { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.analyze .ico { background: rgba(255, 180, 0, .12); color: var(--sun); }
.analyze h3 { font-size: 18px; margin: 16px 0 6px; }
.analyze p { color: #a9b3c6; font-size: 15px; }
.result { margin-top: 18px; display: grid; gap: 16px; align-items: center; padding: 26px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 180, 0, .14), rgba(25, 195, 125, .12)); border: 1px solid rgba(255, 180, 0, .25); }
.result h3 { font-size: 20px; }
.result ul { display: grid; gap: 6px; color: #d6dcea; font-size: 15px; }
.result li::before { content: '→ '; color: var(--sun); font-weight: 800; }
@media (min-width: 900px) { .result { grid-template-columns: 1fr 1.4fr auto; } .result ul { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--sun); font-weight: 800; font-size: 15px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps small { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--green-text); }

/* ---------- lead start block ---------- */
.start { position: relative; overflow: hidden; border-radius: 32px; padding: 36px 24px; background: var(--ink); color: #fff; isolation: isolate; }
.start::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(255, 180, 0, .3), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(25, 195, 125, .22), transparent 60%); }
.start .h2 { max-width: 640px; }
.start .lead { color: #b9c2d3; max-width: 620px; }
.choose { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 700px) { .start { padding: 56px; } .choose { grid-template-columns: 1fr 1fr; max-width: 760px; } }
.choose a { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1.5px solid var(--line-dark); text-decoration: none; transition: border-color .2s, background .2s, transform .15s; }
.choose a:hover { border-color: var(--sun); background: rgba(255, 180, 0, .08); transform: translateY(-2px); }
.choose .ico { flex: none; background: var(--grad-sun); color: var(--ink); }
.choose .ico.v { background: var(--volt); color: var(--ink); }
.choose b { display: block; font-size: 18px; }
.choose small { color: #a9b3c6; font-size: 14px; }
.choose .icon-arrow { margin-left: auto; color: var(--sun); }
.start-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #a9b3c6; font-size: 14px; }
.start-foot span { display: inline-flex; gap: 8px; align-items: center; }
.start-foot .icon { color: var(--volt); width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--sun-2); border-bottom: 2.5px solid var(--sun-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p + p { margin-top: 10px; }

/* ---------- contacts / footer ---------- */
.contacts { display: grid; gap: 14px; }
@media (min-width: 800px) { .contacts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.contact { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
a.contact:hover { border-color: var(--sun); }
.contact small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact b { font-size: 16px; word-break: break-word; }
.site-footer { background: var(--ink); color: #8f9bb3; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer .container { display: grid; gap: 18px; }
.site-footer a { color: #d6dcea; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 800px) { .site-footer { padding-bottom: 40px; } .site-footer .container { grid-template-columns: 1fr auto; align-items: center; } }

/* sticky mobile CTA */
.sticky-cta { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateY(150%); transition: transform .3s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(10, 19, 36, .35); }
@media (min-width: 800px) { .sticky-cta { display: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (min-width: 1000px) { .section { padding: 104px 0; } .section-head { margin-bottom: 48px; } }

/* ---------- text pages (privacy, errors) ---------- */
.page { padding: 48px 0 80px; }
.prose { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
@media (min-width: 700px) { .prose { padding: 48px 56px; } }
.prose h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 8px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--prose); }
.prose p + p { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.prose .meta { color: var(--muted); font-size: 14px; }
.error-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.error-page .code { font-size: clamp(80px, 22vw, 160px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 26px; margin: 12px 0; }
.error-page p { color: var(--muted); max-width: 440px; margin: 0 auto 26px; }

@media (min-width: 640px) and (max-width: 999px) { .flow { max-width: 560px; margin: 0 auto; width: 100%; } }

/* ---------- mobile refinements (< 640px) ---------- */
/* Grid/flex children must be allowed to shrink, otherwise long words or
   3-column inner grids push the hero wider than the screen. */
.hero-grid > *, .solutions > *, .cards > *, .types > *, .steps > *, .contacts > * { min-width: 0; }
.flow-stats div { min-width: 0; }

@media (max-width: 639px) {
  :root { --radius: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 22px; }
  .h2 { font-size: 27px; }
  .lead { font-size: 16px; margin-top: 10px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }

  /* buttons: allow wrapping instead of overflowing */
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 22px; min-height: 52px; }

  /* hero */
  .hero { padding: 24px 0 36px; }
  .hero-grid { gap: 26px; }
  .badge-line { font-size: 12px; }
  .hero h1 { margin-top: 16px; font-size: 30px; line-height: 1.12; }
  .hero-sub { font-size: 16px; margin-top: 14px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { margin-top: 20px; gap: 8px 18px; font-size: 14px; }
  /* the full diagram is unreadable at phone width: keep only the 3 key facts */
  .flow { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .flow svg { display: none; }
  .flow-stats { margin-top: 0; gap: 6px; }
  .flow-stats div { padding: 10px; border-radius: 12px; }
  .flow-stats b { font-size: 14px; }
  .flow-stats small { font-size: 11.5px; line-height: 1.35; display: block; margin-top: 2px; }

  /* compact cards: icon on the left, text on the right */
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; box-shadow: none; }
  .card .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
  .card h3 { margin: 0 0 4px; font-size: 17px; align-self: center; }
  .card p { font-size: 14.5px; line-height: 1.5; }

  .solution { padding: 22px 18px; border-radius: 20px; }
  .solution h3 { font-size: 23px; }
  .checks { margin: 16px 0 20px; gap: 10px; font-size: 15px; }
  .solution .btn { align-self: stretch; }

  .types { gap: 12px; }
  .type { padding: 20px 18px; }
  .type .ico { display: none; }
  .type h3 { margin-top: 0; font-size: 20px; }
  .type dl { margin-top: 12px; gap: 8px; font-size: 14.5px; }
  .type dl div { padding-bottom: 8px; }
  .types .featured { margin-top: 8px; }

  .analyze { gap: 10px; }
  .analyze li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .analyze .ico { grid-row: span 2; width: 40px; height: 40px; }
  .analyze h3 { margin: 0 0 2px; font-size: 16.5px; }
  .analyze p { font-size: 14px; }
  .result { padding: 20px 18px; }

  /* steps as a compact vertical timeline */
  .steps { gap: 0; position: relative; }
  .steps li { padding: 4px 0 22px 54px; background: none; border: 0; border-radius: 0; }
  .steps li::before { left: 0; top: 0; width: 38px; height: 38px; border-radius: 10px; font-size: 13px; }
  .steps li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
  .steps h3 { font-size: 17px; margin-bottom: 4px; }
  .steps p { font-size: 14.5px; }
  .steps small { margin-top: 6px; }

  .start { padding: 26px 18px; border-radius: 22px; }
  .choose { margin-top: 20px; gap: 10px; }
  .choose a { padding: 14px; gap: 12px; }
  .choose b { font-size: 16px; }

  .faq summary { font-size: 15.5px; padding: 16px 48px 16px 16px; }
  .faq summary::after { right: 18px; }
  .faq .a { padding: 0 16px 16px; font-size: 15px; }

  /* contacts: one compact list */
  .contacts { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .contact { border: 0; border-radius: 0; padding: 14px 16px; align-items: center; }
  .contact + .contact { border-top: 1px solid var(--line); }
  .contact .ico { width: 40px; height: 40px; border-radius: 12px; }
  .contact b { font-size: 15px; }
}

@media (max-width: 399px) { .flow-stats b { font-size: 13px; } .flow-stats div { padding: 9px 8px; } }
@media (max-width: 359px) {
  .hero h1 { font-size: 27px; }
  .flow-stats { grid-template-columns: 1fr; }
  .flow-stats div { display: flex; gap: 8px; align-items: baseline; }
}

/* ---------- hero type choice + money stats ---------- */
.hero-ask { margin-top: 26px; font-weight: 700; font-size: 15px; color: #fff; }
.hero-choose { margin-top: 12px; }
@media (min-width: 560px) { .hero-choose { grid-template-columns: 1fr 1fr; } }
.hero-choose a { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; } }
.stats div { padding: 18px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line-dark); color: #fff; display: grid; gap: 4px; align-content: start; }
.stats b { font-size: clamp(24px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stats div:nth-child(2) b, .stats div:nth-child(3) b { background: linear-gradient(135deg, #5ff0b0, #19c37d); -webkit-background-clip: text; background-clip: text; }
.stats span { font-size: 13.5px; color: #b9c2d3; line-height: 1.4; }
.footnote { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 820px; }
@media (max-width: 639px) {
  .hero-ask { margin-top: 20px; }
  .stats div { padding: 14px; }
  .stats span { font-size: 12.5px; }
}

/* ---------- theme toggle ---------- */
.theme-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s; }
.theme-btn:hover { background: rgba(255, 255, 255, .14); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; color: var(--sun); }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.site-header .theme-btn { margin-left: auto; }
.site-header .header-phone ~ .theme-btn { margin-left: 4px; }
@media (min-width: 1000px) { .site-header .nav ~ .theme-btn { margin-left: 12px; } }
