@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  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;
  --bg: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0066cc;
  --button: #0071e3;
  --ai: #e9e9eb;
  --control: #e9e9ed;
  --selected: #fff;
  --green: #248a3d;
  --nav: rgba(245,245,247,.9);
  --soft-blue: #eaf2fc;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --blue: #2997ff;
    --ai: #2c2c2e;
    --control: #303033;
    --selected: #58585c;
    --green: #30d158;
    --nav: rgba(0,0,0,.9);
    --soft-blue: #101e2c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --card: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6;
  --line: #38383a; --blue: #2997ff; --ai: #2c2c2e;
  --control: #303033; --selected: #58585c; --green: #30d158;
  --nav: rgba(0,0,0,.9); --soft-blue: #101e2c;
}
* { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -.018em;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 650; text-wrap: balance; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button {
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
button:disabled { opacity: .3; cursor: default; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { flex: none; display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -100px; background: var(--card); padding: 12px; z-index: 100; }
.skip:focus { top: 12px; }
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 980px; height: 54px; padding: 0 20px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 650; letter-spacing: -.04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-pill { background: var(--button); color: #fff; padding: 6px 15px; font-size: 13px; font-weight: 500; border-radius: 30px; line-height: 1.5; }
.nav-pill:hover, .button:hover { background: #0077ed; text-decoration: none; }
.theme-button { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 50%; }
.theme-button:hover { background: var(--control); }
.theme-button svg { width: 18px; height: 18px; }
main, .footer { max-width: 732px; padding: 0 24px; margin: auto; }
.hero { text-align: center; }
.home-hero { padding: 76px 0 58px; }
.hero h1 { font-size: clamp(32px, 7.8vw, 56px); line-height: 1.09; margin: 0 0 22px; }
.subtitle { font-size: 23px; line-height: 1.42; letter-spacing: -.025em; text-wrap: balance; }
.guide-card { display: flex; gap: 22px; align-items: center; justify-content: space-between; background: var(--card); border-radius: 20px; padding: 25px 24px; color: var(--text); transition: background .2s, transform .2s; }
.guide-card:hover { background: var(--ai); text-decoration: none; transform: translateY(-2px); }
.guide-card-text { min-width: 0; }
.guide-card strong { display: block; font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.card-description { display: block; color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 7px; }
.card-chevron { width: 17px; height: 17px; color: var(--muted); }
.library-note { font-size: 14px; line-height: 1.5; margin: 13px 4px 0; color: var(--muted); }
.home-practice { padding: 76px 0 0; text-align: center; }
.section-label, .step-label, .eyebrow { font-size: 14px; line-height: 1.5; color: var(--muted); letter-spacing: -.01em; font-weight: 400; }
.section-heading h2 { font-size: 38px; line-height: 1.13; margin: 12px 0 17px; }
.section-heading > p:last-child { font-size: 18px; line-height: 1.5; color: var(--muted); }
.chat-window { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-align: left; }
.home-chat { max-width: 580px; margin: 28px auto 22px; }
.window-bar { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.window-tool { color: var(--muted); }
.chat-content { padding: 28px 22px 12px; }
.chat-date { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 22px; }
.message.sent { align-items: flex-end; }
.bubble { max-width: 87%; padding: 12px 16px; font: 400 17px/1.4 var(--font); letter-spacing: -.02em; border-radius: 20px; }
.sent .bubble { background: #007aff; color: #fff; border-bottom-right-radius: 6px; }
.received .bubble { background: var(--ai); border-bottom-left-radius: 6px; }
.copy-bubble { border: 0; text-align: left; transition: filter .15s; }
.copy-bubble:hover { filter: brightness(1.12); }
.copy-bubble:active { transform: scale(.985); }
.bubble-copy { display: inline-block; margin-left: 7px; vertical-align: -2px; opacity: .8; }
.bubble-copy svg { width: 16px; height: 16px; stroke-width: 1.6; }
.message-status { font-size: 12px; line-height: 1.5; margin: 6px 3px 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; line-height: 1.5; }
.text-link svg { width: 18px; height: 18px; }
.telegram-card { margin-top: 64px; padding: 38px 24px; border-radius: 20px; text-align: center; background: var(--card); }
.telegram-card h2 { font-size: 34px; line-height: 1.16; margin: 11px 0 16px; }
.telegram-card p:not(.section-label):not(.eyebrow) { font-size: 17px; line-height: 1.55; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--button); color: #fff; border-radius: 30px; min-height: 46px; padding: 10px 24px; font-size: 16px; margin-top: 23px; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; position: relative; padding-top: 28px; padding-bottom: 36px; margin-top: 52px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer:before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: var(--line); }
.footer a { white-space: nowrap; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 13px 18px; border-radius: 14px; background: var(--text); color: var(--bg); text-align: center; font-size: 14px; line-height: 1.5; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; font-size: 15px; }
.back-link svg { width: 18px; height: 18px; }
.guide-hero { padding: 44px 0 32px; }
.guide-hero .eyebrow { margin-bottom: 18px; }
.guide-hero h1 { font-size: clamp(34px, 6.8vw, 52px); max-width: 660px; margin: 0 auto 20px; }
.guide-hero .subtitle { font-size: 23px; }
.settings { max-width: 560px; margin: 32px auto 0; background: var(--card); border-radius: 18px; padding: 0 18px; }
.setting-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 64px; padding: 10px 0; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-label { font-size: 16px; }
.segmented { display: flex; padding: 3px; border-radius: 9px; background: var(--control); width: 260px; flex: none; }
.segmented button { flex: 1; border: 0; background: none; color: var(--text); border-radius: 7px; font-size: 14px; line-height: 1.25; min-height: 35px; padding: 6px 12px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--selected); box-shadow: 0 1px 4px #00000014; font-weight: 500; }
.settings-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.contents { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 0 0 28px; }
.contents a { font-size: 14px; color: var(--muted); }
.contents span { color: var(--blue); margin-right: 5px; font-size: 13px; }
.intro-note { display: flex; gap: 13px; background: var(--soft-blue); padding: 20px; border-radius: 18px; }
.intro-note p { font-size: 16px; line-height: 1.6; }
.intro-note strong { font-weight: 600; }
.info-icon { margin-top: 3px; color: var(--blue); }
.info-icon svg { width: 20px; height: 20px; }
.guide-section { padding-top: 54px; }
.step-label { margin-bottom: 7px; }
.guide-section h2 { font-size: 32px; line-height: 1.16; margin-bottom: 18px; }
.guide-section > p:not(.step-label):not(.small-note):not(.field-label) { font-size: 17px; color: var(--text); line-height: 1.6; margin-bottom: 20px; }
.group { margin: 0; background: var(--card); border-radius: 18px; overflow: hidden; }
.group-row { padding: 20px; }
.group-row strong { font-weight: 600; font-size: 17px; }
.group-row p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 8px 0 14px; }
.field-label { font-size: 14px; color: var(--muted); margin: 23px 4px 9px; }
.command { background: var(--card); padding: 11px 18px; border-radius: 14px; display: flex; align-items: center; gap: 14px; min-height: 58px; }
.command code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 400 14px/1.6 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0; }
.copy-button { flex: none; border: 0; background: none; color: var(--blue); font-size: 13px; padding: 8px 0; min-height: 40px; }
.small-note { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 12px 4px 0; }
.disclosure { margin-top: 20px; }
.disclosure summary, .faq summary { list-style: none; position: relative; cursor: pointer; padding: 19px 47px 19px 20px; font-size: 16px; line-height: 1.5; }
.disclosure summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.disclosure summary:after, .faq summary:after { content: ""; position: absolute; right: 23px; top: 25px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.disclosure[open] summary:after, .faq details[open] summary:after { transform: rotate(225deg); top: 29px; }
.disclosure .group-row { border-top: 1px solid var(--line); padding-top: 8px; }
.disclosure .command { background: var(--bg); padding: 10px 13px; margin-top: 10px; }
.success-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.success-note p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.check-circle { display: grid; place-items: center; background: var(--green); color: var(--card); width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 2px; }
.check-circle svg { width: 13px; height: 13px; stroke-width: 2; }
.commit-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.branch-mark { color: var(--blue); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; min-height: 320px; padding: 23px 22px 16px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 0 20px; }
.arrow-button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); }
.arrow-button svg { width: 18px; height: 18px; }
.dots { display: flex; }
.dots button { position: relative; width: 28px; height: 38px; background: none; border: 0; }
.dots button:after { content: ""; width: 6px; height: 6px; position: absolute; top: 16px; left: 11px; border-radius: 50%; background: var(--muted); opacity: .35; }
.dots button[aria-current="true"]:after { background: var(--text); opacity: 1; }
.centered { text-align: center; }
.glossary > div { display: grid; grid-template-columns: 125px 1fr; gap: 16px; padding: 19px 20px; }
.glossary > div + div, .faq details + details { border-top: 1px solid var(--line); }
dt { font-weight: 500; font-size: 16px; }
dd { margin: 0; color: var(--muted); font-size: 16px; }
.faq details > p { padding: 0 20px 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq code { font-size: 14px; padding: 2px 5px; background: var(--bg); border-radius: 4px; }
.compact .eyebrow { margin-bottom: 12px; }
.compact h2 { font-size: 30px; }
.back-bottom { display: flex; margin: 28px auto 0; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 30; height: 2px; background: var(--blue); pointer-events: none; width: 0; }

@media (max-width: 600px) {
  main, .footer { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding: 0 18px; height: 52px; }
  .brand { font-size: 19px; }
  .nav-right { gap: 6px; }
  .home-hero { padding: 58px 0 43px; }
  .hero h1 { margin-bottom: 18px; }
  .subtitle { font-size: 21px; }
  .guide-card { padding: 21px 18px; gap: 18px; border-radius: 18px; }
  .guide-card strong { font-size: 17px; line-height: 1.4; }
  .card-description { font-size: 15px; margin-top: 5px; }
  .library-note { font-size: 13px; margin-top: 11px; }
  .desktop-break { display: none; }
  .home-practice { padding-top: 58px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p:last-child { font-size: 17px; }
  .chat-content { padding: 24px 18px 4px; }
  .bubble { font-size: 16px; max-width: 90%; }
  .message-status { font-size: 12px; max-width: 95%; text-align: right; }
  .window-bar { padding: 13px 18px; }
  .home-chat { margin-top: 24px; }
  .telegram-card { margin-top: 48px; padding: 32px 20px; }
  .telegram-card h2 { font-size: 30px; }
  .telegram-card p:not(.section-label):not(.eyebrow) { font-size: 16px; }
  .footer { flex-wrap: wrap; gap: 8px; margin-top: 40px; font-size: 13px; }
  .footer:before { left: 18px; right: 18px; }
  .guide-hero { padding: 36px 0 26px; }
  .guide-hero h1 { font-size: clamp(32px, 8vw, 40px); }
  .guide-hero .subtitle { font-size: 21px; }
  .settings { padding: 0 16px; margin-top: 28px; }
  .setting-row { gap: 12px; min-height: 64px; }
  .setting-label { font-size: 15px; }
  .segmented { width: 218px; }
  .segmented button { font-size: 13px; padding: 6px 9px; }
  .contents { gap: 16px; padding-bottom: 25px; }
  .contents a { font-size: 13px; }
  .intro-note { padding: 17px; gap: 10px; }
  .intro-note p { font-size: 15px; }
  .guide-section { padding-top: 44px; }
  .guide-section h2 { font-size: 28px; }
  .group-row { padding: 18px; }
  .command { gap: 12px; padding: 10px 15px; }
  .command code { font-size: 13px; }
  .copy-button { font-size: 12px; }
  .small-note { font-size: 13px; }
  .slide { padding: 22px 18px 14px; min-height: 355px; }
  .commit-line { font-size: 13px; }
  .glossary > div { grid-template-columns: 104px 1fr; gap: 12px; padding: 18px; }
  dt, dd { font-size: 15px; }
  .disclosure summary, .faq summary { font-size: 15px; }
  .compact h2 { font-size: 28px; }
}
@media (max-width:380px) {
  .home-hero h1 { font-size: 29px; }
  .subtitle, .guide-hero .subtitle { font-size: 20px; }
  .settings { padding: 0 13px; }
  .setting-label { font-size: 14px; }
  .segmented { width: 190px; }
  .segmented button { font-size: 12px; padding: 6px 7px; }
  .contents { gap: 10px; }
  .contents a { font-size: 12px; }
  .command { flex-wrap: wrap; gap: 3px 12px; }
  .command code { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
