/* ============================================
   SECTIONS MODULE - MODULAR ARCHITECTURE
   Entry point for all section-related styles
   ============================================ */

/* Shared modal shell (used by every modal on the site) */
/* ---- inlined: modal-shell.css ---- */
/* ============================================
   MODAL SHELL
   Единый каркас всех модалок сайта:
   затемнение фона, панель, шапка, заголовок,
   кнопка закрытия и анимации открытия/закрытия.
   Конкретные модалки доопределяют только контент.
   ============================================ */

/* --- Root --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.32s ease, visibility 0s linear 0s;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.modal.active .modal-overlay {
    opacity: 1;
}

/* --- Panel --- */
.modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Solid dark canvas instead of glass transparency to prevent lightening */
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(18px) scale(0.985) translateZ(0);
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.modal.active .modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
}

/* --- Header --- */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    min-width: 0;
    min-height: 48px;
    flex: 0 0 auto;
}

.modal-title {
    margin: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.7vw, 1.9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #e0e0e0 0%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- Close button --- */
.modal-close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close.ui-close-btn::before {
    width: 17px;
    height: 17px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.94);
}

.modal-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

/* Masked X icon for all modal close buttons */
.ui-close-btn {
    position: relative;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.ui-close-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56%;
    height: 56%;
    transform: translate(-50%, -50%);
    display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 1 0 5.7 7.1L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 1 0 5.7 7.1L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Scrollable content area --- */
.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .modal .modal-panel {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 14px;
        border-radius: 20px;
        gap: 12px;
    }

    .modal-header {
        min-height: 34px;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .modal-close {
        width: 34px;
        height: 34px;
    }

    .modal-close.ui-close-btn::before {
        width: 15px;
        height: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-overlay,
    .modal-panel,
    .modal-close {
        transition: none !important;
    }
}


/* Брендовые градиенты кнопок площадок (главная + мультилинк) */
/* ---- inlined: platform-tints.css ---- */
/* ============================================
   PLATFORM TINTS — брендовые градиенты кнопок площадок
   ============================================
   Общий шаблон подложки для элементов с data-platform-key.
   Повторяет градиент TikTok-панели второй секции главной:
   прозрачный linear-gradient 135° из двух цветов бренда
   (0.12 → 0.06, на ховере 0.18 → 0.12).
   Палитра задаётся парой --platform-rgb / --platform-rgb-alt;
   если второй цвет не задан, используется первый.

   Подключается: styles/sections.css (главная, «Недавний релиз»)
   и multilink.css (страница мультилинка). */

/* Палитра брендов: основной и дополнительный цвета логотипа */
[data-platform-key="yandex_music"] {
    --platform-rgb: 255, 204, 0;
    --platform-rgb-alt: 255, 76, 26;
}

[data-platform-key="vk_music"] {
    --platform-rgb: 64, 131, 245;
    --platform-rgb-alt: 168, 85, 247;
}

[data-platform-key="spotify"] {
    --platform-rgb: 30, 215, 96;
    --platform-rgb-alt: 14, 140, 90;
}

[data-platform-key="apple_music"] {
    --platform-rgb: 250, 36, 60;
    --platform-rgb-alt: 251, 92, 116;
}

[data-platform-key="tiktok"] {
    --platform-rgb: 255, 0, 80;
    --platform-rgb-alt: 0, 242, 234;
}

/* Шаблон как у TikTok-панели второй секции главной: прозрачный
   линейный градиент из двух цветов логотипа и мягкая рамка. */
.stream-btn[data-platform-key],
.platform-link-item[data-platform-key] {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(var(--platform-rgb), 0.12), rgba(var(--platform-rgb-alt, var(--platform-rgb)), 0.06));
    border-color: rgba(var(--platform-rgb), 0.18);
}

/* Усиление при наведении — отдельный слой под контентом: градиенты
   в transition не интерполируются, плавность даёт opacity. */
.stream-btn[data-platform-key]::after,
.platform-link-item[data-platform-key]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--platform-rgb), 0.18), rgba(var(--platform-rgb-alt, var(--platform-rgb)), 0.12));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stream-btn[data-platform-key]:hover::after,
.platform-link-item[data-platform-key]:hover::after {
    opacity: 1;
}

/* Базовый градиент повторяем на ховере: общие правила кнопок
   (background у .stream-btn:hover и .track-item:hover) не должны
   сбрасывать подложку — меняется только яркость. */
.stream-btn[data-platform-key]:hover,
.platform-link-item[data-platform-key]:hover {
    background: linear-gradient(135deg, rgba(var(--platform-rgb), 0.12), rgba(var(--platform-rgb-alt, var(--platform-rgb)), 0.06));
    border-color: rgba(var(--platform-rgb), 0.3);
}


/* Base section styles and containers */
/* ---- inlined: sections/sections-base.css ---- */
/* ============================================
   SECTIONS BASE
   Common section styles and containers
   Отступы секций — в section-spacing.css (единый источник).
   ============================================ */
.section {
    position: relative;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-loading-state {
    width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .release-card,
    .show-card {
        flex-direction: column;
        text-align: center;
    }
}


/* Release cards and grid */
/* ---- inlined: sections/releases.css ---- */
/* ============================================
   RELEASES GRID
   Базовые `.section` / `.container` / `.section-title` живут в sections-base.css
   ============================================ */

/* Releases Grid */
.releases-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.releases-grid.two-columns {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Когда TikTok виджет скрыт — карточка не растягивается на всю ширину */
.releases-grid.two-columns.no-tiktok {
    justify-content: center;
}

.releases-grid.two-columns.no-tiktok #recent-release-card {
    flex: 0 0 auto;
    width: 600px;
    max-width: 100%;
}

/* Release Card */
.release-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    width: 450px;
    max-width: 100%;
    height: auto;
}

.release-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-content {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 1.25rem;
    /* Колонка кнопок тянется на всю высоту левой колонки: её верх
       совпадает с верхом обложки, низ — с низом названия и даты. */
    align-items: stretch;
    /* Если карточка выше контента (растянута соседним блоком) — контент
       центрируется в свободном месте, а не липнет к верху. */
    flex: 1;
    align-content: center;
}

/* Левая колонка: обложка, под ней название и дата */
.release-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.release-artwork {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #444444, #222222);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.release-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.release-track-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: -4px -12px -16px -12px;
    padding: 4px 12px 16px 12px;
    color: #ffffff; /* Brighter white */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Better shadow for contrast */
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-date {
    color: #cccccc; /* Brighter grey */
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.release-description {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.release-actions {
    --stream-btn-height: 2.6rem;
    --stream-gap: 0.6rem;
    display: flex;
    flex-direction: column;
    /* Кнопки распределяются по всей высоте колонки: первая прижата к верху
       (уровень обложки), последняя — к низу (уровень даты), промежутки
       между блоками одинаковые. */
    justify-content: space-between;
    gap: var(--stream-gap);
    margin-top: 0;
    width: 100%;
    min-width: 0;
}

/* Все кнопки карточки — одного размера, друг под другом */
.release-actions .stream-btn {
    width: 100%;
    min-height: var(--stream-btn-height);
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.presave-btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.streaming-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* dense: Spotify (колонка 1) встаёт в ту же строку, что VK (колонка 2),
       а не переносится вниз курсором авторазмещения. */
    grid-auto-flow: dense;
    gap: var(--stream-gap);
}

/* Порядок блока: сверху пара Spotify + VK Музыка, под ней главная площадка
   (Яндекс Музыка) на всю ширину и высотой в две кнопки. Текст и логотип
   главной кнопки увеличены пропорционально. */
.streaming-links .stream-btn[data-platform-key="spotify"] {
    grid-column: 1;
    grid-row: 1;
}

.streaming-links .stream-btn[data-platform-key="vk_music"] {
    grid-column: 2;
    grid-row: 1;
}

.streaming-links .stream-btn[data-platform-key="yandex_music"] {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: calc(var(--stream-btn-height) * 2 + var(--stream-gap));
    /* Шрифт как у заголовков сайта — акцентная главная площадка. */
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
    gap: 0.55rem;
}

.streaming-links .stream-btn[data-platform-key="yandex_music"] .btn-text {
    max-width: none;
}

.streaming-links .stream-btn[data-platform-key="yandex_music"] .platform-icon {
    width: 22px;
    height: 22px;
}

.stream-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.stream-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-tertiary);
    transform: translateY(-2px);
}

/* Брендовая подсветка кнопок площадок: палитра и градиентный шаблон —
   в styles/platform-tints.css, здесь только «стекло» поверх подложки. */
.stream-btn[data-platform-key] {
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.stream-btn .btn-text {
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.stream-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    .lyrics-btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Компактная карточка недавнего релиза на тач-экранах --- */
    /* Колонка карточек на тач-экранах: без растяжки по flex-basis,
       иначе карточка с overflow: hidden схлопывается по высоте. */
    #latest-release #recent-release-card {
        flex: 0 0 auto;
    }

    #latest-release .release-card {
        padding: 1.1rem;
    }

    /* Только заголовок карточки релиза: у TikTok-карточки отступы
       регулирует её собственный контейнер контента. */
    #recent-release-card .release-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    /* Одна колонка: сверху шапка «обложка + текст», ниже кнопки. */
    #latest-release .release-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
        align-items: stretch;
    }

    /* Шапка: квадратная обложка слева, название и дата справа. */
    #latest-release .release-main {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 0.85rem;
        align-items: center;
    }

    #latest-release .release-artwork {
        width: 100px;
        height: 100px;
    }

    #latest-release .release-info {
        align-items: flex-start;
        text-align: left;
        gap: 0.2rem;
    }

    #latest-release .release-track-title {
        font-size: 1.1rem;
        text-align: left;
        margin: 0;
        padding: 0;
        -webkit-line-clamp: 3;
    }

    #latest-release .release-date {
        font-size: 0.72rem;
        text-align: left;
        line-height: 1.3;
    }

    #latest-release .release-actions {
        --stream-btn-height: 2.2rem;
        --stream-gap: 0.45rem;
    }

    #latest-release .release-actions .stream-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    /* Яндекс-площадка в два ряда: чуть крупнее текст и логотип. */
    #latest-release .streaming-links .stream-btn[data-platform-key="yandex_music"] {
        font-size: 0.82rem;
    }

    #latest-release .stream-btn .platform-icon {
        width: 14px;
        height: 14px;
    }

    #latest-release .streaming-links .stream-btn[data-platform-key="yandex_music"] .platform-icon {
        width: 18px;
        height: 18px;
    }

    #latest-release .stream-btn .btn-text {
        max-width: none;
    }
}

/* Show Section */
.show-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.show-card.no-show {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
}

.show-card.no-show .show-date {
    display: none;
}

.show-card.no-show .show-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.show-card.no-show .venue-details {
    justify-content: center;
}

.show-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #555555, #333333);
    border-radius: 16px;
    padding: var(--spacing-md);
    min-width: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.date-day {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.show-details {
    flex: 1;
    min-width: 300px;
}

.show-details h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-tertiary);
    text-align: center;
}

.venue-details {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Biography Section */
.bio-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.bio-content p {
    margin-bottom: var(--spacing-md);
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* Marquee divider between hero and latest release */
/* ---- inlined: sections/hero-marquee.css ---- */
/* ============================================
   HERO/RELEASE MARQUEE DIVIDER
   ============================================ */

.hero-marquee {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    /* Полоса — разделитель после hero: добавляем половину стандартного
       зазора, чтобы до следующей секции было как между секциями. */
    margin-bottom: var(--section-padding-y, 4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.01) 22%, rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0.01) 78%, rgba(255, 255, 255, 0.045) 100%),
        #000;
}

.hero-marquee::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.32) 0.5px, transparent 0.5px),
        radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 1px;
}

.hero-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    animation: hero-marquee-scroll var(--marquee-duration, 4s) linear infinite;
    will-change: transform;
}

.hero-marquee__item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 2.2rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-display);
    font-size: clamp(0.78rem, 1.2vw, 1.02rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes hero-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--marquee-shift, 33.333%)));
    }
}

@media (max-width: 768px) {
    .hero-marquee {
        padding: 0.46rem 0;
    }

    .hero-marquee__item {
        padding-right: 1.5rem;
        letter-spacing: 0.05em;
    }
}


/* Show/concert cards */
/* ---- inlined: sections/shows.css ---- */
/* ============================================
   SHOWS SECTION
   Concert and show card styles
   ============================================ */
.show-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.show-card.no-show {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
}

.show-card.no-show .show-date {
    display: none;
}

.show-card.no-show .show-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.show-card.no-show .venue-details {
    justify-content: center;
}

.show-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #555555, #333333);
    border-radius: 16px;
    padding: var(--spacing-md);
    min-width: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.date-day {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.show-details {
    flex: 1;
    min-width: 300px;
}

.show-details h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-tertiary);
    text-align: center;
}

.venue-details {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Biography section */
/* ---- inlined: sections/biography.css ---- */
/* ============================================
   BIOGRAPHY SECTION
   Artist biography and description styles
   ============================================ */
.bio-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.bio-content p {
    margin-bottom: var(--spacing-md);
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile: compact reading rhythm so the biography takes noticeably less scroll */
@media (max-width: 768px) {
    .bio-section .bio-content {
        padding: 1.15rem 1.2rem;
        font-size: 0.735rem;
        line-height: 1.55;
    }

    .bio-section .bio-content p {
        margin-bottom: 0.65rem;
    }
}


/* Gallery grid */
/* ---- inlined: sections/gallery.css ---- */
/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Server-rendered markup contains every photo for image search, but the
   section contract is 3 previews on tablets and desktop and 4 on phones.
   Clamp it in CSS so a reload with restored scroll never flashes the whole
   gallery before loadGallery() re-renders the grid. The modal keeps using
   the full list collected from the DOM. */
@media (min-width: 601px) {
    .gallery-grid > .gallery-item:nth-child(n + 4) {
        display: none;
    }
}

@media (max-width: 600px) {
    .gallery-grid > .gallery-item:nth-child(n + 5) {
        display: none;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.44) 50%, rgba(0, 0, 0, 0.82) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 2.6rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Пилюля поверх фото: иконка «развернуть» + явное действие */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    background: rgba(12, 12, 16, 0.7);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateY(10px) scale(0.97);
    opacity: 0;
    transition: opacity 0.3s ease 0.05s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.view-btn-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Подпись конкретного фото: alt-текст у нижнего края */
.gallery-item-caption {
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    left: 1rem;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.08s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.gallery-item-caption:empty {
    display: none;
}

.gallery-item:focus-visible .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:focus-visible .view-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-item:focus-visible .gallery-item-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Touch devices - NO hover effects, only click */
@media (hover: none) {
    .gallery-item:active {
        transform: none;
    }

    .gallery-item .gallery-item-overlay {
        opacity: 0;
        display: none;
    }

    .gallery-item img {
        transform: none !important;
    }
}

/* Hover devices */
@media (hover: hover) {
    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

    .gallery-item:hover .gallery-item-overlay {
        opacity: 1;
    }

    .gallery-item:hover .view-btn {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .gallery-item:hover .gallery-item-caption {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img,
    .gallery-item-overlay,
    .view-btn,
    .gallery-item-caption {
        transition: none;
    }
}

/* --- Gallery CTA Link --- */
.gallery-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0 0;
}

.gallery-cta-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration-line: underline;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, text-decoration-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    font-family: var(--font-primary);
}

.gallery-cta-link:hover {
    color: #fff;
    opacity: 1;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

.gallery-cta-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
    border-radius: 4px;
}


/* Photo modal */
/* ---- inlined: sections/photo-modal.css ---- */
/* ============================================
   GALLERY VIEWER MODAL
   Поверх общего каркаса styles/modal-shell.css
   ============================================ */

/* --- Panel --- */
.gallery-viewer-panel {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "sidebar header"
        "sidebar stage";
    gap: 18px var(--spacing-md);
    width: min(1500px, calc(100vw - 48px));
    height: min(880px, calc(100vh - 48px));
}

.gallery-viewer-panel .modal-header {
    grid-area: header;
}

/* --- Stage --- */
.gallery-viewer-stage {
    grid-area: stage;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    cursor: zoom-in;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-viewer-stage.is-zoomed {
    cursor: grab;
}

.gallery-viewer-stage.is-dragging {
    cursor: grabbing;
}

.gallery-viewer-stage.is-dragging #modal-image,
.gallery-viewer-stage.is-pinching #modal-image {
    transition: none;
}

.gallery-viewer-stage.is-loading::after {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: gallery-viewer-spin 0.8s linear infinite;
}

@keyframes gallery-viewer-spin {
    to {
        transform: rotate(360deg);
    }
}

#modal-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform: translate(0, 0) scale(1);
    transition: transform 0.18s ease-out;
    will-change: transform;
}

/* --- Overlay UI inside the stage --- */
.gallery-viewer-ui {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 14px;
    pointer-events: none;
}

.gallery-viewer-ui > * {
    pointer-events: auto;
}

.gallery-viewer-counter {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.72);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

/* --- Download button --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.5rem 1.35rem 0.5rem 0.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background-color: rgba(15, 15, 15, 0.72);
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--font-primary);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.download-btn.is-swapping .download-btn__text {
    opacity: 0;
    transform: translateY(4px);
}

.download-btn__icon {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.download-btn__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.17l3.09-3.08 1.41 1.41L12 16l-5.5-5.5 1.41-1.41L11 12.17V3Z'/%3E%3Cpath d='M5 18h14v2H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.17l3.09-3.08 1.41 1.41L12 16l-5.5-5.5 1.41-1.41L11 12.17V3Z'/%3E%3Cpath d='M5 18h14v2H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.download-btn__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.download-btn__hint {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.download-btn:hover {
    background-color: rgba(24, 24, 24, 0.88);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.download-btn:hover .download-btn__icon {
    background-color: rgba(255, 255, 255, 0.16);
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}

.download-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.download-btn.is-success {
    background-color: rgba(0, 184, 148, 0.22);
    border-color: rgba(0, 206, 201, 0.5);
    color: #a9f5e8;
}

.download-btn.is-success .download-btn__icon {
    background-color: rgba(0, 206, 201, 0.22);
}

.download-btn.is-success .download-btn__hint {
    color: rgba(169, 245, 232, 0.78);
}

.download-btn.is-error {
    background-color: rgba(214, 48, 49, 0.22);
    border-color: rgba(225, 112, 85, 0.5);
    color: #ffc2b5;
}

.download-btn.is-error .download-btn__icon {
    background-color: rgba(225, 112, 85, 0.22);
}

.download-btn.is-error .download-btn__hint {
    color: rgba(255, 194, 181, 0.78);
}

/* --- Thumbnails --- */
.gallery-viewer-sidebar {
    grid-area: sidebar;
    min-height: 0;
    overflow: hidden;
}

.gallery-viewer-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding-right: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.gallery-viewer-thumbs::-webkit-scrollbar {
    width: 6px;
}

.gallery-viewer-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-viewer-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.gallery-viewer-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-viewer-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-viewer-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-viewer-thumb:hover {
    opacity: 0.8;
}

.gallery-viewer-thumb[aria-selected="true"] {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.gallery-viewer-thumb:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

/* --- Mobile: photo on top, horizontal thumbnails below --- */
@media (max-width: 768px) {
    .modal .gallery-viewer-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "header"
            "stage"
            "sidebar";
        gap: 10px;
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        max-height: none;
        padding: 10px;
        border-radius: 20px;
    }

    .gallery-viewer-stage {
        padding: 10px;
        border-radius: 14px;
    }

    .gallery-viewer-ui {
        padding: 10px;
        gap: 10px;
    }

    .gallery-viewer-counter {
        padding: 0.34rem 0.68rem;
        font-size: 0.62rem;
    }

    .download-btn {
        min-height: 40px;
        gap: 0.5rem;
        padding: 0.3rem 0.95rem 0.3rem 0.4rem;
    }

    .download-btn__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .download-btn__label {
        font-size: 0.68rem;
    }

    .download-btn__hint {
        font-size: 0.5rem;
    }

    .gallery-viewer-sidebar {
        overflow: visible;
    }

    .gallery-viewer-thumbs {
        flex-direction: row;
        height: auto;
        padding: 2px 0 6px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gallery-viewer-thumb {
        width: 72px;
        height: 72px;
        aspect-ratio: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-viewer-thumb,
    .download-btn,
    .download-btn__icon,
    #modal-image {
        transition: none !important;
    }

    .gallery-viewer-stage.is-loading::after {
        animation-duration: 1.6s;
    }
}


/* Footer */
/* ---- inlined: sections/footer.css ---- */
/* ============================================
   FOOTER
   Shared footer base + compact home footer
   ============================================ */
.footer {
    padding: 2.75rem var(--spacing-md);
    background: rgba(26, 26, 26, 0.8);
    border-top: 1px solid var(--glass-border);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.25rem;
}

.footer p {
    margin: 0;
}

.footer--home {
    position: relative;
    overflow: hidden;
    padding: 2.3rem var(--spacing-md);
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.92)),
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 42%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer--home .footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    align-items: center;
}

.footer__eyebrow,
.footer__section-title {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer__brand-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3.9vw, 2.86rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer__brand-link:hover {
    color: #fff;
    opacity: 0.92;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer--home .footer__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
}

.footer--home .footer__social-row {
    display: flex;
    gap: 0.5rem;
}

.footer--home .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.footer--home .social-icon:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

.footer__bottom-note {
    text-align: center;
}

/* Legal links keep the footer palette after the browser records a visit. */
.footer__bottom-note a,
.footer__bottom-note a:visited,
.footer__privacy-settings {
    color: var(--text-secondary);
    text-decoration-color: currentColor;
}

.footer__privacy-settings {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.footer__bottom-note a:hover,
.footer__bottom-note a:focus-visible,
.footer__privacy-settings:hover,
.footer__privacy-settings:focus-visible {
    color: var(--text-primary);
}

.footer__bottom-note a:focus-visible,
.footer__privacy-settings:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .footer--home .footer__inner {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem var(--spacing-sm);
    }

    .footer--home {
        padding: 2.63rem var(--spacing-sm);
    }

    .footer--home .footer__inner {
        gap: 1.6rem;
    }

    .footer__social {
        width: 100%;
        align-items: center;
    }

    .footer__section-title {
        text-align: center;
        width: 100%;
    }

    .footer--home .footer__section-title {
        display: none;
    }

    .footer--home .footer__socials {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer--home .footer__social-row {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer--home .social-icon {
        width: fit-content;
        flex: 0 0 auto;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.12rem !important;
        row-gap: 0.12rem !important;
        line-height: 1.08;
        text-align: center;
    }

    .footer__bottom p {
        margin: 0 !important;
        line-height: 1.08;
    }

    .footer__bottom-note {
        text-align: center;
        margin-top: 0.02rem !important;
    }
}

@media (max-width: 480px) {
    .footer--home .social-icon {
        width: fit-content;
        min-width: 0;
        max-width: none;
        justify-content: center;
    }
}


/* Contacts section */
/* ---- inlined: sections/contacts.css ---- */
/* ============================================
   CONTACTS SECTION
   Отступы секции — в section-spacing.css (единый источник).
   ============================================ */

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
    padding: 1.5rem; /* Restore balanced padding */
    /* Ширина — как у остальных блоков секций: контейнером (.container),
       без локального сужения, иначе карточки не совпадают по краям
       с биографией и другими glass-card. */
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(0.82rem, 0.52vw, 0.9rem);
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #555555, #333333);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    line-height: 1.25;
    box-sizing: border-box;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #666666, #444444);
}

.contact-link .icon {
    font-size: 1.2rem;
}

/* Планшет: автоподбор даёт две колонки, поэтому карточка почты занимает
   всю строку — тот же приём, что и на мобильном. */
@media (max-width: 1024px) {
    .contact-item--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Two cards per row, the wide e-mail card below (same rhythm as music) */
    .contacts-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        padding: 0.65rem;
    }

    .contact-item {
        padding: 0.9rem 0.5rem;
        border-radius: 12px;
    }

    .contact-item h3 {
        font-size: 0.68rem;
        line-height: 1.15;
        letter-spacing: 0.2px;
        margin-bottom: 0.25rem;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .contact-item p {
        font-size: 0.64rem;
        line-height: 1.25;
        margin-bottom: 0.6rem;
    }

    .contact-link {
        font-size: 0.62rem;
        line-height: 1.25;
        padding: 0.5rem 0.3rem;
        width: 100%;
        justify-content: center;
        margin-top: auto;
    }

    /* Third card spans both columns: text left, contact right */
    .contact-item--wide {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title link"
            "subtitle link";
        align-items: center;
        column-gap: 0.8rem;
        text-align: left;
    }

    .contact-item--wide h3 {
        grid-area: title;
        text-align: left;
        margin-bottom: 0.15rem;
    }

    .contact-item--wide p {
        grid-area: subtitle;
        text-align: left;
        margin-bottom: 0;
    }

    .contact-item--wide .contact-link {
        grid-area: link;
        width: auto;
        max-width: 100%;
        margin-top: 0;
        padding: 0.55rem 0.7rem;
        white-space: nowrap;
    }
}

/* Narrow phones: the wide card stacks — text above, contact below */
@media (max-width: 379px) {
    .contact-item--wide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "subtitle"
            "link";
        justify-items: center;
        row-gap: 0.15rem;
        text-align: center;
    }

    .contact-item--wide h3,
    .contact-item--wide p {
        text-align: center;
    }

    .contact-item--wide .contact-link {
        justify-self: center;
        margin-top: 0.5rem;
    }
}

/* CTA links under the contacts block */
.press-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0 0;
}

.contacts-cta-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration-line: underline;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, text-decoration-color 0.3s ease, opacity 0.3s ease;
}

.contacts-cta-link:hover {
    color: #fff;
    opacity: 1;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}


/* Social links */
/* ---- inlined: sections/social-links.css ---- */
/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: 1.5rem;
    /* Removed margin-top to fix vertical alignment in footer */
    flex-wrap: wrap;
    justify-content: center;
}


/* Back to top button */
/* ---- inlined: sections/back-to-top.css ---- */
/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
/* Стили кнопки — в base.css; секция toggle — в toggle-section.css. */

.back-to-top {
    font-family: var(--font-primary);
}


/* Toggle sections (dynamic blocks) */
/* ---- inlined: sections/toggle-section.css ---- */
/* ============================================
   TOGGLE SECTION
   Dynamic toggle sections with text, images, and videos
   ============================================ */
.toggle-section {
    position: relative;
    z-index: 2;
}

.toggle-content {
    padding: 60px;
    border-radius: 24px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.toggle-text-image.image-right {
    direction: rtl;
}

.toggle-text-image.image-right .toggle-text {
    direction: ltr;
}

.toggle-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.toggle-text p {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-line;
}

.toggle-text-only {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.toggle-image-only img {
    width: 100%;
    border-radius: 16px;
}

.toggle-video {
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.toggle-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .toggle-text-image {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .toggle-text-image.image-right {
        direction: ltr;
    }
    
    .toggle-content {
        padding: 30px;
    }
}


/* Media hub section */
/* ---- inlined: sections/media-hub.css ---- */
/* ============================================
   MEDIA HUB SECTION
   Static grid of the latest media mentions (3 posts)
   Отступы секции — в section-spacing.css (единый источник).
   ============================================ */

.media-hub-header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    justify-items: center;
}

.media-hub-header .section-title {
    margin-bottom: 0;
}

.media-hub-subtitle {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
}

.media-hub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.media-hub-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    justify-items: stretch;
}

.media-hub-empty {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 2rem;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
}

.media-post-card {
    width: 100%;
    display: grid;
    gap: 0;
    padding: 0.7rem;
    min-width: 0;
    height: clamp(320px, 30vw, 380px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(12, 12, 12, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    margin: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease;
}

@media (hover: hover) {
    .media-post-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow:
            var(--surface-shadow-hover),
            var(--surface-glow-soft),
            var(--surface-shadow-inset-hover);
    }

    .media-post-card:hover .media-post-card__embed {
        border-color: rgba(255, 255, 255, 0.16);
    }
}

.media-post-card__embed {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
    min-height: 0;
    width: 100%;
    margin: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    touch-action: pan-y;
    transition: border-color 0.45s ease;
}

.media-widget-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    touch-action: pan-y;
}

/* Visual wrapper: real post-scale width, centered in the viewport.
   Holds the scaled inner so the widget sits flush, not clipped on the right. */
.media-widget-visual {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.media-widget-inner {
    transform: scale(var(--media-widget-scale, 1));
    transform-origin: top left;
    overflow: hidden;
}

.media-post-card__embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
}

.media-embed-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.media-embed-fallback__inner {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-embed-fallback__text {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.media-embed-fallback__link {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .media-hub-header {
        gap: 0.25rem;
        margin-bottom: 0.9rem;
    }

    .media-hub-subtitle {
        font-size: 0.86rem;
        line-height: 1.35;
        max-width: 92%;
    }

    .media-hub-list {
        gap: 0.85rem;
    }

    .media-hub-row {
        gap: 0.85rem;
    }

    .media-post-card {
        padding: 0.6rem;
        border-radius: 20px;
        height: 320px;
    }

    .media-post-card__embed,
    .media-post-card__embed iframe,
    .media-embed-fallback,
    .media-widget-viewport,
    .media-widget-inner {
        height: 100%;
    }
}

@media (max-width: 560px) {
    .media-hub-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-post-card {
        height: 290px;
    }
}


/* Section spacing overrides */
/* ---- inlined: sections/section-spacing.css ---- */
/* ============================================
   SECTION SPACING
   Единый вертикальный отступ для всех секций главной: между соседними
   секциями ровно 2 × --section-padding-y (десктоп 4rem, тач 3rem).
   Персональных исключений и «полноэкранного» центрирования нет —
   ритм страницы одинаковый.
   ============================================ */
:root {
    --section-padding-y: 4rem;
}

.section {
    padding: var(--section-padding-y) var(--spacing-md);
    min-height: auto;
    justify-content: flex-start;
}

