.right/* =========================
   RESET / BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #000;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* =========================
   GLOBAL LAYOUT
========================= */

.layout {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    flex: 1;
    position: relative;
}

/* =========================
   SIDEBAR MENU
========================= */

.right {
    position: sticky;
    top: 40px;  /* вместо 0 */
    height: 100vh;
    align-self: flex-start;
}

.menu {
    list-style: none;
    width: 100%;
    text-align: right; /* ключевой момент */
}

.menu li {
    margin: 15px 0;
}

.menu a {
    display: block;
    width: 160px;          /* фиксированная ширина — все линии одинаковые */
    text-align: right;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

/* hover */
.menu a:hover {
    opacity: 0.6;
}

/* active */
.menu a.active {
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

/* =========================
   HOME SECTION
========================= */

.home {
    position: relative;
    min-height: 100vh;
    background: url('/assets/img/bg.jpg') 10% center / cover no-repeat;
}

/* затемнение */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* контейнер */
.home-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px;
}

/* =========================
   LEFT SIDE (HOME)
========================= */

.left {
    max-width: 600px;
}

.left h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.socials {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
}

.socials a {
    color: #fff;
    font-size: 22px;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.socials a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.quote {
    font-size: 15px;
    line-height: 1.8;
    max-width: 340px;
    color: rgba(255,255,255,0.85);
    font-style: italic;
}

/* =========================
   DESKTOP (>=768px)
========================= */

@media (min-width: 768px) {

    .home-content {
        padding: 60px;
    }

    .left h1 {
        font-size: 64px;
    }

    .quote {
        max-width: 320px;
        font-size: 15px;
    }

    .menu a {
        font-size: 18px;
    }
}

/* =========================
   LARGE DESKTOP (>=1200px)
========================= */

@media (min-width: 1200px) {

    .left h1 {
        font-size: 80px;
    }

    .quote {
        max-width: 320px;
        font-size: 16px;
    }

    .menu a {
        font-size: 20px;
    }
}

/* =========================
   MOBILE (<768px)
========================= */
@media (max-width: 767px) {

    .layout {
        flex-direction: column;
    }

    /* Меню сверху, горизонтально */
    .right {
        position: static;
        height: auto;
        order: -1;
    }

    .menu {
        display: flex;
        flex-direction: row;
        gap: 5px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu li {
        margin: 0;
    }

    .menu a {
        width: auto;
        padding: 6px 7px;
        border-bottom: none;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Фото — фиксированная высота, центрирование на лице */
    .home {
        background: url('/assets/img/bg.jpg') 35% 10% / cover no-repeat;
    }

    .home-content {
        padding: 30px 25px;
        justify-content: center;
    }

    .left h1 {
        font-size: 48px;
    }

    .socials {
        gap: 24px;
    }

    .quote {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.7;
    }
}

/* =========================
   BIOGRAPHY SECTION
========================= */

.biography {
    min-height: 100vh;
    padding: 80px 40px 60px 40px;
    display: flex;
    align-items: flex-start;
}

.bio-content {
    gap: 60px;
    align-items: flex-start;
    width: 100%;    /* вместо max-width: 900px */
}

.bio-photo {
    float: left;
    width: 280px;
    margin-right: 60px;
    margin-bottom: 20px;
}

.bio-photo img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(20%);
    opacity: 0.9;
}

.bio-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.bio-text p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 767px) {
    .biography {
        padding: 30px 25px;
    }

    .bio-content {
        flex-direction: column;
        gap: 30px;
    }

    .bio-photo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* =========================
   CONTACT SECTION
========================= */

.contact {
    mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 100%);
    min-height: 100vh;
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
    background: url('/assets/img/c3.png') center center / cover no-repeat;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, rgba(0,0,0,0.9) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.9) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.9) 100%);
}

.contact-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.contact-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1px;
}


.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    border-radius: 2px;
    outline: none;
    transition: border 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.6);
}

button[type="submit"] {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 12px 40px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.form-success {
    color: #90ee90;
    margin-bottom: 20px;
    font-size: 15px;
}

.form-error {
    color: #ff9999;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 767px) {
    .contact {
        padding: 30px 25px;
    }
}

/* =========================
   SCHEDULE SECTION
========================= */

.schedule {
    min-height: 100vh;
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
    background: url('/assets/img/s3.png') 20% 30% / 70% no-repeat;
    background-attachment: fixed;  /* ← вот это добавь */
    position: relative;
}

.schedule::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, transparent 40%, transparent 70%, rgba(0,0,0,0.92) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.92) 100%);
}

.schedule-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.schedule-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.schedule-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 30px 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 30px;
    height: 1px;
    background: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Карточки */
.events-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.event-card:hover {
    background: rgba(255,255,255,0.04);
}

.event-date-block {
    flex-shrink: 0;
    text-align: center;
    width: 56px;
}

.event-day {
    display: block;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.event-mon {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.event-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.event-info {
    flex: 1;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 6px;
}

.event-venue {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}

.event-time {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    letter-spacing: 1px;
}

.event-ticket {
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    padding: 8px 18px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.event-ticket:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* Archive — приглушённее */
#archive .event-card {
    opacity: 0.55;
}

.no-events {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    padding: 20px 0;
}

/* Mobile */
@media (max-width: 767px) {
    .schedule {
        padding: 30px 25px;
    }

    .event-card {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }

    .event-ticket {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* =========================
   MEDIA SECTION
========================= */

.media {
    min-height: 100vh;
    padding: 60px 40px;
    display: flex;
    align-items: flex-start;
}

.media-content {
    width: 100%;
}

.media-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 36px;
    letter-spacing: 1px;
}

/* Фото сетка */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s ease;
}

.photo-item:hover {
    border-color: rgba(255,255,255,0.4);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
    border-radius: 2px;
}

.photo-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}


/* Видео сетка */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 2px;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-family: 'Playfair Display', serif;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-box {
    position: relative;
    max-width: 80vw;
    max-height: 85vh;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.lightbox-box img {
    display: block;
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.lightbox-close:hover { color: #fff; }

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 1001;
    transition: color 0.2s ease;
}

.lightbox-arrow:hover { color: #fff; }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

/* Mobile */
@media (max-width: 767px) {
    .media {
        padding: 30px 25px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}