:root {
  color-scheme: light;
  --brand: #059669;
  --brand-dark: #047857;
  --ink: #18181b;
  --muted: #5f6472;
  --line: #e4e4e7;
  --soft: #ecfdf5;
  --paper: #ffffff;
  --background: #f5f5f7;
  --shadow: 0 18px 50px rgba(24, 24, 27, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(228,228,231,.9);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 42px; height: 42px; border-radius: 13px; object-fit: cover; box-shadow: 0 5px 14px rgba(5,150,105,.2); }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand small { color: var(--muted); font-size: .72rem; }
nav { display: flex; gap: 4px; }
nav a { padding: 8px 11px; color: #454752; font-size: .9rem; font-weight: 700; text-decoration: none; border-radius: 9px; }
nav a:hover, nav a:focus-visible { background: var(--soft); color: var(--brand-dark); }
main { width: min(100% - 32px, 960px); margin: 0 auto; }
.hero { padding: 92px 0 68px; }
.eyebrow { display: inline-flex; padding: 7px 12px; border: 1px solid #a7f3d0; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 20px 0 18px; font-size: clamp(2.35rem, 6vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
.hero > p { max-width: 760px; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 850; text-decoration: none; }
.button.primary { background: var(--brand); color: white; box-shadow: 0 12px 25px rgba(5,150,105,.25); }
.button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.notice { margin-top: 38px; padding: 18px 20px; border-left: 4px solid #f59e0b; border-radius: 4px 14px 14px 4px; background: #fffbeb; color: #713f12; }
.document { margin-bottom: 42px; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.section-heading > span { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 15px; background: var(--soft); color: var(--brand); font-weight: 900; }
.section-heading p { margin: 0; color: var(--brand); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h2 { margin: 2px 0 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { margin: 31px 0 8px; font-size: 1.08rem; line-height: 1.35; }
.document p, .document li { color: #464955; }
.document ul { padding-left: 22px; }
.document li { margin: 6px 0; }
.manual-intro { margin: 20px 0 0; font-size: 1.05rem; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.manual-grid article { padding: 20px; border: 1px solid #d1fae5; border-radius: 18px; background: #f0fdf4; }
.manual-grid article.warning { border-color: #fde68a; background: #fffbeb; }
.manual-grid h3 { margin: 0 0 9px; color: #064e3b; }
.manual-grid p { margin: 0 0 8px; }
.manual-grid ul { margin: 0; }
.routine { margin-top: 20px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #059669, #0d9488); color: white; }
.routine p { margin: 5px 0 0; color: #ecfdf5; }
.updated { margin: 17px 0 0; font-size: .84rem; font-weight: 700; }
.contact-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 18px; border: 1px solid #a7f3d0; border-radius: 16px; background: var(--soft); text-decoration: none; }
.contact-card > span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: white; font-size: 1.25rem; font-weight: 900; }
.contact-card small, .contact-card strong { display: block; }
.contact-card small { color: var(--muted); }
.legal-note { margin-top: 30px; padding: 16px; border-radius: 12px; background: #f4f4f5; font-size: .88rem; }
footer { display: flex; justify-content: space-between; gap: 24px; width: min(100% - 32px, 960px); margin: 0 auto; padding: 26px 0 54px; color: var(--muted); font-size: .86rem; }
footer strong, footer span { display: block; }
footer p { margin: 0; text-align: right; }
.back-top { position: fixed; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--brand); font-size: 1.2rem; font-weight: 900; text-decoration: none; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding: 12px 16px; }
  .brand small { display: none; }
  nav { max-width: 58vw; overflow-x: auto; padding-bottom: 2px; }
  nav a { white-space: nowrap; font-size: .8rem; }
  .hero { padding-top: 62px; }
  .document { border-radius: 20px; }
  .manual-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer p { margin-top: 12px; text-align: left; }
}

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

/* Language links */
nav.language {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 0 auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ececf1;
  overflow: visible;
}
nav.language a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
nav.language a:hover { background: #e0e0ea; color: var(--brand-dark); }
nav.language a:active { background: #d5d5e4; }
nav.language a[aria-current="page"] {
  background: var(--paper);
  color: var(--brand-dark);
  box-shadow: 0 1px 4px rgba(24, 24, 27, .1);
}
nav.language a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.language + .hero { padding-top: 28px; }
