:root {
  --ink: #162033;
  --muted: #5f6c7b;
  --soft: #f4f8fb;
  --soft-blue: #dff3ff;
  --blue: #63b8e8;
  --blue-dark: #247ba8;
  --line: #d7e1ea;
  --panel: #ffffff;
  --gray: #eef2f5;
  --shadow: 0 24px 70px rgba(32, 59, 83, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 252, 0.9);
  border-bottom: 1px solid rgba(215, 225, 234, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  color: var(--blue);
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(99, 184, 232, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:not(.button):hover {
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue-dark);
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(36, 123, 168, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #17698f;
  box-shadow: 0 18px 30px rgba(36, 123, 168, 0.28);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.button-secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--blue-dark);
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(223, 243, 255, 0.95), rgba(247, 250, 252, 0.92) 55%),
    #f7fafc;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 32, 51, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 51, 0.07) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.hero-inner {
  position: relative;
  min-height: calc(92vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  padding: 74px 0 80px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 640px;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.stats-grid p,
.service-card p,
.timeline p,
.section-heading p,
.split-section > div > p,
.cta-inner p,
.application-intro p {
  color: var(--muted);
}

.trust-strip {
  padding: 28px 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  color: #6c7987;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 120px 0;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading p {
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 47, 65, 0.07);
}

.icon-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 64px;
}

.split-section > div > p {
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stats-grid article {
  min-height: 206px;
  padding: 28px;
  background: linear-gradient(180deg, #fff, #f4f8fb);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.stats-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.process-section {
  width: 100%;
  background: #edf4f8;
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 270px;
  padding: 30px;
  background: #fff;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 30px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  border-radius: 8px;
  font-weight: 900;
}

.cta-section {
  padding: 112px 0;
  background: linear-gradient(135deg, #dff3ff 0%, #f6f9fb 48%, #e9eef3 100%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner div {
  max-width: 720px;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.footer {
  padding: 36px 0;
  background: #f7fafc;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--blue-dark);
}

.application-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(223, 243, 255, 0.9), rgba(247, 250, 252, 0.96) 46%),
    #f7fafc;
}

.application-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 58px;
  padding: 74px 0;
}

.application-intro h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.application-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.application-details span {
  padding: 9px 12px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.closed-card {
  position: relative;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(30px, 6vw, 64px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.closed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 32, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 51, 0.055) 1px, transparent 1px);
  background-size: 90px 90px;
  pointer-events: none;
}

.closed-card > * {
  position: relative;
}

.closed-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 12px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  border: 1px solid rgba(99, 184, 232, 0.4);
  border-radius: 8px;
  font-weight: 900;
}

.closed-status span {
  width: 10px;
  height: 10px;
  background: var(--blue-dark);
  border-radius: 999px;
}

.closed-card h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.closed-card p {
  max-width: 680px;
  color: var(--muted);
}

.closed-list {
  display: grid;
  gap: 12px;
}

.closed-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.closed-list span {
  grid-row: span 2;
  color: var(--blue-dark);
  font-weight: 900;
}

.closed-list strong {
  color: var(--ink);
}

.closed-list p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-inner,
  .split-section,
  .application-hero {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 58px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(31, 47, 65, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links .button {
    margin-top: 6px;
  }

  h1 {
    font-size: clamp(2.35rem, 11.8vw, 3.35rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-inner {
    gap: 26px;
    padding: 32px 0 36px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .stats-grid,
  .service-grid,
  .timeline,
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 86px 0;
  }

  .section-heading {
    text-align: left;
  }

  .timeline article {
    min-height: 220px;
  }

  .cta-section {
    padding: 82px 0;
  }

  .application-hero {
    padding: 46px 0;
  }

  .closed-card {
    min-height: 520px;
  }
}
