/* ============ БАЗА ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Фон стал чуть темнее и «тёплее» — не вырвиглазно белый */
  --bg: #ecebe7;
  --bg-alt: #f3f2ee;
  --dark: #12141d;
  --gray: #6b7280;
  --accent: #ff6b35;
  --accent-2: #ffb800;
  --line: #d9d6d0;
  --card: #ffffff;
  --radius: 20px;

  /* Тени стали заметнее — карточки «отрываются» от фона */
  --shadow:    0 6px 24px rgba(18,20,29,.10);
  --shadow-lg: 0 28px 60px -20px rgba(18,20,29,.28);
  --shadow-card: 0 10px 30px -10px rgba(18,20,29,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============ ШАПКА ============ */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(236, 235, 231, .88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: .3s;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em;
  text-decoration: none; color: inherit;
}

.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}

nav ul { display: flex; gap: 36px; list-style: none; }

nav a {
  text-decoration: none; color: var(--dark);
  font-weight: 500; font-size: .95rem;
  position: relative; transition: .2s;
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: .3s;
}
nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 20px; }

.header-phone {
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--dark); text-decoration: none;
}
.header-phone i { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: .25s;
  font-family: inherit;
}

.btn-accent { background: var(--dark); color: #fff; }
.btn-accent:hover { background: var(--accent); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--dark); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.burger {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--dark);
}

/* ============ ГЕРОЙ ============ */
.hero { padding: 130px 0 80px; position: relative; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  margin-top: 0;
  align-items: center;
}

.hero-title h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-title h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 18px;
  max-width: 520px;
}

.stats { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stat b span { color: var(--accent); }
.stat small { color: var(--gray); font-size: .9rem; }

/* Форма */
.lead-form {
  background: var(--dark);
  color: #fff;
  padding: 36px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.lead-form::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,107,53,.4), transparent 70%);
  border-radius: 50%;
}

.lead-form h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.02em;
  position: relative;
}

.lead-form > p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-bottom: 24px;
}

.field { margin-bottom: 14px; position: relative; }

.field input,
.field select {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: .25s;
}

.field input::placeholder { color: rgba(255,255,255,.45); }
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.1);
}
.field select option { color: #000; }

.lead-form .btn {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 17px;
  font-size: 1rem;
}
.lead-form .btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.lead-form .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============ СЕКЦИИ ============ */
section { padding: 110px 0; }

/* Чередование фонов — секции отличаются друг от друга */
section:nth-of-type(even) { background: var(--bg-alt); }

.section-head { margin-bottom: 56px; }

.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-head .eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-top: 14px;
  max-width: 560px;
}

/* ============ КАЛЬКУЛЯТОР ============ */
.calc-section { background: var(--bg-alt); }

.calc-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(18,20,29,.06);
}

.calc-form { padding: 48px; }

.calc-group { margin-bottom: 28px; }

.calc-group label {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: .95rem;
  margin-bottom: 12px;
}
.calc-group label b { color: var(--accent); }

.range {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  background: var(--line);
  border-radius: 100px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--dark);
  border: 4px solid var(--accent);
  cursor: pointer;
  transition: .2s;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--dark);
  border: 4px solid var(--accent);
  cursor: pointer;
}

.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.chip {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  text-align: left;
  transition: .2s;
  color: var(--dark);
}
.chip:hover { border-color: var(--dark); }
.chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip small {
  display: block;
  font-weight: 500;
  opacity: .6;
  font-size: .78rem;
  margin-top: 2px;
}

.calc-total {
  background: var(--dark);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-total .label {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.calc-total .sum {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 12px 0 6px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-total .hint {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-bottom: 28px;
}
.calc-total .btn { background: #fff; color: var(--dark); }
.calc-total .btn:hover { background: var(--accent); color: #fff; }

/* ============ ПРЕИМУЩЕСТВА ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid rgba(18,20,29,.06);
  padding: 36px 32px;
  border-radius: var(--radius);
  transition: .3s;
  box-shadow: var(--shadow-card);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature .ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,107,53,.14), rgba(255,184,0,.14));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 22px;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature p { color: var(--gray); font-size: .95rem; }

/* ============ ОТЗЫВЫ ============ */
.reviews-section { background: var(--dark); color: #fff; }
.reviews-section .section-head h2 { color: #fff; }
.reviews-section .section-head p { color: rgba(255,255,255,.55); }
.reviews-section .section-head .eyebrow { color: var(--accent); }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 36px;
  border-radius: var(--radius);
  transition: .3s;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.review:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-6px);
}

.review .quote {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}

.review-author { display: flex; align-items: center; gap: 14px; }

.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.review-name { font-weight: 700; font-size: .95rem; }
.review-stars { color: var(--accent-2); font-size: .8rem; margin-top: 2px; }

/* ============ ФУТЕР ============ */
footer {
  background: var(--bg-alt);
  padding: 70px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--dark);
  text-decoration: none;
  font-size: .95rem;
  margin-bottom: 12px;
  transition: .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav ul { display: none; }
  .burger { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .hero { padding: 100px 0 40px; }
  .features { grid-template-columns: 1fr; }
  .calc-form, .calc-total { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { gap: 24px; }
  .stat b { font-size: 1.4rem; }
  .lead-form { padding: 28px; }
}

/* Плавный скролл для якорей с учётом фиксированной шапки */
section[id], div[id] { scroll-margin-top: 100px; }

/* ============ УВЕДОМЛЕНИЯ О ЗАКАЗАХ ============ */
.toast-container {
  position: fixed;
  bottom: 110px;
  left: 28px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 40px 14px 16px;
  box-shadow: 0 16px 40px -8px rgba(18, 20, 29, 0.28);
  border: 1px solid var(--line);
  max-width: 340px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
  position: relative;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-body { flex: 1; min-width: 0; }

.toast-title {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.3;
}
.toast-title strong { font-weight: 700; }

.toast-text {
  font-size: 0.87rem;
  color: var(--gray);
  margin-top: 2px;
  line-height: 1.4;
}

.toast-time {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.toast-close:hover { background: var(--line); color: var(--dark); }

@media (max-width: 640px) {
  .toast-container { left: 16px; right: 16px; bottom: 96px; }
  .toast { max-width: none; }
}