/* ============ СпецТехЛизинг — тёмный индустриальный ============ */

:root {
  --bg: #101214;
  --bg-alt: #16191d;
  --panel: #1d2127;
  --line: #2b3038;
  --accent: #f7a600;
  --accent-dark: #d98f00;
  --wa: #25d366;
  --wa-dark: #1eb457;
  --text: #eceae6;
  --muted: #a7adb5;
  --radius: 10px;
  --font-head: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); }

.ico { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .1s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }

.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: rgba(247, 166, 0, .12); }

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 18, 20, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; }

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero.jpg') center 30% / cover no-repeat;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 14, 16, .95) 0%, rgba(13, 14, 16, .78) 45%, rgba(13, 14, 16, .45) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 90px;
  max-width: 760px;
  margin-left: 0;
}
.hero .container { width: 100%; max-width: 1160px; margin: 0 auto; }

.hero__badge {
  display: inline-block;
  background: rgba(247, 166, 0, .14);
  border: 1px solid rgba(247, 166, 0, .45);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
}
.hero__chips li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--muted);
}
.hero__chips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}

/* Сигнальная полоса */
.hazard-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 18px,
    #15171a 18px 36px
  );
  z-index: 2;
}

/* ---------- Секции ---------- */
.section { padding: 84px 0; scroll-margin-top: 72px; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  margin-bottom: 48px;
}
.section__head--left { text-align: left; }

.section__label {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  gap: 26px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 166, 0, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.card__media img.img-top { object-position: top; }
.card:hover .card__media img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--accent);
  color: #15171a;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
}

.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.card__text {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.card__link:hover { color: #ffc247; }

/* ---------- Почему мы ---------- */
.why {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
}

.why__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.why__media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #15171a 14px 28px);
}
.why__media img { width: 100%; height: 100%; object-fit: cover; }

.why__list { list-style: none; display: grid; gap: 22px; }
.why__list li {
  position: relative;
  padding-left: 34px;
}
.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}
.why__list h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.why__list p { color: var(--muted); font-size: 15px; }

/* ---------- Контакты ---------- */
.section--contacts { background: var(--bg-alt); }

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.contacts__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contacts__phone {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.contacts__phone:hover { color: var(--accent); }

.contacts__card--info {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 72px;
}
.contacts__row { display: flex; flex-direction: column; gap: 4px; }
.contacts__value { font-size: 17px; font-weight: 500; }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.footer__muted { color: #6d737b; }

/* ---------- Плавающий WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__media { max-height: 420px; }
  .header__phone { display: none; }
}

@media (max-width: 768px) {
  .header__inner { gap: 16px; }
  .logo__img { height: 34px; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    transform: translateY(-130%);
    transition: transform .28s ease;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__link:last-child { border-bottom: none; }

  .burger { display: flex; }

  .header__contacts .btn--sm span { display: none; }

  .hero { min-height: 560px; }
  .hero__content { padding-top: 48px; padding-bottom: 64px; }

  .section { padding: 60px 0; }

  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .contacts__card--info { flex-direction: column; gap: 22px; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .contacts__phone { font-size: 24px; }
}

@media (max-width: 360px) {
  .header__inner { gap: 12px; }
  .logo__img { height: 28px; }
  .burger { padding: 6px 2px; }
}
