﻿:root {
    --accent:#6B4EFF;
    --accent-2:#A78BFA;
    --ink:#111;
    --muted:#555;
    --bg:#fff;
    --soft:#F6F5FF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.wrap {
    padding: 0 6%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .nav-links a {
        font-weight: 600;
        position: relative;
        padding: 6px 0;
    }

        .nav-links a.active::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -6px;
            height: 3px;
            background: var(--accent);
            border-radius: 2px;
        }

        .nav-links a:hover {
            color: var(--accent);
        }

.lang {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    min-width: 180px;
    display: none;
}

    .lang-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

        .lang-menu a:hover {
            background: #f8f8ff;
        }

.lang.open .lang-menu {
    display: block;
}

.burger {
    display: none;
    font-size: 28px;
    color: var(--accent);
    cursor: pointer;
}

@media(max-width:900px) {
    .burger
{
    display: block;
}

.nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    height: calc(100vh - 70px);
    width: 76%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    border-left: 1px solid #eee;
    transition: .3s;
}

    .nav-links.open {
        right: 0;
    }

}

/* HERO with animated gradient (left→right), black text, mobile shadow */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 100px 6%;
    background: linear-gradient(90deg,#6B4EFF, #A78BFA, #FFFFFF);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-inner {
    max-width: 1100px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1 1 520px;
    max-width: 780px;
    color: #111;
}

    .hero-text h1 {
        font-size: 48px;
        line-height: 1.15;
        margin: 0 0 16px;
        font-weight: 800;
        color: #111;
    }

    .hero-text p {
        font-size: 20px;
        color: #222;
        margin: 0 0 28px;
    }

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(107,78,255,.2);
}

    .btn.alt {
        background: #fff;
        color: var(--accent);
        border: 2px solid var(--accent);
    }

    .btn:hover {
        transform: translateY(-1px);
    }

@media(max-width:768px) {
    .hero
{
    padding: 80px 6%;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.hero-inner {
    flex-direction: column;
    text-align: center;
}

.hero-text h1 {
    font-size: 36px;
}

.hero-text p {
    font-size: 18px;
}

.btn-group {
    justify-content: center;
}

.btn, .btn.alt {
    width: 100%;
    max-width: 340px;
}

}

section {
    padding: 100px 6%;
    text-align: center;
}

h2 {
    font-size: 36px;
    margin: 0 0 12px;
    font-weight: 800;
}

.lead {
    max-width: 1000px;
    margin: 0 auto 48px;
    color: var(--muted);
    font-size: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 28px;
}

.card {
    background: #ECE9FF;
    border-radius: 20px;
    padding: 28px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transition: transform .2s ease;
}

    .card:hover {
        transform: translateY(-3px);
    }

    .card img {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .card h3 {
        color: var(--accent);
        margin: 4px 0 8px;
    }

.cta {
    background: var(--soft);
}

footer {
    padding: 36px 6%;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0,0,0,.06);
        transition: .2s;
    }

        .footer-social a:hover {
            box-shadow: 0 8px 26px rgba(107,78,255,.35);
            transform: translateY(-2px);
        }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.show {
        opacity: 1;
        transform: none;
    }

#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #6B4EFF;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(107,78,255,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .2s;
    z-index: 60;
}

    #backToTop.show {
        opacity: 1;
        pointer-events: auto;
    }

    #backToTop:hover {
        transform: translateY(-2px);
    }

.hero img {
    max-width: 500px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* subtle login link inside CTA */
.cta-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(107,78,255,.18);
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .cta-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(107,78,255,.18);
        background: #fff;
    }

.cta-login-ico {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107,78,255,.10);
}

/* "More" dropdown in top nav */
.more {
    position: relative;
}

.more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    background: #fff;
    color: var(--ink);
}

    .more-btn:hover {
        color: var(--accent);
    }

.more-caret {
    font-size: 12px;
    color: var(--muted);
    transform: translateY(1px);
}

.more-menu {
    position: absolute;
    left: 0;
    top: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    min-width: 200px;
    display: none;
    overflow: hidden;
    z-index: 80;
}

    .more-menu a {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        font-weight: 600;
    }

        .more-menu a:hover {
            background: #f8f8ff;
            color: var(--accent);
        }

.more.open .more-menu {
    display: block;
}

/* mobile nav: dropdown becomes full-width block */
@media(max-width:900px) {
    .more;

{
    width: 100%;
}

.more-btn {
    width: 100%;
    justify-content: space-between;
}

.more-menu {
    position: static;
    margin-top: 8px;
    width: 100%;
    min-width: unset;
    box-shadow: none;
}

.more.open .more-menu {
    display: block;
}

}
/* =========================
   PUBLIC BLOG
   ========================= */

:root {
    --card-bg:#fff;
    --card-br:#ececf5;
    --shadow: 0 14px 40px rgba(17,17,17,.08);
    --shadow2: 0 18px 60px rgba(107,78,255,.18);
    --chip-bg: rgba(107,78,255,.10);
    --chip-br: rgba(107,78,255,.18);
}

/* blog page wrapper */
.blog-wrap {
    padding: 28px 6% 90px;
}

@media(max-width:768px) {
    .blog-wrap
{
    padding: 18px 6% 70px;
}

}

/* hero */
/* BLOG HERO */
.blog-hero {
    position: relative;
    max-width: 1100px;
    margin: 22px auto 22px;
    padding: 34px 6% 8px;
    text-align: center;
}

    .blog-hero::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 10px;
        transform: translateX(-50%);
        width: min(980px, calc(100% - 24px));
        height: 240px;
        border-radius: 28px;
        background: radial-gradient(900px 260px at 50% 0%, rgba(107,78,255,.24), rgba(167,139,250,.12) 40%, rgba(255,255,255,0) 70%), linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,245,255,.82));
        border: 1px solid rgba(107,78,255,.14);
        box-shadow: 0 20px 50px rgba(0,0,0,.08);
        z-index: 0;
    }

.blog-hero-inner {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 26px 18px 18px;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(17,17,17,.70);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.06);
    backdrop-filter: blur(6px);
}

    .blog-kicker::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--accent);
        box-shadow: 0 0 0 4px rgba(107,78,255,.14);
    }

.blog-hero h1 {
    margin: 14px 0 10px;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.03em;
}

.blog-hero-lead {
    margin: 0 auto;
    max-width: 860px;
    font-size: 18px;
    color: rgba(17,17,17,.72);
}

.blog-hero-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(107,78,255,.18);
    box-shadow: 0 12px 28px rgba(107,78,255,.10);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

    .blog-hero-link svg {
        width: 18px;
        height: 18px;
    }

    .blog-hero-link:hover {
        transform: translateY(-2px);
        background: #fff;
        box-shadow: 0 16px 34px rgba(107,78,255,.18);
    }

.blog-hero-hint {
    font-size: 13px;
    color: rgba(17,17,17,.55);
}

/* Mobile */
@media(max-width:768px) {
    .blog-hero;

{
    padding: 26px 6% 2px;
    margin-top: 14px;
}

.blog-hero::before {
    height: 260px;
    border-radius: 22px;
}

.blog-hero-inner {
    padding: 22px 14px 14px;
}

.blog-hero h1 {
    font-size: 34px;
}

.blog-hero-lead {
    font-size: 16px;
}

}

@media(max-width:420px) {
    .blog-hero h1;

{
    font-size: 30px;
}

.blog-kicker {
    font-size: 11px;
}

.blog-hero-link {
    width: 100%;
    justify-content: center;
    max-width: 360px;
}

}


/* blog grid */
.blog-grid {
    max-width: 1100px;
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

@media(max-width:1024px) {
    .blog-grid;

{
    grid-template-columns: repeat(2, minmax(0,1fr));
}

}

@media(max-width:640px) {
    .blog-grid;

{
    grid-template-columns: 1fr;
}

}

/* card */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-br);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow2);
        border-color: rgba(107,78,255,.35);
    }

/* image */
.blog-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f3f2ff;
    position: relative;
    overflow: hidden;
}

    .blog-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .25s ease;
    }

.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-body {
    padding: 18px 18px 16px;
}

/* badges / chips */
.blog-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--chip-bg);
    border: 1px solid var(--chip-br);
    color: var(--accent);
}

    .blog-chip.featured {
        background: rgba(17,17,17,.06);
        border-color: rgba(17,17,17,.10);
        color: #111;
    }

        .blog-chip.featured::before {
            content: "⭐";
        }

/* title */
.blog-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--ink);
}

    .blog-title a {
        display: inline;
        background: linear-gradient(90deg, rgba(107,78,255,.0), rgba(107,78,255,.0));
        transition: color .18s ease;
    }

.blog-card:hover .blog-title a {
    color: var(--accent);
}

/* excerpt */
.blog-excerpt {
    margin: 0 0 14px;
    color: #444;
    font-size: 14px;
    line-height: 1.65;
    min-height: 46px;
}

/* meta */
.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #666;
    font-size: 13px;
    border-top: 1px dashed rgba(0,0,0,.10);
    padding-top: 12px;
}

    .blog-meta .by {
        font-weight: 700;
        color: #333;
    }

    .blog-meta .date {
        opacity: .9;
    }

/* CTA link */
.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--accent);
    padding: 10px 0 0;
}

    .blog-cta svg {
        width: 18px;
        height: 18px;
    }

/* single post */
.post-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 0 0;
}

.post-head {
    padding: 8px 0 20px;
}

    .post-head h1 {
        margin: 10px 0 10px;
        font-size: 42px;
        line-height: 1.15;
        font-weight: 900;
    }

@media(max-width:768px) {
    .blog-hero h1;

{
    font-size: 34px;
}

.post-head h1 {
    font-size: 32px;
}

}

.post-cover {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
}

    .post-cover img {
        width: 100%;
        height: auto;
        display: block;
    }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.post-content {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.9;
    color: #222;
}

    .post-content img {
        border-radius: 14px;
        margin: 16px 0;
    }

    .post-content h2, .post-content h3 {
        text-align: left;
        margin: 26px 0 10px;
    }

    .post-content p {
        margin: 12px 0;
    }

    .post-content ul, .post-content ol {
        text-align: left;
        padding-left: 20px;
    }

    .post-content a {
        color: var(--accent);
        text-decoration: underline;
    }

/* tiny back link */
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 800;
    opacity: .85;
    padding: 10px 0;
}

    .blog-back:hover {
        color: var(--accent);
        opacity: 1;
    }

/* RELATED POSTS */
.blog-related {
    padding: 40px 6% 10px;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.blog-related h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.blog-related-all {
    font-weight: 700;
    color: var(--accent);
    opacity: .9;
}

    .blog-related-all:hover {
        opacity: 1;
        text-decoration: underline;
    }

/* generic blog grid/cards (если уже есть — не дублируй, а слей стили) */
.blog-grid {
    display: grid;
    gap: 18px;
}

.blog-grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

@media(max-width:980px) {
    .blog-grid-3;

{
    grid-template-columns: repeat(2,minmax(0,1fr));
}

}

@media(max-width:640px) {
    .blog-grid-3;

{
    grid-template-columns: 1fr;
}

.blog-related {
    padding: 28px 6% 0;
}

}

.blog-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .blog-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(0,0,0,.10);
        border-color: rgba(107,78,255,.25);
    }

.blog-card-media {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(107,78,255,.10), rgba(167,139,250,.12));
}

    .blog-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.blog-card-placeholder {
    width: 100%;
    height: 100%;
}

.blog-card-body {
    padding: 16px 16px 18px;
}

.blog-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(17,17,17,.62);
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.blog-card-excerpt {
    color: rgba(17,17,17,.72);
    font-size: 14px;
    line-height: 1.55;
}

.blog-card-tags {
    margin-top: 10px;
    color: rgba(17,17,17,.55);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   FAQ 
   ========================= */

.faq-hero { /* reuse blog hero background look */
    position: relative;
    max-width: 1100px;
    margin: 22px auto 14px;
    padding: 34px 6% 8px;
    text-align: center;
}

.faq-wrap {
    max-width: 980px;
    margin: 10px auto 0;
    padding: 8px 0 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.faq-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.85);
    border-radius: 18px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    overflow: hidden;
}

    .faq-item:hover {
        transform: translateY(-2px);
        border-color: rgba(107,78,255,.25);
        box-shadow: 0 16px 42px rgba(107,78,255,.14);
        background: #fff;
    }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.25;
    font-size: 18px;
}

.faq-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(107,78,255,.10);
    border: 1px solid rgba(107,78,255,.18);
    color: var(--accent);
    font-weight: 900;
    transition: transform .2s ease, background .2s ease;
}

.faq-a {
    color: rgba(17,17,17,.74);
    font-size: 14px;
    line-height: 1.75;
    border-top: 1px dashed rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}

    .faq-a div {
        padding: 18px 18px 16px 18px;
    }

        .faq-a div p {
            font-size: 16px;
        }

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(107,78,255,.14);
}

.faq-item.open {
    border-color: rgba(107,78,255,.34);
    box-shadow: 0 18px 60px rgba(107,78,255,.18);
}

.faq-footer {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(107,78,255,.16);
    background: linear-gradient(180deg, rgba(246,245,255,.9), rgba(255,255,255,.9));
    color: rgba(17,17,17,.72);
    box-shadow: 0 14px 38px rgba(0,0,0,.06);
    text-align: center;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    font-weight: 900;
    color: var(--accent);
    white-space: nowrap;
}

    .faq-link:hover {
        text-decoration: underline;
    }

@media(max-width:768px) {
    .faq-hero;

{
    padding: 26px 6% 2px;
    margin-top: 14px;
}

.faq-q {
    font-size: 15px;
    padding: 14px 14px;
}

.faq-a {
    padding: 0 14px 14px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}
}
    /* =========================
   GUIDE
   ========================= */

.guide-toc{
  max-width:980px;
  margin: 0 auto 18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  padding: 10px 0 0;
}
.guide-toc-link{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  color: rgba(17,17,17,.78);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-toc-link:hover{
  transform: translateY(-2px);
  border-color: rgba(107,78,255,.25);
  box-shadow: 0 16px 34px rgba(107,78,255,.14);
  color: var(--accent);
}

.guide-section{
  max-width:1100px;
  margin: 0 auto;
  padding: 22px 0 0;
  text-align:left;
}
.guide-head{
  max-width:980px;
  margin: 0 auto 18px;
  text-align:center;
}
.guide-h2{
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}
.guide-lead{
  margin: 0 auto;
  max-width: 860px;
  font-size: 16px;
  color: rgba(17,17,17,.72);
}

.guide-grid{
  max-width:1100px;
  margin: 18px auto 0;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
@media(max-width:1024px){
  .guide-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media(max-width:640px){
  .guide-grid{ grid-template-columns: 1fr; }
}

.guide-card{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.guide-card:hover{
  transform: translateY(-3px);
  border-color: rgba(107,78,255,.28);
  box-shadow: 0 18px 56px rgba(107,78,255,.16);
  background:#fff;
}
.guide-card h3{
  margin: 6px 0 6px;
  font-weight: 900;
  letter-spacing: -.01em;
  font-size: 16px;
}
.guide-card p{
  margin: 0;
  color: rgba(17,17,17,.74);
  font-size: 14px;
  line-height: 1.7;
}
.guide-ico{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(107,78,255,.10);
  border: 1px solid rgba(107,78,255,.18);
  font-size: 18px;
}

.guide-steps{
  max-width: 980px;
  margin: 18px auto 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.guide-step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 14px 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-step:hover{
  transform: translateY(-2px);
  border-color: rgba(107,78,255,.25);
  box-shadow: 0 18px 56px rgba(107,78,255,.14);
}
.guide-step-num{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--accent);
  background: rgba(107,78,255,.10);
  border: 1px solid rgba(107,78,255,.18);
}
.guide-step-body h3{
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 900;
}
.guide-step-body p{
  margin: 0;
  color: rgba(17,17,17,.74);
  font-size: 14px;
  line-height: 1.7;
}

.guide-cta{
  max-width: 980px;
  margin: 16px auto 0;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(107,78,255,.16);
  background: linear-gradient(180deg, rgba(246,245,255,.9), rgba(255,255,255,.9));
  box-shadow: 0 14px 38px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.guide-cta-title{
  font-weight: 900;
  letter-spacing: -.01em;
}
.guide-cta-text{
  color: rgba(17,17,17,.72);
  font-size: 14px;
}
.guide-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(107,78,255,.22);
  white-space: nowrap;
}
.guide-cta-btn:hover{ transform: translateY(-2px); }

.guide-two{
  max-width: 980px;
  margin: 18px auto 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:860px){
  .guide-two{ grid-template-columns: 1fr; }
}
.guide-panel{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.guide-panel h3{
  margin: 2px 0 10px;
  font-weight: 900;
  letter-spacing: -.01em;
  font-size: 16px;
}
.guide-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,17,17,.76);
  font-size: 14px;
  line-height: 1.75;
}
.guide-list li{ margin: 6px 0; }

.guide-tips{
  max-width: 980px;
  margin: 18px auto 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.guide-tip{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.guide-tip-badge{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: var(--accent);
  background: rgba(107,78,255,.10);
  border: 1px solid rgba(107,78,255,.18);
}
.guide-tip-text{
  color: rgba(17,17,17,.74);
  font-size: 14px;
  line-height: 1.75;
}

.guide-bottom{
  max-width: 980px;
  margin: 18px auto 0;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap:wrap;
}
.guide-bottom-link{
  display:inline-flex;
  align-items:center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--accent);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(107,78,255,.18);
  box-shadow: 0 12px 28px rgba(107,78,255,.10);
}
.guide-bottom-link:hover{
  transform: translateY(-2px);
  background:#fff;
  box-shadow: 0 16px 34px rgba(107,78,255,.18);
}

@media(max-width:768px){
  .guide-h2{ font-size: 28px; }
  .guide-toc{ justify-content:flex-start; }
  .guide-cta{ flex-direction:column; align-items:stretch; text-align:left; }
  .guide-cta-btn{ width:100%; }
}

/* ROLE SWITCH */
.guide-role-switch{
  max-width:980px;
  margin: 10px auto 6px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.guide-role-btn{
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  background: rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  transition:.18s ease;
}

.guide-role-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(107,78,255,.25);
}

.guide-role-btn.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 14px 36px rgba(107,78,255,.35);
}

/* PROGRESS LINE */
.guide-steps{
  position:relative;
}

.guide-progress{
  position:absolute;
  left:18px;
  top:0;
  width:4px;
  height:0;
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius:4px;
  transition:height .3s ease;
}

/* =========================
   POST TYPOGRAPHY UPGRADE
   ========================= */

.post-content{
  /* чуть более "книжная" читабельность */
  font-size: 17px;
  line-height: 1.95;
  color: #1f1f1f;

  /* ограничиваем ширину текста внутри контента */
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;

  /* небольшой внутренний отступ для мобильных */
  padding: 0 2px;
}

/* Вертикальный ритм */
.post-content p{
  margin: 0 0 16px;
}

.post-content p + p{
  margin-top: 10px;
}

/* Заголовки: больше воздуха и визуальный акцент */
.post-content h2{
  margin: 34px 0 12px;
  padding-top: 10px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
  position: relative;
}

.post-content h2:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .25;
}

.post-content h3{
  margin: 24px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #111;
}

/* Списки: отступы, межстрочный, разделение пунктов */
.post-content ul,
.post-content ol{
  margin: 14px 0 18px;
  padding-left: 26px; /* было маловато */
}

.post-content li{
  margin: 8px 0;
  line-height: 1.75;
}

.post-content ul li::marker,
.post-content ol li::marker{
  color: var(--accent);
  font-weight: 800;
}

/* Цитаты (если будут) */
.post-content blockquote{
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(107,78,255,.55);
  background: rgba(107,78,255,.06);
  border-radius: 14px;
  color: rgba(17,17,17,.78);
}

/* Ссылки — более стильные, но читаемые */
.post-content a{
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(107,78,255,.14), rgba(107,78,255,.14));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .18s ease, opacity .18s ease;
}

.post-content a:hover{
  background-size: 100% 8px;
  opacity: .95;
}

/* Картинки в тексте: больше воздуха */
.post-content img{
  border-radius: 16px;
  margin: 18px 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}

/* Небольшие разделители */
.post-content hr{
  border: 0;
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 26px 0;
}

/* Мобильная типографика */
@media(max-width:768px){
  .post-content{
    font-size: 16px;
    line-height: 1.9;
    max-width: 100%;
  }

  .post-content h2{
    font-size: 24px;
    margin-top: 28px;
  }

  .post-content h3{
    font-size: 18px;
  }

  .post-content ul,
  .post-content ol{
    padding-left: 22px;
  }
}

    .post-wrap{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,.06);
}

@media(max-width:768px){
  .post-wrap{
    padding: 18px 14px;
    border-radius: 18px;
  }
}

    .post-meta{
  font-size: 13px;
  color: rgba(17,17,17,.58);
}

    /* =========================
   CALLOUTS (Tip / Important / Example)
   ========================= */

.callout{
  max-width: 860px;
  margin: 18px auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 38px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

/* левая цветная полоска */
.callout:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 6px;
  background: rgba(107,78,255,.55);
}

/* шапка callout */
.callout-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  color: #111;
}

/* иконка */
.callout-ico{
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
  background: rgba(107,78,255,.10);
  border: 1px solid rgba(107,78,255,.18);
  color: var(--accent);
  flex: 0 0 auto;
}

.callout-body{
  color: rgba(17,17,17,.78);
  line-height: 1.8;
  font-size: 15px;
}

.callout-body p{
  margin: 0 0 10px;
}
.callout-body p:last-child{
  margin-bottom: 0;
}

.callout-body ul,
.callout-body ol{
  margin: 10px 0 0;
  padding-left: 22px;
}
.callout-body li{
  margin: 6px 0;
}

/* Варианты */
.callout.tip{
  border-color: rgba(107,78,255,.18);
  background: rgba(107,78,255,.06);
}
.callout.tip:before{ background: rgba(107,78,255,.75); }

.callout.important{
  border-color: rgba(255, 153, 0, .25);
  background: rgba(255, 153, 0, .08);
}
.callout.important:before{ background: rgba(255, 153, 0, .85); }
.callout.important .callout-ico{
  background: rgba(255,153,0,.14);
  border-color: rgba(255,153,0,.22);
  color: #b45a00;
}

.callout.example{
  border-color: rgba(0, 150, 136, .22);
  background: rgba(0, 150, 136, .08);
}
.callout.example:before{ background: rgba(0, 150, 136, .85); }
.callout.example .callout-ico{
  background: rgba(0,150,136,.14);
  border-color: rgba(0,150,136,.22);
  color: #00695c;
}

/* компактный вариант */
.callout.compact{
  padding: 12px 14px;
}
.callout.compact .callout-ico{
  width: 28px; height: 28px;
  border-radius: 10px;
}

/* мобилка */
@media(max-width:768px){
  .callout{
    max-width: 100%;
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .callout-body{
    font-size: 14px;
  }
}

.divFaq{
  border:dashed 1px #CCC;
  padding:14px;
  margin:16px 0;
  background:#fff;
}

/* Заголовок FAQ */
.divFaq h2{
  margin:0 0 12px 0;
  font-size:20px;
  line-height:1.25;
}

/* ВОПРОС */
.divFaq h3{
  margin:12px 0 6px 0;
  padding:12px 14px 12px 46px;
  border:1px solid #E3E3E3;
  background:#FAFAFA;
  border-radius:12px;
  font-size:16px;
  line-height:1.35;
  position:relative;
}

/* CSS-иконка вопроса */
.divFaq h3:before{
  content:"?";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  line-height:22px;
  text-align:center;
  border-radius:50%;
  border:1px solid #999;
  font-weight:700;
  font-size:14px;
  color:#333;
  background:#fff;
}

/* ОТВЕТ */
.divFaq p{
  margin:6px 0 0 0;
  padding:10px 14px 10px 46px;
  background:#fff;
  border-left:3px solid #E6E6E6;
  border-radius:12px;
  line-height:1.55;
}

/* расстояние между вопросами */
.divFaq p + h3{
  margin-top:16px;
}

/* ссылки */
.divFaq a{
  text-decoration:underline;
}

.divFaq a:hover{
  text-decoration:none;
}

/****************************************************************/
/* Custom blocks inside HtmlBody */
.post-content .divImp,
.post-content .divAdv,
.post-content .divSample{
  margin: 16px 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 14px 14px 14px 14px;
  background: #fff;
  position: relative;
}

.post-content .divImp{ border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.06); }
.post-content .divAdv{ border-color: rgba(14,165,233,.25); background: rgba(14,165,233,.06); }
.post-content .divSample{ border-color: rgba(124,58,237,.22); background: rgba(124,58,237,.06); }

.post-content .divImp::before,
.post-content .divAdv::before,
.post-content .divSample::before{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
  margin-bottom: 10px;
}

.overflowX{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 22px;
  padding: 2px;
  border-radius: 16px;
}

/* Nice scrollbars (optional) */
.overflowX::-webkit-scrollbar{ height: 10px; }
.overflowX::-webkit-scrollbar-track{ background: rgba(0,0,0,.04); border-radius: 999px; }
.overflowX::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.14); border-radius: 999px; }
.overflowX:hover::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.22); }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 15px;
    line-height: 1.6;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Заголовки */
.post-content table thead th {
    background: linear-gradient(90deg, #f6fbff, #eef6fb);
    color: #1f3a5f;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #e3edf5;
    white-space: nowrap;
}

/* Ячейки */
.post-content table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    color: #2b2b2b;
    vertical-align: top;
}

/* Последняя строка без линии */
.post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Чередование строк */
.post-content table tbody tr:nth-child(even) {
    background-color: #fafcff;
}

/* Hover-эффект */
.post-content table tbody tr:hover {
    background-color: #f0f7ff;
    transition: background-color 0.2s ease;
}

/* Выделение важного */
.post-content table strong {
    color: #0b5ed7;
    font-weight: 600;
}

/* Ссылки внутри таблиц */
.post-content table a {
    color: #0b5ed7;
    text-decoration: none;
    border-bottom: 1px dashed rgba(11, 94, 215, 0.4);
}

.post-content table a:hover {
    border-bottom-style: solid;
}

/* Адаптив */
@media (max-width: 768px) {
    .post-content table {
        font-size: 14px;
    }

    .post-content table thead {
        display: none;
    }

    .post-content table tr {
        display: block;
        margin-bottom: 16px;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .post-content table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid #eef1f4;
    }

    .post-content table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 12px;
    }

    .post-content table td:last-child {
        border-bottom: none;
    }
}
