:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #14161b;
  --muted: #62676f;
  --line: #dfe2e6;
  --soft: #f6f7f7;
  --green: #1e694a;
  --blue: #1458d6;
  --amber: #c46d00;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { padding: 28px 0; border-bottom: 1px solid var(--line); }
.site-header .shell, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.92rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.lang { padding-left: 18px; border-left: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.hero { padding: clamp(76px, 12vw, 152px) 0 clamp(64px, 9vw, 112px); }
.hero h1, .page-head h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero p { max-width: 700px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.section-title { margin: 0 0 20px; font-size: 0.84rem; letter-spacing: 0.13em; text-transform: uppercase; }
.scope-note { max-width: 760px; margin: 0 0 34px; color: var(--muted); }
.products { border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: clamp(28px, 6vw, 76px); padding: 58px 0; border-bottom: 1px solid var(--line); }
.product-mark { display: grid; place-items: center; width: 112px; height: 112px; border: 2px solid currentColor; border-radius: 28px; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.08em; }
.green { color: var(--green); } .blue { color: var(--blue); } .amber { color: var(--amber); }
.product-copy h2 { margin: 0 0 10px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
.product-copy p { max-width: 650px; margin: 0; color: var(--muted); }
.product-links { display: grid; gap: 10px; text-align: right; white-space: nowrap; }
.page-head { padding: 76px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.page-head p { margin: 22px 0 0; color: var(--muted); }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; padding: 58px 0 100px; }
.prose { max-width: 760px; }
.prose section { padding: 0 0 28px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.prose h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.prose p, .prose li { color: #34383e; }
.side { align-self: start; position: sticky; top: 24px; padding: 24px; background: var(--soft); border-left: 4px solid var(--ink); }
.side h2 { margin: 0 0 12px; font-size: 1rem; }
.side p { margin: 10px 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.input { display: block; margin-top: 4px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
.site-footer { padding: 32px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-row nav { display: flex; gap: 16px; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header .shell { align-items: flex-start; }
  .nav { justify-content: flex-end; gap: 12px; }
  .nav .optional { display: none; }
  .hero { padding-top: 72px; }
  .product-row { grid-template-columns: 72px 1fr; gap: 20px; padding: 38px 0; }
  .product-mark { width: 68px; height: 68px; border-radius: 18px; font-size: 1rem; }
  .product-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 18px; text-align: left; }
  .content { grid-template-columns: 1fr; gap: 24px; padding-top: 38px; }
  .side { position: static; order: -1; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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