/* ============================================================
   СВАРКА 121 — сайт-визитка сварочной мастерской
   Тёмная тема, акцент — «искра» (оранжевый)
   ============================================================ */

:root {
  --bg: #121214;
  --bg-2: #1a1a1f;
  --card: #1f1f25;
  --card-hover: #26262e;
  --border: #2e2e37;
  --text: #f4f4f2;
  --muted: #a6a6ad;
  --accent: #ff8a00;
  --accent-2: #ffb300;
  --accent-dark: #e07a00;
  --green: #3ddc84;
  --red: #ff5c5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-width: 320px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: #1a1a1a;
}
.btn--accent:hover { background: var(--accent-2); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: #4a4a55;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--light {
  background: #fff;
  color: #1a1a1a;
}
.btn--light:hover { background: var(--accent-2); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-light:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--max { background: #6c4bff; color: #fff; }
.btn--max:hover { background: #8a6dff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__icon { display: inline-flex; }
.logo__text { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.logo__text strong { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--card); }
.nav__link.is-active { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__phone { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 138, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #191920 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero__inner { padding: 90px 20px 80px; }
.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 138, 0, 0.45);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 14px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  max-width: 720px;
  margin-bottom: 18px;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 42px;
}
.hero__facts li {
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.hero__facts strong { display: block; font-size: 26px; color: var(--text); }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--dark { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 0 0 72px; }

.section__head { max-width: 640px; margin-bottom: 40px; }
.section__title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.section__subtitle { color: var(--muted); font-size: 17px; }
.section__foot { margin-top: 36px; text-align: center; }

/* ---------- Карточки услуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 0, 0.5); background: var(--card-hover); }
.card__icon { font-size: 34px; margin-bottom: 14px; }
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card__link { color: var(--accent); font-weight: 600; font-size: 15px; }
.card__link:hover { color: var(--accent-2); }

/* ---------- Преимущества ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature { padding: 8px 4px; }
.feature__num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.feature__title { font-size: 17px; margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery--preview { grid-template-columns: repeat(4, 1fr); }

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 14px 12px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
}
.gallery__note { margin-top: 28px; color: var(--muted); text-align: center; }

.gallery__item.is-hidden { display: none; }

/* ---------- Фильтры ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter:hover { color: var(--text); border-color: #4a4a55; }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 8, 10, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: min(1000px, 90vw);
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox__caption { margin-top: 14px; color: #ddd; font-size: 15px; text-align: center; padding: 0 20px; }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #555;
  background: rgba(30, 30, 35, 0.8);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #555;
  background: rgba(30, 30, 35, 0.8);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, #ff8a00 0%, #ffb300 100%);
  color: #1a1a1a;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 20px;
  flex-wrap: wrap;
}
.cta__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 6px; }
.cta__text { font-size: 16px; opacity: 0.9; max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Страничный hero ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(255, 138, 0, 0.15), transparent 60%),
    linear-gradient(180deg, #191920, var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 56px 0 44px;
}
.page-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.page-hero__text { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ---------- Услуги (детально) ---------- */
.services { display: flex; flex-direction: column; gap: 26px; }
.service {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  scroll-margin-top: 90px;
}
.service__img {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  min-height: 220px;
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__title { font-size: 22px; margin-bottom: 10px; }
.service__text { color: var(--muted); margin-bottom: 14px; }
.service__list { margin-bottom: 20px; display: grid; gap: 6px; }
.service__list li { padding-left: 22px; position: relative; font-size: 15px; }
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Прайс ---------- */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.price-table th {
  text-align: left;
  padding: 15px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:nth-child(3) { font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.price-table__free { color: var(--green) !important; }
.price-note {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  max-width: 860px;
}

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.contacts__info { display: grid; gap: 16px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-card__title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.contact-card__value { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
a.contact-card__value:hover { color: var(--accent); }
.contact-card__note { color: var(--muted); font-size: 14px; }

.contacts__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  scroll-margin-top: 90px;
}
.contacts__form-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.contacts__form-subtitle { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: grid; gap: 6px; }
.form__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form__input::placeholder { color: #6a6a72; }
.form__input:focus { outline: none; border-color: var(--accent); }
.form__input--textarea { resize: vertical; min-height: 96px; }
.form__input.is-error { border-color: var(--red); }
.form__footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__privacy { font-size: 12px; color: #6a6a72; max-width: 260px; }
.form__status { min-height: 22px; font-size: 15px; font-weight: 600; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: var(--red); }

/* ---------- Карта ---------- */
.map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map iframe { border: 0; filter: grayscale(0.2) contrast(1.02); }

/* ---------- Подвал ---------- */
.footer {
  background: #0d0d10;
  border-top: 1px solid var(--border);
  padding-top: 52px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.logo--footer { margin-bottom: 14px; }
.footer__about { color: var(--muted); font-size: 15px; max-width: 340px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__title { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.footer__col a:hover { color: var(--accent); }
.footer__col p { color: var(--muted); font-size: 15px; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: #6a6a72;
  font-size: 14px;
}

/* ---------- Плавающие кнопки ---------- */
.float-btns {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btns__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), filter var(--transition);
}
.float-btns__btn:hover { transform: scale(1.1); filter: brightness(1.08); }
.float-btns__btn--max { background: #6c4bff; color: #fff; font-size: 11px; }
.float-btns__btn--tg { background: #2aabee; color: #04202f; }
.float-btns__btn--phone { background: var(--accent); color: #1a1a1a; font-size: 20px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery--preview { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 260px 1fr; }
  .contacts { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(18, 18, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 12px 14px; font-size: 16px; }
  .header__phone { display: none; }
  .burger { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; }
  .service__img { min-height: 200px; }

  .price-table-wrap { overflow-x: visible; border: none; background: none; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .price-table td { border-bottom: none; padding: 2px 0; font-size: 15px; }
  .price-table td:first-child { font-weight: 600; margin-bottom: 4px; }
  .price-table td:nth-child(2) { color: var(--muted); font-size: 13px; display: inline; }
  .price-table td:nth-child(2)::after { content: " — "; }
  .price-table td:nth-child(3) { display: inline; }
  .price-table tr:last-child { margin-bottom: 0; }
}

@media (max-width: 560px) {
  .header__inner { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
  .btn--max { display: none; }
  .hero__inner { padding: 56px 20px 52px; }
  .hero__facts { gap: 10px 22px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery--preview { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .cta__inner { padding: 36px 20px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
