/* ============================================================
   Почистить снег — стили лендинга
   Современный, холодная зимняя палитра + тёплый оранжевый CTA.
   Без внешних библиотек и шрифтов (скорость и SEO).
   ============================================================ */

:root {
  --bg: #f5f9fd;
  --surface: #ffffff;
  --ink: #10263c;
  --muted: #5c6d7d;
  --line: #dfe9f2;
  --brand: #0e4d92;
  --brand-2: #09365f;
  --ice: #eaf4fd;
  --accent: #ff7a1a;
  --accent-dark: #e86a06;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 38, 60, 0.08);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.section { padding: 64px 0; }

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-title p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }

.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn-line { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-2);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: 0 0 auto; }
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { background: var(--ice); text-decoration: none; }

.header-phone { font-weight: 800; color: var(--brand-2); text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: none; color: var(--brand); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 1;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 30px rgba(16, 38, 60, 0.1);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, #09365f 0%, #0e4d92 60%, #12599f 100%);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 54, 95, 0.9) 0%, rgba(9, 54, 95, 0.5) 52%, rgba(10, 61, 110, 0.12) 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0.4;
}
.hero-inner {
  position: relative;
  padding: 90px 0 110px;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.hero h1 { max-width: 760px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero h1 .accent { color: #ffb27a; }
.hero .lead {
  max-width: 620px;
  font-size: 19px;
  color: #dcecfa;
  margin: 0 0 32px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}
.hero-badges svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Услуги ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #eef4fb; padding: 10px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.card-body .price { font-weight: 800; color: var(--brand); font-size: 18px; }
.card-body .price small { font-weight: 600; color: var(--muted); font-size: 13px; }

.service-note {
  margin-top: 26px;
  background: var(--ice);
  border: 1px solid #cfe4f7;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.service-note svg { flex: 0 0 auto; }
.service-note b { display: block; margin-bottom: 4px; }
.service-note p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Как работаем ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Цены ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}
.price-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }
.price-row .name { font-weight: 600; }
.price-row .name small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.price-row .val { font-weight: 800; color: var(--brand); white-space: nowrap; }

.sub-card {
  background: var(--brand-2);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.sub-card h3 { margin-top: 0; }
.sub-card ul { margin: 14px 0 22px; padding-left: 20px; }
.sub-card li { margin-bottom: 8px; }
.sub-card .price { font-size: 28px; font-weight: 800; display: block; margin-bottom: 18px; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- Почему мы ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.why .ico { margin-bottom: 10px; color: var(--brand); }
.why .ico svg { width: 28px; height: 28px; }
.why h3 { margin: 0 0 6px; font-size: 1.05rem; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Зона работы ---------- */
.zone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 30px; margin-top: 6px; }
.zone-grid ul { margin: 0; padding-left: 20px; color: var(--muted); }
.zone-grid li { margin-bottom: 6px; }
.zone-grid b { color: var(--ink); }

/* ---------- Статьи ---------- */
.article-card { display: flex; flex-direction: column; }
.article-card time { color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 12px; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 0 18px; color: var(--muted); max-width: 90ch; }

/* ---------- Заявка ---------- */
.cta-section { background: linear-gradient(180deg, #0a335f, #0e4d92); color: #fff; }
.cta-section .section-title p { color: #bcd8ef; }

.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.contact-item .ico svg { width: 24px; height: 24px; }
.contact-item a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-item small { display: block; color: #bcd8ef; }

.form-panel { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(6, 34, 63, 0.35); }
.form-panel h3 { margin-top: 0; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 77, 146, 0.12);
}
.field textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.consent { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; }
.consent input { margin-top: 3px; }

.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .done-ico { font-size: 44px; }
.form-success h4 { font-size: 20px; margin: 10px 0 6px; }
.form-success p { color: var(--muted); margin: 0 0 20px; }
.form-success .btn { margin: 4px 6px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--brand-2); color: #c9dcef; font-size: 15px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 48px 20px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #8fb3d6; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9dcef; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 26px;
  font-size: 13.5px;
  color: #8fb3d6;
}

/* ---------- Страницы статей и политики ---------- */
.page-hero { padding: 44px 0 20px; }
.page-hero .crumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.article-body { max-width: 760px; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 1.45rem; margin-top: 30px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body .adv {
  background: var(--ice);
  border: 1px solid #cfe4f7;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.prose { max-width: 760px; }

/* ---------- Утилиты ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .form-wrap, .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 56px; padding-bottom: 70px; }
  .section { padding: 46px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
