:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #e9efea;
  --text: #152620;
  --text-secondary: #42564e;
  --text-dim: #566961;
  --border: #d3ded7;
  --accent: #174e40;
  --accent-hover: #103d32;
  --inverse: #f7fbf8;
  --inverse-muted: #d0e2d8;
  --dark-surface: #103830;
  --shadow-sm: 0 2px 6px rgba(18, 44, 35, 0.06);
  --shadow-md: 0 12px 36px rgba(18, 44, 35, 0.10);
  --shadow-xl: var(--shadow-md);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-brand: 'Sora', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --header-height: 72px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --content-width: 1344px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
a { color: var(--accent); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:is(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 101;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container, .section {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(46px, 6vw, 88px); }
.section-head { margin-bottom: clamp(24px, 3vw, 42px); }
.site-main { min-height: 65vh; padding-top: var(--header-height); }
.soft-section { background: var(--surface-soft); }

.page-title, .section-title, .legal-title {
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-wrap: balance;
}
.page-title, .section-head h1, .legal-title { font-size: clamp(34px, 4.2vw, 59px); }
.section-title { font-size: clamp(27px, 3.2vw, 43px); }
.lead, .section-subtitle, .legal-intro {
  max-width: 58ch;
  margin-top: 14px;
  font-size: clamp(17px, 1.36vw, 20px);
  line-height: 1.5;
  color: var(--text-secondary);
}
.supporting-text { margin-top: 12px; color: var(--text-secondary); }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  padding-inline: clamp(18px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}
.brand-mark { display: block; flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; }
.brand-name { color: inherit; font: 700 19px/1 var(--font-brand); letter-spacing: -0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  list-style: none;
}
.nav-links a, .header-login {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 5px;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .header-login:hover {
  color: var(--accent);
  text-decoration: underline;
}
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { display: flex; }
.lang-btn {
  min-width: 32px;
  min-height: 42px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-pressed="true"] { color: var(--accent); }
.lang-btn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle, .nav-links .mobile-demo { display: none; }
.menu-toggle {
  min-height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: fit-content;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.72; cursor: wait; }
.header-demo { min-height: 40px; font-size: 14px; }
.text-link {
  display: inline-block;
  min-height: 44px;
  padding-block: 9px;
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--accent-hover); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.4vw, 48px);
  list-style: none;
  margin-top: clamp(24px, 3vw, 42px);
}
.step-title { font-size: 21px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.step-desc { color: var(--text-secondary); }

.site-cta { background: var(--dark-surface); color: var(--inverse); }
.site-cta .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 44px;
  padding-block: clamp(34px, 5vw, 64px);
}
.site-cta .lead { color: var(--inverse-muted); }
.site-cta .btn { flex-shrink: 0; background: var(--inverse); color: var(--accent); }
.site-cta .btn:hover { background: var(--surface-soft); }
.site-cta .btn:focus-visible { outline-color: var(--inverse); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.contact-notes { margin-top: 28px; }
.contact-notes h2 { font-size: 19px; line-height: 1.3; }
.contact-notes ul { margin: 8px 0 14px 1.2em; color: var(--text-secondary); }
.contact-notes li + li { margin-top: 6px; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 14px; font-weight: 700; }
.form-input, .form-textarea {
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #a8bbb0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-privacy, .form-status { font-size: 14px; color: var(--text-secondary); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #9b2927; }
.form-status[data-state="success"] { color: var(--accent); }

.legal-section { max-width: 980px; }
.legal-title { margin-bottom: 12px; }
.legal-updated { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.legal-content { margin-top: 30px; }
.legal-block + .legal-block { margin-top: 24px; }
.legal-block :is(h2, h3) { font-size: 19px; margin-bottom: 6px; }
.legal-block :is(p, li) { color: var(--text-secondary); }
.legal-block ul { margin: 8px 0 0 1.2em; }
.legal-block li + li { margin-top: 4px; }

.footer { background: var(--surface-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px 40px;
  padding-block: 38px 28px;
}
.footer .brand-mark { width: 31px; height: 31px; }
.footer p { margin-top: 8px; max-width: 33ch; color: var(--text-secondary); font-size: 14px; }
.footer h2 { color: var(--text); font-size: 14px; font-weight: 700; }
.footer ul { list-style: none; margin-top: 8px; }
.footer li + li { margin-top: 3px; }
.footer li a { width: fit-content; color: var(--text-secondary); font-size: 14px; text-underline-offset: 3px; }
.footer li a:hover { color: var(--accent); }
.footer-copy { padding-bottom: 24px; font-size: 13px; color: var(--text-dim); }

.back-to-top {
  position: fixed;
  z-index: 99;
  bottom: 18px;
  right: 18px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--surface-soft); }

@media (max-width: 1000px) {
  .header { gap: 12px; }
  .header-actions { gap: 10px; }
  .nav-links { gap: 13px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-demo { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 10px var(--gutter) 16px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a, .nav-links .mobile-demo { display: block; padding: 10px 3px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-cta .section { align-items: flex-start; flex-direction: column; }
  .steps-grid, .footer-inner { grid-template-columns: 1fr; }
  .steps-grid { gap: 24px; }
  .footer-inner { gap: 18px; }
  .back-to-top { bottom: 12px; right: 12px; }
}
@media (max-width: 450px) {
  .contact-form { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .header .brand-mark { width: 29px; height: 29px; }
  .header { padding-inline: 12px; gap: 6px; }
  .header-actions { gap: 8px; }
  .lang-btn { min-width: 28px; }
}
@media (max-width: 370px) {
  .header .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
