/* ═══════════════════════════════════════════════════════════
   УралБизнесЛизинг · Лизинг ТКО · CSS
   Fonts: Raleway (headings) + Source Sans 3 (body)
   ═══════════════════════════════════════════════════════════ */

/* ──────────────────────── RESET & BASE ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c0392b;
  --red-dark:   #a93226;
  --red-light:  #e74c3c;
  --dark:       #111827;
  --dark2:      #1f2937;
  --mid:        #374151;
  --grey:       #6b7280;
  --light:      #f3f4f6;
  --lighter:    #f9fafb;
  --border:     #e5e7eb;
  --white:      #ffffff;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.16);
  --ff-head:    'Raleway', sans-serif;
  --ff-body:    'Source Sans 3', sans-serif;
  --trans:      .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--ff-body); }

/* ──────────────────────── LAYOUT ──────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec {
  padding: 96px 0;
}

.sec__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.sec__head p { color: var(--grey); margin-top: 12px; font-size: 1.05rem; }

/* ──────────────────────── TYPOGRAPHY ──────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--mid); }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--lt { color: rgba(255,255,255,.75); }
.h-lt { color: var(--white); }

/* ──────────────────────── BUTTONS ──────────────────────── */
.btn-red,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--trans);
  white-space: nowrap;
  line-height: 1;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,.35);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192,57,43,.45);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }
.btn-lg   { padding: 16px 32px; font-size: .95rem; }

/* ══════════════════════════════════════════
   HEADER
   Логотип 1024×327px (ratio ≈ 3.13:1)
   При высоте 50px → ширина ≈ 157px
   ══════════════════════════════════════════ */
:root { --hh: 76px; }

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--hh);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .25s ease;
}
.hdr.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.10);
}

.hdr__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Логотип ── */
.hdr__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Логотип 3.13:1. При высоте 50px ширина = 156px */
}
.hdr__logo img {
  display: block;
  height: 50px;          /* полная высота картинки — весь логотип целиком */
  width: 157px;          /* 50 * 3.13 */
  object-fit: contain;
  object-position: left center;
}

/* ── Разделитель ── */
.hdr__divider {
  width: 1px;
  height: 32px;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 28px;
}

/* ── Навигация ── */
.hdr__nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.hdr__nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 13px;
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
  text-decoration: none;
}
.hdr__nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(192,57,43,.04);
}
.hdr__nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Правый блок ── */
.hdr__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-left: 20px;
  flex-shrink: 0;
}

/* Телефон */
.hdr__phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  gap: 3px;
}
.hdr__tel {
  font-family: var(--ff-head);
  font-size: .95rem;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
.hdr__tel:hover { color: var(--red); }
.hdr__tel-sub {
  font-family: var(--ff-head);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Кнопка */
.hdr__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 5px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(192,57,43,.30);
  transition: background .2s, box-shadow .2s, transform .2s;
  flex-shrink: 0;
}
.hdr__btn:hover {
  background: var(--red-dark);
  box-shadow: 0 5px 18px rgba(192,57,43,.42);
  transform: translateY(-1px);
}

/* ── Бургер ── */
.hdr__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 8px;
  border-radius: 6px;
  transition: background .2s;
}
.hdr__burger:hover { background: #f3f4f6; }
.hdr__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}

/* ──────────────────────── HERO SLIDER ──────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: var(--hh);
}

.hero__track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.18,1);
}

.hero__slide {
  flex: 0 0 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero__dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,20,30,.78) 0%,
    rgba(15,20,30,.50) 60%,
    rgba(15,20,30,.30) 100%
  );
}

.hero__body {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
  background: rgba(192,57,43,.6);
  padding: 6px 14px;
  border-radius: 3px;
  border-left: 3px solid var(--red-light);
}

.hero__body h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero__body h1 span { color: var(--red-light); }

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slider controls */
.hero__prev,
.hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.3);
  transition: all var(--trans);
}
.hero__prev { left: 24px; }
.hero__next { right: 24px; }
.hero__prev:hover,
.hero__next:hover {
  background: rgba(192,57,43,.7);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 1.5px solid rgba(255,255,255,.6);
  transition: all var(--trans);
  padding: 0;
}
.hero__dot.active {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: scale(1.3);
}

/* ──────────────────────── STATS ──────────────────────── */
.stats {
  background: var(--dark);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

/* Фоновый декоративный градиент */
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(192,57,43,.13) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(192,57,43,.10) 0%, transparent 70%);
  pointer-events: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}

/* Карточка */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.13);
  transform: translateY(-4px);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

/* Акцентная карточка */
.stat-card--accent {
  background: linear-gradient(135deg, rgba(192,57,43,.18) 0%, rgba(231,76,60,.08) 100%);
  border-color: rgba(231,76,60,.3);
}

.stat-card--accent::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
}

.stat-card--accent:hover {
  background: linear-gradient(135deg, rgba(192,57,43,.26) 0%, rgba(231,76,60,.14) 100%);
  border-color: rgba(231,76,60,.5);
}

/* Иконка */
.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
  flex-shrink: 0;
  transition: background var(--trans), transform var(--trans);
}

.stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.stat-card:hover .stat-card__icon {
  background: rgba(231,76,60,.22);
  transform: scale(1.08) rotate(-4deg);
}

/* Тело карточки */
.stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Числовое значение */
.stat-card__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.stat__n {
  font-family: var(--ff-head);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}

.stat__s {
  font-family: var(--ff-head);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 900;
  color: var(--red-light);
  line-height: 1;
  margin-left: 1px;
}

/* Подпись */
.stat-card__label {
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--red-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}

/* Описание */
.stat-card__desc {
  font-size: .82rem;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin-top: 2px;
}

/* ──────────────────────── ABOUT ──────────────────────── */
.about {
  background: var(--lighter);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__gallery {
  position: relative;
}

.about__img-big {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about__img-big img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about__img-big:hover img { transform: scale(1.04); }

.about__img-sm {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 48%;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about__img-sm img { width: 100%; height: 100%; object-fit: cover; }

.about__pill {
  position: absolute;
  top: 24px;
  left: -18px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px rgba(192,57,43,.4);
  text-align: center;
  line-height: 1.3;
}
.about__pill strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.8rem;
  font-weight: 800;
}
.about__pill span { font-size: .72rem; font-weight: 500; opacity: .9; }

.about__text p { margin-bottom: 16px; }
.about__text h2 { margin-bottom: 20px; }
.about__lead {
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.7;
}

.about__facts {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about__fact {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.about__fact strong {
  font-family: var(--ff-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
}
.about__fact span {
  font-size: .82rem;
  color: var(--grey);
  margin-top: 3px;
}

/* ──────────────────────── EQUIPMENT ──────────────────────── */
.eq-sec { background: var(--white); }

.eq-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.eq-tab {
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  color: var(--grey);
  background: var(--white);
  transition: all var(--trans);
}
.eq-tab:hover { border-color: var(--red); color: var(--red); }
.eq-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,.3);
}

.eq-panels { position: relative; }
.eq-panel { display: none; }
.eq-panel.active { display: block; }

.eq-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eq-panel__photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--dark2);
}
.eq-panel__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.eq-panel__photo:hover img { transform: scale(1.04); }
.eq-panel__photo--dark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark), var(--dark2));
}
.eq-panel__photo--dark p {
  color: rgba(255,255,255,.5);
  font-family: var(--ff-head);
  font-size: 1rem;
  text-align: center;
}

.eq-panel__body h3 { margin-bottom: 12px; }
.eq-panel__body > p { margin-bottom: 20px; }

.eq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.eq-list li {
  padding: 10px 14px;
  background: var(--lighter);
  border-radius: 6px;
  border-left: 3px solid var(--red);
  font-size: .9rem;
  color: var(--mid);
  font-weight: 500;
  transition: background var(--trans);
}
.eq-list li:hover { background: rgba(192,57,43,.06); color: var(--dark); }

/* ──────────────────────── FULLWIDTH PHOTO ──────────────────────── */
.fullphoto {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 0;
  text-align: center;
}
.fullphoto__dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,20,30,.72), rgba(15,20,30,.72));
}
.fullphoto__body {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.fullphoto__body h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.fullphoto__body p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* ──────────────────────── ADVANTAGES ──────────────────────── */
.adv-sec { background: var(--lighter); }

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

.adv-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-top: 3px solid transparent;
  transition: all var(--trans);
  position: relative;
}
.adv-card:hover {
  border-top-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

.adv-card__num {
  display: block;
  font-family: var(--ff-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(192,57,43,.12);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--trans);
}
.adv-card:hover .adv-card__num { color: rgba(192,57,43,.2); }

.adv-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.adv-card p { font-size: .9rem; color: var(--grey); line-height: 1.6; }

/* ──────────────────────── PHOTO STRIP ──────────────────────── */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip__item {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.strip__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.strip__item:hover img { transform: scale(1.08); }
.strip__item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 16px 16px;
  background: linear-gradient(transparent, rgba(10,14,20,.85));
  color: var(--white);
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* ──────────────────────── CONDITIONS ──────────────────────── */
.cond-sec { background: var(--white); }

.cond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.cond-card {
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 32px 28px;
  background: var(--white);
  transition: all var(--trans);
}
.cond-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(192,57,43,.12);
}
.cond-card--hot {
  border-color: var(--red);
  background: linear-gradient(145deg, var(--lighter), var(--white));
  box-shadow: 0 4px 24px rgba(192,57,43,.14);
}

.cond-card__hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cond-card__hd h3 {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.cond-badge {
  font-family: var(--ff-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  white-space: nowrap;
}

.cond-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.cond-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.cond-list li:last-child { border-bottom: none; }
.cond-list li span { color: var(--grey); }
.cond-list li strong {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--dark);
  text-align: right;
}

/* ──────────────────────── STEPS ──────────────────────── */
.steps {
  background: var(--lighter);
  border-radius: 16px;
  padding: 52px 48px;
}
.steps h3 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.35rem;
}
.steps__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.steps__row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 16px);
  right: calc(10% + 16px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(192,57,43,.35);
  transition: transform var(--trans);
}
.step:hover .step__num { transform: scale(1.1); }
.step h4 {
  font-size: .95rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.step p { font-size: .82rem; color: var(--grey); line-height: 1.5; }

/* ──────────────────────── CONTACT ──────────────────────── */
.contact-sec {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info__sub {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-dets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-det {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-det strong {
  font-family: var(--ff-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.contact-det a,
.contact-det span {
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--trans);
}
.contact-det a:hover { color: var(--red-light); }

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-links a {
  font-family: var(--ff-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px;
  border-radius: 4px;
  transition: all var(--trans);
}
.contact-links a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.07);
}

/* ──────────────────────── FORM ──────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  color: var(--dark);
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.fg label {
  font-family: var(--ff-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grey);
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
.fg-row .fg { margin-bottom: 16px; }

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--dark);
  background: var(--lighter);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  -webkit-appearance: none;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
  background: var(--white);
}
.fg input.error,
.fg select.error { border-color: var(--red-light); }
.fg textarea { resize: vertical; min-height: 80px; }

.fg-check {
  margin-bottom: 20px;
}
.fg-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .83rem;
  color: var(--grey);
  line-height: 1.5;
}
.fg-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--red);
  margin-top: 1px;
}
.fg-check a { color: var(--red); text-decoration: underline; }

.form-ok {
  margin-top: 20px;
  padding: 20px;
  background: #d4edda;
  border-radius: var(--radius);
  border: 1px solid #c3e6cb;
  text-align: center;
  color: #155724;
}
.form-ok strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.form-ok p { font-size: .88rem; color: #155724; }

/* ──────────────────────── FOOTER ──────────────────────── */
.ftr {
  background: #0d1117;
  color: rgba(255,255,255,.7);
}

.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.ftr__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 18px;
}

.ftr__brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}
.ftr__brand small {
  display: block;
  margin-top: 14px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  font-family: var(--ff-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ftr__col h4 {
  font-family: var(--ff-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.ftr__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ftr__col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--trans);
}
.ftr__col ul li a:hover { color: var(--white); }

.ftr__tel,
.ftr__mail {
  display: block;
  margin-bottom: 12px;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: color var(--trans);
}
.ftr__tel:hover,
.ftr__mail:hover { color: var(--red-light); }

.ftr__col p {
  font-size: .84rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
  margin-bottom: 8px;
}

.ftr__bot {
  border-top: 1px solid rgba(255,255,255,.08);
}
.ftr__bot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ftr__bot-in span {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.ftr__bot-in a {
  color: rgba(255,255,255,.45);
  transition: color var(--trans);
}
.ftr__bot-in a:hover { color: var(--white); }

/* ──────────────────────── SCROLL TO TOP ──────────────────────── */
.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(192,57,43,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--trans), transform var(--trans);
}
.to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(192,57,43,.55);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ── 1200px: чуть сжимаем навигацию ── */
@media (max-width: 1200px) {
  .hdr__nav a { padding: 0 10px; font-size: .72rem; }
  .hdr__divider { margin: 0 20px; }
}

/* ── 1024px: скрываем телефон-подпись, уменьшаем отступы ── */
@media (max-width: 1024px) {
  .hdr__tel-sub { display: none; }
  .hdr__nav a { padding: 0 8px; font-size: .7rem; }
  .hdr__right { gap: 12px; padding-left: 12px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps__row { grid-template-columns: repeat(3, 1fr); }
  .steps__row::before { display: none; }
  .about__grid { gap: 40px; }
}

/* ── 860px: бургер включается, навигация уходит в дропдаун ── */
@media (max-width: 860px) {
  /* Шапка */
  .hdr__nav     { display: none; }   /* скрыта по умолчанию, управляется JS */
  .hdr__divider { display: none; }
  .hdr__burger  { display: flex; }

  /* Контент */
  .sec { padding: 72px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__img-sm { width: 38%; bottom: -16px; right: -10px; }
  .eq-panel__grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cond-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps { padding: 32px 20px; }
  .steps__row { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { padding: 48px 0; }
}

/* ── Мобильное меню (дропдаун) — только когда бургер виден ── */
@media (max-width: 860px) {
  .hdr__nav {
    display: flex;          /* JS управляет open-классом */
    position: fixed;
    top: var(--hh);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 36px rgba(0,0,0,.12);
    /* Скрытое состояние */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 999;
    gap: 2px;
    height: auto;
  }
  .hdr__nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  /* Ссылки в дропдауне */
  .hdr__nav a {
    display: flex;
    align-items: center;
    height: auto;
    padding: 12px 14px;
    border-bottom: none !important;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: #374151;
  }
  .hdr__nav a:hover,
  .hdr__nav a.active {
    background: rgba(192,57,43,.07);
    color: var(--red);
    border-bottom: none !important;
  }
}

/* ── 600px: мобайл ── */
@media (max-width: 600px) {
  :root { --hh: 62px; }

  .wrap { padding: 0 16px; }
  .sec  { padding: 56px 0; }

  /* Шапка */
  .hdr__logo img { height: 40px; width: 125px; }
  .hdr__phone-block { display: none; }
  .hdr__btn  { height: 38px; padding: 0 16px; font-size: .7rem; letter-spacing: .05em; }
  .hdr__right { gap: 8px; padding-left: 8px; }

  /* Hero */
  .hero { height: 85vw; min-height: 420px; max-height: 660px; }
  .hero__body h1 { font-size: clamp(1.4rem, 5.5vw, 2.1rem); }
  .hero__sub { font-size: .9rem; margin-bottom: 24px; }
  .hero__cta { gap: 8px; }
  .hero__cta .btn-red, .hero__cta .btn-ghost { padding: 11px 16px; font-size: .76rem; }
  .hero__prev, .hero__next { width: 34px; height: 34px; font-size: .9rem; }
  .hero__prev { left: 8px; }
  .hero__next { right: 8px; }

  /* Stats */
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats { padding: 36px 0; }
  .stat-card { padding: 24px 20px; gap: 14px; }
  .stat-card__desc { display: none; }
  .stat__n { font-size: clamp(2rem, 7vw, 2.6rem); }
  .stat-card__icon { width: 40px; height: 40px; border-radius: 10px; }
  .stat-card__icon svg { width: 18px; height: 18px; }

  /* About */
  .about__img-sm { display: none; }
  .about__pill { position: static; display: inline-block; margin-bottom: 12px; }

  /* Advantages */
  .adv-grid { grid-template-columns: 1fr; }

  /* Strip */
  .strip { grid-template-columns: 1fr 1fr; }

  /* Steps */
  .steps__row { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }

  /* Contact form */
  .contact-dets { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 18px; }
  .fg-row { grid-template-columns: 1fr; }

  /* Footer */
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .ftr__bot-in { flex-direction: column; text-align: center; gap: 8px; }

  .to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: .95rem; }
}

/* ──────────────────────── ANIMATIONS ──────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow { animation: fadeInUp .6s ease .1s both; }
.hero__body h1 { animation: fadeInUp .7s ease .25s both; }
.hero__sub     { animation: fadeInUp .7s ease .4s both; }
.hero__cta     { animation: fadeInUp .7s ease .55s both; }
