/*
  СТИЛИ. Для нового клиента меняйте только переменные в :root ниже.
*/
:root {
  --accent: #2563eb;        /* главный цвет */
  --accent-dark: #1d4ed8;   /* цвет при наведении */
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe3ef;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 2rem; font-weight: 800; }
h1 span { color: var(--accent); }
h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
a { color: var(--accent); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 680px; }
.section { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Кнопки */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  font: inherit; font-weight: 700; padding: 14px 24px; border-radius: 12px;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn--small { padding: 8px 14px; font-size: .9rem; }
.btn--block { display: block; width: 100%; text-align: center; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.header__phone { display: none; font-weight: 600; text-decoration: none; color: var(--text); }

/* Hero */
.hero { padding: 48px 0; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero__lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
.benefits { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.benefits li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); }
.benefits strong { display: block; color: var(--text); }

/* Калькулятор */
.calc { display: grid; gap: 20px; }
.calc__form, .calc__result {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="number"], input[type="text"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text);
}
input[aria-invalid="true"] { border-color: #dc2626; }
.area-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 8px 0 16px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.calc__label { margin: 0; color: var(--muted); }
.calc__total { font-size: 2.4rem; font-weight: 800; margin: 4px 0; color: var(--accent); }
.calc__perm2 { margin: 0 0 12px; color: var(--muted); }
.breakdown { list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--border); }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.note { font-size: .9rem; color: var(--muted); }

/* Этапы */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; border: 1px solid var(--border); color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; color: var(--text); }

/* Галерея */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { aspect-ratio: 4/3; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.g1 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.g2 { background: linear-gradient(135deg, #f472b6, #fb923c); }
.g3 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.g4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.g5 { background: linear-gradient(135deg, #64748b, #0ea5e9); }
.g6 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

/* FAQ */
.faq { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* Форма заявки */
.lead-sub { color: var(--muted); margin-top: -8px; }
.lead { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; margin: 0 0 12px; font-weight: 600; }
.form-msg.ok { color: #15803d; }
.form-msg.err { color: #dc2626; }

/* Подвал */
.footer { background: #0f172a; color: #cbd5e1; padding: 32px 0 90px; font-size: .95rem; }
.footer a { color: #fff; }
.footer__row { display: grid; gap: 16px; }

/* Липкая кнопка звонка на мобильном */
.call-fab {
  position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 20;
  background: #16a34a; color: #fff; text-align: center; text-decoration: none;
  font-weight: 700; padding: 14px; border-radius: 14px; box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  .header__phone { display: inline; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 64px 16px 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__row { grid-template-columns: 2fr 1fr 1fr; }
  .footer { padding-bottom: 32px; }
  .call-fab { display: none; }
}
