/* RCK Industrija 4.0: jedina CSS datoteka javnog dijela */

/* Fontovi (SIL Open Font License), lokalno: latin i latin-ext (č, ć, đ, š, ž) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0F172A;
  --navy-2: #172340;
  --header: #2B3B5C;
  --blue: #1863DC;
  --blue-dark: #0F4BB0;
  --blue-soft: #EAF1FC;
  --sky: #7DB9FF;
  --text: #454F5E;
  --muted: #5B6676;
  --light: #F4F6F9;
  --line: #DFE5EE;
  --white: #FFFFFF;
  --radius: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 4px 8px -4px rgba(15, 23, 42, .08);
  --header-h: 84px;
  --wrap: 1200px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Tanka tehnička mreža (nacrt) na tamnim površinama */
  --grid-lines: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid #6CB8FF; outline-offset: 2px; }
::selection { background: #CFE0FB; color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--blue); color: var(--white);
  border: 1px solid var(--blue); border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--glass {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: var(--white); box-shadow: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.prose .btn--outline, .b-button .btn--outline { color: var(--blue); border-color: var(--blue); }
.prose .btn--outline:hover, .b-button .btn--outline:hover { background: var(--blue-soft); color: var(--blue-dark); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.chip--live { background: #FEE4E2; color: #B42318; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, .2); }

/* Zaglavlje: prozirno s blurom, na početnoj leži preko fotografije */
.site-header {
  position: sticky; top: 0; z-index: 50; color: var(--white);
  background: rgba(19, 29, 51, .9);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .25s, border-color .25s;
}
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h) - 1px); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--overlay.is-scrolled, .site-header--overlay:has(.site-nav.is-open) {
  background: rgba(19, 29, 51, .9); border-bottom-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.site-header:has(.site-nav.is-open) { background: #131D33; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: var(--header-h); flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; padding: 2px 0; }
.logo img { display: block; width: 142px; height: auto; }
.header-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.site-nav { order: 2; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; min-height: 36px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; }
.lang-switch:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: rgba(255, 255, 255, .06); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm);
  font: 600 15px var(--font-body); cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav a { display: block; color: rgba(255, 255, 255, .86); text-decoration: none; padding: 10px 9px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.nav > li > a[aria-current="page"], .nav > .is-active > a { color: var(--white); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 8px 8px 0 0; }
.nav .nav-cta { background: var(--blue); color: var(--white); padding: 10px 16px; margin-left: 8px; border-radius: var(--r-sm); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.nav .nav-cta:hover { background: var(--blue-dark); }
.submenu {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.submenu a { color: var(--navy); font-weight: 500; white-space: normal; padding: 9px 12px; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav > li:hover > .submenu, .nav > li:focus-within > .submenu { display: block; }
.submenu-toggle { display: none; }

@media (max-width: 1220px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding-bottom: 16px; order: 4; margin-left: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li { display: flex; flex-wrap: wrap; align-items: center; }
  .nav > li > a { flex: 1; }
  .nav > li > a[aria-current="page"], .nav > .is-active > a { box-shadow: inset 3px 0 0 var(--sky); border-radius: 0 8px 8px 0; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    background: transparent; border: 0; color: var(--white); cursor: pointer; border-radius: 8px;
  }
  .submenu-toggle svg { transition: transform .15s; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .submenu { position: static; width: 100%; box-shadow: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .05); padding: 4px 0 4px 12px; }
  .submenu::before { display: none; }
  .submenu a { color: rgba(255, 255, 255, .86); }
  .submenu a:hover, .submenu a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }
  .nav > li:hover > .submenu, .nav > li:focus-within > .submenu { display: none; }
  .nav > li > .submenu.is-open { display: block; }
}

/* Naslovnica: fotografija s tamnim prijelazom slijeva, tekst lijevo */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__img { object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 18, 36, .94) 0%, rgba(11, 18, 36, .82) 38%, rgba(11, 18, 36, .35) 75%, rgba(11, 18, 36, .2) 100%),
    linear-gradient(0deg, rgba(11, 18, 36, .85) 0%, rgba(11, 18, 36, 0) 45%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grid-lines); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero__inner { min-height: clamp(520px, 74vh, 700px); padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.hero__place { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero__place::before { content: ""; width: 32px; height: 2px; background: var(--sky); }
.hero h1 { margin: 0; color: var(--white); font-weight: 800; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.025em; max-width: 13em; }
.hero h1 span { display: block; color: var(--sky); }
.hero__lead { margin: 0; max-width: 36em; font-size: clamp(16px, 1.4vw, 18.5px); color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__quick-wrap { position: relative; padding-bottom: 40px; }
.hero__quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero__quick a {
  display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px;
  color: var(--white); text-decoration: none; border-radius: var(--radius);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.hero__quick a:hover { color: var(--white); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.hero__quick strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.3; }
.hero__quick small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.hero__quick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(125, 185, 255, .16); color: var(--sky); }

.section { padding: 88px 0; }
.section--light { background: var(--light); }
.section--center { text-align: center; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section__head .section__title { margin: 0; }
.section__title { margin: 0 0 24px; font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.section__lead { margin: -12px 0 32px; max-width: 52em; }

/* Traka s motom: tamna, s mrežom i plavim sjajem */
.statement { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: rgba(255, 255, 255, .8); padding: 96px 0; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%); }
.statement::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -160px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(24, 99, 220, .45) 0%, rgba(24, 99, 220, 0) 65%); }
.statement__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; }
.statement__motto { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; color: var(--white); }
.statement__text h2 { margin: 0 0 14px; color: var(--white); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; }
.statement__text p { margin: 0; font-size: 17px; }

/* Što radimo */
.feature { position: relative; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C9D6EA; }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #1863DC 0%, #0F4BB0 100%); color: var(--white); box-shadow: 0 8px 20px -6px rgba(24, 99, 220, .55); }
.feature h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 700; }
.feature p { margin: 0; font-size: 15.5px; }

/* O centru i tri škole */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split__text > p { margin: 0 0 24px; font-size: 17px; }
.split__media { margin: 0; position: relative; isolation: isolate; }
.split__media img { display: block; width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.split__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; border-radius: 20px; background: linear-gradient(135deg, rgba(24, 99, 220, .2), rgba(24, 99, 220, .02)); }
.schools { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.schools li { border-bottom: 1px solid var(--line); }
.schools a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; padding: 14px 4px; color: var(--navy); text-decoration: none; }
.schools a span { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.schools a small { grid-row: 2; color: var(--muted); font-size: 13.5px; }
.schools a svg { grid-row: 1 / 3; grid-column: 2; color: var(--blue); transition: transform .15s; }
.schools a:hover span { color: var(--blue); }
.schools a:hover svg { transform: translateX(4px); }

/* Rešetka s tri stupca */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Kartice vijesti i webinara: cijela kartica je poveznica (naslov se rasteže) */
.card-news { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-news:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C9D6EA; }
.card-news:has(a:focus-visible) { outline: 3px solid #6CB8FF; outline-offset: 2px; }
.card-news__img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #DCE6F5, #EEF2F8); overflow: hidden; }
.card-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card-news:hover .card-news__img img { transform: scale(1.04); }
.card-news__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-news__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--muted); }
.card-news h3 { margin: 0; font-weight: 700; font-size: 18.5px; line-height: 1.35; }
.card-news h3 a { color: var(--navy); text-decoration: none; }
.card-news h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-news h3 a:focus-visible { outline: none; }
.card-news:hover h3 a { color: var(--blue); }
.card-news__excerpt { margin: 0; font-size: 15px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-news__more { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.card-webinar__date { position: absolute; top: 12px; left: 12px; min-width: 52px; padding: 6px 10px; text-align: center; line-height: 1.1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 10px; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.card-webinar__date strong { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: 0; }
.card-webinar__presenter { margin: -4px 0 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.card-webinar--upcoming { border-color: #BFD3F5; box-shadow: 0 0 0 1px #BFD3F5, var(--shadow-sm); }

/* Kartice iz blokova i podstranice */
.card { position: relative; overflow: hidden; background: linear-gradient(140deg, #1863DC 0%, #1252BF 60%, #0F4BB0 100%); color: var(--white); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(24, 99, 220, .6); transition: transform .2s, box-shadow .2s; }
.card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.card h3 { margin: 0; font-weight: 700; font-size: 20px; color: var(--white); }
.card p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .92); }
.card--link:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(24, 99, 220, .7); }

/* Logotipi i podnožje */
.logos { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: center; padding: 36px 24px; list-style: none; margin: 0 auto; border-top: 1px solid var(--line); }
.logos img { height: 60px; width: auto; display: block; }
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(24, 99, 220, .35), rgba(24, 99, 220, 0) 65%); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer__about img { display: block; width: 168px; height: auto; margin-bottom: 16px; }
.site-footer__about p { margin: 0; max-width: 24em; }
.site-footer h2 { margin: 6px 0 14px; color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 16px; }
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.site-footer__social a:hover { background: rgba(255, 255, 255, .14); }
.site-footer__bar { position: relative; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bar a { padding: 12px 0; }

/* Unutarnje stranice: tamna traka s mrežom */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #0F172A 0%, #172340 55%, #1A2D57 100%); color: rgba(255, 255, 255, .8); padding: 48px 0 44px; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%); }
.page-head::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -120px; top: -240px; background: radial-gradient(circle, rgba(24, 99, 220, .4), rgba(24, 99, 220, 0) 65%); }
.page-head h1 { margin: 0; color: var(--white); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.02em; max-width: 24em; }
.page-head__meta { margin: 12px 0 0; color: rgba(255, 255, 255, .78); font-size: 15.5px; max-width: 46em; }
.page-head__meta a { color: var(--white); }
.breadcrumbs { font-size: 14px; margin-bottom: 12px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding: 56px 0 88px; }
.layout--single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.side-nav { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.side-nav h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; padding: 0 12px; }
.side-nav h2 a { color: var(--muted) !important; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 8px 12px; color: var(--navy); text-decoration: none; border-radius: 8px; font-size: 15px; line-height: 1.4; transition: background-color .15s; }
.side-nav a:hover { color: var(--blue); background: var(--white); }
.side-nav a[aria-current="page"] { color: var(--white); background: var(--blue); font-weight: 600; }

/* Tekst sadržaja */
.prose { max-width: 820px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 27px; font-weight: 800; letter-spacing: -.015em; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 18px; margin: 1.2em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--blue); background: var(--light); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 20px; color: var(--navy); }
.prose img { border-radius: var(--r-sm); }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .b-image figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--light); color: var(--navy); }

/* Blokovi */
.b-text, .b-image, .b-image-text, .b-gallery, .b-cards, .b-button, .b-video, .b-files, .b-columns { margin: 0 0 36px; }
.b-image { margin-left: 0; margin-right: 0; }
.b-image img { display: block; border-radius: var(--radius); }
.b-image-text { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 36px; align-items: start; }
.b-image-text--right .b-image-text__img { order: 2; }
.b-image-text__img img { display: block; border-radius: var(--radius); }
.b-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.b-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: #DCE4EF; }
.b-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.b-gallery__item:hover img { transform: scale(1.05); }
.b-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.b-video { max-width: 820px; }
.b-video__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.b-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.b-video__play:hover img { opacity: 1; }
.b-video__play svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.b-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.b-files { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.b-files li + li { border-top: 1px solid var(--line); }
.b-files a { display: block; padding: 14px 16px 14px 48px; position: relative; text-decoration: none; font-weight: 500; }
.b-files a:hover { background: var(--light); text-decoration: underline; }
.b-files a::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 18px; margin-top: -9px; border: 2px solid currentColor; border-radius: 3px; }
.b-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

/* Popis vijesti */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500; background: var(--white); transition: border-color .15s, color .15s; }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.pager a { font-weight: 600; padding: 12px 0; text-decoration: none; }
.news-cover { margin: 0 0 36px; }
.news-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.back-link { display: inline-block; margin-top: 24px; font-weight: 600; padding: 12px 0; text-decoration: none; }

/* Lightbox galerije */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 22, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }

/* Greška */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 36px; margin: 0 0 12px; }

@media (max-width: 1000px) {
  .hero__quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; }
  .side-nav { position: static; order: 2; }
  .b-image-text, .b-columns { grid-template-columns: minmax(0, 1fr); }
  .b-image-text--right .b-image-text__img { order: 0; }
  .statement__inner, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split__media::before { inset: 16px -12px -16px 16px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .wrap { padding: 0 16px; }
  .logo img { width: 124px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { min-height: 0; padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 18, 36, .78) 0%, rgba(11, 18, 36, .88) 60%, rgba(11, 18, 36, .96) 100%); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__quick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero__quick a { padding: 14px; align-items: center; }
  .hero__quick small { display: none; }
  .section { padding: 64px 0; }
  .statement { padding: 72px 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; }
  .card-news__img { aspect-ratio: 16 / 9; }
  .logos { gap: 20px 28px; }
  .logos img { height: 44px; }
}

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

/* Obrasci (kontakt, kasnije rezervacije i prijave) */
.contact-form { max-width: 720px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-form h2 { margin: 0 0 20px; font-size: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input:not([type=checkbox]), .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--navy); padding: 12px 14px; min-height: 48px;
  border: 1px solid #A3AEBE; border-radius: var(--r-sm); background: var(--white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); outline: 3px solid #BFD4F6; outline-offset: 0; }
.form-field [aria-invalid="true"] { border-color: #B42318; }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.form-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.form-check label { font-weight: 400; color: var(--text); margin: 0; }
.form-check .form-error { grid-column: 2; }
.form-error { color: #B42318; font-size: 14px; margin: 6px 0 0; font-weight: 500; }
p.form-error[role="alert"] { background: #FEF3F2; border: 1px solid #FECDCA; padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 20px; }
.form-success { background: #ECFDF3; border: 1px solid #ABEFC6; color: #05603A; padding: 16px 20px; border-radius: var(--r-sm); font-weight: 500; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

/* Gumbi u nizu, slike s poveznicama, podstranice, vijesti u sadržaju */
.b-button { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .btn { color: var(--white); text-decoration: none; }
.prose .btn:hover { color: var(--white); }
.b-image-links { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.b-image-links a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.35; }
.b-image-links img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: #F4F6F9; transition: transform .15s, box-shadow .15s; }
.b-image-links a:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .15); }
.b-image-links a:hover span { color: var(--blue); text-decoration: underline; }
.b-news { margin: 0 0 32px; }
.child-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.child-cards .card { height: 100%; justify-content: center; min-height: 96px; }
.child-cards .card h3 { font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .form-field { grid-column: 1 / -1; }
.form-grid .form-field--half { grid-column: auto; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid .form-field--half { grid-column: 1 / -1; } }
.contact-form { margin-bottom: 40px; }

/* Rezervacija vježbi */
.booking { max-width: 820px; margin: 8px 0 40px; }
.booking__step { display: flex; align-items: center; gap: 12px; font-size: 21px; margin: 32px 0 16px; }
.booking__step span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 16px; flex: none; }
.booking__form > .booking__step:first-of-type { margin-top: 0; }
.booking__centers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 8px; }
.booking__center { min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); font: 600 15px var(--font-body); text-align: left; cursor: pointer; }
.booking__center:hover { border-color: var(--blue); }
.booking__center[aria-checked="true"] { border-color: var(--blue); background: #EAF1FC; box-shadow: inset 0 0 0 1px var(--blue); }
.booking__fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking__summary { margin: 4px 0 8px; color: var(--muted); }
.booking__summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.booking__summary li { display: inline-flex; align-items: center; gap: 2px; background: var(--blue); color: var(--white); border-radius: 999px; padding: 4px 4px 4px 14px; font-weight: 600; font-size: 14px; }
.booking__remove { background: none; border: 0; color: var(--white); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.booking__remove:hover { background: rgba(255, 255, 255, .2); }
.form-help { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

.booking__calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; margin-bottom: 12px; }
.booking__calendar[aria-busy="true"] { opacity: .6; }
.cal__nav { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.cal__arrow { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.cal__arrow:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.cal__arrow:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cal__title { text-align: center; font-size: 17px; margin: 8px 0 14px; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal__day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 6px; font: 600 15px var(--font-body); cursor: pointer; }
.cal__day:disabled { cursor: default; }
.cal__day--available { background: #E7F6EC; color: #05603A; }
.cal__day--available:hover { background: #C8EBD4; }
.cal__day--selected { background: var(--blue); color: var(--white); }
.cal__day--pending { background: #FEF0C7; color: #93370D; }
.cal__day--booked { background: #FDE2E1; color: #912018; text-decoration: line-through; }
.cal__day--closed { background: #F2F4F7; color: #98A2B3; }
.cal__day--past { background: transparent; color: #C0C6D0; }
.cal__legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.cal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal__swatch { width: 16px; height: 16px; border-radius: var(--r-sm); display: inline-block; }
.cal__day--partial { background: #FDEAD7; color: #93370D; box-shadow: inset 0 -3px 0 #F79009; }
.cal__day--partial:hover { background: #F9DBAF; }
.cal__day--full { background: #FDE2E1; color: #912018; text-decoration: line-through; }
.cal__months--inactive { opacity: .45; }
.cal__notice { background: #EFF4FF; border: 1px solid #C7D7FE; color: #1849A9; border-radius: var(--r-sm); padding: 10px 14px; margin: 44px 0 12px; font-weight: 500; }
.booking__areas { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.booking__areas legend { font-weight: 600; color: var(--navy); margin-bottom: 10px; padding: 0; }
.booking__area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.booking__area { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 500; color: var(--navy); }
.booking__area:hover { border-color: var(--blue); }
.booking__area input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.booking__area:has(input:checked) { border-color: var(--blue); background: #EAF1FC; }
.booking__summary li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; background: none; color: inherit; padding: 0; border-radius: 0; font-weight: 400; }
.booking__summary ul { flex-direction: column; gap: 6px; }
.booking__chip { display: inline-flex; align-items: center; gap: 2px; background: var(--blue); color: var(--white); border-radius: 999px; padding: 4px 4px 4px 14px; font-weight: 600; font-size: 14px; }
.booking__taken { font-size: 14px; color: #93370D; }
.booking__time { margin-top: 8px; }
.booking__time-help { grid-column: 1 / -1; margin-top: -8px; }
.booking__conflict { grid-column: 1 / -1; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }

/* Webinari */
.webinars__heading { font-size: 26px; margin: 8px 0 24px; }
.webinars__heading:not(:first-child) { margin-top: 56px; }
.webinars__empty { background: var(--light); border-radius: var(--radius); padding: 20px 24px; color: var(--text); }
.webinar-live { color: #F04438; font-weight: 700; }
.webinar-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.webinar-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.webinar-wait, .webinar-countdown { background-color: var(--navy); background-image: var(--grid-lines); background-size: 40px 40px; color: var(--white); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; text-align: center; }
.webinar-countdown { display: flex; flex-direction: column; gap: 6px; }
.webinar-countdown strong { font-family: var(--font-head); font-size: 34px; }
.webinar-summary { font-size: 19px; color: var(--navy); }

/* .section ne smije poništiti bočni razmak od .wrap */
.wrap.section { padding-left: 24px; padding-right: 24px; }
@media (max-width: 760px) { .wrap.section { padding-left: 16px; padding-right: 16px; } }
.webinar-live-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 12px; margin-bottom: 12px; }
.webinar-live-grid .webinar-player { margin-bottom: 0; }
.webinar-chat { width: 100%; height: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.layout--single:has(.webinar-live-grid) { grid-template-columns: minmax(0, 1152px); }
@media (max-width: 900px) { .webinar-live-grid { grid-template-columns: minmax(0, 1fr); } .webinar-chat { height: 420px; } }
.webinar-ask summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 8px 0; }
.webinar-ask[open] summary { margin-bottom: 16px; }

/* Kartice (tabs) */
.b-tabs { margin: 0 0 32px; }
.b-tabs__list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.b-tabs__list [role="tab"] { min-height: 48px; padding: 0 20px; border: 0; background: none; font: 600 16px var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.b-tabs__list [role="tab"]:hover { color: var(--navy); }
.b-tabs__list [role="tab"][aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.b-tabs [role="tabpanel"] .contact-form { border-top: 0; margin-top: 16px; padding-top: 0; }

/* Vodoravni izbornik podstranica (npr. Web poruke po tehnologijama) */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.subnav a:hover { border-color: var(--blue); color: var(--blue); }
.subnav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Sadržajne stranice: svijetla podloga, čitljiviji tekst, cjeline kao kartice */
.page-body { background: linear-gradient(180deg, #F4F6FA 0%, #F8FAFC 320px, #FFFFFF 100%); }
.page-content .prose { font-size: 17px; line-height: 1.75; color: #3F4A5A; }
.page-content > .b-text:first-child > p:first-child { font-size: 19px; line-height: 1.65; color: var(--navy); }
.page-content .prose a { overflow-wrap: anywhere; }
.side-nav { background: var(--white); box-shadow: var(--shadow-sm); }
.side-nav a:hover { background: var(--light); }
.side-nav h2 a { text-decoration: none; }

.b-section-title { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.b-section-title::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(180deg, var(--sky), var(--blue)); flex: none; }
.b-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-content > .b-section-title:first-child { margin-top: 0; }
.page-content .prose h2:not(:first-child) { margin-top: 1.9em; }
.page-content .prose h2 { position: relative; padding-left: 18px; }
.page-content .prose h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.page-content .b-group .prose h2:first-child { padding-left: 0; }
.page-content .b-group .prose h2:first-child::before { display: none; }

.b-group { margin: 0 0 24px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.b-group > :last-child { margin-bottom: 0; }
.b-group > .b-text { margin-bottom: 0; max-width: 68ch; }
.b-group > .b-text > h2:first-child, .b-group > .b-text > h3:first-child { margin: 0 0 12px; font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.b-group > .b-gallery, .b-group > .b-image, .b-group > .b-video, .b-group > .b-files, .b-group > .b-button { margin: 24px 0 0; }

/* Galerija u kartici: mozaik po 4 u redu; ovisno o broju slika prve su veće pa nema praznih mjesta */
.b-group .b-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.b-group .b-gallery__item { border-radius: 10px; }
.b-group .b-gallery__item:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.b-group .b-gallery__item:first-child:nth-last-child(4n+5) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.b-group .b-gallery__item:first-child:nth-last-child(4n+3) { grid-column: span 2; aspect-ratio: 8 / 3; }
.b-group .b-gallery__item:first-child:nth-last-child(4n+2), .b-group .b-gallery__item:first-child:nth-last-child(4n+2) + .b-gallery__item { grid-column: span 2; aspect-ratio: 8 / 3; }

/* Plave kartice s poveznicom: strelica dolje desno */
.card--link { min-height: 120px; justify-content: space-between; }
.card--link::before { content: "→"; order: 2; align-self: flex-end; font-size: 20px; line-height: 1; opacity: .8; transition: transform .2s; }
.card--link:hover::before { transform: translateX(4px); }

@media (max-width: 760px) {
  .b-group { padding: 20px; border-radius: 14px; }
  .b-group .b-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-group .b-gallery .b-gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .b-group .b-gallery .b-gallery__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .b-section-title { font-size: 22px; margin-top: 40px; }
  .page-content .prose { font-size: 16.5px; }
  .page-content > .b-text:first-child > p:first-child { font-size: 17.5px; }
}

/* Javni raspored rezervacija (Mreža škola → Raspored vježbi) */
.sched { --c1: #1863DC; --c2: #0E9384; --c3: #7A5AF8; --c4: #DC6803; }
.sched__intro { margin: 0 0 20px; max-width: 46em; }
.sched__intro .link-arrow { margin-left: 4px; }
.sched__filter { margin-bottom: 20px; }
.sched__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--c1); }
.sched__dot--c2 { background: var(--c2); } .sched__dot--c3 { background: var(--c3); } .sched__dot--c4 { background: var(--c4); }
.sched__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sched__month { margin: 0; font-size: 24px; font-weight: 800; }
.sched__nav { display: flex; align-items: center; gap: 8px; }
.sched__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); font-size: 22px; line-height: 1; text-decoration: none; }
.sched__arrow:hover { border-color: var(--blue); color: var(--blue); }
.sched__today { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: 14px; text-decoration: none; }
.sched__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sched__head { background: var(--light); padding: 8px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sched__day { background: var(--white); min-height: 104px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sched__day.is-out { background: #FAFBFC; }
.sched__day.is-past { background: #FBFCFD; }
.sched__day.is-past .sched__date, .sched__day.is-past .sched__item { opacity: .6; }
.sched__day.is-closed { background: repeating-linear-gradient(135deg, #F7F8FA, #F7F8FA 6px, #F1F3F6 6px, #F1F3F6 12px); }
.sched__date { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.sched__dow { display: none; }
.sched__now { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 11px; line-height: 1.6; vertical-align: 1px; }
.sched__day.is-today { box-shadow: inset 0 0 0 2px var(--blue); }
.sched__closed { margin: 0; font-size: 12.5px; color: var(--muted); font-style: italic; }
.sched__item { --c: var(--c1); display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 9%, white); font-size: 12.5px; line-height: 1.35; color: var(--navy); }
.sched__item--c2 { --c: var(--c2); } .sched__item--c3 { --c: var(--c3); } .sched__item--c4 { --c: var(--c4); }
.sched__item strong { font-size: 12.5px; }
.sched__school { font-weight: 600; }
.sched__areas, .sched__center { color: var(--muted); }
.sched__item.is-pending { background: var(--white); border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.sched__pending-label { display: inline-block; align-self: flex-start; margin-top: 2px; padding: 0 6px; border-radius: 4px; background: #FEF0C7; color: #93370D; font-size: 11px; font-weight: 600; }
.sched__intro .sched__pending-label { margin: 0; vertical-align: 1px; }
.sched__none { margin: 16px 0 0; color: var(--muted); }

/* Mobitel i uski zasloni: popis dana; prazni dani i dani izvan mjeseca se ne prikazuju */
@media (max-width: 900px) {
  .sched__grid { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .sched__head, .sched__day.is-out, .sched__day:not(.has-items):not(.is-closed):not(.is-today) { display: none; }
  .sched__day { min-height: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
  .sched__day.is-today { box-shadow: 0 0 0 2px var(--blue); border-color: transparent; }
  .sched__dow { display: inline; }
  .sched__date { font-size: 14.5px; }
  .sched__item { font-size: 14px; }
  .sched__item strong { font-size: 14px; }
}
.booking__schedule-link { margin: 0 0 24px; }
