:root {
  --ink: #172033;
  --ink-soft: #4d5b6e;
  --navy: #163a5f;
  --denim: #2a6294;
  --foam: #f3f6f8;
  --paper: #f7f4ef;
  --white: #fffcf8;
  --line: rgba(23, 32, 51, 0.12);
  --sand: #b8884f;
  --sand-deep: #8d6233;
  --clay: #efe4d4;
  --shadow: 0 18px 50px rgba(22, 40, 68, 0.12);
  --radius: 22px;
  --max: 1120px;
  --header: 92px;
  --font: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--sand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--denim);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.split h2,
h2.size-20 { font-size: 20px; }
h3 { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.35; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 68px;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a[aria-current="page"],
.nav a:hover { color: var(--navy); }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero h1 {
  font-size: 20px;
  color: var(--sand-deep);
  text-align: center;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: white; }
.btn-ghost {
  color: #2c3444;
  border-color: #d5d8de;
  background: linear-gradient(180deg, #fbfcfd 0%, #e7ebf0 46%, #d5dae2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(23,32,51,.08);
  text-align: center;
}
.btn-ghost:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 46%, #e0e4ea 100%);
}
.btn:hover { transform: translateY(-1px); }

.hero-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e7f1f8;
}
.hero-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 32px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px auto 10px;
}
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}
.metric b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.metric span { color: var(--ink-soft); font-size: .92rem; }
.metric-photo {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.58), rgba(255, 252, 248, 0.72)),
    url("../images/rnd.jpg") center 42% / cover no-repeat;
}
.metric-photo b { font-size: 1.35rem; }
.metric-photo p {
  max-width: 62rem;
  margin: 8px auto 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.metric-visual {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  background: #e8f3fb;
}
.metric-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.prose p { color: var(--ink-soft); }

.panel-grid, .card-grid, .case-grid {
  display: grid;
  gap: 16px;
}
.panel-grid { grid-template-columns: 1fr 1fr; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.case-grid { grid-template-columns: 1fr 1fr; }
.panel, .card, .case, .news-item, .spec, .form, .contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel, .card, .case { padding: 24px; }
.panel h3 span, .kicker {
  display: block;
  color: var(--sand-deep);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.panel p, .card p, .case p, .news-item p { color: var(--ink-soft); margin-bottom: 0; }

.band {
  background:
    linear-gradient(180deg, rgba(16, 32, 52, .68), rgba(16, 32, 52, .72)),
    url("../images/handshake.jpg") center center / cover no-repeat;
  color: white;
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  align-items: flex-start;
  overflow: hidden;
}
.band > div { width: 100%; }
.band h2 { text-align: center; }
.band p { color: #fff; margin-bottom: 0; text-align: center; }
.band p strong { font-weight: 700; }
.band .btn-primary {
  align-self: center;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  color: #2c3444;
  border-color: #d5d8de;
  background: linear-gradient(180deg, #fbfcfd 0%, #e7ebf0 46%, #d5dae2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(23,32,51,.08);
  text-align: center;
}
.band .btn-primary:hover {
  color: #2c3444;
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 46%, #e0e4ea 100%);
}

.page-hero { padding: 48px 0 10px; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.page-hero h1.size-20 { font-size: 20px; }
.page-hero .eyebrow.size-20 { font-size: 20px; }
.page-hero .eyebrow.size-22 { font-size: 22px; }
.page-hero.sample-hero {
  background:
    linear-gradient(180deg, rgba(247,244,239,.74), rgba(247,244,239,.58)),
    url("../images/product-sample.jpg") center 42% / cover no-repeat;
  border-radius: 28px;
  padding: 28px 22px 22px;
}
.page-hero.sample-hero .eyebrow { color: #4a3018; }
.page-hero.sample-hero .lead {
  color: #3a4860;
  font-weight: 700;
}

.spec { padding: 8px 28px; }
.spec div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec div:last-child { border-bottom: 0; }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--ink-soft); }

.timeline { display: grid; gap: 14px; }
.section-cta {
  margin: 28px 0 0;
  text-align: center;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}
.step em {
  font-style: normal;
  font-weight: 700;
  color: var(--sand-deep);
  font-size: 1.2rem;
}

.news-list { display: grid; gap: 14px; }
.news-item { padding: 22px 24px; }
.news-item time { color: var(--sand-deep); font-size: .85rem; font-weight: 700; }
.news-item a { color: var(--denim); }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
}
.contact-card, .form { padding: 26px; }
.contact-card a { color: var(--denim); }
.contact-card li { margin: 12px 0; }
.form { display: grid; gap: 12px; }
label { font-weight: 600; font-size: .92rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 140px; resize: vertical; }
.form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}
.form-status { min-height: 1.4em; color: var(--sand-deep); font-weight: 600; }

.site-footer {
  margin-top: 20px;
  padding: 36px 0 48px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.site-footer a { color: var(--denim); }
.fine { font-size: .88rem; max-width: 46rem; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero, .split, .panel-grid, .card-grid, .case-grid, .contact-layout, .metrics, .footer-grid {
    grid-template-columns: 1fr;
  }
  .band { flex-direction: column; align-items: flex-start; }
  .spec div, .step { grid-template-columns: 1fr; gap: 4px; }
}
