/* Mediops — раздел «Материалы для админов» */
:root {
    --g-text: #0f172a;
    --g-muted: #64748b;
    --g-line: rgba(148, 163, 184, 0.35);
    --g-primary: #4f46e5;
    --g-primary-dark: #4338ca;
    --g-bg: #f8fafc;
    --g-card: #ffffff;
    --g-hero: #0b1120;
}

.guides-body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--g-text);
    background: var(--g-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.guides-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(11, 17, 32, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guides-header-inner {
    width: min(1160px, 100% - 40px);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.guides-logo {
    color: #f8fafc;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.guides-logo span { color: #818cf8; }

.guides-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.guides-nav a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
}

.guides-nav a:hover { color: #fff; }

.guides-nav a.is-active { color: #a5b4fc; }

.guides-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.guides-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--g-primary) 0%, #3b82f6 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.guides-btn-primary:hover {
    background: linear-gradient(135deg, var(--g-primary-dark) 0%, var(--g-primary) 100%);
    transform: translateY(-1px);
}

.guides-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.guides-btn-ghost:hover {
    background: #fff;
    color: #0f172a;
}

.guides-main {
    width: min(1160px, 100% - 40px);
    margin: 0 auto;
    padding: 40px 0 56px;
}

.guides-hero {
    padding: 48px 0 36px;
    background:
        radial-gradient(ellipse 70% 50% at 80% -10%, rgba(79, 70, 229, 0.35), transparent),
        var(--g-hero);
    color: #e2e8f0;
}

.guides-hero .guides-main { padding-top: 0; padding-bottom: 0; }

.guides-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.guides-hero-lead {
    color: #b8c5d6;
    max-width: 680px;
    font-size: 1.05rem;
}

.guides-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.88rem;
    color: var(--g-muted);
    margin-bottom: 20px;
}

.guides-breadcrumbs a {
    color: var(--g-primary);
    text-decoration: none;
    font-weight: 600;
}

.guides-breadcrumbs a:hover { text-decoration: underline; }

.guides-breadcrumbs span { color: #94a3b8; }

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.guides-card {
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guides-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.guides-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--g-primary);
    background: #eff6ff;
    border-radius: 6px;
    padding: 4px 9px;
    width: fit-content;
}

.guides-card h2 {
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.guides-card h2 a {
    color: inherit;
    text-decoration: none;
}

.guides-card h2 a:hover { color: var(--g-primary); }

.guides-card p {
    color: #475569;
    font-size: 0.94rem;
    flex: 1;
}

.guides-card-meta {
    color: #94a3b8;
    font-size: 0.82rem;
}

.guides-card-link {
    color: var(--g-primary);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}

.guides-card-link:hover { text-decoration: underline; }

.guides-article-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    align-items: start;
}

.guides-article {
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 24px;
    padding: 32px 36px;
}

.guides-article h1 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.guides-article-lead {
    color: #475569;
    font-size: 1.08rem;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--g-line);
}

.guides-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--g-muted);
}

.guides-article h2 {
    font-size: 1.28rem;
    margin: 32px 0 12px;
    letter-spacing: -0.02em;
}

.guides-article h3 {
    font-size: 1.05rem;
    margin: 22px 0 8px;
}

.guides-article p,
.guides-article li {
    color: #334155;
    margin-bottom: 12px;
}

.guides-article ul,
.guides-article ol {
    padding-left: 1.35rem;
    margin-bottom: 16px;
}

.guides-article code {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #1e293b;
}

.guides-article pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 18px;
    border-radius: 14px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 14px 0 20px;
}

.guides-article pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.guides-tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #1e3a8a;
}

.guides-warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0;
    color: #9a3412;
}

.guides-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guides-sidebar-box {
    background: var(--g-card);
    border: 1px solid var(--g-line);
    border-radius: 18px;
    padding: 18px;
}

.guides-sidebar-box h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.guides-sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guides-sidebar-box li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.guides-sidebar-box a {
    color: var(--g-primary);
    text-decoration: none;
    font-weight: 600;
}

.guides-sidebar-box a:hover { text-decoration: underline; }

.guides-cta {
    background: linear-gradient(145deg, #eef2ff 0%, #fff 70%);
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 28px;
    margin-top: 36px;
    text-align: center;
}

.guides-cta h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.guides-cta p {
    color: #475569;
    margin-bottom: 18px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.guides-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.guides-cta .guides-btn-primary {
    color: #fff;
}

.guides-cta .guides-btn-ghost {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #fff;
}

@media (max-width: 960px) {
    .guides-grid { grid-template-columns: 1fr 1fr; }
    .guides-article-wrap { grid-template-columns: 1fr; }
    .guides-sidebar { position: static; }
}

.channels-promo {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    border-radius: 22px;
    padding: 28px 32px;
    color: #e2e8f0;
    margin: 32px 0 0;
}

.channels-promo h2 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #f8fafc;
}

.channels-promo-lead {
    color: #b8c5d6;
    font-size: 0.98rem;
    max-width: 640px;
    margin-bottom: 20px;
}

.channels-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.channels-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.channels-promo-btn-tg {
    background: #229ed9;
    color: #fff;
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35);
}

.channels-promo-btn-max {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.channels-promo-btn img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.channels-promo-note {
    margin-top: 14px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.channels-sidebar {
    background: linear-gradient(160deg, #0f172a, #1e1b4b);
    border: none;
    color: #e2e8f0;
}

.channels-sidebar h3 {
    color: #f8fafc;
    font-size: 0.95rem;
}

.channels-sidebar p {
    font-size: 0.86rem;
    color: #b8c5d6;
    margin-bottom: 12px;
}

.channels-sidebar .channels-promo-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    padding: 10px 14px;
}

@media (max-width: 640px) {
    .guides-grid { grid-template-columns: 1fr; }
    .guides-article { padding: 22px 20px; }
    .guides-nav a:not(.guides-btn) { display: none; }
}
