/* Шрифты Inter и JetBrains Mono (SIL OFL 1.1), файлы лежат у нас: public/fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-cyrillic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* Calculalia, концепция «Laboratorio»: тёмная приборная панель, тонкие линии, моноширинные подписи, один яркий цвет сигнала */
:root {
  --bg: #0A0E13;
  --bg-2: #0E141B;
  --surface: #121921;
  --surface-2: #18212B;
  --text: #EEF2F5;
  --muted: #A3AFBB;
  --line: #27323E;
  --line-2: #3A4856;
  --accent: #C6F24E;
  --accent-ink: #0A0E13;
  --accent-2: rgba(198, 242, 78, .11);
  --warn: #F4BC63;
  --warn-bg: #2A2114;
  --bad: #FF9A85;
  --before: #48566A;
  --after: #C6F24E;
  --radius: 14px;
  --shadow: none;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.02em; }
h1, h2, h3 { line-height: 1.12; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.7rem); line-height: 1.03; font-weight: 400; letter-spacing: -.038em; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 400; letter-spacing: -.028em; }
h3 { font-size: 1.14rem; margin-top: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #E0FF8A; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
#wizard .wrap { max-width: 1000px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* подпись над разделом */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 .74rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; }
.sec { padding-top: 72px; }
.sec > h2:first-of-type, .sec .sec-h { margin-top: 0; margin-bottom: 26px; }

/* шапка: плавающая капсула */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: linear-gradient(var(--bg) 40%, rgba(10,14,19,0)); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 58px; max-width: 1240px; padding: 7px 8px 7px 20px; background: rgba(18,25,33,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 999px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.04rem; letter-spacing: -.015em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.logo { display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--accent); }
.logo svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .94rem; white-space: nowrap; padding: 6px 2px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a + a::before { content: "/"; color: var(--line-2); margin: 0 14px; font-family: var(--mono); }
#lang { width: auto; flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: 999px; padding: 8px 10px; font: 500 .78rem var(--mono); letter-spacing: .04em; cursor: pointer; }
.top-cta { flex: none; }
.top > .wrap:not(:has(.nav)) #lang { margin-left: auto; }
body:has(#wizard:not([hidden])) .top-cta { display: none; }
@media (max-width: 860px) {
  .top-in { padding-left: 16px; gap: 8px 10px; flex-wrap: wrap; border-radius: 24px; }
  /* на телефоне меню второй строкой: так «Precio por horas» доступна всегда */
  .nav { order: 5; flex: 0 0 100%; margin-left: 0; padding: 0 8px 4px 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: .8rem; }
  .nav a + a::before { margin: 0 6px; }
  #lang { margin-left: auto; }
  .top-cta { margin-left: auto; }
  .top-cta + #lang { margin-left: 0; }
}
@media (max-width: 480px) {
  .btn.top-cta { padding: 8px 12px; font-size: .82rem; }
  .btn.top-cta::after { display: none; }
}

/* первый экран */
.hero { position: relative; overflow: hidden; margin-top: -82px; padding: 128px 0 0; min-height: max(760px, 62.5vw); background: var(--bg); border-bottom: 1px solid var(--line); }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: min(640px, 46vw); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.5; max-width: 540px; color: var(--muted); margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.hero-cta .muted { font: 400 .76rem/1.5 var(--mono); letter-spacing: .02em; flex-basis: 100%; }

.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-art .ln { fill: none; stroke: #6F8497; stroke-width: 1.2; }
.hero-art .ln.thin { stroke: #3E4F5F; stroke-width: 1; }
.hero-art .ln.far { stroke: #2C3A47; }
.hero-art .ln.pyl { stroke: #80959F; stroke-width: 1; }
.hero-art .tr { fill: #121921; stroke: #8DA2B4; stroke-width: 1.2; }
.hero-art .wire { fill: none; stroke: #55697B; stroke-width: .9; }
.hero-art .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1.2 98.8; animation: flow 9s linear infinite; }
.hero-art .blade { fill: #C9D5DF; }
.hero-art .hub { fill: #EEF2F5; }
.hero-art .rotor { animation: spin 16s linear infinite; }
.hero-art .panel-f { fill: url(#pvf); stroke: #4A6172; stroke-width: 1; }
.hero-art .axis { fill: none; stroke: #27323E; stroke-width: 1; stroke-dasharray: 2 5; }
.hero-art .fall { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 2.4s cubic-bezier(.5,.05,.2,1) both; }
.hero-art .end { fill: var(--accent); }
.hero-art .end-halo { fill: var(--accent); opacity: .18; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
.hero-art .lab { fill: var(--muted); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-art .lab.strong { fill: var(--accent); }
.hero-art .lead-l { fill: none; stroke: #3E4F5F; stroke-width: 1; }
@keyframes flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art .pulse { display: none; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 112px; display: flex; flex-direction: column; }
  .hero > .wrap { order: 1; }
  .hero-art { order: 2; }
  .hero-text { max-width: none; }
  .hero-art { position: relative; inset: auto; height: 340px; margin-top: 28px; }
  .hero-art .labs, .hero-art .lab { display: none; }
}

/* кнопки: капсула со стрелкой */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 500; font-size: .95rem; line-height: 1.25; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: #DBFF74; border-color: #DBFF74; color: var(--accent-ink); }
.btn.primary::after { content: "→"; font-family: var(--sans); transition: transform .15s; }
.btn.primary:hover::after { transform: translateX(3px); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.btn[data-back]::before { content: "←"; }
.btn.big { padding: 16px 28px; font-size: 1.06rem; }
.btn.small { padding: 7px 14px; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: default; }
.top-cta.btn { padding: 10px 18px; font-size: .9rem; }

/* типы объектов */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--bg-2); border: 0; padding: 22px 20px 24px; cursor: pointer; font: inherit; color: var(--text); min-height: 172px; transition: background .15s; position: relative; }
.seg:hover, .seg.on { background: var(--surface-2); }
.seg:focus-visible { outline-offset: -3px; }
.seg .ico { display: block; width: 34px; height: 34px; color: var(--accent); margin-bottom: 30px; }
.seg .ico svg { width: 100%; height: 100%; display: block; }
.seg b { display: block; font-weight: 500; font-size: 1.06rem; letter-spacing: -.012em; }
.seg > span:last-child { font-size: .84rem; line-height: 1.4; color: var(--muted); margin-top: 6px; }

/* как это работает: цепь с узлами */
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 28px; }
.steps-row li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.steps-row li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.steps-row b { display: block; font-weight: 500; font-size: 1.1rem; letter-spacing: -.012em; margin-bottom: 8px; }
.steps-row span { color: var(--muted); font-size: .94rem; }

/* что мы смотрим в счёте */
.look { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.look > div { background: var(--bg-2); padding: 22px 22px 26px; }
.look b { display: flex; align-items: baseline; gap: 12px; font-weight: 500; font-size: 1.06rem; letter-spacing: -.012em; margin-bottom: 8px; }
.look i { font: 500 .74rem var(--mono); color: var(--accent); }
.look p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mini-out { margin-top: 14px; padding: 14px 16px; background: var(--accent-2); border: 1px solid rgba(198,242,78,.28); border-radius: 10px; min-height: 48px; font-size: .95rem; }
.honest { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 0 40px; }
.honest li { counter-increment: r; display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--text); font-size: .98rem; }
.honest li::before { content: "R" counter(r); font: 500 .74rem/1.9 var(--mono); color: var(--accent); flex: none; }

/* формы */
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
label > span { color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; transition: border-color .15s; }
input::placeholder { color: #7D8A97; }
input:hover, select:hover, textarea:hover { border-color: #55697B; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input.found { border-color: var(--accent); background: var(--accent-2); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input[type="file"] { padding: 8px; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-size: .86rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; margin-right: 12px; cursor: pointer; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); margin: 12px 0; line-height: 1.45; }
.check > span { color: var(--text); }
.check input { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.span2 { grid-column: 1 / -1; }
.inline { display: flex; gap: 8px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0 0 16px; background: var(--surface); }
.form legend { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 0 8px; color: var(--accent); }
.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.row .btn.primary { margin-left: auto; }
.panel > h2:first-child { margin-top: 28px; }

/* шаги мастера: линия с узлами */
.progress { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; gap: 0; overflow-x: auto; }
.progress li { flex: 1; min-width: 92px; position: relative; font: 500 .72rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 22px 10px 8px 0; }
.progress li::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.progress li::after { content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.progress li.done::before { background: var(--accent); }
.progress li.done::after { background: var(--accent); border-color: var(--accent); }
.progress li.cur { color: var(--text); }
.progress li.cur::after { border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px rgba(198,242,78,.2); }

.drop { position: relative; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 44px 20px; text-align: center; align-items: center; background: var(--bg-2) radial-gradient(var(--line-2) 1px, transparent 1.5px) 0 0 / 22px 22px; cursor: pointer; color: var(--text); transition: border-color .15s, background-color .15s; }
.drop:hover { border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop.over { border-color: var(--accent); background-color: var(--accent-2); }
.drop > b { font-weight: 500; font-size: 1.08rem; }
.drop-icon { display: block; width: 40px; height: 40px; color: var(--accent); margin-bottom: 6px; }
.drop-icon svg { width: 100%; height: 100%; display: block; }
.status { min-height: 1.4em; margin: 8px 0; font-size: .92rem; }
.status.err { color: var(--bad); }
.status.ok { color: var(--accent); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; }
.box summary { font-weight: 500; cursor: pointer; }
.box[open] summary { margin-bottom: 12px; }

/* отчёт */
.r-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 26px 0 18px; }
.r-head h2 { margin: 0; flex-basis: 100%; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 11px; font: 500 .72rem/1.5 var(--mono); letter-spacing: .03em; background: var(--warn-bg); color: var(--warn); }
.badge.exact { background: var(--accent-2); color: var(--accent); }
.badge.bad { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0 12px; }
.kpi { background: var(--bg-2); padding: 18px 20px; }
.kpi .v { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; margin: 6px 0; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font: 400 .74rem/1.4 var(--mono); letter-spacing: .02em; }
.kpi.main { background: var(--accent); color: var(--accent-ink); }
.kpi.main .l { color: #27330C; }
.bars { display: flex; height: 16px; border-radius: 4px; overflow: hidden; margin: 10px 0; gap: 2px; background: var(--bg); }
.bars span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.measure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 10px 0; }
.measure.unprofitable, .measure.needData { background: var(--bg-2); }
.m-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 6px; }
.m-top h4 { margin: 0; font-size: 1.06rem; flex: 1 1 240px; }
.m-top h4 .muted { font: 400 .72rem var(--mono); margin-left: 4px; }
.m-nums { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; color: var(--muted); }
.m-nums b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.measure details { margin-top: 10px; }
.measure details summary { cursor: pointer; color: var(--accent); font-size: .88rem; }
.measure details ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .9rem; color: var(--muted); }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.chart { background: var(--bg-2); }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--mono); }
.note.err { border: 1px solid var(--bad); }
.note p { margin: 4px 0; }
.note { background: var(--warn-bg); color: var(--text); border-left: 2px solid var(--warn); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: .9rem; margin: 10px 0; }
.meter { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* Puntos débiles */
.wp { margin: 18px 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line-2); border-top: 2px solid var(--accent); border-radius: 4px 4px var(--radius) var(--radius); }
.wp h3 { margin-bottom: .4em; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; letter-spacing: -.022em; }
.wp-list { margin: 10px 0; padding-left: 0; list-style-position: inside; }
ol.wp-list { list-style: none; counter-reset: wp; }
ol.wp-list > li { counter-increment: wp; padding-left: 38px; position: relative; }
ol.wp-list > li::before { content: counter(wp, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 500 .76rem var(--mono); color: var(--accent); }
ul.wp-list { list-style: none; }
.wp-list li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.wp-list p { margin: 4px 0 0; color: var(--muted); }
.wp-list b { font-weight: 500; }
.wp-h { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: space-between; align-items: baseline; }
.wp-eur { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.wp-also { margin: 22px 0 0; font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.foot { position: relative; border-top: 1px solid var(--line); margin-top: 96px; padding: 24px 0 44px; color: var(--muted); }
.foot-art { display: block; width: 100%; height: 112px; margin-top: -137px; margin-bottom: 25px; pointer-events: none; }
.foot-art .ln { fill: none; stroke: #3E4F5F; stroke-width: 1; }
.foot-art .wire { fill: none; stroke: #33424F; stroke-width: 1; }
.foot:has(.foot-art) { margin-top: 170px; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; z-index: 30; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.cookie p { margin: 0; }
dialog { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); max-width: 460px; width: calc(100% - 32px); padding: 22px; }
dialog::backdrop { background: rgba(0,0,0,.65); }
dialog .form label { margin: 8px 0; }

.doc { background: #fff; color: #111; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .sec { padding-top: 56px; }
  .top { padding: 10px 10px; }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .seg { min-height: 150px; padding: 18px 16px; }
  .seg .ico { margin-bottom: 18px; }
  .row .btn { flex: 1 1 auto; }
  .row .btn.primary { margin-left: 0; flex-basis: 100%; }
  .wp { padding: 20px 18px; }
  .cookie { flex-wrap: wrap; }
}

@media print {
  :root { --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --line: #bbb; --line-2: #999; --accent: #000; --accent-2: #fff; --warn: #000; --warn-bg: #fff; --bad: #000; --before: #bbb; --after: #333; color-scheme: light; }
  .top, .foot, .noprint, .progress, .cookie, .m-actions, .row, .hero-art, .foot-art { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .panel[data-step="5"] { display: block !important; }
  .measure, .kpi, .card, .wp { box-shadow: none; break-inside: avoid; }
  .kpis { background: #bbb; }
  .measure details { display: block; }
  .measure details > * { display: block; }
  .kpi.main { color: #000; background: #fff; border-color: #000; }
  .kpi.main .l, .kpi.main .v { color: #000; }   /* круг 16 (side16): подпись главного показателя (.kpi.main .l, белая) перебивала сброс — белое на белом */
}

@media (max-width: 360px) { .top-cta { display: none !important; } }

/* длинный заголовок на русском: две строки, чтобы не заходить на подстанцию */
@media (min-width: 861px) {
  :root:lang(ru) .hero-text { max-width: min(720px, 50vw); }
  :root:lang(ru) .hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.9rem); }
}


/* страница «Precio por horas» */
.pc-page { padding-top: 40px; }
.pc-h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 0; }
.nav a[aria-current="page"] { color: var(--text); }
.pc-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 16px; }
.pc-day { appearance: none; font: 500 .92rem var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 20px; min-height: 44px; cursor: pointer; }
.pc-day:hover { background: var(--surface-2); }
.pc-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pc-date { margin-left: 8px; }
.pc-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pc-type { appearance: none; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 0; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pc-type:hover { background: var(--surface-2); }
.pc-type:focus-visible { outline-offset: -3px; }
.pc-type span { font-size: .84rem; color: var(--muted); }
.pc-type.on { background: var(--accent); color: var(--accent-ink); }
.pc-type.on span { color: #27330C; }
.pc-how { margin: 14px 0; }
.pc-how summary, .pc-table summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.pc-pane h3 { margin-bottom: 14px; }
.pc-chart { display: block; width: 100%; height: auto; margin-top: 10px; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-axis { fill: var(--muted); font-family: var(--mono); }
.pc-bar.pc-low { fill: var(--accent); }
.pc-bar.pc-mid { fill: #5A6B7D; }
.pc-bar.pc-high { fill: var(--warn); }
.pc-bar.pc-now { stroke: var(--text); stroke-width: 1.5; }
.pc-mark { font-family: var(--mono); font-weight: 600; }
.pc-t-low { fill: var(--accent); }
.pc-t-high { fill: var(--warn); }
.pc-nowline { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-nowtxt { fill: var(--text); font-family: var(--mono); }
.pc-legend { color: var(--muted); margin: 10px 0; }
.pc-key { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin: 0 5px 0 12px; vertical-align: -1px; }
.pc-legend .pc-key:first-child { margin-left: 0; }
.pc-key.pc-low { background: var(--accent); }
.pc-key.pc-mid { background: #5A6B7D; }
.pc-key.pc-high { background: var(--warn); }
.pc-tr-now td { background: var(--surface-2); }
.pc-table .table-wrap { margin-top: 10px; }
.pc-prices { margin-bottom: 4px; }
.pc-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pc-res > div { display: flex; flex-direction: column; gap: 2px; }
.pc-res .l { font: 400 .74rem/1.4 var(--mono); color: var(--muted); }
.pc-res b { font-size: 1.24rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pc-cav { padding-left: 20px; color: var(--muted); }
.pc-cav li { margin: 6px 0; }
.pc-bill { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media print { .pc-days, .pc-types, .pc-how { display: none; } }
