/* ========================================
   КРУТО 2026 — Festival Landing Styles
   ======================================== */

/* --- Font Faces --- */

@font-face {
    font-family: 'Zhivov Condensed';
    src: url('/assets/fonts/Zhivov-Condensed-Web.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant';
    src: url('/assets/fonts/Cormorant-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}

/* --- Design Tokens --- */

:root {
    --color-red: #ff0000;
    --color-yellow: #ffee00;
    --color-black: #000000;
    --color-white: #ffffff;

    --font-heading: 'Zhivov Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Cormorant', 'Georgia', serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;

    --content-max-width: 960px;
    --buy-btn-height: 60px;
}

/* --- Reset --- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-black);
    background-color: var(--color-red);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--buy-btn-height);
    padding-bottom: calc(var(--buy-btn-height) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
}

/* --- Typography --- */

h1, h2, h3 {
    font-family: var(--font-heading);
    font-style: normal;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(3.5rem, 12vw, 9rem);
    color: var(--color-yellow);
    paint-order: stroke fill;
    -webkit-text-stroke: 2px var(--color-black);
    margin-bottom: var(--space-lg);
}

/* --- Section Container --- */

.section {
    padding: var(--space-xl) var(--space-md);
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: center;
}

/* --- Header / Nav --- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.site-header--scrolled {
    background-color: transparent;
}

/* --- Header Cat (scroll to top) --- */

.header-cat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* Mobile: push cat left, burger right */
@media (max-width: 767px) {
    .site-header {
        justify-content: space-between;
    }
}

.header-cat img {
    width: 36px;
    height: 36px;
    filter:
        drop-shadow(1px 0 0 var(--color-black))
        drop-shadow(-1px 0 0 var(--color-black))
        drop-shadow(0 1px 0 var(--color-black))
        drop-shadow(0 -1px 0 var(--color-black));
    transition: transform 0.2s ease;
}

.header-cat:active img {
    transform: scale(0.9);
}

/* Nav hidden on mobile, shown on desktop */
.nav {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    transition: color 0.25s ease;
}

.nav__link:hover {
    color: var(--color-yellow);
}

.nav__link--active {
    color: var(--color-yellow);
}

.nav__buy {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.15rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    color: var(--color-black);
    background-color: var(--color-yellow);
    border: 2px solid var(--color-black);
    margin-left: var(--space-sm);
    transition: background-color 0.2s ease;
}

.nav__buy:hover {
    background-color: var(--color-white);
}

/* --- Burger Button (mobile only) --- */

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.burger__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Drawer --- */

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.35s;
}

.drawer--open {
    pointer-events: auto;
    visibility: visible;
}

.drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.2, 0, 0, 1);
    will-change: opacity;
}

.drawer--open .drawer__overlay {
    opacity: 1;
}

.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background-color: var(--color-red);
    border-left: 3px solid var(--color-black);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
}

.drawer--open .drawer__panel {
    transform: translateX(0);
}

.drawer__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-black);
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.drawer__link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.drawer__link:hover,
.drawer__link:active {
    color: var(--color-yellow);
}

.drawer__bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.drawer__buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.1em;
    border: 3px solid var(--color-black);
}

.drawer__info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drawer__info-dates {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

.drawer__info-place {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.3;
}

.drawer__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.drawer__contact-link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 0.95rem;
    color: var(--color-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer__contact-link:hover,
.drawer__contact-link:active {
    color: var(--color-yellow);
}

.drawer__tg-icon {
    flex-shrink: 0;
}

.drawer__privacy-link {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.3rem;
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.hero__logo {
    width: clamp(280px, 70vw, 700px);
    height: auto;
    display: block;
    filter:
        drop-shadow(2px 0 0 var(--color-black))
        drop-shadow(-2px 0 0 var(--color-black))
        drop-shadow(0 2px 0 var(--color-black))
        drop-shadow(0 -2px 0 var(--color-black));
}

.hero__cat {
    width: clamp(40px, 10vw, 80px);
    height: auto;
    display: block;
    filter:
        drop-shadow(2px 0 0 var(--color-black))
        drop-shadow(-2px 0 0 var(--color-black))
        drop-shadow(0 2px 0 var(--color-black))
        drop-shadow(0 -2px 0 var(--color-black));
    margin-top: var(--space-sm);
}

.hero__year {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(3.5rem, 12vw, 10rem);
    text-transform: uppercase;
    color: var(--color-yellow);
    paint-order: stroke fill;
    -webkit-text-stroke: 2px var(--color-black);
    line-height: 0.85;
    margin-top: var(--space-sm);
}

.hero__dates {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(2rem, 6vw, 4rem);
    text-transform: uppercase;
    color: var(--color-black);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.hero__location {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--color-white);
}

/* --- About --- */

.about__text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about__text p {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    line-height: 1.45;
    color: var(--color-white);
}

.about__text p + p {
    margin-top: var(--space-sm);
}

/* --- Lineup --- */

.lineup {
    text-align: center;
}

.lineup__category {
    margin-bottom: var(--space-lg);
}

.lineup__label {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    color: var(--color-black);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.lineup__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs) var(--space-md);
}

.lineup__list li {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    text-transform: uppercase;
    color: var(--color-yellow);
    paint-order: stroke fill;
    -webkit-text-stroke: 2px var(--color-black);
    line-height: 1.1;
}

.lineup__more {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--color-white);
    margin-top: var(--space-md);
}

/* --- How to Get There --- */

.transport-options {
    display: grid;
    gap: var(--space-lg);
    text-align: center;
}

.transport__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-yellow);
    paint-order: stroke fill;
    -webkit-text-stroke: 2px var(--color-black);
    margin-bottom: var(--space-xs);
}

.transport__time {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    text-transform: uppercase;
    color: var(--color-black);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.transport__desc {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    line-height: 1.45;
    color: var(--color-white);
}

/* --- Footer --- */

.site-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    padding-bottom: calc(var(--space-sm) + var(--buy-btn-height));
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer__contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.footer__contact-link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.1rem;
    color: var(--color-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.footer__contact-link:hover {
    color: var(--color-yellow);
}

.footer__tg-icon {
    flex-shrink: 0;
}

.footer__legal {
    margin-bottom: var(--space-xs);
}

.footer__legal-link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer__legal-link:hover {
    opacity: 1;
}

.footer__copy {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
}

/* --- Partners --- */

.partners {
    margin-bottom: var(--space-md);
}

.partners__group {
    margin-bottom: var(--space-lg);
}

.partners__label {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--color-black);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    text-align: center;
}

/* White logos */
.partners img {
    filter: brightness(0) invert(1);
}

/* Partner logos grid */
.partners__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md) var(--space-lg);
}

.partners__logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 32px;
}

.partners__logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Main partner — larger */
.partners__logos--main a {
    width: 140px;
    height: 48px;
}

/* Partner logo hover — desktop only */
.partners__logos a {
    transition: transform 0.25s ease;
}

@media (hover: hover) {
    .partners__logos a:hover {
        transform: scale(1.12);
    }
}

/* --- Cat scroll animation --- */

@keyframes cat-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-3px, -2px) rotate(-1deg); }
    20% { transform: translate(4px, 1px) rotate(1deg); }
    30% { transform: translate(-2px, 3px) rotate(-0.5deg); }
    40% { transform: translate(3px, -1px) rotate(0.5deg); }
    50% { transform: translate(-4px, 2px) rotate(-1deg); }
    60% { transform: translate(2px, -3px) rotate(1deg); }
    70% { transform: translate(-3px, 1px) rotate(-0.5deg); }
    80% { transform: translate(4px, -2px) rotate(0.5deg); }
    90% { transform: translate(-2px, 3px) rotate(-1deg); }
}

.hero__cat--shaking {
    animation: cat-shake 0.3s linear infinite;
}

/* --- Buy Button --- */

.buy-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--buy-btn-height);
    height: calc(var(--buy-btn-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.1em;
    border-top: 3px solid var(--color-black);
    transition: background-color 0.2s ease;
}

.buy-btn--visible {
    /* desktop only — handled in 1024px media query */
}

.buy-btn:hover {
    background-color: var(--color-white);
}

/* --- Cookie Banner --- */

.cookie-banner {
    position: fixed;
    bottom: var(--buy-btn-height);
    bottom: calc(var(--buy-btn-height) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 198;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem var(--space-sm);
    background-color: var(--color-black);
    border-top: 2px solid var(--color-yellow);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner__cat {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.cookie-banner__cat--left {
    transform: scaleX(-1);
}

.cookie-banner__text {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 0.03em;
}

.cookie-banner__link {
    color: var(--color-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__btn {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black);
    background-color: var(--color-yellow);
    border: 2px solid var(--color-yellow);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .cookie-banner__btn:hover {
        background-color: var(--color-white);
    }
}

/* --- Scroll to Top Button --- */

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: calc(var(--buy-btn-height) + 12px + env(safe-area-inset-bottom, 0px));
    z-index: 199;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: 3px solid var(--color-black);
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.scroll-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: hover) {
    .scroll-top:hover {
        background-color: var(--color-white);
    }
}

.scroll-top:active {
    transform: scale(0.92);
}

.drawer--open ~ .scroll-top {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* --- 404 Page --- */

.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0;
}

.error-page {
    text-align: center;
    padding: var(--space-md);
}

.error-page__code {
    font-size: clamp(8rem, 25vw, 20rem);
    color: var(--color-yellow);
    paint-order: stroke fill;
    -webkit-text-stroke: 3px var(--color-black);
    line-height: 0.85;
}

.error-page__text {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--color-black);
    margin: var(--space-md) 0;
}

.error-page__link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.5rem;
    color: var(--color-black);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.error-page__link:hover {
    color: var(--color-yellow);
}

/* --- Success Page --- */

.page-success {
    padding-bottom: 0;
}

.success-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.success-block .section-title {
    margin-bottom: 0;
}

.success-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: bold;
    color: var(--color-black);
    background-color: var(--color-yellow);
    padding: var(--space-sm) var(--space-lg);
    border: 3px solid var(--color-black);
    transition: background-color 0.2s ease;
}

.success-btn:hover {
    background-color: var(--color-white);
}

/* --- Responsive --- */

@media (min-width: 768px) {
    :root {
        --space-xl: 5rem;
    }

    .nav {
        display: flex;
        gap: var(--space-md);
    }

    .nav__link {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: clamp(4rem, 14vw, 10rem);
    }

    .burger {
        display: none;
    }

    .site-header {
        justify-content: center;
    }

    .nav__buy {
        font-size: 1.3rem;
    }

    .site-header--scrolled {
        background-color: rgba(255, 0, 0, 0.95);
        backdrop-filter: blur(4px);
    }

    .transport-options {
        grid-template-columns: 1fr 1fr;
    }

    .partners__logos a {
        width: 100px;
        height: 36px;
    }

    .partners__logos--main a {
        width: 160px;
        height: 56px;
    }
}

@media (min-width: 1024px) {
    :root {
        --space-xl: 6rem;
    }

    .buy-btn {
        display: none;
    }

    .cookie-banner {
        left: auto;
        right: 16px;
        bottom: 24px;
        width: 300px;
        border: 2px solid var(--color-yellow);
        border-radius: 0;
    }

    .scroll-top {
        bottom: 24px;
        transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease, background-color 0.2s ease;
    }

    body {
        padding-bottom: 0;
    }
}
