:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --panel: #ffffff;
  --ink: #111111;
  --text: #151515;
  --muted: #252a31;
  --line: #d8dde3;
  --blue: #174be8;
  --blue-dark: #0d2f9f;
  --soft: #eef2ff;
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 16px;
  font-weight: 900;
}

nav,
.header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

nav {
  justify-content: center;
}

nav a {
  color: var(--muted);
}

.header-contacts {
  justify-content: flex-end;
}

.header-contacts a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.hero,
.section {
  padding-left: clamp(16px, 4vw, 44px);
  padding-right: clamp(16px, 4vw, 44px);
}

.hero {
  padding-top: clamp(38px, 6vw, 78px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

.hero,
.summary-strip,
.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.76fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.case-type {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
}

.lead {
  max-width: 680px;
  font-size: clamp(18px, 1.6vw, 21px);
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 900;
}

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

.button.secondary {
  background: transparent;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.quick-facts span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.hero-showcase {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 240px 190px;
  gap: 12px;
}

.hero-showcase figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-main {
  grid-row: 1 / 3;
}

.showcase-main img {
  object-position: top center;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: clamp(42px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.summary-strip article {
  padding: 20px;
  background: #fff;
}

.summary-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.section {
  padding-top: clamp(54px, 7vw, 88px);
  padding-bottom: clamp(54px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 920px;
}

.section-head.compact h2 {
  max-width: 760px;
}

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

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.case-card.large,
.case-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.case-card.wide {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.case-card figure {
  margin: 0;
  background: #ece9e0;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card:not(.large):not(.wide) img {
  aspect-ratio: 4 / 3;
  object-position: top center;
}

.case-card.large img {
  min-height: 520px;
  object-position: top center;
}

.case-card.wide img {
  min-height: 380px;
}

.case-content {
  align-self: center;
  padding: clamp(20px, 3vw, 38px);
}

.steps,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.steps article,
.stack-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

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

.stack-grid article {
  min-height: 160px;
}

.drive-link div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.drive-link .eyebrow,
.drive-link h2,
.drive-link p {
  grid-column: 1;
}

.drive-link h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 42px);
}

.drive-link p {
  max-width: 720px;
}

.drive-link .button {
  grid-column: 2;
  grid-row: 2 / 4;
}

.about {
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.portrait {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #f1f1ee;
}

.portrait img {
  width: 100%;
  height: auto;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  nav,
  .header-contacts {
    justify-content: flex-start;
  }

  .hero,
  .case-card.large,
  .case-card.wide,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-rows: 280px 210px;
  }

  .case-card.large img,
  .case-card.wide img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .hero {
    display: block;
  }

  .summary-strip,
  .case-grid,
  .drive-link div,
  .steps,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .drive-link .eyebrow,
  .drive-link h2,
  .drive-link p,
  .drive-link .button {
    grid-column: 1;
    grid-row: auto;
  }

  .case-card.large,
  .case-card.wide {
    grid-column: span 1;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-top: 28px;
  }

  .showcase-main {
    grid-row: auto;
  }

  .hero-showcase img,
  .case-card.large img,
  .case-card.wide img,
  .case-card:not(.large):not(.wide) img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

@media (max-width: 520px) {
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.08;
    word-break: break-word;
  }

  h2 {
    font-size: 28px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-contacts a {
    padding: 7px 9px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .lead {
    font-size: 16px;
    line-height: 1.48;
    word-break: break-word;
  }

  .hero-copy,
  .lead,
  h1 {
    width: calc(100vw - 48px);
    max-width: 340px;
  }

  .hero-actions,
  .quick-facts {
    width: calc(100vw - 48px);
    max-width: 340px;
  }

  .quick-facts span {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-showcase,
  .drive-link div,
  .summary-strip,
  .case-card,
  .steps article,
  .stack-grid article,
  .about-layout {
    max-width: 100%;
  }

  .hero-showcase {
    width: calc(100vw - 48px);
    max-width: 340px;
  }
}

@media (max-width: 360px) {
  .hero-copy,
  .lead,
  h1,
  .hero-actions,
  .quick-facts,
  .hero-showcase {
    width: calc(100vw - 64px);
    max-width: 260px;
  }
}
