:root {
  --navy: #15213E;
  --orange: #F07F32;
  --bg: #F3F5F9;
  --text: #1E2433;
  --muted: #5A6375;
  --line: #DDE2EB;
  --peach: #FEF1E7;
  --on-navy: #D6DBE6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 7.5vw, 48px); }
h2 { font-size: clamp(24px, 5.5vw, 32px); }
h3 { font-size: 18px; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Верхняя полоса */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.top__in { display: flex; align-items: center; gap: 8px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { color: var(--orange); }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang > * { padding: 6px 9px; text-decoration: none; }
.lang [aria-current] { background: #fff; color: var(--navy); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--orange); border-radius: 12px;
  background: var(--orange); color: #fff;
  font-size: 17px; font-weight: 700; text-align: center; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, .contact:focus-visible, .lang a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn--sm { min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* Первый экран */
.hero { background: var(--navy); color: #fff; padding: 36px 0 48px; }
.lead { font-size: clamp(18px, 4.6vw, 21px); color: var(--on-navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--on-navy); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.45em;
  width: 12px; height: 7px;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Мини-разбор */
.free { padding: 32px 0 8px; }
.free__box { background: var(--peach); border-left: 5px solid var(--orange); border-radius: 12px; padding: 24px 20px; }
.free__box p { max-width: 640px; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0 !important; }

/* Услуги */
.sec { padding: 40px 0; }
.sec--bg { background: var(--bg); }
.cards { display: grid; gap: 12px; margin-bottom: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card__head { margin-bottom: 8px; }
.card p { margin: 0 0 8px; }
.price { font-weight: 800; color: var(--navy); margin: 2px 0 0 !important; }
.price small { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.nw { white-space: nowrap; }
.term { font-size: 15px; color: var(--muted); margin: 0 !important; }

/* Пакет */
.pack { display: grid; gap: 16px; background: var(--navy); color: #fff; border-radius: 14px; padding: 24px 20px; }
.pack h2 { font-size: 22px; margin-bottom: 6px; }
.pack p { color: var(--on-navy); margin: 0; }
.pack__price { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--orange); white-space: nowrap; }
.pack__price small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: #AEB6C6; }

/* Как работаем */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; counter-reset: step; }
.steps li { background: var(--bg); border-radius: 12px; padding: 16px 18px; counter-increment: step; }
.steps b { display: block; margin-bottom: 4px; }
.steps b::before { content: counter(step) ". "; color: var(--orange); }
.small { font-size: 15px; color: var(--muted); }

/* Кто */
.who { max-width: 680px; }
.who h3 { font-size: 20px; margin-bottom: 8px; }

/* Контакты */
.contacts { display: grid; gap: 10px; max-width: 520px; margin-top: 16px; }
.contact {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 62px; padding: 10px 18px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none;
}
.contact span { font-size: 13px; color: var(--muted); }
.contact b { font-size: 18px; overflow-wrap: anywhere; }
.contact:hover { border-color: var(--orange); }
.contact--wa { background: var(--orange); border-color: var(--orange); color: #fff; }
.contact--wa span { color: #fff; opacity: 0.85; }

.foot { background: var(--navy); color: #AEB6C6; font-size: 14px; padding: 20px 0; }

/* Узкие телефоны */
@media (max-width: 380px) {
  .brand { font-size: 16px; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .lang > * { padding: 5px 7px; }
  .btn--sm { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .actions .btn, .free .btn, .pack .btn { width: 100%; }
}

/* Планшет и компьютер */
@media (min-width: 560px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .pack { grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 28px; }
  .hero { padding: 64px 0 72px; }
  .sec { padding: 56px 0; }
}
@media (min-width: 900px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
