/* ---------- Токены ---------- */
:root {
  --bg:        #0e1116;
  --bg-alt:    #141922;
  --surface:   #1b2230;
  --text:      #f4f6f8;
  --muted:     #9aa6b6;
  --accent:    #f5811f;   /* цвет сварочной дуги */
  --accent-2:  #ff9d45;
  --line:      rgba(255,255,255,.08);
  --maxw:      1360px;
  --radius:    12px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-hero: 'Rubik', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }
/* чтобы заголовок раздела не прятался под закреплённой шапкой */
section[id] { scroll-margin-top: 168px; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px;  font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--accent {
  background: var(--accent);
  color: #1a1206;
}
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.25);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,17,22,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 108px;
}
/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 18px; color: var(--text); }
.logo__mark { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(255,255,255,.12); }
.logo__word { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 52px; font-weight: 800; letter-spacing: 5px; }
.logo__tag { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
/* Кнопки в шапке (ближе к центру) */
.header__cta-group { display: flex; gap: 12px; }
.header__cta { font-size: 19px; padding: 15px 30px; }
/* Телефон (справа) */
.header__phone { font-weight: 700; font-size: 25px; white-space: nowrap; }
.header__phone:hover { color: var(--accent-2); }
.header__phone-label { color: var(--muted); font-weight: 600; font-size: 18px; }
/* Гамбургер */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 44px; padding: 0 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; cursor: pointer; flex: none;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle:hover { background: rgba(255,255,255,.12); }
/* Выпадающее меню разделов */
.nav-drop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; min-width: 230px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.nav-drop[hidden] { display: none; }
.nav-drop a { padding: 11px 14px; border-radius: 8px; color: #cfd6e0; font-size: 15px; }
.nav-drop a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,12,16,.92) 0%, rgba(10,12,16,.65) 45%, rgba(10,12,16,.25) 100%),
    linear-gradient(0deg, rgba(10,12,16,.85) 0%, rgba(10,12,16,0) 40%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
/* Закреплённая строка меню разделов */
.header__nav { border-top: 1px solid var(--line); }
.header__nav .container { display: flex; flex-wrap: wrap; gap: 2px 30px; }
.header__nav a {
  display: inline-block;
  color: #cfd6e0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.header__nav a:hover { color: #fff; border-color: var(--accent); }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--accent-2);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-hero);
  font-style: italic;
  font-size: clamp(44px, 7.2vw, 78px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(25px, 3.6vw, 33px);
  color: #d7dde6;
  max-width: 900px;
  margin: 0 auto 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  list-style: none;
}
.hero__badges li {
  position: relative;
  padding-left: 40px;
  font-size: 42px;
  font-weight: 700;
  color: #e7ecf2;
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Секции (заглушки) ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.section__muted { color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Общие элементы секций ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section__lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 36px;
}
.equip { max-width: 860px; }
.equip p { color: #c9d2dd; font-size: 18px; margin-bottom: 16px; }
.equip strong { color: #fff; font-weight: 700; }

/* ---------- Карточки преимуществ ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.card__icon {
  font-size: 104px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 17px; line-height: 1.5; }

/* ---------- Блок «текст + картинка» ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature--reverse .feature__text { order: 2; }
.feature__text p { color: #c9d2dd; margin-bottom: 16px; max-width: 520px; }
.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.gallery figcaption {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
  color: #d8d8d8;
}
.gallery--cover figcaption { font-size: 20px; color: #eaeaea; }

/* ---------- Галерея-обложка (один кадр → клик → все) ---------- */
.gallery--cover {
  display: block;
  max-width: 760px;
  margin: 0 auto;
}
.gallery--cover figure { position: relative; cursor: pointer; }
.gallery--cover figure:nth-child(n+2) { display: none; }
.gallery--cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: filter .2s;
}
.gallery--cover figure:hover img { filter: brightness(.9); }
.gallery--cover figcaption { text-align: center; margin-top: 12px; }
.gallery__badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .72);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}

/* Кнопка ▶ поверх постера видео в галереях */
.gallery figure { position: relative; }
.gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 26px;
  padding-left: 4px;
  border-radius: 50%;
  pointer-events: none;
  transition: background .2s;
}
.gallery figure:hover .gallery__play { background: rgba(217, 95, 24, .9); }

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { padding-top: 8px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1206;
  font-weight: 800; font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA / форма ---------- */
.section--cta { background: var(--bg-alt); }
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.cta__text p { color: #c9d2dd; margin: 14px 0 22px; max-width: 460px; }
.cta__phone {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.cta__phone:hover { color: var(--accent-2); }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form__input {
  background: #0e1219;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  width: 100%;
  resize: vertical;
}
.form__input::placeholder { color: #6b7787; }
.form__input:focus { outline: none; border-color: var(--accent); }
.form__submit { width: 100%; margin-top: 4px; }
.form__note {
  background: rgba(245,129,31,.14);
  color: var(--accent-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
}
.form__privacy { color: #6b7787; font-size: 12px; }

/* ---------- Подвал ---------- */
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__inner a { font-weight: 700; color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .logo__tag { display: none; }
  .header__phone-label { display: none; }
  .header__phone { font-size: 15px; }
  .header__right { gap: 12px; }
  .header__inner { gap: 12px; }
  .hero__inner { padding: 56px 24px; }
  .feature, .cta { grid-template-columns: 1fr; gap: 28px; }
  .feature--reverse .feature__text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- Лайтбокс ---------- */
.gallery img { cursor: zoom-in; transition: opacity .15s ease; }
.gallery img:hover { opacity: .9; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,10,14,.93);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; cursor: pointer;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__cap {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  max-width: 86vw; text-align: center; color: #fff;
  font-size: 34px; font-weight: 700; line-height: 1.3;
  background: rgba(0,0,0,.72); padding: 16px 28px; border-radius: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  pointer-events: none;
}
@media (max-width: 600px) {
  .lightbox__btn { width: 42px; height: 42px; font-size: 22px; }
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; } .lightbox__close { top: 14px; right: 14px; }
  .lightbox__cap { font-size: 24px; padding: 12px 18px; bottom: 16px; max-width: 92vw; }
}
@media (max-width: 560px) {
  .header__right .btn { display: none; }
  .nav-drop { right: 0; left: 0; min-width: 0; }
}
