@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: Lora;
  src: url("fonts/Lora-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --pale-blue: #eaf2f7;
  --ink: #183b62;
  --ink-soft: #315575;
  --blue: #2b73a5;
  --blue-hover: #1f608e;
  --focus: #d67b21;
  --container: 1180px;
  --page-padding: 24px;
}

* { box-sizing: border-box; }

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

body {
  min-width: 0;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
}

button { font: inherit; }

.container {
  width: min(100% - (var(--page-padding) * 2), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(24, 59, 98, .08);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.brand-logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
}

.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.button {
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  padding: 12px 29px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background-color .18s ease, transform .18s ease;
}

.button:hover { background: var(--blue-hover); }
.button:active { transform: scale(.98); }

.button--small {
  justify-self: end;
  min-height: 42px;
  padding: 9px 19px;
  font-size: .91rem;
}

.hero { background: var(--pale-blue); }

.hero-content {
  display: grid;
  grid-template-columns: minmax(320px, .84fr) minmax(380px, 1.16fr);
  align-items: center;
  gap: clamp(56px, 8vw, 132px);
  padding-top: 28px;
  padding-bottom: 28px;
}

.founder-photo { margin: 0; }

.founder-photo img {
  display: block;
  width: 100%;
  height: clamp(300px, 31vw, 430px);
  object-fit: cover;
  object-position: center 16%;
}

.founder-photo figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.1;
}

.hero-copy { max-width: 625px; }

h1 {
  margin: 0;
  color: #123b67;
  font-size: clamp(2.6rem, 4.05vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-copy > p:not(.telegram-status) {
  max-width: 490px;
  margin: 24px 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.17rem, 1.55vw, 1.55rem);
  line-height: 1.18;
}

.telegram-status {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.25;
}

.telegram-toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  margin: 0;
  border-radius: 4px;
  padding: 13px 16px;
  background: #123b5f;
  color: var(--white);
  box-shadow: 0 9px 25px rgba(18, 59, 95, .22);
  font-size: 1rem;
  line-height: 1.25;
}

.company-note {
  padding: 21px 0 23px;
  background: var(--white);
  text-align: center;
}

.company-note p {
  max-width: 830px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.36rem);
  line-height: 1.22;
}

.company-note strong { color: var(--ink); }

@media (max-width: 1000px) {
  .header-content { grid-template-columns: auto 1fr auto; gap: 18px; }
  .brand-logo { width: 190px; }
  .main-nav { justify-content: center; gap: 18px; font-size: .86rem; }
  .hero-content {
    grid-template-columns: minmax(250px, .85fr) minmax(0, 1.15fr);
    gap: 32px;
  }
}

@media (min-width: 768px) and (max-width: 850px) {
  .header-content { grid-template-columns: 190px 1fr auto; gap: 12px; }
  .main-nav { gap: 12px; font-size: .78rem; }
  .button--small { padding: 10px 12px; font-size: .78rem; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }
  :root { --page-padding: 16px; }

  .header-content {
    grid-template-columns: 1fr auto;
    min-height: 52px;
    padding: 6px 0;
  }

  .header-content { position: relative; }
  .nav-toggle { display: block; justify-self: end; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #d5e2ea;
    padding: 8px 0;
    background: var(--white);
    box-shadow: 0 12px 18px rgba(24, 59, 98, .12);
    font-size: 1rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 20px; }
  .brand-logo { width: 218px; }
  .button--small { display: none; }

  .hero-content {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 10px;
  }

  .founder-photo { max-width: none; }
  .founder-photo img { height: 140px; object-position: center 20%; }
  .hero-copy { display: flex; flex-direction: column; min-height: 140px; }
  .hero-copy .button { margin-top: auto; }
  .founder-photo figcaption { margin-top: 4px; font-size: .68rem; }

  h1 { font-size: 1.2rem; line-height: .98; }
  .hero-copy h1 br { display: none; }
  .hero-copy > p:not(.telegram-status) { margin: 8px 0 10px; font-size: .78rem; line-height: 1.16; }
  .button { width: 100%; min-height: 31px; padding: 7px 8px; font-size: .75rem; }
  .company-note { padding: 14px 0; text-align: left; }
  .company-note p { font-size: .9rem; line-height: 1.18; }
}

@media (max-width: 390px) {
  .header-content { gap: 12px; }
  .button--small { max-width: 137px; font-size: .72rem; }
}

h2 {
  margin: 0;
  color: #123b67;
  font-size: clamp(2rem, 3vw, 3.35rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
}

.manager-section { background: var(--white); }

.manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
  align-items: center;
  gap: clamp(48px, 9vw, 150px);
}

.manager-copy { padding: 68px 0; }

.manager-copy > p:not(.manager-name) {
  max-width: 470px;
  margin: 20px 0 19px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.32;
}

.support-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.28;
  list-style: none;
}

.support-list li {
  position: relative;
  padding-left: 30px;
}

.support-list li::before {
  content: "✓";
  position: absolute;
  top: .08em;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #1688cb;
  color: var(--white);
  font-size: .83em;
  font-weight: 800;
  line-height: 1;
}

.manager-name {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.22;
}

.manager-name strong { color: var(--ink); font-size: 1.13rem; }

.marian-photo { align-self: stretch; margin: 0; overflow: hidden; }

.marian-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 535px;
  object-fit: cover;
  object-position: center 38%;
}

.process-section {
  padding: 42px 0 44px;
  background: radial-gradient(ellipse at 12% 0%, #245879, transparent 65%), #153c5a;
  color: var(--white);
}
.process-section h2 { color: var(--white); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.process-map { position: relative; margin-top: 30px; }
.process-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.process-connectors path { fill: none; stroke: #6bb4df; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 66px 34px;
  margin: 0;
  padding: 0 36px 0 0;
  list-style: none;
}
.process-list li { position: relative; grid-column: span 2; padding-left: 66px; min-width: 0; }
.process-list li:nth-child(4) { grid-column: 2 / span 2; }
.process-list li:nth-child(5) { grid-column: 4 / span 2; }
.process-list span {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #82c9f3; color: #153c5a;
  font-size: 25px; font-weight: 600; line-height: 1;
}
.process-list strong { display: block; width: fit-content; max-width: 100%; font-size: 19px; font-weight: 600; line-height: 1.2; }
.process-list p { max-width: 240px; margin: 7px 0 0; color: #deedf6; font-size: 16px; line-height: 1.35; }

.payment-section { padding: 58px 0 62px; background: var(--white); }

.payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr);
  gap: 66px;
  margin-top: 29px;
}

.payment-grid p { margin: 0; font-size: 1.14rem; font-weight: 700; }

.payment-primary {
  border-right: 2px solid #a8c3d5;
  padding-right: 54px;
}

.payment-primary > strong {
  display: block;
  margin-top: 1px;
  color: #1178b7;
  font-family: Lora, Georgia, serif;
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1.03;
}

.payment-primary > strong span { font-size: .6em; letter-spacing: -.04em; }
.payment-grid small { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.25; }
.payment-total { align-self: center; }
.payment-total p { color: var(--ink-soft); }
.payment-total strong { color: #1178b7; font-family: Lora, Georgia, serif; font-size: clamp(1.85rem, 3.1vw, 3.25rem); }

.reviews-section { padding: 58px 0 65px; background: var(--white); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 28px;
}

blockquote { margin: 0; }
blockquote p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; font-style: normal; line-height: 1.25; }
blockquote footer { margin-top: 19px; color: var(--ink-soft); font-size: .94rem; line-height: 1.18; }
blockquote strong { color: var(--ink); }

.partners-section { padding: 25px 0 27px; background: var(--pale-blue); }
.partners-section h2 { font-size: clamp(1.45rem, 2.05vw, 2rem); letter-spacing: -.025em; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
}

.partner { min-width: 0; }
.partner + .partner { border-left: 1px solid #a8c3d5; padding-left: 26px; }
.partner > p { margin: 0 0 9px; color: var(--ink-soft); font-size: .82rem; font-weight: 600; line-height: 1.15; }
.partner-content { display: flex; align-items: center; gap: 13px; min-width: 0; }
.partner-logo { display: block; flex: 0 0 auto; object-fit: contain; }
.partner-logo--uscis { width: min(48%, 180px); height: auto; }
.partner-logo--inm { width: min(41%, 146px); height: auto; }
.partner-meta { min-width: 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.16; }
.partner-meta strong, .partner-meta span { display: block; }
.partner-meta strong { color: var(--ink); font-size: .82rem; line-height: 1; }

.contact-section { padding: 63px 0 69px; background: var(--white); text-align: center; }
.contact-section h2 { font-size: clamp(2rem, 3.15vw, 3.4rem); }
.contact-section p { margin: 13px 0 25px; color: var(--ink-soft); font-size: 1.2rem; }

.site-footer { border-top: 1px solid #b9ccda; padding: 22px 0 28px; background: var(--white); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--ink-soft); font-size: .85rem; }
.footer-content p { margin: 0; }
.footer-content strong { color: var(--ink); }
.footer-content div { display: flex; align-items: center; gap: 36px; }
.footer-content a { color: inherit; text-decoration: none; }
.footer-content a:hover, .footer-content a:focus-visible { color: var(--ink); text-decoration: underline; }

.legal-back { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal-back:hover, .legal-back:focus-visible { text-decoration: underline; }
.legal-page { padding: 74px 0 88px; background: #f4f8fb; }
.legal-content { max-width: 820px; }
.legal-kicker { margin: 0 0 8px; color: var(--blue); font-size: .9rem; font-weight: 600; }
.legal-content h1 { margin: 0; color: var(--ink); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; }
.legal-updated { margin: 14px 0 44px; color: var(--ink-soft); }
.legal-content h2 { margin: 32px 0 9px; color: var(--ink); font-size: 1.45rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.55; }
.legal-content a { color: var(--blue); }

@media (max-width: 1000px) {
  .manager-grid { gap: 38px; }
  .manager-copy { padding: 53px 0; }
  .marian-photo img { min-height: 500px; }
  .process-list { gap: 34px 26px; }
  .payment-grid { gap: 40px; }
}

@media (max-width: 767px) {
  h2 { font-size: 1.65rem; }
  .manager-grid { width: 100%; grid-template-columns: 48% minmax(0, 1fr); gap: 0; align-items: stretch; }
  .manager-copy { grid-column: 2; grid-row: 1; padding: 30px 14px 28px 14px; min-width: 0; }
  .manager-copy h2 { padding: 0; font-size: clamp(26px, 7.8vw, 44px); line-height: .99; letter-spacing: -.035em; color: #06376b; }
  .marian-photo { grid-column: 1; grid-row: 1; position: relative; margin: 0; }
  .manager-copy > p:not(.manager-name) { margin: 16px 0 18px; font-size: 14px; line-height: 1.3; color: #373e50; }
  .manager-name { margin: 24px 0 0; font-size: 13px; color: #0877be; }
  .manager-name strong { display: inline-block; margin-bottom: 3px; font-size: 17px; color: #06376b; }
  .marian-photo img { position: absolute; inset: 0; width: 100%; min-height: 0; height: 100%; object-fit: cover; object-position: 34% center; }
  .support-list { gap: 0; font-size: 14px; line-height: 1.23; color: #06376b; }
  .support-list li { padding: 13px 0 13px 29px; border-bottom: 1px solid #add7f5; }
  .support-list li:last-child { border-bottom: 0; }
  .support-list li::before { top: 13px; width: 21px; height: 21px; font-size: 14px; }

  .payment-section, .reviews-section { padding: 30px 0; }
  .payment-grid, .reviews-grid { grid-template-columns: 1fr; gap: 32px; }
  .payment-grid { margin-top: 27px; }
  .payment-primary { border-right: 0; border-bottom: 2px solid #a8c3d5; padding: 0 0 19px; }
  .payment-total { align-self: start; text-align: center; }
  .payment-total p { display: grid; gap: 3px; justify-items: center; }
  .payment-total strong { display: block; font-size: 2.15rem; }
  .payment-total small { margin-right: auto; margin-left: auto; max-width: 290px; }
  .reviews-grid { margin-top: 27px; }
  .partners-section { padding: 18px 0; }
  .partners-section h2 { font-size: 1.45rem; }
  .partners-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .partner + .partner { border-left: 0; border-top: 1px solid #a8c3d5; padding: 12px 0 0; }
  .partner > p { margin-bottom: 6px; font-size: 13px; }
  .partner-content { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 16px; align-items: center; }
  .partner-logo--uscis, .partner-logo--inm { width: 100%; height: auto; }
  .partner-meta { font-size: 14px; line-height: 1.2; }
  .partner-meta strong { font-size: 15px; line-height: 1.2; }
  .partner-meta br { display: none; }

  .contact-section { padding: 50px 0; text-align: left; }
  .contact-section p { font-size: 1.12rem; line-height: 1.3; }
  .footer-content, .footer-content div { align-items: flex-start; flex-direction: column; }
  .footer-content { gap: 18px; }
  .footer-content div { gap: 13px; }
  .legal-page { padding: 45px 0 58px; }
  .legal-content h2 { margin-top: 28px; font-size: 1.28rem; }
  .legal-content p { font-size: 1rem; }
}


@media (min-width: 768px) and (max-width: 1000px) {
  .process-list { gap: 54px 24px; padding-right: 24px; }
  .process-list li { padding-left: 46px; }
  .process-list span { width: 34px; height: 34px; font-size: 19px; }
  .process-list strong { font-size: 15px; max-width: calc(100% - 16px); }
  .process-list li:nth-child(4) strong { max-width: calc(100% - 32px); }
  .process-list p { font-size: 13px; }
}
@media (max-width: 767px) {
  .process-section { padding: 34px 0; }
  .process-map { margin-top: 28px; }
  .process-list { grid-template-columns: 1fr; gap: 32px; padding: 0; }
  .process-list li, .process-list li:nth-child(4), .process-list li:nth-child(5) { grid-column: 1; padding-left: 62px; }
  .process-list span { width: 42px; height: 42px; font-size: 22px; }
  .process-list strong { font-size: 19px; }
  .process-list p { font-size: 16px; }
}
