:root {
  --blue: #1f3756;
  --blue-2: #103991;
  --red: #d6282e;
  --soft: #eef2f7;
  --text: #0c0c0c;
  --muted: #444;
  --white: #fff;
  --radius: 20px;
  --container: 1200px;
  --header-height: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Raleway, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 0;
  transform: translateX(-120vw);
}
.skip:focus {
  transform: none;
  z-index: 200;
  background: #fff;
  padding: 8px 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  pointer-events: none;
}
.nav-shell {
  min-height: var(--header-height);
  border-radius: 0 0 20px 20px;
  background: rgba(255,255,255,.96);
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  color: var(--blue);
  font-weight: 600;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(31,55,86,.08);
}
.logo { font-weight: 700; line-height: 1.05; }
.nav-links { display: flex; align-items: center; gap: 48px; justify-content: center; }
.nav-links a, .menu-button { font-size: 16px; }
.phone { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 18px; white-space: nowrap; }
.phone::before {
  content: "☎";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}
.menu-button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font: inherit; font-weight: 600; }
.dropdown { position: relative; display: inline-flex; align-items: center; padding: 20px 0; margin: -20px 0; }
.dropdown::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 18px;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 52px rgba(31,55,86,.18);
  padding: 22px;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  z-index: 20;
}
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel, .dropdown.open .dropdown-panel { display: grid; }
.dropdown-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 14px;
  transition: background .18s ease, color .18s ease;
}
.dropdown-panel a:hover { background: #e7edf4; color: var(--red); }
.mobile-toggle { display: none; border: 0; background: var(--blue); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 24px; }

.hero {
  margin-top: 0;
  min-height: 850px;
  padding: 150px 0 96px;
  background: var(--hero-image) center/cover no-repeat;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.84) 0%, rgba(255,255,255,.56) 45%, rgba(255,255,255,.15) 100%);
}
.hero .container { position: relative; z-index: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue-2);
  border-radius: 999px;
  color: var(--blue-2);
  padding: 4px 12px;
  font-size: 15px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.45);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); margin-right: 8px; }
h1, h2, h3 { color: var(--blue); line-height: 1.1; margin: 0; letter-spacing: 0; }
h1 { font-size: 48px; max-width: 720px; font-weight: 700; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
.lead { font-size: 18px; max-width: 760px; margin: 22px 0 0; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 44px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 20px;
  border: 1px solid var(--red);
  font-weight: 600;
  cursor: pointer;
}
.button.primary { background: var(--red); color: #fff; }
.button.secondary { color: var(--red); background: rgba(255,255,255,.6); }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 130px; margin-top: 90px; }
.feature-pill {
  min-height: 86px;
  border-radius: 20px;
  color: #fff;
  background: rgba(31,55,86,.55);
  display: flex;
  align-items: center;
  padding: 16px 28px;
  font-weight: 600;
}

.section { padding: 82px 0; }
.section.tight { padding: 52px 0; }
.intro { max-width: 660px; margin-top: 22px; font-size: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: var(--soft);
  border-radius: 20px;
  padding: 28px;
  min-height: 180px;
  position: relative;
}
.card h3 { font-size: 18px; margin-bottom: 14px; }
.card p { margin: 0; color: #222; }
.card .arrow { position: absolute; right: 22px; bottom: 18px; color: var(--red); font-size: 28px; }
.steps-band {
  background: var(--blue);
  color: #fff;
  border-radius: 20px;
  padding: 54px 56px;
}
.steps-band h2, .steps-band h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.step small { display: block; font-weight: 700; margin-bottom: 10px; }
.home-steps-section { padding-top: 74px; padding-bottom: 74px; }
.home-steps-band { padding: 58px 34px 58px; }
.home-steps-band h2 { text-align: center; font-size: 42px; }
.home-steps {
  gap: 34px;
  margin-top: 42px;
  align-items: start;
}
.home-steps .step small {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.home-steps .step p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  max-width: 220px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.image-card img { border-radius: 20px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.price-card { background: var(--soft); border-radius: 20px; padding: 30px; margin-top: 38px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.price { color: var(--red); font-size: 34px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.documents { background: var(--blue); color: #fff; border-radius: 20px; padding: 58px 34px; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1fr); gap: 92px; align-items: center; }
.documents h2, .documents h3 { color: #fff; }
.documents { position: relative; overflow: hidden; }
.documents > div { position: relative; z-index: 1; }
.documents-copy h2 { font-size: 44px; line-height: 1.12; max-width: 410px; }
.documents-copy p { margin: 26px 0 0; max-width: 560px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.documents-list h3 { font-size: 25px; margin-bottom: 28px; }
.documents-list ul { margin: 0; padding-left: 22px; display: grid; gap: 22px; }
.documents-list li { font-size: 18px; line-height: 1.35; font-weight: 700; padding-left: 4px; }
.documents-watermark {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 500px;
  max-width: 40%;
  opacity: .095;
  filter: brightness(0) invert(1);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.faq-list { margin-top: 40px; display: grid; gap: 18px; }
.faq-item { background: #edf3f8; border-radius: 16px; overflow: hidden; }
.faq-question {
  width: 100%;
  min-height: 72px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 24px 30px;
  font: inherit;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.faq-question::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background:
    linear-gradient(var(--red), var(--red)) center/18px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center/2px 18px no-repeat;
  transition: transform .18s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 30px 30px; color: #222; font-size: 16px; line-height: 1.62; max-width: 960px; }
.faq-answer[hidden] { display: none; }
.faq-item.open .faq-answer { display: block; }
.text-columns { column-count: 2; column-gap: 70px; margin-top: 30px; }
.text-columns p { break-inside: avoid; margin: 0 0 18px; }
.seo-text h3 {
  break-after: avoid;
  color: var(--blue);
  font-size: 21px;
  line-height: 1.18;
  font-weight: 700;
  margin: 28px 0 12px;
}
.seo-text h3:first-child { margin-top: 0; }
.seo-text ul {
  break-inside: avoid;
  margin: 0 0 20px 0;
  padding-left: 20px;
}
.seo-text li { margin-bottom: 8px; line-height: 1.55; }
.mini-hero {
  min-height: 790px;
  padding: 176px 0 92px;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.65)), var(--hero-image) center/cover no-repeat;
  margin-top: 0;
}
.prices-hero { padding-top: 118px; }
.prices-hero .breadcrumb { margin: 0 0 108px; }
.mini-hero .lead { max-width: 650px; }
.content-block { white-space: pre-line; font-size: 18px; }
.content-block h2 { margin-bottom: 28px; }
.content-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.content-card { background: var(--soft); border-radius: 20px; padding: 28px; white-space: pre-line; }
.compact-grid { gap: 32px; }
.compact-grid .content-card { min-height: 94px; padding: 24px 28px; }
.compact-grid .content-card h3 { font-size: 18px; margin-bottom: 10px; }
.compact-grid .content-card h3:empty { display: none; }
.compact-grid .content-card p { margin: 0; }
.intro.center { margin-left: auto; margin-right: auto; text-align: center; }
.purpose-need h2 { text-align: center; }
.docs-row { display: grid; grid-template-columns: 310px 1fr; align-items: start; gap: 44px; }
.docs-row .content-card-grid { margin-top: 0; }
.purpose-who ul { margin: 28px 0 0; padding-left: 20px; }
.purpose-who li { margin-bottom: 8px; }
.purpose-who .split { align-items: start; }
.purpose-who .button { margin-top: 24px; }
.official-band > p { margin: 18px 0 0; max-width: 470px; }
.living-hero {
  padding-top: 126px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.58), rgba(255,255,255,.08)), var(--hero-image) center/cover no-repeat;
}
.living-hero .breadcrumb { margin: 0 0 84px; }
.living-hero h1 { max-width: 760px; font-size: 54px; line-height: 1.16; }
.living-hero .lead { max-width: 760px; font-size: 20px; line-height: 1.42; }
.living-purpose-need { padding-top: 96px; }
.living-purpose-need h2 { max-width: 780px; margin: 0 auto; font-size: 46px; line-height: 1.16; }
.living-purpose-need .intro.center { max-width: 920px; font-size: 19px; line-height: 1.42; margin-top: 28px; }
.living-purpose-need .compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 54px auto 0;
  gap: 34px 42px;
}
.living-purpose-need .content-card { min-height: 124px; padding: 28px 34px; border-radius: 16px; }
.living-purpose-need .content-card h3 { font-size: 24px; line-height: 1.18; margin-bottom: 22px; }
.living-purpose-need .content-card p { font-size: 18px; line-height: 1.4; }
.living-purpose-who.education-important-who {
  padding-top: 92px;
  padding-bottom: 88px;
}
.living-purpose-who.education-important-who h2 {
  max-width: none;
  margin: 0 0 48px;
  font-size: 46px;
  line-height: 1.16;
}
.education-important-content {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.education-important-copy { padding-top: 2px; }
.living-purpose-who.education-important-who h3 {
  max-width: 560px;
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}
.education-important-copy p {
  max-width: 610px;
  margin: 26px 0 0;
  font-size: 20px;
  line-height: 1.43;
}
.living-purpose-who.education-important-who .button { margin-top: 34px; }
.education-important-image img { aspect-ratio: 16 / 6.65; object-position: center; }
.education-price-image img { object-position: center; }
.education-form-image img { object-position: center; }
.living-purpose-who { padding-top: 72px; padding-bottom: 72px; }
.living-purpose-who .split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 96px; max-width: 1200px; }
.living-purpose-who h2 { max-width: 670px; font-size: 46px; line-height: 1.16; }
.living-purpose-who .intro { max-width: 610px; font-size: 20px; line-height: 1.42; margin-top: 54px; }
.living-purpose-who .purpose-list-intro { max-width: 610px; margin: 30px 0 0; font-size: 20px; line-height: 1.42; white-space: pre-line; }
.living-purpose-who ul { margin-top: 8px; padding-left: 20px; font-size: 20px; line-height: 1.33; }
.living-purpose-who li { margin-bottom: 2px; }
.living-purpose-who .split > div:nth-child(2) { padding-top: 38px; }
.living-purpose-who h3 { font-size: 26px; line-height: 1.14; max-width: 560px; margin-top: 136px; }
.living-purpose-who .split > div:nth-child(2) p { max-width: 560px; margin-top: 24px; font-size: 20px; line-height: 1.42; }
.living-purpose-who .button { min-height: 58px; margin-top: 34px; border-radius: 18px; padding-inline: 32px; }
.employment-purpose-who .split { grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr); gap: 72px; }
.employment-purpose-who h2 { max-width: 760px; font-size: 43px; line-height: 1.14; }
.employment-purpose-who .split > div:nth-child(2) { padding-top: 52px; }
.employment-purpose-who h3 { margin-top: 100px; }
.employment-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.employment-purpose-who .button { margin-top: 28px; }
.kindergarten-purpose-who .split > div:nth-child(2) { padding-top: 44px; }
.kindergarten-purpose-who h3 { margin-top: 96px; }
.kindergarten-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.kindergarten-purpose-who .button { margin-top: 28px; }
.bank-purpose-who .split { grid-template-columns: minmax(0, 1.14fr) minmax(350px, .86fr); gap: 72px; }
.bank-purpose-who h2 { max-width: 720px; font-size: 43px; line-height: 1.14; }
.bank-purpose-who .split > div:nth-child(2) { padding-top: 52px; }
.bank-purpose-who h3 { margin-top: 100px; }
.bank-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.bank-purpose-who .button { margin-top: 28px; }
.benefits-purpose-who .split { grid-template-columns: minmax(0, 1.14fr) minmax(350px, .86fr); gap: 72px; }
.benefits-purpose-who h2 { max-width: 720px; font-size: 43px; line-height: 1.14; }
.benefits-purpose-who .split > div:nth-child(2) { padding-top: 52px; }
.benefits-purpose-who h3 { margin-top: 100px; }
.benefits-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.benefits-purpose-who .button { margin-top: 28px; }
.visa-purpose-who .split { grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr); gap: 56px; }
.visa-purpose-who h2 { max-width: 820px; font-size: 40px; line-height: 1.14; }
.visa-purpose-who .split > div:nth-child(2) { padding-top: 52px; }
.visa-purpose-who h3 { margin-top: 120px; }
.visa-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.visa-purpose-who .button { margin-top: 28px; }
.court-purpose-who .split { grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); gap: 72px; }
.court-purpose-who h2 { max-width: 740px; font-size: 43px; line-height: 1.14; }
.court-purpose-who .split > div:nth-child(2) { padding-top: 52px; }
.court-purpose-who h3 { margin-top: 100px; }
.court-purpose-who .split > div:nth-child(2) p { margin: 18px 0 0; }
.court-purpose-who .button { margin-top: 24px; }
.gai-purpose-who .split > div:nth-child(2) { padding-top: 0; }
.gai-purpose-who h3 { margin-top: 86px; }
.living-docs-section { padding-top: 54px; padding-bottom: 70px; }
.living-docs-row {
  max-width: 1200px;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
  padding: 46px;
  border: 1px solid rgba(31, 55, 86, .08);
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4fa 100%);
  box-shadow: 0 18px 45px rgba(31, 55, 86, .08);
}
.living-docs-row h2 {
  align-self: center;
  max-width: 300px;
  font-size: 42px;
  line-height: 1.12;
}
.living-docs-row .compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}
.living-doc-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 24px;
  border: 1px solid rgba(31, 55, 86, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 28px rgba(31, 55, 86, .07);
  color: var(--blue);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.living-doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 40, 46, .18);
  box-shadow: 0 16px 34px rgba(31, 55, 86, .1);
}
.doc-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(214, 40, 46, .2);
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}
.living-doc-card span:last-child {
  font-size: 18px;
  line-height: 1.25;
}
.living-official-process .official-band { padding: 72px 34px 64px; }
.living-official-process .official-band h2 { font-size: 46px; line-height: 1.14; }
.living-official-process .official-band > p { max-width: 560px; margin-top: 24px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.living-official-process .steps { gap: 46px; margin-top: 54px; }
.living-official-process .step small { font-size: 24px; line-height: 1.12; margin-bottom: 26px; color: #fff; }
.living-official-process .step p { margin: 0; color: #fff; font-size: 19px; line-height: 1.36; font-weight: 600; }
.living-seo-section h2 { max-width: 780px; }
.living-seo-text h3 {
  break-after: avoid;
  color: var(--blue);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  margin: 36px 0 14px;
}
.living-seo-text h3:first-child { margin-top: 0; }
.living-seo-text p { line-height: 1.58; }
.bank-seo-layout { margin-top: 30px; }
.bank-seo-intro { max-width: 1040px; }
.bank-seo-intro p {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.58;
}
.bank-seo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  margin-top: 36px;
}
.bank-seo-item { margin-top: 34px; }
.bank-seo-item:first-child { margin-top: 0; }
.bank-seo-item h3 {
  color: var(--blue);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 14px;
}
.bank-seo-item p {
  margin: 0 0 18px;
  line-height: 1.58;
}
.bank-seo-item p.bank-condition-lead { margin-bottom: 0; }
.bank-conditions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 20px;
}
.bank-seo-item .bank-conditions-list p {
  margin: 0;
  font-weight: 600;
  line-height: 1.42;
}
.bank-seo-item p.bank-condition-summary { margin-top: 0; }
.purpose-services { padding-top: 54px; }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 46px; }
.term-card { min-height: 170px; }
.term-card h3 { font-size: 20px; margin-bottom: 22px; }
.price-image { position: relative; }
.price-image span {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52%;
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px 28px;
  color: #fff;
  background: rgba(31,55,86,.6);
  border-radius: 0 20px 0 20px;
  font-weight: 600;
  line-height: 1.25;
}
.services-section h2 { max-width: 760px; margin: 0 auto; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 58px; }
.service-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 18px;
  background: var(--soft);
  border-radius: 20px;
  padding: 18px 24px;
  color: var(--blue);
}
.service-card img { width: 36px; height: 36px; object-fit: contain; opacity: .8; }
.service-card strong { font-size: 22px; line-height: 1.05; }
.form-card {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--soft);
  border-radius: 20px;
  padding: 70px 0 64px;
  text-align: center;
}
.form-card h2 { max-width: 520px; margin: 0 auto; }
.form-card .intro.center { max-width: 760px; margin: 28px auto 0; }
.form-copy { max-width: 740px; margin: 54px auto 34px; font-size: 18px; line-height: 1.5; }
.form-card .lead-form { max-width: 560px; margin: 0 auto; text-align: left; }
.form-card .lead-form input,
.form-card .lead-form select,
.form-card .lead-form textarea {
  border: 1px solid rgba(214,40,46,.78);
  background: #f8fafc;
}

.form-section { padding: 90px 0 110px; }
.lead-form-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lead-form {
  display: grid;
  gap: 14px;
}
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 0;
  background: var(--soft);
  border-radius: 14px;
  min-height: 52px;
  padding: 0 18px;
  font: inherit;
}
.lead-form textarea { min-height: 92px; padding-top: 16px; resize: vertical; }
.consent { font-size: 12px; color: #333; display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; min-height: 0; margin-top: 3px; }
.form-status { min-height: 22px; font-size: 14px; color: var(--blue); }
.lead-form input.hp, .hp {
  position: absolute;
  left: 0;
  transform: translateX(-120vw);
  width: 1px;
  max-width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.site-footer { background: var(--blue); color: #fff; border-radius: 20px 20px 0 0; padding: 60px 0 42px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1.2fr 1.3fr; gap: 56px; }
.site-footer h3 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.site-footer p, .site-footer a { color: #fff; font-weight: 500; }
.footer-contact { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0 0 14px; }
.footer-contact img { width: 22px; height: 22px; object-fit: contain; margin-top: 2px; }
.footer-bottom { margin-top: 62px; display: flex; gap: 60px; flex-wrap: wrap; font-size: 12px; opacity: .72; }
.messengers { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.messenger { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--blue); display: inline-grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.messenger svg { width: 35px; height: 35px; fill: currentColor; display: block; }

.company-hero {
  min-height: 850px;
  padding: 126px 0 92px;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.66) 44%, rgba(255,255,255,.12) 100%), var(--hero-image) center/cover no-repeat;
}
.breadcrumb { margin: 0 0 120px; color: var(--text); font-weight: 500; font-size: 16px; }
.breadcrumb a { color: inherit; }
.company-hero h1 { max-width: 720px; font-size: 56px; line-height: 1.18; }
.company-hero .lead { margin-top: 28px; font-weight: 600; font-size: 20px; }
.company-hero .button { margin-top: 44px; min-height: 58px; padding-inline: 30px; border-radius: 18px; }
.company-stats { padding-top: 126px; }
.company-stats h2 { max-width: 980px; margin-bottom: 54px; font-size: 46px; line-height: 1.18; }
.company-stats-grid {
  display: grid;
  grid-template-columns: minmax(470px, .92fr) minmax(520px, 1fr);
  gap: 110px;
  align-items: start;
}
.company-stats-copy { padding-top: 6px; }
.company-stats-grid p { max-width: 590px; font-size: 20px; line-height: 1.42; font-weight: 500; margin: 0 0 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 50px; padding-top: 0; }
.stat-card {
  min-height: 160px;
  border-radius: 20px;
  background: var(--soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 24px;
  color: var(--blue);
}
.stat-card strong { display: block; font-size: 42px; line-height: 1; margin-bottom: 20px; }
.stat-card span { font-size: 20px; font-weight: 500; color: #0c0c0c; }
.company-benefits h2, .company-reviews h2 { text-align: center; }
.company-benefit-grid .service-card { min-height: 86px; }
.company-benefit-grid .service-card strong { font-size: 20px; }
.company-legal {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  display: grid;
  grid-template-columns: 520px 300px 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0 0 34px;
}
.company-legal h2 { color: #fff; font-size: 46px; line-height: 1.18; max-width: 520px; }
.company-legal p { margin: 18px 0 0; font-weight: 700; font-size: 18px; line-height: 1.42; }
.company-legal > p { align-self: start; margin-top: 88px; max-width: 430px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.company-legal img { align-self: end; justify-self: end; width: 385px; max-width: none; max-height: 360px; object-fit: contain; margin: 0 -18px 0 0; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 42px; margin-top: 44px; }
.review-card {
  background: var(--soft);
  border-radius: 20px;
  padding: 40px 42px;
  min-height: 350px;
}
.review-card h3 { font-size: 22px; margin-bottom: 8px; }
.review-card small { color: #4d5d72; font-weight: 600; }
.stars { color: #ffd13b; font-size: 24px; letter-spacing: 2px; margin: 8px 0 20px; }
.review-card p { margin: 0; }

body.modal-lock { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(12,12,12,.56); }
.modal.open { display: flex; }
.modal-card {
  background: #f7faff;
  border-radius: 20px;
  width: min(856px, calc(100vw - 56px));
  padding: 54px 52px 46px;
  position: relative;
  box-shadow: 0 26px 72px rgba(0,0,0,.26);
}
.modal-card h2 {
  text-align: center;
  color: var(--blue);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
}
.modal-intro {
  margin: 24px auto 30px;
  max-width: 690px;
  text-align: center;
  color: #0c1420;
  font-size: 22px;
  line-height: 1.55;
}
.modal-card .lead-form {
  max-width: 754px;
  margin: 0 auto;
  gap: 28px;
}
.modal-card .lead-form input:not([type="checkbox"]), .modal-card .lead-form textarea, .modal-card .lead-form select,
.modal-phone-field {
  min-height: 68px;
  border: 1px solid rgba(214,40,46,.92);
  border-radius: 20px;
  background: #f8fbff;
  color: #14243a;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.modal-card .lead-form input:not([type="checkbox"]), .modal-card .lead-form textarea, .modal-card .lead-form select {
  padding: 0 24px;
}
.modal-card .lead-form select { appearance: auto; color: #4d5662; }
.modal-card .lead-form input::placeholder, .modal-card .lead-form textarea::placeholder { color: #8b929b; opacity: 1; }
.modal-card .lead-form input:focus, .modal-card .lead-form textarea:focus, .modal-card .lead-form select:focus,
.modal-card .consent input:focus {
  outline: none;
  border-color: rgba(214,40,46,.92);
  box-shadow: 0 0 0 3px rgba(214,40,46,.08);
}
.modal-phone-field {
  position: relative;
  display: flex;
  align-items: center;
}
.modal-card .lead-form .modal-phone-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 66px;
  padding-left: 92px;
}
.phone-country {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.phone-flag {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: linear-gradient(#fff 0 33.3%, #1f5edb 33.3% 66.6%, #d6282e 66.6% 100%);
}
.phone-caret { color: #7a838d; font-size: 16px; line-height: 1; margin-top: -2px; }
.modal-card .lead-form textarea { min-height: 68px; padding-top: 20px; resize: none; }
.modal-card .consent {
  align-items: flex-start;
  gap: 14px;
  color: #4d5662;
  font-size: 16px;
  line-height: 1.38;
  margin-top: -2px;
}
.modal-card .consent input {
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  border: 2px solid #8c959f;
  border-radius: 1px;
  background: transparent;
  display: grid;
  place-items: center;
}
.modal-card .consent input:checked::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg) translate(1px, -1px);
}
.modal-card .form-status { min-height: 0; margin-top: -14px; }
.modal-card .button {
  width: 100%;
  min-height: 68px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  margin-top: -6px;
}
.modal-close {
  position: fixed;
  top: 34px;
  right: 38px;
  border: 0;
  background: transparent;
  color: var(--red);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 54px;
  font-weight: 300;
  line-height: .72;
  cursor: pointer;
}
.registration-modal { padding: 16px; overflow: hidden; }
.registration-modal-card {
  width: min(830px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 46px 30px;
}
.registration-modal-card h2 { max-width: 660px; margin: 0 auto; font-size: 38px; line-height: 1.1; }
.registration-modal-card .modal-intro { max-width: 680px; margin: 18px auto 22px; font-size: 18px; line-height: 1.42; }
.registration-modal-card .lead-form { max-width: 720px; gap: 14px; }
.registration-modal-card .lead-form input:not([type="checkbox"]), .registration-modal-card .lead-form textarea, .registration-modal-card .lead-form select,
.registration-modal-card .modal-phone-field { min-height: 54px; border-radius: 16px; font-size: 16px; }
.registration-modal-card .lead-form .modal-phone-field input { min-height: 52px; padding-left: 82px; }
.registration-modal-card .phone-country { left: 22px; }
.registration-modal-card .lead-form textarea { min-height: 54px; padding-top: 15px; }
.registration-modal-card .consent { gap: 12px; font-size: 13px; line-height: 1.32; margin-top: 2px; }
.registration-modal-card .consent input { width: 21px; height: 21px; min-width: 21px; min-height: 21px; }
.registration-modal-card .form-status { margin-top: -8px; }
.registration-modal-card .button { min-height: 56px; border-radius: 16px; font-size: 16px; margin-top: 0; }
.success-box { display: none; background: #eef8f1; color: #0a7b32; padding: 14px 16px; border-radius: 14px; }
.success-box.show { display: block; }

.not-found { min-height: 70vh; padding: 160px 0; }

@media (max-width: 900px) {
  .container { width: min(100% - 30px, var(--container)); }
  .site-header { padding-top: 0; }
  .nav-shell { grid-template-columns: minmax(104px, 1fr) auto auto; gap: 10px; padding: 10px 14px; border-radius: 0 0 16px 16px; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .nav-links { display: none; }
  .phone { display: inline-flex; font-size: 13px; gap: 6px; justify-self: end; }
  .phone::before { width: 18px; height: 18px; font-size: 10px; }
  .nav-shell.open .nav-links { display: grid; grid-column: 1 / -1; justify-content: stretch; gap: 8px; padding: 12px 0; }
  .dropdown { display: block; padding: 0; margin: 0; }
  .dropdown::after { display: none; }
  .dropdown-panel { position: static; transform: none; width: 100%; box-shadow: none; padding: 10px 0 0; grid-template-columns: 1fr; }
  .dropdown.open .dropdown-panel { display: grid; }
  .hero, .mini-hero { margin-top: 0; padding: 118px 0 62px; min-height: auto; }
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-actions { margin-top: 30px; }
  .hero-features, .cards-grid, .steps, .split, .documents, .lead-form-shell, .footer-grid, .content-card-grid, .term-grid, .service-grid, .docs-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .company-hero {
    min-height: 670px;
    padding: 86px 0 42px;
    background: var(--hero-image) center top/cover no-repeat;
  }
  .company-hero .container {
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .breadcrumb { margin: 0 0 12px; font-size: 12px; }
  .company-hero h1 {
    max-width: 310px;
    color: #fff;
    font-size: 29px;
    background: rgba(31,55,86,.68);
    border-radius: 16px 16px 0 0;
    padding: 22px 18px 0;
  }
  .company-hero .lead {
    max-width: 310px;
    margin: 0;
    color: #fff;
    background: rgba(31,55,86,.68);
    padding: 16px 18px 18px;
  }
  .company-hero .button { width: fit-content; margin: 20px 0 0 18px; }
  .company-stats { padding-top: 54px; }
  .company-stats-grid, .stat-grid, .review-grid, .company-legal {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .company-stats h2 { font-size: 30px; line-height: 1.16; margin-bottom: 26px; }
  .company-stats-copy { padding-top: 0; }
  .company-stats-grid p { font-size: 16px; margin-bottom: 18px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { min-height: 108px; padding: 18px 12px; border-radius: 16px; }
  .stat-card strong { font-size: 26px; margin-bottom: 10px; }
  .stat-card span { font-size: 14px; }
  .company-legal { padding: 30px 24px 0; gap: 18px; }
  .company-legal h2 { font-size: 30px; }
  .company-legal p { font-size: 15px; }
  .company-legal > p { font-size: 16px; margin-top: 0; }
  .company-legal img { width: min(250px, 82vw); max-height: 250px; margin: 0 -24px 0 auto; }
  .prices-hero .breadcrumb { margin-bottom: 26px; }
  .living-hero {
    padding-top: 96px;
    padding-bottom: 58px;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.56)), var(--hero-image) center/cover no-repeat;
  }
  .living-hero .breadcrumb { margin-bottom: 28px; }
  .living-hero h1 { font-size: 34px; line-height: 1.14; max-width: 360px; }
  .living-hero .lead { max-width: 360px; font-size: 16px; line-height: 1.42; }
  .living-hero .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 260px); }
  .living-purpose-need { padding-top: 58px; }
  .living-purpose-need h2 { font-size: 30px; }
  .living-purpose-need .intro.center { max-width: 340px; font-size: 16px; line-height: 1.45; }
  .living-purpose-need .compact-grid { grid-template-columns: 1fr; max-width: none; margin-top: 32px; gap: 18px; }
  .living-purpose-need .content-card { min-height: 0; padding: 24px; }
  .living-purpose-need .content-card h3 { font-size: 21px; margin-bottom: 14px; }
  .living-purpose-need .content-card p { font-size: 16px; }
  .living-purpose-who.education-important-who { padding-top: 58px; padding-bottom: 58px; }
  .living-purpose-who.education-important-who h2 { margin-bottom: 26px; font-size: 30px; }
  .education-important-content { grid-template-columns: 1fr; gap: 24px; }
  .education-important-copy { padding-top: 0; }
  .living-purpose-who.education-important-who h3 { font-size: 22px; }
  .education-important-copy p { font-size: 16px; margin-top: 16px; }
  .living-purpose-who.education-important-who .button { margin-top: 24px; }
  .education-important-image img { aspect-ratio: 16 / 10; }
  .living-purpose-who .split { grid-template-columns: 1fr; max-width: none; gap: 26px; }
  .living-purpose-who h2 { font-size: 30px; }
  .living-purpose-who .intro { margin-top: 24px; font-size: 16px; }
  .living-purpose-who .purpose-list-intro { font-size: 16px; margin-top: 20px; }
  .living-purpose-who ul { font-size: 16px; }
  .living-purpose-who .split > div:nth-child(2) { padding-top: 12px; }
  .living-purpose-who h3 { margin-top: 0; font-size: 22px; }
  .employment-purpose-who .split { grid-template-columns: 1fr; gap: 26px; }
  .employment-purpose-who h2 { max-width: none; font-size: 30px; line-height: 1.15; }
  .employment-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .employment-purpose-who h3 { margin-top: 0; }
  .employment-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .employment-purpose-who .button { margin-top: 24px; }
  .kindergarten-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .kindergarten-purpose-who h3 { margin-top: 0; }
  .kindergarten-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .kindergarten-purpose-who .button { margin-top: 24px; }
  .bank-purpose-who .split { grid-template-columns: 1fr; gap: 26px; }
  .bank-purpose-who h2 { max-width: none; font-size: 29px; line-height: 1.15; }
  .bank-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .bank-purpose-who h3 { margin-top: 0; }
  .bank-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .bank-purpose-who .button { margin-top: 24px; }
  .benefits-purpose-who .split { grid-template-columns: 1fr; gap: 26px; }
  .benefits-purpose-who h2 { max-width: none; font-size: 29px; line-height: 1.15; }
  .benefits-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .benefits-purpose-who h3 { margin-top: 0; }
  .benefits-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .benefits-purpose-who .button { margin-top: 24px; }
  .visa-purpose-who .split { grid-template-columns: 1fr; gap: 26px; }
  .visa-purpose-who h2 { max-width: none; font-size: 22px; line-height: 1.16; }
  .visa-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .visa-purpose-who h3 { margin-top: 0; }
  .visa-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .visa-purpose-who .button { margin-top: 24px; }
  .court-purpose-who .split { grid-template-columns: 1fr; gap: 26px; }
  .court-purpose-who h2 { max-width: none; font-size: 30px; }
  .court-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .court-purpose-who h3 { margin-top: 0; }
  .court-purpose-who .split > div:nth-child(2) p { margin: 14px 0 0; }
  .court-purpose-who .button { margin-top: 24px; }
  .gai-purpose-who .split > div:nth-child(2) { padding-top: 8px; }
  .gai-purpose-who h3 { margin-top: 0; }
  .living-purpose-who .split > div:nth-child(2) p { font-size: 16px; }
  .living-docs-section { padding-top: 42px; padding-bottom: 58px; }
  .living-docs-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 20px;
    border-radius: 18px;
  }
  .living-docs-row h2 {
    max-width: 270px;
    font-size: 30px;
  }
  .living-docs-row .compact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .living-doc-card {
    grid-template-columns: 38px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }
  .doc-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 12px;
  }
  .living-doc-card span:last-child { font-size: 15px; }
  .living-official-process .official-band { padding: 34px 22px; }
  .living-official-process .official-band h2 { font-size: 30px; }
  .living-official-process .official-band > p { font-size: 15px; }
  .living-official-process .steps { gap: 24px; margin-top: 30px; }
  .living-official-process .step small { font-size: 20px; margin-bottom: 12px; }
  .living-official-process .step p { font-size: 15px; }
  .living-seo-text h3 { font-size: 20px; margin-top: 26px; }
  .bank-seo-layout { margin-top: 24px; }
  .bank-seo-intro p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
  .bank-seo-columns { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .bank-seo-item { margin-top: 26px; }
  .bank-seo-item:first-child { margin-top: 0; }
  .bank-seo-item h3 { font-size: 20px; margin-bottom: 12px; }
  .bank-seo-item p { margin-bottom: 14px; line-height: 1.55; }
  .bank-seo-item p.bank-condition-lead { margin-bottom: 0; }
  .bank-conditions-list { gap: 5px; margin: 10px 0 18px; }
  .bank-seo-item .bank-conditions-list p { line-height: 1.4; }
  .bank-seo-item p.bank-condition-summary { margin-top: 0; }
  .review-card { min-height: 0; padding: 28px 24px; }
  .hero-features { margin-top: 40px; }
  .section { padding: 58px 0; }
  .home-steps-section { padding-top: 42px; padding-bottom: 42px; }
  .home-steps-band { padding: 34px 22px; }
  .home-steps-band h2 { font-size: 29px; text-align: left; }
  .home-steps { margin-top: 28px; gap: 24px; }
  .home-steps .step {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .home-steps .step:last-child { padding-bottom: 0; border-bottom: 0; }
  .home-steps .step small { font-size: 18px; margin-bottom: 10px; }
  .home-steps .step p { max-width: none; font-size: 15px; }
  .steps-band, .documents { padding: 30px 22px; }
  .documents { align-items: start; }
  .documents-copy h2 { font-size: 30px; max-width: 280px; }
  .documents-copy p { margin-top: 18px; font-size: 14px; }
  .documents-list h3 { font-size: 20px; margin-bottom: 18px; }
  .documents-list ul { gap: 14px; }
  .documents-list li { font-size: 15px; }
  .documents-watermark { width: 250px; max-width: 62%; right: -40px; opacity: .075; }
  .text-columns { column-count: 1; }
  .seo-text h3 { font-size: 19px; margin-top: 24px; }
  .faq-list { gap: 12px; margin-top: 28px; }
  .faq-item { border-radius: 12px; }
  .faq-question { min-height: 62px; padding: 18px 18px; font-size: 16px; gap: 14px; }
  .faq-answer { padding: 0 18px 22px; font-size: 15px; }
  .service-card strong { font-size: 18px; }
  .form-card { padding: 38px 18px 36px; }
  .form-copy { margin: 30px auto 24px; font-size: 15px; }
  .price-image span { position: static; width: 100%; border-radius: 0 0 20px 20px; margin-top: -1px; }
  .price-card { display: block; }
  .price { font-size: 28px; margin-top: 14px; }
  .footer-bottom { gap: 20px; margin-top: 34px; }
  .modal { align-items: flex-start; padding: 24px 14px; overflow-y: auto; }
  .modal-card { width: min(100%, 560px); padding: 34px 22px 26px; border-radius: 18px; margin: auto 0; }
  .modal-card h2 { font-size: 29px; }
  .modal-intro { max-width: 310px; margin: 16px auto 22px; font-size: 15px; line-height: 1.45; }
  .modal-card .lead-form { gap: 14px; }
  .modal-card .lead-form input:not([type="checkbox"]), .modal-card .lead-form textarea, .modal-card .lead-form select,
  .modal-phone-field { min-height: 54px; border-radius: 14px; font-size: 15px; }
  .modal-card .lead-form input:not([type="checkbox"]), .modal-card .lead-form textarea, .modal-card .lead-form select { padding: 0 16px; }
  .modal-card .lead-form .modal-phone-field input { min-height: 52px; padding-left: 74px; }
  .phone-country { left: 16px; gap: 8px; }
  .phone-flag { width: 23px; height: 16px; }
  .modal-card .lead-form textarea { min-height: 54px; padding-top: 16px; }
  .modal-card .consent { gap: 10px; font-size: 11px; line-height: 1.35; }
  .modal-card .consent input { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
  .modal-card .button { min-height: 54px; border-radius: 14px; font-size: 15px; margin-top: 0; }
  .modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; font-size: 34px; color: var(--red); }
  .registration-modal { padding: 16px 10px; }
  .registration-modal-card {
    width: min(100%, 370px);
    max-height: calc(100dvh - 32px);
    padding: 28px 16px 20px;
    overflow-y: auto;
  }
  .registration-modal-card h2 { font-size: 27px; line-height: 1.08; }
  .registration-modal-card .modal-intro { max-width: 300px; margin: 14px auto 20px; font-size: 13px; line-height: 1.42; }
  .registration-modal-card .lead-form { gap: 14px; }
  .registration-modal-card .lead-form input:not([type="checkbox"]), .registration-modal-card .lead-form textarea, .registration-modal-card .lead-form select,
  .registration-modal-card .modal-phone-field { min-height: 52px; border-radius: 14px; font-size: 15px; }
  .registration-modal-card .lead-form .modal-phone-field input { min-height: 50px; padding-left: 74px; }
  .registration-modal-card .phone-country { left: 16px; }
  .registration-modal-card .lead-form textarea { min-height: 52px; padding-top: 15px; }
  .registration-modal-card .consent { font-size: 11px; line-height: 1.32; }
  .registration-modal-card .button { min-height: 54px; }
}

@media (max-width: 390px) {
  .nav-shell { grid-template-columns: minmax(94px, 1fr) auto auto; gap: 7px; padding-inline: 10px; }
  .logo { font-size: 13px; }
  .phone { font-size: 11px; gap: 4px; }
  .phone::before { width: 16px; height: 16px; font-size: 9px; }
  .mobile-toggle { width: 38px; height: 38px; font-size: 22px; }
  .modal { padding-inline: 10px; }
  .modal-card { padding: 30px 16px 22px; }
  .modal-card h2 { font-size: 26px; }
  .modal-intro { font-size: 13px; max-width: 280px; }
}

/* REGMOSCOW V1.1: the mobile navigation owns scrolling, not the page. */
@media (max-width: 900px) {
  .nav-shell.open { background: #fff; }
  .nav-shell.open > .logo { grid-column: 1 / 3; grid-row: 1; }
  .nav-shell.open > .phone { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
  .nav-shell.open > .mobile-toggle { grid-column: 3; grid-row: 1; }
  .nav-shell.open > .nav-links {
    grid-row: 3;
    min-height: 0;
    max-height: calc(100vh - var(--cms-menu-top, 0px) - var(--cms-menu-bottom, 0px));
    max-height: calc(100dvh - var(--cms-menu-top, 0px) - var(--cms-menu-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .nav-links .dropdown:not(.open) .dropdown-panel { display: none; }
  .nav-links .dropdown.open .dropdown-panel { display: grid; }
}
