/* ============================================================
   FILITAL — dealers.html: брутально-редакторская вёрстка
   («showroom on warm gray») в фирменных тонах.

   Референс просил near-monochrome канвас, гигантский
   uppercase-дисплей с line-height .9, плоские карточки с
   крупным радиусом и один точечный акцент. Переложено на
   палитру «Синего монолита»:
     чёрный #000    → бренд-навы #142757
     warm gray      → холодный светлый #e6e8ee
     mint #d1ffca   → бледный навы-тинт #dfe6f7 (теги, ссылки)
     yellow #fff100 → красный #ED1C24, и только primary-CTA
   Шрифт SuisseIntlCond не подключался: на сайте два шрифта
   (Manrope + JetBrains Mono), третья гарнитура ломает бренд.
   Роль condensed играет Manrope 800 uppercase с ls -0.03em
   и lh 0.9 — блок такой же плотный, гарнитура своя.

   Файл подключён ТОЛЬКО из dealers.html (как tech.css из
   technology.html) — styles.css остальных 18 страниц не тронут.
   ============================================================ */

.dl {
  /* Surfaces */
  --dl-canvas:  #e6e8ee;   /* канвас страницы — не чистый белый */
  --dl-card:    #ffffff;   /* карточки */
  --dl-ink:     #142757;   /* инвертированные блоки (бренд-навы) */
  --dl-mist:    #eff1f5;   /* тихая ступень поверх канваса */

  /* Ink */
  --dl-text:    #0e1424;
  --dl-slate:   #3a4356;
  --dl-smoke:   #7c879c;
  --dl-hair:    #c9cfdd;

  /* Accent */
  --dl-tint:    #dfe6f7;   /* бледный навы — теги и подсветка ссылок */
  --dl-red:     #ED1C24;

  /* Rhythm */
  --dl-gap:     clamp(56px, 8vw, 96px);
  --dl-pad:     clamp(20px, 4vw, 40px);

  background: var(--dl-canvas);
  color: var(--dl-text);
}

.dl__wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ---------- Типографика ---------- */

/* mono-метка секции: пилюля навы-тинта вместо строки с точкой */
.dl-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; line-height: 1.3;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dl-ink); background: var(--dl-tint);
  border-radius: 64px; padding: 8px 16px;
}
.dl-tag--onink { background: rgba(238, 242, 251, .12); color: rgba(238, 242, 251, .9); }

/* дисплей: главный приём стиля — плотный uppercase-блок */
/* Кегль подобран по самому длинному слову заголовка: «ПОСРЕДНИКА»
   должно влезать в колонку целиком. Ни break-word, ни hyphens здесь
   не годятся — разрыв слова посреди 100-пиксельных букв читается
   как дефект вёрстки, а русского словаря переносов в Chrome нет. */
.dl-display {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 6.2vw, 5rem);
  line-height: .9; letter-spacing: -0.03em;
}
.dl-h2 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: .92; letter-spacing: -0.03em;
}
.dl-h3 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.dl-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.55;
  color: var(--dl-slate); max-width: 54ch;
}

/* ---------- Кнопки ---------- */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform .16s ease-out;
}
/* единственный красный элемент страницы, кроме финальной полосы */
.dl-btn--primary { background: var(--dl-red); border-color: var(--dl-red); color: #fff; }
.dl-btn--primary:hover { background: #d5161d; border-color: #d5161d; }
.dl-btn--ghost { border-color: var(--dl-ink); color: var(--dl-ink); }
.dl-btn--ghost:hover { background: var(--dl-ink); color: #fff; }
.dl-btn--onink { background: #fff; color: var(--dl-ink); border-color: #fff; }
.dl-btn--onink:hover { background: transparent; color: #fff; }
.dl-btn:active { transform: scale(.98); }

/* ---------- 00 · Герой: видео-фон + центрированный блок ----------
   Заказчик снял 3D-объект и попросил видео. Отрезок с 30-й секунды
   ролика refs/photo/Дилерам.mp4 нарезан ffmpeg в
   assets/video/dealers-hero.mp4 (16 c, 1280p, без звука, 1,9 МБ).
   Герой стал тёмным — это привычный ритм сайта (тёмный вход →
   светлые секции), и текст на видео читается только по навы-вуали. */
.dl-hero {
  position: relative; overflow: hidden;
  padding-block: calc(80px + clamp(56px, 9vw, 120px)) clamp(64px, 9vw, 120px);
  background: var(--dl-ink);
  color: #fff; text-align: center;
}
.dl-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* вуаль: без неё белый uppercase тонет в светлых кадрах цеха.
   Снизу уходит в навы, чтобы стык со светлой секцией не резал. */
.dl-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 45, .58) 0%, rgba(10, 20, 45, .72) 55%, rgba(20, 39, 87, .92) 100%);
}
.dl-hero__inner { position: relative; z-index: 2; }
.dl-hero__display { margin: 24px auto 0; max-width: 15ch; color: #fff; text-wrap: balance; }
.dl-hero__lead {
  margin: clamp(20px, 2.6vw, 28px) auto 0;
  color: rgba(238, 242, 251, .82); max-width: 58ch;
}
.dl-hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: clamp(24px, 3vw, 36px);
}

/* без движения: вместо ролика стоит его же постер */
@media (prefers-reduced-motion: reduce) {
  .dl-hero__video { display: none; }
  .dl-hero { background: var(--dl-ink) url("assets/video/dealers-hero.webp") center / cover no-repeat; }
}

/* ---------- 01 · Что даём дилеру ---------- */
.dl-sec { padding-block: 0 var(--dl-gap); }
.dl-sec__head { max-width: 60ch; }
.dl-sec__head .dl-h2 { margin-top: 20px; }
.dl-sec__head .dl-lead { margin-top: 18px; }

.dl-grid {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.dl-card {
  background: var(--dl-card); border-radius: 28px;
  padding: var(--dl-pad);
  display: flex; flex-direction: column; gap: 14px;
  /* плоско по замыслу: глубина — контрастом канвас → белый → навы */
}
.dl-card__no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--dl-smoke);
}
.dl-card__txt { font-size: 15px; line-height: 1.5; color: var(--dl-slate); }
.dl-card--ink { background: var(--dl-ink); color: #fff; }
.dl-card--ink .dl-card__no { color: rgba(238, 242, 251, .55); }
.dl-card--ink .dl-card__txt { color: rgba(238, 242, 251, .82); }

/* ---------- 02 · Доставка и оплата — инвертированный блок ---------- */
.dl-ink {
  background: var(--dl-ink); color: #fff;
  border-radius: 32px; padding: clamp(28px, 5vw, 72px);
}
.dl-ink .dl-lead { color: rgba(238, 242, 251, .72); }
.dl-spec { margin-top: clamp(24px, 3.4vw, 40px); }
.dl-spec__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0; border-top: 1px solid rgba(238, 242, 251, .16);
}
.dl-spec__row:last-child { border-bottom: 1px solid rgba(238, 242, 251, .16); }
.dl-spec dt {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(238, 242, 251, .6);
}
.dl-spec dd { margin: 0; font-size: 15px; text-align: right; color: #fff; }
/* «уточняется» — пилюля-тинт, а не курсив: статус читается как метка */
.dl-spec .is-pend {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(238, 242, 251, .12); color: rgba(238, 242, 251, .78);
  border-radius: 64px; padding: 5px 12px;
}
.dl-note { margin-top: clamp(20px, 2.6vw, 28px); font-size: 14px; line-height: 1.6; color: rgba(238, 242, 251, .62); }
.dl-note a { color: #fff; background: rgba(238, 242, 251, .14); border-radius: 6px; padding: 2px 6px; }
.dl-note a:hover { background: rgba(238, 242, 251, .26); }

/* ---------- 03 · FAQ — белая карта ---------- */
.dl-faq { background: var(--dl-card); border-radius: 32px; padding: clamp(24px, 4vw, 56px); }
.dl-faq__list { margin-top: clamp(24px, 3.4vw, 40px); }
.dl-faq__item { border-top: 1px solid var(--dl-hair); }
.dl-faq__item:last-child { border-bottom: 1px solid var(--dl-hair); }
.dl-faq__q {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(.98rem, 1.5vw, 1.15rem); line-height: 1.15;
}
.dl-faq__q::-webkit-details-marker { display: none; }
.dl-faq__q::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--dl-ink); border-bottom: 1.5px solid var(--dl-ink);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.dl-faq__item[open] .dl-faq__q::after { transform: rotate(-135deg); }
.dl-faq__a { padding: 0 0 22px; max-width: 66ch; font-size: 15px; line-height: 1.65; color: var(--dl-slate); }
.dl-faq__a a { color: var(--dl-ink); background: var(--dl-tint); border-radius: 6px; padding: 2px 6px; }
.dl-faq__pending {
  display: inline-block; margin-left: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--dl-tint); color: var(--dl-ink); border-radius: 64px; padding: 4px 10px;
}

/* ---------- 04 · Четыре причины ---------- */
.dl-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 44px); }
.dl-why__card { background: var(--dl-card); border-radius: 32px; padding: clamp(24px, 3.2vw, 40px); }
.dl-why__no {
  font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: .9; letter-spacing: -0.03em; color: var(--dl-hair);
}
.dl-why__card .dl-h3 { margin-top: 18px; }
.dl-why__card p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--dl-slate); }
.dl-why__card--ink { background: var(--dl-ink); color: #fff; }
.dl-why__card--ink .dl-why__no { color: rgba(238, 242, 251, .32); }
.dl-why__card--ink p { color: rgba(238, 242, 251, .8); }
.dl-why__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

/* ---------- Финальная полоса — единственная красная плоскость ---------- */
/* прямоугольная во всю ширину: заказчик снял скругление — полоса должна
   читаться как обрез страницы, а не как ещё одна карточка */
.dl-band { background: var(--dl-red); color: #fff; margin-top: var(--dl-gap); }
.dl-band__inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-block: clamp(44px, 6vw, 88px);
}
.dl-band__line {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 4rem); line-height: .9; letter-spacing: -0.03em;
  max-width: 14ch;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .dl-hero__display { max-width: 18ch; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dl-grid, .dl-why { grid-template-columns: 1fr; }
  .dl-spec__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dl-spec dd { text-align: left; }
}
