:root {
  --ink: #0c1116;
  --ink-2: #131a21;
  --paper: #fff;
  --ground: #f3f6f8;
  --text: #10161c;
  --steel: #526574;
  --mist: #7f919f;
  --line: #dce4ea;
  --line-soft: #eaf0f4;
  --line-dark: #26313a;
  --accent: #0b6fa8;
  --accent-br: #00a3f5;
  --wash: #e7f4fc;
  --good: #17795e;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --disp: "Unbounded", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
}

body.theme-orange {
  --ground: #f6f5f2;
  --steel: #63696e;
  --line: #e2e0db;
  --line-soft: #edebe6;
  --accent: #b14e12;
  --accent-br: #ff8a3d;
  --wash: #fbeee3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding-inline: 28px; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  transform: translateY(-150%); padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ink); font-weight: 700;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent-br); outline-offset: 3px; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.topbar.solid { background: rgba(12, 17, 22, .92); border-color: rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.topbar__inner { height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%; color: var(--accent-br); font: 600 12px/1 var(--mono); letter-spacing: .06em;
}
.brand__name { display: block; font: 500 15px/1.15 var(--disp); letter-spacing: .01em; }
.brand__sub { display: block; margin-top: 5px; color: #aebbc5; font: 500 10px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.desktop-nav a { color: #eaf0f4; text-decoration: none; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover { color: var(--accent-br); }
.topbar__phone { color: #fff; text-decoration: none; font: 500 14px/1 var(--mono); white-space: nowrap; }
.burger {
  display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: currentColor; }
.mnav {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 76px 32px 40px; background: rgba(12,17,22,.985); color: #fff;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease;
}
.mnav.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mnav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; font: 500 clamp(22px,6vw,34px)/1.25 var(--disp); }
.mnav__phone { margin-top: 12px; border: 0 !important; color: var(--accent-br); font: 500 18px/1.4 var(--mono) !important; }
.mnav__close {
  position: absolute; top: 18px; right: 24px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; background: transparent; color: #fff; font-size: 26px; cursor: pointer;
}

.hero {
  position: relative; min-height: 590px; display: grid; align-items: end; overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent-br) 24%, transparent), transparent 35%),
    linear-gradient(130deg, #0c1116 0%, #16232d 58%, #0c1116 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.hero--media { background-position: center; background-size: cover; }
.hero--media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,17,22,.96) 0%, rgba(12,17,22,.76) 54%, rgba(12,17,22,.44) 100%); }
.hero__content { position: relative; z-index: 2; max-width: 940px; padding-top: 160px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--accent-br); font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 940px; margin-bottom: 24px; font: 500 clamp(38px,5.2vw,66px)/1.08 var(--disp); letter-spacing: -.035em; }
.hero__lead { max-width: 760px; margin-bottom: 34px; color: #d6e0e7; font-size: clamp(18px,2vw,22px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 26px;
  border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 700; cursor: pointer;
}
.btn--primary { background: var(--accent-br); color: #06121a; }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }

.ruler {
  height: 14px; background-position: bottom; background-repeat: repeat-x;
  background-image: repeating-linear-gradient(to right,var(--accent-br) 0 1px,transparent 1px 72px), repeating-linear-gradient(to right,var(--line) 0 1px,transparent 1px 12px);
}
.ruler--dark { background-image: repeating-linear-gradient(to right,var(--accent-br) 0 1px,transparent 1px 72px), repeating-linear-gradient(to right,var(--line-dark) 0 1px,transparent 1px 12px); }
.section { padding-block: 100px; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--wash { background: var(--wash); }
.sec-head { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: start; gap: 22px; margin-bottom: 48px; }
.sec-n { padding-top: 10px; color: var(--accent); font: 600 13px/1 var(--mono); letter-spacing: .1em; }
.section--dark .sec-n { color: var(--accent-br); }
.sec-head h2 { max-width: 900px; margin: 0; font: 500 clamp(30px,4vw,44px)/1.15 var(--disp); letter-spacing: -.025em; }
.lead { max-width: 820px; color: var(--steel); font-size: 20px; }
.section--dark .lead { color: #bac7d0; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.card h3 { margin-bottom: 12px; font: 600 22px/1.3 var(--sans); }
.card p:last-child, .rich-text > *:last-child { margin-bottom: 0; }
.card__meta { display: block; margin-bottom: 16px; color: var(--accent); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.card__link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.split { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); align-items: center; gap: clamp(34px,6vw,80px); }
.split--reverse > :first-child { order: 2; }
.media-card { overflow: hidden; min-height: 390px; border-radius: 18px; background: #d9e2e8; }
.media-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.rich-text { color: var(--steel); }
.rich-text h2, .rich-text h3 { color: var(--text); }
.rich-text a { color: var(--accent); }
.rich-text ul { padding-left: 22px; }
.timeline { counter-reset: step; }
.timeline .card { position: relative; padding-top: 56px; }
.timeline .card::before { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 24px; right: 24px; color: var(--accent-br); font: 600 13px/1 var(--mono); }
.document-card { display: flex; flex-direction: column; min-height: 260px; }
.document-card .card__actions { margin-top: auto; }
.certificate-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f6f8f9; border-radius: 10px; }
.contact-card a { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 16px; overflow: hidden; }
.fact { padding: 24px; background: var(--paper); }
.fact dt { margin-bottom: 8px; color: var(--steel); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.form-card { padding: 32px; border: 1px solid var(--line-dark); border-radius: 16px; background: #151d24; }
.form-card h3 { margin-bottom: 22px; color: #fff; font: 600 24px/1.3 var(--sans); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1/-1; }
.field label { color: #dce5eb; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #3a4853; border-radius: 9px;
  background: #0e151b; color: #fff; font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; color: #bdc9d1; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.consent a { color: #fff; }
.field-error { display: none; margin-top: 6px; color: #ffd1c4; font-size: 13px; line-height: 1.35; }
.field-error.visible { display: block; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: #eef8f4; color: #125f49; }
.alert-danger { background: #fff0f0; color: #962c2c; }

.apply { padding-block: 86px; background: var(--ink); color: #fff; }
.apply__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.8fr); align-items: start; gap: 56px; }
.apply h2 { margin-bottom: 20px; font: 500 clamp(32px,4vw,48px)/1.15 var(--disp); }
.apply p { color: #becad2; font-size: 19px; }

.site-footer { padding: 72px 0 28px; background: #080c10; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3,minmax(0,1fr)); gap: 36px; }
.footer-col h2 { margin-bottom: 18px; color: #9fadb8; font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 9px 0; color: #e3e9ed; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent-br); }
.footer-note { max-width: 270px; margin-top: 20px; color: #aab7c0; font-size: 14px; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 22px; border-top: 1px solid #26313a; color: #b8c4cc; font-size: 14px; }
.footer-legal a { color: #fff; }
.fabs { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; gap: 10px; transition: opacity .2s, transform .2s; }
.fabs.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.fab--wa { background: #16795e; }
.fab svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1040px) {
  .desktop-nav, .topbar__phone { display: none; }
  .burger { display: flex; }
  .grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .topbar__inner { height: 70px; }
  .brand__sub { display: none; }
  .hero { min-height: 540px; }
  .hero__content { padding-top: 132px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(34px,10vw,48px); }
  .hero__lead { font-size: 18px; }
  .section { padding-block: 68px; }
  .sec-head { grid-template-columns: minmax(0,1fr); gap: 10px; margin-bottom: 32px; }
  .sec-n { padding: 0; }
  .grid--2, .grid--3, .grid--4, .split, .apply__grid { grid-template-columns: minmax(0,1fr); }
  .split--reverse > :first-child { order: initial; }
  .media-card, .media-card img { min-height: 280px; }
  .facts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .footer-legal { flex-direction: column; }
  .fabs { right: 12px; bottom: 12px; flex-direction: row; }
  .fab { width: 50px; height: 50px; }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 430px) {
  .wrap { padding-inline: 15px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name {
    max-width: none;
    font-size: 10px;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .burger { width: 44px; height: 44px; flex: 0 0 44px; }
  .mnav { padding-inline: 22px; }
  .hero h1 { font-size: clamp(30px,9.5vw,40px); overflow-wrap: anywhere; }
  .sec-head h2, .card h3 { overflow-wrap: anywhere; hyphens: auto; }
  .actions { display: grid; }
  .btn { width: 100%; }
  .card, .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
