/* ==========================================================
   RSBiH — početna stranica
   ========================================================== */
:root {
  --navy-900: #071a44;
  --navy-800: #0b2258;
  --navy-700: #0f2c6e;
  --brand:    #002395;      /* plava iz grba Saveza */
  --blue:     #1652d8;      /* linkovi i aktivni elementi */
  --blue-50:  #eef3fd;
  --gold:     #fecb00;      /* akcent iz grba */
  --gold-600: #e8b800;
  --red:      #e01b24;      /* samo UŽIVO i važni statusi */
  --ink:      #0d1630;
  --ink-2:    #3b4560;
  --muted:    #6b7489;
  --line:     #e3e7ef;
  --line-2:   #eef1f6;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fb;
  --green:    #1f9d55;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(13, 22, 48, .05), 0 1px 3px rgba(13, 22, 48, .04);
  --shadow-hover: 0 6px 18px rgba(13, 22, 48, .09);
  --container: 1240px;
  --gutter: 24px;
  --header-h: 92px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy-800); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; transition: background .15s, transform .15s; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0f44bc; }

/* ---------------- HEADER ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-logo { width: 60px; height: 60px; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; text-transform: uppercase; color: var(--brand); line-height: 1.12; letter-spacing: .01em; }
.brand-text span:first-child { font-size: 19px; }
.brand-text span:last-child { font-size: 15.5px; letter-spacing: .02em; }

.main-nav { margin-left: auto; height: 100%; }
.main-nav ul { display: flex; height: 100%; gap: 2px; }
.main-nav li { display: flex; }
.main-nav a {
  position: relative; display: flex; align-items: center; padding: 0 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
  transition: color .15s;
}
.main-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-active { color: var(--blue); }
.main-nav a.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; border-radius: var(--radius-sm); color: var(--ink); }
.icon-btn:hover { background: var(--bg-soft); color: var(--blue); }
.icon-btn svg, .lang-btn svg, .hero-arrow svg, .search-form > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 12px; font-weight: 700; }
.lang-btn svg { width: 14px; height: 14px; }
.lang-btn:hover { border-color: #c9d0dd; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); z-index: 60; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-align: left; }
.lang-menu button span { font-weight: 400; color: var(--muted); }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--blue-50); color: var(--blue); }

.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-form { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.search-form > svg { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; font-size: 15px; }
.search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }

/* ---------------- HERO ---------------- */
.hero { position: relative; height: clamp(340px, 40vh, 440px); min-height: 320px; background: var(--navy-800); color: #fff; overflow: hidden; }
.hero-track { position: relative; height: 100%; }
.hero-slide { position: absolute; inset: 0; background: var(--navy-800); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: var(--pos, center); transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
/* pozadina bez fotografije: tamnoplava + linije rukometnog terena */
.hero-bg.is-fallback {
  background-color: var(--navy-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='3'%3E%3Crect x='40' y='20' width='720' height='360'/%3E%3Cpath d='M400 20v360'/%3E%3Cpath d='M760 92a108 108 0 0 0 0 216M760 56a144 144 0 0 0 0 288' stroke-dasharray='14 12'/%3E%3Cpath d='M40 92a108 108 0 0 1 0 216'/%3E%3Cpath d='M40 56a144 144 0 0 1 0 288' stroke-dasharray='14 12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.hero-slide::after { /* tamnoplavi overlay za čitljivost */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 26, 68, .9) 0%, rgba(7, 26, 68, .72) 28%, rgba(7, 26, 68, .15) 50%, rgba(7, 26, 68, 0) 65%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: calc(var(--gutter) + 56px); }
.hero h1, .hero .h1 { font-size: clamp(28px, 2.9vw, 46px); font-weight: 900; line-height: 1.04; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(4, 14, 40, .45); }
.hero-sub { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--gold); font-size: clamp(13px, 1.12vw, 17px); font-weight: 600; text-transform: uppercase; color: var(--gold); letter-spacing: .04em; }
/* tekst desno (fotografije s grbom lijevo) */
.hero-slide.is-right::after { background: linear-gradient(270deg, rgba(7, 26, 68, .94) 0%, rgba(7, 26, 68, .8) 30%, rgba(7, 26, 68, .25) 58%, rgba(7, 26, 68, 0) 75%); }
.hero-slide.is-right .hero-content { align-items: flex-end; text-align: right; padding-left: var(--gutter); padding-right: calc(var(--gutter) + 56px); }
@media (min-width: 760px) {
  /* fotografija u punoj visini lijevo (grb se ne siječe), desno pretapanje u tamnoplavu */
  .hero-slide.is-right .hero-bg { right: auto; width: auto; height: 100%; aspect-ratio: 827 / 305; background-size: cover; background-position: center;
    -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
}
.hero .btn { margin-top: 26px; }
.hero-arrow { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(7, 26, 68, .25); color: #fff; transition: background .15s; }
.hero-arrow:hover { background: rgba(255,255,255,.18); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); }
.hero-dots button[aria-selected="true"] { background: #fff; width: 22px; border-radius: 4px; }
.hero[data-single] .hero-arrow, .hero[data-single] .hero-dots { display: none; }

/* ---------------- QUICK MENU ---------------- */
.quick { border-bottom: 1px solid var(--line); background: #fff; }
.quick-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick-list li { position: relative; }
.quick-list li + li::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.quick-list a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 12px 26px; transition: background .15s; }
.quick-list a:hover { background: var(--bg-soft); }
.quick-list svg { width: 44px; height: 44px; margin-bottom: 10px; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; transition: transform .2s; }
.quick-list svg .f { fill: var(--brand); stroke: none; }
.quick-list a:hover svg { transform: translateY(-2px); }
.quick-list strong { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--brand); }
.quick-list span { font-size: 12.5px; color: var(--muted); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 40px 0 8px; }
.section-news { padding-bottom: 48px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.block-head h2 { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; }
.block-head h2 small { font-size: 14px; font-weight: 500; text-transform: none; color: var(--ink-2); letter-spacing: 0; }
.more { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.matches-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 24px; align-items: start; }

/* UŽIVO — pripremljeno, prikazuje se samo kad API vrati live utakmicu */
.live { display: block; color: inherit; position: relative; padding: 30px 20px 18px; border-bottom: 1px solid var(--line); }
.live + .live { border-top: 0; }
.live:hover .live-score b { color: var(--blue); }
.badge-live { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 0 0 var(--radius-sm) 0; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 14px; }
.live-row .team { font-weight: 700; font-size: 15px; }
.live-row .team.home { text-align: right; }
.live-score { text-align: center; min-width: 100px; }
.live-score b { display: block; font-size: 30px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live-score small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-meta { margin-top: 10px; text-align: center; font-size: 13px; color: var(--ink-2); }

.crest { width: 32px; height: 32px; object-fit: contain; }
.crest-ph { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--brand); font-size: 11px; font-weight: 800; }
.crest-sm { width: 22px; height: 22px; }
.crest-sm.crest-ph { width: 22px; height: 22px; font-size: 9px; }

.day-label { padding: 8px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fixture { display: grid; grid-template-columns: 56px 1fr 24px 1fr 32px; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.fixture:last-child { border-bottom: 0; }
.fixture time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fixture .t { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; min-width: 0; }
.fixture .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture .sep { text-align: center; color: var(--muted); font-weight: 700; }
.fixture .comp { grid-column: 4; margin-top: -8px; font-size: 12px; color: var(--muted); }
.fixture .bell { grid-column: 5; grid-row: 1; justify-self: end; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--radius-sm); color: var(--muted); }
.fixture .bell:hover { color: var(--blue); background: var(--blue-50); }
.fixture .bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fixture.is-done time { color: var(--muted); }
.fixture .res { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tabela */
.standings table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.standings th { padding: 11px 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.standings th.club, .standings td.club { text-align: left; }
.standings td { padding: 13px 8px; border-bottom: 1px solid var(--line-2); text-align: center; }
.standings tr:last-child td { border-bottom: 0; }
.standings td.pos { position: relative; width: 40px; font-weight: 600; color: var(--ink-2); }
.standings tr.zone-top td.pos::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--green); border-radius: 0 2px 2px 0; }
.standings td.club > div { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.standings td.club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings td.pts { font-weight: 800; }
.standings td.gd { color: var(--ink-2); }
.standings tbody tr:hover { background: #fafbfd; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty svg { width: 32px; height: 32px; fill: none; stroke: #b8c0cf; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.empty a { color: var(--blue); font-weight: 600; font-size: 13px; }

.skeleton-list { padding: 18px 20px; display: grid; gap: 14px; }
.skeleton-list span { height: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2), #f8f9fc, var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton-list span:nth-child(2) { width: 82%; }
.skeleton-list span:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- VIJESTI ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #d8dde8; }
.news-img { aspect-ratio: 16 / 9; background: var(--navy-800); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.02); }
.news-img.no-img { display: grid; place-items: center; }
.news-img.no-img img { width: 64px; height: 64px; opacity: .9; object-fit: contain; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 0; }
.news-body time { font-size: 12px; color: var(--muted); }
.news-body h3 { margin-top: 6px; font-size: 15.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover h3 { color: var(--blue); }
.news-cat { margin-top: auto; padding: 14px 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.news-cat::before { content: ""; display: block; height: 1px; margin-bottom: 12px; background: var(--line-2); }
.news-grid .empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------------- SPONZORI ---------------- */
.sponsors { position: relative; background: var(--navy-800); color: #fff; }
.sponsors.has-bg { background: linear-gradient(90deg, rgba(11, 34, 88, .94), rgba(11, 34, 88, .86) 55%, rgba(11, 34, 88, .7)), var(--sp-bg) right 55% / max(140%, 900px) auto no-repeat, var(--navy-800); }
.sponsor-list { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding: 22px 0; }
.sponsor-list li { flex: 1 1 0; display: flex; justify-content: center; min-width: 120px; }
.sponsor-list a, .sponsor-list .slot { display: grid; place-items: center; height: 56px; width: 100%; max-width: 170px; }
.sponsor-list img { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; transition: opacity .15s; }
.sponsor-list a:hover img { opacity: 1; }
.sponsor-list .slot { border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius-sm); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .9fr; gap: 32px; padding-top: 36px; padding-bottom: 30px; }
.f-brand { display: flex; align-items: center; gap: 14px; }
.f-brand img { width: 60px; height: 60px; }
.f-brand p { font-weight: 800; text-transform: uppercase; color: #fff; font-size: 13px; line-height: 1.3; }
.f-col h3 { margin-bottom: 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.f-col li { margin-bottom: 6px; }
.f-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.f-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 40px; }
#contact-list li { display: flex; gap: 10px; align-items: flex-start; }
#contact-list svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social { display: flex; gap: 10px; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; transition: background .15s; }
.social a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.f-note { color: rgba(255,255,255,.45); font-size: 12.5px; }
.footer-bottom { padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.5); }
.credit-bar { background: #000; }
.credit { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px var(--gutter); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); transition: color .15s; }
.credit img { height: 13px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .25s, opacity .25s; }
.credit:hover, .credit:focus-visible { color: rgba(255,255,255,.75); }
.credit:hover img, .credit:focus-visible img { filter: none; opacity: 1; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .header-inner { gap: 20px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-text span:first-child { font-size: 16px; }
  .brand-text span:last-child { font-size: 13px; }
  .main-nav a { padding: 0 7px; font-size: 11.5px; }
  .main-nav a::after { left: 7px; right: 7px; }
}

/* TABLET + MOBILE: hamburger */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; height: auto;
    background: #fff; border-top: 1px solid var(--line); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; height: auto; padding: 8px var(--gutter) 24px; gap: 0; }
  .main-nav a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); width: 100%; }
  .main-nav a::after { left: 0; right: auto; width: 3px; top: 12px; bottom: 12px; height: auto; margin-left: calc(-1 * var(--gutter)); transform: scaleY(0); }
  .main-nav a.is-active::after { transform: scaleY(1); }
  body.nav-open { overflow: hidden; }

  .hero-content { padding-left: calc(var(--gutter) + 48px); }
  .hero-slide.is-right .hero-content { padding-right: calc(var(--gutter) + 48px); }
  .hero-bg { background-position: var(--pos-m, var(--pos, center)); }
  .quick-list a { padding: 22px 8px; }
  .quick-list strong { font-size: 13px; }
  .quick-list span { font-size: 12px; }
  .matches-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .live-row { gap: 8px; }
  .live-score b { font-size: 26px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) and (max-width: 1024px) {
  .hero-slide.is-right .hero-bg { background-position: center; }
}

@media (max-width: 860px) {
  .matches-grid { grid-template-columns: 1fr; }
}

/* sponzori: horizontalni slider kad nema dovoljno prostora */
@media (max-width: 1024px) {
  .sponsor-list { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 20px var(--gutter); min-height: 0; scrollbar-width: none; }
  .sponsor-list::-webkit-scrollbar { display: none; }
  .sponsor-list li { flex: 0 0 160px; scroll-snap-align: start; min-width: 0; }
}

/* MOBILE */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
  body { font-size: 14px; }
  .header-inner { gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text span:first-child { font-size: 13.5px; }
  .brand-text span:last-child { font-size: 11px; }
  .header-tools { gap: 2px; }
  .lang-btn { padding: 0 6px; }

  .hero { height: 360px; }
  .hero-content, .hero-slide.is-right .hero-content { padding: 0 var(--gutter) 30px; justify-content: flex-end; align-items: flex-start; text-align: left; }
  .hero-sub { font-size: 12px; letter-spacing: .02em; }
  .hero-slide::after, .hero-slide.is-right::after { background: linear-gradient(0deg, rgba(7,26,68,.94) 0%, rgba(7,26,68,.7) 45%, rgba(7,26,68,.2) 100%); }
  .hero .btn { margin-top: 18px; height: 40px; padding: 0 16px; font-size: 12px; }
  .hero-arrow { top: 24px; margin-top: 0; width: 36px; height: 36px; }
  .hero-arrow.prev { left: auto; right: 60px; }
  .hero-dots { bottom: 10px; }

  .quick-list { grid-template-columns: repeat(2, 1fr); }
  .quick-list li::before { display: none; }
  .quick-list li { border-bottom: 1px solid var(--line); }
  .quick-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .quick-list li:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .quick-list a { padding: 18px 8px; }
  .quick-list svg { width: 36px; height: 36px; margin-bottom: 6px; }

  .section { padding-top: 32px; }
  .block-head h2 { font-size: 18px; }
  .block-head h2 small { display: block; font-size: 12.5px; }

  .live { padding: 40px 14px 16px; }
  .live-row { grid-template-columns: 1fr auto 1fr; grid-template-areas: "hc sc ac" "hn sc an"; row-gap: 6px; }
  .live-row .crest-h { grid-area: hc; justify-self: center; }
  .live-row .crest-a { grid-area: ac; justify-self: center; }
  .live-row .team.home { grid-area: hn; text-align: center; font-size: 13px; }
  .live-row .team.away { grid-area: an; text-align: center; font-size: 13px; }
  .live-score { grid-area: sc; min-width: 84px; }

  .fixture { grid-template-columns: 46px 1fr 30px; grid-template-areas: "time home bell" "time away bell" "time comp bell"; gap: 4px 10px; padding: 12px 14px; }
  .fixture time { grid-area: time; align-self: start; padding-top: 2px; }
  .fixture .t.home { grid-area: home; }
  .fixture .t.away { grid-area: away; }
  .fixture .sep, .fixture .res { display: none; }
  .fixture .comp { grid-area: comp; grid-column: auto; margin: 2px 0 0; }
  .fixture .bell { grid-area: bell; grid-column: auto; grid-row: auto; align-self: center; }

  .standings th, .standings td { padding-left: 5px; padding-right: 5px; }
  .standings th.hide-xs, .standings td.hide-xs { display: none; }

  /* vijesti: horizontalni carousel */
  .news-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-card { flex: 0 0 82%; scroll-snap-align: start; }
  .news-card:hover { transform: none; }
  .news-grid .empty { flex: 1 0 100%; margin: 0; }

  /* sponzori: horizontalni slider */
  .sponsor-list li { flex: 0 0 42%; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
}

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

/* ==========================================================
   HERO — diskretan naslov u donjem uglu
   (tekst lijevo ili desno, suprotno od grba na fotografiji)
   ========================================================== */
.hero .hero-content { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 0 calc(var(--gutter) + 56px) 46px; }
.hero .hero-slide.is-right .hero-content { align-items: flex-end; text-align: right; padding: 0 calc(var(--gutter) + 56px) 46px; }
.hero-slide::after { background: linear-gradient(20deg, rgba(7, 26, 68, .9) 0%, rgba(7, 26, 68, .55) 28%, rgba(7, 26, 68, 0) 55%); }
.hero-slide.is-right::after { background: linear-gradient(-20deg, rgba(7, 26, 68, .9) 0%, rgba(7, 26, 68, .55) 28%, rgba(7, 26, 68, 0) 55%); }
.hero-title, .hero-cyr { margin: 0; max-width: none; }
.hero .fit { display: block; white-space: nowrap; text-transform: uppercase; }
.hero-title .fit { font-size: clamp(19px, 1.75vw, 28px); font-weight: 900; line-height: 1.1; letter-spacing: -.005em; color: #fff; text-shadow: 0 2px 14px rgba(4, 14, 40, .55); }
.hero-cyr { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--gold); }
.hero-cyr .fit { font-size: clamp(11px, .85vw, 13.5px); font-weight: 700; letter-spacing: .05em; color: var(--gold); }
.hero .hero-content .btn { margin-top: 16px; height: 38px; padding: 0 16px; font-size: 12px; }
/* široki ekrani: zamućena verzija fotografije popunjava prostor desno od slike */
.hero-blur { display: none; position: absolute; inset: -40px; background-size: cover; background-position: right center; filter: blur(22px) brightness(.5) saturate(1.15); }
@media (min-width: 760px) { .hero-blur { display: block; } }

@media (max-width: 640px) {
  .hero .hero-content, .hero .hero-slide.is-right .hero-content { align-items: flex-start; text-align: left; padding: 0 var(--gutter) 34px; }
  .hero-slide::after, .hero-slide.is-right::after { background: linear-gradient(0deg, rgba(7, 26, 68, .92) 0%, rgba(7, 26, 68, .55) 35%, rgba(7, 26, 68, 0) 65%); }
  .hero-title .fit { font-size: 19px; }
  .hero-cyr .fit { font-size: 11px; letter-spacing: .03em; }
}

/* ==========================================================
   PODSTRANICE
   ========================================================== */
.page-head { position: relative; color: #fff; background: var(--navy-800); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url("../img/hero/hero-reprezentacija.jpg") 0% 50% / cover no-repeat; opacity: .55; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 68, .95) 0%, rgba(7, 26, 68, .8) 45%, rgba(7, 26, 68, .45) 100%); }
.page-head .container { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 44px; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.page-head h1 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.page-head .accent { display: block; width: 56px; height: 3px; margin-top: 16px; background: var(--gold); }

.page-body { padding: 48px 0 64px; }
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 620px; margin: 0 auto; padding: 48px 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.soon img { width: 88px; height: 88px; }
.soon-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 12px; border-radius: 999px; background: #fff7d6; color: #7a5b00; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.soon-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-600); }
.soon p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.soon .btn { margin-top: 26px; }

.contact-intro { max-width: 720px; color: var(--ink-2); font-size: 16px; }
.contact-org { margin-top: 6px; font-size: 20px; font-weight: 800; color: var(--brand); text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 28px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.c-card > svg { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 50%; background: var(--blue-50); fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-card h2 { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-card p { margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.c-card p a:hover, .c-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.c-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.contact-map { min-height: 380px; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map, .contact-map iframe { min-height: 300px; }
}
@media (max-width: 640px) {
  .page-head .container { padding-top: 30px; padding-bottom: 30px; }
  .page-body { padding: 32px 0 48px; }
  .soon { padding: 36px 20px; }
  .c-card p { font-size: 15.5px; word-break: break-word; }
}

/* ---------- kolačići ---------- */
.cookie-link { padding: 0; border: 0; background: none; font-size: 12px; color: rgba(255,255,255,.5); text-decoration: underline; text-underline-offset: 3px; }
.cookie-link:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--navy-900); color: rgba(255,255,255,.88); border-top: 2px solid var(--gold); box-shadow: 0 -6px 24px rgba(4, 14, 40, .25); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.cookie-inner p { font-size: 13.5px; max-width: 760px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { height: 38px; padding: 0 18px; font-size: 12px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* savezi i organizacije */
.federations h2 { text-align: center; margin: 0 0 20px; }
.fed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fed-list a { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 18px 12px; background: #fff; border: 1px solid #e3e6ee; border-radius: 12px; text-decoration: none; color: inherit; text-align: center; font-size: .85rem; transition: box-shadow .2s, transform .2s; }
.fed-list a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.fed-list img { height: 90px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 800px) { .fed-list { grid-template-columns: repeat(2, 1fr); } }
/* utakmice - cisci prikaz */
.comp-head { padding: 12px 20px 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fixture { grid-template-columns: 62px 1fr 36px 1fr 38px; gap: 12px; padding: 12px 20px; }
.fixture time { background: var(--blue-50); color: var(--blue); border-radius: 8px; padding: 6px 0; text-align: center; font-size: 13px; font-weight: 800; }
.fixture .t.home { flex-direction: row-reverse; justify-content: flex-start; text-align: right; }
.fixture .sep { font-size: 12px; font-weight: 800; }
.fixture .bell { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.fixture .bell:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.fixture .bell svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .fixture { grid-template-columns: 54px 1fr 32px; grid-template-areas: "time home bell" "time away bell"; padding: 12px 14px; }
  .fixture .t.home { flex-direction: row; text-align: left; }
}
/* tabela u visini liste utakmica */
@media (min-width: 901px) {
  .matches-grid { align-items: stretch; }
  .matches-grid > .block { display: flex; flex-direction: column; min-width: 0; }
  .matches-grid > .block > .card { flex: 1; }
  .standings table { height: 100%; }
  .standings td { padding: 3px 8px; font-size: 13px; }
  .standings th { padding: 8px 8px; }
}
/* mobile: kompaktan raspored utakmica */
@media (max-width: 640px) {
  .matches .day-label { padding: 7px 14px; font-size: 10.5px; }
  .comp-head { padding: 8px 14px 0; font-size: 11.5px; }
  .fixture { grid-template-columns: 52px 1fr 30px; gap: 2px 10px; padding: 8px 14px; align-items: center; }
  .fixture time { grid-row: 1 / span 2; align-self: center; padding: 5px 0; font-size: 12.5px; }
  .fixture .t { font-size: 13.5px; gap: 8px; }
  .fixture .bell { grid-row: 1 / span 2; align-self: center; width: 28px; height: 28px; }
  .matches-grid .block-head h2 { font-size: 1.15rem; line-height: 1.2; }
  .standings td { padding: 6px 4px; }
  .standings td.club > div { gap: 8px; }
}