/* CMP MUSIC TALENT — сайт заявок. Токены бренда: docs/brand.md */
:root {
  --bg: #0D0D12;
  --surface: #16161D;
  --panel: #121218;
  --line: #2B2B36;
  --line-soft: #22222B;
  --line-strong: #3A3A46;
  --text: #F5F5F3;
  --soft: #D6D6DC;
  --muted: #A9A9B3;
  --accent: #F0413A;
  --accent-hover: #FF7A73;
  --on-accent: #0D0D12;
  --display: 'Russo One', sans-serif;
  --body: 'Arimo', Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
h3 { font-size: 20px; }
.h2--big { font-size: clamp(36px, 5vw, 68px); line-height: 1.05; }
.h3--section { font-size: 24px; }
input, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--md { gap: 24px; }
.stack--lg { gap: 28px; }
.stack--xl { gap: 48px; }
.stack--xxl { gap: 56px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split > * { flex: 1 1 320px; min-width: 0; }
.split > .split__wide { flex: 2 1 520px; }
.split--start { align-items: flex-start; }
.split--end { align-items: flex-end; }
.split--end > * { flex-basis: 420px; }

.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 15px; }
.lead { font-size: 20px; line-height: 1.4; }
.text-lg { font-size: 19px; color: var(--soft); }
.text-lg b { color: var(--text); }
.center { text-align: center; }
.accent { color: var(--accent); }
.eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); text-decoration: none; font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--ghost { background: transparent; border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--block { width: 100%; min-height: 60px; font-size: 18px; }

/* header */
.header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line-soft); background: rgba(13, 13, 18, 0.92); backdrop-filter: blur(8px); }
.header__row { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--soft); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 89px); min-height: calc(100svh - 89px); display: flex; align-items: center; padding: 96px 0 88px; background: #040407; }
.hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* затемнение слева под текстом и снизу к следующему разделу */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(4,4,7,0.88) 0%, rgba(4,4,7,0.62) 34%, rgba(4,4,7,0) 58%), linear-gradient(180deg, rgba(4,4,7,0) 70%, var(--bg) 100%); }
.hero__content { width: 100%; }
@media (max-width: 900px) { .hero::after { background: linear-gradient(180deg, rgba(4,4,7,0.15) 0%, rgba(4,4,7,0.55) 40%, rgba(4,4,7,0.85) 100%); } }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.badge span { width: 8px; height: 8px; background: var(--accent); }
.hero__title { font-size: clamp(44px, 7.2vw, 104px); line-height: 1.02; letter-spacing: -0.01em; }
.hero__lead { max-width: 640px; font-size: 20px; color: var(--soft); }

/* stats */
.stats { margin-top: 32px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-strong); }
.stats--boxed { margin-top: 0; border-bottom: 1px solid var(--line-strong); }
.stat { flex: 1 1 220px; padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 4px; color: var(--soft); }
.stat__num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.stat__num--xl { font-size: clamp(40px, 4.5vw, 60px); }

/* sections */
.section { padding: 104px 0; }
.section--flush-top { padding-top: 0; }
.section--border { border-top: 1px solid var(--line-soft); }
.section--panel { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { display: flex; flex-direction: column; gap: 4px; }

/* step cards */
.cards { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card__num { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); }
.card--hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card--hot .card__num { color: var(--on-accent); }
.card--hot p:not(.card__num) { color: #2A1416; }

/* tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { flex: 1 1 260px; background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tile svg { color: var(--accent); }

/* shows */
.shows { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.show { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.show__date { font-family: var(--display); font-size: 15px; color: var(--accent); }
.show__city { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.show__venue { font-size: 14px; color: var(--muted); }
.show__lineup { padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.show--hot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.show--hot .show__date, .show--hot .show__lineup { color: var(--on-accent); }
.show--hot .show__venue { color: #2A1416; }
.show--hot .show__lineup { border-top-color: rgba(13, 13, 18, 0.3); }

/* apply */
.box { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.list { margin: 0; padding-left: 20px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--line); }
.form { padding: 40px; display: flex; flex-direction: column; gap: 28px; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
legend { padding: 0; margin-bottom: 18px; font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.row-fields { display: flex; flex-wrap: wrap; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-fields > .field { flex: 1 1 220px; }
.row-fields > .field--narrow { flex: 1 1 120px; }
.row-fields > .field--wide { flex: 3 1 220px; }
label, .label { font-size: 14px; color: var(--soft); }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="number"], textarea { min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); width: 100%; }
textarea { padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7C7C88; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 15px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.checks { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form__error { color: var(--accent-hover); font-size: 15px; }
.form .small.center { margin-top: -12px; }
.done { padding: 64px 40px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.done svg { color: var(--accent); }
.done h3 { font-size: 32px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 26px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 48px 20px 0; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0; }
.footer__row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer__row img { height: 96px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer__nav a { color: var(--soft); }
.footer__copy { width: 100%; }

@media (max-width: 600px) {
  .hero { padding: 72px 0 64px; }
  .section { padding: 72px 0; }
  .form { padding: 24px; }
  .done { padding: 40px 24px; }
}

/* gallery — слайдер фото с шоу в разделе «Организатор» */
.gallery { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.gallery__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.gallery__img--tall { object-position: center 30%; }
.gallery__img.is-active { opacity: 1; transform: scale(1); }
.gallery__bar { display: flex; align-items: center; gap: 20px; padding: 0 0 0 20px; border-top: 1px solid var(--line); }
.gallery__count { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.gallery__count span:first-child { color: var(--text); }
.gallery__progress { flex: 1; height: 2px; background: var(--line); }
.gallery__progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.gallery__nav { display: flex; }
.gallery__btn { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; background: transparent; border: 0; border-left: 1px solid var(--line); color: var(--text); cursor: pointer; }
.gallery__btn:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 640px) { .gallery__frame { aspect-ratio: 4 / 5; } }
@media (prefers-reduced-motion: reduce) { .gallery__img { transition: opacity 0.4s linear; transform: none; } .gallery__img.is-active { transform: none; } }

/* полоса цифр под анимированной шапкой */
.hero-stats { background: var(--bg); }
.hero-stats .stats { margin-top: 0; }

/* скрытое поле-ловушка для спам-ботов */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
