:root {
  --bg: #f7f3eb;
  --surface: #ffffff;
  --surface-soft: #efe8dc;
  --text: #161616;
  --muted: #6f6a61;
  --line: rgba(22, 22, 22, 0.12);
  --accent: #275f9b;
  --accent-dark: #173d66;
  --dark: #111111;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 28px);
  padding: 12px clamp(16px, 4vw, 64px);
  background: rgba(247, 243, 235, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; }
.brand img { width: clamp(84px, 10vw, 116px); height: auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
}
.nav a {
  color: var(--muted);
  padding: 8px 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }

.section {
  width: 100%;
  padding: clamp(58px, 8vw, 128px) clamp(16px, 6vw, 96px);
}
.section > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 6vw, 96px);
  background:
    radial-gradient(circle at 78% 18%, rgba(39, 95, 155, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
}
.hero > * { max-width: none; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}
h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn.primary { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn.secondary { background: rgba(255,255,255,0.58); color: var(--text); }
.btn:hover { transform: translateY(-1px); }

.hero-card {
  width: 100%;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: min(320px, 78%);
  margin: 0 auto clamp(22px, 3vw, 28px);
}
.hero-card p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 17px); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 110px);
  background: var(--dark);
  color: #fff;
}
.split > * { max-width: none; }
.split .eyebrow { color: #91b8df; }
.text-block { color: rgba(255,255,255,0.76); font-size: clamp(17px, 1.8vw, 22px); }
.text-block p:last-child { margin-bottom: 0; }

.section-head { margin-bottom: clamp(30px, 5vw, 42px); }
.centered { text-align: center; display: grid; justify-items: center; }
.grid { display: grid; gap: clamp(14px, 2vw, 18px); }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  min-height: 300px;
  padding: clamp(22px, 2.6vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.06);
}
.card span {
  display: inline-flex;
  margin-bottom: clamp(34px, 5vw, 56px);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.card p { color: var(--muted); margin-bottom: 0; }

.cases { background: var(--surface-soft); }
.case-list { display: grid; border-top: 1px solid var(--line); }
.case-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  gap: clamp(10px, 3vw, 24px);
  padding: clamp(20px, 3vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}
.case-list strong { font-size: clamp(18px, 2vw, 20px); }
.case-list span { color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); }

.clients { background: #fff; }
.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  align-items: center;
}
.logos img {
  width: 100%;
  height: clamp(78px, 10vw, 104px);
  object-fit: contain;
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter .18s ease, opacity .18s ease;
}
.logos img:hover { filter: grayscale(0); opacity: 1; }

.contact {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.contact > * { max-width: none; }
.contact-card {
  padding: clamp(26px, 4vw, 34px);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.contact-card a { color: #bcd8f2; }
.contact-card .note { color: rgba(255,255,255,0.68); margin-bottom: 0; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer img { width: clamp(76px, 9vw, 92px); }
.footer p { margin: 0; }

@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { max-width: 560px; }
  .split { gap: 28px; }
}

@media (max-width: 720px) {
  :root { --radius: 22px; }
  .site-header {
    position: sticky;
    align-items: center;
    padding: 10px 14px;
  }
  .nav {
    gap: 4px 10px;
    max-width: 220px;
    line-height: 1.1;
  }
  .nav a { padding: 5px 0; }
  .section { padding: 56px 16px; }
  .hero { padding-top: 42px; }
  h1 { font-size: clamp(38px, 13vw, 58px); letter-spacing: -0.06em; }
  h2 { font-size: clamp(28px, 9vw, 42px); }
  .lead { font-size: 17px; }
  .actions { width: 100%; margin-top: 28px; }
  .btn { width: 100%; min-height: 48px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .case-list div { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { font-size: 15px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .site-header {
    align-items: flex-start;
    gap: 8px;
  }
  .brand img { width: 78px; }
  .nav {
    max-width: 190px;
    font-size: 11.5px;
    gap: 2px 8px;
  }
  .section { padding-left: 14px; padding-right: 14px; }
  .hero { padding-top: 34px; }
  .hero-card img { width: 82%; }
  .logos { grid-template-columns: 1fr; }
  .logos img { height: 86px; }
}

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