/* DEKAR — палитра и шрифт из ТЗ от 24.08.2026 */
:root {
  --dark: #1a3038;
  --accent: #ed7026;
  --bg: #f9f9f9;
  --black: #000;
  --white: #fff;
  --grey: #606060;
  --grey-dark: #313131;
  --line: #e7e7e7;

  --container: 1280px;
  --gap: 24px;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(26, 48, 56, .08);
  --shadow-lg: 0 12px 40px rgba(26, 48, 56, .16);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.6 Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--grey-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--dark); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 500 16px/1 Roboto, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: #d35f18; }
.btn--ghost { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--ghost:hover { background: var(--dark); color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: var(--white); color: var(--dark); }

/* --- Логотип --- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
/* Логотип из прототипа — PNG на тёмной плашке, поэтому в шапке скругляем, в футере он сливается с фоном. */
.logo__img { width: 158px; height: auto; border-radius: 3px; }
.logo--light .logo__img { border-radius: 0; }

/* --- Хедер --- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: var(--gap);
  min-height: 76px;
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
  text-decoration: none; font-size: 15px; color: var(--grey-dark);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .18s;
}
.nav__link:hover { color: var(--accent); border-color: var(--accent); }
.header__contacts { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { font: 500 17px/1 Roboto, sans-serif; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--dark); content: '';
  transition: .2s;
}
.burger span { top: 21px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* --- Hero --- */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,48,56,.94) 0%, rgba(26,48,56,.82) 45%, rgba(26,48,56,.35) 100%);
}
.hero__inner { position: relative; padding-block: 96px 104px; }
.hero__content { max-width: 680px; }
.hero__kicker {
  margin: 0 0 16px; font: 500 14px/1 Roboto, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.hero__title { font-size: clamp(30px, 4.4vw, 54px); color: var(--white); margin-bottom: 20px; }
.hero__lead { font-size: 18px; color: rgba(255,255,255,.88); max-width: 600px; }
.hero__usp { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0; padding: 0; }
.hero__usp li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,.92); }
.hero__usp li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Полоса преимуществ --- */
.advantages { background: var(--dark); color: var(--white); }
.advantages__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-block: 40px;
}
.advantage { padding-inline: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.advantage:first-child { border-left: 0; padding-left: 0; }
.advantage__value { display: block; font: 700 26px/1.1 Roboto, sans-serif; color: var(--accent); margin-bottom: 8px; }
.advantage__label { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); }

/* --- Секции --- */
.section { padding-block: 88px; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__title { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 14px; }
.section__lead { font-size: 17px; color: var(--grey); margin: 0; }

/* --- Квиз --- */
.quiz { background: var(--white); }
.quiz__box {
  max-width: 900px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 36px; position: relative; overflow: hidden;
}
.quiz__progress { position: absolute; inset: 0 0 auto; height: 4px; background: var(--line); }
.quiz__bar { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width .25s; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__num { font: 500 13px/1 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.quiz__q { font-size: 24px; margin-bottom: 24px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qopt {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 20px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: .18s; font-family: inherit;
}
.qopt:hover { border-color: var(--accent); transform: translateY(-2px); }
/* display:flex выше по силе, чем браузерное [hidden]{display:none} — без этого
   скрытые варианты шага 2 продолжают показываться. */
.qopt[hidden] { display: none !important; }
.qopt b { font: 500 17px/1.3 Roboto, sans-serif; color: var(--dark); }
.qopt span { font-size: 14px; color: var(--grey); }
.quiz__back {
  margin-top: 22px; padding: 0; border: 0; background: none;
  font: 400 15px Roboto, sans-serif; color: var(--grey); cursor: pointer;
}
.quiz__back:hover { color: var(--accent); }

/* --- Схема комплекта --- */
.scheme { background: var(--bg); }
.scheme__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.scheme__media { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.scheme__list { list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.spoint {
  position: relative; padding: 16px 16px 16px 58px; margin-bottom: 8px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius); cursor: pointer; transition: .18s;
}
.spoint::before {
  counter-increment: pt; content: counter(pt);
  position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--dark); font: 500 14px/1 Roboto, sans-serif; transition: .18s;
}
.spoint b { display: block; font: 500 16px/1.3 Roboto, sans-serif; color: var(--dark); }
.spoint span { display: none; font-size: 14px; color: var(--grey); margin-top: 6px; }
.spoint.is-active { border-left-color: var(--accent); }
.spoint.is-active::before { background: var(--accent); color: var(--white); }
.spoint.is-active span { display: block; }

/* --- Комплектующие --- */
.parts { background: var(--white); }
.parts__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.part {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.part img { height: 34px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .18s; }
.part:hover img { filter: none; opacity: 1; }
.part span { font-size: 13px; line-height: 1.4; color: var(--grey); }

/* --- Контакты --- */
.contacts { background: var(--bg); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ccard { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.ccard__title { font-size: 18px; margin-bottom: 14px; }
.ccard p { margin-bottom: 10px; line-height: 1.7; }
.ccard a { text-decoration: none; }
.ccard a:hover { color: var(--accent); }
.ccard__note { font-size: 14px; color: var(--grey); margin: 0; }

/* --- Фильтр --- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter__btn {
  min-height: 44px; padding: 0 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font: 500 15px/1 Roboto, sans-serif; color: var(--grey-dark); cursor: pointer; transition: .18s;
}
.filter__btn:hover { border-color: var(--accent); color: var(--accent); }
.filter__btn.is-active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* --- Карточки моек --- */
.models__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.mcard {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.mcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.mcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--line); }
/* Картинка выведена из потока: иначе height:100% зацикливается с aspect-ratio
   и высоту начинает диктовать сама картинка — карточки перестают совпадать. */
.mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard__type {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; background: var(--accent); color: var(--white);
  font: 500 12px/1 Roboto, sans-serif; border-radius: 2px;
}
.mcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.mcard__name { font-size: 20px; margin-bottom: 6px; }
.mcard__spec { font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.mcard__tagline { font-size: 15px; color: var(--grey-dark); margin-bottom: 18px; }
.mcard__key { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.mcard__key li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.mcard__key span { color: var(--grey); }
.mcard__key b { font-weight: 500; text-align: right; }
.mcard__actions { display: flex; gap: 10px; margin-top: auto; }
.mcard__actions .btn { flex: 1; }

/* --- Под заказ --- */
.custom { background: var(--white); }
.custom__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.custom__list { list-style: none; margin: 0 0 28px; padding: 0; }
.custom__list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.custom__list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--accent);
}
.custom__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- О компании --- */
.company__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 40px; }
.company__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--accent);
}
.company__item b { display: block; font: 700 28px/1.1 Roboto, sans-serif; color: var(--dark); margin-bottom: 8px; }
.company__item span { font-size: 14px; color: var(--grey); }
.company__parts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.company__parts-title { font-size: 19px; margin-bottom: 18px; }
.company__parts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.company__parts-list li { font-size: 15px; color: var(--grey); }
.company__parts-list b { color: var(--dark); }

/* --- Финансирование --- */
.finance { background: var(--white); }
.finance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.fcard {
  display: flex; flex-direction: column;
  padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.fcard__title { font-size: 22px; margin-bottom: 12px; }
.fcard p { color: var(--grey); flex: 1; }
.fcard .btn { align-self: flex-start; }

/* --- CTA --- */
.cta { background: var(--dark); color: var(--white); padding-block: 72px; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta__title { color: var(--white); font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.cta__lead { color: rgba(255,255,255,.8); margin: 0; }

/* --- Формы --- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form--inline { background: rgba(255,255,255,.06); padding: 28px; border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; color: var(--grey); }
.cta .field__label { color: rgba(255,255,255,.7); }
.field__input {
  min-height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font: 400 16px Roboto, sans-serif; color: var(--grey-dark);
  transition: border-color .18s;
}
.field__input:focus { outline: none; border-color: var(--accent); }
.field.is-error .field__input { border-color: #d64545; }
.field__error { font-size: 12px; color: #d64545; min-height: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey); cursor: pointer; }
.cta .check { color: rgba(255,255,255,.7); }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.check.is-error span { color: #ff8b8b; }
.form__status { margin: 0; font-size: 14px; min-height: 20px; }
.form__status.is-ok { color: #38a169; }
.form__status.is-err { color: #d64545; }
.cta .form__status.is-ok { color: #7ee2a8; }

/* --- Попап --- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(26,48,56,.72); }
.modal__box {
  position: relative; width: 100%; max-width: 480px;
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
}
.modal__close {
  position: absolute; right: 12px; top: 8px;
  width: 40px; height: 40px; border: 0; background: none;
  font-size: 30px; line-height: 1; color: var(--grey); cursor: pointer;
}
.modal__close:hover { color: var(--accent); }
.modal__title { font-size: 24px; margin-bottom: 8px; }
.modal__lead { color: var(--grey); font-size: 15px; }

/* --- Футер --- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding-block: 56px 24px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__title { color: var(--white); font-size: 16px; margin-bottom: 6px; }
.footer__link { text-decoration: none; font-size: 15px; transition: color .18s; }
.footer__link:hover { color: var(--accent); }
.footer__note { font-size: 14px; margin: 4px 0 0; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px;
}

/* --- Адаптив --- */
@media (max-width: 1100px) {
  .models__grid, .finance__grid { grid-template-columns: repeat(2, 1fr); }
  .parts__grid { grid-template-columns: repeat(3, 1fr); }
  .scheme__inner { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .advantage:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .company__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 40;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; order: 3; margin-left: 4px; }
  .header__contacts { margin-left: auto; }
  .header__contacts .btn { display: none; }
  .custom__inner, .cta__inner { grid-template-columns: 1fr; gap: 32px; }
  .custom__media { order: -1; }
  .company__parts-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding-block: 56px; }
  .hero__inner { padding-block: 64px 72px; }
  .models__grid, .finance__grid, .company__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr 1fr; }
  .advantage { padding-inline: 14px; }
  .advantage:nth-child(3n+1) { border-left: 1px solid rgba(255,255,255,.14); padding-left: 14px; }
  .advantage:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .form__row, .footer__inner { grid-template-columns: 1fr; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__box { padding: 24px 18px; }
  .parts__grid { grid-template-columns: repeat(2, 1fr); }
  .scheme__media { padding: 14px; }
  .header__phone { font-size: 15px; }
  .modal__box { padding: 28px 20px; }
  .form--inline { padding: 20px; }
}
