:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-muted: #eef4f9;
  --text: #17212f;
  --muted: #5f6f82;
  --line: #d9e2ec;
  --primary: #175c91;
  --primary-dark: #11496f;
  --accent: #2f8f83;
  --shadow: 0 18px 40px rgba(22, 40, 62, 0.08);
  --radius: 8px;
  --container: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  color: var(--primary);
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.1rem;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 5;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.85);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.language-switcher a[aria-current="true"] {
  color: var(--text);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button-secondary {
  background: #fff;
  color: var(--primary);
}

.button-secondary:hover {
  background: var(--surface-muted);
  color: var(--primary-dark);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 143, 131, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead,
.page-hero p {
  max-width: 690px;
  font-size: 1.16rem;
}

.system-panel {
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  gap: 7px;
  padding-bottom: 26px;
}

.panel-header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7d4e0;
}

.system-node {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 24px auto;
  border: 1px solid #b8d3e7;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7fbff, #e5f1f9);
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 850;
}

.system-lines {
  height: 1px;
  margin: 26px 26px 0;
  background: linear-gradient(90deg, transparent, #9bbcd1, transparent);
}

.node-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.node-list span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 76px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: #b6c8d8;
  box-shadow: 0 14px 28px rgba(24, 45, 70, 0.06);
  transform: translateY(-2px);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 7px;
  background: #e8f2f8;
  color: var(--primary);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.split p {
  margin-top: 14px;
  max-width: 520px;
}

.workflow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--primary);
  font-weight: 800;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344457;
  font-weight: 650;
}

.cta-band {
  padding-top: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid #bed2e2;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #edf6f8);
}

.cta-inner p {
  max-width: 680px;
  margin-top: 10px;
}

.page-hero {
  padding: 72px 0 46px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.narrow {
  max-width: 820px;
  display: grid;
  gap: 16px;
}

.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 44px;
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.aside-panel,
.contact-details,
.form-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.aside-panel h2,
.contact-details h2,
.form-panel h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #334357;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.compact {
  gap: 10px;
}

.contact-details dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contact-details dt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
}

.contact-departments {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-departments h3 {
  font-size: 1rem;
}

.contact-departments article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfd;
}

.contact-departments h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.contact-departments p {
  font-size: 0.92rem;
}

.contact-departments a {
  width: fit-content;
  color: var(--primary);
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #344457;
  font-weight: 650;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d5df;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(23, 92, 145, 0.18);
  border-color: var(--primary);
}

.contact-form [aria-invalid="true"] {
  border-color: #b84242;
}

.form-note,
.form-status {
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4em;
  color: var(--primary);
  font-weight: 650;
}

.legal-list {
  display: grid;
  gap: 28px;
  max-width: 860px;
}

.legal-list h2 {
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: #101b28;
  color: #d8e3ec;
}

.site-footer p,
.site-footer address,
.site-footer a,
.footer-bottom {
  color: #aebdca;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
}

.site-footer address {
  font-style: normal;
}

.site-footer div:last-child a {
  display: block;
  margin-bottom: 7px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 227, 236, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .split,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section,
  .page-hero {
    padding-block: 48px;
  }

  .system-panel {
    min-height: auto;
    padding: 18px;
  }

  .node-list,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
