.home-shell {
  padding-bottom: 72px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.58fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy-block,
.hero-feature,
.home-stats,
.events-section {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy-block {
  display: grid;
  align-content: end;
  min-height: 520px;
  padding: clamp(30px, 5vw, 58px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(69, 10, 47, 0.9)),
    url("/big.png") center / cover;
  overflow: hidden;
}

.hero-copy-block .eyebrow {
  color: #f9a8d4;
}

.hero-copy-block h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .secondary-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-feature {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-height: 520px;
  border: 1px solid rgba(217, 222, 232, 0.88);
  background: #ffffff;
  overflow: hidden;
}

.hero-feature-media {
  position: relative;
  min-height: 280px;
  background: #111827;
}

.hero-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.28));
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.hero-feature-body h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.06;
}

.hero-feature-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-detail-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 6px;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.hero-detail-link:hover,
.hero-detail-link:focus-visible {
  color: var(--brand);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid rgba(217, 222, 232, 0.88);
  background: var(--line);
  overflow: hidden;
}

.home-stats div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.home-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.home-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.home-toolbar {
  margin-top: 24px;
}

.events-section {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(217, 222, 232, 0.88);
  background: rgba(255, 255, 255, 0.86);
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-button,
.pagination-page {
  min-width: 42px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.pagination-page.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.pagination-button:hover:not(:disabled),
.pagination-page:hover:not(.active),
.pagination-button:focus-visible,
.pagination-page:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.event-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(183, 40, 120, 0.35);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.event-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #b72878);
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.event-card:hover .event-media img,
.event-card:focus-visible .event-media img {
  transform: scale(1.035);
}

.event-media .chip {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.event-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.event-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.12;
}

.event-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.event-meta span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.event-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.price-label {
  display: grid;
  gap: 2px;
}

.price-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-label strong {
  font-size: 18px;
}

.event-card .primary-button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy-block,
  .hero-feature {
    min-height: auto;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-copy-block {
    padding: 30px 20px;
  }

  .hero-copy-block h1 {
    font-size: 40px;
  }

  .home-hero-copy {
    font-size: 15px;
  }

  .hero-actions,
  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .home-stats,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .home-stats div {
    padding: 18px;
  }

  .pagination {
    gap: 6px;
  }

  .pagination-button,
  .pagination-page {
    min-width: 38px;
    min-height: 38px;
    padding-inline: 10px;
  }
}

@media (max-width: 430px) {
  .hero-copy-block h1 {
    font-size: 34px;
  }

  .event-card {
    grid-template-rows: 190px 1fr;
  }

  .event-footer {
    display: grid;
  }

  .event-card .primary-button {
    width: 100%;
  }
}
