/* HHCM — quiet dark-and-light layout */
:root {
  --night: #0f1b16;        /* hero, header, contacts */
  --night-2: #16261f;      /* raised surfaces on dark */
  --ink: #16412e;          /* headings on light */
  --accent: #7fa866;       /* muted green, used sparingly */
  --accent-soft: rgba(127, 168, 102, 0.14);
  --text: #1c2420;
  --muted: #5e6a64;
  --line: #e2e6e3;
  --line-dark: rgba(255, 255, 255, 0.10);
  --paper: #f6f7f5;
  --bg: #ffffff;
  --on-dark: #e9eeeb;
  --on-dark-muted: #9aa7a0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 27, 22, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.bar { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); min-width: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; flex: none; background: #fff; border-radius: 8px; padding: 3px; }
.brand span { max-width: 300px; }
.brand b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; }
.brand small { display: block; font-size: 12px; color: var(--on-dark-muted); line-height: 1.3; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; margin-left: auto; }
nav.main a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
nav.main a:hover { color: var(--on-dark); }
nav.main a.nav-cta { color: var(--on-dark); border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 5px 14px; }
nav.main a.nav-cta:hover { border-color: var(--accent); color: #fff; }
.lang { display: flex; gap: 4px; font-size: 12px; }
.lang a { padding: 3px 9px; border-radius: 999px; color: var(--on-dark-muted); text-decoration: none; }
.lang a:hover { color: var(--on-dark); }
.lang a[aria-current] { background: rgba(255,255,255,0.10); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
section.alt { background: var(--paper); }
h1 { margin: 0; }
h2 { font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 28px; }
h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 36px 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--muted); }

/* ---------- Hero (dark) ---------- */
section.hero-dark {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(127, 168, 102, 0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(22, 65, 46, 0.55), transparent 70%),
    var(--night);
  color: var(--on-dark);
  border-bottom: 0;
  padding: 136px 0 128px;
  position: relative;
  overflow: hidden;
}
section.hero-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero { position: relative; }
.hero .eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero .display {
  font-size: 56px; line-height: 1.08; font-weight: 600; letter-spacing: -0.025em;
  color: #fff; max-width: 880px; margin: 0 0 28px;
}
.hero .lead { font-size: 18px; color: var(--on-dark-muted); max-width: 640px; margin-bottom: 36px; }
.btns a {
  display: inline-block; margin: 6px 10px 0 0; padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-size: 14px; transition: all .15s;
}
.btns a:hover { border-color: rgba(255,255,255,0.6); }
.btns a.primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--night); }
.btns a.primary:hover { background: #fff; }

/* ---------- Statement ---------- */
section.statement { padding: 104px 0; }
.statement-grid { display: grid; grid-template-columns: 1fr 200px; gap: 64px; align-items: center; }
.statement .big { font-size: 26px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.statement .note { margin-top: 32px; }
.statement-logo { width: 100%; max-width: 200px; justify-self: end; opacity: 0.95; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 28px 30px; transition: background .15s, border-color .15s; }
.card:hover { border-color: #cfd6d1; }
.card:hover { background: var(--paper); }
.card h3 { margin: 0 0 10px; font-size: 17px; }
.card .num { display: block; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- How we work ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 28px 0 14px; }
.flow .node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; font-weight: 600; color: var(--ink); }
.flow .node small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.flow .edge { text-align: center; font-size: 13px; color: var(--muted); }
.flow .edge span { display: block; color: var(--accent); font-size: 22px; line-height: 1; margin-bottom: 4px; }
.flow-hhcm { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 28px; color: var(--ink); }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
ol.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line); }
ol.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 19px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
}
ol.steps li b { color: var(--ink); }
ul.limits { padding-left: 20px; margin: 0; }
ul.limits li { margin-bottom: 6px; }
ul.limits li::marker { color: var(--accent); }

/* ---------- Company details ---------- */
table.reg { border-collapse: collapse; width: 100%; font-size: 15px; border-top: 1px solid var(--line); }
table.reg th, table.reg td { border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.reg th { width: 30%; color: var(--muted); font-weight: 500; }
.scope { font-size: 14px; color: var(--muted); background: var(--paper); border-radius: 12px; padding: 18px 20px; }
section.alt .scope { background: #fff; }

/* ---------- Contacts (dark) ---------- */
section.dark { background: var(--night); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
section.dark h2 { color: #fff; }
section.dark a { color: #fff; }
dl.contacts { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--line-dark); }
dl.contacts dt, dl.contacts dd { padding: 14px 0; border-bottom: 1px solid var(--line-dark); margin: 0; }
dl.contacts dt { color: var(--on-dark-muted); font-size: 14px; }
dl.contacts dd { overflow-wrap: anywhere; }
section.dark .note { color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
footer.site { background: var(--night); padding: 28px 0 40px; font-size: 13px; color: var(--on-dark-muted); }
footer.site a { color: var(--on-dark-muted); }
footer.site p { margin: 0 0 6px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero .display { font-size: 40px; }
  .statement-grid { grid-template-columns: 1fr; gap: 32px; }
  .statement-logo { justify-self: start; max-width: 140px; }
}
@media (max-width: 760px) {
  header.site { position: static; }
  .wrap, .bar { padding-left: 18px; padding-right: 18px; }
  nav.main { width: 100%; order: 3; gap: 4px 16px; }
  section { padding: 64px 0; scroll-margin-top: 0; }
  section.hero-dark { padding: 88px 0 80px; }
  .hero .display { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  h2 { font-size: 26px; }
  .statement .big { font-size: 20px; }
  .flow { grid-template-columns: 1fr; }
  .flow .edge span { transform: rotate(90deg); display: inline-block; }
  dl.contacts { grid-template-columns: 1fr; }
  dl.contacts dt { border-bottom: 0; padding-bottom: 0; }
  table.reg th { width: 38%; }
}
