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

:root {
  --navy: #12263f;
  --navy-soft: #2c4258;
  --orange: #e8730c;
  --orange-dark: #c95f06;
  --bg: #ffffff;
  --bg-alt: #f1f5fa;
  --text: #33475b;
  --border: #e3e8ef;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Шапка ===== */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 38, 63, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.98rem;
}

.brand__mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  background: var(--orange);
  flex-shrink: 0;
}

.topbar__note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===== HERO — ровно на один экран ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* строго высота видимой части телефона */
  min-height: 560px; /* защита от совсем маленьких экранов */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 4rem;
  color: #ffffff;
  background-color: #12263f;
  background-image: url("https://images.unsplash.com/photo-1509840841025-9088ba78a826?auto=format&fit=crop&w=1600&q=75");
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(18, 38, 63, 0.88) 0%,
    rgba(18, 38, 63, 0.60) 45%,
    rgba(18, 38, 63, 0.92) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -3rem;
  right: -5rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(232, 115, 12, 0.28);
  filter: blur(70px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdb974;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(232, 115, 12, 0.20);
  border: 1px solid rgba(253, 185, 116, 0.35);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(1.75rem, 7vw, 3.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 32rem;
  margin: 0 auto 1.6rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  text-wrap: pretty;
}

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  min-height: 3.6rem;
  padding: 1rem 1.75rem;
  font-family: "Poppins", "DM Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #f59426 0%, #d5680a 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(232, 115, 12, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.cta:hover {
  background: linear-gradient(180deg, #ff9d34 0%, #b95707 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 38px rgba(232, 115, 12, 0.58),
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    0 6px 18px rgba(232, 115, 12, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(232, 115, 12, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow:
      0 16px 40px rgba(232, 115, 12, 0.65),
      0 4px 12px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

/* ===== Стрелка "листайте вниз" ===== */
.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint__arrow {
  width: 1rem;
  height: 1rem;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Секции ===== */
.section {
  padding: 3.5rem 0;
  position: relative;
}

.section--alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-size: clamp(1.4rem, 5vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ===== Шаги ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(18, 38, 63, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18, 38, 63, 0.10);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #1b3454 0%, #12263f 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.92rem;
  text-wrap: pretty;
}

/* ===== Услуги ===== */
.services {
  list-style: none;
  max-width: 38rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.services li {
  position: relative;
  padding: 0.95rem 1.25rem 0.95rem 2.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--navy-soft);
  box-shadow: 0 2px 10px rgba(18, 38, 63, 0.04);
  text-wrap: pretty;
}

.services li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 115, 12, 0.15);
}

/* ===== Доверие ===== */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust__card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 14px 14px;
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(18, 38, 63, 0.05);
}

.trust__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.trust__text {
  font-size: 0.92rem;
  text-wrap: pretty;
}

/* ===== Футер ===== */
.footer {
  background: linear-gradient(180deg, #12263f 0%, #0d1c30 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 2rem;
}

.footer__disclaimer {
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
  text-align: center;
  text-wrap: pretty;
}

.footer__copy {
  font-size: 0.76rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ================================
   МОБИЛЬНЫЕ (планшет и меньше)
   ================================ */
@media (max-width: 960px) {
  .steps,
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   МОБИЛЬНЫЕ (телефон)
   ================================ */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  /* HERO под мобильный — строго 1 экран */
  .hero {
    padding: 4.5rem 1rem 4rem;
    background-position: center 30%;
  }

  .hero__inner {
    padding: 0 0.25rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.85rem;
  }

  .hero__title {
    line-height: 1.18;
    margin-bottom: 0.85rem;
  }

  .hero__subtitle {
    line-height: 1.5;
    margin-bottom: 1.4rem;
  }

   .cta {
    max-width: 100%;
    font-size: 0.98rem;
    padding: 1rem 1.25rem;
    min-height: 3.5rem;
    letter-spacing: 0.05em;
  }

  .hero__trust {
    margin-top: 1rem;
    line-height: 1.5;
  }

  .scroll-hint {
    bottom: 0.9rem;
    font-size: 0.66rem;
  }

  /* Блоки контента */
  .section {
    padding: 2.75rem 0;
  }

  .section__title {
    margin-bottom: 1.75rem;
  }

  .steps,
  .trust {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .step,
  .trust__card {
    padding: 1.4rem 1.2rem;
  }

  .services li {
    padding: 0.9rem 1.1rem 0.9rem 2.6rem;
    font-size: 0.93rem;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer__disclaimer {
    font-size: 0.76rem;
    line-height: 1.6;
  }
}

/* Совсем маленькие экраны */
@media (max-width: 380px) {
  .container {
    padding: 0 0.85rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .topbar__note {
    font-size: 0.72rem;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .cta {
    font-size: 0.98rem;
  }

  .hero__trust {
    font-size: 0.72rem;
  }
}

/* Уменьшенная анимация */
@media (prefers-reduced-motion: reduce) {
  .cta, .step { transition: none; }
  .cta:hover, .step:hover { transform: none; }
  .scroll-hint { animation: none; }
}

/* Печать */
@media print {
  .cta, .topbar, .footer, .scroll-hint { display: none; }
  .hero { background: none; color: #000; padding: 2rem 0; height: auto; min-height: auto; }
  .hero::before, .hero::after { display: none; }
  .hero__title, .hero__subtitle { color: #000; text-shadow: none; }
}