:root {
  --ink: #15211b;
  --muted: #66716b;
  --line: #dfe5e0;
  --paper: #f4f5f0;
  --card: #ffffff;
  --accent: #3e63dd;
  --accent-soft: #e9edff;
  --green: #176a49;
  --lime: #c9f36a;
  --warm: #fff3e7;
  --shadow: 0 22px 70px rgba(21, 33, 27, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(62, 99, 221, .12), transparent 31rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 229, 224, .9);
  background: rgba(244, 245, 240, .88);
  backdrop-filter: blur(18px);
}

.site-header-inner,
.page,
.site-footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-copy strong,
.brand-copy small { display: block; }
.brand-copy strong { font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 10px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.app-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.app-link:hover { background: #fff; color: var(--ink); }

.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}
.language-switch button {
  min-width: 38px;
  border: 0;
  border-radius: 7px;
  padding: 6px 8px;
  background: transparent;
  color: #7d8781;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.language-switch button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 3px 10px rgba(21, 33, 27, .15);
}

.page { padding: 76px 0 84px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(30px, 7vw, 88px);
  align-items: end;
  margin-bottom: 44px;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
}
.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}
.meta-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 20px;
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}
.meta-card dl { margin: 0; }
.meta-card div + div { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.meta-card dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.meta-card dd { margin: 4px 0 0; font-size: 12px; font-weight: 750; }

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--ink);
  color: #fff;
}
.contact-card h2 { margin: 0; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.04em; }
.contact-card p { max-width: 680px; margin: 9px 0 0; color: #b7c0bb; font-size: 13px; }
.mail-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 13px;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.mail-button:hover { filter: brightness(.96); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}
.document,
.side-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.document { padding: clamp(25px, 5vw, 50px); }
.document section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.document h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; line-height: 1.15; }
.document h3 { margin: 24px 0 8px; font-size: 16px; letter-spacing: -.02em; }
.document p { margin: 0 0 14px; color: #455049; font-size: 14px; }
.document ul,
.document ol { margin: 12px 0 0; padding-left: 21px; color: #455049; font-size: 14px; }
.document li + li { margin-top: 8px; }
.document a { color: var(--accent); font-weight: 700; }
.document strong { color: var(--ink); }
.note {
  margin: 22px 0 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 15px 17px;
  background: var(--accent-soft);
  color: #344266;
  font-size: 13px;
}
.note.warm { border-left-color: #d47c2e; background: var(--warm); color: #704517; }

.side-stack { position: sticky; top: 92px; display: grid; gap: 14px; }
.side-card { padding: 19px; box-shadow: none; }
.side-card h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: -.025em; }
.side-card p { margin: 0; color: var(--muted); font-size: 11px; }
.side-card a { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 11px; font-weight: 800; text-decoration: none; }
.side-card a:hover { text-decoration: underline; }
.topic-nav { list-style: none; margin: 0; padding: 0; }
.topic-nav li + li { margin-top: 7px; }
.topic-nav a { display: block; margin: 0; color: var(--muted); font-weight: 700; }
.topic-nav a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); background: #eef0eb; }
.site-footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-nav a { color: var(--accent); font-weight: 750; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .meta-card { max-width: 430px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header-inner,
  .page,
  .site-footer-inner { width: min(100% - 28px, 1080px); }
  .site-header-inner { min-height: 62px; }
  .brand-copy small,
  .app-link { display: none; }
  .page { padding-top: 48px; }
  .contact-card { grid-template-columns: 1fr; }
  .mail-button { width: 100%; white-space: normal; text-align: center; }
  .side-stack { grid-template-columns: 1fr; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
