:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #1c2634;
  --muted: #5c6a7a;
  --line: #e2e7ee;
  --primary: #1f4e79;
  --primary-dark: #163a5a;
  --accent: #c99a3c;
  --radius: 14px;
  --shadow: 0 16px 40px -20px rgba(28, 38, 52, .35);
  --container: 1160px;
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.header--scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.5);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: .5px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: 17px; }
.logo__text small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link { font-size: 15px; color: var(--text); position: relative; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.header__phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background:
    linear-gradient(115deg, rgba(18,42,68,.94) 0%, rgba(24,60,96,.88) 55%, rgba(31,78,121,.82) 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,154,60,.22), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 720px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 22px;
  color: #f2f5f9;
}
.hero__title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__text {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 32px; font-weight: 800; color: #fff; }
.hero__stats span { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 54px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 16px;
}
.section__subtitle { color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  font-size: 26px;
  border-radius: 12px;
  background: var(--bg-alt);
  margin-bottom: 18px;
}
.card__title { font-size: 18px; margin-bottom: 10px; line-height: 1.35; }
.card__text { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 56px;
  align-items: center;
}
.about__content > p { color: var(--muted); margin-bottom: 20px; }
.checklist { margin-bottom: 30px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.fact strong { display: block; font-size: 30px; font-weight: 800; color: var(--primary); }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.step__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.step__title { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Contacts ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contacts__lead { color: var(--muted); margin-bottom: 30px; }
.contacts__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contacts__label { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.contacts__list a { font-weight: 600; color: var(--primary); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fbfcfe;
  transition: .2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,78,121,.12);
}
.field input.is-error { border-color: #d64545; background: #fff7f7; }
.form__note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form__status { font-size: 14px; margin-top: 12px; font-weight: 600; min-height: 20px; }
.form__status.ok { color: #1f8a4c; }
.form__status.err { color: #d64545; }

/* ---------- Footer ---------- */
.footer {
  background: #101a26;
  color: rgba(255,255,255,.7);
  padding: 34px 0;
  font-size: 14px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__note { color: rgba(255,255,255,.45); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .about__facts { order: -1; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; margin-left: auto; }
  .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); }
  .header__phone { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 130px 0 72px; }
  .hero__actions .btn { flex: 1; }
}

@media (max-width: 520px) {
  .form__row { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 26px; }
  .form { padding: 24px; }
}
