:root {
  --bg: #111214; --surface: #1a1c1f; --line: #2a2d31; --text: #f1f1ee; --muted: #9a9ca1;
  --accent: #ffc400; --on-accent: #111214;
  --display: "Oswald", Impact, sans-serif; --body: "Inter", system-ui, sans-serif;
  --bk-bg: #17181b; --bk-surface: #1f2125; --bk-text: var(--text); --bk-muted: var(--muted);
  --bk-accent: var(--accent); --bk-on-accent: var(--on-accent); --bk-font: var(--body); --bk-display: var(--display); --bk-radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.01em; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 12px 20px;
  background: rgb(17 18 20 / 85%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: 0.06em; text-decoration: none; margin-right: auto; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent); color: var(--on-accent); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.nav__links { display: none; gap: 22px; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav__links { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--body); text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent); clip-path: none; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn--wide { width: 100%; }

.hero { position: relative; overflow: hidden; padding: 64px 20px 56px; max-width: 1160px; margin: 0 auto; }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgb(61 220 132 / 60%); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(61 220 132 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0%); } }
.hero__title { margin: 0; font-size: clamp(48px, 13vw, 112px); line-height: 0.92; font-weight: 700; }
.hl { color: var(--accent); position: relative; }
.hero__lead { max-width: 34ch; margin: 22px 0 28px; color: var(--muted); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 44px 0 0; max-width: 560px; background: var(--line); border: 1px solid var(--line); }
.stats div { padding: 16px 12px; background: var(--bg); }
.stats dt { font: 700 clamp(20px, 5.5vw, 26px)/1 var(--display); color: var(--accent); white-space: nowrap; }
.stats dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.gauge { display: none; position: absolute; right: 40px; top: 90px; width: 360px; }
@media (min-width: 980px) { .gauge { display: block; } }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge__track { stroke: var(--line); }
.gauge__fill { stroke: var(--accent); stroke-dasharray: 252; stroke-dashoffset: 252; animation: rev 2.6s 0.3s cubic-bezier(0.3, 0, 0.2, 1) forwards; }
.gauge__needle { position: absolute; left: 50%; bottom: 8px; width: 4px; height: 130px; margin-left: -2px; background: #ff4d2e; border-radius: 4px;
  transform-origin: 50% 100%; transform: rotate(-90deg); animation: needle 2.6s 0.3s cubic-bezier(0.3, 0, 0.2, 1) forwards, idle 1.4s 2.9s ease-in-out infinite alternate; }
.gauge__label { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font: 500 12px/1 var(--display); letter-spacing: 0.2em; color: var(--muted); }
@keyframes rev { 60% { stroke-dashoffset: 30; } to { stroke-dashoffset: 170; } }
@keyframes needle { 60% { transform: rotate(70deg); } to { transform: rotate(-30deg); } }
@keyframes idle { from { transform: rotate(-30deg); } to { transform: rotate(-24deg); } }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--accent); color: var(--on-accent); transform: rotate(-1.5deg); margin: 10px -10px; }
.ticker__row { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { padding: 14px 22px; font: 700 20px/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 44px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { max-width: 1160px; margin: 0 auto; padding: 72px 20px 0; }
.section__title { margin: 0 0 28px; font-size: clamp(32px, 7vw, 56px); line-height: 1; }
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.service { position: relative; display: flex; flex-direction: column; padding: 26px 22px 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service__num { font: 700 14px/1 var(--display); color: var(--accent); letter-spacing: 0.1em; }
.service h3 { margin: 12px 0 8px; font-size: 24px; line-height: 1.1; }
.service p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.service__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.service__foot b { font: 700 20px/1 var(--display); }
.link { border: 0; background: none; color: var(--accent); font: 700 14px/1 var(--body); cursor: pointer; padding: 6px 0; }

.calc { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc__text p { color: var(--muted); max-width: 40ch; }
.calc__form { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.chips legend { margin-bottom: 10px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 10px 14px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.15s; }
.chips input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.range input { width: 100%; accent-color: var(--accent); height: 28px; }
.calc__result { display: flex; flex-direction: column; margin: 22px 0; padding: 18px; background: var(--bg); }
.calc__result span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.calc__result output { font: 700 52px/1.1 var(--display); color: var(--accent); }
.calc__result small { color: var(--muted); }

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-left: 3px solid var(--accent); background: var(--surface); }
.steps li::before { content: "0" counter(step); font: 700 40px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

.reviews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.reviews blockquote { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.reviews p { margin: 0 0 14px; font-size: 17px; }
.reviews cite { color: var(--accent); font-style: normal; font-weight: 700; font-size: 14px; }

.contacts { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1.2fr; } }
.contacts__line { margin: 0 0 10px; font-size: 17px; }
.contacts__line b { color: var(--muted); font-weight: 500; }
.contacts .btn { margin-top: 16px; }
.map { position: relative; min-height: 280px; border: 1px solid var(--line);
  background: linear-gradient(115deg, transparent 47%, #2d3036 47% 53%, transparent 53%), linear-gradient(25deg, transparent 60%, #26292e 60% 64%, transparent 64%),
    repeating-linear-gradient(0deg, #17191c 0 38px, #1b1d21 38px 40px), #17191c; }
.map__pin { position: absolute; left: 52%; top: 44%; width: 26px; height: 26px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 10px rgb(255 196 0 / 18%); animation: drop 1s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes drop { from { transform: translateY(-60px) rotate(-45deg); opacity: 0; } }

.footer { padding: 26px 20px 100px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.fab { position: fixed; z-index: 9; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 54px; border: 0;
  background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--body); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 10px 30px rgb(0 0 0 / 50%); }
@media (min-width: 860px) { .fab { display: none; } .footer { padding-bottom: 26px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .gauge__needle { transform: rotate(-30deg); } }
