/* ==========================================================================
   КУЛЬТУРНЫЙ ЦЕНТР — ШАБЛОН СТРАНИЦЫ
   --------------------------------------------------------------------------
   Каркас: шапка, панель мобильного меню, подвал, пагинация и догрузка.
   Всё остальное — в components.css.
   ========================================================================== */

body { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; }

/* ------------------------------------------------------------------ шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 99995;                 /* выше затемнения, ниже панели меню */
  background: var(--bg-default);
  border-bottom: 1px solid var(--border-default);
  height: var(--header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 100%;
}

.logo { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-brand);
  color: var(--text-on-brand);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.logo__text { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text-primary); }

.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.site-nav__link { font-size: 16px; line-height: 24px; color: var(--text-secondary); transition: color .15s ease; }
.site-nav__link:hover { color: var(--text-primary); }
.site-nav__link--active { color: var(--text-brand); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.site-header__burger { display: none; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-header__actions .btn { display: none; }
  .site-header__burger { display: inline-flex; }
  .site-header { height: var(--header-mobile); }
}

/* --------------------------------------------------- панель мобильного меню */

.menu-panel {
  position: fixed;
  top: var(--kc-menu-top, var(--header-mobile));
  left: 0; right: 0; bottom: auto;
  height: auto;
  max-height: calc(100vh - var(--kc-menu-top, var(--header-mobile)));
  z-index: 100000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-default);
  box-shadow: var(--shadow-xl);
  animation: kc-menu-in .2s ease-out;
}

.menu-panel__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-block: var(--space-5) var(--space-8);
}

.menu-panel__head { display: flex; align-items: center; justify-content: space-between; }

.menu-panel__nav { display: flex; flex-direction: column; }
.menu-panel__nav a {
  padding-block: var(--space-4);
  font-size: 20px;
  line-height: 28px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
}
.menu-panel__nav a:hover { color: var(--text-brand); }

/* Затемнение страницы под панелью — считает скрипт тем же отступом */
.kc-scrim {
  display: none;
  position: fixed;
  top: var(--kc-menu-top, var(--header-mobile));
  left: 0; right: 0; bottom: 0;
  z-index: 99990;
  background: var(--overlay-scrim);
  animation: kc-fade-in .2s ease-out;
}
.kc-scrim--open { display: block; }

@keyframes kc-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes kc-fade-in { from { opacity: 0; } to { opacity: 1; } }

.kc-menu-lock { overflow: hidden; }

/* ------------------------------------------------------------------ подвал */

.site-footer {
  margin-top: var(--space-30);
  padding-top: var(--space-16);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-default);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 300px) repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}

.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.site-footer__about { font-size: 14px; line-height: 20px; color: var(--text-muted); max-width: 260px; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer__socials a { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.site-footer__socials a:hover { color: var(--text-brand); }

.site-footer__divider { height: 1px; background: var(--border-default); }

.site-footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__title {
  margin-bottom: var(--space-1);
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.site-footer__col a { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.site-footer__col a:hover { color: var(--text-brand); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border-default);
  font-size: 13px;
  line-height: 16px;
  color: var(--text-muted);
}
.site-footer__bottom a:hover { color: var(--text-primary); }
.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 1023px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .site-footer { margin-top: var(--space-20); }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------- заголовок страницы */

.page-head { padding-block: var(--space-10) var(--space-8); }
.page-head__title {
  margin-top: var(--space-4);
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.page-head__lead {
  margin-top: var(--space-4);
  max-width: 62ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .page-head__title { font-size: 32px; line-height: 40px; }
  .page-head__lead { font-size: 16px; line-height: 24px; }
}

/* -------------------------------------------------- строка события */

.events-list { border-top: 1px solid var(--border-default); }

.event-row__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.event-row__arrow { color: var(--text-muted); transition: transform .15s ease, color .15s ease; }
.event-row:hover .event-row__arrow { color: var(--text-brand); transform: translateX(4px); }
.event-row:hover .event-row__title { color: var(--text-brand); }

/* -------------------------------------------------- сетки и карточки */

.cards-grid { margin-top: var(--space-10); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-brand);
}
.card__link:hover { color: var(--text-brand-hover); }
.card__link svg { transition: transform .15s ease; }
.card__link:hover svg { transform: translateX(4px); }

/* Блок призыва — «Нужна площадка под своё событие?» */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--bg-brand-subtle);
}
.cta__text { display: flex; flex-direction: column; gap: var(--space-2); max-width: 56ch; }
.cta__text p { color: var(--text-secondary); }

@media (max-width: 767px) {
  .cta { padding: var(--space-6); }
  .cta .btn { width: 100%; }
}

/* -------------------------------------------------- список документов */

.docs-list { margin-top: var(--space-8); border-top: 1px solid var(--border-default); }
.doc-row__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.doc-row__title { font-size: 16px; line-height: 24px; font-weight: 600; }

/* ============================================================ детальные */

.detail__head { padding-block: var(--space-8) var(--space-8); }
.detail__meta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}
.detail__cover {
  margin: 0 0 var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 1200 / 560;
}
.detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.detail__body { max-width: var(--container-narrow); }
.detail__lead {
  margin-bottom: var(--space-6);
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}
.detail__cta { margin-top: var(--space-8); }
.detail--narrow .detail__head { padding-bottom: var(--space-6); }

/* Текстовые блоки из редактора */
.prose { color: var(--text-secondary); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text-primary); }
.prose h3 { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--text-primary); }
.prose ul { list-style: disc; padding-left: var(--space-6); }
.prose ol { list-style: decimal; padding-left: var(--space-6); }
.prose a { color: var(--text-brand); text-decoration: underline; }

.detail-block { margin-top: var(--space-10); }
.detail-block__title {
  margin-bottom: var(--space-5);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

/* Список с галочками — «Что вас ждёт», «Характеристики» */
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li {
  position: relative;
  padding-left: var(--space-8);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--bg-brand-subtle) no-repeat center / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Цитата (новость) */
.quote {
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--bg-brand);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.quote__text { font-size: 18px; line-height: 28px; color: var(--text-primary); }
.quote__author { margin-top: var(--space-3); font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* Нумерованные шаги (проект) */
.steps { display: flex; flex-direction: column; gap: var(--space-5); }
.steps__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); }
.steps__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-brand-subtle);
  color: var(--text-brand);
  font-size: 16px;
  font-weight: 600;
}
.steps__body { display: flex; flex-direction: column; gap: var(--space-1); }
.steps__title { font-size: 16px; line-height: 24px; font-weight: 600; }
.steps__text { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* -------------------------------------------------- событие: две колонки */

.event-detail__head { padding-block: var(--space-8); }
.event-detail__meta { margin-top: var(--space-4); font-size: 16px; line-height: 24px; color: var(--text-muted); }
.event-detail__cover {
  margin: 0 0 var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  aspect-ratio: 1200 / 560;
}
.event-detail__cover img { width: 100%; height: 100%; object-fit: cover; }

.event-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-16);
  align-items: start;
}
.event-detail__lead {
  margin-bottom: var(--space-6);
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
}
.detail-note {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .event-detail__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}

/* Карточка с деталями и кнопками */
.detail-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-default);
  position: sticky;
  top: calc(var(--header) + var(--space-6));
}
.detail-card__title { font-size: 20px; line-height: 28px; font-weight: 600; }
.detail-card__actions { display: flex; flex-direction: column; gap: var(--space-3); }

.detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4); }
.detail-list dt { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.detail-list dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-primary); }

.seats {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-default);
}
.seats__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.seats__value { font-size: 18px; line-height: 26px; font-weight: 600; }

/* ------------------------------------------------------- аренда (зал) */

.rent {
  margin-top: var(--space-16);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--bg-subtle);
}
.rent__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
.rent__item { display: flex; flex-direction: column; gap: var(--space-1); }
.rent__label { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.rent__value { font-size: 20px; line-height: 28px; font-weight: 600; }

@media (max-width: 767px) {
  .rent { padding: var(--space-6); }
  .rent .btn { width: 100%; }
}

/* -------------------------------------------------- пагинация и догрузка */
/* NetCat выводит пагинацию по разметке из Settings.html — она совпадает
   с этими классами. Номеров в макете было 8, активный — брендовый. */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-full);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  transition: background-color .15s ease, color .15s ease;
}
.pagination-item:hover { background: var(--bg-muted); }
.pagination-page.active,
.pagination-page.active:hover {
  background: var(--bg-brand);
  color: var(--text-on-brand);
  font-weight: 600;
}
.pagination-control { color: var(--text-secondary); }
.pagination-control:hover { color: var(--text-primary); }
