@font-face {
  font-family: Inter;
  src: url("inter-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #25251f;
  --muted: #5c5b50;
  --paper: #f7f5ef;
  --panel: #fffefa;
  --line: #dedbd0;
  --yellow: #f6cf52;
  --deep-yellow: #8a5a13;
  --shell: 1200px;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3, ul, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #79510e; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.shell { width: min(var(--shell), calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; transform: translateY(-200%); padding: 10px 16px; background: var(--yellow); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 75px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { display: inline-block; width: 35px; height: 35px; background: url("mark.svg") center / contain no-repeat; }
.header-inner nav { display: flex; align-items: center; gap: 36px; color: var(--muted); font-size: 14px; font-weight: 650; }
.header-inner nav a:hover, .back-to-top:hover { color: #83581b; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 11px 15px; border: 1px solid var(--ink); border-radius: 8px; font-size: 13px; font-weight: 750; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.header-button:hover { color: var(--paper); background: var(--ink); }
.primary { padding: 14px 18px; color: var(--paper); background: var(--ink); }
.primary span { color: var(--yellow); font-size: 18px; line-height: 1; }
.primary:hover { color: var(--ink); background: var(--yellow); }
.primary:hover span { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(26px, 5vw, 72px); padding-block: 103px 95px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #60552d; font-size: 13px; font-weight: 700; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #c18c23; }
.hero h1 { font-size: clamp(45px, 5.6vw, 81px); line-height: .99; font-weight: 800; letter-spacing: -.08em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 74%, #f7d66a 74%, #f7d66a 96%, transparent 96%); padding-inline: 1px 7px; }
.hero-description { max-width: 415px; margin-block: 25px 26px; color: var(--muted); font-size: clamp(16px, 1.45vw, 18px); line-height: 1.66; }

.product {
  position: relative;
  min-width: 0;
  border: 1px solid #cecabd;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 11px 11px 0 #ebe6d9, 0 24px 48px #25251f0e;
}
.product-chrome { display: flex; align-items: center; gap: 13px; padding: 12px 15px; min-height: 48px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; background: #efede4; }
.window-dots { display: flex; gap: 4px; flex: none; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b8b4a7; }
.product-address { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #58564b; font-size: 11px; font-weight: 650; }
.product-address b { margin-inline: 4px; color: #777366; font-weight: 500; }
.demo-label { margin-left: auto; padding: 3px 7px; border: 1px solid #d3bd7c; border-radius: 4px; color: #674809; background: #fff6d6; font-size: 10px; font-weight: 750; }
.product-body { display: grid; grid-template-columns: minmax(140px, 31%) minmax(0, 1fr); }
.product-sidebar { border-right: 1px solid var(--line); background: #faf8f0; padding: 20px 12px; }
.repo-kicker, .doc-kicker, .example-label { color: #70561a; font-size: 10px; line-height: 1.4; letter-spacing: .06em; font-weight: 750; text-transform: uppercase; }
.repo-kicker, .repo-name { margin-inline: 7px; }
.repo-name { margin-top: 7px; font-size: 15px; font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.doc-list { display: grid; gap: 3px; padding: 0; margin-top: 19px; list-style: none; }
.doc-list li { padding: 7px 5px; color: #666356; border-radius: 5px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.doc-list li span { display: inline-block; width: 13px; color: #7a6229; }
.doc-list .current { background: #f6e7ae; color: var(--ink); font-weight: 750; }
.product-doc { min-width: 0; padding: clamp(16px, 2.4vw, 32px); }
.product-doc h2 { margin-block: 8px 10px; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.065em; }
.doc-lead { color: var(--muted); font-size: 12px; line-height: 1.55; }
.doc-lines { display: grid; gap: 5px; margin-block: 15px; }
.doc-lines i { height: 4px; width: 91%; border-radius: 4px; background: #ece9df; }
.doc-lines i:last-child { width: 60%; }
.reference, .assistant-preview { display: flex; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 6px; }
.reference { background: #fbf2d8; }
.reference-mark { color: #775214; font-size: 19px; }
.reference strong, .assistant-preview b { display: block; font-size: 11px; line-height: 1.25; }
.reference small, .assistant-preview div span { display: block; margin-top: 3px; color: #62594a; font-size: 10px; line-height: 1.35; }
.assistant-preview { margin-top: 10px; border: 1px solid #e6e1d4; }
.assistant-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 4px; color: var(--yellow); background: var(--ink); }
.product figcaption { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.structure { padding-block: 62px 68px; border-block: 1px solid var(--line); background: var(--panel); }
.section-heading { max-width: 730px; margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(31px, 4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -.065em; }
.section-heading p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.feature { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.feature-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 13px; border-radius: 7px; background: #f8e6aa; font-size: 18px; font-weight: 700; }
.feature h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.2; letter-spacing: -.04em; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.scenarios { padding-block: 65px 73px; }
.scenario-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.scenario-tabs button { min-height: 42px; padding: 8px 14px; border: 1px solid #d6d2c4; border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.scenario-tabs button:hover { background: #f9edc9; }
.scenario-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.scenario-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(18px, 5vw, 60px); min-height: 230px; padding: clamp(21px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.scenario-copy h3 { margin-bottom: 12px; font-size: clamp(22px, 2.9vw, 34px); line-height: 1.1; letter-spacing: -.055em; }
.scenario-copy p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.example-card { padding: 16px 18px; border: 1px solid #e8d699; border-radius: 8px; background: #fbf1d3; }
.example-card ul { display: grid; gap: 8px; margin-top: 11px; padding: 0; list-style: none; font-size: 13px; line-height: 1.35; }
.example-card li { display: flex; align-items: baseline; gap: 8px; }
.example-card li::before { content: "↳"; color: var(--deep-yellow); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; }
.footer-inner p, .back-to-top { color: var(--muted); font-size: 13px; }
.back-to-top { font-weight: 700; white-space: nowrap; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hero { padding-block: 79px; }
  .hero h1 { font-size: clamp(43px, 6vw, 64px); }
}

@media (max-width: 770px) {
  .shell { width: calc(100% - 44px); }
  .header-inner nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 35px; padding-block: 57px 60px; }
  .hero h1 { font-size: clamp(49px, 10vw, 72px); }
  .hero-description { margin-block: 19px 20px; }
  .product { margin-right: 8px; box-shadow: 8px 8px 0 #ebe6d9, 0 20px 40px #25251f0e; }
  .product-doc { padding: 21px; }
  .product-doc h2 { font-size: clamp(20px, 4.8vw, 31px); }
  .structure, .scenarios { padding-block: 47px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .scenario-panel { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; gap: 10px 18px; padding-block: 17px; }
  .footer-inner p { order: 3; width: 100%; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 10px; min-height: 65px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-button { padding-inline: 8px; gap: 5px; font-size: 11px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 49px); }
  .product-chrome { gap: 7px; padding-inline: 10px; }
  .product-body { grid-template-columns: 104px minmax(0, 1fr); }
  .product-sidebar { padding: 13px 5px; }
  .repo-kicker { font-size: 8px; }
  .repo-name { font-size: 12px; }
  .doc-list li { padding-inline: 3px; font-size: 9px; }
  .doc-list li span { width: 9px; }
  .product-doc { padding: 14px 10px; }
  .product-doc h2 { font-size: 17px; }
  .doc-kicker, .doc-lead { font-size: 9px; }
  .reference, .assistant-preview { padding-inline: 5px; gap: 6px; }
  .assistant-preview div span, .reference small { font-size: 9px; }
  .scenario-tabs { gap: 4px; }
  .scenario-tabs button { padding-inline: 7px; font-size: 11px; }
}

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