/* ===========================
   СПЕЦИАЛ��НЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   (ТОЛЬКО ДЛЯ index.html)
=========================== */

/* Переделываем main в hero-макет */
main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 60px !important;
    gap: 60px;
}

/* Левая колонка - контент блок */
.hero-content {
    flex: 0 0 45%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h2 {
    font-size: 1.1em !important;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-content-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-content p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Права колонка - заголовок и описание */
.hero-text {
    flex: 0 0 45%;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Раздел статей */
.articles-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 60px !important;
}

.articles-section h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.article-card:hover::before {
    left: 100%;
}

.article-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.article-card:hover h3 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.article-meta {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.article-excerpt {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-link:hover {
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Адаптивный дизайн */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
        padding: 60px 40px !important;
        gap: 60px;
    }

    .hero-content {
        flex: 1;
        width: 100%;
    }

    .hero-text {
        flex: 1;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    main {
        padding: 40px 20px !important;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-content {
        padding: 30px 25px;
    }

    .articles-section {
        padding: 0 20px !important;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding: 30px 15px !important;
    }

    .hero-text h1 {
        font-size: 1.5em;
    }

    .hero-text p {
        font-size: 0.95em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}