.events {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.events-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
}

.events-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.event-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

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

.event-card-content {
    padding: 25px;
    color: #FFFFFF;
}

.event-card-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: normal;
    position: relative;
    padding-bottom: 10px;
}

.event-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.event-card-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.event-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: gap 0.3s ease;
}

.event-card-link:hover {
    gap: 15px;
}

.event-card-link svg {
    width: 20px;
    height: 20px;
}

.event-card-link svg path {
    stroke: #FFFFFF;
}

.event-download-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.event-download-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    text-decoration: none;
}

.event-download-btn:hover {
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow svg path {
    stroke: #FFFFFF;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background-color: #FFFFFF;
    transform: scale(1.2);
}

                                    /* адаптивность*/

@media (max-width: 1024px) and (min-width: 769px) {
    .event-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .event-card-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .events-container {
        padding: 20px;
    }
    
    .event-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .event-card-image {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .event-card-image {
        height: 340px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .event-card-content {
        padding: 20px;
    }
    
    .event-card-image {
        height: 300px;
    }
    
    .event-card-title {
        font-size: 20px;
    }
    
    .event-card-description {
        font-size: 14px;
    }
}

@media (max-width: 414px) {
    .event-card-image {
        height: 280px;
    }
}

@media (max-width: 375px) {
    .event-card-image {
        height: 260px;
    }
}

@media (max-width: 360px) {
    .event-card-image {
        height: 240px;
    }
}