/* ============================================================
   Первый Заказ — рекламный лендинг (reklama.perviyzakaz.ru)
   Шрифты и палитра — фирменные (brand-v1), сетка и ритм — свои.
   ============================================================ */

@font-face{
  font-family:'Bebas Brand';
  src:url('assets/fonts/BebasNeue-Bold.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Inter';
  src:url('assets/fonts/InterVariable.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}

:root{
  --ink:#282828;
  --ink-soft:#4d4d4d;
  --muted:#767676;
  --paper:#f5f4f2;
  --paper-2:#ecebe7;
  --line:#e0ded9;
  --white:#ffffff;
  --red:#ec2626;
  --red-dark:#c91919;
  --red-tint:#fdebeb;
  --shadow:0 24px 60px -34px rgba(20,20,20,.5);
  --shadow-sm:0 10px 24px -16px rgba(20,20,20,.35);
  --container:1180px;
  --radius:3px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,p{margin:0}
.wrap{max-width:var(--container);margin:0 auto;padding:0 24px}

.display{
  font-family:'Bebas Brand','Bebas Neue',Impact,sans-serif;
  font-weight:700;
  letter-spacing:.002em;
  text-transform:none;
  line-height:.98;
}

:focus-visible{outline:3px solid var(--red);outline-offset:3px}
::selection{background:var(--red);color:#fff}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:56px;padding:0 28px;
  border-radius:var(--radius);
  border:1px solid transparent;
  font-size:15.5px;font-weight:700;
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space:nowrap;
}
.btn svg{width:25px;height:25px;flex:0 0 auto}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 16px 32px -16px rgba(236,38,38,.55)}
.btn-primary:hover{background:var(--red-dark)}
.btn-primary:active{transform:translateY(1px)}
.btn-ghost-dark{background:transparent;border-color:rgba(255,255,255,.34);color:#fff}
.btn-ghost-dark:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.btn-outline{background:transparent;border-color:rgba(40,40,40,.22);color:var(--ink)}
.btn-outline:hover{border-color:var(--ink)}
.btn-telegram{background:#fff;color:var(--ink)}
.btn-telegram:hover{background:#eee}
.btn-block{width:100%}
.btn-tg-outline{
  flex:0 0 auto;width:56px;height:56px;padding:0;
  background:#fff;border:1px solid #d9d7d2;color:var(--ink);
}
.btn-tg-outline svg{width:25px;height:25px}
.btn-tg-outline:hover{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ---------- icon links (header / footer) ---------- */
.icon-btn{
  display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:var(--radius);color:var(--ink);
  background:transparent;border:1px solid rgba(40,40,40,.22);flex:0 0 auto;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.icon-btn svg{display:block;width:25px;height:25px}
.icon-btn:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.flink-icon{display:flex;align-items:center;gap:10px}
.flink-icon svg{display:block;width:25px;height:25px;flex:0 0 auto;color:#a9a9a9}
.flink-icon:hover svg{color:var(--red)}

/* ============================================================
   HEADER
   ============================================================ */
.topbar{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:78px;gap:20px}
.brand img{height:34px;width:auto}
.topbar__contact{display:flex;align-items:center;gap:18px}
.topbar__tel{display:flex;flex-direction:column;line-height:1.25;text-align:right}
.topbar__tel a{font-size:17px;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.topbar__tel a:hover{color:var(--red)}
.topbar__tel span{font-size:12px;color:var(--muted)}
.topbar .btn{height:44px;padding:0 20px;font-size:14px}

/* ============================================================
   HERO  (block 1)
   ============================================================ */
.hero{
  position:relative;
  background:var(--ink);
  color:#fff;
  overflow:hidden;
  padding:64px 0 76px;
}
.hero__photo{
  position:absolute;inset:0;
  background-image:url('assets/hero-car.jpg');
  background-size:cover;
  background-position:88% center;
  opacity:.85;
}
.hero__scrim{
  position:absolute;inset:0;
  background:linear-gradient(90deg,#1c1c1c 0%,#1c1c1c 46%,rgba(28,28,28,.88) 62%,rgba(28,28,28,.4) 82%,rgba(28,28,28,.1) 100%);
}
.hero__in{position:relative;z-index:2;max-width:50vw}
@media(max-width:1024px){.hero__in{max-width:640px}}

.flags{display:flex;align-items:center;gap:10px;margin-bottom:26px}
.flags img{width:26px;height:18px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.flags span{font-size:13px;color:#cfcfcf;letter-spacing:.01em;margin-left:4px}

.hero h1{
  font-size:clamp(34px,4.4vw,54px);
  color:#fff;
  max-width:none;
}
.hero h1 .u{
  display:inline-block;
  padding-bottom:.16em;
  background-image:linear-gradient(var(--red),var(--red));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:100% 5px;
}
.hero p.lead{
  margin-top:22px;
  font-size:clamp(16px,1.6vw,18.5px);
  color:#d6d6d6;
  max-width:52ch;
  line-height:1.65;
}

.hero__stats{display:flex;flex-wrap:wrap;gap:28px;margin:36px 0 38px}
.hstat b{
  display:block;font-family:'Bebas Brand','Bebas Neue',sans-serif;font-weight:700;
  font-size:30px;color:#fff;line-height:1;
}
.hstat span{display:block;margin-top:6px;font-size:13px;color:#b9b9b9;max-width:16ch}

.hero__cta{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.hero__cta .tel-link{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:15.5px;height:56px;padding:0 6px}
.hero__cta .tel-link svg{width:25px;height:25px;stroke:var(--red)}
.hero__cta .tel-link:hover{color:var(--red)}
.hero__fine{margin-top:18px;font-size:12.5px;color:#9a9a9a}

/* ---------- lead-magnet band ---------- */
.leadmagnet{background:var(--red-tint);border-bottom:1px solid var(--brand-line,#f3d2d2);padding:36px 0}
.leadmagnet .wrap{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.leadmagnet__text{max-width:620px}
.leadmagnet__text h2{font-size:clamp(22px,2.6vw,30px);letter-spacing:-.005em}
.leadmagnet__text p{margin-top:8px;font-size:15px;color:var(--ink-soft);max-width:52ch}
.leadmagnet__perks{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:14px}
.leadmagnet__perks li{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:700;color:var(--ink)}
.leadmagnet__perks li svg{width:16px;height:16px;color:var(--red);flex:0 0 auto;display:block}
.leadmagnet__cta{flex:0 0 auto}
.leadmagnet .btn-primary{height:60px;padding:0 32px;font-size:16px}
@media(max-width:720px){
  .leadmagnet{padding:28px 0}
  .leadmagnet .wrap{gap:20px}
  .leadmagnet .btn-primary{width:100%}
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section{padding:84px 0}
.section--paper{background:var(--paper)}
.section-head{max-width:640px;margin:0 0 48px}
.section-head h2{font-size:clamp(28px,3.4vw,42px);letter-spacing:-.005em}
.section-head p{margin-top:14px;font-size:16.5px;color:var(--ink-soft);line-height:1.6}

/* ---------- process steps ---------- */
.steps{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  margin-bottom:56px;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.step{position:relative;padding:28px 26px 28px 0;display:flex;gap:16px}
.step + .step{border-left:1px solid var(--line);padding-left:26px}
.step__num{
  font-family:'Bebas Brand','Bebas Neue',sans-serif;font-weight:700;
  font-size:34px;color:var(--red);line-height:1;flex:0 0 auto;
}
.step h3{font-size:16.5px;font-weight:800;margin-bottom:6px}
.step p{font-size:14.5px;color:var(--muted);line-height:1.55}

/* ---------- model cards ---------- */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d8d6d1}

.card__media{position:relative;aspect-ratio:4/3;background:var(--paper-2);overflow:hidden}
.card__media>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .card__media>img{transform:scale(1.04)}
.flagtag{
  position:absolute;top:12px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:8px;
  width:max-content;max-width:none;white-space:nowrap;
  background:#fff;padding:7px 13px 7px 7px;border-radius:2px;
  font-size:12.5px;font-weight:700;color:var(--ink);letter-spacing:.01em;line-height:1;
  box-shadow:0 4px 14px -6px rgba(0,0,0,.35);
}
.flagtag img{display:block;flex:0 0 auto;width:24px;height:17px;object-fit:cover;border-radius:1px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}

.hittag{
  position:absolute;top:12px;right:12px;z-index:2;
  background:var(--red);color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em;
  padding:6px 11px;border-radius:2px;box-shadow:0 4px 14px -6px rgba(236,38,38,.6);
}

.card__cta{display:flex;gap:10px}
.card__cta .btn-outline{flex:1}

.card__top{display:flex;align-items:center;gap:12px;padding:22px 22px 0}
.card__top img{width:30px;height:21px;object-fit:cover;border-radius:2px}
.card__top h3{font-size:22px}
.card__body{padding:18px 20px 22px;display:flex;flex-direction:column;flex:1}
.card__body h3{font-size:21px;margin-bottom:14px}
.card__body>p{font-size:14.5px;color:var(--ink-soft);line-height:1.6;margin-bottom:16px}
.card__bullets{margin-bottom:18px}
.card__bullets li{
  position:relative;padding-left:20px;font-size:13.5px;color:var(--ink-soft);
  margin-bottom:8px;line-height:1.4;
}
.card__bullets li::before{
  content:"";position:absolute;left:0;top:6px;width:8px;height:8px;background:var(--red);
}

.card__specs{
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px 14px;
  padding:14px;margin-bottom:16px;background:var(--paper);border:1px solid var(--line);border-radius:2px;
}
.spec{display:flex;flex-direction:column;gap:2px;min-width:0}
.spec__k{font-size:10.5px;color:var(--muted);letter-spacing:.02em}
.spec__v{font-size:13px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}

.card__price{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);margin-bottom:16px}
.card__price b{font-family:'Bebas Brand','Bebas Neue',sans-serif;font-weight:700;font-size:26px}
.card__price span{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.price-note{margin-top:28px;font-size:13px;color:var(--muted);text-align:center;max-width:60ch;margin-left:auto;margin-right:auto}

/* ============================================================
   FINAL CTA + FOOTER  (block 3)
   ============================================================ */
.final{background:var(--ink);color:#fff;padding:88px 0 0}
.final__in{max-width:640px;margin:0 auto;text-align:center}
.final h2{font-size:clamp(26px,3.4vw,38px);color:#fff}
.final p{margin-top:16px;font-size:16px;color:#c9c9c9;line-height:1.65}
.final__proof{margin-top:14px!important;font-size:14px!important;color:#9a9a9a!important}
.final__proof b{color:#fff}
.final__cta{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:32px}

.footer{margin-top:76px;border-top:1px solid rgba(255,255,255,.12);padding:44px 0 30px}
.footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:32px}
.footer__brand img{height:34px;width:auto;margin-bottom:14px}
.footer__brand p{font-size:13.5px;color:#a9a9a9;line-height:1.6;max-width:28ch}
.footer h4{font-size:12.5px;color:#8f8f8f;font-weight:700;letter-spacing:.03em;margin-bottom:14px}
.footer a.flink{display:block;font-size:14.5px;color:#e6e6e6;margin-bottom:9px}
.footer a.flink:hover{color:var(--red)}
.footer a.flink-icon{display:flex;align-items:center;gap:10px}
.footer address{font-style:normal;font-size:13.5px;color:#a9a9a9;line-height:1.7}
.footer__bottom{
  margin-top:40px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;
  font-size:12.5px;color:#8a8a8a;
}
.footer__bottom a{color:#a9a9a9;text-decoration:underline;text-underline-offset:2px}
.footer__bottom a:hover{color:#fff}

/* ============================================================
   MODAL — форма подбора
   ============================================================ */
.modal-overlay{
  position:fixed;inset:0;z-index:100;
  background:rgba(20,20,20,.6);
  display:flex;align-items:flex-end;justify-content:center;
  opacity:0;pointer-events:none;transition:opacity .22s ease;
  padding:0;
}
.modal-overlay.is-open{opacity:1;pointer-events:auto}
.modal{
  background:#fff;width:100%;max-width:520px;
  border-radius:var(--radius) var(--radius) 0 0;
  max-height:92vh;overflow-y:auto;
  padding:32px 28px 28px;
  transform:translateY(24px);transition:transform .28s cubic-bezier(.2,.8,.2,1);
  position:relative;
}
.modal-overlay.is-open .modal{transform:translateY(0)}
@media(min-width:640px){
  .modal-overlay{align-items:center;padding:24px}
  .modal{border-radius:var(--radius);max-height:88vh}
}
.modal__close{
  position:absolute;top:16px;right:16px;width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  background:var(--paper);border-radius:50%;border:none;color:var(--ink);
}
.modal__close:hover{background:var(--line)}
.modal h3{font-size:24px;letter-spacing:-.01em;padding-right:30px}
.modal p.sub{margin-top:8px;font-size:14.5px;color:var(--muted)}
.hp-field{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}
.field{margin-top:16px}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
.field input,.field select,.field textarea{
  width:100%;height:50px;border:1px solid #d9d7d2;border-radius:var(--radius);
  padding:0 14px;font:inherit;font-size:15px;background:#fff;color:var(--ink);
}
.field input:focus,.field select:focus{border-color:var(--red)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.consent{display:flex;gap:10px;margin-top:18px;align-items:flex-start}
.consent input{margin-top:3px;flex:0 0 auto}
.consent label{font-size:12.5px;color:var(--muted);line-height:1.5}
.consent a{text-decoration:underline}
.modal .btn-primary{margin-top:22px}
.form-error{display:none;margin-top:10px;font-size:13px;color:var(--red-dark)}
.form-error.is-visible{display:block}

.modal__success{display:none;text-align:center;padding:12px 0 4px}
.modal__success.is-visible{display:block}
.modal__success .ok-icon{
  width:56px;height:56px;border-radius:50%;background:var(--red-tint);color:var(--red);
  display:flex;align-items:center;justify-content:center;margin:0 auto 18px;
}
.modal__success h3{font-size:21px}
.modal__success p{margin-top:10px;font-size:14.5px;color:var(--muted);line-height:1.6}
.modal__success .btn{margin-top:22px}
.modal[data-state="success"] .modal__form{display:none}

/* ============================================================
   ONE ORCHESTRATED REVEAL — hero only, respects reduced motion
   ============================================================ */
.reveal{opacity:0;transform:translateY(14px);animation:reveal .7s cubic-bezier(.2,.7,.2,1) forwards}
.reveal.r1{animation-delay:.05s}
.reveal.r2{animation-delay:.16s}
.reveal.r3{animation-delay:.27s}
.reveal.r4{animation-delay:.38s}
.reveal.r5{animation-delay:.48s}
@keyframes reveal{to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;animation:none}
  html{scroll-behavior:auto}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:980px){
  .grid3{grid-template-columns:1fr 1fr}
  .footer__grid{grid-template-columns:1fr 1fr}
  .footer__brand{grid-column:1/-1}
}
@media(max-width:860px){
  .steps{grid-template-columns:1fr}
  .step{border-left:none!important;padding:22px 0!important;border-bottom:1px solid var(--line)}
  .step:last-child{border-bottom:none}
}
@media(max-width:720px){
  .topbar .wrap{height:64px}
  .brand img{height:24px}
  .topbar__contact{gap:8px}
  .icon-btn{width:38px;height:38px}
  .icon-btn svg{width:23px;height:23px}
  .topbar__tel a{font-size:13.5px}
  .topbar__tel span{display:none}
  .topbar .btn{display:none}
  .hero{padding:40px 0 52px}
  .hero__photo{background-position:88% center;opacity:.5}
  .hero__scrim{background:linear-gradient(180deg,#1c1c1c 0%,#1c1c1c 58%,rgba(28,28,28,.9) 100%)}
  .hero h1{max-width:none}
  .hero__stats{gap:22px 30px}
  .section{padding:60px 0}
  .grid3{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr;gap:28px}
  .field-row{grid-template-columns:1fr}
  .final{padding:64px 0 0}
}
