:root {
  --primary: #1663BA;
  --primary-dark: #0E4A8D;
  --accent: #2D89EF;
  --accent-light: #BDE1F4;
  --dark: #191B21;
  --text: #1E1E1E;
  --muted: #66738D;
  --bg-light: #EEF0F2;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(25, 27, 33, 0.12);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img { height: 48px; width: auto; }

.nav { display: flex; gap: 28px; }

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--accent-light); }

.header__cta { display: flex; align-items: center; gap: 16px; }

.header__phone {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.header__phone:hover { color: var(--white); }

/* Slide-in on load: logo from left, phone+CTA from right */
.logo { animation: slideInLeft 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.header__cta { animation: slideInRight 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both; }

@keyframes slideInLeft {
  from { transform: translateX(-120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .header__cta, .hero__img { animation: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 100px;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 14px; }

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

.btn--block { width: 100%; }

/* Hero */
.hero { position: relative; color: var(--white); overflow: hidden; }

.hero__poster {
  position: absolute;
  inset: 0;
  background: url('images/130010.jpg') center/cover no-repeat;
  z-index: -3;
}

.hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.hero__video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 40, 80, 0.66) 0%, rgba(22, 99, 186, 0.45) 60%, rgba(45, 137, 239, 0.14) 100%);
  z-index: -1;
}

.hero__inner {
  padding: 90px 20px 110px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content { max-width: 640px; }

.hero__img {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 448px;
  transform-origin: right center;
  animation: heroSlideInRight 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__img img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: block;
}

@keyframes heroSlideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 32px;
}

.hero h1 span { color: var(--accent-light); }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__perks {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero__perk { display: flex; align-items: center; gap: 12px; font-size: 15px; }

.hero__perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 20px;
}

/* Sections */
.section { padding: 80px 0; }

.section--gray { background: var(--bg-light); }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.section__head h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}

.section__label {
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

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

.reason-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reason-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(25, 27, 33, 0.16); }

.reason-card__icon { font-size: 36px; margin-bottom: 16px; }

.reason-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.reason-card p { color: var(--muted); font-size: 15px; }

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

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.step__num {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: 15px; }

.step__list { margin: 12px 0 0 18px; color: var(--muted); font-size: 14px; }

.step__list li { margin-bottom: 6px; }

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

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.benefit h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.benefit p { color: var(--muted); font-size: 15px; }

/* Form section */
.form-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 90px 0;
}

.form-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.form-intro { text-align: center; margin-bottom: 32px; }

.form-intro__badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.form-intro h2 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.form-intro p { color: var(--muted); }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group label span { color: #D9534F; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D8DDE4;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 137, 239, 0.15);
}

.form-status { margin-top: 14px; text-align: center; font-weight: 600; min-height: 24px; }

.form-status.success { color: #2E8B57; }

.form-status.error { color: #D9534F; }

.form-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13px; }

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card__link {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.contact-card__link:hover { color: var(--primary-dark); }

.contact-card__text { color: var(--text); font-size: 16px; }

/* Footer */
.footer {
  background: var(--dark);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo--footer img { height: 36px; width: auto; opacity: 0.9; }

.footer__copy { color: rgba(255, 255, 255, 0.6); font-size: 13px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

/* Responsive */
@media (max-width: 992px) {
  .reasons-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  .hero__inner { padding: 64px 20px 80px; grid-template-columns: 1fr; gap: 32px; }
  .hero__img { display: none; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .section__head h2 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .form-wrapper { padding: 36px 24px; }
}

@media (max-width: 576px) {
  .reasons-grid, .benefits-grid, .contacts { grid-template-columns: 1fr; }
  .hero__perks { flex-direction: column; gap: 18px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
