/* ========================================================================= */
/*                              ГЛАВНАЯ СТРАНИЦА                             */
/* ========================================================================= */

.home__hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%), url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    text-align: center;
    overflow: hidden;
}

.home__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

.home__hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
}

.home__hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.home__hero-text {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.home__hero-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.home__hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.home__news-section {
    padding: 6rem 0;
    background: #0a0a0a;
}

.home__section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

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

.home__news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    height: 100%;
}

.home__news-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.home__news-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.home__news-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.home__news-card:hover .home__news-card-img {
    transform: scale(1.05);
}

.home__news-card-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 55px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home__news-card-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.home__news-card-date-month {
    font-size: 0.7rem;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 600;
}

.home__news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home__news-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.45rem;
}

.home__news-card-text {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8rem;
    flex: 1;
}

.home__news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home__news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 38px;
}

.home__news-card-author svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.home__news-card-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home__news-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.home__news-all-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.home__news-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.home__news-section .home__news-footer {
    text-align: center;
    margin-top: 2rem;
    border: none;
    padding: 0;
}

.home__gallery-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.home__gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.home__gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.home__gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home__gallery-slide.active {
    opacity: 1;
}

.home__gallery-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home__gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.home__gallery-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.home__gallery-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.home__gallery-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 15;
}

.home__gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.home__gallery-dot.active {
    background: var(--text-primary);
}

@media (max-width: 768px) {
    .home__hero {
        height: 80vh;
        min-height: 600px;
    }

    .home__hero-content {
        padding: 0 var(--space-xl);
    }

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

    .home__hero-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .home__hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .home__news-section {
        padding: 4rem 0;
    }

    .home__section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .home__news-card-content {
        padding: 1.25rem;
    }
    
    .home__news-card-title {
        font-size: 1.05rem;
    }
    
    .home__news-card-text {
        font-size: 0.9rem;
    }

    .home__gallery-section {
        height: 50vh;
        min-height: 400px;
    }

    .home__gallery-controls {
        padding: 0 var(--space-lg);
    }

    .home__gallery-dots {
        bottom: 1rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .home__hero {
        height: 70vh;
        min-height: 500px;
    }

    .home__hero-content {
        padding: 0 var(--space-lg);
    }

    .home__hero-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .home__hero-text {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .home__hero-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .home__news-section {
        padding: 3rem 0;
    }

    .home__section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .home__news-card-content {
        padding: 1.25rem;
    }
    
    .home__news-card-title {
        font-size: 1.05rem;
    }
    
    .home__news-card-text {
        font-size: 0.9rem;
    }

    .home__news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .home__news-card-author {
        width: 100%;
        justify-content: center;
    }

    .home__news-card-btn {
        width: 100%;
        text-align: center;
    }

    .home__gallery-section {
        height: 40vh;
        min-height: 300px;
    }

    .home__gallery-controls {
        padding: 0 var(--space-md);
    }

    .home__gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .home__gallery-dots {
        bottom: 0.75rem;
        gap: 0.5rem;
    }

    .home__gallery-dot {
        width: 10px;
        height: 10px;
    }
}
