:root {
  --navy: #0d2b55;
  --navy-2: #1a4a8a;
  --sea: #1e6fd9;
  --brand: #1d3a6e;
  --accent: #1e6fd9;
  --accent-2: #1659b8;
  --ink: #0f1b2a;
  --muted: #5a6b7d;
  --line: #e3e9f0;
  --soft: #f3f7fb;
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); margin-bottom: .75em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(30,111,217,.35); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--2gis { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 2px 8px rgba(13,43,85,.06); }
.btn--2gis:hover { border-color: #19aa1e; }
.btn--wa { border: 0; border-radius: 16px; color: #fff; text-shadow: 0 1px 1px rgba(0,80,20,.25); background: linear-gradient(180deg, #61fd7d 0%, #25d366 55%, #1fb855 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.08), 0 6px 16px rgba(37,211,102,.35); }
.btn--wa svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,80,20,.25)); }
.btn--wa:hover { background: linear-gradient(180deg, #6bff86 0%, #22c55e 55%, #1aa84c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.08), 0 10px 22px rgba(37,211,102,.45); }
.btn--wa:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,.12); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; font: 400 23px/1 "PT Sans", Manrope, sans-serif; white-space: nowrap; }
.brand b { font-weight: 700; }
.brand img { width: 50px; height: 44px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .header__phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--sea); }
.header__phone { white-space: nowrap; color: var(--navy); font-weight: 800; }
.lang { display: flex; margin-left: -16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.lang a { padding: 8px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--sea); }
.lang a[aria-current] { background: var(--navy); color: #fff; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,43,85,.94) 0%, rgba(13,43,85,.82) 42%, rgba(13,43,85,.25) 100%); }
.hero__body { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; width: 100%; }
.hero h1 { max-width: 15ch; }
.hero .eyebrow { color: #7fd3ff; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 38ch; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Facts */
.facts { background: var(--navy); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid div { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.facts__grid div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.facts span { font-size: 14px; color: rgba(255,255,255,.7); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section--dark .eyebrow { color: #7fd3ff; }
.section--dark p { color: rgba(255,255,255,.85); }
.section--photo { position: relative; overflow: hidden; }
.section--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,43,85,.93) 0%, rgba(13,43,85,.82) 50%, rgba(13,43,85,.7) 100%); }
.section--photo > .wrap { position: relative; z-index: 2; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #c9d8e8; box-shadow: 0 12px 32px rgba(13,43,85,.08); transform: translateY(-2px); }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #eaf3fe; stroke: var(--sea); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 16px 18px 16px 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.section--dark .checklist li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; overflow: hidden; min-height: 280px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #fff 30%, #eef5fe 100%); }
.steps li > :not(img), .steps li::before { position: relative; z-index: 1; }
.steps img { position: absolute; z-index: 0; right: -14px; bottom: -10px; width: 92%; height: auto; opacity: .3; pointer-events: none; }
.steps li::before { content: "0" counter(s); display: block; font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 16px; }

/* Clients */
.clients { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.clients li { display: flex; align-items: center; justify-content: center; height: 112px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.clients li:hover { border-color: #c9d6e3; box-shadow: 0 6px 20px rgba(13,43,85,.07); }
.clients img { display: block; max-width: 100%; height: auto; }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .clients { grid-template-columns: repeat(2, 1fr); gap: 8px; } .clients li { height: 84px; padding: 12px; } .clients img { zoom: .7; } }

/* Form + contacts */
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.form h2 { margin: 0; }
.form__note { color: var(--muted); font-size: 15px; margin: -4px 0 4px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #cfd9e4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.form ::placeholder { color: #93a1b0; opacity: 1; }
.form .opt { font-weight: 400; color: var(--muted); }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/18px no-repeat;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(30,111,217,.2); }
.form textarea { resize: vertical; }
.form .btn { margin-top: 4px; }
.contacts dl { margin: 0 0 28px; display: grid; gap: 4px; }
.contacts dt { font-size: 14px; color: var(--muted); margin-top: 14px; }
.contacts dd { margin: 0; font-size: 19px; font-weight: 700; }
.contacts dd a { color: var(--navy); text-decoration: none; }
.contacts dd a:hover { color: var(--sea); }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px;  align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 8px; color: #fff; font: 400 18px/1 "PT Sans", Manrope, sans-serif; }
.footer__brand b { font-weight: 700; }

/* Mobile bar */
.mobilebar { display: none; }

/* Узкие телефоны: номер есть в нижней панели «Позвонить», в шапке оставляем логотип и язык */
@media (max-width: 480px) {
  .header__phone { display: none; }
  .lang { margin-left: auto !important; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__grid div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .wrap { padding: 0 16px; }
  .header__row { height: 60px; }
  .brand { font-size: 20px; }
  .brand img { width: 43px; height: 38px; }
  .header__phone { font-size: 14px; }
  .header__row { gap: 16px; }
  .lang { margin-left: -8px; }
  .lang a { padding: 6px 8px; }
  .hero { min-height: 0; }
  .hero__bg { object-position: 25% center; }
  .hero::before { background: linear-gradient(180deg, rgba(13,43,85,.75) 0%, rgba(13,43,85,.92) 100%); }
  .hero__body { padding-top: 48px; padding-bottom: 48px; }
  .hero__cta .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 220px; }
  .steps img { width: 70%; }
  .facts__grid div { padding: 20px 12px 20px 0; }
  .facts__grid div:nth-child(even) { padding-left: 12px; }
  .facts b { font-size: 21px; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--navy); color: var(--navy); }
  .mobilebar .mobilebar__wa { background: #25d366; border-color: #25d366; color: #fff; }
  .mobilebar svg { width: 20px; height: 20px; }
}
