/* ===== Kubáň 2026 — campaign site ===== */
:root {
  --navy-900: #071f42;
  --navy-800: #082f63;
  --navy-700: #17324d;
  --navy-600: #1f4170;
  --blue: #0c5bac;
  --orange: #f28c12;
  --orange-dark: #d9760a;
  --ink: #11203a;
  --muted: #5a6b82;
  --line: #e2e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-soft2: #eef4fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(7, 31, 66, .45);
  --shadow-sm: 0 6px 20px -12px rgba(7, 31, 66, .35);
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #2a1700; box-shadow: 0 12px 24px -12px rgba(242,140,18,.8); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 31, 66, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); color: var(--navy-900); font-weight: 900; font-size: 1.35rem;
}
.brand-text { font-size: 1.15rem; }
.brand-year { color: var(--orange); margin-left: 4px; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { color: rgba(255,255,255,.85); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.primary-nav .nav-cta { background: var(--orange); color: var(--navy-900); }
.primary-nav .nav-cta:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
/* Foto vrstva — Žiar nad Hronom (Námestie Matice slovenskej) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url(/assets/hero-ziar.jpg);
  background-image: image-set(url(/assets/hero-ziar.webp) type("image/webp"), url(/assets/hero-ziar.jpg) type("image/jpeg"));
  background-size: cover; background-position: center 40%;
}
/* Navy overlay pre čitateľnosť textu */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(7,31,66,.95) 0%, rgba(8,47,99,.86) 40%, rgba(7,31,66,.55) 100%),
    radial-gradient(1100px 600px at 80% -10%, rgba(12,91,172,.4), transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
  padding: 72px 22px 84px;
}
.kicker {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .8rem;
  color: var(--orange); margin: 0 0 14px;
}
.hero h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.03; font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--orange); }
.hero-slogan { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; margin: 18px 0 6px; }
.hero-role { color: rgba(255,255,255,.8); font-weight: 600; margin: 0 0 18px; }
.hero-lead { color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo { margin: 0; }
.hero-photo picture { display: block; }
.hero-photo img {
  width: 100%; border-radius: 22px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.1), transparent);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .78rem; color: var(--orange-dark); margin: 0 0 10px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; color: var(--navy-900); letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 40px; }

/* Záväzky cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f0; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #fff3e6, #ffe2c7); color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(242,140,18,.28);
}
.card-icon svg { width: 26px; height: 26px; }
.card-num { font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1; letter-spacing: .01em; }
.card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--navy-900); }
.card p { margin: 0; color: var(--muted); }

/* Program list */
.program-list { list-style: none; counter-reset: prog; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.program-list li {
  counter-increment: prog; position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px 24px 22px 70px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.program-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.program-list li::before {
  content: counter(prog, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
  font-weight: 800; color: var(--orange); font-size: 1.05rem;
  background: var(--bg-soft); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
}
.program-list h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--navy-900); }
.program-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* O mne */
.o-mne-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.o-mne-photo { margin: 0; }
.o-mne-photo img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.o-mne-copy p { color: var(--ink); font-size: 1.05rem; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--navy-900); color: #fff; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.faq-list details[open] { border-color: #cfe0f0; }
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--navy-900); padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; color: var(--muted); }

/* Kontakt */
.kontakt { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)) !important; color: #fff; }
.kontakt .eyebrow { color: var(--orange); }
.kontakt h2 { color: #fff; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.kontakt-intro p { color: rgba(255,255,255,.82); }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); }
.contact-list a { color: #fff; font-weight: 600; }

.kontakt-form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(6px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; color: rgba(255,255,255,.9); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.95); color: var(--ink); font: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,140,18,.35); }
.field textarea { resize: vertical; }
.field .error { display: block; color: #ffd0a8; font-size: .85rem; margin-top: 6px; min-height: 1em; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff9b6b; box-shadow: 0 0 0 3px rgba(255,107,53,.3); }
.form-note { color: rgba(255,255,255,.65); font-size: .85rem; margin: 14px 0 0; }
.kontakt-form .btn-primary { width: 100%; }

/* ===== Footer ===== */
.site-footer { background: #04152e; color: rgba(255,255,255,.75); padding: 44px 0; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand span { font-size: .9rem; }
.footer-legal { font-size: .85rem; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; max-width: 70ch; }
.footer-copy { font-size: .9rem; margin: 0; }
.footer-copy a { color: rgba(255,255,255,.85); }
.footer-credit { font-size: .78rem; color: rgba(255,255,255,.42); margin: 0; }
.footer-credit a { color: rgba(255,255,255,.6); }

/* ===== Stats strip ===== */
.stats { position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: -46px; overflow: hidden;
}
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat-num { display: block; font-size: 2.7rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.stat-label { display: block; color: var(--muted); font-size: .9rem; margin-top: 10px; line-height: 1.4; }

/* ===== Form status ===== */
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.2em; font-size: .95rem; }
.form-status.ok { color: #8fe6b0; }
.form-status.err { color: #ffb38a; }
.kontakt-form.sending button[type="submit"] { opacity: .65; pointer-events: none; }

/* ===== Active nav link ===== */
.primary-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.primary-nav .nav-cta.active { background: var(--orange-dark); }

/* ===== Hero parallax (desktop) ===== */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero::before { background-attachment: fixed; }
}

/* ===== Reveal animation ===== */
.section .card, .program-list li, .o-mne-grid > *, .faq-list details { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--navy-900); padding: 16px 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: 0 20px 30px -20px rgba(0,0,0,.6);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .primary-nav .nav-cta { text-align: center; margin-top: 6px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 22px 60px; }
  .hero-photo { max-width: 340px; margin-inline: auto; order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: -36px; }
  .o-mne-grid { grid-template-columns: 1fr; gap: 30px; }
  .o-mne-photo { max-width: 320px; margin-inline: auto; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .cards, .program-list { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .stat { padding: 24px 16px; }
  .stat-num { font-size: 2.2rem; }
}
