/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --card: #142136;
  --card-2: #1a2942;
  --border: #22314d;
  --text: #e6edf7;
  --muted: #8fa3c2;
  --brand: #ffb020;
  --brand-2: #ff8a00;
  --accent: #38bdf8;
  --green: #22c55e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

html, body { height: 100%; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #16284a 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#root { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, .82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  cursor: pointer;
  white-space: nowrap;
}
.logo .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  display: grid; place-items: center;
  color: #1a1200; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(255,176,32,.35);
}
.logo b { color: var(--brand); }

nav.main-nav { display: flex; gap: 6px; align-items: center; }
nav.main-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  transition: .18s;
}
nav.main-nav a:hover { color: var(--text); background: var(--card); }
nav.main-nav a.active { color: #1a1200; background: var(--brand); }

.header-phone {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1.2;
}
.header-phone .num { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.header-phone .hint { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.burger {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #1a1200;
  box-shadow: 0 10px 26px rgba(255,138,0,.28);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(255,138,0,.42); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card); }
.btn-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #04210f;
  box-shadow: 0 10px 26px rgba(34,197,94,.25);
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,176,32,.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.badge-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.badge-item .num { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.badge-item .lbl { font-size: .82rem; color: var(--muted); }

/* Hero card / calculator */
.calc-card {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.calc-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.calc-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field select,
.field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .18s;
}
.field select:focus,
.field input:focus { border-color: var(--brand); }

.calc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.calc-total .lbl { color: var(--muted); font-size: .85rem; }
.calc-total .val { font-size: 1.9rem; font-weight: 800; color: var(--brand); }

/* ===== Sections ===== */
section.block { padding: 56px 0; }

.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.5px;
  line-height: 1.2;
}
.section-head p { color: var(--muted); margin-top: 10px; }

/* Cards grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s, border-color .18s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: #31476e; box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255,176,32,.18), rgba(255,138,0,.1));
  border: 1px solid rgba(255,176,32,.25);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; }
.card .price-tag {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--brand);
  font-size: 1.05rem;
}
.card .price-tag span { color: var(--muted); font-weight: 500; font-size: .8rem; }

/* Steps */
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step .n {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: var(--brand);
  color: #1a1200;
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #16284a 0%, #1a1a2e 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 1.6rem; letter-spacing: -.5px; }
.cta-band p { color: var(--muted); margin-top: 6px; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 110px;
  transition: border-color .18s;
}
textarea:focus { border-color: var(--brand); }

.form-note { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ===== Table ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}
.price-table th {
  background: var(--card-2);
  color: var(--muted);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price { color: var(--brand); font-weight: 800; }
.price-table tr:hover td { background: rgba(255,255,255,.02); }

/* ===== Contacts ===== */
.contact-info { display: grid; gap: 16px; }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.contact-line .ic {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.25);
  font-size: 1.2rem;
}
.contact-line .ic.phone { background: rgba(255,176,32,.12); border-color: rgba(255,176,32,.3); }
.contact-line .ic.mail { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }
.contact-line .ic.addr { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.3); }
.contact-line small { color: var(--muted); font-size: .78rem; display: block; }
.contact-line strong { font-size: 1rem; }

/* ===== Footer ===== */
footer {
  margin-top: auto;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h5 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
}

/* ===== Misc ===== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  background: rgba(34,197,94,.14);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
  margin-bottom: 10px;
}

.notice {
  background: rgba(255,176,32,.08);
  border: 1px solid rgba(255,176,32,.25);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffd27a;
  font-size: .9rem;
  margin-top: 20px;
}

.not-found { text-align: center; padding: 100px 0; }
.not-found .big { font-size: 6rem; font-weight: 900; color: var(--brand); line-height: 1; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
main > * { animation: fadeUp .35s ease both; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 720px) {
  .header-inner { height: 64px; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; }
  .burger { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 32px; }
  .hero-badges { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}