/* =========================================================
   EVENT RECORDS — общие стили для всех страниц
   Брейкпоинты: мобильный ≤ 767px, планшет 768–1279px, десктоп ≥ 1280px
   ========================================================= */

:root {
    /* Палитра EVENT RECORDS */
    --c-black: #0A0B0F;
    --c-ink: #12141B;
    --c-white: #F8F8FF;
    --c-white-10: rgba(248, 248, 255, 0.10);
    --c-white-50: rgba(248, 248, 255, 0.50);
    --c-rose: #FF4FD8;
    --c-violet: #A370FF;
    --c-gray: #818287;
    --c-line: rgba(217, 217, 217, 0.25);

    /* Палитра FLAT WHITE (акцент подбренда) */
    --fw-black: #0D0D0D;
    --fw-rose-100: #E2BAF9;
    --fw-rose-200: #D794F5;
    --fw-rose-300: #CC6DF2;
    --fw-violet-200: #9081E5;
    --fw-violet-300: #6350D9;
    --fw-gray-100: #E6E6E6;
    --fw-gray-200: #CFCFCF;
    --fw-gray-500: #868686;

    /* Шрифты: Unbounded — «вывеска сцены», только заголовки; Manrope — весь остальной текст */
    --font-display: 'Unbounded', Arial, sans-serif;
    --font-text: 'Manrope', Arial, sans-serif;

    /* Шкала размеров (шаги Tailwind): только эти значения */
    --text-xs: 12px;   --lh-xs: 16px;
    --text-sm: 14px;   --lh-sm: 20px;
    --text-base: 16px; --lh-base: 24px;
    --text-lg: 18px;   --lh-lg: 28px;
    --text-xl: 20px;   --lh-xl: 28px;
    --text-2xl: 24px;  --lh-2xl: 32px;
    --text-3xl: 30px;  --lh-3xl: 36px;
    --text-4xl: 36px;  --lh-4xl: 40px;
    --text-5xl: 48px;

    /* Движение: одна «тяжёлая» кривая для всего сайта */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);

    /* Фокус с клавиатуры — розовый луч */
    --focus-ring: 0 0 0 2px var(--c-black), 0 0 0 4px var(--c-rose);

    --nav-height: 64px;
}

/* ---------- Сброс ---------- */

html {
    overflow-x: clip; /* декорации, выходящие за край, не дают сдвигать страницу вбок */
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-text);
}

p, h1, h2, h3, ul, figure {
    margin: 0;
    padding: 0;
}

img, video {
    max-width: 100%;
}

button {
    font: inherit;
}

/* Без «сирот»: заголовки балансируются, абзацы переносятся аккуратно */
h1, h2, h3 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

/* Видимый фокус для клавиатуры на всех интерактивных элементах */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Ссылка «Перейти к содержанию» — видна только при навигации с клавиатуры */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 12px 16px;
    background: var(--c-white);
    color: var(--c-ink);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
    transform: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Скрыть оверлеи, которые браузеры (например, Яндекс.Браузер) добавляют поверх картинок */
[class*="image-controls"] {
    display: none !important;
}

/* ---------- Кнопки ----------
   Сплошные и контрастные, без стекла и прозрачности.
   .btn            — второстепенная: белая, тёмный текст
   .btn--primary   — главное действие: заливка цветом прожекторов (розовый → фиолетовый) */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 48px;
    padding: 0 28px;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    background: var(--c-white);
    color: var(--c-ink);
    font-family: var(--font-text);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--lh-base);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        box-shadow 0.5s var(--ease),
        transform 0.3s var(--ease),
        filter 0.5s var(--ease);
}

.btn:hover,
.btn:focus-visible {
    box-shadow: 0 10px 28px rgba(255, 79, 216, 0.28);
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(90deg, var(--c-rose) 0%, var(--c-violet) 100%);
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(255, 79, 216, 0.45);
}

.btn:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
    background: rgba(248, 248, 255, 0.08);
    color: rgba(248, 248, 255, 0.45);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---------- Кнопка «Назад» на внутренних страницах ---------- */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px 0 12px;
    border-radius: 12px;
    background: rgba(248, 248, 255, 0.08);
    color: var(--c-white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.4s var(--ease), transform 0.3s var(--ease);
}

.back-link:hover,
.back-link:focus-visible {
    background: rgba(248, 248, 255, 0.16);
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.back-link svg {
    transition: transform 0.3s var(--ease);
}

/* ---------- Заголовок раздела ----------
   Одинаковый на всех страницах: крупный Unbounded, под ним — короткий «луч» */

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-head__title {
    margin: 0;
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.section-head::after {
    content: "";
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-rose) 30%, var(--c-violet) 70%, transparent);
    box-shadow: 0 0 16px rgba(255, 79, 216, 0.6);
}

@media (max-width: 767px) {
    .section-head {
        gap: 16px;
        margin-bottom: 40px;
    }

    .section-head__title {
        font-size: var(--text-3xl);
    }
}

/* ---------- Разделители ---------- */

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--c-black) 1.13%, var(--c-rose) 24.95%, var(--c-white) 48.76%, #C2A2FF 72.58%, var(--c-black) 96.4%);
}

.divider-bar {
    width: 100%;
    height: 72px;
    background: url("../assets/scene/div-bar.webp") bottom / contain no-repeat;
}

.divider-bar--flip {
    transform: rotate(180deg);
}

/* =========================================================
   Навигация сайта
   ========================================================= */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-height);
    background: linear-gradient(180deg, var(--c-black) 0%, rgba(10, 11, 15, 0.85) 70%, rgba(10, 11, 15, 0) 100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* На главной панель появляется после прокрутки первого экрана */
.site-nav--auto-hide:not(.is-visible):not(.is-open) {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.site-nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
}

.site-nav__logo img {
    width: 96px;
    height: 38px;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    color: var(--c-white-50);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.4s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--c-white);
}

.site-nav__link[aria-current="page"] {
    color: var(--c-white);
    box-shadow: inset 0 -1px 0 var(--c-rose);
}

.site-nav__cta {
    min-height: 44px;
    margin-left: 16px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: var(--text-sm);
}

.site-nav__burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

.site-nav__burger img {
    width: 24px;
    height: 24px;
}

.site-nav__burger .icon-close {
    display: none;
}

@media (max-width: 1279px) {
    .site-nav__inner {
        padding: 0 16px;
    }

    .site-nav__burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav__menu {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        margin: 0;
        background: rgba(10, 11, 15, 0.92);
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    .site-nav.is-open .site-nav__menu {
        opacity: 1;
        visibility: visible;
    }

    .site-nav.is-open .icon-open {
        display: none;
    }

    .site-nav.is-open .icon-close {
        display: block;
    }

    .site-nav__link {
        font-family: var(--font-display);
        font-size: var(--text-2xl);
        line-height: var(--lh-2xl);
    }

    .site-nav__cta {
        margin: 16px 0 0;
        font-size: var(--text-base);
    }
}

body.menu-open {
    overflow: hidden;
}

/* =========================================================
   Подвал
   ========================================================= */

.site-footer-divider {
    margin-top: var(--footer-gap, 196px);
}

.site-footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    column-gap: 70px;
    width: min(1280px, calc(100% - 170px));
    height: 274px;
    margin: 0 auto;
    padding: 160px 85px 96px;
    color: var(--c-white);
    font-family: var(--font-text);
    font-size: var(--text-base);
    background:
        url("../assets/scene/footer-light.webp") top -28px right -29px no-repeat,
        url("../assets/scene/footer-spotlights.webp") top -19px center no-repeat;

    .footer-col {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    h2 {
        color: var(--c-white);
        font-family: var(--font-display);
        font-size: var(--text-3xl);
        font-weight: 400;
        line-height: var(--lh-3xl);
        text-transform: uppercase;
    }

    h3 {
        margin-bottom: 4px;
        color: var(--c-gray);
        font-family: var(--font-text);
        font-size: var(--text-sm);
        font-weight: 500;
    }
}

.footer-logo {
    display: block;
    width: 213px;
    height: 84px;
    margin: 8px 30px 0 0;
    background: url("../assets/brand/logo.svg") left top / 213px 84px no-repeat;
}

.site-footer > .footer-col:first-child {
    justify-content: flex-start;
    gap: 16px;
}

.footer-copyright {
    color: var(--c-gray);
    font-size: var(--text-sm);
    line-height: var(--lh-sm);
}

.footer-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 40px auto;
    gap: 32px;

    h2 {
        grid-column: 1 / 3;
    }
}

.footer-director {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-director__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Телефон: иконка вровень с левым краем email */
.footer-phone {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding-left: 22px;
    background: url("../assets/icons/phone.svg") left center / 14px 14px no-repeat;
}

.footer-phone:hover {
    background-image: url("../assets/icons/phone-hover.svg");
}

/* Соцсети: все иконки по центру одинаковых квадратов 40×40,
   первая визуально выровнена по левому краю текста */
.footer-socials {
    display: flex;
    margin-left: -12px;
}

.footer-social {
    width: 40px;
    height: 40px;
    background-position: center;
    background-size: 16px 16px;
    background-repeat: no-repeat;
}

.footer-social--tg { background-image: url("../assets/icons/tg.svg"); }
.footer-social--tg:hover { background-image: url("../assets/icons/tg-hover.svg"); }
.footer-social--inst { background-image: url("../assets/icons/inst.svg"); }
.footer-social--inst:hover { background-image: url("../assets/icons/inst-hover.svg"); }
.footer-social--vk { background-image: url("../assets/icons/vk.png"); background-size: 40px 40px; }
.footer-social--vk:hover { background-image: url("../assets/icons/vk-hover.png"); }

.footer-contacts p {
    margin-top: 0;
}

[data-copy] {
    cursor: pointer;
}

[data-copy]:hover {
    color: var(--c-rose);
}

.footer-slogan {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    max-width: 252px;

    p {
        overflow-wrap: break-word;
    }
}

.politics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    max-width: 1200px;
    margin: 32px auto;

    a {
        color: var(--c-gray);
        font-size: var(--text-sm);
        line-height: var(--lh-sm);
        text-underline-offset: 3px;
    }

    a:hover {
        color: var(--c-white);
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .site-footer-divider {
        margin-top: var(--footer-gap-tablet, 64px);
    }

    .site-footer {
        column-gap: 16px;
        width: 100%;
        height: 178px;
        padding: 122px 0 96px;
        overflow: hidden;
        background:
            url("../assets/scene/footer-light-tablet.webp") top -39px right calc(50% - 269px) no-repeat,
            url("../assets/scene/footer-spotlights-tablet.webp") top -17px center no-repeat;

        div, p { font-size: var(--text-sm); }
        h2 { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
        h3 { font-size: var(--text-xs); }

        .footer-col,
        .footer-director { max-width: 172px; }
    }

    .footer-logo {
        width: 128px;
        height: 50px;
        background-size: 128px 50px;
    }

    .footer-copyright { font-size: var(--text-xs); }

    .footer-contacts {
        grid-template-rows: auto auto;
        gap: 32px 16px;
        max-width: 360px;

        p { margin-top: 6px; }
    }


    .footer-slogan {
        max-width: 172px;

        .btn { padding: 12px 16px; }
    }

    .politics {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .site-footer-divider {
        margin-top: var(--footer-gap-mobile, 64px);
        background-size: cover;
    }

    .site-footer {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        width: fit-content;
        min-width: 328px;
        max-width: 480px;
        height: fit-content;
        margin: 0 auto;
        padding: 107px 16px 64px;
        background:
            url("../assets/scene/footer-light-mobile.webp") top -40px right calc(50% + 32px) no-repeat,
            url("../assets/scene/footer-spotlights-mobile.webp") top -18px center no-repeat;

        div, p { font-size: var(--text-sm); }
        h2 { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
        h3 { font-size: var(--text-xs); margin-top: 16px; }
    }

    .footer-logo {
        width: 128px;
        height: 50px;
        margin-top: 4px;
        background-size: 128px 50px;
    }

    .footer-copyright {
        position: relative;
        top: 3px;
        font-size: var(--text-xs);
    }

    .footer-contacts {
        display: flex;
        flex-direction: column;
        gap: 0;

        h2 { margin-bottom: 16px; }
        p { margin-top: 6px; }

        p, [data-copy] { overflow-wrap: normal; word-break: normal; }
    }


    .footer-slogan {
        position: absolute;
        top: 240px;
        left: 16px;
        gap: 16px;
        max-width: calc(50% - 32px);

        .btn {
            padding: 12px 16px;
        }
    }

    .politics {
        max-width: 340px;
    }
}

/* =========================================================
   Лайтбокс галерей
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-black);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__media {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 1;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
}

.lightbox__close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-image: url("../assets/icons/gal-close.svg");
}

.lightbox__close:hover {
    background-color: var(--c-white-10);
}

.lightbox__nav {
    top: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--c-white-10);
    background-image: url("../assets/icons/gal-left.svg");
}

.lightbox__nav:hover {
    background-color: rgba(248, 248, 255, 0.75);
    background-image: url("../assets/icons/gal-left-hover.svg");
}

.lightbox__nav--prev {
    left: 20px;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 20px;
    transform: translateY(-50%) rotate(180deg);
}

.lightbox__counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 1px solid rgba(248, 248, 255, 0.2);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--c-white);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1279px) {
    .lightbox__close { top: 0; right: 0; }
    .lightbox__nav--prev { left: 0; }
    .lightbox__nav--next { right: 0; }
}

/* ---------- Уведомление «Скопировано» ---------- */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    background: rgba(255, 79, 216, 0.9);
    color: var(--c-white);
    font-weight: 600;
    animation: toast-in 0.3s ease;
}

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
