/* Kirsty — общие стили контентных страниц (База знаний, Глоссарий, О компании) */
:root {
  --bg: #FAFAFA;
  --bg-dark: #0A0A0B;
  --bg-card: #FFFFFF;
  --fg: #0A0A0B;
  --fg-inv: #FAFAFA;
  --muted: #6B6B73;
  --muted-2: #A5A5AD;
  --border: #E8E8EB;
  --accent: #FF5A36;
  --accent-hover: #FF7050;
  --accent-2: #FFD600;
  --accent-3: #7A3AFF;
  --success: #10B981;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
h1 { font-size: clamp(34px, 5.5vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); }
h4 { font-size: 19px; }

.container { max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; top: -40px; left: 12px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 9999; }
.skip-link:focus { top: 12px; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(250,250,250,0.82); border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(255,90,54,0.7); }
.nav { display: none; gap: 24px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a.active { color: var(--accent); }
@media (min-width: 900px) { .nav { display: flex; } }
.header__right { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; transition: transform .12s var(--ease), background .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 24px rgba(255,90,54,.32); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 6px 32px rgba(255,90,54,.5); transform: translateY(-1px); }
.btn--ghost { color: var(--fg); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--big { padding: 15px 26px; font-size: 16px; }
.burger { display: inline-flex; flex-direction: column; gap: 4px; padding: 8px; }
.burger span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; }
@media (min-width: 900px) { .burger { display: none; } }
.mobnav { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,11,.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; padding: 80px 32px 32px; transform: translateX(100%); transition: transform .4s var(--ease); color: #fff; }
.mobnav.open { transform: translateX(0); }
.mobnav a { display: block; padding: 15px 0; font-size: 21px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobnav a:hover { text-decoration: none; }
.mobnav__close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; color: #fff; font-size: 28px; }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--bg-dark); color: var(--fg-inv); padding: clamp(48px,7vw,90px) 0 clamp(40px,6vw,72px); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(40% 50% at 15% 20%, rgba(255,90,54,.45), transparent 70%), radial-gradient(35% 45% at 85% 30%, rgba(122,58,255,.35), transparent 70%); filter: blur(60px); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero h1 .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__lead { margin-top: 18px; font-size: clamp(16px,2vw,20px); color: rgba(250,250,250,.78); max-width: 60ch; }
.eyebrow { display: inline-block; padding: 6px 12px; background: rgba(255,90,54,.1); color: var(--accent); border: 1px solid rgba(255,90,54,.2); border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; margin-bottom: 18px; }
.crumbs { font-size: 13px; color: rgba(250,250,250,.55); margin-bottom: 18px; }
.crumbs a { color: rgba(250,250,250,.7); }
.crumbs span { margin: 0 6px; }

/* ===== SECTION ===== */
.section { padding: clamp(44px,6vw,80px) 0; }

/* ===== KB INDEX ===== */
.kb-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .kb-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kb-grid { grid-template-columns: 1fr 1fr 1fr; } }
.kb-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; }
.kb-card:hover { transform: translateY(-3px); border-color: rgba(255,90,54,.4); box-shadow: 0 20px 44px rgba(0,0,0,.07); text-decoration: none; }
.kb-card__tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.kb-card__title { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 10px 0 8px; color: var(--fg); }
.kb-card__desc { font-size: 15px; color: var(--muted); flex: 1; }
.kb-card__more { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.kb-cat-title { font-family:'Manrope',sans-serif; font-weight:800; font-size:22px; margin: 8px 0 20px; }

/* ===== ARTICLE / PROSE ===== */
.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose a { font-weight: 500; }
.prose blockquote { margin: 22px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: rgba(255,90,54,.05); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--fg); }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: .9em; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 5px; }
.prose .lead { font-size: 20px; color: var(--fg); margin-bottom: 24px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-card); font-weight: 700; }
.prose figure { margin: 22px 0; }
.callout { margin: 24px 0; padding: 22px 24px; background: var(--bg-dark); color: var(--fg-inv); border-radius: var(--r-lg); }
.callout h3 { color: #fff; margin: 0 0 8px; }
.callout p { color: rgba(250,250,250,.8); margin: 0 0 14px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* mini FAQ inside article */
.mini-faq { margin-top: 14px; }
.mini-faq__item { border-bottom: 1px solid var(--border); }
.mini-faq__item:first-child { border-top: 1px solid var(--border); }
.mini-faq__q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-family: 'Manrope',sans-serif; font-weight: 600; font-size: 17px; text-align: left; color: var(--fg); }
.mini-faq__q:hover { color: var(--accent); }
.mini-faq__icon { flex-shrink: 0; width: 24px; height: 24px; position: relative; border: 1.5px solid var(--border); border-radius: 50%; transition: .25s; }
.mini-faq__icon::before, .mini-faq__icon::after { content: ''; position: absolute; background: var(--fg); border-radius: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.mini-faq__icon::before { width: 10px; height: 2px; }
.mini-faq__icon::after { width: 2px; height: 10px; transition: transform .25s; }
.mini-faq__item.open .mini-faq__icon { background: var(--accent); border-color: var(--accent); }
.mini-faq__item.open .mini-faq__icon::before { background: #fff; }
.mini-faq__item.open .mini-faq__icon::after { background: #fff; transform: translate(-50%,-50%) rotate(90deg); }
.mini-faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); color: var(--muted); }
.mini-faq__item.open .mini-faq__a { max-height: 600px; padding-bottom: 18px; }

/* TOC */
.toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 30px; }
.toc__title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }

/* ===== GLOSSARY ===== */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.glossary-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--fg); background: var(--bg-card); }
.glossary-nav a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.glossary-group { margin-bottom: 36px; }
.glossary-group__letter { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 28px; color: var(--accent); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.term { padding: 18px 0; border-bottom: 1px solid var(--border); }
.term:last-child { border-bottom: 0; }
.term__name { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.term__def { color: var(--muted); font-size: 16px; }
.term__def a { font-weight: 500; }

/* ===== ABOUT ===== */
.stat-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 32px 0; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.stat__num { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: clamp(30px,3.4vw,42px); letter-spacing: -.03em; background: linear-gradient(90deg,var(--accent),var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.value-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: 1fr 1fr; } }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.value-card h3 { font-size: 20px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15px; }

/* ===== CTA STRIP ===== */
.cta-strip { background: radial-gradient(circle at 30% 50%, #FF5A36 0%, #B83A1F 45%, #4A1A2E 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(32px,5vw,56px); text-align: center; margin: 8px 0; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 14px 0 24px; font-size: 17px; }
.cta-strip .btn--primary { background: var(--bg-dark); }
.cta-strip .btn--primary:hover { background: #1f1f22; }

/* ===== FOOTER ===== */
.footer { background: #050506; color: rgba(250,250,250,.7); padding: 60px 0 30px; margin-top: 20px; }
.footer__top { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.06); }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand { font-family: 'Manrope',sans-serif; font-weight: 800; font-size: 23px; color: #fff; }
.footer__slogan { margin-top: 12px; font-size: 14px; max-width: 320px; color: rgba(250,250,250,.6); }
.footer__col-title { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; font-size: 14px; }
.footer__col a { color: rgba(250,250,250,.7); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 12px; color: rgba(250,250,250,.45); }

/* ===== reveal ===== */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
