:root {
    --bg: #050914;
    --bg-card: #0d1423;
    --bg-card-2: #111a2a;
    --border: rgba(181, 161, 255, .15);
    --border-strong: rgba(181, 161, 255, .3);
    --text: #f2f1f8;
    --text-2: #9ca4b9;
    --accent: #9b73ff;
    --accent-light: #b99bff;
    --accent-2: #ff6e65;
    --pink: #ff5f9e;
    --good: #54d99a;
    --bad: #ff766f;
    --shell: 1080px;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    min-width: 320px;
    background:
        radial-gradient(circle at 84% 8%, rgba(143,104,255,.12), transparent 25rem),
        radial-gradient(circle at 8% 32%, rgba(255,95,158,.055), transparent 30rem),
        linear-gradient(180deg, #050914 0%, #060b16 55%, #050914 100%);
    color: var(--text);
    font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .34;
    background-image:
        linear-gradient(rgba(146,128,201,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(146,128,201,.05) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
    pointer-events: none;
}
::selection { background: rgba(155,115,255,.3); color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(255,110,101,.7); outline-offset: 4px; }

.article-progress {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--pink), var(--accent-2));
    box-shadow: 0 0 18px rgba(155,115,255,.7);
    pointer-events: none;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    padding: 13px 0;
    border-bottom: 1px solid rgba(181,161,255,.1);
    background: rgba(5,9,20,.82);
    color: #fff;
    backdrop-filter: blur(20px);
    transition: background-color .25s ease, border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: rgba(181,161,255,.18); background: rgba(5,9,20,.94); }
.site-header .container { max-width: 1160px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 21px; letter-spacing: -.04em; }
.logo::before { content: "R"; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: linear-gradient(140deg, var(--accent), var(--pink)); color: #fff; font-size: 14px; box-shadow: inset 0 1px rgba(255,255,255,.28); }
.header-cta { border: 1px solid transparent; border-radius: 11px; background: linear-gradient(105deg, #ff7669, var(--pink)); color: #fff; box-shadow: 0 10px 28px rgba(255,95,158,.22); transition: transform .2s ease, box-shadow .2s ease; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,95,158,.32); }

body > main.container { max-width: var(--shell); padding: 28px 24px 88px; }
.breadcrumb { margin: 20px 0 42px; color: #747d92; font-size: 13px; }
.breadcrumb a { color: var(--accent-light); }
article { position: relative; }
article::before {
    content: "AI-ГАЙД RIZZAI";
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}
article > h1 {
    max-width: 980px;
    margin: 0 0 18px;
    color: #f7f6fb;
    font-size: clamp(46px, 7vw, 82px);
    line-height: .96;
    letter-spacing: -.06em;
    text-wrap: balance;
    text-shadow: 0 0 42px rgba(155,115,255,.08);
}
article > h1::after {
    content: "";
    display: block;
    width: min(520px, 72vw);
    height: 32px;
    margin-top: 25px;
    background:
        linear-gradient(90deg, transparent, var(--accent), var(--pink), var(--accent-2), transparent) center / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, transparent 0 11px, rgba(155,115,255,.8) 11px 14px, transparent 14px 21px) center / 100% 14px no-repeat;
    filter: drop-shadow(0 0 9px rgba(155,115,255,.38));
    opacity: .64;
    mask-image: linear-gradient(90deg, #000, #000 76%, transparent);
}
.article-meta { margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--border); color: #778095; }
.article-meta::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(84,217,154,.08); vertical-align: .08em; }
article > p:not(.article-meta):first-of-type { max-width: 850px; margin-bottom: 54px; color: #c2c7d5; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.55; }
article h2 { max-width: 850px; margin: 72px 0 20px; color: #f0eff5; font-size: clamp(29px, 4vw, 44px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
article h3 { color: #e9e8ef; font-size: 20px; letter-spacing: -.02em; }
article p, article ul, article ol, article .faq-block { max-width: 800px; }
article p { color: #c7cad5; }
article p.muted, article li { color: var(--text-2); }
article ul, article ol { padding-left: 26px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--accent-light); font-weight: 800; }
article strong { color: #f0eff5; }
article a { text-underline-offset: 3px; }

.example { position: relative; overflow: hidden; max-width: 850px; margin: 20px 0; padding: 24px 26px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(150deg, rgba(15,23,39,.96), rgba(8,13,24,.98)); box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.example::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 210px; height: 210px; border-radius: 50%; pointer-events: none; }
.example.good::after { background: radial-gradient(circle, rgba(84,217,154,.08), transparent 68%); }
.example.bad::after { background: radial-gradient(circle, rgba(255,118,111,.08), transparent 68%); }
.example .label { margin-bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.example.good { border-left: 3px solid var(--good); }
.example.bad { border-left: 3px solid var(--bad); }
.example.good .label { color: var(--good); }
.example.bad .label { color: var(--bad); }
.example p { position: relative; z-index: 1; margin-bottom: 8px; color: #c8ccd8; }

.warn { max-width: 850px; padding: 20px 22px; border: 1px solid rgba(255,118,111,.3); border-radius: 16px; background: rgba(255,118,111,.06); color: #bdc1ce; }

.cta-box { position: relative; overflow: hidden; max-width: 900px; margin: 72px 0; padding: 46px; border: 1px solid var(--border-strong); border-radius: 26px; background: radial-gradient(circle at 88% 72%, rgba(255,95,158,.11), transparent 28%), linear-gradient(145deg, #11172a, #080e19 72%); color: #fff; text-align: left; box-shadow: 0 32px 90px rgba(0,0,0,.35), 0 0 48px rgba(155,115,255,.06); }
.cta-box::before { content: "RIZZAI SIGNAL"; display: block; margin-bottom: 16px; color: var(--accent-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.cta-box::after { content: ""; position: absolute; right: -90px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(155,115,255,.28), rgba(255,95,158,.1) 43%, transparent 70%); pointer-events: none; }
.cta-box h2 { position: relative; z-index: 1; margin: 0 0 12px; color: #fff; font-size: clamp(29px, 4vw, 42px); }
.cta-box p { position: relative; z-index: 1; max-width: 680px; color: #aeb4c5; }
.cta-box .btn, .article-final .btn { position: relative; z-index: 1; display: inline-flex; min-height: 54px; align-items: center; justify-content: center; margin-top: 17px; padding: 14px 25px; border-radius: 12px; background: linear-gradient(105deg, #ff7669, var(--pink) 58%, #b76dff); color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 14px 36px rgba(255,95,158,.24); transition: transform .2s ease, box-shadow .2s ease; }
.cta-box .btn:hover, .article-final .btn:hover { transform: translateY(-2px); box-shadow: 0 19px 44px rgba(255,95,158,.34); }
.cta-box .btn-note { color: #737d92; }

.faq-block { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; }
.faq-block h3 { margin: 0; padding: 20px 22px 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; background: rgba(13,20,35,.78); color: var(--accent-light); }
.faq-block p { min-height: 100%; margin: -15px 0 0; padding: 26px 22px 22px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 16px 16px; background: rgba(13,20,35,.78); }
.related { position: relative; overflow: hidden; max-width: 900px; margin: 76px 0 0; padding: 32px 36px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(150deg, rgba(15,23,39,.9), rgba(8,13,24,.95)); }
.related::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(155,115,255,.11), transparent 68%); }
.related h2 { margin: 0 0 18px; font-size: 26px; }
.related a { position: relative; z-index: 1; color: var(--accent-light); font-weight: 650; }

.article-final { position: relative; overflow: hidden; max-width: 900px; margin: 22px 0 0; padding: 48px 38px; border: 1px solid rgba(181,161,255,.2); border-radius: 22px; background: radial-gradient(circle at 76% 50%, rgba(155,115,255,.13), transparent 32%), #080e19; text-align: center; }
.article-final::before, .article-final::after { content: ""; position: absolute; left: -8%; right: -8%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--pink), var(--accent-2), transparent); box-shadow: 0 0 18px rgba(155,115,255,.46); opacity: .58; transform: rotate(-2deg); }
.article-final::after { transform: rotate(2deg) translateY(18px); opacity: .28; }
.article-final h2 { position: relative; z-index: 1; margin: 0 auto 10px; color: #fff; font-size: clamp(31px, 5vw, 52px); text-shadow: 0 0 34px rgba(155,115,255,.12); }
.article-final p { position: relative; z-index: 1; margin: 0 auto; color: #b1b7c8; }

.site-footer { margin-top: 0; padding: 38px 0; border-top: 1px solid rgba(181,161,255,.1); background: #030711; color: #737b8f; }
.site-footer .container { max-width: 1160px; }
.site-footer a { color: #bdc1ce; }

.article-sticky { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 9px 9px 16px; border: 1px solid rgba(181,161,255,.18); border-radius: 16px; background: rgba(5,9,20,.92); color: #fff; box-shadow: 0 18px 52px rgba(0,0,0,.48); backdrop-filter: blur(18px); transform: translateY(145%); transition: transform .3s ease; }
.article-sticky.visible { transform: none; }
.article-sticky span { display: flex; flex-direction: column; line-height: 1.1; }
.article-sticky small { color: #7d879c; }
.article-sticky a { display: inline-flex; min-height: 42px; align-items: center; padding: 10px 15px; border-radius: 11px; background: linear-gradient(105deg, #ff7669, var(--pink)); color: #fff; font-size: 13px; font-weight: 750; text-decoration: none; }

.article-js .article-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); }
.article-js .article-reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .site-header .container { padding-inline: 14px; }
    .header-cta { padding: 9px 12px; font-size: 13px; }
    body > main.container { padding-inline: 18px; padding-bottom: 96px; }
    .breadcrumb { margin-bottom: 30px; }
    article::before { margin-bottom: 13px; }
    article > h1 { font-size: clamp(40px, 12.5vw, 60px); }
    article > h1::after { margin-top: 18px; }
    .article-meta { margin-bottom: 36px; }
    article h2 { margin-top: 56px; }
    .cta-box { padding: 32px 24px; }
    .cta-box .btn { display: flex; width: 100%; text-align: center; }
    .faq-block { grid-template-columns: 1fr; gap: 12px; }
    .related { padding: 27px 24px; }
    .article-final { padding: 42px 22px; }
    .article-final .btn { width: 100%; }
    .article-sticky { display: flex; }
    .site-footer { padding-bottom: 98px; text-align: left; }
}

@media (max-width: 430px) {
    .logo { font-size: 19px; }
    .logo::before { width: 28px; height: 28px; }
    .header-cta { max-width: 150px; white-space: nowrap; }
    article > h1 { font-size: clamp(38px, 12vw, 52px); }
    .example { padding: 20px; }
    .article-sticky > span { display: none; }
    .article-sticky a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .article-js .article-reveal { opacity: 1; transform: none; }
}
