button:focus,
button:active,
button:focus-visible {
    outline: unset;
    border: none;
}

button.button-main {
    outline: 2px solid transparent;
    transition: all 0.3s ease;
}

button.button-main:focus,
button.button-main:active,
button.button-main:focus-visible {
    outline: 2px solid #9333ea3b;
    border: none;
}

button.button-main:hover {
    outline: 2px solid #9333ea3b;
}

.has-svg svg {
    width: 100%;
    height: 100%;
}

.logo {
    width: 150px;
}

.logo-shape {
    --size: 35px;
    width: var(--size);
    height: var(--size);
}

.logo img {
    width: 100%;
    object-fit: cover;
}

.hide {
    display: none;
}

.disabled {
    opacity: 0.8;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.08);
}

.report-button.disabled {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.08);
}

[data-sy-tooltip] {
    position: relative;
}

[data-sy-tooltip]:before {
    content: attr(data-sy-tooltip);
    opacity: 0;
    left: 10px;
    width: 100px;
    bottom: -24px;
    color: #bdbdbd;
    display: block;
    padding: 2px 5px;
    user-select: none;
    position: absolute;
    border-radius: 4px;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.5);
}

[data-sy-tooltip]:hover:before {
    opacity: 1;
}

.powered-by {
    left: 50%;
    z-index: 5;
    opacity: 0.9;
    bottom: 30px;
    color: #00000043;
    font-size: 12px;
    text-align: center;
    position: absolute;
    transform: translateX(-50%);
}

.powered-by a:hover {
    color: #9333ea;
    text-decoration: unset;
}

.static-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.static-content li {
    margin-bottom: 5px;
}

.policy-toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

.policy-toc-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.policy-toc-nav {
    margin-bottom: 2rem;
}

.policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-toc-item {
    margin: 0.75rem 0;
}

.policy-toc-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.policy-toc-link:hover {
    color: #1e293b;
}

/* Table of Contents */
.policy-table-of-contents {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.policy-table-of-contents h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #9333ea;
}

.policy-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

.policy-toc-list li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.policy-toc-list a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.policy-toc-list a:hover {
    color: #9333ea;
}


/* Article Cards */
.recommended-article {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 350px;
}

.recommended-article:hover {
    transform: translateY(-4px);
}

.recommended-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-article::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(147, 51, 234, 0.5) 0%,
        rgba(147, 51, 234, 0.35) 20%,
        rgba(147, 51, 234, 0.25) 35%,
        rgba(147, 51, 234, 0.15) 50%,
        rgba(147, 51, 234, 0.08) 65%,
        rgba(147, 51, 234, 0) 80%
    );
    pointer-events: none;
}

.recommended-article .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 1;
    color: white;
}

.recommended-article .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.recommended-article .title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: white;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Compact article cards for category page */
.compact-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.compact-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    position: relative;
}

.compact-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.compact-article-card:hover img {
    transform: scale(1.08);
}

.compact-article-card .image-container {
    position: relative;
    overflow: hidden;
}

.compact-article-card .category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-primary-light);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-article-card .content {
    padding: 12px;
}

.compact-article-card .meta {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.compact-article-card .meta .separator {
    margin: 0 4px;
    color: #cbd5e1;
}

.compact-article-card .title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.compact-article-card .description {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-article-card .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.compact-article-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.compact-article-card .tag {
    background: #f8fafc;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.compact-article-card .tag:hover {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.compact-article-card .read-more {
    color: #7c3aed;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-article-card .read-more:hover {
    transform: translateX(3px);
    color: #5b21b6;
}

.compact-article-card .read-more svg {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.compact-article-card .read-more:hover svg {
    transform: translateX(2px);
}

/* Custom typography */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
}

/* Custom gradients */
.purple-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.purple-text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Category page styles */
.category-header {
    position: relative;
    margin-bottom: 4rem;
}

.category-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #faf5ff 0%, #e0e7ff 50%, #e0f2fe 100%);
    border-radius: 24px;
}

.category-header-content {
    position: relative;
    padding: 4rem 2rem;
}

.category-header-inner {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.category-badge svg {
    width: 1rem;
    height: 1rem;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.category-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-divider {
    width: 1px;
    height: 2rem;
    background: #d1d5db;
}

/* Featured section */
.featured-section {
    margin-bottom: 2rem;
}

.featured-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.featured-articles-wrapper {
    margin-top: 100px;
    margin-bottom: 100px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-article {
    transition: all 0.3s ease;
    max-width: 360px;
    background: transparent;
}

.featured-article:hover {
    transform: translateY(-2px);
}

.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 0.25rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 16px;
}

.featured-article:hover .featured-image img {
    transform: scale(1.03);
}

.featured-overlay {
    display: none;
}

.featured-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.featured-category {
    padding: 0.25rem 0.5rem;
    background: #f8fafc;
    color: #64748b;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.featured-time {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.featured-time svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
}

.featured-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.featured-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.5rem 0;
}

.featured-article:hover .featured-title {
    color: #6366f1;
}

.featured-excerpt {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
}

.featured-tag {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
}

.featured-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.featured-link {
    display: none;
}

/* Articles section */
.articles-section {
    margin-bottom: 4rem;
}

.articles-container {
    max-width: 72rem;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: #7c3aed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-icon svg {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.empty-description {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Newsletter section */
.newsletter-section {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.newsletter-container {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: #e0e7ff;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: #111827;
    border: none;
    outline: none;
}

.newsletter-input:focus {
    box-shadow: 0 0 0 2px white;
}

.newsletter-button {
    padding: 0.75rem 2rem;
    background: white;
    color: #7c3aed;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-button:hover {
    background: #f9fafb;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .featured-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .featured-image {
        height: 160px;
    }
    
    .featured-title {
        font-size: 0.9375rem;
    }
}

/* AI Sphere Animation */
.ai-sphere {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.sphere-gradient {
    position: relative;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    animation: pulse 8s ease-in-out infinite;
}

.sphere-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(226, 232, 240, 0.85) 20%,
        rgba(198, 201, 247, 0.75) 40%,
        rgba(167, 139, 250, 0.65) 60%,
        rgba(139, 92, 246, 0.45) 100%
    );
    border-radius: 50%;
    filter: blur(5px);
    animation: pulse 8s ease-in-out infinite;
}

.sphere-gradient::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 60% 60%,
        transparent 0%,
        rgba(199, 210, 254, 0.7) 45%,
        rgba(167, 139, 250, 0.5) 65%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(15px);
    animation: softPulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.95;
    }
    100% {
        transform: scale(1);
        opacity: 0.75;
    }
}

@keyframes softPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        opacity: 0.65;
    }
}

/* Main Featured Post Styles */
.main-featured-post {
    position: relative;
    margin-bottom: 4rem;
}

.main-featured-post-inner {
    height: 600px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.main-featured-post-inner:hover .main-featured-image {
    transform: scale(1.05);
}

.main-featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

.main-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-featured-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 10;
}

.main-featured-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-end;
}

.main-featured-content-inner {
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
    /*padding: 4rem;*/
    padding-bottom: 3.5rem;
}

.main-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.main-featured-category {
    background: rgba(147, 51, 234, 0.3);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-featured-date {
    color: rgba(255, 255, 255, 0.7);
}

.main-featured-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 56rem;
}

.main-featured-excerpt {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    line-height: 1.7;
}

.main-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.main-featured-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.main-featured-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.main-featured-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    color: #111827;
    border-radius: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.main-featured-button:hover {
    background: #F3E8FF;
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
}

.main-featured-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.main-featured-button:hover svg {
    transform: translateX(4px);
}

.main-featured-articles {
    display: flex;
    justify-content: space-between;
}

/* Regular Articles */
.regular-article {
    display: flex;
    align-items: start;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #f1f5f9;
    text-decoration: none;
}

.regular-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.regular-article-image {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #f1f5f9;
}

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

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

.regular-article-content {
    margin-left: 1rem;
    flex-grow: 1;
}

.regular-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.regular-article-category {
    background: #f8fafc;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.regular-article:hover .regular-article-category {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.regular-article-date {
    color: #64748b;
    font-size: 0.875rem;
}

.regular-article-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.regular-article:hover .regular-article-title {
    color: #7c3aed;
}

/* Best of the Week Section */
.best-of-week-section {
    margin-bottom: 4rem;
}

.best-of-week-title {
    margin-bottom: 2rem;
    color: #9333ea;
    font-weight: 500;
    font-size: 1.125rem;
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: var(--color-bg-main);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

/* Tags Page */
.tag-header {
    margin-bottom: 3rem;
}

.tag-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-badge {
    background: #f3e8ff;
    color: #9333ea;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-count {
    color: #64748b;
}

.tag-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.tag-description {
    color: #64748b;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-icon {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.empty-icon svg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    fill: none;
    stroke: currentColor;
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #64748b;
}

/* Tag Banner */
.tag-banner {
    position: relative;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.tag-banner-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tag-banner-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -200px;
    top: -200px;
    background: radial-gradient(circle at center,
        rgba(147, 51, 234, 0.08) 0%,
        rgba(147, 51, 234, 0.05) 35%,
        rgba(147, 51, 234, 0.02) 70%,
        rgba(147, 51, 234, 0) 100%
    );
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.tag-banner-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(147, 51, 234, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(147, 51, 234, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}

.tag-banner-content {
    position: relative;
    padding: 3rem;
}

.tag-banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.tag-banner-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.tag-banner-breadcrumbs a {
    color: #64748b;
    transition: color 0.2s;
}

.tag-banner-breadcrumbs a:hover {
    color: #9333ea;
}

.tag-banner-breadcrumbs svg {
    width: 1rem;
    height: 1rem;
    stroke: #94a3b8;
}

.tag-banner-stats {
    display: flex;
    gap: 2rem;
}

.tag-banner-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.tag-banner-stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #9333ea;
}

.tag-banner-stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.tag-banner-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tag-banner-title-wrapper {
    max-width: 600px;
}

.tag-banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tag-banner-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.tag-banner-related {
    background: rgb(243 243 243 / 36%);
    backdrop-filter: blur(1px);
    padding: 1.5rem;
    border-radius: 1rem;
    min-width: 250px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tag-banner-related-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-banner-related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-banner-related-tag {
    background: white;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.tag-banner-related-tag:hover {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .tag-banner-content {
        padding: 2rem;
    }

    .tag-banner-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .tag-banner-main {
        flex-direction: column;
        gap: 2rem;
    }

    .tag-banner-title {
        font-size: 2rem;
    }

    .tag-banner-related {
        width: 100%;
    }
}

/* Footer */
.site-footer {
    margin-top: 6rem;
    background: white;
    border-radius: 2rem 2rem 0 0;
    overflow: hidden;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 25%, rgb(147 51 234 / 4%) 0%, transparent 50%),
        radial-gradient(circle at 80% 75%, rgb(147 51 234 / 4%) 0%, transparent 50%);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
}

.footer-logo svg {
    width: 2rem;
    height: 2rem;
}

.footer-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgb(243 243 243 / 36%);
    backdrop-filter: blur(1px);
    color: #64748b;
    transition: all 0.2s;
}

.social-link:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-section h3 {
    color: #111827;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #64748b;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #9333ea;
}

.footer-link svg {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}

.footer-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-link {
    color: #64748b;
    transition: color 0.2s;
}

.footer-bottom-link:hover {
    color: #9333ea;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-featured-articles {
        flex-direction: column;
    }
    .featured-article {
        width: 100%;
        max-width: unset;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Article Hero */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    margin-bottom: 4rem;
    color: white;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.article-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.article-category {
    background: #9333ea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.article-category:hover {
    background: #7e22ce;
}

.article-date,
.article-reading-time {
    color: #e2e8f0;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 2px solid white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    line-height: 1.4;
}

.author-role {
    color: #e2e8f0;
    font-size: 0.875rem;
}

/* Article Container */
.article-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

/* Table of Contents */
.article-toc {
    position: sticky;
    top: 80px;
    height: fit-content;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 4;
    max-width: 280px;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.toc-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.toc-nav {
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.toc-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.toc-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}



/* Related Articles */
.related-articles {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #f1f5f9;
}

.related-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-toc {
        position: relative;
        top: auto;
        margin-bottom: 2rem;
        border-radius: 16px;
        padding: 1.5rem;
    }

    .article-hero {
        height: 60vh;
        min-height: 500px;
    }

    .article-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 1.5rem;
    }

    .article-hero {
        height: 50vh;
        min-height: 400px;
        margin-bottom: 3rem;
    }

    .article-hero-content {
        padding-bottom: 3rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem;
        border-radius: 1rem;
    }

    .related-title {
        font-size: 1.5rem;
    }

    /* Мобильная версия TOC */
    .article-toc {
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
        border-radius: 12px;
        padding: 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        max-width: none;
    }

    .toc-header {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .toc-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .article-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .article-hero {
        height: 40vh;
        min-height: 350px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Article Content Styles */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    border-radius: 1.5rem;
    padding: 3rem;
    padding-top: unset;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.5rem;
    scroll-margin-top: 2rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content figure.article-image {
    margin: 2.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.article-content figure.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content figure.article-image figcaption {
    padding: 1rem 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.article-content .feature-box,
.article-content .info-box,
.article-content .conclusion-box {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.article-content .feature-box {
    background: linear-gradient(to right bottom, #f8fafc, #f1f5f9);
}

.article-content .info-box {
    background: linear-gradient(to right bottom, #f0f9ff, #e0f2fe);
    border-color: #bae6fd;
}

.article-content .conclusion-box {
    background: linear-gradient(to right bottom, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
}

.article-content .code-block {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #1e293b;
}

.article-content .code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.article-content .code-block code {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.article-content .code-block .code-caption {
    padding: 0.75rem 1.5rem;
    background: #334155;
    color: #94a3b8;
    font-size: 0.875rem;
    border-top: 1px solid #475569;
}

.article-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-content .feature-item {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.article-content .feature-item h4 {
    margin-top: 0;
    color: #111827;
}

.article-content .feature-item p {
    margin-bottom: 0;
    font-size: 1rem;
    color: #4b5563;
}

.article-content .author-note {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(to right bottom, #fffbeb, #fef3c7);
    border-radius: 1rem;
    border: 1px solid #fde68a;
}

.article-content .author-note p {
    margin-bottom: 0;
    font-style: italic;
    color: #92400e;
}

/* Creative Article Banner */
.creative-article-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-bottom: 3rem;
    overflow: hidden;
}

html.dark .creative-article-banner {
    background: var(--color-bg-main);
}

.banner-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.banner-header .banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
}

.banner-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.banner-breadcrumb a:hover {
    color: #0f172a;
}

.banner-breadcrumb span {
    margin: 0 0.5rem;
    color: #94a3b8;
}

.banner-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.bookmarked {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.banner-main {
    padding: 4rem 0 3rem;
}

.banner-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.banner-content {
    max-width: 100%;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-tag {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publish-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.article-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.author-role {
    font-size: 0.875rem;
    color: #64748b;
}

.reading-info {
    display: flex;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.info-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.tag-link {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tag-link:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    background: #f0f9ff;
}

.banner-image-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
    background: white;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Elegant Notification */
.banner-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(147, 51, 234, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.banner-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.action-btn.bookmarked {
    background-color: #9333ea !important;
    border-color: #9333ea !important;
    color: white !important;
}

.action-btn.share-btn {
    background-color: #9333ea;
    border-color: #9333ea;
    color: white;
}

.action-btn.share-btn:hover svg {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .banner-image-section {
        order: -1;
    }

    .image-container {
        max-width: 400px;
        height: 300px;
    }

    .article-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .banner-container {
        padding: 0 1.5rem;
    }

    .banner-main {
        padding: 3rem 0 2rem;
    }

    .banner-content-grid {
        gap: 2rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .banner-header .banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .banner-actions {
        align-self: flex-end;
    }

    .article-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reading-info {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .banner-container {
        padding: 0 1rem;
    }

    .banner-main {
        padding: 2rem 0 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-excerpt {
        font-size: 0.9375rem;
    }

    .image-container {
        max-width: 320px;
        height: 240px;
        transform: rotate(0deg);
    }

    .action-btn {
        width: 38px;
        height: 38px;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Dock Header */
.dock-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.dock-header.visible {
    transform: translateY(0);
}

.dock-container {
    background: var(--color-bg-dock);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

.dock-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dock-title {
    flex: 1;
    min-width: 0; /* Для корректной работы text-overflow */
}

.dock-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.dock-article-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.dock-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dock-progress {
    width: 100px;
    height: 2px;
    background: #f3e8ff;
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0;
    transition: width 0.2s ease;
}

.dock-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.dock-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dock-btn svg {
    width: 18px;
    height: 18px;
}

.dock-btn.bookmarked {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .dock-content {
        padding: 0.75rem 1rem;
    }

    .dock-article-title {
        max-width: 300px;
    }

    .dock-progress {
        width: 60px;
    }
}

@media (max-width: 640px) {
    .dock-article-title {
        max-width: 200px;
    }

    .dock-progress {
        display: none;
    }
}

/* Header Dock */
.header-dock {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 200; /* Увеличиваем z-index чтобы быть поверх TOC */
    width: 90%;
    max-width: 900px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.header-dock.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.dock-wrapper {
    background: var(--color-bg-dock);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    padding: 0 25px;
    box-shadow: var(--shadow-lg);
}

.dock-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dock-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
}

.dock-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.dock-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.dock-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dock-link:hover {
    color: var(--color-primary);
}

.dock-more-dropdown {
    position: relative;
    display: inline-block;
}

.dock-more-btn {
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 18px 8px;
}

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

.dock-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.dock-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dock-dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dock-dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 20px;
    border: transparent;
}

.dock-dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-tertiary);
}

.dock-more-dropdown.active .dock-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dock-dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dock-dropdown-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dock-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dock-icon-btn,
.dock-search-btn,
.dock-theme-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    outline: none;
}

.dock-icon-btn:focus,
.dock-search-btn:focus,
.dock-theme-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1);
}

.dock-icon-btn:hover,
.dock-search-btn:hover,
.dock-theme-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dock-icon-btn svg,
.dock-search-btn svg,
.dock-theme-btn svg {
    width: 18px;
    height: 18px;
}

.dock-icon-btn .onix-logo svg {
    width: 35px;
    height: 35px;
}

/* Dark mode styles */
.dark body {
    color: var(--color-text-primary);
}

/* Dark mode для Table of Contents */
.dark .article-toc {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

.dark .toc-header {
    border-bottom-color: var(--color-border);
    color: var(--color-text-primary);
}

.dark .toc-link {
    color: var(--color-text-secondary);
}

.dark .toc-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.dark .toc-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}



.dark .header-dock .dock-wrapper {
    background: var(--color-bg-dock);
    border-color: var(--color-border-light);
}

.dark .dock-logo {
    color: var(--color-text-primary);
}

.dark .dock-link {
    color: var(--color-text-secondary);
}

.dark .dock-link:hover {
    color: var(--color-primary);
}

.dark .dock-more-btn {
    color: var(--color-text-secondary);
}

.dark .dock-more-btn:hover {
    color: var(--color-primary);
}

.dark .dock-dropdown-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
}

.dark .dock-dropdown-link {
    color: var(--color-text-secondary);
}

.dark .dock-dropdown-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dark .dock-icon-btn,
.dark .dock-search-btn,
.dark .dock-theme-btn {
    color: var(--color-text-secondary);
}

.dark .dock-icon-btn:hover,
.dark .dock-search-btn:hover,
.dark .dock-theme-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dark .dock-dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
}

.dark .dock-dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-tertiary);
}

/* Transition styles */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

:root {
    /* Основные цвета */
    --color-primary: #9333ea;
    --color-primary-hover: #7e22ce;
    --color-primary-light: rgba(147, 51, 234, 0.1);
    
    /* Фоны */
    --color-bg-main: #f5f7fa;
    --color-bg-secondary: #ffffff;
    --color-bg-dock: rgba(255, 255, 255, 0.8);
    
    /* Границы */
    --color-border: #e2e8f0;
    --color-border-light: rgba(226, 232, 240, 0.8);
    
    /* Текст */
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-tertiary: #94a3b8;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 8px 32px -8px rgb(0 0 0 / 0.12);
}

/* Темная тема */
.dark {
    /* Основные цвета - оставляем как есть */
    --color-primary: #9333ea;
    --color-primary-hover: #7e22ce;
    --color-primary-light: rgba(147, 51, 234, 0.1);
    
    /* Фоны */
    --color-bg-main: #111827;
    --color-bg-secondary: #1f2937;
    --color-bg-dock: rgba(17, 24, 39, 0.8);
    
    /* Границы */
    --color-border: #374151;
    --color-border-light: rgba(55, 65, 81, 0.8);
    
    /* Текст */
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-tertiary: #64748b;
    
    /* Тени - делаем темнее */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 8px 32px -8px rgb(0 0 0 / 0.5);
}

/* Общие стили */
body {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
}

/* Static Pages */
.static-content {
    padding: 40px 0;
}

.static-content h1 {
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.static-content h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #9333ea;
}

.static-content section {
    margin-bottom: 30px;
}

.static-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.static-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #9333ea;
}

.static-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.static-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.static-content li {
    margin-bottom: 5px;
}

.last-updated {
    font-style: italic;
    margin-bottom: 30px;
}

/* Table of Contents */
.table-of-contents {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.table-of-contents h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #9333ea;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

.toc-list li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.toc-list a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: #9333ea;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #9333ea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #7e22ce;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Section anchors */
.static-content section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

.static-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.static-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #9333ea;
}

.static-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.static-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.static-content li {
    margin-bottom: 5px;
}

.last-updated {
    font-style: italic;
    margin-bottom: 30px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toc-list a {
        color: #e5e7eb;
    }
    
    .toc-list a:hover {
        color: #9333ea;
    }
    
    .table-of-contents {
        border-color: #374151;
    }
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 40px;
}

.form-group.required label:after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
}

.form-submit {
    text-align: right;
}

.btn-submit {
    background-color: #9333ea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #7e22ce;
    transform: translateY(-1px);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.form-message.success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.contact-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.contact-info h3 {
    color: #9333ea;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #4b5563;
}

.contact-info a {
    color: #9333ea;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #7e22ce;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .contact-form {
        background: #1f2937;
    }
    
    .form-group label {
        color: #e5e7eb;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #9333ea;
    }
    
    .contact-info {
        background-color: #374151;
    }
    
    .contact-info p {
        color: #e5e7eb;
    }
    
    .form-message.success {
        background-color: #064e3b;
        color: #a7f3d0;
        border-color: #047857;
    }
    
    .form-message.error {
        background-color: #7f1d1d;
        color: #fecaca;
        border-color: #b91c1c;
    }
} 

/* Contact Popup */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
}

.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 98vh;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Тонкий скроллбар */
.contact-popup-content::-webkit-scrollbar {
    width: 4px;
}

.contact-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.contact-popup-content::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 2px;
}

.contact-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.5);
}

.contact-popup h2 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #9333ea;
}

.contact-popup .form-group {
    margin-bottom: 0.75rem;
}

.contact-popup label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
    font-size: 0.9rem;
}

.contact-popup input[type="text"],
.contact-popup input[type="email"],
.contact-popup input[type="url"],
.contact-popup select,
.contact-popup textarea {
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    transition: all 0.2s;
    font-size: 0.9rem;
    height: 2.25rem;
}

.contact-popup textarea {
    min-height: 80px;
    height: auto;
}

.contact-popup small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.contact-popup .btn-submit {
    background-color: #9333ea;
    color: white;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 2.25rem;
    font-size: 0.9rem;
}

.contact-popup .contact-info {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
}

.contact-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
}

.contact-popup-close:hover {
    color: #9333ea;
}

.contact-popup-close svg {
    width: 24px;
    height: 24px;
}

.contact-popup .form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.contact-popup .form-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #059669;
}

.contact-popup .form-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

.contact-popup .contact-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-popup .contact-info a {
    color: #9333ea;
    text-decoration: none;
}

.contact-popup .contact-info a:hover {
    text-decoration: underline;
}

/* Make the footer contact button look like a link */
.footer-link.contact-popup-trigger {
    color: #64748b;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.footer-link.contact-popup-trigger svg {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}

.footer-link.contact-popup-trigger:hover {
    color: #9333ea;
}

.footer-link.contact-popup-trigger:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.dock-btn.copy-btn svg,
.action-btn.copy-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: auto;
}

.dock-btn.copy-btn,
.action-btn.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для переключателя режимов отображения */
.view-mode-switcher {
    display: flex;
    gap: 0.5rem;
}

.view-mode-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-mode-btn:hover {
    color: #1e293b;
    border-color: #cbd5e1;
}

.view-mode-btn.active {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

.view-mode-btn svg {
    width: 20px;
    height: 20px;
}

/* Стили для разных режимов отображения */
/* 1. Режим сетки (по умолчанию) */
.articles-container.view-grid .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* 2. Режим списка */
.articles-container.view-list .articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.articles-container.view-list .featured-article {
    display: flex;
    max-width: none;
    column-gap: 50px;
}

.articles-container.view-list .featured-article a {
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    gap: 1.5rem;
}

.articles-container.view-list .featured-image {
    width: 280px;
    min-width: 280px;
    height: 180px;
    margin-bottom: 0;
}

.articles-container.view-list .featured-content {
    flex: 1;
    padding-top: 0.5rem;
}

.articles-container.view-list .featured-title {
    font-size: 1.25rem;
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
}

.articles-container.view-list .featured-excerpt {
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
}

/* 3. Компактный режим */
.articles-container.view-compact .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.articles-container.view-compact .featured-article {
    max-width: none;
}

.articles-container.view-compact .featured-image {
    height: 120px;
    margin-bottom: 0.5rem;
}

.articles-container.view-compact .featured-meta {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    column-gap: 8px;
}

.articles-container.view-compact .featured-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 2;
}

.articles-container.view-compact .featured-excerpt {
    display: none;
}

.articles-container.view-compact .featured-tags {
    display: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .articles-container.view-list .featured-article a {
        flex-direction: column;
    }
    
    .articles-container.view-list .featured-image {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
}

/* Geotag Styles */
.geotag-type-badge {
    display: inline-block;
    background-color: #9333ea;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.geotag-parent-info {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.geotag-parent-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geotag-parent-icon svg {
    width: 1rem;
    height: 1rem;
    color: #6c757d;
}

.geotag-parent-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.geotag-parent-link {
    color: #9333ea;
    font-weight: 600;
    margin-left: 0.25rem;
}

.geotag-children {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.geotag-children-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.geotag-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.geotag-child-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.geotag-child-item:hover {
    border-color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.geotag-child-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.geotag-child-count {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Geotags Index Page */
.geotags-header {
    margin-bottom: 3rem;
}

.geotags-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.geotags-breadcrumbs a {
    color: #64748b;
    transition: color 0.2s;
}

.geotags-breadcrumbs a:hover {
    color: #9333ea;
}

.geotags-breadcrumbs svg {
    width: 1rem;
    height: 1rem;
    stroke: #94a3b8;
}

.geotags-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.geotags-description {
    font-size: 1.125rem;
    color: #64748b;
}

.geotags-section {
    margin-bottom: 3rem;
}

.geotags-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.geotags-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.geotags-section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9333ea;
}

.geotags-section-link svg {
    width: 1rem;
    height: 1rem;
}

.geotags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.geotag-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    overflow: hidden;
}

.geotag-card:hover {
    border-color: #9333ea;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.geotag-card-content {
    flex: 1;
}

.geotag-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.geotag-card-count {
    font-size: 0.875rem;
    color: #6c757d;
}

.geotag-card-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-left: 1rem;
}

.geotag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geotag-card-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-left: 1rem;
}

.geotag-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #9333ea;
}

.geotags-popular {
    margin-bottom: 3rem;
}

.geotags-popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.geotag-popular-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.geotag-popular-item:hover {
    border-color: #9333ea;
    transform: translateY(-2px);
}

.geotag-popular-name {
    font-weight: 600;
    color: #111827;
}

.geotag-popular-count {
    font-size: 0.75rem;
    color: #6c757d;
}

.geotags-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    text-align: center;
}

.geotags-empty-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.geotags-empty-icon svg {
    width: 2rem;
    height: 2rem;
    color: #9333ea;
}

.geotags-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.geotags-empty-text {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.geotags-empty-button {
    display: inline-block;
    background-color: #9333ea;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.geotags-empty-button:hover {
    background-color: #7e22ce;
}

.featured-geotags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.featured-geotag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
    background-color: #f0f8ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s;
}

.featured-geotag svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke: #6c757d;
}

.featured-geotag:hover {
    background-color: #9333ea;
    color: white;
}

.featured-geotag:hover svg {
    stroke: white;
}

.featured-geotag-more {
    font-size: 0.75rem;
    color: #6c757d;
    background-color: #f0f8ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.article-geotags {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-geotags-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.geotag-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
    background-color: #f0f8ff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s;
}

.geotag-link svg {
    width: 1rem;
    height: 1rem;
    stroke: #6c757d;
}

.geotag-link:hover {
    background-color: #9333ea;
    color: white;
}

.geotag-link:hover svg {
    stroke: white;
}

/* Geotags in TOC */
.toc-geotags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.toc-geotags-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.toc-geotag-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #4b5563;
    transition: all 0.2s;
    font-size: 0.875rem;
    border-left: 2px solid transparent;
}

.toc-geotag-link:hover {
    background-color: #f3f4f6;
    color: #9333ea;
    border-left-color: #9333ea;
    text-decoration: none;
}

.toc-geotag-link .geotag-type {
    font-size: 0.75rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.toc-geotag-link:hover .geotag-type {
    background-color: #e9d5ff;
    color: #9333ea;
}

/* Article Footer Geotags */
.article-footer-geotags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.article-footer-geotags h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.article-geotags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.article-footer-geotag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.article-footer-geotag:hover {
    background-color: #f3e8ff;
    border-color: #d8b4fe;
    transform: translateY(-2px);
    text-decoration: none;
}

.article-footer-geotag svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #9333ea;
    flex-shrink: 0;
}

.article-footer-geotag .geotag-name {
    font-weight: 500;
    color: #111827;
}

.article-footer-geotag .geotag-type {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: auto;
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.article-footer-geotag:hover .geotag-type {
    background-color: #e9d5ff;
    color: #9333ea;
}

@media (max-width: 768px) {
    .article-geotags-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .article-footer-geotag {
        padding: 0.5rem 0.75rem;
    }
}