/* ==========================================================================
   ТОВ «ВЕРАКС ЕНЕРДЖИ» — основні стилі сайту
   Кольори бренду взято з логотипа: блакитне кільце, жовта дуга, синя блискавка.
   ========================================================================== */

:root {
  --c-bg: #f4f7fb;
  --c-surface: #ffffff;
  --c-surface-2: #eef3f9;
  --c-ink: #0b1b2e;
  --c-ink-2: #23364d;
  --c-muted: #5b6b80;
  --c-line: #dbe4ee;

  --c-primary: #0b63ce;
  --c-primary-ink: #ffffff;
  --c-primary-dark: #084c9e;
  --c-cyan: #19b8ec;
  --c-volt: #ffd60a;
  --c-volt-ink: #3a2f00;
  --c-dark: #061527;
  --c-dark-2: #0b2440;

  --c-ok: #148a56;
  --c-warn: #b25e00;
  --c-danger: #c62828;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(11, 27, 46, .06), 0 2px 8px rgba(11, 27, 46, .05);
  --shadow: 0 6px 24px rgba(11, 27, 46, .08);
  --shadow-l: 0 18px 50px rgba(6, 21, 39, .16);

  --f-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--c-ink); }
h1 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 600; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; }
h3 { font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-volt); color: var(--c-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-volt); color: var(--c-ink); padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--c-dark); color: #c9d6e6; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--c-volt); }
.topbar__alert { display: block; }
.topbar__alert a { white-space: nowrap; }
.topbar__alert svg { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; color: var(--c-volt); margin-right: 6px; }
.topbar__meta { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); flex: none; }
.brand svg { width: 46px; height: 46px; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: 17px; line-height: 1.05; letter-spacing: .02em; }
.brand__name span { display: block; font-family: var(--f-body); font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--c-muted); text-transform: uppercase; margin-top: 4px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li + li { margin: 0; }
.nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--c-ink-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.nav a[aria-current="page"] { color: var(--c-primary); background: #e7f0fc; }
.nav .btn { margin-left: 10px; }
.nav a.btn { display: inline-flex; }
.nav a.nav__cabinet { padding: 7px 12px; color: var(--c-ink); border-color: var(--c-line); gap: 6px; }
.nav a.nav__cabinet svg { width: 16px; height: 16px; }
.nav a.nav__cabinet[aria-current="page"] { color: var(--c-primary); border-color: #bcd7f7; background: #e7f0fc; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--c-line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--c-ink); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1200px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-l); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; max-height: calc(100vh - var(--header-h) - 38px); overflow: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 4px; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .nav a.btn { display: flex; }
  body.is-scrolled .nav { inset-block-start: var(--header-h); max-height: calc(100vh - var(--header-h)); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent; font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: var(--c-primary-ink); box-shadow: 0 6px 18px rgba(11, 99, 206, .28); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--volt { background: var(--c-volt); color: var(--c-volt-ink); box-shadow: 0 6px 18px rgba(255, 214, 10, .3); }
.btn--volt:hover { background: #ffe14a; color: var(--c-volt-ink); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-surface-2); color: var(--c-ink); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #12407a 0%, rgba(18, 64, 122, 0) 60%), linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%); color: #dce7f4; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--c-volt); }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: #c3d3e6; max-width: 600px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero__badges li { margin: 0; font-size: 13px; font-weight: 700; color: #bfe9fb; background: rgba(25, 184, 236, .12); border: 1px solid rgba(25, 184, 236, .35); padding: 6px 12px; border-radius: 99px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
.hero__grid-bg { position: absolute; inset: 0; z-index: 1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); }

.page-hero { background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%); color: #c9d8ea; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); max-width: 900px; }
.page-hero p { max-width: 780px; font-size: 17px; margin: 0; }
.crumbs { font-size: 13px; margin-bottom: 14px; color: #8fa6c1; }
.crumbs a { color: #bcd0e7; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* power-flow animation */
.flow-line { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.flow-line--slow { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.spark { animation: spark 3.2s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: .2; } 45% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: #c9d8ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head p { color: var(--c-muted); font-size: 17px; margin: 0; }
.section--dark .section__head p { color: #9fb4cc; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--c-volt); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--c-cyan); }

.grid { display: grid; gap: 20px; }
/* grid children must be able to shrink below their content width (long IBAN, wide tables) */
.grid > *, .split > *, .layout > *, .mix > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-s); position: relative; }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c5d6ea; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e3f4fd, #eaf1fd); color: var(--c-primary); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-top: 6px; }
.card__link::after { content: "→"; transition: transform .15s; }
.card__link:hover::after { transform: translateX(3px); }
.card--dark { background: var(--c-dark-2); border-color: rgba(255, 255, 255, .08); color: #c9d8ea; }
.card--dark h3 { color: #fff; }
.card--accent { border-top: 4px solid var(--c-volt); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; margin-top: -48px; position: relative; z-index: 3; box-shadow: var(--shadow); }
.stat { background: var(--c-surface); padding: 26px 24px; }
.stat__num { font-family: var(--f-head); font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--c-ink); line-height: 1.1; }
.stat__num small { font-size: .5em; font-weight: 600; color: var(--c-muted); margin-left: 4px; }
.stat__label { color: var(--c-muted); font-size: 14px; margin-top: 6px; }

/* ---------- Flow diagram (як працює ринок) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; position: relative; }
.flow__step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 18px; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: .2s ease; position: relative; }
.flow__step:hover, .flow__step.is-active { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11, 99, 206, .12); }
.flow__step.is-active { background: #f2f7ff; }
.flow__step .num { font-family: var(--f-head); font-size: 13px; color: var(--c-primary); font-weight: 600; }
.flow__step h4 { margin: 8px 0 4px; }
.flow__step p { margin: 0; font-size: 14px; color: var(--c-muted); }
.flow__step.is-verax { border-color: var(--c-volt); background: #fffbe6; }
.flow__panel { margin-top: 18px; background: var(--c-dark-2); color: #d3e0ef; border-radius: var(--radius); padding: 22px 24px; min-height: 96px; }
.flow__panel h4 { color: var(--c-volt); margin-bottom: 6px; }
.flow__panel p { margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 20px 22px 20px 78px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 600; }
.steps h4 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--c-ink-2); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid rgba(255, 255, 255, .14); }
.timeline li { position: relative; margin: 0 0 26px; padding-left: 18px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-volt); box-shadow: 0 0 0 5px rgba(255, 214, 10, .18); }
.timeline .year { font-family: var(--f-head); color: var(--c-cyan); font-weight: 600; font-size: 15px; }
.timeline h4 { color: #fff; margin: 4px 0; }
.timeline p { margin: 0; color: #a9bdd4; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--c-line); }
thead th { background: var(--c-surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 800; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--kv th { width: 34%; background: #fafcfe; }
.table--kv td { overflow-wrap: anywhere; }
tr.is-sub td { font-weight: 800; background: #f7fafd; }


/* ---------- Offers history ---------- */
.history { list-style: none; margin: 0; padding: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.history__item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 36px; margin: 0 0 22px; position: relative; }
.history__item::before { content: ""; position: absolute; left: 126px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 3px solid #b6c2d1; box-sizing: border-box; }
.history__item.is-current::before { border-color: var(--c-primary); background: var(--c-volt); }
.history__date { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--c-muted); padding-top: 18px; text-align: right; }
.history__item.is-current .history__date { color: var(--c-primary); }
.history__body { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-s); }
.history__item.is-current .history__body { border-color: #bcd7f7; box-shadow: 0 0 0 3px rgba(11, 99, 206, .08), var(--shadow-s); }
.history__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.history__meta { font-size: 14px; color: var(--c-muted); margin-bottom: 12px; }
.history__offers { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.history__offers li { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 8px; margin: 0; }
.history__offers li:nth-child(odd) { background: var(--c-surface-2); }
.history__offers b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.history__offers a { font-weight: 700; text-decoration: none; text-align: right; }
@media (max-width: 700px) {
  .history::before { left: 7px; }
  .history__item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .history__item::before { left: 1px; top: 4px; }
  .history__date { text-align: left; padding-top: 0; }
  .history__offers li { grid-template-columns: minmax(0, 1fr) auto; }
  .history__offers a { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(11, 99, 206, .15); }
.field .hint { font-size: 13px; color: var(--c-muted); margin-top: 6px; }

/* ---------- Notices ---------- */
[hidden] { display: none !important; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: #fff8d6; border: 1px solid #f2dc7a; color: #4a3b00; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #a17c00; }
.notice p:last-child { margin: 0; }
.notice--info { background: #e9f3ff; border-color: #bcd7f7; color: #0b3366; }
.notice--info svg { color: var(--c-primary); }
.notice--danger { background: #fdecec; border-color: #f3c0c0; color: #6b1010; }
.notice--danger svg { color: var(--c-danger); }

.files-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
table.monitor td:not(:first-child), table.monitor th:not(:first-child) { text-align: center; }
table.monitor td:not(:first-child) { color: var(--c-ok); font-weight: 800; }
table.monitor td.muted { color: var(--c-muted); font-weight: 400; }

/* ---------- Особистий кабінет ---------- */
.auth { padding: 0; overflow: hidden; }
.auth__tabs { display: flex; border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); }
.auth__tab { flex: 1; padding: 16px 12px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--c-muted); cursor: pointer; }
.auth__tab:hover { color: var(--c-ink); }
.auth__tab[aria-selected="true"] { color: var(--c-primary); border-bottom-color: var(--c-primary); background: var(--c-surface); }
.auth__body { padding: 28px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 18px; font-size: 14px; }
.auth__check { display: flex; gap: 8px; align-items: center; font-weight: 500 !important; font-size: 14px; cursor: pointer; }
.auth__check input { width: auto !important; margin: 0; }
.auth__check--top { align-items: flex-start; }
.auth__check--top input { margin-top: 4px; }
.auth__submit { width: 100%; }
.auth__submit.is-loading { opacity: .7; pointer-events: none; }
.auth__submit.is-loading span::after { content: "…"; }
.auth__alt { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--c-muted); font-size: 13px; }
.auth__alt::before, .auth__alt::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #e3f4fd, #eaf1fd); color: var(--c-primary); }
.features__ico svg { width: 20px; height: 20px; }
.features b { display: block; color: var(--c-ink); margin-bottom: 2px; }
.features span { color: var(--c-ink-2); font-size: 15px; }

.news { display: grid; gap: 14px; }
.news__item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.news__date { font-family: var(--f-head); font-size: 14px; color: var(--c-primary); font-weight: 600; }
.news__item h4 { margin: 0 0 4px; }
.news__item p { margin: 0; color: var(--c-ink-2); font-size: 15px; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); overflow: hidden; }
.acc details { border-bottom: 1px solid var(--c-line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc summary:hover { background: #f8fbfe; }
.acc .acc__body { padding: 0 22px 20px; color: var(--c-ink-2); }
.acc .acc__body p:last-child, .acc .acc__body ul:last-child { margin-bottom: 0; }

/* ---------- Docs list ---------- */
.docs { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; }
.doc__ico { width: 42px; height: 48px; flex: none; border-radius: 8px; background: #e7f0fc; color: var(--c-primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.doc__ico--pdf { background: #fdecec; color: var(--c-danger); }
.doc__body { flex: 1; min-width: 0; }
.doc__title { font-weight: 700; color: var(--c-ink); }
.doc__meta { font-size: 13px; color: var(--c-muted); }
.doc__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Donut chart ---------- */
.mix { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.mix__chart { position: relative; }
.mix__chart svg { width: 100%; height: auto; transform: rotate(-90deg); }
.mix__chart circle { fill: none; stroke-width: 26; transition: stroke-width .15s, opacity .15s; cursor: pointer; }
.mix__chart circle.is-dim { opacity: .35; }
.mix__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.mix__center b { display: block; font-family: var(--f-head); font-size: 20px; color: var(--c-ink); line-height: 1.1; }
.mix__center span { font-size: 13px; color: var(--c-muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legend li { margin: 0; display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: default; }
.legend li:hover, .legend li.is-active { background: var(--c-surface-2); }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend .v { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.legend .mwh { font-variant-numeric: tabular-nums; color: var(--c-muted); font-size: 14px; text-align: right; min-width: 110px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #e8f6ee; color: var(--c-ok); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--warn { background: #fff2df; color: var(--c-warn); }
.chip--plan { background: #e7f0fc; color: var(--c-primary); }

/* ---------- Invoice example ---------- */
.invoice-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.invoice { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); font-size: 14px; overflow: hidden; }
.invoice__stamp { position: absolute; right: -36px; top: 22px; transform: rotate(35deg); background: var(--c-volt); color: var(--c-volt-ink); font-weight: 800; font-size: 11px; letter-spacing: .14em; padding: 4px 44px; }
.invoice__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--c-ink); margin-bottom: 12px; }
.invoice__no { font-weight: 700; display: flex; align-items: center; gap: 8px; padding-right: 40px; }
.invoice__row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.invoice__table { font-size: 13px; margin: 10px 0; }
.invoice__table th, .invoice__table td { padding: 8px; }
.invoice__table tfoot td { border-bottom: 0; }
.mk { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 800; margin-right: 6px; cursor: default; transition: transform .15s, box-shadow .15s; }
.mk.is-on { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(255, 214, 10, .6); background: var(--c-volt); color: var(--c-volt-ink); }
.invoice__legend { list-style: none; padding: 0; margin: 0; counter-reset: lg; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.invoice__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.invoice__table thead th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.invoice__legend li { counter-increment: lg; position: relative; padding: 10px 12px 10px 44px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); margin: 0; font-size: 14px; transition: background .15s, border-color .15s; }
.invoice__legend li::before { content: counter(lg); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.invoice__legend li.is-on { background: #fffbe6; border-color: #f2dc7a; }
@media (max-width: 700px) { .invoice__legend { grid-template-columns: 1fr; } }

/* ---------- Two-col layout with side nav ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.sidenav { position: sticky; top: calc(var(--header-h) + 20px); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px; }
.sidenav a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--c-ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.sidenav a:hover { background: var(--c-surface-2); }
.sidenav a.is-active { background: #e7f0fc; color: var(--c-primary); }
.content > section { margin-bottom: 56px; }
.content > section:last-child { margin-bottom: 0; }
.content h2 { font-size: clamp(22px, 2.4vw, 28px); }
.content .lead { font-size: 17px; color: var(--c-ink-2); }

.legal { font-size: 15px; color: var(--c-ink-2); }
.legal h3 { margin-top: 1.4em; }
.ref { font-size: 13px; color: var(--c-muted); }
.ref a { color: inherit; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .card__icon { margin: 0; flex: none; }
.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card p { margin: 0; }


/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: #9fb4cc; padding: 64px 0 28px; font-size: 14px; }
.footer a { color: #d5e2f1; text-decoration: none; }
.footer a:hover { color: var(--c-volt); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 8px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand__name span { color: #8fa6c1; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidenav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 80px; }
  .hero__art { max-width: 520px; }
  .grid--2, .grid--3, .split, .mix { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix__chart { max-width: 280px; margin: 0 auto; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .grid--4, .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .news__item { grid-template-columns: 1fr; gap: 4px; }
  .brand__name { font-size: 15px; }
  .brand svg { width: 40px; height: 40px; }
  .topbar__meta { display: none; }
  .doc { flex-wrap: wrap; }
  .doc__actions { width: 100%; }
  .legend li { grid-template-columns: 14px 1fr auto; }
  .legend .mwh { display: none; }
  th, td { padding: 11px 12px; }
}

@media print {
  .topbar, .header, .footer, .nav-toggle, .hero__art, .sidenav { display: none !important; }
  body { background: #fff; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  .reveal { opacity: 1; transform: none; }
}
