/* Article Page Styles */

/* ── Hero ── */
.article-hero {
    position: relative;
    padding: 60px 0 60px;
    background: var(--bg-primary, #0f1419);
    border-bottom: 2px solid var(--primary, #00d97e);
    overflow: hidden;
}

.article-hero .matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary, #8899aa);
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: var(--primary, #00d97e);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.article-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary, #e8f0f8);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 217, 126, 0.2);
}

.article-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary, #8899aa);
    max-width: 700px;
    line-height: 1.7;
}

/* ── Image placeholder ── */
.article-image-section {
    background: var(--bg-secondary, #141c24);
    padding: 2rem 0;
    border-top: 2px solid var(--primary, #00d97e);
    border-bottom: 2px solid var(--primary, #00d97e);
}

.article-image-placeholder {
    border-radius: 16px;
    overflow: hidden;
    border: 2px dashed var(--border, #2a3a4a);
    background: rgba(0, 217, 126, 0.03);
    transition: border-color 0.3s ease;
}

.article-image-placeholder:hover {
    border-color: var(--primary, #00d97e);
}

.article-image-placeholder img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 14px;
    /* Prevent browser context menu (Yandex Browser image toolbar) */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.image-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 2rem;
    color: var(--text-secondary, #8899aa);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.4;
}

.placeholder-text {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ── Article body ── */
.article-body-section {
    position: relative;
    padding: 60px 0 80px;
    background: var(--bg-primary, #0f1419);
    overflow: hidden;
}

.article-body-section .matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

.article-body-section .container {
    position: relative;
    z-index: 1;
}

.article-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start !important;
}

.article-content {
    order: 2;
}

.article-sidebar {
    order: 1;
}

/* ── Content typography ── */
.article-content {
    background: rgba(20, 28, 36, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border, #2a3a4a);
    border-radius: 16px;
    padding: 2.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text-primary, #e8f0f8);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1 { font-size: 2rem; color: var(--primary, #00d97e); }
.article-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border, #2a3a4a); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.2rem; color: var(--primary, #00d97e); }

.article-content p {
    color: var(--text-secondary, #8899aa);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    color: var(--text-secondary, #8899aa);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--text-primary, #e8f0f8);
    font-weight: 600;
}

.article-content a {
    color: var(--primary, #00d97e);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 3px solid var(--primary, #00d97e);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0, 217, 126, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary, #8899aa);
    font-style: italic;
}

/* ── Sidebar Banner ── */
.article-sidebar {
    align-self: start;
}

.sidebar-banner {
    background: rgba(20, 28, 36, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid #2a3a4a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 217, 126, 0.12), 0 8px 32px rgba(0,0,0,0.4);
}

.sidebar-banner-header {
    padding: 1.5rem 1.5rem 1rem;
    background: rgba(20, 28, 36, 0.8);
    border-bottom: 1px solid #2a3a4a;
    text-align: center;
}

.sidebar-banner-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary, #00d97e);
    background: rgba(0,217,126,0.1);
    border: 1px solid rgba(0,217,126,0.3);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    margin-bottom: 0.6rem;
}

.sidebar-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #e8f0f8);
    margin: 0.3rem 0 0.4rem;
    letter-spacing: 0.05em;
}

.sidebar-banner-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary, #8899aa);
    line-height: 1.5;
    margin: 0;
}

/* ── Carousel ── */
.sidebar-carousel {
    overflow: hidden;
    position: relative;
}

.sidebar-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sidebar-plan-card {
    min-width: 100%;
    aspect-ratio: 768 / 1376;
    padding: 1.5rem;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Background image via ::before — same approach as pricing cards */
.sidebar-plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.8s ease;
}

/* Dark overlay */
.sidebar-plan-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    z-index: 1;
    pointer-events: none;
}

/* All card content above overlay */
.sidebar-plan-card > * {
    position: relative;
    z-index: 2;
}

/* Per-plan backgrounds */
.sidebar-plan-card[data-plan="basic"]::before {
    background-image: url('/assets/images/pricing/bazoviy.png');
}
.sidebar-plan-card[data-plan="standard"]::before {
    background-image: url('/assets/images/pricing/standart.png');
}
.sidebar-plan-card[data-plan="optimal"]::before {
    background-image: url('/assets/images/pricing/optimal.png');
}
.sidebar-plan-card[data-plan="professional"]::before {
    background-image: url('/assets/images/pricing/profi-1.png');
}

.sidebar-plan-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f1419;
    background: var(--primary, #00d97e);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    z-index: 3;
}

.sidebar-plan-badge.best-badge {
    background: linear-gradient(90deg, #00d97e, #00b8ff);
    color: #0f1419;
}


.sidebar-plan-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #e8f0f8);
    margin-bottom: 0.5rem;
}

.sidebar-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.sidebar-plan-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary, #00d97e);
    line-height: 1;
}

.sidebar-plan-currency {
    font-size: 0.85rem;
    color: var(--text-secondary, #8899aa);
}

.sidebar-plan-devices {
    font-size: 0.8rem;
    color: var(--text-secondary, #8899aa);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.sidebar-plan-features li {
    font-size: 0.82rem;
    color: var(--text-secondary, #8899aa);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.sidebar-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary, #00d97e);
    font-weight: 700;
    font-size: 0.75rem;
}

/* Card accent colors */
.sidebar-plan-card.popular .sidebar-plan-name { color: var(--primary, #00d97e); }
.sidebar-plan-card.best .sidebar-plan-amount { background: linear-gradient(90deg, #00d97e, #00b8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sidebar-plan-card.pro .sidebar-plan-amount { color: #a78bfa; }

/* ── Dots ── */
.sidebar-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0 1rem;
}

.sidebar-carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-carousel-dots .dot.active {
    background: var(--primary, #00d97e);
    width: 18px;
    border-radius: 3px;
}

/* ── CTA Button ── */
.sidebar-banner-btn {
    display: block;
    margin: 0 1.5rem 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--primary, #00d97e);
    color: #0f1419;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.sidebar-banner-btn:hover {
    background: #00f090;
    box-shadow: 0 0 20px rgba(0,217,126,0.4);
    transform: translateY(-1px);
}

/* ── Bottom CTA ── */
.article-cta {
    position: relative;
    padding: 80px 0;
    background: var(--bg-secondary, #141c24);
    border-top: 1px solid var(--border, #2a3a4a);
    text-align: center;
    overflow: hidden;
}

.article-cta .matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.article-cta .container {
    position: relative;
    z-index: 1;
}

.article-cta h2 {
    font-size: 2rem;
    color: var(--text-primary, #e8f0f8);
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: var(--text-secondary, #8899aa);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.article-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }

    .article-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .article-hero {
        padding: 100px 0 40px;
    }

    .article-hero-title {
        font-size: 1.6rem;
    }

    .article-content {
        padding: 1.5rem;
    }
}
