:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --text: #1e2734;
  --muted: #5b6777;
  --brand: #123b72;
  --brand-dark: #0f2f5c;
  --line: #dbe3ee;
  --shadow: 0 20px 50px rgba(18, 59, 114, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  --max-narrow: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(18, 59, 114, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 45%, #f3f6fb 100%);
  color: var(--text);
  font-family: Inter, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

.narrow {
  width: min(var(--max-narrow), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section { padding: 72px 0; }
.section-first { padding: 24px 0 64px; }
.section-last { padding: 56px 0 88px; }

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(238,243,249,0.85) 100%);
}

.center { text-align: center; }
.center-text { text-align: center; }
.compact-top { margin-top: 22px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(18, 59, 114, 0.06);
}

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

.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { width: clamp(150px, 16vw, 220px); height: auto; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 15px;
}

.nav a:not(.btn):hover { background: rgba(18, 59, 114, 0.06); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 16px; }

.btn-primary {
  background: linear-gradient(180deg, #184987 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 12px 25px rgba(18, 59, 114, 0.18);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(18, 59, 114, 0.14);
  color: var(--brand);
}

.nav-contact-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(180deg, #1f4a86 0%, #123b72 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(18, 59, 114, 0.18);
}

.nav-contact-btn:hover {
  background: #0f2f5c;
  color: #ffffff !important;
}

/* Panels */

.panel,
.mini-card,
.step-card,
.case-card,
.content-block {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.94);
}

.panel-lg,
.content-block {
  padding: 34px;
}

.mini-card,
.step-card {
  padding: 28px;
}

/* Typography */

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand);
}

.hero-copy h1,
.case-hero h1,
.section-header h2,
.content-block h2 {
  margin: 0;
  color: var(--brand);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
  max-width: 13ch;
}

.case-hero h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.45rem);
  max-width: 16ch;
}

.hero-text,
.section-header p,
.content-block p,
.case-card-body p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-header {
  margin: 0 auto 30px;
}

.section-header h2,
.content-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions-center { justify-content: center; }

.hero-visual-shell {
  padding: 0;
  overflow: hidden;
}

/* Real images */

.media-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #eef3f9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media {
  min-height: 360px;
}

.case-thumb {
  aspect-ratio: 16 / 10;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.case-hero-media {
  min-height: 360px;
}

/* Grids */

.icon-grid,
.steps-grid,
.case-grid,
.case-hero-grid {
  display: grid;
  gap: 20px;
}

.icon-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.case-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: stretch;
}

/* Cards */

.mini-card h3,
.step-card h3,
.case-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.22rem;
  line-height: 1.2;
}

.mini-card p,
.step-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(18,59,114,.08);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 14px;
}

.case-card {
  overflow: hidden;
  padding: 0;
}

.case-image-link {
  display: block;
}

.case-image-link:hover img {
  transform: scale(1.02);
}

.case-card .media-frame img {
  transition: transform .28s ease;
}

.case-card-body {
  padding: 28px;
}

.case-subtitle {
  margin: 0 0 18px !important;
  color: var(--brand-dark) !important;
  font-weight: 600;
}

/* KPI pills */

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.kpi-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18,59,114,.08);
  color: var(--brand-dark);
  font-size: .95rem;
  font-weight: 700;
}

.kpi-row-large span { min-height: 44px; }

.content-block + .content-block {
  margin-top: 18px;
}

.case-note {
  margin-top: 18px !important;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 59, 114, 0.12);
}

.footer-wrap strong { color: var(--brand); }

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid,
  .case-grid,
  .case-hero-grid,
  .icon-grid-4,
  .steps-grid,
  .icon-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .case-hero h1 {
    max-width: none;
  }

  .hero-media,
  .case-hero-media {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .section,
  .section-first,
  .section-last {
    padding: 52px 0;
  }

  .panel-lg,
  .content-block,
  .mini-card,
  .step-card,
  .case-card-body {
    padding: 24px;
  }

  .hero-media,
  .case-hero-media {
    min-height: 260px;
  }

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