/* ========================================
   2026 visual audit: navigation & rhythm
   ======================================== */
.container { max-width: 1240px; }
.navbar { gap: 24px; }
.logo { flex: 0 0 auto; }
.nav-menu { gap: 22px; margin-left: auto; }
.nav-link { white-space: nowrap; }
.header-actions { gap: 10px; flex: 0 0 auto; }
.header-account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--secondary);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.header-account-link i { color: var(--primary); font-size: 16px; }
.header-account-link:hover { border-color: #f2c7b6; background: #fff8f4; color: var(--primary-dark); }
.header-quote { min-width: 112px; padding-left: 16px; padding-right: 16px; }
.dropdown-menu { min-width: 260px; max-height: min(72vh, 620px); overflow-y: auto; }
.dropdown-menu__all { font-weight: 700; color: var(--secondary) !important; }
.dropdown-menu__divider { height: 1px; background: var(--border); margin: 7px 12px; }

.section { padding: 84px 0; }
.section__header { margin-bottom: 42px; }
.section__title { letter-spacing: -.02em; }
.section__desc { line-height: 1.7; }
.page-hero--sales { padding-bottom: 64px; }
.page-hero--sales h1 { max-width: 840px; }

.service-card { padding: 30px 24px; box-shadow: 0 8px 26px rgba(45,55,72,.06); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(45,55,72,.10); }
.quality-card, .solution-card { box-shadow: 0 6px 20px rgba(45,55,72,.04); }
.quality-card p, .solution-card p, .service-card__desc { line-height: 1.65; }

/* Compact pages use one consistent top rhythm instead of inline padding. */
.section--page,
.page-section-top { padding-top: 120px; }
.page-narrow { max-width: 980px; }
.page-narrow--sm { max-width: 900px; }
.page-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:32px; }
.page-actions--left { justify-content:flex-start; }

/* Human-readable copy widths: long lines make pages look generated and harder to scan. */
.section__header { max-width: 760px; }
.legal-page .container { max-width: 980px; }
.legal-page p, .legal-page li { max-width: 82ch; }
.service-card__desc, .quality-card p, .solution-card p { max-width: 52ch; }

/* Keep primary desktop navigation usable before the old 768px breakpoint. */
@media (max-width: 1180px) {
    .nav-menu, .header-actions { display: none; }
    .burger { display: flex; margin-left: auto; }
}

@media (max-width: 768px) {
    .section { padding: 58px 0; }
    .section--page, .page-section-top { padding-top: 104px; }
    .section__header { margin-bottom: 30px; }
}
.section-spacer-top{margin-top:64px}.sales-trust-links--spaced{margin-top:18px}.legal-scope-switch{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.legal-consent-snapshot{padding:18px;border:1px solid var(--border);border-radius:12px;background:#f8fafc}.legal-hash{margin-top:10px;overflow-wrap:anywhere}.btn-on-dark{border-color:rgba(255,255,255,.75)!important;color:#fff!important}.btn-on-dark:hover{border-color:#fff!important;background:rgba(255,255,255,.08)!important}.tariffs-cta--help{margin-top:30px}.tariffs-help{text-align:center;padding:30px 0}.tariffs-help__text{color:var(--text-light);margin-bottom:12px}
.services-page__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.service-card--large{padding:32px;text-align:left}.service-card--large .service-card__icon{margin:0 0 20px}.services-final-cta{padding-top:16px}.services-cta__content{background:linear-gradient(135deg,var(--secondary) 0%,#1a202c 100%);border-radius:20px;padding:52px;text-align:center;color:#fff}.services-cta__content h2{color:#fff;font-size:34px;margin:8px auto 12px;max-width:760px}.services-cta__content p{max-width:720px;margin:0 auto;color:rgba(255,255,255,.76);font-size:17px}.services-cta__content .section__subtitle{color:#ff9c77}.services-cta__content .btn-secondary{border-color:rgba(255,255,255,.75);color:#fff;background:transparent}.services-cta__content .btn-secondary:hover{background:rgba(255,255,255,.08)}
@media(max-width:768px){.services-page__grid{grid-template-columns:1fr}.services-cta__content{padding:34px 22px}.services-cta__content h2{font-size:27px}}
.guarantee-process .legal-sales-note{color:rgba(255,255,255,.68)}

/* Legal pages: full page background + readable document card. */
.legal-page{max-width:none;margin:0;background:var(--bg-light);border-radius:0;box-shadow:none;padding-left:0;padding-right:0;padding-bottom:72px}
.legal-page>.container{max-width:980px;background:#fff;border:1px solid var(--border);border-radius:20px;padding:42px 48px;box-shadow:0 10px 30px rgba(45,55,72,.06)}
.legal-page h1{font-size:clamp(30px,4vw,42px);letter-spacing:-.02em;margin-bottom:18px}.legal-page h2{font-size:23px;margin:34px 0 12px}.legal-page h3{font-size:18px;margin:24px 0 10px}.legal-page p,.legal-page li{line-height:1.75}.legal-page ul,.legal-page ol{display:grid;gap:8px;margin:12px 0 20px;padding-left:22px}.legal-page ul{list-style:disc}.legal-page ol{list-style:decimal}.legal-page code{overflow-wrap:anywhere}
@media(max-width:768px){.legal-page>.container{border-radius:14px;padding:28px 20px}.legal-page{padding-bottom:44px}}
.error-page-section{padding-top:120px;min-height:60vh;display:flex;align-items:center}


/* Consolidated from views/site/contact.php */
.breadcrumbs {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 30px;
            font-size: 14px;
            color: var(--text-light);
        }

        .breadcrumbs a {
            color: var(--text);
        }

        .breadcrumbs a:hover {
            color: var(--primary);
        }

        .contact-page__grid {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 40px;
        }

        .contact-info-card,
        .contact-form-card {
            background-color: white;
            border-radius: var(--radius-lg);
            padding: 40px;
            box-shadow: var(--shadow);
        }

        .contact-info-card h3,
        .contact-form-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 30px;
        }

        .contact-info-list {
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-bottom: 30px;
        }

        .contact-info-item {
            display: flex;
            align-items: flex-start;
            gap: 16px;
        }

        .contact-info-item__icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 107, 53, 0.1);
            border-radius: var(--radius);
            flex-shrink: 0;
        }

        .contact-info-item__icon i {
            font-size: 20px;
            color: var(--primary);
        }

        .contact-info-item__content {
            display: flex;
            flex-direction: column;
        }

        .contact-info-item__content .label {
            font-size: 12px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .contact-info-item__content a,
        .contact-info-item__content p {
            font-size: 16px;
            color: var(--secondary);
            font-weight: 500;
        }

        .contact-info-item__content a:hover {
            color: var(--primary);
        }

        .contact-social {
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }

        .contact-social span {
            display: block;
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 12px;
        }

        .social-links {
            display: flex;
            gap: 12px;
        }

        .social-links .social-link {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-light);
            border-radius: var(--radius);
            color: var(--text);
            transition: var(--transition);
        }

        .social-links .social-link:hover {
            background-color: var(--primary);
            color: white;
        }

        /* Form */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--secondary);
        }

        .form-hint {
            display: block;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 8px;
        }

        .form-notice {
            text-align: center;
            font-size: 12px;
            color: var(--text-light);
            margin-top: 16px;
        }

        .form-notice a {
            color: var(--primary);
        }

        @media (max-width: 1024px) {
            .contact-page__grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }

            .contact-info-card,
            .contact-form-card {
                padding: 24px;
            }
        }


/* Consolidated from views/site/tariffs.php */
.breadcrumbs {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        font-size: 14px;
        color: var(--text-light);
    }

    .breadcrumbs a {
        color: var(--text);
    }

    .breadcrumbs a:hover {
        color: var(--primary);
    }

    .tariffs-full {
        margin-bottom: 60px;
    }

    .tariff-header {
        text-align: center;
    }

    .tariff-header .btn {
        margin-top: 12px;
    }

    .tariff-name {
        font-family: var(--font-heading);
        font-size: 18px;
        font-weight: 600;
        color: var(--secondary);
        margin-bottom: 8px;
    }

    .tariff-price {
        font-size: 14px;
        color: var(--text-light);
        margin-bottom: 12px;
    }

    .tariff-price .price {
        font-family: var(--font-heading);
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
    }

    .param-label {
        font-weight: 500;
        color: var(--secondary);
    }

    /* Mobile Cards */
    .tariffs-cards {
        display: none;
        flex-direction: column;
        gap: 24px;
    }

    .tariff-card {
        background-color: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .tariff-card__header {
        padding: 24px;
        text-align: center;
        background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
        border-bottom: 1px solid var(--border);
    }

    .tariff-card__name {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .tariff-card__price {
        font-family: var(--font-heading);
        font-size: 28px;
        font-weight: 700;
        color: var(--primary);
    }

    .tariff-card__body {
        padding: 24px;
    }

    .tariff-card__features {
        list-style: none;
    }

    .tariff-card__features li {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .tariff-card__features li:last-child {
        border-bottom: none;
    }

    .feature-label {
        font-size: 14px;
        color: var(--text-light);
    }

    .feature-value {
        font-size: 14px;
        font-weight: 500;
        color: var(--secondary);
    }

    .tariff-card__footer {
        padding: 0 24px 24px;
    }

    /* CTA */
    .tariffs-cta {
        margin-top: 60px;
        text-align: center;
    }

    .tariffs-cta__content {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        border-radius: var(--radius-lg);
        padding: 60px;
        color: white;
    }

    .tariffs-cta h3 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 12px;
        color: white;
    }

    .tariffs-cta p {
        font-size: 16px;
        opacity: 0.9;
        margin-bottom: 24px;
    }

    .tariffs-cta .btn {
        background-color: white;
        color: var(--primary);
    }

    .tariffs-cta .btn:hover {
        background-color: var(--bg-light);
    }

    @media (max-width: 1024px) {
        .tariffs-full {
            display: none;
        }

        .tariffs-cards {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .tariffs-cta__content {
            padding: 40px 24px;
        }

        .tariffs-cta h3 {
            font-size: 22px;
        }
    }


/* Consolidated from views/site/error.php */
.error-page {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .error-page__code {
        font-family: var(--font-heading);
        font-size: 120px;
        font-weight: 700;
        color: var(--primary);
        line-height: 1;
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .error-page__title {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 16px;
    }

    .error-page__message {
        font-size: 16px;
        color: var(--text-light);
        margin-bottom: 32px;
    }

    .error-page__actions {
        display: flex;
        gap: 16px;
        justify-content: center;
    }

    @media (max-width: 768px) {
        .error-page__code {
            font-size: 80px;
        }

        .error-page__actions {
            flex-direction: column;
        }
    }


/* Consolidated from views/site/service.php */
.service-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.service-detail__header {
    text-align: center;
    margin-bottom: 60px;
}

.service-detail__icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
}

.service-detail__title {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-detail__desc {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.service-detail__content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-detail__text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.service-detail__text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--secondary);
    font-weight: 700;
}

.service-detail__text h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--secondary);
    font-weight: 600;
}

.service-detail__text h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--secondary);
    font-weight: 600;
}

.service-detail__text p {
    margin-bottom: 15px;
}

.service-detail__text ul,
.service-detail__text ol {
    margin: 20px 0;
    padding-left: 25px;
}

.service-detail__text li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.service-detail__text strong {
    color: var(--secondary);
    font-weight: 600;
}

.service-detail__text .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-detail__text .advantage-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.service-detail__text .advantage-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-detail__text .advantage-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.service-detail__text .included-list {
    background: #f8fffe;
    border-left: 4px solid #10b981;
    padding: 20px 20px 20px 45px;
    margin: 25px 0;
    border-radius: 8px;
}

.service-detail__text .included-list li {
    position: relative;
    padding-left: 10px;
}

.service-detail__text .included-list li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #10b981;
    font-weight: bold;
    font-size: 18px;
}

.service-detail__text .info-box,
.service-detail__text .results-box,
.service-detail__text .monitoring-box,
.service-detail__text .warning-box {
    background: linear-gradient(135deg, rgba(255,107,53,.08) 0%, rgba(255,138,92,.08) 100%);
    border-left: 4px solid var(--primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.service-detail__text .warning-box {
    background: linear-gradient(135deg, #fef3c715 0%, #fca5a515 100%);
    border-left: 4px solid #f59e0b;
}

.service-detail__text .info-box h4,
.service-detail__text .results-box h4,
.service-detail__text .monitoring-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary);
}

.service-detail__text .warning-box h4 {
    color: #f59e0b;
}

.service-detail__text .info-box p,
.service-detail__text .results-box p,
.service-detail__text .monitoring-box p {
    margin-bottom: 10px;
}

.service-detail__text .note {
    font-size: 14px;
    font-style: italic;
    color: var(--text-light);
    margin-top: 15px;
}

.service-detail__text .support-types,
.service-detail__text .seo-directions,
.service-detail__text .optimization-areas,
.service-detail__text .development-types,
.service-detail__text .security-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-detail__text .support-type,
.service-detail__text .direction,
.service-detail__text .area,
.service-detail__text .dev-type,
.service-detail__text .security-service {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-top: 3px solid var(--primary);
}

.service-detail__text .support-type h4,
.service-detail__text .direction h4,
.service-detail__text .area h4,
.service-detail__text .dev-type h4,
.service-detail__text .security-service h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 20px;
}

.service-detail__text .support-type p,
.service-detail__text .direction p,
.service-detail__text .area p,
.service-detail__text .dev-type p,
.service-detail__text .security-service p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-detail__features {
    margin-bottom: 40px;
}

.service-detail__features h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-item i {
    color: var(--primary);
    font-size: 20px;
}

.service-detail__cta {
    margin-bottom: 60px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
}

.cta-box .btn:hover {
    background: var(--bg-light);
}

.service-detail__related h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

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

/* Related service cards are scoped to the service detail page so they do not
   override the main services grid used on the home page. */
.related-services .service-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-align: left;
}

.related-services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.related-services .service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 0 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.related-services .service-card__title {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.3;
    color: var(--secondary);
}

.related-services .service-card__desc {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.related-services .service-card__link {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .2s ease, color .2s ease;
}

.related-services .service-card__link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .service-detail__title {
        font-size: 32px;
    }

    .service-detail__desc {
        font-size: 16px;
    }

    .service-detail__content {
        padding: 25px;
    }

    .service-detail__text h2 {
        font-size: 26px;
    }

    .service-detail__text h3 {
        font-size: 20px;
    }

    .service-detail__text h4 {
        font-size: 18px;
    }

    .service-detail__text .advantages-grid,
    .service-detail__text .support-types,
    .service-detail__text .seo-directions,
    .service-detail__text .optimization-areas,
    .service-detail__text .development-types,
    .service-detail__text .security-services {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-detail__text .advantage-item,
    .service-detail__text .support-type,
    .service-detail__text .direction,
    .service-detail__text .area,
    .service-detail__text .dev-type,
    .service-detail__text .security-service {
        padding: 20px;
    }

    .service-detail__text .info-box,
    .service-detail__text .results-box,
    .service-detail__text .monitoring-box,
    .service-detail__text .warning-box {
        padding: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 24px;
    }
}

.service-sales-points {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin:0 0 40px;
}
.service-sales-points > div {
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:24px;
}
.service-sales-points i { color:var(--primary); font-size:22px; margin-bottom:14px; }
.service-sales-points strong,
.service-sales-points span { display:block; }
.service-sales-points strong { margin-bottom:8px; color:var(--text); }
.service-sales-points span { color:var(--text-light); font-size:14px; line-height:1.55; }
@media (max-width:768px){ .service-sales-points{grid-template-columns:1fr;} }


/* Consolidated from views/blog/view.php */
.breadcrumbs {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        font-size: 14px;
        color: var(--text-light);
        flex-wrap: wrap;
    }

    .breadcrumbs a {
        color: var(--text);
    }

    .breadcrumbs a:hover {
        color: var(--primary);
    }

    .blog-post {
        background-color: white;
        border-radius: var(--radius-lg);
        padding: 40px;
        margin-bottom: 40px;
        box-shadow: var(--shadow);
    }

    .blog-post__header {
        text-align: center;
        margin-bottom: 30px;
    }

    .blog-post__category {
        display: inline-block;
        font-family: var(--font-heading);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary);
        margin-bottom: 16px;
    }

    .blog-post__title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .blog-post__meta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        font-size: 14px;
        color: var(--text-light);
    }

    .blog-post__meta i {
        margin-right: 6px;
    }

    .blog-post__image {
        margin: -40px -40px 30px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        overflow: hidden;
    }

    .blog-post__image img {
        width: 100%;
        height: auto;
    }

    .blog-post__content {
        font-size: 16px;
        line-height: 1.8;
        color: var(--text);
    }

    .blog-post__content h2,
    .blog-post__content h3,
    .blog-post__content h4 {
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .blog-post__content p {
        margin-bottom: 16px;
    }

    .blog-post__content ul,
    .blog-post__content ol {
        margin-bottom: 16px;
        padding-left: 24px;
    }

    .blog-post__content ul li {
        list-style: disc;
        margin-bottom: 8px;
    }

    .blog-post__content ol li {
        list-style: decimal;
        margin-bottom: 8px;
    }

    .blog-post__content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius);
        margin: 24px 0;
    }

    .blog-post__content blockquote {
        border-left: 4px solid var(--primary);
        padding-left: 20px;
        margin: 24px 0;
        font-style: italic;
        color: var(--text-light);
    }

    .blog-post__tags {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid var(--border);
        flex-wrap: wrap;
    }

    .blog-post__tags span {
        font-size: 14px;
        color: var(--text-light);
    }

    .blog-post__tags .tag {
        display: inline-block;
        padding: 6px 14px;
        font-size: 13px;
        color: var(--text);
        background-color: var(--bg-light);
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .blog-post__tags .tag:hover {
        background-color: var(--primary);
        color: white;
    }

    .blog-post__share {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }

    .blog-post__share span {
        font-size: 14px;
        color: var(--text-light);
    }

    .share-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius);
        color: white;
        transition: var(--transition);
    }

    .share-btn:hover {
        transform: translateY(-3px);
        color: white;
    }

    .share-btn--vk {
        background-color: #4A76A8;
    }

    .share-btn--telegram {
        background-color: #0088CC;
    }

    .share-btn--whatsapp {
        background-color: #25D366;
    }

    /* Comments */
    .comments-section {
        background-color: white;
        border-radius: var(--radius-lg);
        padding: 40px;
        margin-bottom: 40px;
        box-shadow: var(--shadow);
    }

    .comments-section__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .comment-form-wrapper {
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid var(--border);
    }

    .comment-form-wrapper h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .comment-form .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .captcha-row {
        display: flex;
        gap: 16px;
    }

    .captcha-row .form-control {
        flex: 1;
    }

    .comments-list {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .comment {
        padding: 20px;
        background-color: var(--bg-light);
        border-radius: var(--radius);
    }

    .comment--reply {
        margin-left: 40px;
        margin-top: 16px;
        background-color: white;
        border: 1px solid var(--border);
    }

    .comment__header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 12px;
    }

    .comment__author {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 600;
        color: var(--secondary);
    }

    .comment__date {
        font-size: 13px;
        color: var(--text-muted);
    }

    .comment__content {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text);
    }

    .comments-empty {
        text-align: center;
        padding: 40px;
        color: var(--text-light);
    }

    /* Related Posts */
    .related-posts {
        margin-top: 40px;
    }

    .related-posts__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    @media (max-width: 768px) {
        .blog-post {
            padding: 24px;
        }

        .blog-post__title {
            font-size: 24px;
        }

        .blog-post__image {
            margin: -24px -24px 24px;
        }

        .blog-post__meta {
            flex-direction: column;
            gap: 8px;
        }

        .comment-form .form-row {
            grid-template-columns: 1fr;
        }

        .captcha-row {
            flex-direction: column;
        }

        .comment--reply {
            margin-left: 20px;
        }

        .comments-section {
            padding: 24px;
        }
    }


/* Consolidated from views/blog/index.php */
.breadcrumbs {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 30px;
        font-size: 14px;
        color: var(--text-light);
    }

    .breadcrumbs a {
        color: var(--text);
    }

    .breadcrumbs a:hover {
        color: var(--primary);
    }

    .blog-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .blog-search {
        margin-bottom: 30px;
    }

    .search-form {
        display: flex;
        gap: 10px;
    }

    .search-form .form-control {
        flex: 1;
    }

    .blog__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .blog__grid > .blog-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 15px);
        justify-self: center;
    }

    .blog-card {
        background-color: white;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .blog-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }

    .blog-card__image {
        display: block;
        aspect-ratio: 16/10;
        overflow: hidden;
    }

    .blog-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .blog-card:hover .blog-card__image img {
        transform: scale(1.05);
    }

    .blog-card__content {
        padding: 24px;
    }

    .blog-card__meta {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .blog-card__category {
        color: var(--primary);
        font-weight: 500;
    }

    .blog-card__date {
        color: var(--text-muted);
    }

    .blog-card__title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .blog-card__title a {
        color: var(--secondary);
    }

    .blog-card__title a:hover {
        color: var(--primary);
    }

    .blog-card__excerpt {
        font-size: 14px;
        color: var(--text-light);
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .blog-card__link {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 600;
        color: var(--primary);
    }

    .blog-card__link i {
        margin-left: 4px;
        transition: var(--transition);
    }

    .blog-card__link:hover i {
        transform: translateX(4px);
    }

    .pagination-wrapper {
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }

    .pagination {
        display: flex;
        gap: 8px;
    }

    .pagination .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 500;
        color: var(--text);
        background-color: white;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        transition: var(--transition);
    }

    .pagination .page-link:hover {
        background-color: var(--bg-light);
        color: var(--primary);
    }

    .pagination .active .page-link {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .pagination .disabled .page-link {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .blog-empty {
        text-align: center;
        padding: 60px 20px;
        color: var(--text-light);
    }

    .blog-empty i {
        font-size: 48px;
        margin-bottom: 16px;
        color: var(--border);
    }

    /* Sidebar */
    .sidebar-widget {
        background-color: white;
        border-radius: var(--radius-lg);
        padding: 24px;
        margin-bottom: 24px;
        box-shadow: var(--shadow);
    }

    .sidebar-widget__title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-list li {
        margin-bottom: 10px;
    }

    .sidebar-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        color: var(--text);
    }

    .sidebar-list a:hover {
        color: var(--primary);
    }

    .sidebar-list .count {
        color: var(--text-muted);
        font-size: 12px;
    }

    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        display: inline-block;
        padding: 6px 12px;
        font-size: 13px;
        color: var(--text);
        background-color: var(--bg-light);
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .tag:hover {
        background-color: var(--primary);
        color: white;
    }

    @media (max-width: 1024px) {
        .blog-layout {
            grid-template-columns: 1fr;
        }

        .blog-layout__sidebar {
            order: -1;
        }

        .blog__grid {
            grid-template-columns: 1fr;
        }
    }

@media(max-width:768px){.blog__grid > .blog-card:last-child:nth-child(odd){grid-column:auto;width:100%;}}


