/* main.css - Дополненный файл стилей для главной страницы */

/* Основные стили */
:root {
    --bg: #19273f;
    --card: #ffffff;
    --accent: #3399ff;
    --text: #19273f;
    --light-bg: #ffffff6b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 15px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Анимированный фон */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

strong {
    font-weight: 700;
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 52px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: scale(1.05);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #2680eb;
    border-color: #2680eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #0061ff00;
    color: #0064ff;
    border-color: var(--accent);
    font-weight: 700;
    margin-left: 10px;
}

.btn-secondary:hover {
    border-color: #2680eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}




/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title-main {
    font-size: 70px;
    font-weight: 900;
    color: var(--bg);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title-sub {
    font-size: 2rem;
    font-weight: 400;
    color: #243045;
}

.hero-description {
    max-width: 800px;
    font-size: 1.25rem;
    color: #243045;
    line-height: 1.8;
    margin-bottom: 3rem;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 3rem 0;
    border-top: 2px solid #88c4ff;
    border-bottom: 2px solid #88c4ff;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
}

/* Sections Common */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #64748b;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.filter-category {
    background: var(--light-bg);
    padding: 2rem;
    transition: var(--transition);
}

.filter-category:hover {
    transform: translateY(-4px);
}

.filter-category h3 {
    color: var(--bg);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

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

.filter-list li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
}

.filter-list li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.filter-example {
    background: rgba(51, 153, 255, 0.05);
    border: 2px solid rgba(51, 153, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-top: 2rem;
}

.filter-example h3 {
    margin-bottom: 1rem;
    color: var(--bg);
}

.example-text {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-title {
    color: var(--bg);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.service-description {
    color: #475569;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.375rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.75rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.375rem;
    color: var(--accent);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

.service-link:hover {
    color: #2680eb;
}

/* Catalog Preview */
.catalog-preview {
    background: white;
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
}

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

.catalog-item {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.catalog-item-title {
    color: var(--bg);
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.catalog-item-description {
    color: #475569;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.catalog-item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #64748b;
    border: 1px solid var(--border);
}

.catalog-item-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    margin-top: auto;
}

.catalog-item-link:hover {
    color: #2680eb;
    text-decoration: underline;
}

.catalog-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.cta-note {
    margin-top: 1.5rem;
    color: #64748b;
}

.accent-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.accent-link:hover {
    color: #2680eb;
    text-decoration: underline;
}

/* Articles Preview */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 0rem 0;
}

.article-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.article-title {
    color: var(--bg);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #475569;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    margin-top: auto;
}

.article-link:hover {
    color: #2680eb;
    text-decoration: underline;
}

.articles-cta {
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

/* Community Section */
.community-section {
    background: var(--bg);
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
}

.community-section .section-title {
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.community-card-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.community-card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.community-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-top: auto;
    border: 2px solid transparent;
}

.community-card-link:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}


/* === ФАГ === */

.faq-section {
    padding: 40px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
	margin-bottom: 20px;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #0f1c3f;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    color: #1a2b5c;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #0066ff;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 17px;
    color: #3b3b3b;
    line-height: 1.5;
}





.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 50%, 
        transparent 100%
    );
    border-radius: 2px;
}

.channels-groups {
    max-width: 1200px;
}

.channels-group {
    margin-top: 1rem;
    background: #ffffff9e;
    margin-bottom: 4rem;
    position: relative;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.channels-group:last-child {
    margin-bottom: 2rem;
}

.channels-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    margin-bottom: 2rem;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
}

.channel-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(224, 231, 255, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(51, 153, 255, 0.15);
    border-color: rgba(51, 153, 255, 0.4);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-card:hover .channel-title {
    color: var(--accent);
}

.channel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
    padding-right: 40px;
}

.channel-title::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 700;
}

.channel-card:hover .channel-title::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

.channel-description {
    color: var(--text);
    opacity: 0.85;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    flex-grow: 1;
    position: relative;
}

.channel-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(224, 231, 255, 0.6);
}

.channel-subs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    font-weight: 500;
    background: rgba(51, 153, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.channel-quality {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 153, 255, 0.25);
}

.btn-outline:hover::before {
    transform: translateX(0);
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}


.channel-meta {
    transition: all 0.5s ease;
}


.views-icon {
    width: 12px;
    height: 12px;
}
.article-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media (max-width: 768px) {

    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 0rem 0 0rem;
        margin-bottom: 2rem;
    }
    
    .hero-title-main {
        margin-top: 1rem;
        font-size: 2.4rem;
    }
    
    .hero-title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.90rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-stats {
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }
    
    .stat-item {
        width: 100%;
        background: #ffffffc7;
        padding: 10px 0px;
        border-radius: 15px;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .community-grid {
        margin-top: 1rem; 
    }
    .community-card-description {
        font-size: 1rem;
    }
    
    .filter-category {
        padding: 1rem;
    }
    .filter-section {
        background: #ffffffc2;
    }
    
    
    .filter-section,
    .catalog-preview,
    .community-section {
        padding: 1rem;
    }
    
    .services-grid,
    .catalog-grid,
    .articles-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .service-card,
    .catalog-item,
    .article-card,
    .community-card {
        padding: 1.5rem;
    }

    .articles-cta {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .cta-note {
        margin-top: 0px;
    }

    .faq-section {
        padding: 20px 0px;
    }

    .faq-item {
        padding: 15px 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-top: 10px;
        text-align: justify;
    }

    .filter-category h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .filter-list li {
        padding: 0.2rem 0 0px 15px;
    }
    .filter-list li::before {
        top: -15%;
    }

    .filter-example h3 {
        font-size: 1.2rem;
    }
    .example-text {
        font-size: 0.9rem;
        text-align: justify;
    }


    .section-title::after {
        height: 2px;
    }

    .service-title {
        font-size: 1.3rem;
    }
    .service-description {
        font-size: 1rem;
        text-align: justify;
    }

    
    .channels-groups {
        padding: 0px;
    }

    .channels-group {
        padding: 20px 0px;
    }
    
    .channels-group::before {
        display: none;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
        gap: 1.5rem;
    }
    
    .channels-group-title {
        padding-left: 0;
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .channels-group-title::before {
        position: static;
        margin-right: 10px;
    }
    
    .channel-card {
        padding: 1.5rem;
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .hero-section,
    .filter-section,
    .services-section,
    .catalog-preview,
    .articles-preview,
    .community-section,
    .faq-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .btn,
    .community-card-link {
        display: none;
    }
}

