/* Стили страницы «Запасные части».
   Токены, шрифт, шапка, бургер и подвал — те же, что на странице аренды (page-1),
   чтобы блоки выглядели одинаково на обеих страницах. */

/* ---------- Токены и шрифт (page-1) ---------- */
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(/zapchasti/fonts/golos-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(/zapchasti/fonts/golos-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#F7F6F2; --surface:#FFFFFF; --text:#1A1B1F; --text-2:#4A4D53;
  --line:#E6E8EA; --accent:#002B5B; --accent-soft:#F0F2F5;
  --on-accent:#F7F6F2; --ok:#0F7A40;
  --r-card:28px; --r-pill:64px; --shadow:0 0 15px rgba(0,0,0,.10);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
h1,h2,h3{margin:0;font-weight:400;letter-spacing:-.02em;line-height:1.08}
p{margin:0}
/* Отступ от края экрана. Раньше было 92vw — на 375px это 15px, а форма заявки
   стоит прямо в контейнере, без карточки, поэтому её поля начинались в 15px
   от края. Нижняя граница clamp — 20px (iOS HIG и Material просят не меньше 16).
   Сверху 9vw, дальше потолок 88px: на десктопе ширину задаёт потолок 1200px,
   поэтому правило не трогает широкую вёрстку. */
.container{width:min(1200px,100% - clamp(40px,9vw,88px));margin-inline:auto}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--accent);color:var(--on-accent);padding:12px 18px;border-radius:0 0 10px 0}
.skip-link:focus{left:0}

/* ---------- Кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:0 22px;border:1px solid transparent;border-radius:var(--r-pill);
  font:inherit;font-size:15px;font-weight:600;line-height:1;text-decoration:none;
  cursor:pointer;transition:background-color .16s,color .16s,border-color .16s}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-primary:hover{background:#013a75}
.btn-ghost{background:transparent;color:var(--accent);border-color:var(--accent)}
.btn-ghost:hover{background:var(--accent);color:var(--on-accent)}
.btn-lg{min-height:56px;padding:0 28px;font-size:16px}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ---------- Шапка, бургер (перенесены с page-1) ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--line)}
.site-header-in{display:flex;align-items:center;gap:16px;min-height:68px}
.site-logo{display:inline-flex;align-items:center;flex:0 0 auto;width:132px;min-height:44px}
.site-logo img{display:block;width:100%;height:auto}
.site-nav{display:flex;flex-wrap:wrap;gap:4px 22px;margin-left:auto}
.site-nav a{font-size:14px;font-weight:500;color:var(--text-2);
  padding:8px 0;border-bottom:1px solid transparent;transition:color .16s,border-color .16s}
.site-nav a:hover{color:var(--accent);border-bottom-color:var(--accent)}
.site-header-phone{font-size:14px;font-weight:600;color:var(--accent);
  padding:8px 0;white-space:nowrap}
.site-header-phone:hover{text-decoration:underline;text-underline-offset:3px}
.burger{display:none;flex:0 0 auto;width:44px;height:44px;margin-left:auto;
  padding:0;border:0;background:transparent;border-radius:12px;cursor:pointer;
  align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.burger-box{display:block;width:22px;height:16px;position:relative}
.burger-box i{position:absolute;left:0;width:100%;height:2px;border-radius:2px;
  background:var(--text);transition:transform .22s ease,opacity .18s ease,top .22s}
.burger-box i:nth-child(1){top:0}
.burger-box i:nth-child(2){top:7px}
.burger-box i:nth-child(3){top:14px}
.burger[aria-expanded="true"] .burger-box i:nth-child(1){top:7px;transform:rotate(45deg)}
.burger[aria-expanded="true"] .burger-box i:nth-child(2){opacity:0}
.burger[aria-expanded="true"] .burger-box i:nth-child(3){top:7px;transform:rotate(-45deg)}
.burger:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mobile-menu{border-top:1px solid var(--line);background:var(--surface)}
.mobile-menu-in{display:flex;flex-direction:column;padding:8px 0 20px}
.mobile-menu-in a{display:flex;align-items:center;min-height:48px;
  padding:10px 0;font-size:16px;font-weight:500;color:var(--text);text-decoration:none;
  border-bottom:1px solid var(--line)}
.mobile-menu-in a:hover{color:var(--accent)}
.mobile-menu-phone,.mobile-menu-mail{color:var(--accent);font-weight:600}

/* ---------- Hero ---------- */
.hero{background:var(--bg)}
/* Здесь стояло width:100%. Оно перебивало .container: специфичность правил
   одинаковая, а .hero-grid объявлен позже, поэтому заголовок и фото
   прижимались к краям экрана на всех ширинах, включая десктоп.
   Ширину задаёт .container — как и остальным секциям. */
.hero-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows:auto;align-items:center;
  padding:clamp(40px,5vw,72px) 0}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:24px;min-width:0}
.hero h1{font-size:clamp(34px,4.6vw,60px);max-width:14ch}
.hero-lead{font-size:clamp(16px,1.35vw,19px);line-height:1.55;color:var(--text-2);max-width:52ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;width:100%;margin-top:8px}
.stat{display:flex;flex-direction:column;gap:2px;padding-left:14px;border-left:2px solid var(--line)}
.stat b{font-size:clamp(24px,2.4vw,32px);font-weight:600;line-height:1.1;letter-spacing:-.02em}
.stat span{font-size:13px;line-height:1.3;color:var(--text-2)}
/* .hero-media-note раньше был абсолютной подложкой поверх низа фотографии:
   на 375px он закрывал 50% снимка, на 320px — 59%, отсюда и ощущение
   «нижняя часть картинки срезана». Подпись уходит под фото обычным блоком,
   картинка целиком остаётся видимой на любой ширине.

   object-fit:contain — страховка: бокс держит 4:3, как и оригинал 1100×825,
   но при contain картинка не может быть обрезана даже если исходник
   поменяют на другое соотношение сторон. */
.hero-media{position:relative;display:flex;flex-direction:column;
  border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow);min-width:0;
  background:var(--surface)}
.hero-media img{display:block;width:100%;height:auto;aspect-ratio:4/3;
  object-fit:contain;background:var(--bg)}
.hero-media-note{display:flex;flex-direction:column;gap:4px;padding:14px 16px;
  background:var(--surface);border-top:1px solid var(--line)}
.hero-media-note b{font-size:15px;font-weight:600}
.hero-media-note span{font-size:13px;line-height:1.4;color:var(--text-2)}

/* ---------- Секции ---------- */
.sec{padding:clamp(48px,6vw,86px) 0}
.sec-tight{padding-bottom:0}
.sec-alt{background:var(--surface)}
.sec-head{display:flex;flex-direction:column;gap:12px;max-width:70ch;margin-bottom:clamp(28px,3.4vw,44px)}
.sec-head h2{font-size:clamp(28px,3.4vw,44px)}
.sec-head p{font-size:clamp(15px,1.25vw,18px);line-height:1.55;color:var(--text-2)}

/* ---------- Подбор детали ---------- */
.picker{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);
  padding:clamp(20px,2.6vw,32px);box-shadow:var(--shadow)}
.picker-steps{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
/* Неактивный шаг приглушаем цветом рамки и фона, а не opacity:
   opacity снижает контраст текста до 2.6:1 и ломает доступность. */
.pstep{display:flex;flex-direction:column;gap:16px;padding:20px;
  border:1px dashed #C4C6C8;border-radius:20px;background:var(--bg);
  transition:border-color .2s,background-color .2s}
.pstep.is-active{border-style:solid;border-color:var(--accent);background:var(--surface)}
.pstep.is-done{border-style:solid;border-color:var(--line);background:var(--surface)}
.pstep-num{display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--on-accent);
  font-size:14px;font-weight:600}
.pstep-body{display:flex;flex-direction:column;gap:14px;flex:1}
.pfield{display:flex;flex-direction:column;gap:7px;min-width:0}
.pfield-label{font-size:13px;font-weight:500;line-height:1.3;color:var(--text-2)}
.pfield select,.pfield input,.pfield textarea{
  width:100%;min-width:0;min-height:48px;padding:12px 14px;
  border:1px solid #C4C6C8;border-radius:10px;background:var(--surface);
  color:var(--text);font:inherit;font-size:15px}
.pfield textarea{min-height:120px;resize:vertical}
.pfield select:disabled{background:var(--accent-soft);color:#6B6E74;cursor:not-allowed}
.pfield-wide{grid-column:1/-1}
.pfield-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:auto}
.picker-hint{font-size:13px;line-height:1.4;color:var(--text-2)}
.picker-out{display:block;margin-top:16px;font-size:14px;line-height:1.5}
.picker-out:empty{display:none}
.picker-out[data-ok="1"]{padding:14px 16px;background:#EAF5EE;border-left:3px solid var(--ok);border-radius:10px}
.picker-out[data-ok="0"]{padding:14px 16px;background:#FBEEEE;border-left:3px solid #9E1B16;border-radius:10px}

/* ---------- Массовый поиск ---------- */
.mass{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.mass summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;
  padding:18px 20px;cursor:pointer;list-style:none;min-height:56px;align-content:center}
.mass summary::-webkit-details-marker{display:none}
.mass summary::before{content:"+";font-size:20px;line-height:1;color:var(--accent);flex:0 0 auto}
.mass[open] summary::before{content:"−"}
.mass summary b{font-size:16px;font-weight:600}
.mass summary span{font-size:14px;color:var(--text-2)}
.mass-body{display:flex;flex-direction:column;gap:16px;padding:0 20px 20px}
.mass-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.mass-out{font-size:14px;line-height:1.5;color:var(--text-2)}
.mass-note{font-size:13px;line-height:1.5;color:var(--text-2)}

/* ---------- Узлы машины ---------- */
.groups-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.group{display:flex;flex-direction:column;gap:12px;padding:24px;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;min-width:0}
.group h3{font-size:20px;font-weight:600}
.group-lead{font-size:14px;line-height:1.5;color:var(--text-2)}
.group-items{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.group-items li{font-size:12px;line-height:1.3;padding:5px 9px;border-radius:8px;
  background:var(--accent-soft);color:var(--text-2)}
.group-applies{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);
  font-size:12px;line-height:1.4;color:var(--text-2)}
.group-applies b{font-weight:600;color:var(--text)}

/* ---------- Техника ---------- */
.eq{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px}
.eq-brands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start}
.eq-brand{display:flex;flex-direction:column;gap:4px;padding:18px;
  background:var(--bg);border:1px solid var(--line);border-radius:16px}
.eq-brand b{font-size:17px;font-weight:600;letter-spacing:.02em}
.eq-brand span{font-size:13px;line-height:1.4;color:var(--text-2)}
.eq-types{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;align-content:start}
.eq-type{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding:13px 15px;background:var(--bg);border:1px solid var(--line);border-radius:12px;
  font-size:14px;line-height:1.3}
.eq-type i{font-style:normal;font-size:13px;color:var(--text-2);flex:0 0 auto}
.eq-note{margin-top:24px;font-size:15px;line-height:1.55;color:var(--text-2)}
.eq-note a{text-underline-offset:3px}

/* ---------- Как работаем ---------- */
.how{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;counter-reset:how}
.how-item{display:flex;flex-direction:column;gap:10px;padding:24px;
  background:var(--surface);border:1px solid var(--line);border-radius:20px;min-width:0}
.how-item::before{counter-increment:how;content:counter(how);font-size:13px;font-weight:600;
  color:var(--accent);letter-spacing:.06em}
.how-item b{font-size:18px;font-weight:600;line-height:1.25}
.how-item p{font-size:14px;line-height:1.55;color:var(--text-2)}

/* ---------- Поставщикам ---------- */
.sup{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,3.4vw,48px);align-items:start}
.sup-copy{display:flex;flex-direction:column;gap:18px}
.sup-copy h2{font-size:clamp(28px,3.4vw,44px)}
.sup-lead{font-size:clamp(15px,1.25vw,18px);line-height:1.55;color:var(--text-2)}
.sup-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.sup-list li{position:relative;padding-left:26px;font-size:15px;line-height:1.55;color:var(--text-2)}
.sup-list li::before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;
  border-radius:3px;background:var(--accent)}
.sup-foot{font-size:15px;line-height:1.55}
.sup-form-wrap{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-card);padding:clamp(20px,2.6vw,30px)}
.sup-form-title{font-size:20px;font-weight:600;margin-bottom:16px}

/* ---------- Формы заявок ---------- */
.req{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(24px,3.4vw,48px);align-items:start}
.req-aside{display:flex;flex-direction:column;gap:16px}
.req-aside h3{font-size:20px;font-weight:600}
.req-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.req-list li{font-size:14px;line-height:1.5;color:var(--text-2);padding-left:22px;position:relative}
.req-list li::before{content:"";position:absolute;left:0;top:.5em;width:7px;height:7px;
  border-radius:50%;background:var(--line)}
.req-list b{color:var(--text);font-weight:600}
.req-contacts{display:flex;flex-wrap:wrap;gap:8px 24px;padding-top:4px}
.req-contacts a{font-size:17px;font-weight:600;text-decoration:none}
.req-contacts a:hover{text-decoration:underline;text-underline-offset:3px}
.req-note{font-size:13px;line-height:1.5;color:var(--text-2)}

.lead-form{width:100%;display:flex;flex-direction:column;gap:0}

/* Три смысловых блока заявки. fieldset/legend выбран не для рамки, а для
   семантики: скринридер читает «группа О технике» и в неё входят поля. */
.lead-block{
  border:0;padding:0;margin:0 0 26px;min-inline-size:0}
.lead-legend{
  display:flex;align-items:center;gap:10px;width:100%;
  margin:0 0 16px;padding:0;font-size:15px;font-weight:600;color:var(--text)}
.lead-legend>b{
  flex:none;display:grid;place-items:center;
  width:26px;height:26px;border-radius:50%;
  background:var(--accent);color:var(--on-accent);
  font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.lead-block:last-of-type{margin-bottom:0}
.lead-hint{margin:16px 0 0;font-size:13px;line-height:1.5;color:var(--text-2)}
.lead-field select{cursor:pointer}

.lead-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.lead-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.lead-field-wide{grid-column:1/-1}
.lead-field>span{font-size:13px;font-weight:500;line-height:1.3;color:var(--text-2)}
.lead-field input,.lead-field textarea,.lead-field select{
  width:100%;min-width:0;min-height:48px;padding:12px 14px;
  border:1px solid #C4C6C8;border-radius:10px;background:var(--surface);
  color:var(--text);font:inherit;font-size:15px}
.lead-field textarea{min-height:120px;resize:vertical}
.lead-submit{margin-top:20px;align-self:flex-start}
.form-note{margin:18px 0 0;font-size:13px;line-height:1.5;color:var(--text-2)}
.form-status{margin:14px 0 0;font-size:14px;line-height:1.5}
.form-status:empty{display:none}
.form-status[data-error]{color:#9E1B16}
.form-trap{position:absolute!important;left:-10000px!important;width:1px!important;
  height:1px!important;overflow:hidden!important}

/* ---------- Подвал (перенесён с page-1) ---------- */
footer{border-top:1px solid var(--line);padding:28px 0;font-size:13px;color:var(--text-2)}
.foot{display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between}
.foot-logo{width:112px;height:auto;display:block;align-self:center}
.foot-contacts{display:flex;flex-wrap:wrap;gap:4px 20px}
.foot-contacts a{min-height:32px;display:inline-flex;align-items:center}
.foot-contacts a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.foot-policy,.foot-copy{min-height:32px;display:inline-flex;align-items:center}
.foot-policy{min-height:44px;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.foot-policy:hover{color:var(--accent)}

/* ---------- Адаптив ---------- */
@media (max-width:1200px){
  .groups-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .how{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:980px){
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .hero h1{max-width:none}
  .eq{grid-template-columns:minmax(0,1fr)}
  .sup,.req{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .picker-steps{grid-template-columns:minmax(0,1fr)}
  .groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .site-nav,.site-header-phone{display:none}
  .burger{display:flex}
  .site-logo{width:118px}
  html{scroll-padding-top:72px}
  .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .groups-grid,.how{grid-template-columns:minmax(0,1fr)}
  .eq-brands{grid-template-columns:minmax(0,1fr)}
  .eq-types{grid-template-columns:minmax(0,1fr)}
  .lead-fields{grid-template-columns:minmax(0,1fr);gap:16px}
  .lead-submit{width:100%}
  .pfield-actions .btn{width:100%}
  .foot{flex-direction:column;gap:14px}
  .foot-logo{width:104px;align-self:flex-start;margin-bottom:6px}
}
@media (max-width:400px){
  .site-logo{width:104px}
  .site-header-in{min-height:60px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
