﻿.events {
    position: relative;
    padding: 50px 0 150px 0;
    background: var(--bg-section-dark);
    overflow: hidden;
}

.events-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-carousel {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #3d997050;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    transition: background var(--transition) ease, border-color var(--transition) ease;
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--color-green-30);
    border-color: var(--color-green);
}

.carousel-btn img {
    width: 20px;
    height: 20px;
}

.carousel-btn-prev {
    left: -26px;
}

.carousel-btn-next img {
    transform: rotate(180deg);
}

.carousel-btn-next {
    right: -26px;
}

.carousel-viewport {
    overflow: visible;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform var(--transition) ease;
    justify-content: flex-start;
}

.events-carousel--single .carousel-track {
    justify-content: center;
}

.carousel-markers {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-green);
    background: transparent;
    cursor: pointer;
    transition: background var(--transition) ease;
}

.carousel-marker.active {
    border-radius: 20px;
    background: var(--color-green);
    border-color: var(--color-green);
}

/* Empty state */
.events-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: rgba(61, 153, 112, 0.05);
    border: 1px solid rgba(61, 153, 112, 0.2);
    border-radius: 20px;
    text-align: center;
    gap: 20px;
}

.events-empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 153, 112, 0.1);
    border-radius: 50%;
    color: var(--color-green);
}

.events-empty-icon svg {
    width: 48px;
    height: 48px;
}

.events-empty-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    color: #fff;
    margin: 0;
}

.events-empty-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0;
}

.events-empty-link {
    margin-top: 10px;
    padding: 12px 24px;
    background: var(--color-green);
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    transition: background var(--transition) ease, transform var(--transition) ease;
}

.events-empty-link:hover {
    background: var(--color-green-dark);
    transform: translateY(-2px);
}

.event-item {
    background-image: linear-gradient(90deg, #03090f 0%, rgba(3, 9, 15, 0.8) 36.54%, rgba(0, 0, 0, 0) 100%),
                      url("/images/TEST-EVENT.png");
    background-size: cover;
    background-position: center;
    width: 1080px;
    flex-shrink: 0;
    height: 650px;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 20px;
    opacity: 0.4;
    filter: brightness(0.6);
    transition: opacity var(--transition) ease, filter var(--transition) ease, transform var(--transition) ease;
}

.event-item.active {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
}

.event-item-type {
    width: min-content;
    white-space: nowrap;
    border-radius: 8px;
    padding: 10px 20px;
    background: var(--color-green);
    font-weight: 600;
    font-size: 18px;
    line-height: 117%;
    color: #fff;
}

.event-item-date {
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: var(--color-green);
}

.event-item-date--time {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.event-item-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: #fff;
}

.event-item-adress {
    font-weight: 400;
    font-size: 20px;
    line-height: 160%;
    color: #fff;
}

.event-item-buttons {
    display: flex;
    gap: 20px;
}

.event-item-button-more {
    border: 1px solid var(--color-green);
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(10px);
    background: rgba(3, 9, 15, 0.6);
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    color: var(--color-green);
    transition: background var(--transition) ease, color var(--transition) ease;
}

.event-item-button-more:hover {
    background: var(--color-green-20);
}

@media (max-width: 1440px) {
    .event-item { width: 960px; height: 580px; }
}

@media (max-width: 1200px) {
    .event-item { width: 800px; height: 500px; }
    .event-item-title { font-size: 36px; }
}

@media (max-width: 1024px) {
    .event-item { width: calc(100vw - 120px); height: 460px; }
    .event-item-title { font-size: 32px; }
}

@media (max-width: 992px) {
    .event-item { width: calc(100vw - 100px); height: 420px; padding: 30px; }
    .event-item-title { font-size: 28px; }
    .event-item-adress { font-size: 16px; }
}

@media (max-width: 768px) {
    .events { padding: 40px 0 80px; }
    .events-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .event-item { width: calc(100vw - 64px); height: auto; min-height: 340px; padding: 24px; gap: 14px; }
    .event-item-title { font-size: 24px; }
    .event-item-type { font-size: 14px; padding: 6px 14px; }
    .event-item-buttons { flex-direction: column; gap: 10px; }
    .event-item-button-more { font-size: 15px; text-align: center; }
    .carousel-btn-prev { left: -16px; }
    .carousel-btn-next { right: -16px; }

    .events-empty { padding: 60px 24px; gap: 16px; }
    .events-empty-icon { width: 64px; height: 64px; }
    .events-empty-icon svg { width: 40px; height: 40px; }
    .events-empty-title { font-size: 24px; }
    .events-empty-text { font-size: 16px; }
}

@media (max-width: 480px) {
    .event-item { width: calc(100vw - 32px); padding: 20px; min-height: 300px; }
    .event-item-title { font-size: 20px; }
    .event-item-date { font-size: 14px; }
    .event-item-date--time { font-size: 13px; }

    .events-empty { padding: 40px 20px; gap: 14px; }
    .events-empty-icon { width: 56px; height: 56px; }
    .events-empty-icon svg { width: 32px; height: 32px; }
    .events-empty-title { font-size: 20px; }
    .events-empty-text { font-size: 14px; }
    .events-empty-link { padding: 10px 20px; font-size: 14px; }
}

@media (max-width: 375px) { .event-item-title { font-size: 18px; } .event-item { padding: 16px; } }
@media (max-width: 360px) { .event-item-title { font-size: 17px; } }
@media (max-width: 320px) { .event-item-title { font-size: 16px; } .event-item { min-height: 260px; } }
