:root {
  --bg: #f4eee2;
  --paper: #fffcf5;
  --ink: #1b1a17;
  --muted: #6b665c;
  --line: #e2d8c4;
  --accent: #e2482c;
  --accent-ink: #b8321a;
  --yellow: #ffcf3f;
  --chip: #efe5d1;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(27, 26, 23, .04), 0 10px 30px -12px rgba(27, 26, 23, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --paper: #1c1a15;
    --ink: #f1ece1;
    --muted: #a39d90;
    --line: #2f2c25;
    --accent: #ff6a4a;
    --accent-ink: #ff8c72;
    --chip: #28251e;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* лёгкое «бумажное» зерно */
  background-image: radial-gradient(rgba(27, 26, 23, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ico { display: inline-block; vertical-align: -3px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; transition: transform .6s; }
.logo:hover .logo__mark { transform: rotate(180deg); }
.logo__name { font: 800 19px/1 "Unbounded", sans-serif; letter-spacing: -.01em; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--accent-ink); }

/* hero */
.hero { padding: 56px 0 28px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--accent-ink); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.hero h1 { margin: 0; font: 800 clamp(32px, 5.4vw, 64px)/1.03 "Unbounded", sans-serif; letter-spacing: -.02em; }
.hero__sub { margin: 20px 0 0; color: var(--muted); font-size: 19px; max-width: 560px; }
.btn {
  display: inline-block; margin-top: 26px; padding: 14px 22px; border-radius: 99px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.hero__art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.disc {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #1b1a17 0 2px, #26241f 2px 4px),
    #1b1a17;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  animation: spin 18s linear infinite;
}
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 30% 70%, rgba(255,255,255,.08) 75%, transparent 80%); }
.disc__label { position: absolute; inset: 33%; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 10px rgba(255,255,255,.12); }
.disc__label::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .disc { animation: none; } }
.sticker {
  position: absolute; padding: 9px 15px; border-radius: 12px; font: 700 14px/1 "Unbounded", sans-serif;
  box-shadow: var(--shadow); white-space: nowrap;
}
.sticker--1 { top: 4%; left: -2%; background: var(--yellow); color: #1b1a17; transform: rotate(-8deg); }
.sticker--2 { bottom: 14%; right: -4%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); transform: rotate(6deg); }
.sticker--3 { bottom: 0; left: 8%; background: var(--accent); color: #fff; transform: rotate(-3deg); }
.platforms {
  list-style: none; margin: 42px 0 0; padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted);
}
.platforms li { display: flex; opacity: .75; transition: opacity .15s, color .15s; }
.platforms li:hover { opacity: 1; color: var(--ink); }
.platforms__ya { font: 700 15px/1 "Unbounded", sans-serif; }

/* feature + cards */
section h2 { font: 800 26px/1.2 "Unbounded", sans-serif; letter-spacing: -.01em; }
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; margin: 34px 0 26px;
  text-decoration: none; background: var(--ink); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .feature { background: var(--paper); color: var(--ink); border: 1px solid var(--line); } }
.feature__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.feature__body { padding: 38px; align-self: center; }
.feature__label { display: inline-block; background: var(--yellow); color: #1b1a17; border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.feature h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 16px 0 12px; }
.feature p { margin: 0; opacity: .78; }
.feature__go { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--accent); }
.feature:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; padding-bottom: 40px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--chip); }
.card__img--empty, .feature__img--empty, .art__img--empty {
  aspect-ratio: 16 / 9; background: radial-gradient(circle at 70% 40%, var(--c) 0 18%, transparent 19%), repeating-linear-gradient(-45deg, var(--chip) 0 10px, transparent 10px 20px);
}
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card h3 { font: 700 18px/1.3 "Unbounded", sans-serif; margin: 0 0 8px; letter-spacing: -.005em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.card__meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: var(--chip); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3;
}
.chip__dot { width: 9px; height: 9px; border-radius: 50%; }

/* topics */
.topics { padding-bottom: 80px; }
.topics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.topic {
  display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--c);
}
.topic:hover { border-color: var(--c); }
.topic b { font-weight: 600; flex: 1; }
.topic small { color: var(--muted); }
.topic__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }

/* article */
.art__head { max-width: 880px; padding-top: 44px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.art h1 { font: 800 clamp(28px, 4.6vw, 48px)/1.1 "Unbounded", sans-serif; margin: 0 0 18px; letter-spacing: -.015em; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.meta { color: var(--muted); font-size: 14px; }
.art__cover { margin-top: 30px; }
.art__img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.art__cols { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; padding-top: 40px; padding-bottom: 24px; justify-content: center; }
.art__solo { max-width: 760px; padding-top: 10px; padding-bottom: 60px; }
.art__side { position: relative; }
.toc { position: sticky; top: 90px; font-size: 14.5px; }
.toc__h { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; border-left: 2px solid var(--line); }
.toc li { counter-increment: t; margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; line-height: 1.35; margin-left: -2px; border-left: 2px solid transparent; }
.toc a::before { content: counter(t, decimal-leading-zero) "  "; font-variant-numeric: tabular-nums; color: var(--accent-ink); font-weight: 600; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.prose { font-size: 18px; }
.prose > p:first-child::first-letter { float: left; font: 800 64px/.9 "Unbounded", sans-serif; margin: 6px 10px 0 0; color: var(--accent); }
.prose h2 { font: 800 25px/1.25 "Unbounded", sans-serif; margin: 48px 0 16px; scroll-margin-top: 90px; letter-spacing: -.01em; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { text-decoration-thickness: 1.5px; }
.prose blockquote {
  position: relative; margin: 32px 0; padding: 22px 26px 22px 64px; background: var(--yellow); color: #1b1a17;
  border-radius: var(--radius); font-weight: 500;
}
.prose blockquote::before { content: "!"; position: absolute; left: 22px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: #1b1a17; color: var(--yellow); display: grid; place-items: center; font: 800 15px/1 "Unbounded", sans-serif; }
.prose blockquote a { color: #1b1a17; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 26px; font-size: 15.5px; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 700; background: var(--chip); }
.prose strong { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose figure { margin: 30px 0; }
.prose figure img { display: block; width: 100%; border-radius: 14px; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose code { background: var(--chip); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.more { padding-bottom: 40px; padding-top: 20px; }
.more h2 { margin: 24px 0 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14px; background: var(--paper); }
.foot__in { display: grid; gap: 14px; }
.foot__brand { display: grid; gap: 4px; max-width: 620px; }
.foot__brand strong { color: var(--ink); font: 800 17px/1.2 "Unbounded", sans-serif; }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a { color: var(--ink); }
.foot__copy { font-size: 12.5px; }

@media (max-width: 960px) {
  .art__cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; }
}
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; order: -1; }
  .feature { grid-template-columns: 1fr; }
  .feature__img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 20px; }
  .hero__art { max-width: 240px; }
  .hero__sub { font-size: 17px; }
  .feature__body { padding: 24px; }
  .grid, .grid--3 { grid-template-columns: 1fr; }
  .lead { font-size: 18px; }
  .prose { font-size: 17px; }
  .nav { gap: 14px; }
  .nav a:not(:last-child) { display: none; }
  .logo__name { font-size: 16px; }
  .platforms { gap: 20px; }
  .sticker { font-size: 12px; padding: 7px 11px; }
}
