:root {
  --primary: #E63946;
  --secondary: #1D3557;
  --dark: #0A0E14;
  --text: #2B2D42;
  --muted: #6C757D;
  --gray: #F8F9FA;
  --border: #E5E7EB;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ИДЕАЛЬНЫЙ КОНТЕЙНЕР (Одна линия) */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 800px; }

/* ТИПОГРАФИЯ */
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
p { font-size: 16px; color: var(--muted); margin-bottom: 20px; }
.text-center { text-align: center; }

/* СЕКЦИИ */
.section { padding: 80px 0; position: relative; z-index: 10; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--secondary); color: #fff; }
.section-dark h2, .section-dark p { color: #fff; }
.section-head { margin-bottom: 50px; }
.section-head p { max-width: 600px; margin: 0 auto; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  color: var(--primary); background: rgba(230,57,70,0.1);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; letter-spacing: 1px;
}
.tag.light { color: #fff; background: rgba(255,255,255,0.1); }

/* КНОПКИ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-align: center; cursor: pointer;
  transition: all 0.3s ease; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(230,57,70,0.3); }
.btn-primary:hover { background: #C1121F; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); height: 80px; display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--secondary); line-height: 1; letter-spacing: 1px; }
.logo-sub { font-size: 10px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--primary); }
.header-contacts { display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 20px; }
.h-phone { font-size: 16px; font-weight: 800; color: var(--secondary); }
.h-email { font-size: 12px; color: var(--muted); }

/* HERO */
.hero {
  padding: 100px 0; background: linear-gradient(135deg, #0A0E14 0%, #1D3557 100%);
  color: #fff; position: relative; z-index: 10;
}
.hero h1 span { color: var(--primary); }
.hero .subtitle { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 30px; font-size: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; box-shadow: 0 0 10px #4ADE80; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 30px; }
.hero-features { display: flex; gap: 24px; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.7); }

/* СЕТКИ (Идеальное выравнивание) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.align-center { align-items: center; }

/* КАРТОЧКИ */
.card {
  background: #fff; padding: 30px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* КАЛЬКУЛЯТОР */
.price-box {
  display: inline-flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.1); padding: 12px 24px; border-radius: 12px; margin-bottom: 20px;
}
.price { font-size: 28px; font-weight: 800; color: var(--primary); }
.calc-img { max-width: 100%; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* КЛИЕНТЫ */
.clients-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.client-logo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  width: 220px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq-question {
  width: 100%; text-align: left; padding: 20px; font-size: 16px; font-weight: 600; color: var(--secondary);
  display: flex; justify-content: space-between; align-items: center; background: none; border: none; cursor: pointer;
}
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease; }
.faq-answer p { padding: 0 20px 20px; margin: 0; }
.faq-open .faq-answer { max-height: 200px; }

/* КОНТАКТЫ И ФОРМА */
.contact-list li { margin-bottom: 15px; font-size: 16px; }
.contact-list a { color: var(--primary); font-weight: 600; }
.form-wrap { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.form-wrap input, .form-wrap textarea {
  width: 100%; padding: 14px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px;
}
.form-wrap input:focus, .form-wrap textarea:focus { outline: none; border-color: var(--primary); }
.policy { font-size: 12px; color: var(--muted); text-align: center; margin-top: 15px; }
.policy a { color: var(--primary); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 20px; }

/* FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 0 30px; position: relative; z-index: 10; }
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-license { margin: 20px 0; }
.footer-license a { color: var(--primary); font-weight: 600; }
.copy { font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; }

/* ДЫМ (Фон) */
#smoke-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav, .header-contacts { display: none; }
  .hero { padding: 60px 0; }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-features { flex-direction: column; gap: 10px; }
  .form-wrap { padding: 25px; }
}

/* ============ NORMATIVE DOCUMENTS ============ */
.docs-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.doc-item { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  overflow: hidden;
  transition: all 0.3s ease;
}
.doc-item:hover { border-color: var(--primary); }
.doc-question {
  width: 100%; 
  text-align: left; 
  padding: 20px; 
  font-size: 17px; 
  font-weight: 600;
  color: var(--secondary); 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  background: none; 
  border: none; 
  cursor: pointer;
  transition: color 0.3s;
}
.doc-question:hover { color: var(--primary); }
.doc-icon { 
  font-size: 24px; 
  color: var(--primary); 
  transition: transform 0.3s; 
  font-weight: 300;
}
.doc-open .doc-icon { transform: rotate(45deg); }
.doc-answer { 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.4s ease; 
}
.doc-open .doc-answer { max-height: 600px; }
.doc-links { 
  list-style: none; 
  padding: 0 20px 20px; 
  margin: 0;
}
.doc-links li { 
  padding: 14px 0; 
  border-top: 1px solid var(--border); 
}
.doc-links li:first-child { border-top: none; padding-top: 0; }
.doc-links strong { 
  display: block; 
  margin-bottom: 6px; 
  color: var(--secondary); 
  font-size: 15px;
  line-height: 1.4;
}
.doc-links a { 
  color: var(--primary); 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 14px; 
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-links a:hover { text-decoration: underline; }
