/* ============================================================
   content.css — stilovi za sadržajne stranice:
   /karte, /obavijesti, /informacije, 404, /offline
   Učitava se SAMO na tim stranicama (uz main.css).
   ============================================================ */

/* ---------- Tokeni (svijetla tema) ---------- */
:root {
  --ct-surface: #ffffff;
  --ct-surface-2: #eef3f8;
  --ct-border: rgba(0, 45, 77, 0.14);
  --ct-muted: #51677c;
  --ct-heading: var(--at-navy-700, #003c66);
  --ct-accent: var(--at-orange-600, #f2571e);
  --ct-accent-soft: rgba(242, 87, 30, 0.1);
  --ct-sky-soft: rgba(51, 204, 255, 0.14);
  --ct-shadow: 0 10px 30px rgba(0, 30, 51, 0.08);
  --ct-shadow-lift: 0 16px 40px rgba(0, 30, 51, 0.14);

  /* zone — kodiranje bojama brenda */
  --ct-z1-bg: #fde3d8; --ct-z1-fg: #96330f; --ct-z1-dot: #f2571e;
  --ct-z2-bg: #d7f2fc; --ct-z2-fg: #0a5c7c; --ct-z2-dot: #1aa8dc;
  --ct-z3-bg: #dbe6f2; --ct-z3-fg: #003c66; --ct-z3-dot: #3d6e99;
  --ct-z4-bg: #ccd8e2; --ct-z4-fg: #001e33; --ct-z4-dot: #08324f;
  --ct-zall-bg: #e4ebf1; --ct-zall-fg: #33475a; --ct-zall-dot: #6b8298;

  /* ilustracije (404 / offline) */
  --ct-art-body: #ffffff;
  --ct-art-outline: #002d4d;
  --ct-art-navy: #002d4d;
  --ct-art-wheel: #001222;
  --ct-art-hub: #dfe9f2;
  --ct-art-glass: #bfe3f5;
  --ct-art-orange: #f2571e;
  --ct-art-ground: #b7c6d3;
  --ct-art-route: #8aa2b5;
  --ct-art-pole: #6b8298;
  --ct-art-light: #ffd166;
  --ct-art-puff: #b7c6d3;
}

[data-theme="dark"] {
  --ct-surface: #032a47;
  --ct-surface-2: #01223a;
  --ct-border: rgba(140, 190, 228, 0.18);
  --ct-muted: #9fb6c9;
  --ct-heading: #bfe4ff;
  --ct-accent: var(--at-orange-500, #ff6d33);
  --ct-accent-soft: rgba(255, 109, 51, 0.14);
  --ct-sky-soft: rgba(51, 204, 255, 0.1);
  --ct-shadow: 0 10px 30px rgba(0, 5, 12, 0.4);
  --ct-shadow-lift: 0 16px 44px rgba(0, 5, 12, 0.55);

  --ct-z1-bg: rgba(242, 87, 30, 0.2); --ct-z1-fg: #ffb894; --ct-z1-dot: #ff6d33;
  --ct-z2-bg: rgba(51, 204, 255, 0.16); --ct-z2-fg: #8fe0ff; --ct-z2-dot: #33ccff;
  --ct-z3-bg: rgba(122, 170, 216, 0.18); --ct-z3-fg: #aacdec; --ct-z3-dot: #7aaad8;
  --ct-z4-bg: rgba(170, 198, 220, 0.14); --ct-z4-fg: #c6d9e8; --ct-z4-dot: #b9cfe0;
  --ct-zall-bg: rgba(160, 185, 205, 0.14); --ct-zall-fg: #b9cbd9; --ct-zall-dot: #8ba2b5;

  --ct-art-body: #d9e6f0;
  --ct-art-outline: #0d3a5c;
  --ct-art-navy: #0d3a5c;
  --ct-art-wheel: #000a14;
  --ct-art-hub: #9fb6c9;
  --ct-art-glass: #0d4a6b;
  --ct-art-orange: #ff6d33;
  --ct-art-ground: #29455c;
  --ct-art-route: #3d6483;
  --ct-art-pole: #557089;
  --ct-art-light: #ffd166;
  --ct-art-puff: #3d6483;
}

/* ---------- Zaglavlje stranice ---------- */
.page-head {
  padding-block: clamp(1.6rem, 4vw, 3rem) clamp(0.8rem, 2vw, 1.4rem);
  max-width: 46rem;
}

.page-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  color: var(--ct-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
}

.content-narrow {
  max-width: 46rem;
  margin-inline: auto;
}

.section-sub {
  margin: -0.35rem 0 1.25rem;
  color: var(--ct-muted);
  max-width: 42rem;
  line-height: 1.6;
}

/* ============================================================
   /karte — cjenik
   ============================================================ */

/* --- Kartice digitalnih karata --- */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ct-shadow-lift);
}

.pricing-card--featured {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 1px var(--ct-accent), var(--ct-shadow-lift);
}

.pricing-flag {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--ct-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(242, 87, 30, 0.35);
}

.pricing-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ct-heading);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.pricing-price .amount {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-price .currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ct-muted);
}

.pricing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--ct-surface-2);
  color: var(--ct-muted);
}

.pricing-tag--zone {
  background: var(--ct-sky-soft);
  color: var(--ct-heading);
}

.pricing-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ct-muted);
}

/* --- Koraci aktivacije --- */
.activation-card {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.activation-card h3 {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  color: var(--ct-heading);
}

.steps {
  list-style: none;
  counter-reset: ct-step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.steps li {
  counter-increment: ct-step;
  position: relative;
  padding-left: 3.1rem;
  min-height: 2.5rem;
}

.steps li::before {
  content: counter(ct-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ct-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(242, 87, 30, 0.3);
}

.steps li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ct-heading);
}

.steps li p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ct-muted);
}

/* --- Gumbi trgovina --- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 12px;
  background: var(--at-navy-950, #000f1a);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--ct-shadow-lift);
  color: #fff;
}

.store-badge svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: currentColor;
}

.store-badge .sb-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .sb-small {
  font-size: 0.66rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.store-badge .sb-big {
  font-size: 0.98rem;
  font-weight: 700;
}

/* --- Zone --- */
.zone-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.3;
  background: var(--ct-zall-bg);
  color: var(--ct-zall-fg);
}

.zone-chip strong { font-weight: 700; }

.zone-chip--z1 { background: var(--ct-z1-bg); color: var(--ct-z1-fg); }
.zone-chip--z2 { background: var(--ct-z2-bg); color: var(--ct-z2-fg); }
.zone-chip--z3 { background: var(--ct-z3-bg); color: var(--ct-z3-fg); }
.zone-chip--z4 { background: var(--ct-z4-bg); color: var(--ct-z4-fg); }

.zone-dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ct-zall-dot);
}

.zone-dot--z1 { background: var(--ct-z1-dot); }
.zone-dot--z2 { background: var(--ct-z2-dot); }
.zone-dot--z3 { background: var(--ct-z3-dot); }
.zone-dot--z4 { background: var(--ct-z4-dot); }

/* --- Tablica papirnatih karata --- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow);
}

.price-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
}

.price-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ct-muted);
  border-bottom: 2px solid var(--ct-border);
  white-space: nowrap;
}

.price-table thead th .th-note {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

.price-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.price-table tbody th .zone-dot {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
  transform: translateY(-1px);
}

.price-table tbody tr + tr th,
.price-table tbody tr + tr td {
  border-top: 1px solid var(--ct-border);
}

.price-table tbody tr:hover {
  background: var(--ct-surface-2);
}

.price-table .cell-price {
  font-weight: 700;
  font-size: 1.02rem;
}

.price-table .cell-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ct-muted);
}

.price-hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ct-muted);
  line-height: 1.6;
}

/* --- Mjesečne karte --- */
.monthly-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.monthly-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ct-heading);
}

.monthly-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ct-muted);
  line-height: 1.5;
}

.monthly-prices {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.monthly-prices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.monthly-prices li + li {
  border-top: 1px dashed var(--ct-border);
}

.monthly-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.monthly-nocena {
  margin: 0.4rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--ct-border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ct-heading);
}

/* --- Objašnjenja uz karte (pravila, rokovi, dokumenti) --- */
.info-notes {
  margin: 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ct-accent);
}

.info-notes p {
  margin: 0 0 0.6rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ct-muted);
}

.info-notes p:last-child { margin-bottom: 0; }
.info-notes strong { color: var(--ct-heading); }

.info-card {
  margin-top: 1.25rem;
}

.grid-2 > .info-card { margin-top: 0; }

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--ct-heading);
}

.info-lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ct-muted);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ct-muted);
}

/* točka nabrajanja poravnata s prvim retkom teksta */
.info-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ct-accent);
}

.info-list strong { color: var(--ct-heading); }

.info-foot {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ct-border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ct-muted);
}

/* --- Prodajna mjesta --- */
.sales-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ct-heading);
}

.sales-addr {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--ct-muted);
}

.sales-hours {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.sales-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
}

.sales-hours > div + div {
  border-top: 1px dashed var(--ct-border);
}

.sales-hours dt {
  color: var(--ct-muted);
  font-weight: 500;
}

.sales-hours dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sales-note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ct-muted);
}

/* --- Napomena o cijenama --- */
.price-disclaimer {
  margin: 2.5rem 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--ct-border);
  background: var(--ct-surface-2);
  font-size: 0.88rem;
  color: var(--ct-muted);
  line-height: 1.6;
}

/* ============================================================
   /obavijesti — vremenska crta
   ============================================================ */

.notices-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: 0.5rem;
}

.btn-refresh svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.btn-refresh.is-loading svg {
  animation: ctSpin 0.8s linear infinite;
}

@keyframes ctSpin {
  to { transform: rotate(360deg); }
}

.notices-timeline {
  list-style: none;
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0.25rem 0 0.25rem 0;
}

.notices-timeline::before {
  content: "";
  position: absolute;
  left: 1.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--ct-accent), var(--ct-border) 65%);
  opacity: 0.6;
}

.notice-item {
  position: relative;
  padding: 0 0 1.4rem 5.1rem;
}

.notice-item:last-child {
  padding-bottom: 0.25rem;
}

.notice-date {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.7rem;
  padding: 0.45rem 0.2rem 0.5rem;
  text-align: center;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow);
  line-height: 1.1;
}

.notice-date .nd-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ct-accent);
  font-variant-numeric: tabular-nums;
}

.notice-date .nd-mon {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ct-muted);
}

.notice-date .nd-year {
  display: block;
  font-size: 0.66rem;
  color: var(--ct-muted);
  font-variant-numeric: tabular-nums;
}

.notice-body {
  padding: 1.1rem 1.25rem;
}

.notice-title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ct-heading);
}

.notice-excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ct-muted);
}

.notice-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ct-accent);
  text-decoration: none;
}

.notice-more:hover {
  text-decoration: underline;
}

.notice-more svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
}

.notices-source {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ct-muted);
}

.notices-timeline.is-refreshed .notice-item {
  animation: ctFadeUp 0.4s ease both;
}

@keyframes ctFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   /informacije — kontakt, FAQ, o nama
   ============================================================ */

.contact-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-ico {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ct-accent-soft);
  color: var(--ct-accent);
}

.contact-ico svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-row .cr-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ct-muted);
  margin-bottom: 0.1rem;
}

.contact-row .cr-value {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
}

.contact-row .cr-value a {
  color: inherit;
  text-decoration: none;
}

.contact-row .cr-value a:hover {
  color: var(--ct-accent);
  text-decoration: underline;
}

.contact-row .cr-note {
  display: block;
  font-size: 0.78rem;
  color: var(--ct-muted);
  font-weight: 400;
  margin-top: 0.1rem;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--ct-surface-2);
  border: 1px solid var(--ct-border);
}

.contact-side h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ct-heading);
}

.contact-hours {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.contact-hours dt { color: var(--ct-muted); }

.contact-hours dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.contact-side .btn { justify-content: center; }

/* --- Statistika / o nama --- */
.stats-band {
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--at-navy-900, #001e33), var(--at-navy-700, #003c66));
  color: #e8f0f7;
  box-shadow: var(--ct-shadow-lift);
}

[data-theme="dark"] .stats-band {
  background: linear-gradient(135deg, var(--at-navy-950, #000f1a), var(--at-navy-800, #002d4d));
  border: 1px solid var(--ct-border);
}

.stats-band .about-text {
  margin: 0 0 1.5rem;
  max-width: 46rem;
  line-height: 1.65;
  color: #c9dcEB;
}

.stats-band .about-text strong { color: #ffffff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat {
  border-left: 3px solid var(--at-orange-500, #ff6d33);
  padding-left: 0.9rem;
}

.stat .stat-value {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--at-orange-500, #ff6d33);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat .stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #c9dcEB;
  line-height: 1.4;
}

/* --- FAQ harmonika --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  background: var(--ct-surface);
  box-shadow: var(--ct-shadow);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--ct-accent) 45%, var(--ct-border));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary:hover {
  background: var(--ct-surface-2);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--ct-accent);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-marker {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--ct-accent);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-marker {
  transform: rotate(90deg);
}

.faq-a {
  padding: 0.15rem 1.2rem 1.15rem;
  color: var(--ct-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-a p { margin: 0 0 0.6rem; }
.faq-a p:last-child { margin-bottom: 0; }

.faq-item[open] .faq-a {
  animation: ctFaqIn 0.28s ease both;
}

@keyframes ctFaqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* --- Servisni blokovi (pristupačnost, turistički) --- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.08rem;
  color: var(--ct-heading);
}

.service-ico {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ct-sky-soft);
  color: var(--ct-heading);
}

.service-ico svg {
  width: 1.2rem;
  height: 1.2rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ct-muted);
}

.service-card .service-contact {
  margin-top: 0.35rem;
  font-weight: 600;
  color: inherit;
}

.service-card .service-contact a {
  color: var(--ct-accent);
  text-decoration: none;
}

.service-card .service-contact a:hover {
  text-decoration: underline;
}

/* ============================================================
   404 / offline
   ============================================================ */

.error-wrap {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.error-art {
  width: min(30rem, 88vw);
  margin-bottom: 1rem;
}

.error-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.error-code {
  margin: 0 0 0.25rem;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ct-accent);
  font-variant-numeric: tabular-nums;
}

.error-wrap h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
}

.error-text {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--ct-muted);
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ilustracija — boje kroz klase (tema-svjesno) */
.art-body { fill: var(--ct-art-body); }
.art-outline { stroke: var(--ct-art-outline); }
.art-navy { fill: var(--ct-art-navy); }
.art-wheel { fill: var(--ct-art-wheel); }
.art-hub { fill: var(--ct-art-hub); }
.art-glass { fill: var(--ct-art-glass); }
.art-orange { fill: var(--ct-art-orange); }
.art-display { fill: var(--ct-art-wheel); }
.art-display-text { fill: var(--ct-art-orange); font-weight: 800; }
.art-ground { stroke: var(--ct-art-ground); }
.art-route { stroke: var(--ct-art-route); }
.art-pole { fill: var(--ct-art-pole); }
.art-sign { fill: var(--ct-art-navy); }
.art-sign-glyph { fill: #ffffff; }
.art-sign-glass { fill: var(--ct-art-navy); }
.art-light { fill: var(--ct-art-light); }
.art-puff { fill: var(--ct-art-puff); }
.art-q { fill: var(--ct-art-route); font-weight: 800; }
.art-wifi { stroke: var(--ct-art-route); }
.art-slash { stroke: var(--ct-art-orange); }
.art-belt-text { fill: #ffffff; font-weight: 700; letter-spacing: 0.2em; }

/* nježne animacije ilustracija */
@media (prefers-reduced-motion: no-preference) {
  .error-art .art-bus {
    animation: ctBob 3.2s ease-in-out infinite;
  }
  .error-art .art-q--1 {
    animation: ctFloat 2.8s ease-in-out infinite;
  }
  .error-art .art-q--2 {
    animation: ctFloat 3.4s ease-in-out 0.6s infinite;
  }
  .error-art .art-puff--1 { animation: ctPuff 2.6s ease-out infinite; }
  .error-art .art-puff--2 { animation: ctPuff 2.6s ease-out 0.9s infinite; }
  .error-art .art-puff--3 { animation: ctPuff 2.6s ease-out 1.7s infinite; }
}

@keyframes ctBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes ctFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-9px); opacity: 0.55; }
}

@keyframes ctPuff {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.7; }
  100% { transform: translate(-22px, -16px) scale(1.25); opacity: 0; }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .store-badge,
  .faq-marker,
  .faq-item summary {
    transition: none;
  }
  .pricing-card:hover,
  .store-badge:hover {
    transform: none;
  }
  .btn-refresh.is-loading svg,
  .notices-timeline.is-refreshed .notice-item,
  .faq-item[open] .faq-a {
    animation: none;
  }
}

/* ---------- Responzivno ---------- */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .notice-item {
    padding-left: 4.6rem;
  }
  .notices-timeline::before {
    left: 1.6rem;
  }
  .notice-date {
    width: 3.3rem;
  }
  .sales-hours > div,
  .monthly-prices li {
    font-size: 0.88rem;
  }
  .error-actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Dokumenti (/dokumenti) — popis datoteka za preuzimanje
   ========================================================================== */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ct-border);
  border-radius: var(--radius-md, 14px);
  background: var(--ct-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.doc-item:hover,
.doc-item:focus-visible {
  border-color: var(--ct-accent);
  transform: translateY(-1px);
  box-shadow: var(--ct-shadow);
  color: inherit;
}

/* oznaka vrste datoteke — monospace da PDF/DOCX/PNG budu jednake širine */
.doc-type {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  background: var(--ct-accent-soft);
  color: var(--ct-accent);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.doc-name {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ct-heading);
}

.doc-note {
  font-size: 0.84rem;
  color: var(--ct-muted);
  line-height: 1.4;
}

.doc-arrow {
  flex: none;
  color: var(--ct-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.doc-item:hover .doc-arrow,
.doc-item:focus-visible .doc-arrow {
  color: var(--ct-accent);
  transform: translateY(2px);
}

/* ==========================================================================
   O nama (/o-nama) — kartice s brojkama
   ========================================================================== */
.fact-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.fact-num {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ct-accent);
  font-variant-numeric: tabular-nums;
}

.fact-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ct-muted);
}

.about-more {
  margin: 1.1rem 0 0;
  font-weight: 700;
}

.about-more a { color: #ffffff; }
.about-more a:hover { color: var(--at-sky-400, #33ccff); }

/* Upozorenje na kartici prodajnog mjesta (npr. Opatija radi samo povremeno) */
.sales-warn {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: var(--ct-accent-soft);
  color: var(--ct-accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Pravne stranice — uži stupac, prozračniji tekst */
.page-pravno .section p {
  line-height: 1.7;
  max-width: 68ch;
}
