/* INO-PRE — pôvodný vzhľad (modrá #0046B4, Calibri, sivá hlavička), zjednotený a doplnený o tiene */
:root {
  --blue: #0046B4;
  --blue-dark: #00358a;
  --blue-soft: #e9f0fb;
  --text: #1c3a6e;
  --muted: #7c8aa3;
  --grey: #f0f0f0;
  --line: #d6dbe4;
  --white: #ffffff;
  --yellow: #ffd23f;
  --green: #0dcba0;
  --accent: linear-gradient(90deg, #7ce54a, #0dcba0);
  --font: Calibri, "Carlito", "Lato", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow-sm: 0 2px 6px rgb(0 30 80 / .10);
  --shadow: 0 6px 18px rgb(0 30 80 / .14);
  --shadow-lg: 0 14px 32px rgb(0 30 80 / .22);
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 1.125rem; line-height: 1.55; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--blue); line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }
strong { color: var(--blue); }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 3rem; }
.center { text-align: center; }
.lead { max-width: 60rem; margin-inline: auto; font-size: 1.2rem; }
.stack { display: grid; gap: 1rem; }

/* ---------- Hlavička ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 1001; background: var(--grey); }
.top-menu { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; }
.language-menu-bar { background: var(--grey); border-bottom: 1px solid #b4b4b4; display: flex; justify-content: flex-end; }
.language-menu-bar a { color: gray; text-decoration: none; font-size: 15px; padding: 3px 10px; border-left: 1px solid #b4b4b4; }
.language-menu-bar a:hover, .language-menu-bar a.active { background: var(--blue); color: var(--white); }
.menu-bar { background: var(--grey); box-shadow: 0 8px 11px -5px rgb(0 0 0 / .45); }
.menu-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 75px; }
.logo img { height: 50px; width: auto; }
.menu { display: flex; align-items: center; gap: .25rem; }
.menu a { color: #7c7c7c; text-decoration: none; font-size: 1.35rem; padding: .4rem .8rem; border-radius: 8px; transition: color .15s, background .15s; }
.menu a:hover { color: var(--blue); background: rgb(0 70 180 / .07); }
.menu a[aria-current="page"] { color: var(--blue); font-weight: 700; box-shadow: inset 0 -3px 0 var(--green); border-radius: 8px 8px 0 0; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--blue); cursor: pointer; }
.menu-toggle svg { width: 32px; height: 32px; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--grey); box-shadow: 0 8px 11px -5px rgb(0 0 0 / .45); padding: .5rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px)); }
  .menu.open { display: flex; }
  .menu a { padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-bar .wrap { position: static; }
  .menu-bar { position: relative; }
}

/* ---------- Banner (slider) ---------- */
.slider { position: relative; overflow: hidden; background: #dfe6f1; aspect-ratio: 600 / 194; max-height: 520px; width: 100%; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slider .slide.active { opacity: 1; }
.slider .slide video, .slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); background: rgb(255 255 255 / .35); padding: 0; cursor: pointer; box-shadow: var(--shadow-sm); }
.slider-dots button.active { background: var(--white); }

main { flex: 1 0 auto; }
.top-menu, .cta-band, .footer { flex-shrink: 0; }

/* ---------- Nadpis stránky (jednotný) ---------- */
.page-head { background: linear-gradient(135deg, var(--blue-soft) 0%, #f4fbf8 100%); }
.page-title { padding-block: 2.75rem 2.25rem; display: grid; gap: .9rem; }
.page-title h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); letter-spacing: -.01em; }
.page-title h1::after { content: ""; display: block; width: 64px; height: 5px; margin-top: .7rem; border-radius: 99px; background: var(--accent); }
.page-title p { max-width: 60rem; font-size: 1.2rem; }

/* ---------- Domov ---------- */
.intro { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.intro img { width: min(100%, 760px); margin-top: .5rem; }
.rule { border: 0; height: 4px; border-radius: 99px; background: var(--accent); margin: 0 auto; width: min(100%, 760px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; max-width: 960px; margin: 0 auto; }
@media (max-width: 800px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile .cover { position: absolute; inset: 0; background: rgb(0 70 180 / .55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; color: var(--white); text-align: center; padding: 1rem; transition: background .2s; }
.tile .cover strong { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; text-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.tile .cover span { font-weight: 700; font-size: 1.1rem; border: 2px solid var(--white); border-radius: 999px; padding: .3rem 1.1rem; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile:hover .cover { background: rgb(0 70 180 / .88); }
.tile:hover img { transform: scale(1.05); }
@media (max-width: 480px) { .tile { aspect-ratio: 16 / 10; } .tile .cover { gap: 1rem; } }

/* ---------- Tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--blue); color: var(--white); text-decoration: none; font-family: var(--font); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; padding: .7rem 1.3rem; border-radius: 8px; border: 2px solid var(--blue); box-shadow: var(--shadow-sm); transition: background .15s, box-shadow .15s, transform .15s; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn-light { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-light:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-soft); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-lg { font-size: 1.3rem; padding: 1rem 1.8rem; text-transform: none; }

/* ---------- Karty ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body .btn-row { margin-top: auto; padding-top: .8rem; }
.card-media { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.label { font-weight: 700; text-transform: uppercase; color: var(--blue); font-size: .95rem; letter-spacing: .04em; }
.sub { color: var(--muted); font-weight: 700; }
.date { color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* Ľudia */
.person { text-align: center; align-items: center; }
.person .card-body { align-items: center; }
.avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); border: 4px solid var(--white); margin-top: 1.5rem; }

/* Zoznam s fajkami */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / .8rem no-repeat; }

/* Kontakt */
.contact-card .card-body { gap: .3rem; }
.contact-card .dept { color: var(--muted); font-weight: 700; }
.contact-card .name { color: var(--blue); font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.icon-line { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.icon-line svg, .contact-card .name svg { width: 20px; height: 20px; flex: none; color: var(--blue); }

/* Letná škola */
.camp-hero { background: linear-gradient(180deg, var(--blue) 0%, #0a8fe6 70%, #3fd2f5 100%); color: var(--white); text-align: center; overflow: hidden; }
.camp-hero .wrap { padding-top: 2rem; display: grid; gap: 1rem; justify-items: center; }
.camp-hero .kicker { color: rgb(255 255 255 / .85); font-size: 1.6rem; font-weight: 700; }
.camp-hero h1 { color: var(--yellow); font-size: clamp(2.2rem, 6vw, 3.6rem); text-shadow: 0 3px 10px rgb(0 0 0 / .25); }
.camp-hero p { color: var(--white); font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 700; max-width: 26ch; line-height: 1.25; text-wrap: balance; }
.camp-hero .btn { border-radius: 999px; min-width: 170px; }
.camp-hero img { width: min(100%, 900px); margin-top: .5rem; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.gallery img:hover { transform: scale(1.04); box-shadow: var(--shadow); }

/* 2 % */
.deadline { display: grid; gap: .25rem; padding: 1.2rem 1.4rem; border-left: 5px solid var(--green); }
.deadline strong { font-size: 1.3rem; }
.steps ol, .steps ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.panel { background: var(--blue-soft); border-radius: var(--radius); padding: 1.5rem; }

/* Prázdny stav */
.empty { text-align: center; padding: 3rem 1.5rem; display: grid; gap: .6rem; justify-items: center; }

/* ---------- Modrý pás + päta ---------- */
.cta-band { background: var(--blue); margin-top: 3rem; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.cta-band .wrap { align-items: center; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem 3rem; padding-block: 3rem; }
.cta-band a { color: var(--white); text-decoration: none; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; padding: .3rem 1rem; border-radius: 10px; transition: background .15s; }
.cta-band a:hover { background: rgb(255 255 255 / .12); color: var(--white); }
.footer { background: var(--grey); color: gray; font-size: .9rem; text-align: center; padding-block: .6rem; }
.footer .wrap { display: block; }
.footer a { color: inherit; text-decoration: none; } .footer a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Zelené akcenty a bloky CMS ---------- */
.sec-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .55rem; border-radius: 99px; background: var(--accent); }
.sec-title.centered::after, .center .sec-title::after { margin-inline: auto; }
.card { border-top: 0; }
.card:hover { box-shadow: var(--shadow-lg), inset 0 3px 0 var(--green); }
.person .avatar { border-color: var(--white); box-shadow: 0 0 0 3px var(--green), var(--shadow); }
.label { color: var(--blue); }
.label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: .45rem; vertical-align: middle; }
.checks li::before { background-color: var(--green); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.bg-soft { background: linear-gradient(135deg, var(--blue-soft) 0%, #f4fbf8 100%); }
.prose { display: grid; gap: .9rem; max-width: 70ch; }
.center .prose { margin-inline: auto; }
.prose > * { margin: 0; }
.prose h2, .prose h3 { margin-top: .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .35rem; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose blockquote { border-left: 4px solid var(--green); padding-left: 1rem; color: var(--text); font-style: italic; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > * { min-width: 0; }
.split-rev > :first-child { order: 2; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split-rev > :first-child { order: 0; } }
.split-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.light-hero { background: linear-gradient(135deg, var(--blue-soft) 0%, #f4fbf8 100%); text-align: center; }
.light-hero .wrap { padding-block: 3rem; display: grid; gap: 1rem; justify-items: center; }
.light-hero .kicker { color: var(--muted); font-weight: 700; font-size: 1.2rem; }
.light-hero h1::after { content: ""; display: block; width: 64px; height: 5px; margin: .7rem auto 0; border-radius: 99px; background: var(--accent); }
.light-hero p { font-size: 1.25rem; max-width: 50ch; }
.light-hero img { width: min(100%, 900px); }
.camp-hero { position: relative; }
.camp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--accent); }
.cta-box { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; box-shadow: var(--shadow-lg); border-bottom: 5px solid var(--green); }
.cta-box h2, .cta-box p, .cta-box strong { color: var(--white); }
.layout-narrow, .narrow { --wrap: 860px; }
.wrap.narrow { max-width: 860px; }
.article-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--blue-dark); text-decoration: underline; }
.load-more { display: flex; justify-content: center; padding-top: .5rem; }
.load-more .htmx-request, .load-more.htmx-request .btn { opacity: .6; }
.draft-note { background: #fff6d6; color: #6b5400; text-align: center; padding: .5rem 1rem; font-weight: 700; }
.gallery a { display: block; }
.lightbox-view { position: fixed; inset: 0; z-index: 2000; background: rgb(0 20 50 / .88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox-view img { max-height: 90vh; width: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.page-title .date { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .95rem; }
.sec-title.centered { text-align: center; }
/* Text z editora */
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose img { max-width: 100%; height: auto; }

/* ---------- Banner: výška, stmavenie, texty ---------- */
.slider.h-low { aspect-ratio: auto; height: clamp(220px, 32vw, 320px); max-height: none; }
.slider.h-mid { aspect-ratio: auto; height: clamp(280px, 42vw, 440px); max-height: none; }
.slider.h-high { aspect-ratio: auto; height: clamp(340px, 55vw, 600px); max-height: none; }
.slider.h-full { aspect-ratio: auto; height: calc(100vh - 100px); height: calc(100dvh - 100px); min-height: 360px; max-height: none; }
.slider .slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.slider.ov-light .slide::after { background: rgb(0 20 50 / .25); }
.slider.ov-dark .slide::after { background: linear-gradient(0deg, rgb(0 10 30 / .7), rgb(0 10 30 / .35)); }
.slider.ov-blue .slide::after { background: rgb(0 70 180 / .55); }
.slide-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; color: var(--white); }
.slide-caption .wrap { width: 100%; }
.cap-inner { display: grid; gap: .8rem; max-width: 640px; }
.pos-center .slide-caption { text-align: center; }
.pos-center .cap-inner { margin-inline: auto; justify-items: center; }
.pos-left .cap-inner { justify-items: start; }
.pos-bottom .slide-caption { align-items: flex-end; padding-bottom: 3rem; }
.slide-caption h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 3rem); text-shadow: 0 2px 12px rgb(0 0 0 / .45); }
.slide-caption h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .6rem; border-radius: 99px; background: var(--accent); }
.pos-center .slide-caption h2::after { margin-inline: auto; }
.slide-caption p { font-size: clamp(1.05rem, 2vw, 1.35rem); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.slide-caption .btn { justify-self: inherit; }
.slider.h-auto .slide-caption .cap-inner { gap: .4rem; }
@media (max-width: 600px) { .slider.h-auto .slide-caption p { display: none; } .slider.h-auto .slide-caption h2 { font-size: 1.3rem; } }
