@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-display: swap;
    src: url('/assets/fonts/RobotoFlex-Variable.ttf') format('truetype');
}

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

body {
    font-family: 'Roboto Flex', system-ui, sans-serif;
    background: #050505;
    -webkit-font-smoothing: antialiased;
}

/* Hero — fullscreen, pattern covers everything */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #050505 url('/assets/images/pattern-bg.webp') center / cover no-repeat;
    overflow: hidden;
}

/* Card — rotated info block */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(6.2deg);
    width: 982px;
    max-width: 95vw;
    cursor: pointer;
}

/* Title row */
.title-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
}

.quote-left {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    padding: 7px 0 7px 14px;
    margin-right: -0.5px;
}

.quote-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    padding: 7px 14px 7px 0;
    margin-left: -0.5px;
}

.quote-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(37px, 3.6vw);
    height: min(48px, 4.6vw);
}

.quote-rotate {
    transform: rotate(-6.2deg);
    filter: brightness(0);
}

.quote-box img {
    width: 100%;
    height: auto;
}

.title-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 7px 13px;
    gap: 13px;
}

.title-text {
    font-size: min(85px, 8.6vw);
    font-weight: 900;
    font-stretch: 151%;
    line-height: 0.9;
    color: #050505;
    letter-spacing: -1.7px;
    white-space: nowrap;
    font-variation-settings:
        'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79,
        'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712;
}

.title-year {
    width: min(171px, 18.3vw);
    height: min(80px, 8.6vw);
    object-fit: contain;
    display: block;
    filter: brightness(0);
}

/* Lineup — overlaps title by 1px */
/* Figma: w-982, padding 26.65 (2.7%), bg white */
.lineup {
    background: #fff;
    padding: 2.7%;
    margin-top: -2px;
    width: 100%;
}

/* Figma: 39.969px, pre-wrap, justify, tracking -0.7994, w-929 in 982 container */
.lineup-text {
    font-size: min(40px, 4.1vw);
    font-weight: 900;
    font-stretch: 151%;
    line-height: 0.9;
    color: #050505;
    letter-spacing: -0.8px;
    white-space: pre;
    text-align: justify;
    text-align-last: justify;
    font-variation-settings:
        'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79,
        'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712,
        'wdth' 151;
}

.lineup-pad {
    color: #fff;
}

/* Figma: w-555 (56.5% of 982), px-26.6 (4.8%), pb-14.6 (2.6%), overflow-clip */
.lineup-more {
    background: #fff;
    width: 56.5%;
    padding: 0 4.8% 2.6%;
    margin-top: -2px;
    overflow: hidden;
}

/* Figma: same font as lineup, 39.969px, justify, pre-wrap */
.lineup-more-text {
    font-size: min(40px, 4.1vw);
    font-weight: 900;
    font-stretch: 151%;
    line-height: 0.9;
    color: #050505;
    letter-spacing: -0.8px;
    white-space: pre-wrap;
    text-align: justify;
    text-align-last: justify;
    font-variation-settings:
        'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79,
        'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712,
        'wdth' 151;
}

/* Sponsors — overlaps lineup by 1px */
.sponsors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(10px, 1.5vw);
    width: 95%;
    max-width: 520px;
    margin-top: -2px;
    background: #CDFF01;
    padding: min(7px, 1vw) min(20px, 3%) min(12px, 1.8vw);
    overflow: hidden;
}

.sponsors-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(20px, 3vw);
}

.sponsor-link {
    display: block;
    flex-shrink: 0;
}

@media (hover: hover) {
    .sponsor-link {
        transition: transform 0.15s ease;
    }

    .sponsor-link:hover {
        transform: scale(1.1);
    }
}

.sponsor-link img {
    display: block;
    height: auto;
    width: auto;
}

.sponsor-alfa img {
    height: min(40px, 6vw);
}

.sponsor-crystal img {
    height: min(40px, 6vw);
}

.sponsor-moskva img {
    height: min(55px, 8.3vw);
}

.sponsor-disco img {
    height: min(55px, 8.3vw);
}

.sponsor-afishadaily img {
    height: min(22px, 3.3vw);
}

.sponsor-schuka img {
    height: min(20px, 3vw);
}

.sponsor-afisha img {
    height: min(23px, 3.5vw);
}

/* Date label — "23 МАЯ" — Figma: 55.957px, p-13.323, whitespace-pre, text-center */
.date-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #CDFF01;
    padding: min(13px, 1.4vw);
    margin-bottom: 0;
    font-size: min(56px, 5.6vw);
    font-weight: 900;
    font-stretch: 151%;
    line-height: 0.9;
    color: #050505;
    text-align: center;
    white-space: pre;
    font-variation-settings:
        'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79,
        'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712,
        'wdth' 151;
}

/* Ticket button */
.btn-ticket {
    display: inline-block;
    margin-bottom: 12px;
    padding: 2% 7%;
    background: #FF0000;
    color: #FFFFFF;
    font-family: 'Roboto Flex', system-ui, sans-serif;
    font-size: min(42px, 4.3vw);
    font-weight: 900;
    font-stretch: 151%;
    line-height: 0.9;
    letter-spacing: -0.6px;
    text-decoration: none;
    border: 1px solid #FF0000;
    cursor: pointer;
    font-variation-settings:
        'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79,
        'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 514, 'YTUC' 712;
}

@media (hover: hover) {
    .btn-ticket {
        transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .btn-ticket:hover {
        transform: scale(1.05);
        background: #fff;
        color: #050505;
    }
}

/* Success page */
.success-card {
    cursor: default;
}

.success-message {
    text-align: center;
    padding: 4% 5%;
}

.btn-back {
    margin-top: 12px;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 700px) {
    .hero {
        padding: 0;
        background-size: cover;
        background-attachment: scroll;
    }

    .card {
        transform: rotate(4deg);
    }

    .sponsor-link {
        flex-shrink: 1;
    }

    .sponsor-link img {
        max-width: 100%;
    }
}
