:root {
  --bg: #f4f5f0;
  --ink: #111514;
  --muted: #6d746f;
  --surface: #ffffff;
  --line: #dfe4dc;
  --green: #007a3d;
  --green-2: #00a657;
  --green-dark: #003f26;
  --black: #101313;
  --black-2: #1c2020;
  --cream: #f8f8ef;
  --gold: #c8a13a;
  --shadow: 0 18px 48px rgba(10, 16, 13, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px clamp(16px, 4vw, 58px);
  background: var(--black);
  border-bottom: 4px solid var(--green);
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--green);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: clamp(440px, 58vh, 560px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 4vw, 48px);
  overflow: hidden;
  padding: 0 clamp(16px, 7vw, 100px);
  background:
    radial-gradient(circle at 72% 42%, rgba(0, 166, 87, 0.32), transparent 30%),
    linear-gradient(120deg, rgba(0, 63, 38, 0.98), rgba(16, 19, 19, 0.96) 54%, rgba(9, 12, 12, 1));
}

.hero::after,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(0, 63, 38, 0.55), rgba(16, 19, 19, 0.62) 48%, rgba(16, 19, 19, 0.2)),
    linear-gradient(0deg, rgba(16, 19, 19, 0.62), transparent 42%);
}

.hero::after {
  content: "";
  z-index: 2;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
  opacity: 0.35;
}

.hero-logo-wrap {
  position: relative;
  z-index: 2;
  order: 2;
  flex: 0 1 420px;
  min-width: 0;
  max-width: 500px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.42));
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 3;
  order: 1;
  flex: 1 1 480px;
  min-width: 0;
  max-width: 780px;
  color: #fff;
  padding-top: calc(7vh / 3);
  padding-bottom: calc(7vh / 3);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero .eyebrow,
.page-heading.dark .eyebrow {
  color: #78e2a5;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.5rem, 6.1vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 11px 16px;
  background: var(--green);
  color: #fff;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--green-dark);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.sponsor-section {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 5px solid var(--green);
  border-radius: 8px;
  background: rgba(6, 8, 8, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.sponsor-section h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  align-items: center;
}

.sponsor-logo {
  min-height: 72px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sponsor-logo img {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.sponsor-empty {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.match-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 5px solid var(--green);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.match-strip article {
  padding: 22px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.match-strip article:last-child {
  border-right: 0;
}

.match-strip span,
.match-strip small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-strip strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.section,
.two-col,
.page-heading,
.detail {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 0;
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead,
.card p,
.page-heading p,
.detail-copy,
.footer {
  color: var(--muted);
  line-height: 1.6;
}

.detail-copy {
  white-space: pre-line;
}

.values {
  display: grid;
  gap: 12px;
}

.value,
.card,
.fact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 25, 20, 0.07);
}

.value {
  padding: 22px;
  border-left: 5px solid var(--green);
}

.value h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

.value-link {
  display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.value-link:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green-dark);
  font-weight: 1000;
  text-transform: uppercase;
  transition: gap 0.15s ease, color 0.15s ease;
}

.section-head a:hover {
  gap: 8px;
  color: var(--green);
}

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

.poster-section {
  margin-top: 34px;
}

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

.poster-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  font: inherit;
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(16, 19, 19, 0.68), transparent 45%);
  opacity: 0.95;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.poster-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.poster-card:hover img {
  transform: scale(1.035);
  filter: brightness(0.9);
}

.poster-card.image-missing {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(16, 19, 19, 0.92), rgba(0, 122, 61, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
  color: #fff;
}

.poster-card.image-missing img {
  display: none;
}

.poster-card.image-missing::after {
  content: "Plagat sa neda nacitat";
  font-weight: 1000;
  text-transform: uppercase;
}

.card {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--black));
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #eef3ed;
}

.card-main-link {
  display: block;
  flex: 1;
}

.card-main-link:hover h3 {
  color: var(--green-dark);
}

.card-body {
  padding: 18px;
}

.card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.card h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.card-footer {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f4ed;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.pill.blue {
  background: #eef0ef;
  color: var(--black);
}

.page-heading {
  padding-top: 24px;
}

.page-heading.dark {
  width: 100%;
  margin-top: 0;
  padding: 35px clamp(16px, 6vw, 96px);
  background: linear-gradient(105deg, rgba(0, 63, 38, 0.96), rgba(16, 19, 19, 0.92));
  color: #fff;
  border-bottom: 5px solid var(--green);
}

.page-heading.dark p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.detail h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  margin-bottom: 18px;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
}

label {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 220px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

input,
select {
  height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  line-height: 1.2;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.detail-main img.cover {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  margin: 0 auto 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-summary-label {
  margin-top: 22px;
}

.detail-gallery {
  margin-top: 52px;
}

.fact-panel {
  padding: 20px;
  position: sticky;
  top: 104px;
  border-top: 5px solid var(--green);
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.link-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.link-item:hover {
  border-color: var(--green);
  background: rgba(0, 166, 87, 0.06);
}

.link-item-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
}

.link-item-facebook .link-item-icon {
  background: #1877f2;
}

.link-item-live .link-item-icon {
  background: var(--green);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: liveDotPulse 1.6s infinite;
}

@keyframes liveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.link-item-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.link-item-text strong {
  font-size: 0.92rem;
}

.link-item-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.link-item-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
}

.gallery-item img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(0.9);
}

.gallery-item.image-missing {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(16, 19, 19, 0.92), rgba(0, 122, 61, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
  color: #fff;
}

.gallery-item.image-missing img {
  display: none;
}

.gallery-item.image-missing::before {
  content: "Fotka sa neda nacitat";
  font-weight: 1000;
  text-transform: uppercase;
}

.gallery-external {
  min-height: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 122, 61, 0.94), rgba(16, 19, 19, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: #fff;
}

.gallery-external strong {
  font-size: 1.15rem;
  text-transform: uppercase;
}

.gallery-external span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.gallery-external em {
  color: #95ebb8;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 8, 7, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.lightbox figcaption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 800;
}

.lightbox-counter {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 1000;
  white-space: nowrap;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(16, 19, 19, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav:hover {
  background: var(--green);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.preview-open {
  overflow: hidden;
}

.empty {
  padding: 28px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px 48px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto 0;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col strong {
  color: var(--ink);
  margin-bottom: 4px;
}

code {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    padding: 16px;
    background: var(--black);
    border-bottom: 4px solid var(--green);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    gap: 8px;
  }

  .main-nav a {
    justify-content: center;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    justify-content: center;
  }

  .hero-logo-wrap {
    position: absolute;
    top: 46%;
    right: -12vw;
    transform: translateY(-50%);
    flex: none;
    width: min(70vw, 380px);
    max-width: none;
    opacity: 0.32;
  }

  .hero-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 620px;
    margin: 0 auto;
  }

  .two-col,
  .contact-grid,
  .detail {
    grid-template-columns: 1fr;
  }

  .cards,
  .gallery,
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-strip {
    grid-template-columns: 1fr;
  }

  .match-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fact-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 8px 12px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero-logo-wrap {
    top: 44%;
    right: -26vw;
    width: min(92vw, 410px);
    opacity: 0.22;
  }

  .hero-content {
    margin: 0 auto;
  }

  .sponsor-section {
    grid-template-columns: 1fr;
  }

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

  .actions .btn {
    width: 100%;
  }

  .cards,
  .gallery,
  .poster-grid {
    grid-template-columns: 1fr;
  }
}
