/* ФЕСТИК 2026 — лендинг
   Палитра и типографика взяты из печатного постера:
   кремовый #f4eee1, чернила #161310, Helvetica Neue.
   Хиро — фото площадки с белым знаком. */

:root {
    --cream: #f4eee1;
    --ink: #161310;
    --pink: #ff30a8;
    --muted: rgba(22, 19, 16, .5);
    --rule: rgba(22, 19, 16, .18);

    --hdr-h: 56px;
    --wrap: 1180px;

    --sans: 'Helvetica Neue', HelveticaNeue, Helvetica, Arial, sans-serif;
}

@media (min-width: 760px) {
    :root { --hdr-h: 68px; }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.2;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ───────────────────────── Фон ─────────────────────────
   Фото зафиксировано, контент скроллится поверх. Отдельный слой,
   а не background-attachment: fixed — тот ломается в iOS Safari. */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.bg__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(22,19,16,.55) 0%,
        rgba(22,19,16,.35) 30%,
        rgba(22,19,16,.72) 100%);
}

main {
    position: relative;
    z-index: 1;
}

/* ───────────────────────── Логотип ─────────────────────────
   Логотип рисуем CSS-маской, а не <img>: в SVG буквы выбиты насквозь,
   и маска позволяет красить знак в любой цвет через background. */
.mark {
    display: block;
    flex: none;
}

.mark__logo {
    display: block;
    width: 74px;
    aspect-ratio: 220.93 / 69.11;
    background: var(--ink);
    -webkit-mask: url(../images/logos/festik.svg) no-repeat center / contain;
            mask: url(../images/logos/festik.svg) no-repeat center / contain;
}

/* ───────────────────────── Шапка ───────────────────────── */

.hdr {
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--hdr-h);
    background: #fff;
    border-bottom: 1px solid var(--rule);
}

.hdr__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hdr .mark__logo { width: 72px; }

.hdr__nav {
    display: none;
    gap: 22px;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: lowercase;
}

.hdr__nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.hdr__nav a:hover { border-bottom-color: var(--ink); }

.hdr__spacer { flex: 1; }

/* Генеральный партнёр */
.hdr__gen {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    margin-right: 2px;
    border-right: 1px solid var(--rule);
}

.hdr__gen-label {
    font-size: 9px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.hdr__gen img { width: 78px; }

.hdr__gen:hover img { opacity: .75; }
.hdr__gen img { transition: opacity .15s ease; }

/* ───────────────────────── Кнопка билетов ───────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pink);
    color: var(--cream);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 11px 20px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: transform .12s ease, background-color .15s ease;
}

.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }

.btn--lg {
    font-size: clamp(15px, 2.4vw, 20px);
    padding: 18px 44px;
    letter-spacing: .12em;
}

.hdr .btn { flex: none; padding: 10px 16px; font-size: 11px; }

@media (min-width: 760px) {
    .hdr__nav { display: flex; }
    .hdr .mark__logo { width: 92px; }
    .hdr .btn { padding: 11px 22px; font-size: 12px; }
}

/* ───────────────────────── Хиро ─────────────────────────
   Фото площадки на весь экран + крупный белый знак «2 / фестик / 6».
   Знак — CSS-маска: буквы в SVG выбиты насквозь, поэтому сквозь них
   видно затемнённое фото, а плашка и цифры заливаются белым. */

.hero {
    min-height: calc(100svh - var(--hdr-h));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6vh 20px;
}

.hero__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(74vw, 460px);
    aspect-ratio: 220.93 / 180.64;
    background: #fff;
    -webkit-mask: url(../images/logos/festik-2026.svg) no-repeat center / contain;
            mask: url(../images/logos/festik-2026.svg) no-repeat center / contain;
}

/* ───────────────────────── Секции ───────────────────────── */

.sec {
    padding: 72px 0 84px;
    scroll-margin-top: var(--hdr-h);
}

@media (min-width: 760px) {
    .sec { padding: 110px 0 120px; }
}

.sec--rule { border-top: 1px solid rgba(255,255,255,.22); }

.sec__title {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    text-align: center;
    margin-bottom: 48px;
}

@media (min-width: 760px) {
    .sec__title { margin-bottom: 68px; }
}

/* ───────────────────────── Лайнап ───────────────────────── */

.days {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 760px) {
    .days {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        align-items: start;
    }
}

.day { text-align: center; }

.day__num {
    font-size: clamp(56px, 11vw, 88px);
    line-height: .9;
    letter-spacing: -.03em;
}

.day__month {
    font-size: clamp(14px, 2.6vw, 17px);
    margin-top: 10px;
}

.day__dow {
    font-size: clamp(13px, 2.4vw, 16px);
    color: rgba(255,255,255,.62);
    font-weight: 400;
    margin-top: 6px;
}

/* Кураторский блок дня. Звёзды — inline-псевдоэлементы внутреннего
   span'а, иначе при переносе строки они уезжают на отдельные строки.
   min-height выравнивает начало списков артистов во всех колонках. */
.day__curator {
    font-size: clamp(12px, 2.2vw, 14px);
    line-height: 1.4;
    letter-spacing: .04em;
    margin: 26px auto 0;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day__curator span::before { content: '★\00a0\00a0'; }
.day__curator span::after  { content: '\00a0\00a0★'; }

.day__acts {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.day__acts li {
    font-size: clamp(15px, 3.2vw, 18px);
    line-height: 1.12;
    letter-spacing: .01em;
}

@media (min-width: 760px) {
    .day__acts li { font-size: clamp(14px, 1.5vw, 17px); }
}

.act__note {
    font-weight: 400;
    color: rgba(255,255,255,.62);
    font-size: .82em;
    letter-spacing: 0;
}

.day__more {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255,255,255,.62);
}

.lineup__note {
    margin-top: 64px;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.62);
}

.lineup__cta {
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

/* ───────────────────────── Площадка ───────────────────────── */

.venue { text-align: center; }

.venue__logo {
    width: 132px;
    margin: 0 auto 26px;
}

.venue__name {
    font-size: clamp(26px, 6vw, 52px);
    line-height: 1.05;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.venue__addr {
    margin-top: 16px;
    font-size: clamp(15px, 2.8vw, 19px);
    font-weight: 400;
}

.venue__metro {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.62);
}

.venue__link {
    color: #fff;
    display: inline-block;
    margin-top: 28px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.7);
    padding-bottom: 3px;
}

.venue__link:hover { color: var(--pink); border-bottom-color: var(--pink); }

/* ───────────────────────── Партнёры ───────────────────────── */

.partners { text-align: center; }

.partners__label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    margin-bottom: 22px;
}

.partners__general img { width: clamp(150px, 26vw, 210px); margin: 0 auto; }

.partners__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 56px;
}

.partners__row img { opacity: .9; transition: opacity .15s ease; }
.partners__row a:hover img { opacity: 1; }

.partners__row .logo-oakheart { width: clamp(104px, 20vw, 158px); }
.partners__row .logo-dzen     { width: clamp(84px, 16vw, 124px); }

.partners__group + .partners__group { margin-top: 60px; }

@media (min-width: 760px) {
    .partners__group + .partners__group { margin-top: 76px; }
}

/* ───────────────────────── Мобильная кнопка билетов ─────────────────────────
   На узких экранах кнопка уходит из шапки и залипает внизу экрана. */

.cta-fixed {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(22,19,16,.92) 40%, rgba(22,19,16,0));
}

.cta-fixed .btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
}

@media (max-width: 759px) {
    .cta-fixed { display: block; }
    .hdr__gen  { border-right: 0; padding-right: 0; margin-right: 0; }
    .hdr .btn  { display: none; }
    body       { padding-bottom: 88px; }
    .lineup__cta { display: none; }
}
