:root {
  --bg: #fff;
  --purple: #7c3aed;
  --fg: #0f172a;
  --muted: #475569;
  --accent: #00305c;
  --graphite: #2f2831;
  --card: #f8fafc;
  --border: #e2e8f0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --maxw: 980px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline; 
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand img {
  height: 32px;
  width: 32px;
  border-radius: 6px;
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover {
  background: var(--card);
  color: var(--fg);
}

/* LIGHT, SMALL LANGUAGE SWITCHER */
.lang-select {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 8px;
  padding: 2px 6px;
  transform: scale(0.9);
}
.lang-select select {
  appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.lang-select select:hover {
  background: rgba(255, 255, 255, 0.4);
}
@media (max-width: 600px) {
  .lang-select {
    background: transparent;
    border-color: transparent;
    padding: 0;
    transform: scale(0.85);
  }
  .lang-select select {
    font-size: 12px;
    padding: 2px 6px;
    color: #64748b;
  }
}

/* Compact rhythm (updated) */
.hero {
  padding: 56px 16px 32px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--accent);
}
.hero p {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 720px;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
a.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 15px;
}
a.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.section {
  padding: 32px 16px;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--accent);
}

.cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  flex: 0 0 88%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
}
.badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 48, 92, 0.1);
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.card .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

@media (min-width: 860px) {
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .card {
    flex: initial;
  }
}

footer {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.cookie-manage-btn {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

/* Privacy overlay (#privacy) */
#privacy.privacy-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 90;
  overflow: auto;
}
#privacy.privacy-panel:target {
  display: block;
}
#privacy .privacy-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 80px;
}
#privacy .privacy-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#privacy .privacy-title {
  font-size: 24px;
  margin: 0;
  color: var(--accent);
}
#privacy .close-privacy {
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
}

/* EU Consent modal (EN/SK) */
.consent-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  margin: 0;
  padding: 24px 16px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.consent-modal[open] {
  display: flex;
}
.consent-modal::backdrop {
  display: none;
}
.consent-box {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 92%;
  padding: 32px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.consent-box h3 {
  margin: 0 0 16px;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}
.consent-text {
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}
.consent-options {
  margin: 0 0 24px;
}
.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.consent-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.consent-row label {
  cursor: pointer;
  user-select: none;
  color: #333;
}
.consent-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Global (ROW) bottom banner */
.us-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 94;
  display: none;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
}
.us-banner.show {
  display: block;
}
.us-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.us-text {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}
.us-actions {
  display: flex;
  gap: 8px;
}
.us-actions .btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.us-actions .btn.primary {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

.store-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* center badges horizontally */
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 70px;
  padding: 10px 16px;
}

.store-badge:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Ensure badge images scale to the anchor's 56px height and keep aspect ratio */
.store-badge img {
  height: 100%;
  width: auto;
  display: block;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  display: none;
  overflow-y: auto;
  padding: 24px 16px;
}
.cookie-overlay.active {
  display: block;
}

/* Language visibility */
.lang-en {
  display: block;
}
.lang-sk {
  display: none;
}
.sk .lang-en {
  display: none;
}
.sk .lang-sk {
  display: block;
}

/* Compact overrides on small screens */
@media (max-width: 600px) {
  .hero {
    padding: 44px 16px 24px;
  }
  .section {
    padding: 24px 16px;
  }
  .cards {
    gap: 14px;
  }
  .card {
    padding: 18px;
  }
  .cta {
    gap: 8px;
  }
}

.cookie-panel {
  max-width: 720px;
  margin: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.cookie-panel .title {
  color: var(--muted);
  text-align: center;
  margin: 4px 0;
}
.cookie-panel h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0 10px;
  text-align: center;
}
.cookie-panel .rows .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #faf7ff;
  border: 1px solid #ece6ff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}
.cookie-panel .rows details.row {
  background: #fff;
}
.cookie-panel .rows details.row > summary {
  list-style: none;
  cursor: pointer;
}
.cookie-panel .rows details.row > summary::-webkit-details-marker {
  display: none;
}
.cookie-panel .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-panel .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--graphite);
}
.cookie-panel .btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.cookie-panel .btn.ghost {
  background: #fff;
  border-color: #ddd;
  color: var(--graphite);
}
.cookie-panel .linkline {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.cookie-panel .linkline a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-panel .sub {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cookie-panel {
    padding: 16px;
  }
}

/* Scoped styles for the temporary store 'coming soon' modal */
#store-modal .cookie-panel {
  text-align: center; /* center all text inside this dialog */
}
#store-modal .cookie-panel .actions {
  justify-content: center; /* center actions row */
}
/* Make OK button visually larger (approx. 3x wider than typical pill) */
#store-modal .cookie-panel .btn.primary {
  min-width: 220px;
  width: 220px;
  justify-content: center; /* center content inside the button */
}