:root {
  --primary: #c83e2b;
  --primary-dark: #a32e1e;
  --dark: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  padding-bottom: 70px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка сайта */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  padding: 10px 14px;
  border-radius: 8px;
}

.logo-text strong {
  display: block;
  font-size: 20px;
  color: var(--dark);
  line-height: 1.2;
}

.logo-text span {
  font-size: 14px;
  color: var(--muted);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phones a {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.phones a:hover {
  color: var(--primary);
}

/* Навигация */
.nav {
  background: var(--dark);
  color: var(--white);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
}

.nav-list a {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Первый экран */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
  max-width: 900px;
}

.hero p {
  font-size: 19px;
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card span {
  font-size: 15px;
  color: var(--muted);
}

/* Секции */
.section {
  padding: 54px 0;
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 30px;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 800px;
}

/* Климатический блок */
.climate-box {
  background: #fff7ed;
  border-left: 6px solid var(--primary);
  padding: 28px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.climate-box h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

/* Сетка карточек */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
}

.card ul {
  margin: 14px 0 20px 20px;
}

.card li {
  margin-bottom: 8px;
}

.price-tag {
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
}

.badge-popular {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.badge-warn {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Блок предупреждения / вызова замерщика */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  margin-top: 36px;
}

.cta-banner h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #fbbf24;
}

.cta-banner p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #f8fafc;
}

/* Документы */
.doc-card {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 22px;
  border-radius: var(--radius);
}

.doc-placeholder {
  background: #e2e8f0;
  height: 180px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 14px;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 19px;
  color: var(--dark);
  cursor: pointer;
}

.faq-item p {
  margin-top: 12px;
}

/* Подвал */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 40px 0 30px;
  font-size: 16px;
}

.footer strong {
  color: var(--white);
}

/* Липкая панель на мобильных */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-bar a {
  flex: 1;
  padding: 12px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .mobile-bar {
    display: flex;
  }
}
