/* =====================================================================
   ООО «ПромСпецСервис» — стили сайта
   Палитра: глубокий индустриальный синий + пламенный акцент.
   ===================================================================== */

:root {
  --ink:        #0b1220;
  --ink-2:      #121c30;
  --ink-3:      #1b2942;
  --line:       #e4e8f0;
  --line-dark:  #26344f;
  --paper:      #ffffff;
  --paper-2:    #f5f7fb;
  --text:       #16203a;
  --text-2:     #5a6785;
  --text-inv:   #eaf0fb;
  --text-inv-2: #9dabc7;

  --flame:      #ff6a2b;
  --flame-2:    #ff8f4d;
  --blue:       #2f6bff;
  --blue-soft:  #eaf0ff;
  --good:       #17a673;
  --bad:        #dc3545;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --shadow:    0 2px 8px rgba(11,18,32,.05), 0 12px 32px rgba(11,18,32,.07);
  --shadow-lg: 0 8px 24px rgba(11,18,32,.09), 0 32px 64px rgba(11,18,32,.12);

  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }

/* ── Кнопки ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px;
  font: inherit; font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--flame), var(--flame-2));
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,106,43,.28);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,106,43,.36); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sm    { padding: 9px 18px; font-size: .92rem; }
.btn--lg    { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--ghost {
  background: transparent; color: inherit;
  border: 1.5px solid currentColor; box-shadow: none;
}
.btn--ghost:hover { box-shadow: none; background: rgba(255,255,255,.08); }

/* ── Шапка ────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #fff; border-radius: 11px;
  background: linear-gradient(140deg, var(--ink-3), var(--ink));
}
.logo__mark svg { width: 24px; height: 24px; color: var(--flame); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.logo__text small { font-size: .72rem; color: var(--text-2); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--text-2);
  transition: color .15s;
}
.nav a:hover { color: var(--flame); }

.header__cta { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Главный экран ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  color: var(--text-inv);
  background: radial-gradient(1100px 520px at 12% -10%, #24355a 0%, transparent 60%),
              linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0e1930 100%);
}
.hero__glow {
  position: absolute; right: -180px; top: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,106,43,.34), transparent 66%);
  filter: blur(18px); pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center;
  padding: 84px 20px 92px;
}
.badge {
  display: inline-block; margin-bottom: 20px;
  padding: 7px 15px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--flame-2); background: rgba(255,106,43,.13);
  border: 1px solid rgba(255,106,43,.28);
}
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--flame), var(--flame-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--text-inv-2); max-width: 56ch; }
.section .lead { color: var(--text-2); }
.section--dark .lead { color: var(--text-inv-2); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.hero__facts { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 1.85rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__facts span { font-size: .86rem; color: var(--text-inv-2); }

.hero__card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero__card-top {
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--text-inv-2); margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 4px rgba(23,166,115,.2); }
.hero__card-text { font-size: .95rem; color: var(--text-inv-2); }
.hero__card-text b { color: #fff; }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: .92rem; color: var(--text-inv-2);
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--flame); border-bottom: 2px solid var(--flame);
  transform: rotate(-45deg);
}

/* ── Секции ───────────────────────────────────────────────────────── */
.section { padding: 86px 0; }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--calc { background: var(--paper-2); }

.section__head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--flame);
}
.section__head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.section--dark .section__head p { color: var(--text-inv-2); }

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

.card {
  padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--text-2); font-size: .95rem; }

.feature b { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-inv-2); font-size: .94rem; }

/* ── Шаги процесса ────────────────────────────────────────────────── */
.steps {
  list-style: none; counter-reset: s; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps li {
  counter-increment: s; position: relative;
  padding: 26px 24px 24px; border-radius: var(--r);
  background: var(--paper-2); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font-size: 1.5rem; font-weight: 800; color: var(--flame); letter-spacing: -.03em;
}
.steps b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* ── Калькулятор ──────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }

.calc__form { display: grid; gap: 18px; }

.step {
  margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper);
}
.step legend {
  display: flex; align-items: center; gap: 11px;
  padding: 0 10px 0 0; margin-left: -2px;
  font-size: 1.1rem; font-weight: 700;
}
.step__num {
  display: grid; place-items: center; width: 28px; height: 28px;
  font-size: .85rem; font-weight: 700; color: #fff;
  background: var(--ink); border-radius: 50%;
}
.step__note { margin: 6px 0 18px; font-size: .92rem; color: var(--text-2); }

/* Выбор типа объекта */
.objects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.object input { position: absolute; opacity: 0; pointer-events: none; }
.object__box {
  display: block; height: 100%; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: .15s;
}
.object__box b { display: block; font-size: .98rem; margin-bottom: 4px; }
.object__box span { font-size: .85rem; color: var(--text-2); }
.object__box:hover { border-color: var(--flame-2); }
.object input:checked + .object__box {
  border-color: var(--flame); background: rgba(255,106,43,.06);
  box-shadow: 0 0 0 3px rgba(255,106,43,.1);
}
.object input:focus-visible + .object__box { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Поля */
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: .88rem; font-weight: 600; }
.field__label i { color: var(--flame); font-style: normal; }
.field__hint { font-size: .78rem; color: var(--text-2); line-height: 1.4; }

input[type="text"], input[type="tel"], input[type="email"],
input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
input.invalid, textarea.invalid { border-color: var(--bad); }
textarea { resize: vertical; }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235a6785' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px;
  padding-right: 36px;
}

/* Ползунки */
.ranges { display: grid; gap: 20px; margin-top: 22px; }
.range__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.range output { font-size: 1.05rem; font-weight: 700; color: var(--flame); font-variant-numeric: tabular-nums; }
.range input[type="range"] {
  width: 100%; height: 5px; margin: 0;
  appearance: none; border-radius: 999px; background: var(--line); cursor: pointer;
}
.range input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--flame); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(255,106,43,.45); cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--flame); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(255,106,43,.45); cursor: grab;
}
.range .field__hint { display: block; margin-top: 6px; }

/* Переключатели */
.toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.toggle, .equip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: .92rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: .15s;
}
.toggle:hover, .equip:hover { border-color: var(--flame-2); }
.toggle input, .equip input { width: 18px; height: 18px; margin: 0; accent-color: var(--flame); cursor: pointer; flex-shrink: 0; }
.toggle:has(input:checked), .equip:has(input:checked) {
  border-color: var(--flame); background: rgba(255,106,43,.06);
}

.equipment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.equip span { flex: 1; }
.equip b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }

/* Результат */
.calc__result { position: sticky; top: 94px; }
.result {
  padding: 26px; border-radius: var(--r-lg);
  color: var(--text-inv);
  background: linear-gradient(165deg, var(--ink-2), var(--ink));
  box-shadow: var(--shadow-lg);
}
.result__label {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-inv-2);
}
.result__total {
  margin: 8px 0 4px; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800;
  letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums;
  transition: opacity .15s;
}
.result__total.is-updating { opacity: .45; }
.result__range { font-size: .9rem; color: var(--flame-2); margin-bottom: 20px; font-variant-numeric: tabular-nums; }

.result__toggle {
  width: 100%; padding: 10px; margin-bottom: 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-inv-2);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm); cursor: pointer; transition: .15s;
}
.result__toggle:hover { background: rgba(255,255,255,.11); color: #fff; }

.result__details {
  max-height: 260px; overflow-y: auto; margin-bottom: 16px;
  font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1);
}
.result__details .line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.result__details .line span { color: var(--text-inv-2); }
.result__details .line b { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.result__details .line small { display: block; margin-top: 3px; font-size: .76rem; color: #6d7d9e; }

.result__sum { margin: 0 0 20px; font-size: .9rem; }
.result__sum div { display: flex; justify-content: space-between; padding: 6px 0; }
.result__sum dt { color: var(--text-inv-2); }
.result__sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.result__sum div.is-total {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 1.05rem;
}
.result__sum div.is-total dd { color: var(--flame-2); font-weight: 700; }

.result__note { margin: 16px 0 0; font-size: .74rem; line-height: 1.5; color: #6d7d9e; }

/* Заявка */
.leadbox {
  margin-top: 26px; padding: 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.leadbox__head { max-width: 640px; margin-bottom: 22px; }
.leadbox__head h3 { font-size: 1.35rem; }
.leadbox__head p { margin: 0; color: var(--text-2); font-size: .96rem; }
.leadbox__fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 20px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--flame); flex-shrink: 0; }
.consent a { color: var(--flame); }
.consent--sm { font-size: .8rem; margin-bottom: 14px; }
.section--dark .consent { color: var(--text-inv-2); }

.formstatus { margin: 14px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.formstatus.is-ok  { color: var(--good); }
.formstatus.is-err { color: var(--bad); }
.section--dark .formstatus.is-ok { color: #4ade9e; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 18px 22px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--flame);
  line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--text-2); font-size: .95rem; }

/* ── Контакты ─────────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.contacts__list { display: grid; gap: 14px; margin: 26px 0; }
.contacts__list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.contacts__list dt { font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-inv-2); }
.contacts__list dd { margin: 0; font-weight: 600; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--flame-2); }
.contacts__socials { display: flex; gap: 12px; flex-wrap: wrap; }

.contacts__cta {
  padding: 30px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
}
.contacts__cta p { color: var(--text-inv-2); font-size: .95rem; }
.callback { display: grid; gap: 12px; margin-top: 18px; }
.callback input[type="text"], .callback input[type="tel"] {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff;
}
.callback input::placeholder { color: #7b8aab; }

/* ── Подвал ───────────────────────────────────────────────────────── */
.footer { background: #070d18; color: #7b8aab; padding: 46px 0 40px; font-size: .84rem; }
.footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.footer b { color: var(--text-inv); display: block; margin-bottom: 8px; font-size: .95rem; }
.footer p { margin: 0 0 10px; line-height: 1.6; }
.footer__copy { color: #58678a; }

/* ── Адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px 70px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; gap: 0;
    padding: 12px 20px 20px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .25s; margin: 0;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  /* Логотип + кнопка + бургер не влезают в 375px при штатных отступах */
  .burger { display: flex; width: 36px; flex-shrink: 0; }
  .header__inner { gap: 10px; }
  .header__cta { margin-left: auto; gap: 8px; }
  .header__phone { display: none; }
  .logo__text small { display: none; }
  .logo__text b { font-size: .95rem; }
  .btn--sm { padding: 8px 14px; font-size: .85rem; }

  .section { padding: 60px 0; }
  .hero__facts { gap: 26px; }
  .hero__facts b { font-size: 1.5rem; }
  .grid--3, .grid--4, .steps,
  .objects, .fields, .toggles, .equipment, .leadbox__fields { grid-template-columns: 1fr; }
  .step, .leadbox, .contacts__cta { padding: 20px; }
  .contacts__list div { grid-template-columns: 1fr; gap: 2px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
