/* =========================================================
   Дип Тех — dipteh.com
   Один общий файл стилей. Без препроцессоров и фреймворков.
   ========================================================= */

/* ---------- Шрифт: Inter, локально, woff2, font-display: swap ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.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 {
  --graphite: #1e2227;        /* графит тёмный */
  --graphite-mid: #2b3137;    /* графит средний */
  --text: #1e2227;            /* основной текст */
  --text-muted: #5a6169;      /* вторичный текст */
  --bg: #ffffff;              /* основной фон */
  --bg-alt: #f4f5f6;          /* фон секций */
  --border: #dde0e3;          /* границы */
  --accent: #b86813;          /* акцент (линии, рамки, нетекстовые элементы) */
  --accent-btn: #a35b10;      /* заливка кнопок под белый текст */
  --accent-btn-hover: #8c4e0e;
  --accent-link: #8f5210;     /* текстовые ссылки акцентом на белом */
  --accent-dark-bg: #e08a2e;  /* акцент внутри графитовых секций */
  --on-dark: #e8eaec;         /* текст на графите */
  --on-dark-muted: #a8aeb4;   /* вторичный текст на графите */
  --logo-grey: #c9c9c9;       /* цвет логотипа и текста подвала на графите */

  --container: 1200px;
  --pad: 24px;
  --radius: 4px;
  --measure: 68ch;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: 42px; line-height: 1.14; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }

p { margin: 0 0 16px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-link); }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; max-width: var(--measure); }
li:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--accent { background: var(--accent-btn); color: #fff; }
.btn--accent:hover,
.btn--accent:active { background: var(--accent-btn-hover); color: #fff; }

.btn--secondary {
  background: transparent;
  border-color: #767d84;
  color: var(--text);
}
.btn--secondary:hover { background: #e7e9eb; }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Шапка ---------- */
.site-header {
  background: var(--graphite);
  color: var(--on-dark);
  border-bottom: 3px solid var(--accent);
}

.site-header a { color: var(--on-dark); }
.site-header :focus-visible { outline-color: var(--accent-dark-bg); }

/* Десктоп: два уровня — бренд и контакты сверху, меню строкой ниже */
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
}

.header__menu { display: contents; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  padding: 14px 0;
  text-decoration: none;
}
.brand img { display: block; width: auto; height: 40px; }
.brand__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--logo-grey);
  white-space: nowrap;
}
.brand:hover .brand__name { color: #fff; }

.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid var(--graphite-mid);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; max-width: none; }

.nav__link {
  position: relative;
  display: block;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--on-dark);
}
.nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent-dark-bg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.header__phone {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.header__phone:hover { color: #fff; text-decoration: underline; }

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid #767d84;
  border-radius: var(--radius);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.burger:hover { background: var(--graphite-mid); }
.burger__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.burger__bars::before,
.burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { margin: 0; max-width: none; }
.breadcrumbs li + li::before {
  content: "→";
  margin-right: 8px;
  color: var(--accent);
}
.breadcrumbs a { color: var(--accent-link); }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--graphite);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark a { color: var(--accent-dark-bg); }
.section--dark :focus-visible { outline-color: var(--accent-dark-bg); }
.section--dark .muted { color: var(--on-dark-muted); }

.section__head { margin-bottom: 32px; }
.section__head p { color: var(--text-muted); }
.section--dark .section__head p { color: var(--on-dark-muted); }

.muted { color: var(--text-muted); }
.lead { font-size: 19px; line-height: 1.55; }

/* ---------- Шапка внутренней страницы ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { color: var(--text-muted); }

/* ---------- Главная: hero ---------- */
.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__text .lead { color: var(--text-muted); }
.hero__media img,
.hero__media .media-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Изображения ---------- */
.figure { margin: 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Заглушка, если рабочего фото нет */
.media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* ---------- Карточки направлений ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--alt .card { background: var(--bg); }

.card__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px;
}
.card__body h3 { font-size: 19px; margin-bottom: 10px; }
.card__body p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-muted);
}
.card__link {
  margin-top: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-link);
  text-decoration: underline;
}
.card__link:hover { color: var(--accent-btn-hover); }

/* ---------- Преимущества ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  padding-top: 16px;
  border-top: 3px solid var(--accent);
}
.feature__num {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-link);
  letter-spacing: 0.02em;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 16px; color: var(--text-muted); }
.section--dark .feature { border-top-color: var(--accent-dark-bg); }
.section--dark .feature__num { color: var(--accent-dark-bg); }
.section--dark .feature p { color: var(--on-dark-muted); }

/* ---------- Список «что поставляем» ---------- */
.list-marked {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-marked li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
}
.list-marked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 3px;
  background: var(--accent);
}

/* ---------- Шаги «как работаем» ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin: 0;
  max-width: none;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-link);
}
.steps b {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}
.steps span {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------- Строка цены ---------- */
.price {
  margin: 28px 0 0;
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  font-weight: 500;
  background: var(--bg-alt);
  max-width: var(--measure);
}
.section--alt .price { background: #ebedee; }
.section--dark .price {
  background: var(--graphite-mid);
  border-left-color: var(--accent-dark-bg);
  color: #fff;
}

/* ---------- Блок заявки ---------- */
.cta__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.cta__aside {
  padding: 24px;
  background: var(--graphite-mid);
  border-left: 3px solid var(--accent-dark-bg);
  border-radius: var(--radius);
}
.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}
.contact-inline li { margin: 0; max-width: none; }
.contact-inline a { text-decoration: underline; }

/* Кнопка-акцент всегда с белым текстом, в том числе в шапке и тёмных секциях */
.site-header .btn--accent,
.section--dark .btn--accent,
.site-header .btn--accent:hover,
.section--dark .btn--accent:hover {
  color: #fff;
}

/* ---------- Блок «Светильник под ваш запрос» ---------- */
.spotlight {
  padding: 36px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}
.spotlight h2 { margin-bottom: 12px; }
.spotlight__note {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------- География ---------- */
.geo-line {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  max-width: none;
}
.geo-line span { white-space: nowrap; }
.geo-line i {
  margin: 0 10px;
  font-style: normal;
  color: var(--accent-link);
}

.chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chain li {
  position: relative;
  margin: 0;
  max-width: none;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 16px;
  height: 3px;
  background: var(--accent);
}
.chain b { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.chain span { display: block; font-size: 15px; color: var(--text-muted); }

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-card dd {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 500;
}
.contact-card dd:last-child { margin-bottom: 0; }
.contact-card dd a { text-decoration: underline; }

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list li {
  margin: 0;
  max-width: none;
  border-bottom: 1px solid var(--border);
}
.link-list li:first-child { border-top: 1px solid var(--border); }
.link-list a {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-link);
}
.link-list a:hover { text-decoration: underline; }
.link-list span {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--graphite);
  color: var(--logo-grey);
  padding: 56px 0 24px;
  font-size: 16px;
}
.site-footer a {
  color: var(--logo-grey);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent-dark-bg); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent-dark-bg); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer__brand img { display: block; width: auto; height: 32px; }
.footer__brand span { font-size: 16px; font-weight: 600; }
.footer__note { margin: 0; font-size: 15px; color: var(--on-dark-muted); max-width: 34ch; }

.footer__col h2 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col li { margin-bottom: 10px; max-width: none; }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--graphite-mid);
  font-size: 15px;
  color: var(--on-dark-muted);
}

/* =========================================================
   Адаптив: 1200 / 900 / 600
   ========================================================= */

@media (max-width: 1199px) {
  .nav__list { gap: 20px; }
}

@media (max-width: 1199px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(3, 1fr); }
  .chain li::after { display: none; }
}

/* Бургер-меню */
@media (max-width: 1099px) {
  .header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 68px;
    gap: 16px;
  }
  .brand { padding: 0; }
  .burger { display: inline-flex; }

  .header__menu {
    display: none;
    order: 3;
    width: 100%;
    margin: 0 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--graphite-mid);
  }
  .site-header.is-open .header__menu { display: flex; }

  .nav { border-top: 0; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--graphite-mid);
  }
  .nav__link[aria-current="page"] {
    padding-left: 12px;
    border-left: 3px solid var(--accent-dark-bg);
  }
  .nav__link[aria-current="page"]::after { display: none; }

  .header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 0 4px;
  }
  .header__phone {
    display: block;
    font-size: 16px;
    text-align: center;
  }
  .header__actions .btn { width: 100%; }
}

@media (max-width: 899px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .lead { font-size: 18px; }

  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }

  .hero { padding: 44px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }

  .cta__grid { grid-template-columns: 1fr; gap: 28px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .chain { grid-template-columns: 1fr; gap: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .spotlight { padding: 28px; }
  .geo-line { font-size: 19px; }
}

@media (max-width: 599px) {
  :root { --pad: 16px; }

  h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  body { font-size: 16px; }

  .section { padding: 44px 0; }
  .section--tight { padding: 36px 0; }

  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .btn-row .btn { width: 100%; }
  .spotlight { padding: 20px; }
  .contact-card { padding: 20px; }
  .geo-line { font-size: 18px; }
  .brand__name { font-size: 17px; }
}
