/* NOT FEST — хаб-сторінка notfest.in.ua
   Поділений екран: Bachata | Salsa → архів → мерч.
   Усі ассети хабу лежать під /hub/, щоб не перетинатися з файлами сайтів
   едішнів (/css/style.css, /js/app.js), які колись жили на цьому ж домені. */

@font-face {
  font-family: 'Hyperwave One';
  src: url('../fonts/hyperwave-one.ttf?v=307c5d3f9a') format('truetype');
  font-display: swap;
}

:root {
  --bachata: #2F6BC8;
  --bachata-deep: #1E4C97;
  --bachata-ink: #0E1B33;
  --bachata-soft: #9DC0FF;
  --bachata-grad: linear-gradient(100deg, #5B96F8 0%, #B4D2FF 100%);

  --salsa: #E2652A;
  --salsa-deep: #A83D0C;
  --salsa-ink: #2A1206;
  --salsa-soft: #FFC06A;
  --salsa-grad: linear-gradient(100deg, #FF7A2B 0%, #FFB03A 100%);

  --copa: #D9A520;
  --copa-deep: #7A5800;

  --ink: #14110F;
  --text: #5A4F48;
  --text-soft: #6B5F57;
  --paper: #F7F4EE;
  --white: #ffffff;

  --font-display: 'Unbounded', 'Golos Text', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', sans-serif;
  --font-brush: 'Hyperwave One', 'Unbounded', cursive;

  --gutter: clamp(20px, 6vw, 88px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

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

/* ============ верхня смуга ============ */
.top {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0;
  height: 136px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--white);
  pointer-events: none;
}
.top-place {
  width: 320px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.top-logo { line-height: 0; }
.top-logo img { width: 200px; height: auto; }
.lang {
  width: 320px;
  display: flex; justify-content: flex-end; align-items: center; gap: 4px;
  pointer-events: auto;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
}
.lang > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 44px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang [aria-current] { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.lang a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ============ поділений екран ============ */
.hero {
  /* --split — де проходить шов (у % ширини), --slant — нахил шва.
     data-lead="bachata" | "salsa" віддає одному едішну більшу половину
     (сезон продажів); без атрибута — порівну. */
  --split: 50%;
  --slant: 3.5%;
  position: relative;
  height: clamp(760px, 100svh, 1040px);
  overflow: hidden;
  background: var(--bachata-ink);
  isolation: isolate;
}
.hero[data-lead="bachata"] { --split: 62%; }
.hero[data-lead="salsa"] { --split: 38%; }

.panel {
  position: absolute; inset: 0;
  display: block;
  color: var(--white);
  transition: clip-path 0.7s var(--ease);
}
.panel--bachata {
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(20, 38, 74, 0.86) 0%, rgba(14, 27, 51, 0.94) 60%),
    url('../img/graffiti.webp?v=307c5d3f9a') center / cover no-repeat;
  clip-path: polygon(0 0, calc(var(--split) + var(--slant)) 0, calc(var(--split) - var(--slant)) 100%, 0 100%);
}
.panel--salsa {
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(59, 27, 11, 0.86) 0%, rgba(42, 18, 6, 0.94) 60%),
    url('../img/graffiti.webp?v=307c5d3f9a') center / cover no-repeat;
  clip-path: polygon(calc(var(--split) + var(--slant)) 0, 100% 0, 100% 100%, calc(var(--split) - var(--slant)) 100%);
}

.glow {
  position: absolute; border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: glowFloat 14s ease-in-out infinite alternate;
}
.panel--bachata .glow-1 { left: -160px; top: -220px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(47, 107, 200, 0.62) 0%, rgba(47, 107, 200, 0) 70%); }
.panel--bachata .glow-2 { left: 25%; bottom: -260px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(30, 113, 246, 0.36) 0%, rgba(30, 113, 246, 0) 70%); animation-delay: 4s; }
.panel--salsa .glow-1 { right: -160px; top: -220px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(226, 101, 42, 0.62) 0%, rgba(226, 101, 42, 0) 70%); }
.panel--salsa .glow-2 { right: 25%; bottom: -260px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 106, 19, 0.34) 0%, rgba(255, 106, 19, 0) 70%); animation-delay: 4s; }

@keyframes glowFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

.panel-body {
  position: absolute; top: 0; bottom: 0;
  width: min(520px, 37vw);
  padding-top: 84px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  transition: opacity 0.5s ease;
  animation: riseIn 0.9s var(--ease) both;
}
.panel--bachata .panel-body { left: var(--gutter); }
.panel--salsa .panel-body { right: var(--gutter); align-items: flex-end; text-align: right; animation-delay: 0.12s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  margin-bottom: 16px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.panel--bachata .kicker { color: var(--bachata-soft); }
.panel--salsa .kicker { color: var(--salsa-soft); }

.panel-title {
  margin-bottom: 20px;
  /* мазки пензля виходять за рамку літери — лишаємо їм місце */
  padding: 0.06em 0.12em 0 0;
  font-family: var(--font-brush); font-weight: 400;
  font-size: clamp(96px, 12.2vw, 188px);
  line-height: 0.86; white-space: nowrap;
  color: var(--white);
}
.panel--salsa .panel-title { padding: 0.06em 0 0 0.12em; }

.panel-sub {
  margin-bottom: 30px; max-width: 430px;
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.status {
  width: min(430px, 100%);
  margin-bottom: 28px;
  padding: 20px 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.panel--salsa .status { align-items: flex-end; }
.status-chip {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
.panel--salsa .status-chip { flex-direction: row-reverse; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); flex: none; }
.dot--live { background: #FFB03A; box-shadow: 0 0 0 5px rgba(255, 176, 58, 0.22); animation: pulse 2.4s ease-in-out infinite; }
.panel--bachata .dot--live { background: #8DB8FF; box-shadow: 0 0 0 5px rgba(141, 184, 255, 0.24); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }

.status-name {
  padding: 0.1em 0.22em 0.1em 0;
  font-family: var(--font-brush); font-size: clamp(36px, 3.5vw, 50px); line-height: 1.1; white-space: nowrap;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel--bachata .status-name { background-image: var(--bachata-grad); }
.panel--salsa .status-name { background-image: var(--salsa-grad); padding: 0.1em 0.12em; }
.status-meta { font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.status-note { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.7); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.btn svg { flex: none; transition: transform 0.3s var(--ease); }
.panel--bachata .btn { background: var(--bachata-grad); color: var(--bachata-ink); }
.panel--salsa .btn { background: var(--salsa-grad); color: var(--salsa-ink); }
.btn--dark { background: var(--ink); color: var(--white); height: 52px; padding: 0 26px; font-size: 13px; }

.seam {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.6);
  clip-path: polygon(
    calc(var(--split) + var(--slant)) 0,
    calc(var(--split) + var(--slant) + 2px) 0,
    calc(var(--split) - var(--slant) + 2px) 100%,
    calc(var(--split) - var(--slant)) 100%);
  transition: clip-path 0.7s var(--ease);
  /* під лого і біля нижньої кнопки лінія зникає */
  -webkit-mask-image: linear-gradient(to bottom, transparent 150px, #000 240px, #000 calc(100% - 120px), transparent calc(100% - 40px));
  mask-image: linear-gradient(to bottom, transparent 150px, #000 240px, #000 calc(100% - 120px), transparent calc(100% - 40px));
}

.hero-more {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.2s ease;
}
.hero-more:hover { background: rgba(10, 10, 12, 0.72); }

/* Сезон продажів: едішн-лідер більший, сусід стискається до анонсу */
.hero[data-lead="bachata"] .panel--bachata .panel-body,
.hero[data-lead="salsa"] .panel--salsa .panel-body { width: min(700px, 48vw); }
.hero[data-lead="bachata"] .panel--bachata .panel-title,
.hero[data-lead="salsa"] .panel--salsa .panel-title { font-size: clamp(110px, 15.5vw, 240px); }
.hero[data-lead="bachata"] .panel--salsa .panel-body,
.hero[data-lead="salsa"] .panel--bachata .panel-body { width: min(380px, 26vw); }
.hero[data-lead="bachata"] .panel--salsa .panel-title,
.hero[data-lead="salsa"] .panel--bachata .panel-title { font-size: clamp(72px, 8vw, 120px); }
.hero[data-lead="bachata"] .panel--salsa .panel-sub,
.hero[data-lead="salsa"] .panel--bachata .panel-sub { display: none; }

/* Наведення: половина під курсором розширюється, сусідня пригасає */
@media (hover: hover) and (min-width: 900px) {
  .hero:has(.panel--bachata:hover),
  .hero:has(.panel--bachata:focus-visible) { --split: 56%; }
  .hero:has(.panel--salsa:hover),
  .hero:has(.panel--salsa:focus-visible) { --split: 44%; }
  .hero[data-lead="bachata"]:has(.panel--bachata:hover) { --split: 65%; }
  .hero[data-lead="bachata"]:has(.panel--salsa:hover) { --split: 57%; }
  .hero[data-lead="salsa"]:has(.panel--salsa:hover) { --split: 35%; }
  .hero[data-lead="salsa"]:has(.panel--bachata:hover) { --split: 43%; }

  .hero:has(.panel--bachata:hover) .panel--salsa .panel-body,
  .hero:has(.panel--salsa:hover) .panel--bachata .panel-body { opacity: 0.5; }

  .panel:hover .btn { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); }
  .panel:hover .btn svg { transform: translateX(4px); }
}
.panel:focus-visible { outline: none; }
.panel:focus-visible .btn { outline: 3px solid var(--white); outline-offset: 4px; }

/* ============ секції під екраном ============ */
.section { padding: 76px var(--gutter) 72px; }
.section--white { background: var(--white); }
.section-inner { max-width: 1264px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-tag {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-soft);
}
.section-title { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; }
.section-lead { font-size: 16px; color: var(--text); }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--white);
  box-shadow: 0 16px 40px rgba(20, 17, 15, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(20, 17, 15, 0.14); }
.card-cover { width: 100%; height: 186px; object-fit: cover; }
.grid--3 .card-cover { height: 200px; }
.card-cover--salsa-2026 {
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(168, 61, 12, 0.84) 0%, rgba(42, 18, 6, 0.92) 100%),
    url('../img/graffiti.webp?v=307c5d3f9a') center / cover no-repeat;
}
.card-cover--salsa-2026 span {
  padding: 0.1em 0.2em;
  font-family: var(--font-brush); font-size: clamp(28px, 3.2vw, 46px); line-height: 1; white-space: nowrap;
  color: #FFD9A0;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.tag {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tag--salsa { color: var(--salsa-deep); }
.tag--salsa::before { background: var(--salsa); }
.tag--bachata { color: var(--bachata-deep); }
.tag--bachata::before { background: var(--bachata); }
.tag--copa { color: var(--copa-deep); }
.tag--copa::before { background: var(--copa); }
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: 15px; line-height: 1.4; color: var(--text); }
.card-link { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-soft); overflow-wrap: anywhere; }

.subgroup { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }

/* мерч */
.merch-inner {
  display: grid; gap: 36px 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head all" "grid grid";
  align-items: end;
}
.merch-inner .section-head { grid-area: head; }
.merch-inner .grid { grid-area: grid; }
.merch-all { grid-area: all; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 17, 15, 0.22); }
.btn--dark:hover svg { transform: translateX(4px); }

.product { display: flex; flex-direction: column; gap: 16px; }
.product-photo {
  height: 250px; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px; background: #F4EFE7;
  transition: background-color 0.3s ease;
}
.product-photo--bachata { background: #EEF2F8; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s var(--ease); }
.product:hover .product-photo img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; gap: 6px; }
.product-name { font-size: 17px; font-weight: 600; line-height: 1.35; }
.product-price { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ============ футер ============ */
.footer { background: var(--ink); color: var(--white); padding: 30px var(--gutter); }
.footer-inner {
  max-width: 1264px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand img { width: 112px; height: auto; }
.footer-brand p { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.74); }
.footer-nav { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.footer-nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; transition: background-color 0.2s ease; }
.footer-nav a:hover { background: rgba(255, 255, 255, 0.1); }

/* ============ планшет ============ */
@media (max-width: 1100px) {
  .top-place { display: none; }
  .top { justify-content: space-between; }
  .lang { width: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ телефон: панелі одна над одною ============ */
@media (max-width: 899px) {
  .top { height: 80px; padding: 0 16px 0 24px; }
  .top-logo img { width: 108px; }
  .lang { font-size: 11px; gap: 2px; }
  .lang > * { min-width: 44px; }

  .hero { height: auto; background: var(--salsa-ink); }
  .panel { position: relative; inset: auto; overflow: hidden; transition: none; }
  .panel--bachata {
    z-index: 2;
    padding: 92px 24px 60px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
  }
  .panel--salsa { z-index: 1; margin-top: -36px; padding: 66px 24px 40px; clip-path: none; }
  .panel-body { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: auto; padding-top: 0; }
  .panel--bachata .panel-body, .panel--salsa .panel-body { left: auto; right: auto; }
  .hero[data-lead] .panel .panel-body { width: auto; }

  .glow { width: 420px !important; height: 420px !important; filter: blur(40px); }
  .glow-2 { display: none; }

  .kicker { margin-bottom: 12px; font-size: 10px; letter-spacing: 0.26em; }
  .panel-title { margin-bottom: 10px; font-size: clamp(84px, 25vw, 132px); }
  .hero[data-lead] .panel .panel-title { font-size: clamp(84px, 25vw, 132px); }
  .panel-sub { margin-bottom: 18px; font-size: 15px; line-height: 1.45; }

  .status { width: auto; margin-bottom: 16px; padding: 0; gap: 4px; border: 0; border-radius: 0; background: none; }
  .status-chip { font-size: 10px; letter-spacing: 0.16em; gap: 8px; }
  .dot { width: 7px; height: 7px; }
  .status-name { font-size: 32px; }
  .status-meta { font-size: 14px; }
  .status-note { font-size: 13px; }
  .btn { height: 48px; padding: 0 24px; font-size: 13px; gap: 10px; }

  .seam, .hero-more { display: none; }

  /* сезон продажів на телефоні: лідер іде першим */
  .hero[data-lead="salsa"] { display: flex; flex-direction: column; background: var(--bachata-ink); }
  .hero[data-lead="salsa"] .panel--salsa { order: 1; z-index: 2; margin-top: 0; padding: 92px 24px 60px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
  .hero[data-lead="salsa"] .panel--bachata { order: 2; z-index: 1; margin-top: -36px; padding: 66px 24px 40px; clip-path: none; }

  .section { padding: 44px 20px 40px; }
  .section-inner { gap: 20px; }
  .section-head { gap: 8px; }
  .section-tag { font-size: 10px; }
  .section-lead { font-size: 14px; }
  .grid { gap: 12px; }
  .card { border-radius: 16px; box-shadow: 0 10px 28px rgba(20, 17, 15, 0.08); }
  .card-cover, .grid--3 .card-cover { height: 104px; }
  .card-body { gap: 4px; padding: 12px 14px 14px; }
  .tag { font-size: 9px; letter-spacing: 0.16em; gap: 6px; }
  .tag::before { width: 6px; height: 6px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 13px; }
  .card-link { display: none; }

  /* Copa De Oro — компактні рядки, щоб не було непарної картки */
  .subgroup { gap: 12px; margin-top: 8px; }
  .grid--3 { grid-template-columns: 1fr; gap: 10px; }
  .grid--3 .card { flex-direction: row; align-items: center; gap: 14px; }
  .grid--3 .card-cover { flex: none; width: 116px; height: 80px; }
  .grid--3 .card-body { padding: 10px 14px 10px 0; }

  .merch-inner { grid-template-columns: 1fr; grid-template-areas: "head" "grid" "all"; gap: 20px; }
  .merch-inner .grid { gap: 16px 12px; }
  .merch-all { justify-content: center; width: 100%; }
  .product { gap: 10px; }
  .product-photo { height: 140px; padding: 12px; border-radius: 16px; }
  .product-body { gap: 3px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 13px; }

  .footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-brand img { width: 98px; }
  .footer-brand p { font-size: 14px; }
  .footer-nav { margin-left: -12px; gap: 4px; }
  .footer-nav a { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
