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

body {
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    background-color: #ffffff;
    color: #000000;
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 1);
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-container {
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 35px;
}

.header-left {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px; 
    z-index: 1001;
}

.ave-link {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.ave-link:hover {
    color: #888888;
}

.logo {
    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-socials {
    display: flex;
    gap: 15px;
}
.header-socials a {
    color: #000000;
    transition: color 0.3s ease, transform 0.3s ease;
}
.header-socials a:hover {
    color: #666666;
    transform: scale(1.1);
}

.yandex-map {
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    filter: grayscale(100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: -2;
}

.mobile-video {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.event-date {
    font-size: 140px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 5px;
    line-height: 1;
}

.upcoming-event {
    padding: 100px 0;
    background-color: #ffffff;
}

.upcoming-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    gap: 40px;
    align-items: center;
}

.event-info h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 25px;
}

.event-info p {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

.btn-ticket {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
    padding: 20px 40px;
    font-size: 18px;
    white-space: nowrap; 
    border-radius: 100px; 
}

.btn-ticket:hover {
    background-color: #000000fd;
    color: #000000;
}

.yandex-map {
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
    
    .event-date {
        font-size: 90px;
    }

    .upcoming-event .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .event-widgets {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .map-block {
        width: 100%;
    }
}

.socials {
    padding: 60px 0;
    background-color: #f9f9f9; 
}

.socials-container {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 40px;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}

.social-icon {
    color: #000000;
    display: flex; 
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #666666; 
    transform: scale(1.15); 
}

.latest-past-events {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.past-event-item {
    position: relative;
    width: 100%;
    height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
}

.past-event-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.6s ease;
}

.past-event-item:hover .past-event-bg {
    transform: scale(1.05);
}

.past-event-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.past-event-content {
    text-align: center;
    color: #ffffff;
    z-index: 1;
}

.past-event-content h3 {
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 900px) {
    .latest-past-events {
        flex-direction: column;
        height: auto;
    }
    .past-event-item {
        height: 50vh;
    }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.all-events-nav {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

@media (max-width: 900px) {
    .socials-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .past-event-content h3 {
        font-size: 40px;
    }
}

.event-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.event-page-title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.event-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.lightbox {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #aaaaaa;
}
.archive-action {
    text-align: center;
}

.all-events-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.page-title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    color: #aaaaaa;
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: #000000;
}

.tab-btn.active {
    color: #000000;
    font-weight: 400;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        top: 40px; 
    }
    to {
        opacity: 1;
        top: 0;    
    }
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.event-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    opacity: 0; 
    animation: fadeInUp 0.6s ease forwards; 
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.event-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

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

.event-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.event-card:hover .event-card-overlay {
    background-color: rgba(0, 0, 0, 0.2); 
}

.event-card h3 {
    position: relative; 
    color: rgba(255, 255, 255, 0.7);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 2px;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .event-card {
        height: 250px;
    }
    .event-card h3 {
        font-size: 32px;
    }

    .header-right {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 6px;
    }
}

    .header-container {
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 35px;
}

.header-left {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header-link {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 3px;
}

.header-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.header-link:hover::after {
    width: 100%;
}

.about-page {
    padding-top: 150px;
    padding-bottom: 100px;
}

.philosophy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.philosophy-text h2 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.philosophy-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
}

.philosophy-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 25px;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.team-card:hover img {
    transform: translateY(-5px);
}

.team-info h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.team-info h4 {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-info p {
    font-size: 16px;
    font-style: italic;
    color: #555555;
    padding: 0 15px;
}

@media (max-width: 900px) {
    .philosophy-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .philosophy-image {
        height: 350px;
    }
    .team-grid {
        grid-template-columns: 1fr;
}
}