:root {
  --ink: #1c1b18;
  --muted: #625f57;
  --line: #ded8cd;
  --soft: #f6f2ea;
  --panel: #ffffff;
  --brand: #245246;
  --brand-2: #803b2c;
  --accent: #c59a4d;
  --ok: #2f6b4f;
  --shadow: 0 18px 45px rgba(28, 27, 24, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  background: #efe7da;
  color: var(--ink);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 30;
  background: rgba(255, 252, 247, .96);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 3px;
  font-weight: 800;
}

.brand strong { display: block; font-size: 19px; line-height: 1.1; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #2a3541;
  font-size: 14px;
}

.main-nav a:hover { color: var(--brand); }

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(23, 77, 87, .2); }
.btn.secondary { color: var(--brand); background: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }

.hero {
  position: relative;
  min-height: 660px;
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1c1b18;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 24, 20, .92), rgba(36, 82, 70, .68) 52%, rgba(128, 59, 44, .34)),
    linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45));
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 112px 0 80px 34px;
  max-width: 820px;
  border-left: 5px solid var(--accent);
}

.eyebrow {
  display: inline-block;
  color: #dfb05d;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

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

h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: .98;
  margin-bottom: 22px;
  letter-spacing: 0;
}

.hero p {
  font-size: 19px;
  color: rgba(255,255,255,.86);
  max-width: 680px;
}

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

.metric-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
}

.metric {
  padding: 24px;
  background: rgba(25, 24, 21, .72);
}

.metric strong { display: block; font-size: 25px; }
.metric span { color: rgba(255,255,255,.76); font-size: 13px; }

.section { padding: 84px 0; }
.section.soft { background: var(--soft); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin: 0;
  max-width: 720px;
}

.section-head p {
  max-width: 430px;
  color: var(--muted);
  margin: 0;
}

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.card-body { padding: 24px; }
.card h3 { font-size: 22px; line-height: 1.18; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.route-card {
  padding: 26px;
  border-left: 0;
  border-top: 4px solid var(--brand-2);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--line);
}

.route-card a {
  color: var(--brand);
  font-weight: 800;
  display: inline-block;
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}

.split img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.factory-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 18px;
}

.factory-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.factory-grid img:first-child {
  grid-row: span 2;
}

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

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

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: 3px;
  top: .55em;
  background: var(--ok);
  border-radius: 2px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
}

.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.contact-band {
  background: #26231f;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 42px;
}

.contact-grid p { color: rgba(255,255,255,.75); }

.contact-band .check-list li {
  color: rgba(255, 255, 255, .84);
}

.contact-band .check-list li::before {
  background: #35b36f;
}

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  padding: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.honeypot { position: absolute; left: -10000px; opacity: 0; }
.form-status { min-height: 24px; color: var(--brand); font-weight: 700; }

.site-footer {
  background: #181713;
  color: rgba(255,255,255,.75);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 26px;
}

.footer-grid h3 { color: #fff; font-size: 16px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: #fff; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.footer-link-button:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; font-size: 13px; }

.content-hero {
  padding: 86px 0;
  background: linear-gradient(135deg, #1c1b18, #245246);
  color: #fff;
}

.content-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
}

.content-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 19px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 28px;
}

.content-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child { border-bottom: 0; }

.content-section h2,
.content-aside h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.content-section p,
.content-aside p {
  color: var(--muted);
}

.content-section a,
.content-aside a,
.contact-band a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-aside {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--soft);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 24, .58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}

.modal.open { display: flex; }
.modal-card {
  background: #fff;
  width: min(440px, 100%);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cookie-notice {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.cookie-notice.open { display: flex; }
.cookie-notice strong { display: block; margin-bottom: 4px; }
.cookie-notice p { margin: 0; color: var(--muted); font-size: 14px; }
.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-notice .btn { min-height: 38px; padding: 0 14px; }
.cookie-preferences {
  display: none;
  margin-top: 12px;
  gap: 8px;
}
.cookie-notice.show-preferences .cookie-preferences { display: grid; }
.cookie-preferences label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.cookie-notice [data-cookie-save] { display: none; }
.cookie-notice.show-preferences [data-cookie-save] { display: inline-flex; }
.cookie-notice.show-preferences [data-cookie-manage] { display: none; }

@media (max-width: 940px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 10px 14px; padding: 10px 0; }
  .brand { min-width: 0; flex: 1 1 calc(100% - 58px); }
  .brand strong { font-size: 18px; }
  .brand span span { font-size: 11px; }
  .menu-toggle { display: block; }
  .main-nav {
    flex: 1 0 100%;
    width: 100%;
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .main-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 6px;
    background: var(--soft);
    font-weight: 800;
  }
  .header-actions .btn { display: none; }
  .hero { min-height: 620px; }
  .hero-content {
    text-align: center;
    max-width: none;
    border-left: 0;
    padding-left: 0;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn {
    min-height: 58px;
    min-width: min(100%, 330px);
    padding: 0 26px;
    font-size: 18px;
  }
  .metric-row, .grid.three, .grid.four, .grid.two, .split, .contact-grid, .footer-grid, .factory-grid, .content-layout { grid-template-columns: 1fr; }
  .factory-grid img:first-child { grid-row: auto; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .cookie-notice { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero-content { padding: 92px 0 64px; }
  h1 { font-size: 36px; line-height: 1.04; }
  .hero p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 58px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cookie-notice {
    left: 14px;
    right: 14px;
    max-width: calc(100% - 28px);
    max-height: calc(100vh - 28px);
    overflow: auto;
  }
  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-actions .btn { width: 100%; }
}
