/* Видео прототипа: цвета и типографика существующего сайта. */
.prototype-grid{display:grid;grid-template-columns:1fr minmax(240px,380px);gap:40px;align-items:center}
.prototype p{max-width:540px;color:var(--muted);margin-bottom:24px}
.prototype video{display:block;width:100%;height:auto;max-height:680px;background:#1b1d21;border-radius:16px}
@media(max-width:640px){.prototype-grid{grid-template-columns:1fr;gap:24px}.prototype video{max-width:380px;margin-inline:auto}}
/* шрифт Manrope лежит на сайте, без запросов к Google */
@font-face{font-family:Manrope;font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/manrope-cyrillic.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 800;font-display:swap;src:url(fonts/manrope-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}
:root{--bg:#f3f4f6;--card:#fff;--line:#e2e5ea;--text:#16181c;--muted:#6b7280;--acc:#f4b400;--acc2:#dba200;--dark:#1b1d21;--warn:#b42318}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:Manrope,system-ui,sans-serif;line-height:1.5;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)}
.btn{display:inline-block;border:0;background:var(--acc);color:var(--dark);font:inherit;font-weight:800;font-size:15px;padding:13px 22px;border-radius:12px;cursor:pointer;text-align:center}
.btn:hover{background:var(--acc2)}
.btn.ghost{background:none;border:1.5px solid var(--line);font-weight:700;width:100%;margin-bottom:12px}
.btn.ghost:hover{border-color:var(--acc)}
.btn:disabled{opacity:.6;cursor:default}
/* шапка */
.top{background:var(--dark);color:#fff;position:sticky;top:0;z-index:20}
.top .wrap{display:flex;align-items:center;gap:20px;min-height:60px}
.brand{font-weight:800;font-size:18px;display:flex;align-items:center;gap:10px}
.brand i{width:28px;height:28px;border-radius:7px;background:var(--acc);position:relative;flex:none}
.brand i:after{content:"";position:absolute;inset:8px 6px;border:3px solid var(--dark);border-left:0;border-radius:0 6px 6px 0}
nav{display:flex;gap:20px;margin-left:auto;font-size:14px;color:#c9ccd2}
nav a:hover{color:#fff}
.phone{font-weight:700;white-space:nowrap}
@media(max-width:820px){nav{display:none}.phone{margin-left:auto}}
@media(max-width:420px){.phone{font-size:14px}}
/* первый экран */
.hero{background:linear-gradient(135deg,#1b1d21,#2a2d33);color:#fff;padding:56px 0 48px}
.hero h1{font-size:clamp(28px,4.4vw,46px);line-height:1.15;margin-bottom:14px}
.hero p{color:#c9ccd2;max-width:640px;margin-bottom:24px;font-size:17px}
.facts{display:flex;gap:28px;flex-wrap:wrap;margin-bottom:26px}
.facts b{display:block;font-size:24px;color:var(--acc)}
.facts span{font-size:13px;color:#a3a8b0}
section{padding:40px 0}
h2{font-size:clamp(24px,3vw,32px);margin-bottom:18px}
/* конструктор */
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:start}
.stage{position:sticky;top:72px;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.stage svg{display:block;width:100%;height:auto;max-height:70vh;background:linear-gradient(#fbfbfc,#eceef1)}
.stage .cap{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--line);font-size:14px}
.stage .cap b{font-size:18px;white-space:nowrap}
.panel{display:flex;flex-direction:column;gap:14px;min-width:0}
.box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
.box h3{font-size:16px;margin-bottom:4px}
.hint{font-size:13px;color:var(--muted);margin-bottom:12px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--bg);padding:5px;border-radius:12px}
.seg button{border:0;background:none;padding:10px 8px;border-radius:9px;font:inherit;font-weight:700;font-size:14px;cursor:pointer;color:var(--muted)}
.seg button.on{background:var(--card);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.opts{display:grid;gap:8px}
.opt{display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:12px;padding:11px 12px;cursor:pointer;background:var(--card);text-align:left;font:inherit;color:inherit;width:100%}
.opt:hover{border-color:#c9ccd2}
.opt.on{border-color:var(--acc);background:#fffbeb}
.mk{width:20px;height:20px;border-radius:50%;border:2px solid #c3c7cf;flex:none;display:grid;place-items:center}
.opt.chk .mk{border-radius:6px}
.opt.on .mk{border-color:var(--acc2);background:var(--acc)}
.opt.on .mk:after{content:"";width:6px;height:10px;border:solid var(--dark);border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.tx{flex:1;min-width:0}
.tx b{font-size:14px}
.tx small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4}
.pr{font-weight:700;font-size:14px;white-space:nowrap}
.pr.muted{font-weight:500;color:var(--muted)}
.tx small.speed{color:#15803d;font-weight:600}
.tag{display:inline-block;margin:5px 6px 0 0;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:20px;background:#eef0f3;color:#4b5563}
.tag.warn{background:#fdecea;color:var(--warn)}
/* узлы */
#uzly{display:grid;gap:8px}
.uz{display:flex;gap:10px;align-items:center;border:1.5px solid var(--line);border-radius:12px;padding:8px 10px}
.uz.on{border-color:var(--acc);background:#fffbeb}
.uz svg{width:58px;height:58px;flex:none}
.uz .op{font-size:13px;color:var(--muted)}
.uz .side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.step{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;background:#fff}
.step button{width:32px;height:32px;border:0;background:none;font-size:18px;font-weight:700;cursor:pointer;color:var(--text)}
.step button:disabled{color:#c3c7cf;cursor:default}
.step span{min-width:22px;text-align:center;font-weight:700}
.plus{margin-top:10px;font-size:13px;background:#ecfdf3;border:1px solid #b7ebcd;color:#14532d;border-radius:10px;padding:8px 10px}
.notes{background:#fff8e1;border:1px solid #f6d77a;border-radius:14px;padding:12px 14px;font-size:13.5px}
.notes p+p{margin-top:6px}
/* итог */
.sum ul{list-style:none;font-size:14px;margin-bottom:10px}
.sum li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed var(--line)}
.sum li span:last-child{white-space:nowrap;font-weight:600}
.sum li.muted span:last-child{font-weight:500}
.total{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 14px}
.total b{font-size:26px}
form{display:grid;gap:8px}
input,textarea{font:inherit;font-size:15px;padding:11px 12px;border:1.5px solid var(--line);border-radius:10px;width:100%;background:#fff}
textarea{resize:vertical;min-height:64px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.note{font-size:12px;color:var(--muted)}
.ok{display:none;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:12px;font-size:14px}
/* как работает */
.light{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cards div{background:var(--bg);border-radius:14px;padding:18px}
.cards b{display:block;margin-bottom:6px}
.cards p{font-size:14px;color:var(--muted)}
@media(max-width:900px){.cards{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.cards{grid-template-columns:1fr}}
/* подвал */
footer{background:var(--dark);color:#d1d5db;padding:36px 0 24px}
.fc{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:20px}
.fc b{display:block;color:#fff;margin-bottom:8px}
.fc a,.fc span{display:block;font-size:14px;margin-bottom:4px}
.fc a:hover{color:var(--acc)}
.copy{font-size:12px;color:#8b9099;margin-top:24px}
@media(max-width:700px){.fc{grid-template-columns:1fr}}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%) translateY(120px);background:var(--dark);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;max-width:calc(100% - 32px);transition:transform .3s,opacity .3s;z-index:30;text-align:center;opacity:0;visibility:hidden}
.toast.show{transform:translateX(-50%);opacity:1;visibility:visible}
.flash{animation:fl .6s ease}
@keyframes fl{0%{opacity:.2;transform:translateY(-12px)}100%{opacity:1;transform:none}}
/* телефон */
@media(max-width:960px){
  .grid{grid-template-columns:1fr}
  .stage{top:60px;z-index:5;margin:0 -16px;border-radius:0 0 16px 16px;border-left:0;border-right:0}
  .stage svg{max-height:34vh}
  .stage .cap{padding:8px 16px}
}

/* первый экран с картинкой */
.hero-g{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.hero-img{width:100%;height:auto;border-radius:18px;background:#f4f5f7;box-shadow:0 20px 50px rgba(0,0,0,.35)}
@media(max-width:900px){.hero-g{grid-template-columns:1fr}.hero-img{max-width:520px}}
/* согласие */
.agree{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--muted);line-height:1.4;cursor:pointer}
.agree input{width:16px;height:16px;margin-top:2px;flex:none;accent-color:var(--acc2)}
.agree a{color:var(--text);text-decoration:underline}
.copy a{color:#c9ccd2;text-decoration:underline}
/* заголовок раздела не прячется под шапкой при переходе по ссылке */
section{scroll-margin-top:60px}
/* узкие телефоны: цена и кнопки количества - отдельной строкой под описанием */
@media(max-width:480px){
  .uz{flex-wrap:wrap}
  .uz .tx{flex:1 1 calc(100% - 70px)}
  .uz .side{flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding-left:68px}
}
@media(max-width:350px){.top .wrap{gap:10px}.brand{font-size:16px}.phone{font-size:13px}}
.over{color:var(--warn);font-weight:700}
