:root {
  --navy: #1b2438;
  --navy-deep: #12192a;
  --blue: #2f5bd8;
  --blue-bright: #3d6eff;
  --purple: #4c46c8;
  --violet-card: #6b4fd8;
  --mint: #c8eadc;
  --ink: #121826;
  --muted: #5c6573;
  --line: #e4e7ee;
  --bg: #f3f5f8;
  --white: #fff;
  --header-h: 76px;
  --radius: 4px;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; text-transform: uppercase; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-bright); }
.btn--phone { background: var(--purple); white-space: nowrap; }
.btn--phone:hover { background: #5b54d6; }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--accent { background: var(--purple); min-width: 220px; }
.btn--wide { width: 100%; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn--tg { background: #2a9ef1; }
.icon-btn--wa { background: #25d366; }
.icon-btn--mail { background: var(--blue); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { text-decoration: none; line-height: 1.05; flex: 0 0 auto; }
.logo__name { display: block; font-size: 22px; font-weight: 800; color: var(--purple); }
.logo__suffix { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav a:hover { color: var(--purple); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; }
.lang select {
  min-height: 34px;
  max-width: 150px;
  border: 0;
  background: var(--white);
  padding: 0 28px 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.lang button {
  border: 0;
  background: transparent;
  min-width: 34px;
  min-height: 28px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}
.lang button.is-on { color: var(--white); background: var(--purple); }
.section-lead {
  max-width: 720px;
  margin: 12px auto 32px;
  color: var(--muted);
  font-size: 16px;
}
.form-card select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd5df;
  border-radius: var(--radius);
  background: var(--white);
  padding: 0 12px;
}
.form-card--dark select { border-color: transparent; }
.license--residence { background: linear-gradient(145deg, #3d348b, #1b2438); }
.offers--residence { background: var(--white); }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  color: var(--white);
  overflow: hidden;
  background: #0c2a7a;
}
.hero__flag {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, #f6d325 0 10px, transparent 11px),
    radial-gradient(circle at 28% 18%, #f6d325 0 9px, transparent 10px),
    radial-gradient(circle at 38% 32%, #f6d325 0 11px, transparent 12px),
    radial-gradient(circle at 22% 48%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 48% 22%, #f6d325 0 10px, transparent 11px),
    radial-gradient(circle at 58% 40%, #f6d325 0 12px, transparent 13px),
    radial-gradient(circle at 70% 18%, #f6d325 0 9px, transparent 10px),
    radial-gradient(circle at 78% 36%, #f6d325 0 11px, transparent 12px),
    radial-gradient(circle at 86% 22%, #f6d325 0 8px, transparent 9px),
    linear-gradient(120deg, #163d9c 0%, #0b2a78 48%, #08205e 100%);
  filter: blur(0.2px);
  transform: scale(1.04);
}
.hero__flag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 48, 0.55) 0%, rgba(8, 20, 48, 0.28) 100%);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__sub {
  margin: 16px 0 22px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}
.hero__bullets { margin: 0; padding: 0; list-style: none; }
.hero__bullets li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; }
.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6d325;
}
.hero__bullets strong { display: inline; }

.form-card {
  background: var(--white);
  color: var(--ink);
  padding: 28px 26px 24px;
  border-radius: 6px;
}
.form-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.form-card .form-hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.form-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.form-card .field-note { font-size: 12px; color: var(--muted); font-weight: 500; margin: 10px 0 6px; }
.form-card input, .phone-row {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd5df;
  border-radius: var(--radius);
  background: var(--white);
}
.form-card input { padding: 0 12px; }
.form-card input:focus, .phone-row:focus-within { outline: 2px solid #c5d0f5; border-color: var(--blue); }
.phone-row { display: flex; overflow: hidden; }
.phone-row select {
  border: 0;
  background: #f3f5f8;
  padding: 0 8px;
  max-width: 118px;
}
.phone-row input { border: 0; flex: 1; }
.form-card .btn { margin-top: 16px; }
.form-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; }
.form-consent input { width: 18px; min-height: 18px; margin-top: 1px; flex: 0 0 auto; }
.form-consent span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-consent a { color: var(--blue); }
.form-error { display: none; margin-top: 12px; color: #b42318; font-size: 13px; font-weight: 600; }
.form-card.has-error .form-error { display: block; }
.form-card--dark {
  background: var(--navy);
  color: var(--white);
}
.form-card--dark .form-hint,
.form-card--dark .field-note { color: #c5cbd6; }
.form-card--dark label { color: var(--white); }
.form-success { display: none; padding: 28px 8px; text-align: center; font-weight: 700; }
.form-card.is-ok .lead-form { display: none; }
.form-card.is-ok .form-success { display: block; }

.trust {
  position: relative;
  padding: 72px 0;
  background:
    linear-gradient(rgba(12, 18, 32, 0.72), rgba(12, 18, 32, 0.72)),
    #1a2233;
  background-size: cover;
}
.trust__panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  background: var(--white);
  padding: 40px 44px;
}
.trust__title em {
  display: block;
  font-style: normal;
  color: var(--blue);
}
.trust__list { margin: 0; padding: 0; list-style: none; }
.trust__list li { padding: 8px 0 8px 18px; position: relative; }
.trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.about { padding: 80px 0; background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
.about__text { font-size: 17px; color: #2c3340; margin-bottom: 28px; }
.about h2 { margin-bottom: 24px; }
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-card { min-height: 150px; padding: 20px 16px; font-weight: 700; font-size: 15px; }
.about-card.violet { background: var(--violet-card); color: var(--white); }
.about-card.navy { background: var(--navy); color: var(--white); }
.about-card.mint { background: var(--mint); color: var(--ink); }

.problem {
  padding: 80px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(10, 16, 30, 0.78), rgba(10, 16, 30, 0.78)),
    #151c2b;
}
.problem__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.problem__list { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: p; }
.problem__list li {
  counter-increment: p;
  padding: 10px 0 10px 36px;
  position: relative;
}
.problem__list li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eu-map {
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, #1d4ed8 29% 32%, transparent 33%),
    radial-gradient(circle at 50% 18%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 74% 30%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 82% 55%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 68% 78%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 32% 78%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 18% 55%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 26% 30%, #f6d325 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, #f6d325 0 8px, transparent 9px),
    linear-gradient(160deg, #1e4db7, #163a8a);
}

.offers { padding: 80px 0; background: var(--bg); }
.offers h2 { margin-bottom: 0; }
.offers__list { display: grid; gap: 28px; }
.offer {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: center;
  background: var(--white);
  padding: 28px 32px;
  border: 1px solid var(--line);
}
.offer:nth-child(even) { grid-template-columns: 280px 1fr; }
.offer:nth-child(even) .offer__copy { order: 2; }
.offer__name { font-size: 32px; font-weight: 800; text-transform: uppercase; }
.offer__native { color: var(--muted); margin: 6px 0 18px; }
.license {
  height: 168px;
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--white);
  background: linear-gradient(145deg, #1d3f86, #12284f);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.license::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.license__top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; }
.license__flag { font-size: 22px; line-height: 1; }
.license__who { display: flex; gap: 12px; align-items: center; }
.license__face {
  width: 52px;
  height: 64px;
  background: #9aa7c2;
  border-radius: 2px;
}
.license__meta { font-size: 12px; opacity: 0.85; }
.license__bar {
  height: 10px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px);
  opacity: 0.55;
}

.reviews { padding: 80px 0; }
.reviews h2 { margin-bottom: 36px; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.review {
  position: relative;
  width: 100%;
  min-height: 210px;
  border: 1px solid #dfe4ee;
  border-radius: 18px;
  padding: 26px 58px 24px 24px;
  background: linear-gradient(145deg, #fff 0%, #f7f9ff 100%);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(20, 35, 70, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.review:nth-child(even) { margin-top: 24px; }
.review:hover { transform: translateY(-4px); border-color: #b9c6ea; box-shadow: 0 18px 42px rgba(20, 35, 70, 0.12); }
.review:focus-visible { outline: 3px solid #aabcf5; outline-offset: 3px; }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.review-head strong { display: block; }
.review-head span { color: var(--muted); font-size: 13px; }
.review__case {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #3152a6 !important;
  font-size: 12px !important;
  font-weight: 700;
}
.review__quote {
  position: absolute;
  top: 14px;
  right: 22px;
  color: #d8e1ff;
  font: 800 64px/1 Georgia, serif;
}
.review__open {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 15px;
}
.review--2 .review__case { background: #e8f8f0; color: #13724a !important; }
.review--3 .review__case { background: #fff1e8; color: #a54413 !important; }
.review--4 .review__case { background: #f2eefe; color: #6241a5 !important; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  flex: 0 0 auto;
}
.review p { color: #2b3240; font-size: 16px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.process {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
}
.process__note { opacity: 0.8; margin: 12px 0 40px; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(255,255,255,0.35);
}
.process-step { text-align: center; position: relative; }
.process-step__n {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { font-size: 16px; text-transform: none; margin-bottom: 8px; }
.process-step p { font-size: 14px; opacity: 0.86; }

.advantages { padding: 80px 0; }
.advantages h2 { margin-bottom: 40px; }
.advantages__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}
.advantages__row::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  border-top: 1px dashed #c9ced8;
}
.adv { text-align: center; position: relative; }
.adv__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.adv h3 { font-size: 16px; text-transform: none; margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 14px; }

.contacts { padding: 80px 0; background: var(--bg); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__lead { margin: 12px 0 28px; font-size: 18px; }
.contacts dl { margin: 0; }
.contacts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.contacts dd { margin: 6px 0 0; font-weight: 700; }
.contacts dd a { text-decoration: none; }
.contacts__socials { display: flex; gap: 8px; margin-top: 24px; }

.footer { padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--muted); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 16, 28, 0.45); }
.modal__card {
  position: relative;
  width: min(560px, 100%);
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 14px;
  }
  .nav.is-open { display: flex; }
  .burger { display: block; }
  .header .icon-btn { display: none; }
  .hero__grid,
  .trust__panel,
  .about__grid,
  .problem__grid,
  .contacts__grid,
  .offer,
  .offer:nth-child(even) { grid-template-columns: 1fr; }
  .offer:nth-child(even) .offer__copy { order: 0; }
  .about__cards,
  .reviews__grid,
  .process__steps,
  .advantages__row { grid-template-columns: 1fr; }
  .process__steps::before,
  .advantages__row::before { display: none; }
  .eu-map { margin: 12px auto 0; }
  .btn--phone { padding: 0 12px; font-size: 13px; }
  .review:nth-child(even) { margin-top: 0; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .header__inner { gap: 8px; }
  .header__actions { margin-left: auto; min-width: 0; gap: 4px; }
  .header .btn--phone { display: none; }
  .logo__name { font-size: 18px; }
  .logo__suffix { font-size: 9px; }
  .lang select { width: 122px; max-width: 122px; padding-left: 6px; }
  .burger { flex: 0 0 40px; }
  .hero { padding: 36px 0 48px; }
  .form-card { padding: 22px 18px; }
  .trust__panel { padding: 24px 20px; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 380px) {
  .lang select { width: 104px; max-width: 104px; }
}
