:root {
  --bg: #ffffff;
  --bg-muted: #f4f6fa;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #5b6475;
  --accent: #ff5a1f;
  --accent-dark: #e14710;
  --border: #e3e7ef;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
.accent { color: var(--accent); }

/* Dev banner */
.dev-banner {
  padding: 8px 16px; text-align: center;
  background: #fde047; color: #422006;
  font-size: .9rem; font-weight: 600;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: currentColor; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 90, 31, .18), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; }
.badge {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 90, 31, .15); color: #ffb08f;
  font-weight: 600; font-size: .9rem;
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 1.75rem; color: var(--accent); }
.hero__facts span { color: #94a3b8; font-size: .95rem; }

/* Card / form */
.card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__title { font-size: 1.5rem; margin: 0; }
.form__sub { color: var(--text-muted); margin: 0 0 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input[type="text"], .form input[type="tel"], .form input[type="number"] {
  font: inherit; font-weight: 400; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-muted);
  transition: border-color .2s, background .2s;
}
.form input:focus { outline: none; border-color: var(--accent); background: #fff; }
.form input.is-invalid { border-color: #dc2626; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--text-muted); }
.form__status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form__status.is-ok { color: #16a34a; }
.form__status.is-error { color: #dc2626; }

/* Sections */
.section { padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.25rem); text-align: center; margin-bottom: 48px; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(255, 90, 31, .12); color: var(--accent);
  font-size: 1.5rem; font-weight: 800;
}
.feature p { color: var(--text-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent); font-weight: 800; font-size: 1.15rem;
}
.step p { color: #94a3b8; margin: 0; }

.tag { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-muted); font-weight: 600; font-size: 1.05rem; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 40px; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, #fff1eb, #ffe2d6);
}
.cta h3 { margin-bottom: .25em; }
.cta p { margin: 0; color: var(--text-muted); }

.faq { background: #fff; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 24px 20px; margin: 0; color: var(--text-muted); }

.final { text-align: center; padding: 56px 32px; background: var(--bg-dark); color: #fff; }
.final p { color: #94a3b8; }
.final__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
.footer { background: var(--bg-muted); padding: 40px 0; color: var(--text-muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer p { margin: 8px 0 0; }
.logo--footer { color: var(--text); }
.footer__contacts { display: flex; flex-direction: column; gap: 6px; }
.footer__contacts a { text-decoration: none; font-weight: 600; color: var(--text); }
.footer__copy { width: 100%; }

.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 20;
  width: 58px; height: 58px; border-radius: 50%; place-items: center;
  background: var(--accent); box-shadow: var(--shadow); font-size: 1.5rem; text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
  .header__phone { display: none; }
  .fab { display: grid; }
  .card { padding: 24px 20px; }
  .hero__facts { gap: 20px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
