:root {
  --ink: #142033;
  --muted: #526173;
  --navy: #0d1b2a;
  --navy-2: #17324a;
  --green: #6aaa32;
  --green-deep: #3f7a1c;
  --lime: #8fce4a;
  --paper: #f4f6f1;
  --white: #ffffff;
  --line: #e2e7df;
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.08);
  --radius: 18px;
  --max: 1160px;
  --header: 78px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, 100%); }

.topbar {
  background: var(--navy);
  color: #d7e2dc;
  font-size: 0.86rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar span { opacity: 0.8; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] {
  background: #eef6e4;
  color: var(--green-deep);
}
.menu { position: relative; }
.menu-panel {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}
.menu:hover .menu-panel, .menu:focus-within .menu-panel, .menu.open .menu-panel { display: grid; }
.menu-panel a { display: block; border-radius: 10px; }

.btn, .btn-ghost, .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
}
.btn { background: var(--green); color: #fff; }
.btn:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d3c4; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-light { background: #fff; color: var(--navy); }
.nav-cta { margin-left: 8px; padding: 10px 16px; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 640px;
  background: var(--paper);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 6vw 72px 8vw; }
.eyebrow {
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.03em; font-weight: 720; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(13, 27, 42, 0.82);
  color: #fff;
  padding: 16px 18px;
  border-radius: 16px;
  max-width: 260px;
}
.hero-badge strong { display: block; font-size: 1.4rem; }
.hero-badge span { color: #c9d7cc; font-size: 0.9rem; }

.section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }
.kicker { color: var(--green-deep); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prose p { margin: 0 0 14px; }
.muted { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat b { display: block; font-size: 1.28rem; letter-spacing: -0.03em; white-space: nowrap; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.cards, .news-grid, .logo-grid, .cert-grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .news-card, .soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card img, .news-card img { width: 100%; height: 210px; object-fit: cover; }
.card div, .news-card div { padding: 18px 18px 20px; }
.card h3 a, .news-card h3 a { color: inherit; text-decoration: none; }
.card p, .news-card p { color: var(--muted); margin: 8px 0 0; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card time { color: var(--green-deep); font-size: 0.82rem; font-weight: 700; }

.services { display: grid; gap: 12px; }
.service {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
}
.service:hover { background: #eaf4df; }
.service em { font-style: normal; font-size: 1.8rem; color: var(--green); font-weight: 750; }
.service p { margin: 4px 0 0; color: var(--muted); }
.service span { color: var(--green-deep); font-weight: 700; }

.band { background: var(--navy); color: #fff; }
.band .muted, .band p { color: #c5d2cb; }
.logo-grid { grid-template-columns: repeat(6, 1fr); }
.logo-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.logo-grid img { max-height: 68px; width: auto; object-fit: contain; }

.page-hero { padding: 54px 0 10px; background: linear-gradient(#f4f6f1, #fff); }
.crumbs {
  width: min(var(--max), calc(100% - 40px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.page-hero h1 { max-width: 22ch; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}
.feature img { border-radius: 22px; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.stack { display: grid; gap: 14px; }
.block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
}
.block ul, .prose ul { margin: 8px 0 0; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li {
  list-style: none;
  background: #f3f7ee;
  border: 1px solid #dce8cf;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
}
.chips { padding: 0; }

.cert-grid { grid-template-columns: repeat(4, 1fr); }
.cert-grid button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  cursor: zoom-in;
}
.cert-grid img { width: 100%; height: 180px; object-fit: contain; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: 0.92rem; }
input, textarea {
  font: inherit;
  border: 1px solid #d5ddd2;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid #b7d98a; border-color: var(--green); }
.note { font-size: 0.9rem; color: var(--muted); }

.article { padding-bottom: 80px; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; margin: 18px 0 28px; }
.article .prose { font-size: 1.08rem; }

.footer { background: var(--navy); color: #d5e0d8; padding: 56px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h2 { font-size: 1rem; color: #fff; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: #9aada3; }

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, 92vw);
}
dialog::backdrop { background: rgba(8, 16, 24, 0.82); }
dialog img { max-height: 86vh; margin: auto; border-radius: 12px; }
dialog button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero, .split, .feature, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 22px; }
  .hero-photo { min-height: 320px; }
  .cards, .news-grid, .stats, .cert-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 64px 1fr; }
  .service span { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
  .menu-panel { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .nav-cta { margin: 8px 0 0; }
}

@media (max-width: 640px) {
  .cards, .news-grid, .stats, .cert-grid, .logo-grid { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .section { padding: 56px 0; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
