    /* --- Общие стили секции --- */
    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 20px 0 40px;
    }

    /* Entrance sequence is scoped to the homepage root, so seamless navigation
       never changes the appearance of the other sections. */
    .hero.is-home-reveal-pending .home-reveal-item {
        opacity: 0;
        transform: translate3d(0, 32px, 0);
    }

    .hero.is-home-reveal-running .home-reveal-item {
        animation: home-reveal-up 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--home-reveal-delay, 0ms);
        will-change: opacity, transform;
    }

    @keyframes home-reveal-up {
        from {
            opacity: 0;
            transform: translate3d(0, 32px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    .pill-tag {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 4px;
        background: rgba(35, 45, 60, 0.45);
        backdrop-filter: blur(10px);
        border-radius: 50px;
        padding: 10px 26px;
        border: 1px solid rgba(255, 255, 255, 0.04);
        margin-bottom: 35px;
        color: #b8c7e0;
        font-weight: 400;
    }

    .headline {
        font-size: clamp(44px, 10vw, 82px);
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -2px;
        max-width: 950px;
        margin-bottom: 30px;
        color: white;
        text-shadow: 0 5px 25px rgba(0, 30, 100, 0.6);
    }

    .gradient-text {
        background: linear-gradient(150deg, #ffffff, #5f9eff, #b896ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .subhead {
        font-size: 18px;
        max-width: 620px;
        margin: 0 auto 45px;
        color: #c0cfe6;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        padding: 16px 32px;
        border-radius: 60px;
        border: 1px solid rgba(255,255,255,0.03);
        font-weight: 340;
    }

    /* --- Карточки преимуществ --- */
    .feature-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        margin: 55px 0 40px;
        align-items: stretch; /* Чтобы все карточки были одинаковой высоты */
    }

    .benefit-card {
        /* Убрал лишние background и blur, чтобы не перекрывать картинку */
        background: rgba(20, 25, 34, 0.5);
        backdrop-filter: blur(15px) saturate(200%);
        -webkit-backdrop-filter: blur(15px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 50px;
        padding: 30px 30px 35px; /* Чуть увеличил нижний отступ для текста */
        width: 280px;
        box-shadow: 0 25px 35px -20px black;
        transition: 0.2s;
        display: flex;
        flex-direction: column; /* Выстраивает картинку и текст в колонку */
        align-items: center;    /* Центрирует содержимое по горизонтали */
    }

    .benefit-card:hover {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(30, 38, 50, 0.55);
        transform: translateY(-5px);
    }

    /* Стили картинки внутри карточки (то, что вы просили) */
    .benefit-card picture {
        width: 100%;
        aspect-ratio: 1 / 1;
        margin-bottom: 25px;
        display: block;
    }

    .benefit-card img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1; /* Строгий квадрат */
        object-fit: cover;
        border-radius: 32px; /* Закругление углов картинки */
        display: block;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }

    .benefit-card h2 {
        font-size: 22px;
        font-weight: 540;
        margin-bottom: 12px;
        color: #ffffff;
    }

    .benefit-card p {
        color: #c0cee4;
        font-size: 15px;
        font-weight: 340;
        line-height: 1.5;
    }

    /* --- Статистика (Ленточка) --- */
    .info-strip {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin: 30px 0 45px;
        font-size: 13px;
        color: #99afcc;
        text-transform: uppercase;
        letter-spacing: 1.8px;
        flex-wrap: wrap;
    }

    .info-strip span {
        background: rgba(30, 40, 55, 0.4);
        backdrop-filter: blur(4px);
        padding: 6px 24px;
        border-radius: 40px;
        border: 1px solid rgba(255,255,255,0.03);
    }

    /* --- Призыв к действию --- */
    .cta-wrapper {
        display: flex;
        justify-content: center;
        margin: 25px 0 60px;
    }

    .cta-block {
        background: rgba(18, 24, 34, 0.6);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 100px;
        padding: 16px 40px 16px 32px;
        display: flex;
        align-items: center;
        gap: 35px;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: 0 25px 40px -18px #000000;
    }

    .cta-text {
        font-size: 18px;
        font-weight: 400;
        color: #dae5f5;
    }

    .cta-text strong {
        color: white;
        font-weight: 600;
    }

    .btn-cta {
        padding: 16px 52px;
        font-size: 18px;
        background: linear-gradient(130deg, #1f4790, #3366cc);
        border: none;
        color: white;
        border-radius: 60px;
        font-weight: 620;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: 0.2s;
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 10px 18px -6px #08246b;
        text-decoration: none;
        display: inline-block;
    }

    .btn-cta:hover {
        background: linear-gradient(130deg, #295ac2, #3f78e0);
        transform: scale(1.02);
        box-shadow: 0 15px 27px -6px #103494;
    }

    /* --- Дополнительный блок про обход блокировок --- */
    .bypass-features {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 800px;
        width: 100%;
        margin: 40px 0 20px;
    }

    .bypass-card {
        display: flex;
        align-items: center;
        gap: 25px;
        background: rgba(18, 24, 34, 0.3);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 50px;
        padding: 24px 32px;
        transition: 0.2s;
        text-align: left;
    }

    .bypass-card:hover {
        background: rgba(22, 30, 42, 0.5);
        border-color: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }

    .bypass-icon {
        font-size: 40px;
        min-width: 60px;
        text-align: center;
        filter: drop-shadow(0 4px 8px rgba(70, 130, 240, 0.4));
    }

    .bypass-content h2 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 6px;
        color: white;
    }

    .bypass-content p {
        color: #b0c6e0;
        font-size: 15px;
        font-weight: 340;
    }

    @media (max-width: 700px) {
        .cta-block {
            flex-direction: column;
            padding: 24px;
            gap: 20px;
            border-radius: 60px;
        }

        .bypass-card {
            flex-direction: column;
            text-align: center;
            padding: 30px 20px;
        }

        .info-strip {
            gap: 15px;
        }
    }


        .blog-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .blog-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .blog-header h1 {
        font-size: 48px;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff, #c9dbff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 15px;
    }

    .blog-header p {
        color: #b0c6e0;
        font-size: 18px;
    }

    .article-preview {
        display: flex;
        gap: 25px;
        background: rgba(18, 24, 34, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 30px;
        padding: 25px;
        margin-bottom: 30px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        text-decoration: none;
        cursor: pointer;
    }

    .article-preview:hover {
        transform: translateY(-3px);
        border-color: rgba(100, 160, 255, 0.4);
        background: rgba(30, 40, 60, 0.7);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    }

    .article-image {
        flex-shrink: 0;
        width: 280px;
        height: 180px;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.3);
    }

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .article-preview:hover .article-image img {
        transform: scale(1.05);
    }

    .article-content {
        font-family: 'Inter',-apple-system, BlinkMacSystemFont, sans-serif;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .article-title {
        margin: 0;
        font-size: 26px;
        font-weight: 600;
        line-height: 1.3;
        color: white;
        transition: color 0.2s ease;
    }

    .article-preview:hover .article-title {
        background: linear-gradient(135deg, #ffffff, #5f9eff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .article-excerpt {
        color: #b0c6e0;
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
    }

    .article-meta {
        display: flex;
        gap: 20px;
        margin-top: 8px;
        font-size: 13px;
        color: #7f99c0;
    }

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .article-tags-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-width: 140px;
    }

    .article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .tag {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(100, 130, 200, 0.2);
        border: 1px solid rgba(100, 160, 255, 0.2);
        border-radius: 30px;
        font-size: 13px;
        font-weight: 500;
        color: #9bb9ff;
        transition: all 0.2s ease;
        white-space: nowrap;
        pointer-events: none;
    }

    .pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pagination a, .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        background: rgba(18, 24, 34, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 40px;
        color: #b0c6e0;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 14px;
    }

    .pagination a:hover {
        background: rgba(30, 70, 140, 0.4);
        border-color: rgba(100, 160, 255, 0.3);
        color: white;
        transform: translateY(-2px);
    }

    .pagination .current {
        background: linear-gradient(130deg, #1f4790, #3366cc);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .no-articles {
        text-align: center;
        padding: 60px 20px;
        background: rgba(18, 24, 34, 0.4);
        backdrop-filter: blur(12px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .no-articles h3 {
        font-size: 24px;
        color: white;
        margin-bottom: 10px;
    }

    .no-articles p {
        color: #8da1c0;
    }

    @media (max-width: 1000px) {
        .article-image {
            width: 220px;
            height: 160px;
        }

        .article-title {
            font-size: 22px;
        }
    }

    @media (max-width: 800px) {
        .article-preview {
            flex-wrap: wrap;
            padding: 20px;
        }

        .article-image {
            width: 100%;
            height: 200px;
        }

        .article-tags-wrapper {
            width: 100%;
            justify-content: flex-start;
            margin-top: 15px;
        }

        .article-tags {
            justify-content: flex-start;
        }
    }

    @media (max-width: 700px) {
        .blog-header h1 {
            font-size: 36px;
        }

        .blog-container {
            padding: 20px;
        }

        .article-title {
            font-size: 20px;
        }

        .article-image {
            height: 180px;
        }
    }

    @media (max-width: 480px) {
        .article-image {
            height: 150px;
        }

        .article-title {
            font-size: 18px;
        }

        .article-excerpt {
            font-size: 14px;
        }

        .tag {
            padding: 4px 12px;
            font-size: 11px;
        }

        .article-meta {
            font-size: 11px;
            flex-wrap: wrap;
            gap: 10px;
        }
    }
    .article-detail {
    color: #e0eaff;
}

.article-detail h1,
.article-detail h2,
.article-detail h3,
.article-detail h4,
.article-detail p,
.article-detail li {
    color: #ffffff;
}
.article-content h2{
    color: #ffffff; !important;

}
.article-content p{
    color: #ffffff; !important;

}
.article-detail a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(155, 185, 255, 0.3);
}

.article-detail a:hover {
    color: white;
    border-bottom-color: white;
}

.article-detail h1 {
    color: white;
    background: linear-gradient(135deg, #ffffff, #c9dbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-detail h2 {
    color: #ffffff;
    border-left: 4px solid #5f9eff;
    padding-left: 15px;
}
    /* Стили для страницы блога */
    .blog-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .blog-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .blog-header h1 {
        font-size: 48px;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff, #c9dbff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 15px;
    }

    .blog-header p {
        color: #b0c6e0;
        font-size: 18px;
    }

    /* Карточка статьи - вся ссылка */
    .article-preview {
        display: flex;
        gap: 25px;
        background: rgba(18, 24, 34, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 30px;
        padding: 25px;
        margin-bottom: 30px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        text-decoration: none;
        cursor: pointer;
    }

    .article-preview:hover {
        transform: translateY(-3px);
        border-color: rgba(100, 160, 255, 0.4);
        background: rgba(30, 40, 60, 0.7);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    }

    /* Изображение статьи */
    .article-image {
        flex-shrink: 0;
        width: 280px;
        height: 180px;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.3);
    }

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .article-preview:hover .article-image img {
        transform: scale(1.05);
    }

    /* Контент статьи */
    .article-content {
        font-family: 'Inter',-apple-system, BlinkMacSystemFont, sans-serif;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .article-title {
        margin: 0;
        font-size: 26px;
        font-weight: 600;
        line-height: 1.3;
        color: white;
        transition: color 0.2s ease;
    }

    .article-preview:hover .article-title {
        background: linear-gradient(135deg, #ffffff, #5f9eff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Анонс статьи */
    .article-excerpt {
        color: #b0c6e0;
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
    }

    /* Мета-информация (дата, автор) */
    .article-meta {
        display: flex;
        gap: 20px;
        margin-top: 8px;
        font-size: 13px;
        color: #7f99c0;
    }

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Теги - справа по середине блока */
    .article-tags-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-width: 140px;
    }

    .article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .tag {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(100, 130, 200, 0.2);
        border: 1px solid rgba(100, 160, 255, 0.2);
        border-radius: 30px;
        font-size: 13px;
        font-weight: 500;
        color: #9bb9ff;
        transition: all 0.2s ease;
        white-space: nowrap;
        pointer-events: none;
    }

    /* Пагинация */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pagination a, .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        background: rgba(18, 24, 34, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 40px;
        color: #b0c6e0;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 14px;
    }

    .pagination a:hover {
        background: rgba(30, 70, 140, 0.4);
        border-color: rgba(100, 160, 255, 0.3);
        color: white;
        transform: translateY(-2px);
    }

    .pagination .current {
        background: linear-gradient(130deg, #1f4790, #3366cc);
        border-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    /* Пустое состояние */
    .no-articles {
        text-align: center;
        padding: 60px 20px;
        background: rgba(18, 24, 34, 0.4);
        backdrop-filter: blur(12px);
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .no-articles h3 {
        font-size: 24px;
        color: white;
        margin-bottom: 10px;
    }

    .no-articles p {
        color: #8da1c0;
    }

    /* Адаптивность */
    @media (max-width: 1000px) {
        .article-image {
            width: 220px;
            height: 160px;
        }

        .article-title {
            font-size: 22px;
        }
    }

    @media (max-width: 800px) {
        .article-preview {
            flex-wrap: wrap;
            padding: 20px;
        }

        .article-image {
            width: 100%;
            height: 200px;
        }

        .article-tags-wrapper {
            width: 100%;
            justify-content: flex-start;
            margin-top: 15px;
        }

        .article-tags {
            justify-content: flex-start;
        }
    }

    @media (max-width: 700px) {
        .blog-header h1 {
            font-size: 36px;
        }

        .blog-container {
            padding: 20px;
        }

        .article-title {
            font-size: 20px;
        }

        .article-image {
            height: 180px;
        }
    }

    @media (max-width: 480px) {
        .article-image {
            height: 150px;
        }

        .article-title {
            font-size: 18px;
        }

        .article-excerpt {
            font-size: 14px;
        }

        .tag {
            padding: 4px 12px;
            font-size: 11px;
        }

        .article-meta {
            font-size: 11px;
            flex-wrap: wrap;
            gap: 10px;
        }
    }
    .article-detail {
    color: #e0eaff; /* Светлый цвет для всего текста */
}

.article-detail h1,
.article-detail h2,
.article-detail h3,
.article-detail h4,
.article-detail p,
.article-detail li {
    color: #ffffff; /* Белый/светлый текст */
}
.article-content h2{
    color: #ffffff; !important;

}
.article-content p{
    color: #ffffff; !important;

}
.article-detail a {
    color: #ffffff; /* Ссылки — голубые, не фиолетовые */
    text-decoration: none;
    border-bottom: 1px dashed rgba(155, 185, 255, 0.3);
}

.article-detail a:hover {
    color: white;
    border-bottom-color: white;
}

/* Если заголовки были фиолетовыми */
.article-detail h1 {
    color: white;
    background: linear-gradient(135deg, #ffffff, #c9dbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-detail h2 {
    color: #ffffff;
    border-left: 4px solid #5f9eff;
    padding-left: 15px;
}
    /* Общий контейнер для контента, чтобы он был по центру и не растягивался на весь экран */
    .content-wrapper {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px 20px;
        color: #e0e8f5;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        line-height: 1.6;
    }

    .article-breadcrumbs {
        margin-bottom: 24px;
        color: #99afcc;
        font-size: 0.9rem;
    }

    .article-breadcrumbs ol {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .article-breadcrumbs li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .article-breadcrumbs li:not(:last-child)::after {
        content: '›';
        color: #667894;
    }

    .article-breadcrumbs a {
        color: #9bb9ff;
        text-decoration: none;
    }

    .article-breadcrumbs a:hover {
        color: #ffffff;
    }

    .article-breadcrumbs [aria-current='page'] {
        overflow: hidden;
        max-width: min(60ch, 70vw);
        color: #c0cee4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Заголовок статьи */
    .content-wrapper h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 10px;
        line-height: 1.2;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    /* Мета-информация (Автор, дата) */
    .content-wrapper .article-byline {
        display: block;
        font-size: 0.95rem;
        color: #99afcc;
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 20px;
    }

    /* Главное изображение статьи */
    .content-wrapper .main-image-container {
        margin: 30px 0 40px 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
        background: rgba(20, 25, 34, 0.5);
    }

    .content-wrapper .main-image-container img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        max-height: 500px; /* Ограничиваем высоту, если картинка огромная */
    }

    /* Текст статьи (применяется к {{ article.content|safe }}) */
    .content-wrapper .content {
        font-size: 1.1rem;
        color: #d0dcee;
        margin-top: 20px;
    }

    /* Стили для контента внутри |safe (заголовки, списки, ссылки внутри текста) */
    .content-wrapper .content h2 {
        font-size: 1.8rem;
        color: #ffffff;
        margin-top: 40px;
        margin-bottom: 20px;
        border-left: 4px solid #3366cc;
        padding-left: 15px;
    }

    .content-wrapper .content h3 {
        font-size: 1.4rem;
        color: #ffffff;
        margin-top: 30px;
    }

    .content-wrapper .content p {
        margin-bottom: 20px;
    }

    .content-wrapper .content a {
        color: #5f9eff;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: 0.2s;
    }

    .content-wrapper .content a:hover {
        color: #b896ff;
    }

    .content-wrapper .content ul,
    .content-wrapper .content ol {
        padding-left: 25px;
        margin-bottom: 20px;
    }

    .content-wrapper .content li {
        margin-bottom: 10px;
    }

    .content-wrapper .content blockquote {
        border-left: 4px solid #5f9eff;
        padding: 15px 20px;
        margin: 20px 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0 10px 10px 0;
        color: #b0c6e0;
        font-style: italic;
    }

    /* Блок с тегами */
    .after_main_content {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 50px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .tag {
        background: rgba(30, 40, 55, 0.6);
        backdrop-filter: blur(4px);
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #99afcc;
        border: 1px solid rgba(255,255,255,0.03);
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: 0.2s;
    }

    .tag:hover {
        background: rgba(51, 102, 204, 0.3);
        border-color: rgba(51, 102, 204, 0.3);
        color: white;
    }

    /* Кнопка "Назад" */
    .content-wrapper .back-link {
        display: inline-block;
        margin-top: 50px;
        padding: 12px 28px;
        background: rgba(18, 24, 34, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 60px;
        color: #c0cee4;
        text-decoration: none;
        transition: 0.2s;
        backdrop-filter: blur(8px);
        font-weight: 500;
    }

    .content-wrapper .back-link:hover {
        background: rgba(51, 102, 204, 0.2);
        border-color: rgba(51, 102, 204, 0.3);
        color: white;
        transform: translateX(-5px);
    }

    /* Адаптив для мобильных устройств */
    @media (max-width: 700px) {
        .content-wrapper {
            padding: 20px 15px;
        }

        .content-wrapper h1 {
            font-size: 2rem;
        }

        .content-wrapper .content {
            font-size: 1rem;
        }

        .content-wrapper .main-image-container img {
            max-height: 300px;
        }
    }

/* Интерактивная пасхалка внизу главной страницы */
.easter-wall-section {
    width: min(820px, calc(100% - 32px));
    margin: 110px auto 25px;
    padding: 42px 24px 24px;
    text-align: center;
    border-top: 1px solid rgba(107, 160, 255, 0.1);
}

.easter-wall-kicker {
    margin: 0 0 12px;
    color: #78aaff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.32em;
}

.easter-wall-title {
    margin: 0 0 28px;
    color: #eaf2ff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 650;
    letter-spacing: -0.03em;
}

.brick-wall {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.brick-wall:focus-visible .wall-stage {
    outline: 3px solid rgba(107, 158, 255, 0.85);
    outline-offset: 6px;
}

.wall-stage {
    position: relative;
    display: grid;
    min-height: 250px;
    overflow: visible;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.wall-rows {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0;
    background: transparent;
}

.wall-row {
    display: flex;
    width: 102%;
    align-items: center;
    gap: 2px;
    margin-left: -1%;
}

.wall-row:nth-child(even) {
    transform: translateX(2.2%);
}

.wall-brick {
    --fall-x: 0px;
    --fall-y: 180px;
    --fall-rotate: 8deg;
    --fall-delay: 0ms;
    position: relative;
    display: block;
    flex: 1 1 0;
    height: 29px;
    border: 1px solid rgba(123, 158, 201, 0.17);
    border-radius: 2px;
    background:
        radial-gradient(circle at 19% 28%, rgba(205, 225, 247, 0.11) 0 1px, transparent 1.8px),
        radial-gradient(circle at 73% 66%, rgba(0, 12, 35, 0.2) 0 1.2px, transparent 2.1px),
        linear-gradient(178deg, var(--brick-light, #2a5c9d) 0%, var(--brick-mid, #1d4c88) 48%, var(--brick-dark, #153865) 100%);
    background-size: 19px 17px, 27px 23px, auto;
    box-shadow:
        inset 0 1px 1px rgba(193, 218, 246, 0.12),
        inset 0 -3px 6px rgba(0, 10, 31, 0.28),
        0 1px 1px rgba(0, 0, 0, 0.62);
    filter: saturate(0.82);
    transform-origin: center;
}

.wall-brick:nth-child(3n + 1) {
    --brick-light: #2d609e;
    --brick-mid: #204d84;
    --brick-dark: #17375d;
    flex-grow: 1.04;
}

.wall-brick:nth-child(3n + 2) {
    --brick-light: #25558f;
    --brick-mid: #1a477e;
    --brick-dark: #12345c;
    flex-grow: 0.96;
    height: 28px;
}

.wall-brick:nth-child(5n) {
    --brick-light: #3266a2;
    --brick-mid: #24518a;
    --brick-dark: #17375f;
    margin-top: 1px;
}

.wall-brick::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background:
        linear-gradient(104deg, transparent 18%, rgba(0, 12, 34, 0.17) 19%, transparent 21%),
        linear-gradient(12deg, transparent 63%, rgba(194, 216, 239, 0.08) 64%, transparent 67%);
}

.wall-cracks {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.wall-crack {
    opacity: 0;
    transition: opacity 80ms ease;
}

.wall-crack path {
    fill: none;
    stroke: #02050b;
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 1px rgba(126, 161, 204, 0.42));
}

.wall-crack path:not(:first-child) {
    stroke-width: 2.7;
}

.brick-wall[data-hits="1"] .wall-crack:nth-child(-n + 1),
.brick-wall[data-hits="2"] .wall-crack:nth-child(-n + 2),
.brick-wall[data-hits="3"] .wall-crack:nth-child(-n + 3),
.brick-wall[data-hits="4"] .wall-crack:nth-child(-n + 4),
.brick-wall[data-hits="5"] .wall-crack:nth-child(-n + 5),
.brick-wall[data-hits="6"] .wall-crack {
    opacity: 1;
}

.brick-wall[data-hits="1"] .wall-crack:nth-child(-n + 1) path,
.brick-wall[data-hits="2"] .wall-crack:nth-child(-n + 2) path,
.brick-wall[data-hits="3"] .wall-crack:nth-child(-n + 3) path,
.brick-wall[data-hits="4"] .wall-crack:nth-child(-n + 4) path,
.brick-wall[data-hits="5"] .wall-crack:nth-child(-n + 5) path,
.brick-wall[data-hits="6"] .wall-crack path {
    stroke-dashoffset: 0;
}

.brick-wall[data-hits="1"] .wall-crack:nth-child(1) path,
.brick-wall[data-hits="2"] .wall-crack:nth-child(2) path,
.brick-wall[data-hits="3"] .wall-crack:nth-child(3) path,
.brick-wall[data-hits="4"] .wall-crack:nth-child(4) path,
.brick-wall[data-hits="5"] .wall-crack:nth-child(5) path,
.brick-wall[data-hits="6"] .wall-crack:nth-child(6) path {
    animation: crack-draw 210ms ease-out forwards;
}

.brick-wall.is-hit:not(.is-broken) .wall-stage {
    animation: wall-hit 260ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.wall-secret {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px;
    opacity: 0;
    transform: scale(0.86);
}

.wall-secret-label {
    color: #77a8ff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.24em;
}

.wall-promo-code {
    margin: 12px 0 8px;
    color: #f6f9ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(38px, 9vw, 72px);
    line-height: 1;
    letter-spacing: 0.12em;
    text-shadow: 0 0 35px rgba(72, 135, 255, 0.72);
}

.wall-secret-note {
    color: #8fa4c4;
    font-size: 13px;
}

.brick-wall.is-broken .wall-brick {
    animation: brick-collapse 850ms cubic-bezier(0.2, 0.72, 0.25, 1) var(--fall-delay) forwards;
}

.brick-wall.is-broken .wall-rows {
    animation: wall-backing-away 1ms 420ms forwards;
}

.brick-wall.is-broken .wall-cracks {
    animation: cracks-away 260ms 160ms ease forwards;
}

.brick-wall.is-broken .wall-secret {
    animation: secret-reveal 520ms 430ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wall-hint {
    display: block;
    min-height: 22px;
    margin-top: 16px;
    color: #7487a5;
    font-size: 13px;
    transition: color 180ms ease;
}

.brick-wall:hover .wall-hint,
.brick-wall:focus-visible .wall-hint {
    color: #a9bddd;
}

.brick-wall.is-broken .wall-hint {
    display: none;
}

.wall-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@keyframes wall-hit {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-7px) rotate(-0.25deg); }
    36% { transform: translateX(6px) rotate(0.2deg); }
    55% { transform: translateX(-4px); }
    74% { transform: translateX(3px); }
}

@keyframes crack-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes brick-collapse {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    32% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--fall-x), var(--fall-y)) rotate(var(--fall-rotate));
    }
}

@keyframes cracks-away {
    to { opacity: 0; transform: scale(1.22); }
}

@keyframes wall-backing-away {
    to { background: transparent; }
}

@keyframes secret-reveal {
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
    .easter-wall-section {
        width: calc(100% - 8px);
        margin-top: 75px;
        padding: 34px 0 12px;
    }

    .wall-stage {
        min-height: 192px;
    }

    .wall-rows {
        gap: 1px;
        padding: 0;
    }

    .wall-row {
        gap: 1px;
    }

    .wall-brick {
        height: 23px;
    }

    .wall-brick:nth-child(3n + 2) {
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero.is-home-reveal-pending .home-reveal-item,
    .hero.is-home-reveal-running .home-reveal-item {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .brick-wall.is-hit:not(.is-broken) .wall-stage {
        animation: none;
    }

    .brick-wall.is-broken .wall-brick {
        animation-duration: 1ms;
        animation-delay: 0ms;
    }

    .brick-wall.is-broken .wall-rows {
        animation-delay: 0ms;
    }

    .brick-wall.is-broken .wall-secret {
        animation-duration: 1ms;
        animation-delay: 0ms;
    }
}

/* Blog cards: keep the heading full-width and the tags tied to the image. */
.blog-container .article-preview {
    display: block;
    padding: 26px;
    overflow: hidden;
    background: #121822;
    transform-origin: center;
}

.blog-container .article-preview:hover {
    background: #192231;
}

.blog-container .article-preview:active {
    transform: scale(0.985);
    transition-duration: 90ms;
}

.blog-container .article-preview > .article-title {
    width: 100%;
    margin: 0 0 20px;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.article-preview-main {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    min-width: 0;
}

.article-media,
.article-preview-main .article-content {
    min-width: 0;
}

.article-preview-main .article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

.article-preview-main .article-tags-wrapper {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    justify-content: flex-start;
}

.article-preview-main .article-tags {
    justify-content: flex-start;
    gap: 6px;
}

.article-preview-main .tag {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.025em;
}

.article-preview-main .article-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-preview-main .article-meta {
    margin-top: 0;
}

.article-preview-main .article-excerpt {
    margin: 0;
    color: #b0c6e0 !important;
    font-size: 15px;
    line-height: 1.65;
}

/* App-like article surface used by the shared card transition. */
.content-wrapper[data-article-transition="detail"] {
    width: min(900px, 100%);
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(26px, 5vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(120, 160, 225, 0.13);
    border-radius: 32px;
    background: #10151f;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.content-wrapper[data-article-transition="detail"] .article-breadcrumbs {
    margin-top: 0;
}

.content-wrapper[data-article-transition="detail"] .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 800px) {
    .blog-container .article-preview {
        padding: 20px;
    }

    .blog-container .article-preview > .article-title {
        margin-bottom: 16px;
        font-size: clamp(21px, 6vw, 27px);
    }

    .article-preview-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-preview-main .article-image {
        height: auto;
    }

    .content-wrapper[data-article-transition="detail"] {
        width: 100%;
        padding: 24px 18px 32px;
        border-radius: 26px;
    }
}

@media (max-width: 480px) {
    .article-preview-main .tag {
        padding: 3px 8px;
        font-size: 9px;
    }
}
