/* Reform Auto — стили сайта */
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/manrope-cyrillic-wght-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:200 800;font-display:swap;src:url(fonts/manrope-latin-ext-wght-normal.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:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/manrope-latin-wght-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:#12172F; --ink-2:#2E344D; --muted:#4D5470; --muted-2:#5A6178; --muted-3:#6B7189;
  --line:#E3E6EF; --line-2:#D5D9E6; --bg:#F5F6FA; --white:#FFFFFF;
  --blue:#3358D3; --blue-d:#2645B0; --green:#1E9E6A; --green-d:#178657; --navy:#12172F;
  --orange:#D84506; --brand-blue:#3358D3;
  --radius:18px; --wrap:1200px; --gut:16px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Manrope",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5}
img{max-width:100%;display:block}
a{color:var(--blue)}a:hover{color:var(--blue-d)}
button,input,select{font:inherit}
h1,h2,h3,p{margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.no-scroll{overflow:hidden}

/* Кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 26px;border:0;border-radius:14px;font-size:18px;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.btn:focus-visible,.icon-btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #8FC2FF;outline-offset:2px}
.btn svg{flex:none}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover{background:var(--blue-d);color:#fff}
.btn-white{background:#fff;color:var(--ink)}.btn-white:hover{color:var(--ink)}
.btn-green{background:var(--green);color:#fff}.btn-green:hover{background:var(--green-d);color:#fff}
.btn-sm{min-height:44px;padding:0 20px;font-size:15px;font-weight:700;border-radius:12px}
.btn[disabled]{opacity:.7;cursor:progress;transform:none;box-shadow:none}

/* Шапка */
.header{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--line)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
.brand .gerb{height:48px;width:auto;flex:none}
.brand .wordmark{height:26px;width:auto;min-width:0}
.nav{display:flex;gap:28px;font-size:15px;font-weight:600}
.nav a{color:var(--ink);text-decoration:none}.nav a:hover{color:var(--blue)}
.header-actions{display:flex;align-items:center;gap:12px}
.header-phone{display:flex;align-items:center;gap:8px;min-height:44px;font-size:17px;font-weight:800;color:var(--ink);text-decoration:none;white-space:nowrap}
.header-phone:hover{color:var(--blue)}
.mobile-actions{display:none;align-items:center;gap:8px}
.icon-btn{width:44px;height:44px;flex:none;border-radius:12px;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}
.icon-btn.call{background:var(--blue)}.icon-btn.wa{background:var(--green)}.icon-btn.tg{background:#229ED9}
.icon-btn.burger{background:#fff;border:1.5px solid var(--line-2)}
.burger .ic-close{display:none}
.burger[aria-expanded="true"] .ic-open{display:none}
.burger[aria-expanded="true"] .ic-close{display:block}
.mobile-menu{display:none;border-top:1px solid var(--line);background:#fff;padding:8px 12px 16px;box-shadow:0 16px 32px rgba(18,23,47,.12)}
.mobile-menu.open{display:block}
.mobile-menu a.item{display:flex;align-items:center;min-height:52px;padding:0 8px;border-bottom:1px solid #EEF0F5;font-size:17px;font-weight:700;color:var(--ink);text-decoration:none}
.mobile-menu .menu-cta{display:flex;flex-direction:column;gap:10px;padding-top:14px}
.mobile-menu .menu-cta .btn{min-height:52px;font-size:16px}
.btn-outline{background:#fff;border:1.5px solid var(--line-2);color:var(--ink);font-weight:700}.btn-outline:hover{color:var(--ink)}

@media (max-width:860px){
  .header-row{min-height:60px;gap:8px}
  .nav,.header-actions{display:none}
  .mobile-actions{display:flex}
  .brand{gap:8px;flex:1 1 auto}
  .brand .gerb{height:38px}
  .brand .wordmark{height:15px;object-fit:contain}
}

/* Первый экран */
.hero{color:#fff;background-color:#0B1340;background-image:linear-gradient(rgba(6,8,24,.38),rgba(6,8,24,.38)),linear-gradient(90deg,rgba(10,18,48,.85) 0%,rgba(51,88,211,.88) 100%),url(img/hero.webp);background-size:cover;background-position:center}
.hero-in{display:flex;flex-wrap:wrap;gap:56px;align-items:center;padding-top:clamp(48px,9vw,96px);padding-bottom:clamp(56px,9vw,104px)}
.hero-copy{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.pill{display:inline-flex;align-self:flex-start;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);font-size:14px;font-weight:700}
.pill i{width:8px;height:8px;border-radius:50%;background:#4ED199;display:block}
.hero h1{font-size:clamp(34px,7vw,56px);line-height:1.05;font-weight:800;letter-spacing:-.02em}
.hero h1 u{text-decoration-thickness:4px;text-underline-offset:8px}
.hero .lead{font-size:clamp(18px,2.8vw,22px);line-height:1.5;color:#D3D7E6;max-width:600px}
.hero .sub{font-size:clamp(18px,2.8vw,22px);line-height:1.5;color:#E1E4F0;max-width:600px}
.hero-btns{display:flex;flex-wrap:wrap;gap:12px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid rgba(255,255,255,.2);max-width:560px;padding-top:12px}
.stats div{display:flex;flex-direction:column;gap:4px;padding-top:16px}
.stats b{font-size:clamp(19px,4.5vw,28px);font-weight:800}
.stats span{font-size:14px;color:#D3D7E6}
.hero-form{flex:1 1 380px;min-width:0;max-width:460px;background:#fff;color:var(--ink);border-radius:24px;padding:clamp(22px,4vw,32px);box-shadow:0 24px 60px rgba(0,0,0,.35)}

/* Формы */
.lead-form{display:flex;flex-direction:column;gap:16px}
.lead-form h2,.lead-form h3{font-size:26px;font-weight:800;line-height:1.2}
.lead-form .hint{font-size:15px;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--muted)}
.field .opt{font-weight:500;color:var(--muted-3)}
.field input,.field select{min-height:52px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line-2);background:#fff;color:var(--ink);font-size:16px;width:100%}
.field select{padding:0 12px}
.field input:focus,.field select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(18,116,231,.18)}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--muted-2);cursor:pointer}
.consent input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue);flex:none}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.form-error{font-size:14px;color:#B42318;min-height:0}
.form-error:empty{display:none}
.form-success{display:none;flex-direction:column;gap:14px;padding:12px 0}
.form-box.sent .lead-form{display:none}
.form-box.sent .form-success{display:flex}
.form-success .ok{width:56px;height:56px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center}
.form-success h3{font-size:24px;font-weight:800}
.form-success p{font-size:16px;color:var(--muted)}
.success-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.btn-again{align-self:flex-start}

/* Секции */
.section{padding-top:clamp(56px,9vw,96px);padding-bottom:clamp(56px,9vw,96px)}
.section.white{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.eyebrow{font-size:14px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--blue)}
.h2{font-size:clamp(30px,5.5vw,42px);line-height:1.1;font-weight:800;letter-spacing:-.01em}
.sec-head{display:flex;flex-direction:column;gap:12px;max-width:640px;margin-bottom:48px}
.sec-head-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px}
.sec-head-row .sec-head{margin-bottom:0}
.sec-note{font-size:15px;color:var(--muted-2);max-width:360px}

/* Шаги */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.step{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:16px}
.step-top{display:flex;align-items:center;justify-content:space-between}
.step-ic{width:72px;height:72px;border-radius:20px;display:flex;align-items:center;justify-content:center}
.step-ic img{width:44px;height:44px}
.step-tag{font-size:13px;font-weight:700;color:var(--muted-3);padding:6px 12px;border-radius:999px;background:#F2F4F8}
.step h3{font-size:22px;font-weight:800}
.step p{color:var(--muted);line-height:1.6}
/* Видео у шагов (квадрат, фон цвета страницы): на широком экране карточки шагов во всю ширину,
   а видео поднято в пустое место справа от заголовка (не раздвигает блок); уже — отдельной строкой после карточек */
.step-video{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-width:0}
.step-video video{display:block;width:100%;max-width:420px;height:auto;aspect-ratio:1/1}
@media (min-width:1100px){
  .steps{position:relative;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}
  /* посередине между заголовком (ширина .sec-head — 640px) и правым краем блока */
  .step-video{position:absolute;left:calc((100% + 640px - var(--video,260px)) / 2);bottom:calc(100% + 4px);width:var(--video,260px)}
  .step-video video{max-width:none}
}

/* Услуги */
.services{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.svc{position:relative;overflow:hidden;border-radius:var(--radius);min-height:340px;display:flex;flex-direction:column;justify-content:flex-end;background:#0B1340;color:#fff}
.svc img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.165,.84,.44,1)}
.svc::after{content:"";position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(6,8,24,0) 25%,rgba(6,8,24,.55) 60%,rgba(6,8,24,.85) 100%),linear-gradient(90deg,rgba(10,18,48,.42) 0%,rgba(51,88,211,.5) 100%);transition:opacity .4s cubic-bezier(.165,.84,.44,1)}
.svc:hover::after{opacity:.9}.svc:hover img{transform:scale(1.04)}
.svc-body{position:relative;z-index:1;padding:24px;display:flex;flex-direction:column;gap:14px}
.svc h3{font-size:20px;line-height:1.3;font-weight:800}
.svc .price{font-size:24px;font-weight:800}
.svc button{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 16px;border:0;border-radius:12px;background:#fff;color:var(--ink);font-size:15px;font-weight:700;cursor:pointer}

/* О нас */
.about-head{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-end;margin-bottom:40px}
.about-head .sec-head{flex:1 1 480px;margin-bottom:0}
.about-head p{flex:1 1 420px;font-size:17px;line-height:1.65;color:var(--muted)}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.gallery img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:var(--radius)}

/* Контакты */
.contacts-wrap{padding-bottom:clamp(56px,9vw,96px)}
.contacts{color:#fff;border-radius:28px;overflow:hidden;padding:clamp(24px,5vw,56px);display:flex;flex-wrap:wrap;gap:48px;align-items:center;background-color:var(--navy);background-image:linear-gradient(90deg,rgba(10,14,36,.94) 0%,rgba(10,14,36,.86) 50%,rgba(10,14,36,.72) 100%),url(img/contacts-bg.webp);background-size:cover;background-position:center 35%}
.contacts-copy{flex:1 1 420px;display:flex;flex-direction:column;gap:20px}
.contacts .eyebrow{color:#8FC2FF}
.big-phone{align-self:flex-start;display:inline-flex;align-items:center;gap:16px;padding:12px clamp(18px,4vw,28px) 12px 12px;border-radius:20px;background:var(--green);color:#fff;text-decoration:none;box-shadow:0 14px 36px rgba(30,158,106,.35);transition:transform .2s ease,box-shadow .2s ease}
.big-phone:hover{color:#fff;transform:translateY(-2px)}
.big-phone .ic{width:56px;height:56px;border-radius:16px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:none}
.big-phone b{font-size:clamp(22px,5.5vw,32px);line-height:1.1;font-weight:800;white-space:nowrap}
.msgr{display:flex;flex-wrap:wrap;gap:12px}
.msgr a{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border-radius:12px;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.35);color:#fff;font-size:15px;font-weight:700;text-decoration:none}
.msgr a:hover{background:rgba(255,255,255,.18);color:#fff}
.contacts .form-box{flex:1 1 360px;background:#fff;color:var(--ink);border-radius:20px;padding:28px}
.contacts .lead-form h3{font-size:22px}

/* Подвал */
.footer{background:#fff;border-top:1px solid var(--line)}
.footer-in{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:flex-start;padding-top:40px;padding-bottom:40px}
.footer-brand{display:flex;flex-direction:column;gap:12px;max-width:600px}
.footer-brand .logo{display:flex;align-items:center;gap:10px}
.footer-brand .logo img:first-child{height:36px;width:auto}.footer-brand .logo img:last-child{height:20px;width:auto}
.footer p{font-size:13px;line-height:1.55;color:var(--muted-2)}
.footer-links{display:flex;flex-direction:column;gap:8px;font-size:14px}
.footer-links a{color:var(--muted)}
.footer-links .tel{color:var(--ink);font-weight:700;text-decoration:none}

/* Всплывающее окно */
.modal{position:fixed;inset:0;z-index:60;background:rgba(8,11,30,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.modal[hidden]{display:none}
.modal-box{position:relative;width:100%;max-width:480px;max-height:100%;overflow-y:auto;background:#fff;border-radius:24px;padding:32px;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.modal-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:0;border-radius:12px;background:#F2F4F8;display:flex;align-items:center;justify-content:center;cursor:pointer}
.modal .lead-form .head{padding-right:48px;display:flex;flex-direction:column;gap:6px}

/* Документы */
.doc{max-width:880px;margin:0 auto;padding:56px 16px 96px}
.doc article{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(24px,5vw,48px);display:flex;flex-direction:column;gap:24px;font-size:16px;line-height:1.65;color:var(--ink-2)}
.doc h1{font-size:clamp(26px,5vw,36px);line-height:1.15;font-weight:800;color:var(--ink)}
.doc h2{font-size:21px;font-weight:800;color:var(--ink);margin-bottom:8px}
.doc section p+p{margin-top:8px}
.doc .date{font-size:14px;color:var(--muted-2);margin-top:10px}
.doc strong{color:var(--ink)}

@media (max-width:560px){
  .btn{width:100%}
  .hero-btns{flex-direction:column}
  .modal{align-items:flex-end;padding:0}
  .modal-box{border-radius:24px 24px 0 0;padding:24px 20px 28px;max-height:92vh}
  /* Галерея «О нас» — лента, листается сама (app.js) */
  .gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(-1 * var(--gut));padding:0 var(--gut);scroll-padding:0 var(--gut)}
  .gallery::-webkit-scrollbar{display:none}
  .gallery img{flex:0 0 85%;scroll-snap-align:start}
}
/* Страница 404 */
.nf-page{min-height:100vh;display:flex;flex-direction:column}
.nf{flex:1 0 auto;display:flex;align-items:center;color:#fff;background-color:#0B1340;background-image:linear-gradient(rgba(6,8,24,.45),rgba(6,8,24,.45)),linear-gradient(90deg,rgba(10,18,48,.85) 0%,rgba(51,88,211,.88) 100%),url(img/contacts-bg.webp);background-size:cover;background-position:center 35%}
.nf-in{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px;padding-top:clamp(56px,10vw,112px);padding-bottom:clamp(56px,10vw,112px)}
.nf-code{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,20px);font-size:clamp(96px,22vw,200px);line-height:1;font-weight:800;letter-spacing:-.04em}
.nf-code span:not(.nf-plate){text-shadow:0 12px 40px rgba(0,0,0,.35)}
.nf-plate{width:clamp(88px,19vw,172px);height:clamp(88px,19vw,172px);border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 18px 50px rgba(0,0,0,.35),inset 0 0 0 6px rgba(51,88,211,.12);animation:nf-wobble 4s ease-in-out infinite}
.nf-plate img{width:62%;height:auto}
@keyframes nf-wobble{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
.nf h1{font-size:clamp(30px,5.5vw,48px);line-height:1.1;font-weight:800;letter-spacing:-.01em}
.nf-lead{font-size:clamp(17px,2.4vw,20px);line-height:1.55;color:#D3D7E6;max-width:620px}
.nf-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:8px}
.nf-msg{font-size:15px;color:#C3C8DC}
.nf-msg a{color:#fff;font-weight:700}
@media (max-width:560px){.nf-phone-text{display:none}.nf-btns{width:100%}}

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