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

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

@font-face {
    font-family: 'Bespalevo Russ';
    src: url('/assets/fonts/Bespalevo-Russ.woff2?v=2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cera CY';
    src: url('/assets/fonts/CeraCY-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-red: #ff0000;
    --color-yellow: #ffee00;
    --color-orange: #ff5e3a;
    --color-green: #5f9935;
    --color-black: #000000;
    --color-white: #ffffff;

    --font-heading: 'Bespalevo Russ', 'Arial Narrow', sans-serif;
    --font-body: 'Cera CY', 'Helvetica Neue', Arial, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1.25rem;
    --space-md: 2.5rem;
    --space-lg: 3.5rem;
    --space-xl: 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-weight: 400;
    line-height: 1.2;
    text-transform: lowercase;
    color: var(--color-white);
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    background-attachment: fixed;
    -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(1.8rem, 7.5vw, 5rem);
    color: var(--color-green);
    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-white);
    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-white);
    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: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    border-left: 3px solid var(--color-yellow);
    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-white);
    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-white);
    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-white);
    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-white);
    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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md) var(--space-md) var(--space-xl);
}

.hero__artwork {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero__sponsor {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(72px, 12.6vw, 126px);
    display: block;
    z-index: 2;
    transition: transform 0.2s ease;
}

.hero__sponsor img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__sponsor:hover {
    transform: translateX(-50%) scale(1.05);
}

.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(2rem, 8vw, 7.5rem);
    text-transform: uppercase;
    color: var(--color-yellow);
    line-height: 0.85;
    margin-top: var(--space-sm);
}

.hero__dates {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.1rem, 3.8vw, 3rem);
    text-transform: uppercase;
    color: var(--color-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.hero__location {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1.05rem, 2.4vw, 1.6rem);
    color: var(--color-white);
}

@media (max-width: 767px) {
    .hero {
        padding-left: 0;
        padding-right: 0;
    }

    .hero__logo {
        width: 100vw;
        max-width: none;
    }
}

/* --- About --- */

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

.about__text p {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    line-height: 1.5;
    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-family: var(--font-body);
    font-weight: normal;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    color: var(--color-white);
    letter-spacing: 0.4em;
    margin-bottom: var(--space-xs);
}

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

.lineup__list li {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1rem, 3.2vw, 2.625rem);
    text-transform: uppercase;
    color: var(--color-green);
    line-height: 1.1;
}

.lineup__list .lineup__highlight,
.lineup__list .lineup__highlight a {
    color: #def425;
}

.lineup__list .lineup__highlight a {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.lineup__list .lineup__highlight a:hover {
    opacity: 0.75;
}

.lineup__list .lineup__bullet {
    display: flex;
    align-items: center;
    pointer-events: none;
}

.lineup__list .lineup__bullet img {
    height: 0.55em;
    width: auto;
    display: block;
}

/* Ширина сохраняется: буллет влияет на переносы строк одинаково в обоих
   состояниях, иначе скрытие пересобирает строки и ломает замеры в main.js */
.lineup__list .lineup__bullet--hidden {
    visibility: hidden;
}

.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 {
    position: relative;
    padding-top: 5em;
}

.transport__title {
    font-size: clamp(1.125rem, 3vw, 1.875rem);
    color: var(--color-yellow);
    margin-bottom: var(--space-xs);
}

.transport__time {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    text-transform: none;
    color: var(--color-black);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;

    position: absolute;
    top: 0;
    left: 50%;
    width: 4.6em;
    height: 3.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 2;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'><path d='M 60,7 C 84,6 110,24 112,49 C 114,74 92,94 58,92 C 26,94 8,74 9,47 C 10,24 33,7 60,7 Z' fill='%23ff5e3a' stroke='none'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: translateX(-50%) rotate(-6deg);
}

.transport:nth-child(2n) .transport__time {
    transform: translateX(-50%) rotate(5deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'><path d='M 58,9 C 30,7 9,28 11,52 C 12,76 36,94 64,91 C 92,89 113,68 110,44 C 107,22 84,6 58,9 Z' fill='%23ff5e3a' stroke='none'/></svg>");
}

.transport:nth-child(3n) .transport__time {
    transform: translateX(-50%) rotate(-3deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100' preserveAspectRatio='none'><path d='M 62,6 C 87,8 114,30 109,53 C 106,78 79,93 53,90 C 27,87 7,67 11,43 C 14,21 38,6 62,6 Z' fill='%23ff5e3a' stroke='none'/></svg>");
}

.transport__desc {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1.05rem, 2.1vw, 1.4rem);
    line-height: 1.15;
    color: var(--color-white);
}

/* --- Transfer / Parking / Storage --- */

.transfer__text,
.parking__body,
.storage__text,
.hotels__text,
.camping__body,
.tents__body,
.tents__intro,
.artcall__body,
.muscall__body,
.volunteers__body {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    line-height: 1.5;
    color: var(--color-white);
    max-width: 720px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.parking__body p + p,
.camping__body p + p,
.artcall__body p + p,
.muscall__body p + p,
.volunteers__body p + p {
    margin-top: var(--space-sm);
}

.artcall__meta,
.muscall__meta,
.volunteers__meta {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.5;
    opacity: 0.85;
}

.artcall__body a,
.muscall__body a,
.volunteers__body a {
    color: var(--color-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lineup__buttons,
.transfer__buttons,
.parking__buttons,
.storage__buttons,
.camping__buttons,
.tents__buttons,
.artcall__buttons,
.muscall__buttons,
.volunteers__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.lineup__buttons {
    margin-top: var(--space-lg);
}

.lineup__btn,
.transfer__btn,
.parking__btn,
.storage__btn,
.camping__btn,
.tents__btn,
.artcall__btn,
.muscall__btn,
.volunteers__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;
    min-width: 180px;
    text-align: center;
}

.lineup__btn:hover,
.transfer__btn:hover,
.parking__btn:not(.parking__btn--disabled):hover,
.storage__btn:hover,
.camping__btn:not(.camping__btn--disabled):hover,
.tents__btn:not(.tents__btn--disabled):hover,
.muscall__btn:not(.muscall__btn--disabled):hover,
.volunteers__btn:hover,
.artcall__btn:not(.artcall__btn--disabled):hover {
    background-color: var(--color-white);
}

.artcall__btn--disabled,
.camping__btn--disabled,
.muscall__btn--disabled,
.parking__btn--disabled,
.tents__btn--disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
    filter: grayscale(0.6);
}

/* --- Tents (готовые палатки) --- */

/* Якорь #tents: компенсируем большой верхний padding секции, чтобы заголовок
   вставал под шапку (~90px от верха), а не проваливался вглубь раздела */
.tents {
    scroll-margin-top: calc(30px - var(--space-xl));
}

.tents__kit {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.tents__kit-title {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-yellow);
    margin-bottom: var(--space-md);
}

.tents__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 440px;
    text-align: left;
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    line-height: 1.5;
    color: var(--color-white);
}

.tents__list li {
    position: relative;
    padding-left: 1.6em;
}

.tents__list li + li {
    margin-top: var(--space-xs);
}

.tents__list li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background-color: var(--color-yellow);
    border-radius: 50%;
}

.tents__note {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    line-height: 1.5;
    color: var(--color-white);
    opacity: 0.85;
    max-width: 720px;
    margin: var(--space-md) auto 0;
}

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

/* Сетка карточек: два типа палаток и доп. спальные места */
.tents__types,
.tents__addons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    text-align: left;
    margin: 0 auto var(--space-lg);
}

.tents__types { max-width: 860px; align-items: start; }

.tents__addons {
    max-width: 640px;
    margin-bottom: 0;
}

.tent-card {
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-md);
}

.tent-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-yellow);
    line-height: 0.9;
}

.tent-card__desc {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.tent-card__specs {
    max-width: none;
    margin: 0;
    font-size: clamp(0.98rem, 1.9vw, 1.15rem);
}

.tent-card__note {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(0.9rem, 1.7vw, 1.05rem);
    line-height: 1.45;
    color: var(--color-white);
    opacity: 0.7;
    margin-top: var(--space-sm);
}

/* Шапка карточки: центрированная строка с кнопкой-заголовком и иконкой фото */
.tent-card__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
}

.tent-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-yellow);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tent-card__toggle:hover { opacity: 0.8; }
.tent-card__toggle:active { transform: translateY(1px); }

.tent-card__photos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-yellow);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tent-card__photos-btn svg {
    display: block;
    width: clamp(22px, 4.5vw, 28px);
    height: auto;
}

.tent-card__photos-btn:hover { opacity: 0.8; }
.tent-card__photos-btn:active { transform: scale(0.9); }
.tent-card.is-photos-open .tent-card__photos-btn { transform: scale(1.08); }

.tent-card__arrow {
    flex-shrink: 0;
    width: clamp(13px, 2.8vw, 19px);
    height: clamp(13px, 2.8vw, 19px);
    border-right: 4px solid var(--color-yellow);
    border-bottom: 4px solid var(--color-yellow);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.35s ease;
    margin-top: -0.35em;
}

.tent-card.is-open .tent-card__arrow {
    transform: rotate(-135deg);
    margin-top: 0.15em;
}

.tent-card__details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.tent-card.is-open .tent-card__details {
    grid-template-rows: 1fr;
}

.tent-card__details-inner {
    overflow: hidden;
    min-height: 0;
}

.tent-card__details-inner > :first-child {
    margin-top: var(--space-sm);
}

/* Выезжающая галерея фото */
.tent-card__gallery {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.tent-card.is-photos-open .tent-card__gallery {
    grid-template-rows: 1fr;
}

.tent-card__gallery-inner {
    overflow: hidden;
    min-height: 0;
}

.tent-card__gallery-inner > :first-child {
    margin-top: var(--space-xs);
}

.tent-card__gallery-track {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Вертикальные кадры ограничиваем по высоте, иначе карточка вытягивается
   вдвое выше соседней; узкое фото центрируем */
.tent-card__gallery-track img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 460px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.tent-card__figure {
    margin: 0;
}

/* Оговорка про фото — живёт внутри самой галереи, под кадрами */
.tent-card__gallery-note {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.6;
    text-align: center;
    margin-top: var(--space-xs);
}

.tent-card__caption {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    line-height: 1.4;
    color: var(--color-white);
    opacity: 0.7;
    text-align: center;
    margin-top: 0.45em;
}

@media (prefers-reduced-motion: reduce) {
    .tent-card__details,
    .tent-card__gallery,
    .tent-card__arrow,
    .tents-rules__body,
    .tents-rules__arrow {
        transition: none;
    }
}

.tent-addon {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
}

.tent-addon__name {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-yellow);
    margin-bottom: var(--space-sm);
}

.tent-addon .tents__list {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Важные условия */
.tents__terms {
    list-style: none;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.9vw, 1.15rem);
    line-height: 1.5;
    color: var(--color-white);
    opacity: 0.9;
}

.tents__terms li {
    position: relative;
    padding-left: 1.6em;
}

.tents__terms li + li {
    margin-top: var(--space-sm);
}

.tents__terms li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background-color: var(--color-yellow);
    border-radius: 50%;
}

.tents__terms strong {
    color: var(--color-yellow);
    font-weight: 700;
}

/* Аккордеон «Детали» — без рамки */
.tents-rules {
    max-width: 720px;
    margin: var(--space-lg) auto;
}

.tents-rules__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-yellow);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tents-rules__toggle:hover { opacity: 0.8; }
.tents-rules__toggle:active { transform: translateY(1px); }

.tents-rules__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-yellow);
    line-height: 0.9;
}

.tents-rules__arrow {
    flex-shrink: 0;
    width: clamp(13px, 2.8vw, 19px);
    height: clamp(13px, 2.8vw, 19px);
    border-right: 4px solid var(--color-yellow);
    border-bottom: 4px solid var(--color-yellow);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.35s ease;
    margin-top: -0.35em;
}

.tents-rules.is-open .tents-rules__arrow {
    transform: rotate(-135deg);
    margin-top: 0.15em;
}

.tents-rules__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.tents-rules.is-open .tents-rules__body {
    grid-template-rows: 1fr;
}

.tents-rules__body-inner {
    overflow: hidden;
    min-height: 0;
}

.tents-rules__body-inner > :first-child {
    margin-top: var(--space-sm);
}

/* Архив: прошлый формат готовых палаток. Целиком приглушён и обесцвечен,
   чтобы читался как неактуальный, но оставался доступен под дропдауном */
.tents-archive {
    max-width: 860px;
    margin: var(--space-lg) auto;
    filter: grayscale(1);
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.tents-archive:hover,
.tents-archive.is-open {
    opacity: 0.55;
}

.tents-archive__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.tents-archive__toggle:hover { opacity: 0.8; }
.tents-archive__toggle:active { transform: translateY(1px); }

.tents-archive__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
    line-height: 0.9;
}

.tents-archive__arrow {
    flex-shrink: 0;
    width: clamp(13px, 2.8vw, 19px);
    height: clamp(13px, 2.8vw, 19px);
    border-right: 4px solid var(--color-white);
    border-bottom: 4px solid var(--color-white);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.35s ease;
    margin-top: -0.35em;
}

.tents-archive.is-open .tents-archive__arrow {
    transform: rotate(-135deg);
    margin-top: 0.15em;
}

.tents-archive__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.tents-archive.is-open .tents-archive__body {
    grid-template-rows: 1fr;
}

.tents-archive__body-inner {
    overflow: hidden;
    min-height: 0;
}

.tents-archive__body-inner > :first-child {
    margin-top: var(--space-lg);
}

@media (prefers-reduced-motion: reduce) {
    .tents-archive__body,
    .tents-archive__arrow {
        transition: none;
    }
}

@media (max-width: 767px) {
    .tents__types,
    .tents__addons {
        grid-template-columns: 1fr;
    }
}

/* --- 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-white);
    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-white);
    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-white);
}

/* --- Partners --- */

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

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

.partners__label {
    font-family: var(--font-body);
    font-weight: normal;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--color-white);
    letter-spacing: 0.25em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

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

.partners__logos--colored img {
    filter: none;
}

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

.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: 10px;
    bottom: calc(var(--buy-btn-height) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 199;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.1rem;
    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, bottom 0.35s 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(6rem, 18.75vw, 15rem);
    color: var(--color-yellow);
    line-height: 0.85;
}

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

.error-page__link {
    font-family: var(--font-heading);
    font-style: normal;
    font-size: 1.5rem;
    color: var(--color-white);
    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: 7rem;
    }

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

    .nav__link {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: clamp(3rem, 10.5vw, 7.5rem);
    }

    .burger {
        display: none;
    }

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

    .nav__buy {
        font-size: 1.3rem;
    }

    .site-header--scrolled {
        background-color: rgba(0, 0, 0, 0.85);
        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: 8rem;
    }

    .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;
    }
}
