:root {
  --ink: #141816;
  --ink-soft: #2a312c;
  --muted: #5d675f;
  --line: #e6e1d6;
  --cream: #f4f1ea;
  --paper: #ffffff;
  --green: #1b4d38;
  --leaf: #2f6d4f;
  --lime: #d7e7c8;
  --shadow: 0 18px 50px rgba(20, 24, 22, 0.08);
  --radius: 18px;
  --header: 96px;
  --max: 1180px;
  --font: "Onest", sans-serif;
  --display: "Manrope", 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.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--leaf);
}
.lead { font-size: 18px; color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.light { background: white; color: var(--ink); }
.btn.ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.45);
}
.btn.ghost.dark { color: var(--ink); border-color: var(--line); }

.faq-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1360px, calc(100% - 32px));
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 62px; width: auto; max-width: 340px; }
.footer-logo { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 8px 12px; }
.drop-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; color: inherit; }
.drop:hover .drop-btn, .drop-btn:hover { color: var(--leaf); }
.apps-panel { width: 230px; grid-template-columns: 1fr; gap: 8px; }
.apps-panel a.capsule { width: 100%; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a, .drop > a { font-size: 15px; font-weight: 400; }
a.capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-links a.capsule { color: var(--green); border-color: #b7d0c2; background: #f4faf6; }
.nav-links a.capsule:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer a.capsule { color: #efece4; border-color: rgba(255,255,255,.4); }
.footer a.capsule:hover { color: #fff; border-color: #fff; background: transparent; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a.active, .nav-links a:hover { color: var(--leaf); }
.drop { position: relative; }
.drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}
.drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.drop:hover .drop-panel, .drop:focus-within .drop-panel { display: grid; }
.services-panel {
  width: 520px;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 6px 10px;
  padding: 16px 14px 12px;
}
.services-panel > div { display: flex; flex-direction: column; min-width: 0; }
.services-panel > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.drop-panel a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14.5px !important;
  color: var(--ink);
  line-height: 1.25;
}
.drop-panel.apps-panel { width: 220px; left: auto; right: 0; grid-template-columns: 1fr; gap: 8px; padding: 12px; }
.drop-panel.apps-panel a.capsule { width: 100%; border-radius: 999px; }
.drop-panel a:hover { background: var(--cream); color: var(--green); }
.drop-panel strong {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 10px 8px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; height: 2px; width: 20px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: #10261c;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 62%;
  filter: saturate(.95);
}
.hero .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,14,.08) 0%, rgba(10,18,14,.12) 42%, rgba(10,18,14,.55) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); max-width: 16ch; }
.hero p { max-width: 58ch; font-size: 18px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 8px 32px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.05em;
}
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: white; }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 4vw, 56px); max-width: 14ch; }
.section-head p { max-width: 42ch; margin: 0; }

.service-grid, .card-grid, .news-grid, .team-grid {
  display: grid;
  gap: 18px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.news-grid { grid-template-columns: 1.3fr 1fr 1fr; }
.team-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 4/3; overflow: hidden; background: #d9d4c8; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 22px; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 500; font-size: 14px; color: var(--green); }

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.sim { grid-template-columns: 1.35fr .8fr; align-items: stretch; }
.split img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.split img.frame { height: 100%; min-height: 520px; object-fit: cover; object-position: center 46%; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split.reverse img { order: -1; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.filters button.on { background: var(--ink); color: white; border-color: var(--ink); }

.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.scale article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.scale b { display: block; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }
.page-hero { padding: 54px 0 10px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--leaf); }
.prose { max-width: 74ch; }
.prose p { margin: 0 0 14px; }
.figure { margin: 28px 0; border-radius: 20px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.figure img { width: 100%; max-height: 520px; object-fit: contain; background: white; }
.figure figcaption { padding: 10px 14px 14px; color: var(--muted); font-size: 13px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 4px; }

.team-card { background: white; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.team-card img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; object-position: center top; background: #ddd7cc; }
.team-card div { padding: 14px 14px 16px; }
.team-card h3 { font-size: 20px; }
.team-card .role { color: var(--leaf); font-size: 13px; font-weight: 600; margin: 4px 0; }
.team-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ph {
  aspect-ratio: 1/1.05;
  background: linear-gradient(160deg, #dfe8df, #c5d2c6);
}

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
label.full { grid-column: 1 / -1; }
input, textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  background: var(--cream);
}
textarea { min-height: 130px; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--leaf); font-weight: 500; display: none; }
.info-line { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-line span { color: var(--muted); font-size: 13px; }
.info-line b, .meta b { font-weight: 500; }

.footer { background: #101512; color: #efece4; padding: 64px 0 24px; }
.footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h3 { font-size: 16px; letter-spacing: 0; margin: 0 0 12px; color: white; }
.footer h3 + ul + h3 { margin-top: 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #c9c4b8; }
.footer .base { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #b7b2a6; font-size: 13px; }
.logo-word { font-family: var(--display); font-size: 28px; letter-spacing: -0.05em; }
.logo-word span { color: #9dcead; }

.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.meta div { background: var(--cream); border-radius: 14px; padding: 14px; }
.meta span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.band {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--green); color: white; border-radius: 24px; padding: 32px;
}
.band h2 { font-size: clamp(28px, 3vw, 42px); max-width: 16ch; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .service-grid, .card-grid, .team-grid, .stats, .footer-grid, .split, .split.reverse, .contact-grid, .news-grid, .scale, .meta {
    grid-template-columns: 1fr 1fr;
  }
  .split img, .split.reverse img { height: 320px; order: 0; }
  .split.sim { grid-template-columns: 1fr 1fr; }
  .split img.frame { min-height: 320px; height: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .section-head, .faq-layout { flex-direction: column; align-items: start; }
  .faq-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header);
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 8px;
  }
  .drop-panel { position: static; transform: none; width: auto; display: grid; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .nav.open .nav-links a.capsule { align-self: flex-start; }
}
@media (max-width: 680px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .service-grid, .card-grid, .team-grid, .stats, .footer-grid, .split, .contact-grid, .scale, .meta, form { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .band { flex-direction: column; align-items: start; }
  .footer .base { flex-direction: column; }
  .hero { min-height: 78vh; }
  .split.sim { grid-template-columns: 1fr; }
  .split img.frame { min-height: 0; height: 280px; object-position: 40% 60%; }
  .services-panel { grid-template-columns: 1fr; }
  .services-panel > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
}
