:root {
  --clr-bg: #f7f9fc;
  --clr-surface: #ffffff;
  --clr-surface-alt: #eef3fe;
  --clr-text: #1f2937;
  --clr-text-muted: #5b6472;
  --clr-accent: #2f6fed;
  --clr-accent-dark: #1d4fc4;
  --clr-warm: #ff7a50;
  --clr-border: #e1e7f0;
  --clr-bg-alt: #eef3fe;
  --clr-ink-soft: #5b6472;
  --shadow: 0 20px 45px -25px rgba(31, 41, 55, 0.2);
  --radius: 16px;
  --font-head: 'Baloo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--clr-accent-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--clr-border);
  color: var(--clr-text);
}
.btn--ghost:hover { border-color: var(--clr-accent); color: var(--clr-accent-dark); }

.btn--lg { padding: 15px 32px; font-size: 16px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.scrolled { border-color: var(--clr-border); box-shadow: 0 4px 20px -18px rgba(0,0,0,0.3); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.logo__suffix { color: var(--clr-text-muted); font-weight: 500; font-size: 14px; }

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--clr-accent-dark); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header__phone {
  font-weight: 600;
  white-space: nowrap;
  color: var(--clr-accent-dark);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--clr-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 17px;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--clr-accent-dark);
}
.stat__label { font-size: 13px; color: var(--clr-text-muted); max-width: 150px; display: block; }

.hero__card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 48px 36px;
}
.hero__card-inner { text-align: center; }
.hero__card svg { margin: 0 auto 24px; }

.hero__card--photo { padding: 0; overflow: hidden; }
.hero__photo { width: 100%; height: 340px; object-fit: cover; object-position: 50% 15%; display: block; }
.hero__card--photo .hero__card-inner { padding: 32px 36px 40px; }
.hero__card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero__card-text { color: var(--clr-text-muted); font-size: 15px; }

/* Advantages */
.adv-section { padding: 96px 0; background: var(--clr-surface-alt); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.adv {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.adv svg { margin-bottom: 18px; }
.adv h3 { font-size: 19px; margin-bottom: 10px; }
.adv p { color: var(--clr-text-muted); font-size: 15px; }

/* Services */
.services { padding: 96px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.service__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  background: rgba(47, 111, 237, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--clr-text-muted); font-size: 14px; margin-bottom: 18px; }
.service__price { font-weight: 700; color: var(--clr-warm); font-size: 16px; }

/* Price table */
.price { padding: 96px 0; background: var(--clr-surface-alt); }
.price-table {
  max-width: 720px;
  margin: 0 auto;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--clr-border);
  font-size: 15px;
}
.price-row:last-child { border-bottom: none; }
.price-row--head {
  background: var(--clr-surface-alt);
  font-weight: 700;
  font-family: var(--font-head);
}
.price-row span:last-child { font-weight: 600; color: var(--clr-warm); white-space: nowrap; padding-left: 16px; }
.price-note { text-align: center; color: var(--clr-text-muted); font-size: 14px; margin-top: 24px; }

/* Process */
.process { padding: 96px 0; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step__num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--clr-text-muted); }

/* Кому подходит */
.reviews { padding: 96px 0; background: var(--clr-surface-alt); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.review {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  font-style: italic;
  color: var(--clr-text-muted);
}

/* FAQ */
.faq { padding: 96px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 20px; color: var(--clr-accent-dark); }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin-top: 14px; color: var(--clr-text-muted); font-size: 15px; }

/* Lead form */
.lead { padding: 96px 0; background: var(--clr-surface-alt); }
.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead__info h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.lead__info p { color: var(--clr-text-muted); margin-bottom: 24px; }

.form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.form input, .form select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  color: var(--clr-text);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--clr-accent); }

/* Footer */
.footer { background: #16233f; color: #cbd5e8; padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.logo--footer { color: #fff; margin-bottom: 12px; }
.footer__col h4 { font-family: var(--font-head); color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer__col p { margin-bottom: 8px; font-size: 14px; color: #a9b8d6; }
.footer__col a:hover { color: var(--clr-warm); }
.footer__bottom {
  border-top: 1px solid #253258;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7e8db3;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #29a9eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(41, 169, 235, 0.6);
  z-index: 90;
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.06); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Breakpoints ===== */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .adv-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .lead__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .header__phone { display: none; }
  .adv-grid, .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .price-row { font-size: 14px; padding: 14px 18px; }
}

@media (max-width: 380px) {
  .logo__suffix { display: none; }
}
