:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --paper: #fff;
  --ink: #171717;
  --muted: #575761;
  --rule: #d9d9df;
  --accent: #5457c7;
  --lilac: #c4b5fd;
  --hover: #ededf7;
  --art-filter: none;
  --blend: multiply;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111116;
  --paper: #1c1c24;
  --ink: #f4f4f8;
  --muted: #b6b5c2;
  --rule: #393842;
  --accent: #b6adff;
  --hover: #302e43;
  --art-filter: invert(1) hue-rotate(163deg) saturate(1.6);
  --blend: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111116;
    --paper: #1c1c24;
    --ink: #f4f4f8;
    --muted: #b6b5c2;
    --rule: #393842;
    --accent: #b6adff;
    --hover: #302e43;
    --art-filter: invert(1) hue-rotate(163deg) saturate(1.6);
    --blend: screen;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--lilac); color: #1c1830; }
.wrap { width: min(calc(100% - clamp(2rem, 9vw, 10rem)), 80rem); margin-inline: auto; }
.top {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 5vw, 4.5rem);
  min-height: 5.75rem;
  border-bottom: 1px solid var(--rule);
}
.brand { font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -.095em; font-weight: 740; line-height: 1; }
.brand span { color: #6366f1; }
.top nav, .tools { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.2rem); }
.top nav a, .tools a, .tools button { font-weight: 540; font-size: .94rem; }
.top a:hover, .footer a:hover { color: var(--accent); }
.tools { margin-inline-start: auto; gap: .7rem; }
.tools a, .tools button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.tools button { border: 1px solid var(--rule); background: transparent; padding: .35rem .75rem; border-radius: 2rem; }
.tools button:hover { background: var(--hover); }
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 6.5rem);
  min-height: clamp(33rem, 65vh, 45rem);
  border-bottom: 1px solid var(--rule);
}
.hero-copy { z-index: 1; }
.eyebrow {
  margin: 0 0 1.55rem;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .105em;
  text-transform: uppercase;
}
h1,h2,h3 { margin: 0; font-weight: 560; text-wrap: balance; }
h1 { font-size: clamp(3.8rem, 7.3vw, 7rem); line-height: .99; letter-spacing: -.071em; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.073em; }
.hero h1 { max-width: 12ch; }
html[lang="ru"] .hero h1 { font-size: clamp(3rem, 5.95vw, 5.8rem); max-width: 16ch; }
.lead { margin: 1.65rem 0; font-size: clamp(1.12rem, 1.65vw, 1.45rem); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.55rem; border-radius: 3rem; border: 0;
  background: var(--ink); color: var(--bg); font-weight: 590;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 16px #6760ac34; }
.hero-copy small { display: block; color: var(--muted); font-size: .875rem; margin-top: .64rem; }
.hero-art {
  width: 113%; margin-left: -7%;
  aspect-ratio: 1.05;
  background: url("/assets/orb.webp") center center / auto 112% no-repeat;
  filter: var(--art-filter);
  mix-blend-mode: var(--blend);
  mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent 100%);
  animation: breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { transform: translateY(-.55rem) rotate(2deg) scale(1.015); } }
.section { margin-block: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.08; letter-spacing: -.054em; }
.grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem;
}
.section > h2 + .grid, .section > p + .grid { margin-top: 2.2rem; }
.card { display: block; padding: clamp(1.3rem, 2.8vw, 2.6rem); border-radius: 1.45rem; background: var(--paper); border: 1px solid var(--rule); }
a.card { transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3, .card h2 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.053em; }
.card p { color: var(--muted); max-width: 36ch; margin: .85rem 0 0; }
.card-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 2.4rem; color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; }
.article { padding-block: clamp(3rem, 7vw, 6.4rem); max-width: 62rem; }
.article h1 { font-size: clamp(2.85rem, 6.5vw, 6.1rem); max-width: 19ch; overflow-wrap: break-word; }
.article .lead { max-width: 54ch; margin-bottom: 2.5rem; }
.article h2 { font-size: clamp(1.72rem, 3vw, 2.65rem); margin: 2.25rem 0 .85rem; }
.article h3 { font-size: 1.35rem; margin-top: 1.65rem; }
.article p:not(.lead,.eyebrow), .article li { max-width: 72ch; color: var(--muted); font-size: 1.075rem; }
.article ul { padding-inline-start: 1.35rem; }
.article li { margin: .5rem 0; }
.article li::marker { color: var(--accent); }
.article a:not(.button,.card), .section p a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem 3rem; padding-block: 2.7rem 3.5rem; border-top: 1px solid var(--rule); }
.footer nav { max-width: 50rem; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem 1.45rem; }
.footer nav a, .footer small { color: var(--muted); font-size: .94rem; }
@media(max-width: 760px) {
  .top { min-height: 4.6rem; gap: clamp(.7rem, 4vw, 2rem); }
  .hero { padding-block: 2.8rem 1.5rem; grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-art { width: min(100%, 26rem); margin: .4rem auto 0; aspect-ratio: 1.45; background-size: auto 123%; }
  .grid { grid-template-columns: 1fr; }
  .card-icon { margin-bottom: 1.3rem; }
  .footer nav { justify-content: flex-start; }
}
@media(max-width: 440px) {
  .top { flex-wrap: wrap; gap: .15rem 1rem; padding-block: .6rem; }
  .top nav, .tools { gap: .7rem; }
  .top nav a, .tools a, .tools button { font-size: .875rem; }
  .tools button { padding-inline: .55rem; }
  .hero { padding-top: 2.3rem; }
  .eyebrow { font-size: .75rem; margin-bottom: 1.1rem; }
  .hero-art { aspect-ratio: 1.55; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.card-icon { font-size:2.8rem; line-height:1; }
.related { margin-top:3rem; display:flex; flex-wrap:wrap; gap:1rem 1.5rem; }
.mission { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; align-items:center; }
.mission p:not(.eyebrow) { color:var(--muted); font-size:1.2rem; max-width:44ch; }
.mission a { text-decoration:underline; text-underline-offset:4px; }
.footer nav { flex:1 1 65%; }
@media(max-width:760px) { .mission { grid-template-columns:1fr; gap:0; } }
