/* ===== Tokens ===== */
:root {
  --ink: #0f1b2d;
  --ink-soft: #3a475a;
  --muted: #6b7686;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #f2efe8;
  --line: #e4e0d6;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ec;
  --warn: #b4472f;
  --warn-soft: #f8e7e2;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1120px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lead { font-size: 19px; color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #185a4a; border-color: #185a4a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 18px; }

.header-inner { gap: 24px; }
.logo { margin-right: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.main-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 80px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.hero-trust li { position: relative; padding-left: 24px; }
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 14px;
}
.status-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.status-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.status-title { margin-left: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 6px;
}
.status-list b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.status-list .is-bad { background: var(--warn-soft); color: #6e2a1b; }
.status-list .is-bad b { color: var(--warn); }
.status-list .is-good { background: var(--accent-soft); color: #154a3d; }
.status-list .is-good b { color: var(--accent); }
.status-list .divider { height: 1px; padding: 0; margin: 12px 0; background: var(--line); }
.status-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.section-intro { max-width: 640px; font-size: 18px; margin-bottom: 40px; }

/* Problems */
.problems { background: var(--ink); color: #c9d1dc; }
.problems .section-title { color: #fff; margin-bottom: 32px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.problem-grid blockquote {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}
.problems-answer { margin: 32px 0 0; max-width: 680px; font-size: 18px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.service h3 { font-size: 21px; }
.service-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background: var(--accent-soft);
  border-color: #c7e0d8;
}
.service-wide .service-icon { background: var(--surface); margin-bottom: 0; }
.service-wide p { max-width: 760px; }
.hero abbr { text-decoration: underline dotted; cursor: help; }
.service p { margin: 0; }
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.step h3 { font-size: 20px; }
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 18px;
}
.step-meta {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Case study */
.case {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 32px;
}
.case h3 { font-size: 24px; margin-bottom: 24px; }
.case-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-block { margin-bottom: 20px; }
.case-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.case-block ul { margin: 0; padding-left: 20px; }
.case-block li { margin-bottom: 4px; }
.case-side { border-left: 1px solid var(--line); padding-left: 32px; }
.case-side-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.placeholder { color: var(--muted); font-style: italic; }
.more-soon { margin-top: 24px; color: var(--muted); font-size: 15px; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #d8d2c4, #bfb7a6);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  color: rgba(255, 255, 255, .85);
}
.about-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.about-facts li { padding-left: 16px; border-left: 3px solid var(--accent); }
.about-facts b { color: var(--ink); }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; margin: 0; max-width: 680px; }

/* Contact */
.contact { background: var(--ink); color: #c9d1dc; }
.contact .section-title { color: #fff; }
.contact .lead { color: #c9d1dc; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 12px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.contact-line:hover { border-color: var(--accent); }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-value { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 18px; word-break: break-word; }
.contact-card .btn { margin-top: 6px; }

/* Tech */
.tech { padding: 40px 0; border-bottom: 1px solid var(--line); }
.tech-label { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tags-muted li { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 4px !important; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 24px; }
  .case-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 260px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .header-inner { gap: 12px; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav .btn { margin-top: 16px; }

  .hero { padding: 48px 0 56px; }
  .section { padding: 64px 0; }
  .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .problem-grid, .service-grid { grid-template-columns: 1fr; }
  .service-wide { grid-template-columns: 1fr; gap: 0; }
  .service-wide .service-icon { margin-bottom: 18px; }
  .case { padding: 24px; }
  .service, .step { padding: 24px; }
}

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