@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --success: #10B981;
    --dark: #1E293B;
    --dark-light: #334155;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.1);
    --premium: #F59E0B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
}

/* HEADER */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow);
}



.header-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}


/* ========================================= */
/* ИСПРАВЛЕНИЯ ДЛЯ ЛОГОТИПА */
/* ========================================= */

/* ДОБАВЬ ЭТО В СУЩЕСТВУЮЩИЙ .logo-icon (НЕ ЗАМЕНЯЙ, ДОБАВЬ) */
.logo-icon {
    overflow: visible !important; /* Чтобы пламя не обрезалось */
}

/* ========================================= */
/* СТИЛИЗАЦИЯ ТЕКСТА "TURBINIST.RU" - DESKTOP */
/* ========================================= */

/* Стили для Desktop (>768px) */
@media (min-width: 769px) {
    .logo span {
        font-weight: 700;
        font-size: 1.5rem;
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
        letter-spacing: -0.02em;
    }
    
    /* Hover эффект для текста */
    .logo:hover span {
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0;
    }
    
    /* Fallback для браузеров без поддержки gradient text */
    @supports not (background-clip: text) {
        .logo span {
            color: #3b82f6;
            -webkit-text-fill-color: initial;
        }
    }
}

/* ========================================= */
/* ТЕМНАЯ ТЕМА ДЛЯ ТЕКСТА */
/* ========================================= */

@media (min-width: 769px) {
    [data-theme="dark"] .logo span {
        background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    [data-theme="dark"] .logo:hover span {
        background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    @supports not (background-clip: text) {
        [data-theme="dark"] .logo span {
            color: #60a5fa;
            -webkit-text-fill-color: initial;
        }
    }
}

/* ========================================= */
/* АНИМАЦИИ ЛОГОТИПА (ОБНОВЛЁННЫЕ) */
/* ========================================= */

/* SVG логотип */
.turbinist-logo {
    width: 100%;
    height: 100%;
    display: block;
    color: #3b82f6; /* Синеватый цвет */
}
/* ========================================= */
/* АНИМАЦИЯ ПЛАМЕНИ - ПУЛЬСАЦИЯ */
/* ========================================= */

#flame {
    transform-origin: center;
    animation: flamePulse 2.5s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================= */
/* БЕГУЩИЙ СВЕТ ПО ЛОПАСТЯМ */
/* ========================================= */

.blade {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Поочередное свечение 15 лопастей */
.blade-1  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 0s; }
.blade-2  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 0.4s; }
.blade-3  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 0.8s; }
.blade-4  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 1.2s; }
.blade-5  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 1.6s; }
.blade-6  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 2s; }
.blade-7  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 2.4s; }
.blade-8  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 2.8s; }
.blade-9  { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 3.2s; }
.blade-10 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 3.6s; }
.blade-11 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 4s; }
.blade-12 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 4.4s; }
.blade-13 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 4.8s; }
.blade-14 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 5.2s; }
.blade-15 { animation: bladeGlow 6s ease-in-out infinite; animation-delay: 5.6s; }

@keyframes bladeGlow {
    0%, 90%, 100% {
        opacity: 0.6;
    }
    5% {
        opacity: 1;
        filter: drop-shadow(0 0 3px currentColor);
    }
}

/* ========================================= */
/* HOVER ЭФФЕКТЫ */
/* ========================================= */

.logo:hover #flame {
    animation: flamePulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px currentColor);
}

.logo:hover .blade {
    animation-duration: 3s;
}

.logo:hover .turbinist-logo {
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
}

/* ========================================= */
/* АДАПТИВ - ТЕПЕРЬ АНИМАЦИЯ ВЕЗДЕ */
/* ========================================= */

/* УБРАЛИ ОТКЛЮЧЕНИЕ НА МОБИЛЬНЫХ - АНИМАЦИЯ РАБОТАЕТ ВЕЗДЕ! */

/* ========================================= */
/* ACCESSIBILITY - ОТКЛЮЧЕНИЕ АНИМАЦИИ */
/* ========================================= */

@media (prefers-reduced-motion: reduce) {
    #flame,
    .blade {
        animation: none !important;
    }
    
    .blade {
        opacity: 0.8;
    }
}

/* ========================================= */
/* ТЕМНАЯ ТЕМА */
/* ========================================= */

[data-theme="dark"] .turbinist-logo {
    color: #ffffff;
}

[data-theme="dark"] .logo:hover .turbinist-logo {
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5));
}

/* ========================================= */
/* ПРОИЗВОДИТЕЛЬНОСТЬ */
/* ========================================= */

#flame,
.blade {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    #flame,
    .blade {
        will-change: auto;
    }
}




/* ПОИСКОВАЯ ФОРМА */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 4.5rem 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    outline: none !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 8px 24px var(--shadow);
}

.search-bottonturb {
    position: absolute;
    right: 0rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.search-bottonturb:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.search-bottonturb svg {
    stroke: white;
    stroke-width: 2.5;
}

.search-advanced {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-advanced:hover {
    background: var(--primary);
}

.search-advanced:hover svg {
    stroke: white;
}

.search-advanced svg {
    stroke: var(--text-light);
    stroke-width: 2;
}

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

.notification-bottonturb {
    position: relative;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.notification-bottonturb:hover {
    background: var(--bg-light);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu:hover {
    background: var(--border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-balance {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}


/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bottonturb {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.turbo-bottonturb-primary {
    text-decoration: none;
    color: white;
}

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

.bottonturb-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bottonturb-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.bottonturb-outline:hover {
    background: white;
    color: var(--dark);
}

.bottonturb-success {
    background: var(--success);
    color: white;
}

.bottonturb-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* MAIN CONTENT */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

/* CATEGORIES */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.category-name {
    color: var(--text-light);
    font-weight: 500;
}

/* NEWS CARDS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card,
.news-card-category {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin-bottom: 10px;
}

.news-card-category {
    border: 1px solid #00000014;
}

.news-card:hover,

.news-card-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--primary);
}

.news-card.premium {
    position: relative;
}

.news-card.premium::before {
    content: "💎 ЭКСКЛЮЗИВ";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--premium);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.news-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.news-price {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telegram-widget {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
    text-align: center;
}

.telegram-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.telegram-stats {
    margin: 1rem 0;
    opacity: 0.9;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.clouds_xsmall, .tags_more {
    display: none;
}

.tag-cloud span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-cloud span a {
    color: var(--text);
    text-decoration: none;
}

.tag-cloud span a:hover {
    color: white !important;
}

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

.tag {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

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

.trending-list {
    list-style: none;
}

.trending-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

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

.trending-views {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* EXCLUSIVE CONTENT MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-subtitle {
    color: var(--text-light);
}

.content-features {
    list-style: none;
    margin: 1.5rem 0;
}

.content-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.content-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--success);
    font-weight: 700;
}

.payment-options {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option input {
    width: 20px;
    height: 20px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.payment-badge {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
		padding: 0 0.3rem;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .search-box {
        order: 3;
       max-width: 500px;
    }

    .nav-container {
        overflow-x: auto;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* LOADING ANIMATION */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.show {
    display: flex;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

/* ========================================= */
/* ФОРМА ДОБАВЛЕНИЯ КОММЕНТАРИЯ */
/* ========================================= */

.add-comment-box {
    background: var(--bg-white);
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
    border: 2px solid var(--primary);
    overflow: hidden;
    transition: all 0.3s;
}

.add-comment-box:hover {
    box-shadow: 0 8px 24px var(--shadow);
}

/* Header с кнопкой развернуть */
.add-comment-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.add-comment-header:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.add-comment-toggle {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.add-comment-toggle svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

/* Intro блок */
.add-comment-intro {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.add-comment-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem 0;
}

.add-comment-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Контейнер формы */
.add-comment-form {
    padding: 2rem 2.5rem;
   
}

.add-comment-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Поля формы */
.add-comment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.add-comment-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-comment-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    display: block;
}

.add-comment-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.2s;
    font-family: inherit;
}

.add-comment-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.add-comment-input::placeholder {
    color: var(--text-light);
}

/* Редактор */
.add-comment-editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-comment-editor {
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    transition: all 0.2s;
}

.add-comment-editor:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Кнопка прикрепления файлов */
.add-comment-attach {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-comment-attach-btn {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
}

.add-comment-attach-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    border-style: solid;
}

.add-comment-attach-btn svg {
    flex-shrink: 0;
}

/* Чекбокс подписки */
.add-comment-checkbox-wrapper {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.add-comment-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
}

.add-comment-checkbox input[type="checkbox"] {
/*    width: 18px;
    height: 18px;*/
    cursor: pointer;
	margin-right: 5px;
    accent-color: var(--primary);
}

.add-comment-checkbox-label {
    user-select: none;
}

/* reCAPTCHA */
.add-comment-recaptcha {
    margin: 0.5rem 0;
}

/* Вопрос-ответ */
.add-comment-question {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 10px;
    border: 2px solid var(--border);
}

/* Footer с капчей и кнопкой */
.add-comment-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.add-comment-captcha {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.captcha-image {
    flex-shrink: 0;
}

.captcha-image img {
    border-radius: 8px;
    border: 2px solid var(--border);
    display: block;
}

.captcha-input {
    flex: 1;
    min-width: 180px;
}

/* Кнопка отправки */
.add-comment-submit-btn {
    align-self: flex-end;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.add-comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.add-comment-submit-btn svg {
    flex-shrink: 0;
}







/* ========================================= */
/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ */
/* ========================================= */

@media (max-width: 768px) {
    .add-comment-form {
        padding: 1.5rem 1.25rem;
    }

    .add-comment-intro {
        margin-bottom: 1.5rem;
    }

    .add-comment-title {
        font-size: 1.4rem;
    }

    .add-comment-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .add-comment-fields {
        gap: 1.25rem;
    }

    .add-comment-captcha {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .captcha-input {
        width: 100%;
        min-width: auto;
    }

    .add-comment-submit-btn {
        align-self: stretch;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .add-comment-attach-btn {
        align-self: stretch;
        justify-content: center;
    }

    .add-comment-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* ========================================= */
/* DARK THEME */
/* ========================================= */

[data-theme="dark"] .add-comment-box {
    background: var(--dark-light);
    border-color: var(--primary);
}

[data-theme="dark"] .add-comment-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

[data-theme="dark"] .add-comment-input,
[data-theme="dark"] .add-comment-editor {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .add-comment-input:focus,
[data-theme="dark"] .add-comment-editor:focus-within {
    background: var(--dark-light);
    border-color: var(--primary);
}

[data-theme="dark"] .add-comment-question {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .add-comment-checkbox-wrapper {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .add-comment-attach-btn {
    background: #3b82f6;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .add-comment-attach-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}


/* Dark theme для навигации */
[data-theme="dark"] .nav {
    background: var(--dark-light);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-container {
    background: transparent;
}

[data-theme="dark"] .nav a {
    color: var(--text);
}

[data-theme="dark"] .nav a:hover {
    color: var(--primary);
}


/* Dark theme для footer */
[data-theme="dark"] .footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
	
}

[data-theme="dark"] .footer-content,
[data-theme="dark"] .footer-section {
    background: transparent;
    color: var(--text);
}

[data-theme="dark"] .footer a {
    color: var(--text-light);
}

[data-theme="dark"] .footer a:hover {
    color: var(--primary);
}

[data-theme="dark"] .footer h3,
[data-theme="dark"] .footer h4 {
    color: var(--text);
}




/* Dark theme */
[data-theme="dark"] .hero {
    background: var(--dark-light);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	       box-shadow: 0 2px 8px var(--shadow);
}

[data-theme="dark"] .hero-content {
    color: var(--text);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2 {
    color: var(--text);
}


/* ========================================= */
/* VOTE (ГОЛОСОВАНИЕ) */
/* ========================================= */

/* Контейнер голосования */

/* Заголовок опроса */
#votes .title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

/* Ссылка "Другие опросы" */
.vote_more {
    margin-bottom: 1.5rem;
}

.vote_more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.vote_more a:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Список вариантов */
.vote_list {
    margin-bottom: 1.5rem;
}

/* Стилизация radio/checkbox */
.vote_list label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--text);
}

.vote_list label:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary);
}

.vote_list label:last-child {
    margin-bottom: 5px;
}

.vote_list input[type="radio"],
.vote_list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Результаты голосования (прогресс-бары) */
.vote_list .vote-result {
    margin-bottom: 1rem;
}

.vote_list .vote-result:last-child {
    margin-bottom: 0;
}

.vote-result-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.vote-result-name {
    font-weight: 600;
    color: var(--dark);
}

.vote-result-percent {
    font-weight: 700;
    color: var(--primary);
}

.vote-result-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.vote-result-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Счётчик проголосовавших */
.vote_votes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.vote_votes::before {
    content: '👥';
    font-size: 1.2rem;
}

/* Кнопки */
/* Обёртка формы */
#votes button,
#votes .btn,
#votes .btn-white,
#votes .btn-border {
  
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    min-height: 36px; /* ФИКСИРОВАННАЯ ВЫСОТА */
    line-height: 1.2;
    text-align: center;
}

#votes .btn-white {
    background: var(--primary);
    color: white;
    border: none;
    margin-right: 0.5rem;
}

#votes .btn-white:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

#votes .btn-border {
    background: transparent;
    border: 1px solid var(--primary) !important;
    color: var(--primary);
    margin: 0;
}

#votes .btn-border:hover {
    background: var(--primary);
    color: white;
}

/* Убираем жирность */
#votes button b {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    #votes button,
    #votes .btn,
    #votes .btn-white,
    #votes .btn-border {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    #votes .btn-border {
        margin-bottom: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #votes {
        padding: 1.25rem;
        border-radius: 12px;
    }
	
	
	
