/* ==========================================================================
   e-Duhovne vježbe — promotivna stranica
   Boje: plava paleta aplikacije + liturgijska boja dana (data-lit na <html>)
   ========================================================================== */

:root {
  --bg: #EEF5FB;
  --surface: #FFFFFF;
  --deep: #002C4D;
  --ink: #1D3850;
  --muted: #52697F;
  --line: rgba(0, 44, 77, 0.13);
  --sky: #D9EFFF;
  --blue: #0079E9;
  --blue-ink: #0062BF;
  --star: #E9A800;

  /* liturgijske boje za krug godine */
  --c-purple: #7A58C0;
  --c-rose: #D581AA;
  /* bijela je prava bijela s tankim obrisom, da se vidi na bijeloj podlozi */
  --c-white: #FFFFFF;
  --c-white-edge: #BFCBD7;
  --c-green: #4E9A58;
  --c-red: #C8483E;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --section: clamp(72px, 10vw, 128px);

  color-scheme: light;
}

/* liturgijska boja dana: --lit (naglasak), --lit-bg (podloga na stranici),
   --lit-tint (uvijek svijetla, za prikaz aplikacije), --lit-edge (rub podloge:
   samo bijeli dani, čija je podloga gotovo bijela, imaju tanki zlatni rub) */
:root { --lit-edge: transparent; }
:root[data-lit="green"]  { --lit: #2F7D3B; --lit-bg: #DDF3DA; --lit-tint: #D7FAD4; --lit-night: #86D08E; }
:root[data-lit="purple"] { --lit: #6A45B0; --lit-bg: #EAE0FF; --lit-tint: #E7D9FF; --lit-night: #BBA0F0; }
:root[data-lit="rose"]   { --lit: #B8467C; --lit-bg: #FFE0EE; --lit-tint: #FFD9EB; --lit-night: #F2A6CA; }
:root[data-lit="white"]  { --lit: #9A7208; --lit-bg: #FFFDF8; --lit-tint: #FFF3CC; --lit-night: #EACB6E; --lit-edge: #D9BE73; }
:root[data-lit="red"]    { --lit: #B8352C; --lit-bg: #FFE0DC; --lit-tint: #FFDCD8; --lit-night: #F4928A; }

/* tamni način: po postavci uređaja, osim kad je u podnožju odabran svijetli,
   ili kad je odabran tamni (data-theme na <html>, vidi theme_switch) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04172A;
    --surface: #0A243D;
    --deep: #F1F7FD;
    --ink: #D3E2EF;
    --muted: #97AEC4;
    --line: rgba(217, 239, 255, 0.13);
    --sky: #0D3150;
    --blue: #3E9FF2;
    --blue-ink: #7CBEF7;
    --c-white: #E8EEF4;
    --c-white-edge: #E8EEF4;
    color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-lit="green"]  { --lit: #86D08E; --lit-bg: #16351C; }
  :root:not([data-theme="light"])[data-lit="purple"] { --lit: #BBA0F0; --lit-bg: #2B2147; }
  :root:not([data-theme="light"])[data-lit="rose"]   { --lit: #F2A6CA; --lit-bg: #452338; }
  :root:not([data-theme="light"])[data-lit="white"]  { --lit: #EACB6E; --lit-bg: #0F2B47; --lit-edge: #A8893F; }
  :root:not([data-theme="light"])[data-lit="red"]    { --lit: #F4928A; --lit-bg: #46201D; }
}
:root[data-theme="dark"] {
  --bg: #04172A;
  --surface: #0A243D;
  --deep: #F1F7FD;
  --ink: #D3E2EF;
  --muted: #97AEC4;
  --line: rgba(217, 239, 255, 0.13);
  --sky: #0D3150;
  --blue: #3E9FF2;
  --blue-ink: #7CBEF7;
  --c-white: #E8EEF4;
  --c-white-edge: #E8EEF4;
  color-scheme: dark;
}
:root[data-theme="dark"][data-lit="green"]  { --lit: #86D08E; --lit-bg: #16351C; }
:root[data-theme="dark"][data-lit="purple"] { --lit: #BBA0F0; --lit-bg: #2B2147; }
:root[data-theme="dark"][data-lit="rose"]   { --lit: #F2A6CA; --lit-bg: #452338; }
:root[data-theme="dark"][data-lit="white"]  { --lit: #EACB6E; --lit-bg: #0F2B47; --lit-edge: #A8893F; }
:root[data-theme="dark"][data-lit="red"]    { --lit: #F4928A; --lit-bg: #46201D; }

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* --- osnove ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* bez jedne riječi u zadnjem retku odlomka */
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--deep); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--deep);
  text-wrap: balance;
  font-optical-sizing: auto;
}

h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--deep); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 14px 24px; transition: background-color .2s;
}
.btn:hover { background: #0065C4; }
.btn--small { padding: 10px 18px; font-size: 0.9375rem; white-space: nowrap; }

/* --- zaglavlje -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { color: var(--deep); display: inline-flex; margin-right: auto; }
.brand__logo { height: 46px; width: auto; aspect-ratio: 424 / 128; }

.site-nav { display: none; gap: 28px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: color .2s, background-size .35s cubic-bezier(.2, .7, .2, 1);
}
.site-nav a:hover { color: var(--blue-ink); background-size: 100% 1.5px; }
@media (min-width: 1040px) { .site-nav { display: flex; } }

/* ispod 1040 px: "Preuzmi" vodi ravno u trgovinu, a izbornik (samo poveznice) je iza
   gumba s tri crte */
.site-header__download--phone, .menu { display: none; }
@media (max-width: 1039px) {
  .site-header__inner { gap: 12px; }
  .site-header__download { display: none; }
  .site-header__download--phone { display: inline-flex; }
  .menu { display: block; }
}
@media (max-width: 519px) { .site-header .btn__more { display: none; } }
/* uski mobiteli (npr. 360 px): sve stane u jedan red */
@media (max-width: 400px) { .site-header .brand__logo { height: 40px; } }

.menu__toggle {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border-radius: 50%; color: var(--deep); cursor: pointer;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.menu__toggle .i { width: 26px; height: 26px; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 4px var(--gutter) 12px;
  max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 32px -28px rgba(0, 30, 60, .5);
}
.menu__panel > a {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--deep); text-decoration: none; font-size: 1.125rem; font-weight: 500;
}
.menu__panel > a:hover { color: var(--blue-ink); }
.menu__panel > a:last-child { border-bottom: 0; }
.site-header:has(.menu[open]) { background: var(--bg); border-bottom-color: var(--line); }

/* --- hero ------------------------------------------------------------------- */

.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 var(--section); overflow: hidden; }

.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; min-height: min(700px, calc(100vh - 160px)); }
}

.today { display: flex; align-items: center; gap: 18px; font-size: 0.9375rem; color: var(--ink); margin-bottom: clamp(28px, 4vw, 44px); }
.today > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.today__date { font-weight: 600; color: var(--deep); }
.today__season { color: var(--muted); }
.today__dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--lit); box-shadow: 0 0 0 5px var(--lit-bg), 0 0 0 6px var(--lit-edge);
}

.hero__title { font-weight: normal; margin-bottom: 28px; }
.hero__word {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.6rem, 23vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-left: -0.05em;
  color: var(--deep);
  --spread: .07em;
}
/* slova ostaju u retku dok se skupljaju, točka pada zasebno */
.hero__letters { white-space: nowrap; }
.hero__stop { display: inline-block; }
.hero__line {
  display: block;
  margin-top: 0.55em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  max-width: 15.5em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lead { max-width: 34rem; font-size: 1.125rem; color: var(--muted); margin-bottom: 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; border-radius: 10px; }
.store img { height: 50px; width: auto; }
.os-android .store[data-store="android"] { order: -1; }
/* uski mobiteli (npr. 360 px): obje značke stanu u jedan red */
@media (max-width: 400px) { .store img { height: 46px; } }

.proof { display: flex; gap: 36px; margin-top: 32px; }
.proof dt { font-size: 0.8125rem; color: var(--muted); }
.proof dd { font-weight: 600; color: var(--deep); display: flex; align-items: center; gap: 6px; }
.proof .i { color: var(--star); width: 1.1em; height: 1.1em; }

.hero__visual { position: relative; display: grid; place-items: center; padding: 24px 0; }

.hero__mark {
  position: absolute; left: 50%; top: 50%;
  width: min(680px, 128%); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--lit); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.55;
  pointer-events: none;
}
.hero__mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (min-width: 960px) { .hero__word { font-size: clamp(4.6rem, 12vw, 10.5rem); --spread: .15em; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__mark path { animation: draw 2.6s cubic-bezier(.6, .05, .25, 1) .15s both; }
  /* kad se iscrta, znak mirno diše: udah 4 s, duži izdah 6 s ("Zastani.") */
  .hero__mark { animation: mark-breath 10s ease-in-out 2.8s infinite; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* raste iz svoje sredine: povećanje ide u isti transform koji ga centrira */
@keyframes mark-breath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  40% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.82; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* --- zašto ------------------------------------------------------------------ */

.why { padding: var(--section) 0; border-top: 1px solid var(--line); }
.why__grid { display: grid; gap: 28px; }
/* naslov i prvi redak teksta na istoj osnovnoj crti */
@media (min-width: 960px) { .why__grid { grid-template-columns: 4fr 8fr; gap: 48px; align-items: baseline; } }
.why__title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); max-width: 11em; }
.statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.35vw, 2rem);
  line-height: 1.38;
  font-weight: 380;
  color: var(--deep);
  max-width: 34em;
  text-wrap: pretty;
}
.statement--second { color: var(--muted); margin-top: 0.9em; }

/* --- zajedničko za značajke -------------------------------------------------- */

.feature { padding: var(--section) 0; }
/* dvije značajke zaredom ne dobivaju dvostruki razmak */
.feature + .feature, .why + .feature { padding-top: calc(var(--section) * 0.4); }
@media (min-width: 960px) {
  .feature + .feature { padding-top: 0; }
  .why + .feature { padding-top: calc(var(--section) * 0.5); }
}
.feature__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature__grid--flip .feature__copy { order: 2; }
}
.feature__copy h2 { max-width: 15em; margin-bottom: 20px; }
.feature__lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.feature__note {
  margin-top: 32px; padding-left: 16px; border-left: 3px solid var(--lit);
  color: var(--muted); max-width: 32rem; font-size: 1rem;
}

.feature__visual { position: relative; display: grid; place-items: center; padding: 32px 0; }
.feature__visual::before {
  content: ""; position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: var(--sky); opacity: .7;
}
.feature--word .feature__visual::before { background: var(--lit-bg); box-shadow: inset 0 0 0 1px var(--lit-edge); opacity: 1; }

.steps { counter-reset: step; margin-top: 40px; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 300; color: var(--lit);
}
.steps p { color: var(--muted); max-width: 30rem; }

/* obavijest uz telefon */
.notif {
  position: absolute; z-index: 2; left: 0; top: 71%;
  display: flex; align-items: center; gap: 12px;
  width: min(300px, 78%);
  padding: 12px 14px; border-radius: 18px;
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 44, 77, .45);
  color: #1A1A1A; font-size: 0.8125rem; line-height: 1.3;
}
.notif__icon { width: 36px; height: 36px; padding: 6px; border-radius: 9px; background: #0079E9; color: #fff; flex: none; }
.notif span { display: flex; flex-direction: column; min-width: 0; }
.notif i { font-style: normal; color: #595959; }
.notif time { margin-left: auto; align-self: flex-start; color: #8C8C8C; font-size: 0.75rem; }
@media (min-width: 1200px) { .notif { left: -6%; } }

/* Prikazi ekrana aplikacije su u mockups.css */

/* --- liturgijska godina ------------------------------------------------------ */

.year { padding: var(--section) 0; background: var(--surface); border-block: 1px solid var(--line); }
.year__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.year__head p { color: var(--muted); max-width: 36rem; font-size: 1.125rem; }
/* zadnji redak teksta na osnovnoj crti zadnjeg retka naslova */
@media (min-width: 960px) {
  .year__head { grid-template-columns: 1fr 1fr; align-items: end; align-items: last baseline; gap: 72px; }
}

.year__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .year__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 80px; } }

.ring { position: relative; width: 100%; max-width: 580px; margin-inline: auto; container-type: inline-size; }
.ring__svg { width: 100%; height: auto; overflow: visible; }
.ring__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 30%;
}
/* tekst u sredini raste i smanjuje se s krugom (cqi), da ostane unutar imena mjeseci */
.ring__center-kicker { font-size: 0.8125rem; font-size: clamp(0.6875rem, 2.25cqi, 0.8125rem); color: var(--muted); }
.ring__center-label {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-size: clamp(1rem, 4.9cqi, 1.75rem);
  line-height: 1.15; color: var(--deep); margin: 0.2em 0 0.3em; text-wrap: balance;
}
.ring__center-date { font-size: 0.875rem; font-size: clamp(0.6875rem, 2.4cqi, 0.875rem); color: var(--muted); }
.ring__center-turn {
  font-size: 0.8125rem; font-size: clamp(0.6875rem, 2.3cqi, 0.8125rem); line-height: 1.35;
  font-weight: 600; color: var(--lit); margin-top: 0.9em; text-wrap: balance;
}

.ring-season { fill: none; stroke-width: 30; stroke-dasharray: 1 1; }
.ring-season--purple { stroke: var(--c-purple); }
.ring-season--white { stroke: var(--c-white); stroke-width: 27; }
.ring-season__edge { stroke: var(--c-white-edge); pointer-events: none; }
.ring-season--green { stroke: var(--c-green); }
.ring-season--red { stroke: var(--c-red); }
.ring-season--rose { stroke: var(--c-rose); }
.ring-month { fill: var(--muted); font-family: var(--sans); font-size: 12px; text-anchor: middle; dominant-baseline: middle; }
.ring-tick { stroke: var(--line); stroke-width: 1.5; }
.ring-period__arc { fill: none; stroke: color-mix(in srgb, var(--deep) 55%, transparent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; }
.ring-period__label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--deep); dominant-baseline: middle; }
/* kazaljka koja stoji na današnjem danu */
.ring-hand { transform-origin: 260px 260px; transform: rotate(var(--to)); }
.ring-today-line { stroke: var(--deep); stroke-width: 2; }
.ring-today-dot { fill: var(--bg); stroke: var(--deep); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.ring-today-pulse { fill: none; stroke: var(--deep); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* početak godine: rez u boji podloge kruga i crtica kao 12 na satu, uz ime godine */
.ring-seam { pointer-events: none; }
.ring-seam__cut { stroke: var(--surface); stroke-width: 4; }
.ring-seam__tick { stroke: var(--deep); stroke-width: 2; stroke-linecap: round; }
.ring-year { pointer-events: none; }
.ring-year__text { font-family: var(--sans); font-size: 13px; letter-spacing: 0.02em; }
.ring-year__cycle { fill: var(--deep); font-weight: 600; }
.ring-year__span { fill: var(--muted); font-weight: 500; }

/* odabrano razdoblje (pokazivač ili dodir) se istakne, a u sredini piše koje je i kada traje */
.ring-season { transition: opacity .35s ease, stroke-width .35s cubic-bezier(.2, .7, .2, 1); }
.ring.is-picking .ring-season { opacity: .22; }
.ring.is-picking .ring-season.is-picked { opacity: 1; stroke-width: 40; }
.ring.is-picking .ring-season--white.is-picked { stroke-width: 37; }
.ring.is-picking .ring-season__edge:has(+ .is-picked) { opacity: 1; stroke-width: 40; }
.ring__center > * { transition: opacity .25s ease; }
.ring.is-picking .ring__center-kicker,
.ring.is-picking .ring__center-turn { opacity: 0; }
.ring__center.is-swapping .ring__center-label,
.ring__center.is-swapping .ring__center-date { opacity: 0; transition-duration: 0s; }

.year__info { display: grid; gap: 36px; }
.year-point { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.year-point h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.year-point p { color: var(--muted); max-width: 32rem; }
.year-point__icon { width: 56px; height: 56px; }
.year-point__track { fill: none; stroke: var(--line); stroke-width: 3; }
/* pet razdoblja novih vježbi kroz godinu */
.year-point__periods { fill: none; stroke: var(--lit); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 5 16.36; transform: rotate(-90deg); transform-origin: 24px 24px; }
.year-point__dot { fill: var(--lit); }
.year-point__orbit { transform-origin: 24px 24px; }

/* --- riječ ------------------------------------------------------------------- */

.duo { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 600px) { .duo { grid-template-columns: 1fr 1fr; gap: 32px; } }
.duo p { color: var(--muted); margin-top: 6px; }

.efa { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
/* jedna efa: gornja desetina za tebe, ostalo za druge */
.efa-measure { margin: 0; display: flex; align-items: center; gap: 28px; }
.efa-measure__cup { flex: none; width: 150px; height: 150px; display: block; }
.efa-measure__you { fill: var(--lit); opacity: .75; }
.efa-measure__others { fill: var(--lit); opacity: .18; }
.efa-measure__outline { color: var(--lit); }
.efa-measure__fractions { display: grid; gap: 6px; }
.efa-measure__part { display: flex; align-items: baseline; gap: 12px; color: var(--muted); }
.efa-measure__num {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1;
  color: var(--deep); font-variant-numeric: lining-nums;
}
.efa-measure__part--you .efa-measure__num { color: var(--lit); }
@media (max-width: 420px) {
  .efa-measure { gap: 18px; }
  .efa-measure__cup { width: 118px; height: 118px; }
}
.efa__title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; }
.efa p { color: var(--muted); max-width: 34rem; }

.feature__visual--pair { min-height: 560px; }
.feature__visual--pair .phone--back { position: absolute; transform: translate(34%, -6%) scale(.88); z-index: 0; }
.feature__visual--pair .phone--front { transform: translateX(-22%) translateY(6%); z-index: 1; }
@media (max-width: 520px) {
  .feature__visual--pair .phone--back { transform: translate(26%, -5%) scale(.84); }
  .feature__visual--pair .phone--front { transform: translateX(-16%) translateY(5%); }
}

/* --- molitve ----------------------------------------------------------------- */

/* zrno krunice između kategorija; zrno na početku retka ostaje skriveno lijevo od ruba */
.categories {
  margin-top: 32px; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.55;
  color: var(--deep); max-width: 30em;
  display: flex; flex-wrap: wrap; column-gap: 1.5em; overflow: hidden;
}
.categories li { white-space: nowrap; }
.categories li + li { margin-left: -1.5em; }
.categories li + li::before {
  content: ""; display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--lit); margin: 0 0.6em; vertical-align: 0.2em;
}
/* valovi zvuka oko mobitela dok molitva svira */
.waves { position: absolute; width: min(520px, 100%); aspect-ratio: 1; pointer-events: none; }
.waves i {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  border: 1.5px solid color-mix(in srgb, var(--blue) 50%, transparent);
}

.ticks { margin-top: 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { color: var(--blue); margin-top: 0.15em; }

/* --- svjedočanstva ------------------------------------------------------------ */

.voices { padding: var(--section) 0; border-top: 1px solid var(--line); }
.voices__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.voices__nav { display: flex; gap: 8px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--deep); transition: border-color .2s;
}
.round-btn:hover { border-color: var(--muted); }
.round-btn:disabled { opacity: .35; cursor: default; }

.voices__track {
  /* 100 %, ne 100vw: gdje traka za pomicanje zauzima mjesto, prva kartica ostaje poravnata s naslovom */
  --inset: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  display: flex; gap: clamp(20px, 3vw, 40px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  padding: 4px var(--inset) 12px;
  scrollbar-width: none;
}
.voices__track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .voices__track { cursor: grab; }
  .voices__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
}
.voice {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding-top: 24px; border-top: 2px solid var(--lit);
}
/* na mobitelu se vidi jedna kartica: autor odmah ispod citata, a ne na dnu najviše kartice */
@media (max-width: 519px) { .voice { justify-content: flex-start; } }
.voice blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.38; color: var(--deep);
  font-weight: 380; text-wrap: pretty;
}
.voice blockquote::before { content: "„"; }
.voice blockquote::after { content: "”"; }
.voice figcaption { display: flex; flex-direction: column; font-size: 0.9375rem; }
.voice figcaption b { color: var(--ink); font-weight: 600; }
.voice figcaption span { color: var(--muted); font-style: italic; }

/* --- o nama ------------------------------------------------------------------- */

.about { padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 7fr 5fr; gap: 96px; align-items: center; } }
.about__copy h2 { margin-bottom: 24px; }
.about__copy p { max-width: 36rem; color: var(--muted); }
.about__copy p + p { margin-top: 16px; }
.about__quote { margin-top: 36px; padding-left: 20px; border-left: 3px solid var(--lit); }
.about__quote p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; color: var(--deep); }
.about__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.875rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 24px; }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--deep); margin-top: 4px; }

/* --- poziv na preuzimanje ------------------------------------------------------ */

.cta { position: relative; overflow: hidden; padding: var(--section) 0; background: #002C4D; color: #fff; }
.cta__grid { position: relative; display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .cta__grid { grid-template-columns: 1fr auto; } }
.cta h2 { color: #fff; font-weight: 300; font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -0.035em; line-height: 0.95; }
.cta p { color: rgba(255,255,255,.8); font-size: 1.125rem; margin: 24px 0 32px; max-width: 36rem; text-wrap: pretty; }
.qr { display: none; }
@media (min-width: 960px) and (hover: hover) {
  /* širok kao kod, da mu desni rub bude na rubu sadržaja */
  .qr { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 176px; text-align: center; }
  .qr img { background: #fff; padding: 14px; border-radius: 16px; width: 176px; height: 176px; }
  .qr p { font-size: 0.875rem; margin: 0; color: rgba(255,255,255,.75); }
}

/* --- podnožje ----------------------------------------------------------------- */

.site-footer { padding: 56px 0 40px; }
.site-footer__grid { display: grid; gap: 32px; }
/* adresa (najduži redak oko 21 rem) se ne prelama ni na užem ekranu */
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(21.5rem, 1.4fr) minmax(0, 1fr); }
}
.site-footer__brand { color: var(--deep); }
.site-footer__brand .brand__logo { height: 44px; }
.site-footer__brand p { margin-top: 12px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
.site-footer__contact { font-style: normal; color: var(--muted); font-size: 0.9375rem; }
.site-footer__social { display: grid; gap: 8px; font-size: 0.9375rem; }
.site-footer__social a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.site-footer__social a:hover { color: var(--blue-ink); }
.site-footer__legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted);
}
/* poveznice lijevo, izgled točno u sredini, autorska prava desno; u jedan red stanu tek od 960 px */
@media (min-width: 960px) {
  .site-footer__legal { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-footer__legal > :last-child { justify-self: end; text-align: right; }
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* svijetli, automatski ili tamni izgled: ikone, a naziv u oblačiću; na mobitelu
   vlastiti red s natpisom "Izgled:" odmah uz prekidač */
.theme-row { flex-basis: 100%; display: flex; align-items: center; gap: 12px; }
.theme-row[hidden] { display: none; }
.theme-row__label { font-size: 0.875rem; color: var(--ink); }
@media (min-width: 960px) {
  .theme-row { display: block; }
  .theme-row__label { display: none; }
}
.theme-switch {
  display: inline-flex; gap: 2px; margin: 0; padding: 2px; border: 1px solid var(--line);
  border-radius: 999px; min-inline-size: 0;
}
.theme-switch__option {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s;
}
.theme-switch__option .i { width: 15px; height: 15px; }
.theme-switch__option:hover { color: var(--ink); }
.theme-switch__option:has(:checked) {
  background: var(--surface); color: var(--deep); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 30, 60, .12);
}
.theme-switch__option:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-switch__option::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 3px;
  padding: 4px 8px; border-radius: 6px; background: var(--deep); color: var(--bg);
  font-size: 0.75rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s, translate .15s;
}
/* oblačić uz pokazivač i tipkovnicu; na dodir bi nakon dodira ostao visjeti */
.theme-switch__option:has(:focus-visible)::after { opacity: 1; translate: -50% 0; }
@media (hover: hover) {
  .theme-switch__option:hover::after { opacity: 1; translate: -50% 0; }
}

/* --- smanjeno kretanje --------------------------------------------------------- */

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

/* --- podstranice ---------------------------------------------------------------- */

.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--deep); margin-bottom: 40px;
}
.legal__body h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal__body p, .legal__body ul { margin: 0 0 14px; color: var(--ink); }
.legal__body ul { list-style: disc; padding-left: 1.4em; }
.legal__body li + li { margin-top: 6px; }
.legal--center { text-align: center; min-height: 60vh; }
.legal--center .stores { justify-content: center; }
.legal__lead { color: var(--muted); font-size: 1.125rem; margin-bottom: 32px; }

/* ==========================================================================
   Dinamični dijelovi (Phoenix)
   ========================================================================== */

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-ink);
}
.text-link:hover { text-decoration: underline; }
.text-button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
}
.text-button:hover { border-color: var(--muted); }

.state-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--muted); vertical-align: 0.05em; }
.state-dot--open { background: var(--blue); }
.state-dot--live { background: var(--lit); box-shadow: 0 0 0 4px var(--lit-bg), 0 0 0 5px var(--lit-edge); }
.state-dot--past { background: var(--muted); }

/* kartica s aktualnim vježbama na naslovnici */
.exercise-card {
  margin-top: 36px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
  padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; max-width: 32rem; transition: border-color .2s;
}
.exercise-card:hover { border-color: var(--muted); }
.exercise-card__img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; background: var(--sky); }
.exercise-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exercise-card__state { font-size: 0.8125rem; font-weight: 600; color: var(--deep); }
.exercise-card__title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; color: var(--deep); }
.exercise-card__meta { font-size: 0.875rem; color: var(--muted); }
.exercise-card__cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--blue-ink); }
@media (max-width: 420px) {
  .exercise-card { grid-template-columns: 88px 1fr; }
  .exercise-card__img { width: 88px; height: 88px; }
}

/* današnja Efa na naslovnici, široka kao stupac (kao čitanja iznad i crta ispod) */
.efa-today {
  margin-top: 32px; display: grid; gap: 4px;
  padding: 20px 22px; border-radius: 20px; background: var(--lit-bg); box-shadow: inset 0 0 0 1px var(--lit-edge);
  color: var(--ink); text-decoration: none;
}
.efa-today__kicker { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--deep); }
.efa-today__kicker .i { color: var(--lit); }
/* ikona Efe iz aplikacije uz tekst */
.a.efa-cup { width: 1.4em; height: 1.4em; color: var(--lit); }
.efa-today__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--deep); }
.efa-today__cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--deep); }
.efa-today:hover .efa-today__cta { text-decoration: underline; }
.efa-today__count { font-size: 0.8125rem; color: var(--muted); }

.listen-hint {
  position: relative; z-index: 2; margin-top: 18px; display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--deep);
}
.listen-hint .i { color: var(--blue); }

/* --- zaglavlje preko fotografije (stranica vježbi) ------------------------------ */

.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.site-header--overlay .brand, .site-header--overlay .site-nav a, .site-header--overlay .menu__toggle { color: #fff; }
.site-header--overlay.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header--overlay.is-scrolled .brand, .site-header--overlay.is-scrolled .menu__toggle { color: var(--deep); }
/* otvoren izbornik: zaglavlje postane puno, kao kad se skrola */
.site-header--overlay:has(.menu[open]) { background: var(--bg); }
.site-header--overlay:has(.menu[open]) :is(.brand, .menu__toggle) { color: var(--deep); }
.site-header--overlay.is-scrolled .site-nav a { color: var(--ink); }

/* --- stranica Efe riječi ------------------------------------------------------------ */

.efa-hero { position: relative; overflow: hidden; background: var(--lit-bg); box-shadow: inset 0 -1px 0 var(--lit-edge); padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.efa-hero__mark {
  position: absolute; right: -8%; top: -30%; width: min(720px, 90vw); aspect-ratio: 1; height: auto;
  fill: none; stroke: var(--lit); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .35; pointer-events: none;
}
.efa-hero__inner { position: relative; max-width: calc(760px + 2 * var(--gutter)); }
.efa-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.9375rem; color: var(--ink); margin-bottom: 20px; }
.efa-kicker .i { color: var(--lit); width: 1.4em; height: 1.4em; }
.efa-kicker__name { font-weight: 600; color: var(--deep); }
.efa-kicker time { color: var(--muted); }
.efa-title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02;
  letter-spacing: -0.03em; color: var(--deep); text-wrap: balance;
}

.player {
  margin-top: 36px; display: flex; align-items: center; gap: 16px; max-width: 30rem;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 12px 30px -18px rgba(0, 44, 77, .45);
}
.player__toggle {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--blue); color: #fff;
}
.player__toggle .i { width: 24px; height: 24px; }
.player__icon-pause, .player.is-playing .player__icon-play { display: none; }
.player.is-playing .player__icon-pause { display: block; }
.player__main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.player__label { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 0.875rem; color: var(--muted); }
.player__label b { color: var(--deep); font-weight: 600; }
.player__bar { position: relative; height: 6px; border-radius: 99px; background: var(--line); cursor: pointer; overflow: hidden; }
.player__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); border-radius: inherit; }
.player__time { flex: none; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--muted); }

.efa-body { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(48px, 7vw, 88px); }
.efa-gospel {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--deep);
  padding: 4px 0 4px 22px; border-left: 3px solid var(--lit);
}
.efa-gospel p { margin: 0 0 0.5em; }
.efa-text { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.35rem); line-height: 1.72; color: var(--ink); }
.efa-text p { margin: 0 0 1em; }
.efa-text .spacer, .efa-gospel .spacer { height: 0.6em; }
/* prazni odlomci iz uređivača: na webu razmak daju odlomci sami */
.rich-text .spacer { display: none; }
.efa-meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.efa-meta__count { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.efa-meta__count .i { color: var(--lit); }
.efa-meta__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.efa-explain { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0; }
.efa-explain__inner { display: grid; gap: 28px; max-width: calc(760px + 2 * var(--gutter)); }
.efa-explain p { color: var(--muted); max-width: 34rem; }

/* --- stranica vježbi --------------------------------------------------------------- */

.exercise-hero {
  position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end;
  background: #002C4D; color: #fff; overflow: hidden; padding: 140px 0 clamp(40px, 6vw, 72px);
}
.exercise-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exercise-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 40, .55) 0%, rgba(0, 20, 40, .1) 35%, rgba(0, 25, 45, .85) 100%);
}
.exercise-hero__inner { position: relative; z-index: 1; }
.exercise-hero__state { display: inline-flex; align-items: center; font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; }
.exercise-hero__state .state-dot--live { box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.exercise-hero__title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98;
  letter-spacing: -0.035em; max-width: 14em; text-wrap: balance;
}
.exercise-hero__period { margin-top: 16px; font-size: 1.125rem; opacity: .9; }

.exercise-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-bottom: 1px solid var(--line); }
.exercise-facts div { padding: 24px 24px 24px 0; }
.exercise-facts dt { font-size: 0.875rem; color: var(--muted); }
.exercise-facts dd { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; color: var(--deep); margin-top: 4px; }
.exercise-facts__unit { font-size: 0.6em; color: var(--muted); }

.exercise-grid { display: grid; gap: 40px; padding: clamp(40px, 6vw, 72px) 0; }
@media (min-width: 960px) { .exercise-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.exercise-description h2, .leaders h2, .exercise-join h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 18px; }
.rich-text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.rich-text p { margin: 0 0 1em; }
.exercise-join {
  padding: 28px; border-radius: 24px; background: var(--lit-bg); box-shadow: inset 0 0 0 1px var(--lit-edge); display: grid; gap: 16px; justify-items: start;
}
@media (min-width: 960px) { .exercise-join { position: sticky; top: 96px; } }
.exercise-join p { color: var(--ink); }

.leaders { padding: 0 0 clamp(56px, 8vw, 96px); }
.leaders__list { display: grid; gap: 28px; }
@media (min-width: 760px) { .leaders__list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; } }
.leader-card { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; }
.leader-card__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.leader-card__name { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.leader-card__place { color: var(--muted); font-size: 0.9375rem; }
.leader-card__bio { margin-top: 8px; }
.leader-card__bio summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); font-size: 0.9375rem; }
.leader-card__bio .rich-text { margin-top: 10px; font-size: 1.05rem; }

/* --- obrasci i podstranice ---------------------------------------------------------- */

.form { display: grid; gap: 20px; max-width: 26rem; margin-top: 8px; }
.form__field { display: grid; gap: 6px; font-weight: 500; color: var(--deep); }
.form__field input {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.form__field input:focus { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); border-color: var(--blue); }
.form__field small { font-weight: 400; color: var(--muted); }
.form__error { padding: 12px 14px; border-radius: 12px; background: #FDE7E7; color: #8A1212; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.legal .btn { margin-top: 8px; }

.bank { display: grid; gap: 14px; margin: 18px 0 22px; }
.bank div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bank dt { font-size: 0.875rem; color: var(--muted); }
.bank dd { color: var(--deep); font-weight: 500; }

/* --- mobitel ---------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .ring { padding-inline: 22px; }
  .ring-period__label { font-size: 19px; }
  .ring-month { font-size: 17px; }
  /* s većim slovima stane samo "Godina A", bez godina */
  .ring-year__text { font-size: 17px; }
  .ring-year__span { display: none; }
  .ring-today-dot, .ring-today-pulse { r: 11; }
  .ring__center { padding: 30%; }
  .ring__center-date { font-size: 0.75rem; }
  /* odbrojavanje do nove godine stane ispod datuma tek bez "Danas" */
  .ring__center:has(.ring__center-turn) .ring__center-kicker { display: none; }
  .ring__center-turn { font-size: 0.6875rem; line-height: 1.25; margin-top: 0.5em; }
}

@media (max-width: 959px) {
  /* na mobitelu poziv na prijavu dolazi prije dugog opisa */
  .exercise-join { order: -1; }
}

/* --- novosti ----------------------------------------------------------------------------- */

.news-cards { display: grid; gap: 32px; }
@media (min-width: 760px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .news-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* u dva stupca zadnja neparna novost ne ostavlja prazno mjesto: slika je u lijevom stupcu, tekst u desnom */
@media (min-width: 760px) and (max-width: 1039px) {
  .news-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .news-cards > li:last-child:nth-child(odd) .news-card:has(.news-card__img) {
    grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start;
  }
}
.news-card { display: grid; gap: 16px; color: var(--ink); text-decoration: none; }
.news-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--sky); }
.news-card__body { display: grid; gap: 6px; }
.news-card__date { font-size: 0.8125rem; color: var(--muted); }
.news-card__title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--deep); text-wrap: balance; }
.news-card:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.news-card__excerpt {
  color: var(--muted); font-size: 0.9375rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-home { padding: var(--section) 0; border-top: 1px solid var(--line); }
.news-home__head {
  display: flex; align-items: end; align-items: last baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px;
}

.news-index { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.news-index__title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--deep);
}
.news-index__lead { color: var(--muted); font-size: 1.125rem; margin: 12px 0 48px; }
.news-index__empty { color: var(--muted); }

.news-page { padding-top: clamp(48px, 8vw, 96px); }
.news-page__head { max-width: calc(860px + 2 * var(--gutter)); }
.news-page__kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9375rem; color: var(--muted); margin-bottom: 18px; }
.news-page__kicker a { font-weight: 600; color: var(--deep); text-decoration: none; }
.news-page__kicker a:hover { text-decoration: underline; }
.news-page__title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--deep); text-wrap: balance;
}
.news-page__figure { margin-top: clamp(32px, 5vw, 56px); max-width: calc(1040px + 2 * var(--gutter)); }
.news-page__figure img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; }
.news-page__body { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.news-more { padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); }
.news-more__title { margin-bottom: 40px; }
