/* Головна: секції після першого екрана. Та сама граматика: фото-світи, LED, волосяні лінії, 2px темні шви. */

/* ------------------------------------------------ сезон: рейка місяців */
.season { padding-bottom: 7rem; }

.rail {
  display: flex;
  gap: 2px;
  height: 27rem;
  background: #0a0909;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail__m {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0.9rem;
  background: var(--ground-2);
  overflow: hidden;
}
.rail__m:has(.rail__ev) { flex-grow: 3.1; }
.rail__num { font-size: 1.9rem; letter-spacing: 0.04em; }
.rail__m--empty .rail__num { color: #57554f; }
.rail__m--empty .rail__num .led__ghost { color: rgba(246, 246, 244, 0.045); }
.rail__name {
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-3);
}
.rail__yr { color: var(--ink-2); }
.rail__m--now .rail__name::after {
  content: ' · найближча';
  color: var(--amber);
}
.rail__ev {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1.1rem 0.9rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.rail__ev img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.8) brightness(0.72);
  transform: scale(1.02);
  transition: filter 0.6s var(--ease-out), transform 1.2s var(--ease-out);
}
.rail__ev::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 9, 9, 0.92) 0%, rgba(10, 9, 9, 0.35) 55%, rgba(10, 9, 9, 0.1) 100%);
}
.rail__ev::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--ev);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.rail__ev:hover img,
.rail__ev.is-active img { filter: saturate(1) brightness(0.95); transform: scale(1.07); }
.rail__ev:hover::after,
.rail__ev.is-active::after { transform: scaleX(1); }
.rail__day { font-size: 3.1rem; letter-spacing: 0.04em; }
.rail__ev-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.rail__ev-city {
  font-family: var(--f-ui);
  font-size: 0.98rem;
  color: var(--ink-2);
}
.rail__ev--past .rail__ev-city { color: var(--ink-3); }

.readout {
  --ev: var(--ev-livestock);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2.4rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.readout__date .led { font-size: 4.6rem; letter-spacing: 0.04em; }
.readout__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.95rem;
  line-height: 1.05;
}
.readout__meta { margin-top: 0.35rem; font-size: 1rem; color: var(--ink-2); }
.readout__status {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--amber);
  white-space: nowrap;
}
.readout__status.is-past { color: var(--led-dim); }
.readout__actions { display: flex; gap: 0.75rem; }

/* ------------------------------------------------ цифри */
.numbers { background: #0b0b0a; }
.numbers__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 5rem;
  align-items: start;
}
.numbers__big { font-size: clamp(6rem, 13.5vw, 13.5rem); letter-spacing: 0.04em; line-height: 0.9; }
.numbers__title {
  margin-top: 2.8rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-weight: 600;
  font-size: clamp(1.95rem, 3vw, 3.15rem);
  line-height: 1.04;
}
.numbers__text { margin-top: 1.2rem; max-width: 30rem; font-size: 1.12rem; color: var(--ink-2); }

.tally { list-style: none; margin: 0.6rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.tally__row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.8rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.tally__num {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.25rem;
}
.tally__num .led { font-size: 3.4rem; letter-spacing: 0.04em; }
.tally__plus {
  width: 1.1rem;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--amber);
}
.tally__what { font-size: 1.08rem; line-height: 1.4; color: var(--ink); }

/* ------------------------------------------------ хто приходить */
.chip {
  --ev: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 1.05rem;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-2);
  border: 1px solid var(--rule-2);
  border-radius: 0.3rem;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.chip::before {
  content: '';
  width: 2.9rem; height: 2rem;
  margin-left: -0.6rem;
  background: var(--thumb, var(--amber)) var(--thumb-pos, center) / cover;
  border-radius: 2px;
}
.chip[data-who="all"]::before { width: 0.6rem; height: 0.6rem; margin-left: 0; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-on { color: var(--ground); background: var(--ink); border-color: var(--ink); }
.who__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.who__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4rem;
  align-items: start;
}
.who__list { --ev: var(--amber); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.who__list li {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.45;
  transition: opacity 0.45s var(--ease-out), color 0.45s var(--ease-out);
}

.who__list li.is-dim { opacity: 0.22; }
.who__photo { position: relative; margin: 0; overflow: hidden; }
.who__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.3rem; }
.who__photo figcaption { margin-top: 0.8rem; font-size: 0.92rem; color: var(--ink-3); }

/* ------------------------------------------------ партнер сезону */
.partner__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4.5rem;
  align-items: center;
}
.partner .sec__lede { margin-top: 1.4rem; }
.tiers { list-style: none; margin: 2.4rem 0 1.2rem; padding: 0; border-top: 1px solid var(--rule); }
.tiers__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.tiers__name { font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.tiers__cnt { display: flex; align-items: baseline; gap: 0.5rem; grid-row: span 2; align-self: center; }
.tiers__cnt .led { font-size: 2.6rem; }
.tiers__cnt small { font-family: var(--f-ui); font-size: 0.95rem; color: var(--ink-3); }
.tiers__what { font-size: 0.98rem; color: var(--ink-2); }
.partner__cta { margin-top: 2rem; min-height: 3.4rem; font-size: 1.2rem; padding: 0 1.8rem; }

.band {
  position: relative;
  display: flex;
  gap: 2px;
  height: 34rem;
  background: #0a0909;
  border-radius: 0.3rem;
  overflow: hidden;
}
.band__col { position: relative; flex: 1; overflow: hidden; }
.band__col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.band__col::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 9, 0.88) 0%, rgba(10, 9, 9, 0) 45%);
}
.band__col:nth-child(1) img { object-position: 52% 50%; }
.band__col:nth-child(2) img { object-position: 47% 50%; }
.band__col:nth-child(4) img { object-position: 60% 50%; }
.band__date { position: absolute; left: 1rem; bottom: 1.1rem; z-index: 1; font-size: 2.1rem; letter-spacing: 0.04em; }
.band__name {
  position: absolute; left: 1rem; bottom: 4rem; z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1;
  text-transform: uppercase;
}
.band__strip {
  position: absolute;
  left: 0; right: 0;
  top: 40%;
  z-index: 2;
  height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7b633;
  color: var(--amber-ink);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------ архів */
.years {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.years__tab {
  position: relative;
  min-height: 44px;
  padding: 0.6rem 1.1rem 1rem 0.2rem;
  margin-right: 1.4rem;
}
.years__tab .led { font-size: 2.7rem; letter-spacing: 0.04em; color: #57554f; transition: color 0.3s var(--ease-out); }
.years__tab .led .led__ghost { color: rgba(246, 246, 244, 0.05); }
.years__tab:hover .led { color: var(--ink-2); }
.years__tab.is-on .led { color: var(--amber); }
.years__tab.is-on .led .led__ghost { color: var(--amber-ghost); }
.years__tab::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.years__tab.is-on::after { transform: scaleX(1); }
html:not(.has-tabs) .years { display: none; }
.has-tabs .yr__title { display: none; }
.yr + .yr { margin-top: 2rem; }
.yr__title { font-family: var(--f-head); font-size: 2rem; margin-bottom: 0.6rem; }

.track { list-style: none; margin: 0; padding: 0; }
.track__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1.1fr) minmax(0, 1fr) 12rem;
  align-items: center;
  gap: 2rem;
  padding: 1.3rem 0.6rem 1.3rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out);
}
.track__row:hover { background: var(--ground-2); }
.track__date { justify-self: end; font-size: 2.3rem; letter-spacing: 0.04em; }
.track__name { font-family: var(--f-display); font-weight: 700; font-size: 1.65rem; line-height: 1.1; }
.track__city { font-size: 0.98rem; color: var(--ink-2); }
.track__go { justify-self: end; font-family: var(--f-ui); font-size: 1rem; color: var(--ink-3); }
.track__row--next .track__go { color: var(--amber); }
.track__row:hover .track__name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ------------------------------------------------ новини */
.news__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.news__list li + li { border-left: 1px solid var(--rule); }
.news__row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  min-height: 17rem;
  padding: 1.6rem 1.6rem 2rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out);
}
.news__list li:first-child .news__row { padding-left: 0; }
.news__row:hover { background: var(--ground-2); }
.news__date { font-size: 2.4rem; letter-spacing: 0.04em; }
.news__rubric { font-family: var(--f-ui); font-size: 1rem; color: var(--ink-3); }
.news__title { font-size: 1.18rem; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.news__row svg { position: absolute; right: 1.4rem; top: 1.9rem; width: 1rem; height: 1rem; color: var(--ink-3); transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.news__row:hover .news__title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.22em; }
.news__row:hover svg { color: var(--amber); transform: translate(2px, -2px); }
.news__all {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 1.4rem;
  font-family: var(--f-ui); font-size: 1.1rem; color: var(--ink);
  text-decoration-color: var(--amber);
}

/* ------------------------------------------------ календар .ics */
.cal { background: #0b0b0a; }
.cal__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5rem;
  align-items: center;
}
.cal .sec__lede { margin-top: 1.4rem; }
.cal__actions { margin-top: 2.4rem; }
.cal__btn { margin-bottom: 1rem; }
.cal__board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cal__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.cal__row .led { font-size: 2.9rem; letter-spacing: 0.04em; }
.cal__ev { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.cal__ev small { display: block; margin-top: 0.2rem; font-family: var(--f-ui); font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.cal__g {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem;
  font-family: var(--f-ui); font-size: 1rem; color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 0.3rem; text-decoration: none;
}
.cal__g:hover { border-color: var(--ink); }
.cal__g--off { color: var(--ink-3); border-style: dashed; }

/* ------------------------------------------------ про нас */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}
.about__text > p { font-size: 1.3rem; line-height: 1.55; color: var(--ink); max-width: 44rem; text-wrap: pretty; }
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
  margin: 2.6rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
}
.contacts dt { font-family: var(--f-ui); font-size: 0.98rem; color: var(--ink-3); }
.contacts dd { margin: 0.3rem 0 0; font-size: 1.15rem; line-height: 1.7; }
.contacts a { color: var(--ink); text-decoration-color: var(--rule-2); }
.contacts a:hover { text-decoration-color: var(--amber); }

/* ------------------------------------------------ адаптив */
@media (max-width: 1180px) {
  .rail__ev-name { font-size: 1.2rem; }
  .rail__day { font-size: 2.5rem; }
  .readout { grid-template-columns: auto minmax(0, 1fr); }
  .readout__status { grid-column: 2; }
  .readout__actions { grid-column: 1 / -1; }
  .track__row { grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1fr); }
  .track__go { display: none; }
}

@media (max-width: 1023.98px) {
  .numbers__grid, .who__grid, .partner__grid, .cal__grid, .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news__list li:nth-child(3) { border-left: 0; }
  .news__list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .news__list li:nth-child(3) .news__row { padding-left: 0; }
  .who__photo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .rail { flex-direction: column; height: auto; gap: 2px; }
  .rail__m { flex-direction: row; align-items: center; gap: 0.8rem; padding: 0.55rem 0.9rem; min-height: 2.9rem; }
  .rail__m:has(.rail__ev) { min-height: 11.5rem; align-items: flex-start; padding-top: 0.8rem; }
  .rail__num { font-size: 1.35rem; }
  .rail__name { font-size: 0.95rem; }
  .rail__ev { top: 0; padding: 0.9rem; }
  .rail__day { font-size: 2.4rem; }
  .rail__ev-name { font-size: 1.35rem; }
  .readout { grid-template-columns: 1fr; gap: 0.9rem; }
  .readout__status { grid-column: auto; }
  .readout__date .led { font-size: 3.4rem; }
  .readout__name { font-size: 1.8rem; }
  .readout__actions { flex-direction: column; }
  .readout__actions .btn { width: 100%; }
  .numbers__big { font-size: 5.6rem; }
  .tally__row { grid-template-columns: 7.4rem minmax(0, 1fr); gap: 1rem; }
  .tally__num .led { font-size: 2.1rem; }
  .tally__plus { font-size: 1.2rem; width: 0.8rem; }
  .tally__what { font-size: 0.98rem; }
  .who__list li { font-size: 1.05rem; }
  .band { height: 22rem; }
  .band__name { font-size: 1.05rem; left: 0.6rem; bottom: 3rem; }
  .band__date { font-size: 1.25rem; left: 0.5rem; }
  .band__strip { font-size: 1.05rem; height: 3.2rem; padding: 0 0.6rem; text-align: center; }
  .years { overflow-x: auto; scrollbar-width: none; }
  .years { gap: 0; }
  .years__tab { margin-right: 0.3rem; padding: 0.7rem 0.3rem 0.8rem 0; }
  .years__tab .led { font-size: 1.05rem; letter-spacing: 0; }
  .track__row { grid-template-columns: 5.8rem minmax(0, 1fr); gap: 0.3rem 1rem; }
  .track__date { font-size: 1.5rem; grid-row: span 2; align-self: start; padding-top: 0.2rem; }
  .track__name { font-size: 1.25rem; }
  .track__city { font-size: 0.9rem; }
  .news__list { grid-template-columns: 1fr; }
  .news__list li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .news__row, .news__list li:first-child .news__row { min-height: 0; padding: 1.2rem 0; gap: 0.5rem; }
  .news__date { font-size: 1.6rem; }
  .news__rubric { font-size: 0.88rem; }
  .news__title { font-size: 1.02rem; padding-right: 1.4rem; }
  .news__row svg { right: 0; top: 1.5rem; }
  .cal__row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; }
  .cal__row .led { font-size: 1.9rem; grid-column: 1 / -1; }
  .cal__btn { width: 100%; font-size: 1.2rem; padding: 0 1rem; min-height: 3.4rem; white-space: normal; text-align: center; }
  .contacts { grid-template-columns: 1fr; }
  .news .sec__title { font-size: 1.55rem; }
  .about__text > p { font-size: 1.1rem; }
}
