/* ============================================
   MŠ GELNICKÁ – HLAVNÝ STYLESHEET
   ============================================ */

:root {
  --cream: #FAF7F2;
  --sage: #7A9E7E;
  --sage-light: #A8C5AC;
  --sage-dark: #4E7552;
  --coral: #E8836A;
  --coral-light: #F2A692;
  --brown: #5C4033;
  --text: #2C2C2C;
  --text-muted: #7A7A7A;
  --white: #FFFFFF;
  --border: #E8E2D9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: none;
  padding: 0 40px;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--sage);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-animated {
  width: 52px;
  height: 60px;
  background: var(--sage-dark);
  border-radius: 14px;
  flex-direction: column;
  gap: 0;
  padding: 8px 6px 7px;
  animation: logoPop .6s cubic-bezier(.34,1.5,.64,1) both;
}
@keyframes logoPop {
  from { transform: scale(.6) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1)  rotate(0deg);  opacity: 1; }
}
.nav-logo-ring {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(250,247,242,0.09);
  top: 4px; left: 50%; transform: translateX(-50%);
  animation: ringBreath 3.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ringBreath {
  0%,100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: .7; }
}
.nav-logo-ms {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #FAF7F2;
  letter-spacing: -.5px;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-top: 2px;
  animation: msFade .7s .2s both;
}
@keyframes msFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-logo-divider {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(250,247,242,0.3);
  margin: 5px auto 4px;
  flex-shrink: 0;
  animation: msFade .7s .35s both;
}
.nav-logo-gelnicka {
  font-family: 'DM Sans', sans-serif;
  font-size: 7px;
  font-weight: 600;
  color: rgba(250,247,242,0.65);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  z-index: 1;
  animation: msFade .7s .45s both;
}
.nav-logo-dot { display: none; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 15px; color: var(--brown); }
.nav-logo-text span { font-size: 12px; color: var(--text-muted); }

.main-navigation ul { display: flex; gap: 0; list-style: none; align-items: center; }
.main-navigation ul li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted) !important;
  transition: all .2s;
  letter-spacing: 0.2px;
  padding: 7px 10px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
  background: transparent !important;
  border: none !important;
  text-decoration: none;
}
.main-navigation ul li a:hover {
  color: var(--text) !important;
  background: rgba(0,0,0,0.05) !important;
}
.main-navigation ul li.current-menu-item > a {
  color: var(--text) !important;
  font-weight: 600;
  background: rgba(0,0,0,0.05) !important;
}
/* Len Kontakt má oranžový štýl */
.main-navigation ul li a.nav-cta {
  background: var(--coral) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  border: none !important;
}
.main-navigation ul li a.nav-cta:hover {
  background: var(--sage-dark) !important;
  color: white !important;
}
.main-navigation a:hover { color: var(--sage-dark); }

/* ── HERO ── */
.hero {
  min-height: 75vh;
  height: 75vh;
  padding-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
  position: relative;
  margin-bottom: 0;
}
.hero-left {
  padding: 90px 60px 80px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light); color: var(--sage-dark);
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  width: fit-content; margin-bottom: 28px;
  opacity: 0; animation: fadeUp .6s .1s forwards;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.1; color: var(--brown);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp .6s .2s forwards;
}
.hero-title em { font-style: italic; color: var(--sage-dark); }
.hero-desc {
  font-size: 17px; line-height: 1.7; color: var(--text-muted);
  max-width: 420px; margin-bottom: 40px; font-weight: 300;
  opacity: 0; animation: fadeUp .6s .3s forwards;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center;
  opacity: 0; animation: fadeUp .6s .5s forwards;
}
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
  opacity: 0; animation: fadeUp .6s .4s forwards;
}
.stat-num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--sage-dark); font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn .8s .3s forwards;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card {
  position: absolute;
  bottom: 16px; right: 16px; left: auto;
  background: white;
  border-radius: 20px; padding: 16px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15); min-width: 220px; max-width: 260px;
  z-index: 10;
  animation: floatCard 3s ease-in-out infinite;
}
.hero-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero-card-icon {
  width: 36px; height: 36px; background: var(--coral-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.hero-card-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.hero-card-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 1px; }
.hero-card-menu span {
  display: block; padding: 4px 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px;
}
.hero-card-menu span:last-child { border: none; }

/* ── OZNAMY BAR ── */
.oznamy-bar {
  background: var(--sage-dark);
  padding: 0;
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  position: relative; z-index: 5;
  margin-top: -1px;
}
.oznamy-label {
  background: var(--coral); color: white;
  padding: 10px 18px 10px 24px;
  border-radius: 0 8px 8px 0;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  flex-shrink: 0;
  display: flex; align-items: center;
  margin-right: 0;
}
.oznamy-ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.oznamy-ticker {
  display: inline-flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 55s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}
.oznamy-ticker:hover { animation-play-state: paused; }
.oznamy-ticker-text {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  padding-right: 100px;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.oznamy-link { color: var(--coral-light); font-size: 13px; white-space: nowrap; margin-left: 16px; font-weight: 500; flex-shrink: 0; }

/* ── SECTIONS SHARED ── */
.site-section { padding: 100px 60px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sage-dark); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 20px; height: 2px; background: var(--coral); display: inline-block; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.15; color: var(--brown); margin-bottom: 20px;
}
.section-desc { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 520px; font-weight: 300; }
.about-desc { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 520px; font-weight: 300; margin-bottom: 24px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sage-dark); color: white;
  padding: 15px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 600; display: inline-block; transition: all .25s;
}
.btn-primary:hover { background: var(--brown); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78,117,82,0.3); }
.btn-secondary {
  color: var(--text); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; transition: gap .2s;
}
.btn-secondary:hover { gap: 12px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--sage-dark); color: var(--sage-dark);
  padding: 13px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 600; transition: all .25s;
}
.btn-outline:hover { background: var(--sage-dark); color: white; }
.btn-outline-white { border-color: rgba(255,255,255,0.5); color: white; }
.btn-outline-white:hover { background: white; color: var(--sage-dark); border-color: white; }

/* ── O ŠKÔLKE ── */
.section-about {
  background: white; display: grid;
  grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-images { position: relative; height: 520px; }
.about-img-main {
  position: absolute; top: 0; left: 0; width: 75%; height: 85%;
  border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute; bottom: 0; right: 0; width: 55%; height: 55%;
  border-radius: 20px; overflow: hidden; border: 6px solid white;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; top: 50%; left: 60%; transform: translate(-50%, -50%);
  background: var(--coral); color: white;
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; text-align: center; line-height: 1.3;
  border: 4px solid white; box-shadow: 0 8px 24px rgba(232,131,106,0.4);
}
.about-badge strong { font-size: 24px; font-family: 'Playfair Display', serif; }
.about-features { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 14px; background: var(--cream); transition: transform .2s;
}
.feature-item:hover { transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; background: var(--sage-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.feature-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.feature-text span { font-size: 12px; color: var(--text-muted); }

/* ── TRIEDY ── */
.section-triedy { background: var(--cream); }
.triedy-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.triedy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trieda-card {
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s; cursor: pointer;
  position: relative; display: block;
}
.trieda-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.trieda-img { width: 100%; aspect-ratio: 16/7; position: relative; overflow: hidden; }
.trieda-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.trieda-card:hover .trieda-img img { transform: scale(1.06); }
.trieda-color-bar { height: 5px; width: 100%; }
.trieda-hover-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: white; font-size: 15px; font-weight: 600;
  padding: 32px 16px 12px;
  opacity: 0; transition: opacity .25s;
}
.trieda-card:hover .trieda-hover-name { opacity: 1; }


/* ── JEDÁLNY LÍSTOK ── */
.section-jedalny {
  background: var(--sage-dark); position: relative; overflow: hidden;
}
.section-jedalny::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; background: rgba(255,255,255,0.04); border-radius: 50%;
}
.section-jedalny::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; background: rgba(255,255,255,0.03); border-radius: 50%;
}
.section-jedalny .section-tag { color: var(--coral-light); }
.section-jedalny .section-tag::before { background: var(--coral-light); }
.section-jedalny .section-title { color: white; }
.section-jedalny .section-desc { color: rgba(255,255,255,0.65); }
.jedalny-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; position: relative; z-index: 1; }
.tyzdenny-nav { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.den-btn {
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
}
.den-btn.active { background: var(--coral); color: white; }
.den-btn:hover:not(.active) { background: rgba(255,255,255,0.2); color: white; }
.menu-card { background: white; border-radius: 24px; overflow: hidden; }
.menu-card-header {
  background: var(--cream); padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border);
}
.menu-date { font-size: 14px; color: var(--text-muted); }
.menu-date strong { display: block; font-size: 18px; color: var(--brown); font-family: 'Playfair Display', serif; }
.menu-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 28px; border-bottom: 1px solid var(--border); transition: background .2s;
}
.menu-item:last-child { border: none; }
.menu-item:hover { background: var(--cream); }
.menu-type {
  background: var(--sage-light); color: var(--sage-dark);
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; margin-top: 2px;
}
.menu-nazov { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.4; }
.menu-alergeny { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── KRÚŽKY ── */
.section-kruzky { background: white; }
.kruzky-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.kruzok-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--cream);
  transition: transform .3s, box-shadow .3s;
}
.kruzok-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.kruzok-img-full {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s;
}
.kruzok-card:hover .kruzok-img-full { transform: scale(1.05); }
.kruzok-emoji-big {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.kruzok-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 20px;
}
.kruzok-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: white; margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.kruzok-den {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.2);
  border-radius: 100px; padding: 3px 12px;
  backdrop-filter: blur(4px);
}
.kruzok-icon { display: none; }
.kruzok-info { display: none; }

/* ── NOVINKY / AKTUALITY ── */
.section-novinky { background: white; }
.section-aktuality { background: var(--cream); }
.aktuality-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.aktualita-card {
  background: white; border-radius: 20px; padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.aktualita-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.aktualita-datum { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.aktualita-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--brown); margin-bottom: 12px; line-height: 1.3; }
.aktualita-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.aktualita-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--sage-dark); }

/* ── GALÉRIA ── */
.section-galeria { background: var(--cream); }
.galeria-grid {
  margin-top: 56px; display: grid;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px;
}
.galeria-item { border-radius: 20px; overflow: hidden; cursor: pointer; position: relative; }
.galeria-item:first-child { grid-row: 1 / 3; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria-item:hover img { transform: scale(1.05); }
.galeria-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 20px; color: white; font-size: 14px; font-weight: 500;
}
.galeria-item:hover .galeria-item-overlay { opacity: 1; }
.galeria-more {
  position: absolute; inset: 0; background: rgba(78,117,82,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; font-family: 'Playfair Display', serif;
  backdrop-filter: blur(4px);
}
.galeria-more span { font-size: 18px; font-weight: 600; letter-spacing: .3px; }

/* ── KONTAKT ── */
.section-kontakt { background: white; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.kontakt-items { margin-top: 28px; }
.kontakt-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.kontakt-item:last-child { border: none; margin: 0; padding: 0; }
.kontakt-ico {
  width: 48px; height: 48px; background: var(--sage-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.kontakt-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.kontakt-value { font-size: 15px; font-weight: 500; color: var(--text); }
.kontakt-value a { color: var(--sage-dark); }
.mapa-placeholder { border-radius: 24px; overflow: hidden; height: 380px; }
.mapa-placeholder iframe { width: 100%; height: 100%; border: none; }
.doprava-info { margin-top: 24px; padding: 24px; background: var(--cream); border-radius: 20px; }
.doprava-info-title { font-size: 14px; font-weight: 600; color: var(--brown); margin-bottom: 8px; }
.doprava-info-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown); color: rgba(255,255,255,0.6);
  padding: 48px 60px; display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: 'Playfair Display', serif; color: white; font-size: 18px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 13px; }

/* ── VIEW MORE ── */
.view-more { text-align: center; margin-top: 48px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ADMIN BAR FIX ── */
.admin-bar .site-header { top: 32px; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── TABLET ── */
/* ══════════════════════════════════════════════
   TABLET (max 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 360px; order: -1; }
  .hero-left { padding: 48px 40px; }
  .hero-card { display: none; }
  .hero-stats { gap: 24px; }
  .section-about { grid-template-columns: 1fr; gap: 48px; }
  .about-images { height: 320px; order: -1; }
  .triedy-grid { grid-template-columns: 1fr 1fr; }
  .kruzky-grid { grid-template-columns: 1fr 1fr; }
  .jedalny-inner { grid-template-columns: 1fr; gap: 40px; }
  .galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .galeria-item:first-child { grid-row: auto; }
  .section-kontakt { grid-template-columns: 1fr; gap: 48px; }
}

/* ══════════════════════════════════════════════
   MOBILE (max 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Header ── */
  .site-header {
    padding: 0 16px;
    height: 60px;
  }
  .admin-bar .site-header { top: 46px; }

  /* Logo – zmenšiť na mobile */
  .nav-logo-animated {
    width: 40px;
    height: 46px;
    border-radius: 11px;
    padding: 6px 5px;
  }
  .nav-logo-ms { font-size: 14px; }
  .nav-logo-divider { width: 26px; margin: 4px auto 3px; }
  .nav-logo-gelnicka { font-size: 5.5px; letter-spacing: 1.2px; }
  .nav-logo-ring { width: 30px; height: 30px; }
  .nav-logo-text strong { font-size: 13px; }
  .nav-logo-text span { font-size: 11px; }

  /* Hlavná nav – skryť na mobile (hamburger ju nahrádza) */
  .main-navigation ul {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 20px 28px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .main-navigation ul.open { display: flex; }
  .main-navigation ul li { border-bottom: 1px solid var(--border); }
  .main-navigation ul li:last-child { border: none; margin-top: 12px; }
  .main-navigation a { display: block; padding: 13px 0; font-size: 16px; color: var(--text); }
  .main-navigation ul li a.nav-cta {
    display: block; text-align: center;
    padding: 13px 20px !important; border-radius: 12px !important;
    font-size: 14px !important;
    background: var(--coral) !important; color: white !important;
  }

  /* Pravá časť headera */
  .header-right-btns { gap: 2px; }
  .header-btn-divider { margin: 0 1px; }
  .search-trigger-label { display: none; }
  .search-trigger-btn { padding: 8px 9px; }
  .mega-menu-btn { padding: 8px 9px; }
  .mega-menu-label { display: none; }

  /* ── Hero ── */
  .hero {
    height: auto !important;
    min-height: auto !important;
    padding-top: 60px;
  }
  .hero-right { height: 220px; }
  .hero-left { padding: 28px 16px 36px; }
  .hero-tag { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
  .hero-desc { font-size: 14px; margin-bottom: 0; }
  .hero-stats-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 20px; }
  .hero-stats-actions .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats-actions .hero-actions { width: 100%; }
  .btn-primary { text-align: center; padding: 14px 20px; font-size: 15px; display: block; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12px; }
  /* Kalendár skrytý na mobile */
  .hero-calendar, .hero-mini-cal { display: none !important; }

  /* ── Oznam ── */
  .oznamy-bar { padding: 0; }
  .oznamy-label { padding: 8px 12px 8px 14px; font-size: 10px; }
  .oznamy-ticker-text { font-size: 13px; }

  /* ── Sekcie ── */
  .site-section { padding: 48px 16px; }
  .section-about { padding: 48px 16px; }
  .section-kontakt { padding: 48px 16px; }
  .section-title { font-size: 26px; }
  .section-desc { font-size: 14px; }
  .section-header { margin-bottom: 28px; }

  /* ── O nás ── */
  .about-images { height: 220px; }
  .about-features { grid-template-columns: 1fr; gap: 12px; }
  .about-feature { padding: 16px; }

  /* ── Triedy ── */
  .triedy-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .triedy-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trieda-card { border-radius: 14px; }

  /* ── Jedálny lístok ── */
  .den-btns { gap: 6px; flex-wrap: wrap; }
  .den-btn { padding: 7px 10px; font-size: 12px; }
  .menu-item { padding: 12px 16px; }
  .menu-card-header { padding: 14px 16px; }

  /* ── Krúžky ── */
  .kruzky-grid { grid-template-columns: 1fr; gap: 14px; }
  .kruzok-card { padding: 18px; }

  /* ── Aktuality ── */
  .aktuality-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Galéria ── */
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 8px;
  }
  .galeria-item:first-child { grid-column: 1 / 3; }

  /* ── Kontakt ── */
  .kontakt-ico { width: 38px; height: 38px; font-size: 15px; }
  .kontakt-value { font-size: 14px; }
  .mapa-placeholder { height: 240px; border-radius: 16px; }

  /* ── Footer ── */
  .site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .btn-outline { padding: 10px 20px; font-size: 13px; }

  /* ── Mega menu panel ── */
  .mega-menu-panel { width: 280px; }

  /* ── Search overlay ── */
  .search-overlay { padding-top: 70px; padding-left: 12px; padding-right: 12px; }
  .search-panel { border-radius: 18px; max-height: calc(100vh - 85px); }
  .search-panel-head { padding: 18px 18px 0; }
  .search-panel-title { font-size: 20px; }
  .search-input-wrap { padding: 14px 18px 0; }
  .search-input-icon { left: 34px; }
  .search-input { padding: 12px 38px 12px 38px; font-size: 16px; }
  .search-input-clear { right: 30px; }
  .search-hint { padding: 5px 18px 0; font-size: 10px; }
  .search-divider { margin: 12px 18px 0; }
  .search-section-head { padding: 12px 18px 8px; }
  .search-pills { padding: 0 18px 14px; gap: 6px; }
  .search-pill { font-size: 12px; padding: 6px 12px; }
  .search-section-label { padding: 0 18px 8px !important; }
  .search-results-list { padding: 0 6px 6px; }
  .search-panel-footer { padding: 10px 18px; }

  /* ── Intro overlay ── */
  .intro-logo {
    width: 120px; height: 140px;
    border-radius: 32px;
    padding: 18px 14px 16px;
  }
  .intro-ring { width: 88px; height: 88px; }
  .intro-ms { font-size: 42px; }
  .intro-divider { width: 72px; margin: 10px auto 9px; }
  .intro-gelnicka { font-size: 11px; letter-spacing: 3px; }
  .intro-school-name { font-size: 14px; text-align: center; padding: 0 32px; }
}

/* ══════════════════════════════════════════════
   SMALL MOBILE (max 390px – iPhone 13 mini)
   ══════════════════════════════════════════════ */
@media (max-width: 390px) {
  .hero-title { font-size: 26px; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 22px; }
  .triedy-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .galeria-item:first-child { grid-column: auto; }
  .galeria-item { height: 180px; }
  .section-title { font-size: 24px; }
  .nav-logo-text strong { font-size: 12px; }
  /* Skryť text vedľa loga na mobile – šetrí miesto v headeri */
  .nav-logo-text { display: none; }
}

/* ── iOS SAFARI FIXES ── */
@supports (-webkit-touch-callout: none) {
  .site-header { -webkit-backdrop-filter: blur(12px); }
  .hamburger, .main-navigation a,
  .search-trigger-btn, .mega-menu-btn { -webkit-tap-highlight-color: transparent; }
  .search-input { font-size: 16px; } /* zabraňuje zoom pri focuse na iOS */
}

/* ── HERO KALENDÁR ── */
.hero-calendar {
  position: absolute;
  top: 16px; right: 16px; bottom: auto; left: auto;
  background: white;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  width: 240px;
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-cal-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.hero-cal-icon { font-size: 20px; }
.hero-cal-label { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.hero-cal-mesiac { font-size: 14px; font-weight: 700; color: var(--brown); font-family: 'Playfair Display', serif; }
.hero-cal-nav { display: flex; align-items: center; gap: 2px; }
.hero-cal-nav-btn {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--brown); text-decoration: none;
  transition: background .15s; line-height: 1;
}
.hero-cal-nav-btn:hover { background: var(--border); }
.hero-cal-nav-today { font-size: 9px; color: var(--sage-dark); }

.hero-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.hero-cal-day-name {
  font-size: 9px; font-weight: 700; color: var(--text-muted);
  text-align: center; padding: 2px 0; letter-spacing: 0.5px;
}
.hero-cal-day {
  font-size: 11px; font-weight: 500; color: var(--text);
  text-align: center; padding: 4px 2px;
  border-radius: 6px; position: relative;
  cursor: default; line-height: 1.2;
  transition: background .15s;
}
.hero-cal-day.empty { opacity: 0; }
.hero-cal-day.today {
  background: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 700;
}
.hero-cal-day.has-event { cursor: pointer; }
.hero-cal-day.has-event:hover { background: var(--cream); }

.event-dot {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  position: absolute;
  bottom: 1px; left: 50%; transform: translateX(-50%);
}
.event-badge {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.event-coral .event-dot, .event-badge.event-coral { background: var(--coral); }
.event-sage .event-dot, .event-badge.event-sage { background: var(--sage-dark); }
.event-blue .event-dot, .event-badge.event-blue { background: #5B8DB8; }
.event-yellow .event-dot, .event-badge.event-yellow { background: #E8B84B; }

.hero-cal-next {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.hero-cal-next-nazov { font-size: 12px; font-weight: 600; color: var(--brown); }
.hero-cal-next-info { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.hero-cal-tooltip {
  display: none;
  position: absolute;
  background: var(--brown);
  color: white;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: pre-line;
  z-index: 20;
  pointer-events: none;
  max-width: 180px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-cal-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom: none;
  border-top-color: var(--brown);
}

/* ── KLIKATEĽNÉ FEATÚRY ── */
.feature-item--link {
  text-decoration: none;
  cursor: pointer;
}
.feature-item--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  background: white;
}
.feature-arrow {
  margin-left: auto;
  color: var(--sage-dark);
  font-size: 16px;
  flex-shrink: 0;
  align-self: center;
  transition: transform .2s;
}
.feature-item--link:hover .feature-arrow {
  transform: translateX(4px);
}

/* ── MEGA MENU BUTTON ── */
.mega-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: 10px;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mega-menu-btn:hover { background: rgba(0,0,0,0.05); }
.mega-menu-icon {
  display: flex; flex-direction: column; gap: 4px;
  width: 18px;
}
.mega-menu-icon span {
  display: block; width: 100%; height: 2px;
  background: var(--brown); border-radius: 2px;
  transition: all .3s;
}
.mega-menu-btn.open .mega-menu-icon span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mega-menu-btn.open .mega-menu-icon span:nth-child(2) { opacity: 0; }
.mega-menu-btn.open .mega-menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.mega-menu-label {
  font-size: 12px; font-weight: 700; color: var(--brown);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ── MEGA MENU OVERLAY ── */
.mega-menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.mega-menu-overlay.open {
  opacity: 1; pointer-events: all;
}
.mega-menu-panel {
  position: absolute;
  top: 70px; right: 20px;
  background: #FAF7F2;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  transform: translateY(-10px) scale(0.97);
  transition: transform .3s, opacity .3s;
  opacity: 0;
  overflow: hidden;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}
.mega-menu-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 6px 0;
}
.mega-menu-overlay.open .mega-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mega-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--sage-dark);
}
.mega-menu-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: #FAF7F2;
  letter-spacing: 0; text-transform: none;
}
.mega-menu-close {
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.mega-menu-close:hover { background: rgba(255,255,255,0.3); }
.mega-menu-links { list-style: none; }
.mega-menu-links li a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 20px;
  font-size: 14px; font-weight: 500; color: var(--brown);
  text-decoration: none;
  border-bottom: none;
  transition: background .15s, color .15s;
  border-radius: 8px;
  margin: 1px 8px;
}
.mega-menu-links li a:hover {
  background: #EEF4EE;
  color: var(--sage-dark);
}
.mega-menu-links li a::before {
  content: '→';
  font-size: 11px;
  color: var(--sage-dark);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: translateX(-4px);
  flex-shrink: 0;
}
.mega-menu-links li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
/* Footer panel */
.mega-menu-footer {
  padding: 10px 20px;
  background: #F0EBE3;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid #E8E2D9;
}
.mega-menu-footer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-dark); flex-shrink: 0;
}
.mega-menu-footer-text {
  font-size: 11px; color: var(--text-muted);
}

/* ── FOOTER CREDIT ── */
.footer-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}
.footer-credit strong {
  color: rgba(255,255,255,0.5);
}

.hero-stats-bar {
  display: flex;
  gap: 48px;
  padding: 20px 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}.hero-stat .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--sage-dark);
  font-weight: 700;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── HERO STATS + ACTIONS ROW ── */
.hero-stats-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp .6s .4s forwards;
}
.hero-stats-actions .hero-stats {
  display: flex; gap: 24px;
  padding: 0; border: none; margin: 0;
  opacity: 1; animation: none;
}
.hero-stats-actions .hero-actions {
  opacity: 1; animation: none;
  flex-shrink: 0;
}

/* ── KOMBINOVANÉ PLÁVAJÚCE OKNO ── */
.hero-combined-card {
  position: absolute;
  bottom: 20px; right: 16px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 10;
  display: flex;
  overflow: hidden;
  animation: floatCard 4s ease-in-out infinite;
  max-width: 520px;
}
.hero-combined-left {
  padding: 16px 18px;
  width: 240px;
  flex-shrink: 0;
}
.hero-combined-divider {
  width: 1px;
  background: var(--border);
  margin: 16px 0;
  flex-shrink: 0;
}
.hero-combined-right {
  padding: 16px 18px;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.hero-combined-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
}
.hero-combined-link:hover { color: var(--coral); }

/* ── MINI KARTY ── */
.hero-mini-card {
  position: absolute;
  right: 16px;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  z-index: 10;
  width: 220px;
}
.hero-mini-cal {
  top: auto;
  bottom: 16px;
  right: 16px;
  width: 260px;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-mini-cal .hero-cal-grid { gap: 2px; }
.hero-mini-cal .hero-cal-day { font-size: 11px; padding: 4px 2px; }
.hero-mini-cal .hero-cal-day-name { font-size: 9px; padding: 2px 0; }
.hero-mini-cal .hero-cal-mesiac { font-size: 14px; }

/* ══════════════════════════════════════════════
   SEARCH TRIGGER BUTTON + OVERLAY
   ══════════════════════════════════════════════ */

/* ── Pravá skupina tlačidiel v headeri ── */
.header-right-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-btn-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 2px;
}

/* ── Trigger tlačidlo ── */
.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.search-trigger-btn:hover { background: rgba(0,0,0,0.05); }
.search-trigger-btn svg {
  width: 16px;
  height: 16px;
  color: var(--brown);
  flex-shrink: 0;
}
.search-trigger-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Overlay pozadie ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(44, 28, 20, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  padding-left: 20px;
  padding-right: 20px;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel ── */
.search-panel {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  transform: translateY(-16px) scale(0.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.4,.64,1), opacity .25s;
  overflow: hidden;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.search-overlay.open .search-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Panel hlavička ── */
.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px 0;
  flex-shrink: 0;
}
.search-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--brown);
  font-weight: 700;
  line-height: 1;
}
.search-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.search-panel-close:hover { background: var(--border); }

/* ── Input ── */
.search-input-wrap {
  position: relative;
  padding: 20px 28px 0;
  flex-shrink: 0;
}
.search-input-icon {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--sage-dark);
  opacity: 0.55;
  pointer-events: none;
}
.search-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  border: none;
  border-bottom: 2.5px solid var(--sage-dark);
  border-radius: 12px 12px 0 0;
  padding: 14px 44px 14px 48px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}
.search-input-clear {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--border);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.search-input-clear:hover { background: var(--sage-light); }

/* ── Hint ── */
.search-hint {
  padding: 6px 28px 0;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.search-hint kbd {
  background: var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: monospace;
}
.search-divider {
  margin: 18px 28px 0;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Scrollovateľná časť ── */
#search-empty-state,
#search-results-state,
#search-loading-state,
#search-noresults-state {
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Sekcia label ── */
.search-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── História vyhľadávaní ── */
.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 10px;
}
.search-history-clear-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--sage-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.search-history-list {
  list-style: none;
  padding: 0 12px;
}
.search-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
  color: var(--text);
}
.search-history-item:hover { background: var(--cream); }
.search-history-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-history-item span { flex: 1; }
.search-history-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .15s, background .15s;
}
.search-history-item:hover .search-history-del { opacity: 1; }
.search-history-del:hover { background: var(--border); }

/* ── Rýchle skratky (pills) ── */
.search-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 20px;
}
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
.search-pill:hover {
  background: var(--sage-light);
  border-color: var(--sage);
  color: var(--sage-dark);
}

/* ── Výsledky ── */
.search-results-list {
  list-style: none;
  padding: 0 12px 8px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover { background: var(--cream); }
.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.search-result-icon.coral { background: #FDF0EC; }
.search-result-icon.sage  { background: #EEF4EE; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
  margin-top: 2px;
  align-self: flex-start;
}
.search-result-tag.t-coral { background: #FDF0EC; color: var(--coral); }
.search-result-tag.t-sage  { background: #EEF4EE; color: var(--sage-dark); }

/* ── Loading ── */
.search-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.search-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--sage-dark);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Žiadne výsledky ── */
.search-noresults {
  padding: 28px 28px 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-noresults strong { color: var(--text); }
.search-noresults span { font-size: 12px; }

/* ── Footer ── */
.search-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.search-footer-tip {
  font-size: 11px;
  color: var(--text-muted);
}
.search-footer-tip strong { color: var(--sage-dark); }
.search-footer-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
  transition: color .15s;
}
.search-footer-all:hover { color: var(--coral); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .search-trigger-label { display: none; }
  .search-trigger-btn { padding: 8px 10px; }
  .search-overlay { padding-top: 80px; padding-left: 12px; padding-right: 12px; }
  .search-panel { border-radius: 18px; }
  .search-panel-head { padding: 20px 20px 0; }
  .search-panel-title { font-size: 22px; }
  .search-input-wrap { padding: 16px 20px 0; }
  .search-input-icon { left: 36px; }
  .search-input { padding: 12px 40px 12px 40px; font-size: 16px; }
  .search-input-clear { right: 32px; }
  .search-hint { padding: 6px 20px 0; }
  .search-divider { margin: 14px 20px 0; }
  .search-section-head { padding: 14px 20px 8px; }
  .search-pills { padding: 0 20px 16px; }
  .search-section-label { padding: 0 20px 10px !important; }
  .search-results-list { padding: 0 8px 8px; }
  .search-panel-footer { padding: 12px 20px; }
}

/* ══════════════════════════════════════════════
   INTRO / PAGE LOADER ANIMÁCIA
   ══════════════════════════════════════════════ */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity .5s ease;
}
.intro-overlay.intro-hiding {
  opacity: 0;
  pointer-events: none;
}
.intro-overlay.intro-hidden {
  display: none;
}

/* ── Veľké logo v strede ── */
.intro-logo {
  width: 156px;
  height: 182px;
  background: var(--sage-dark);
  border-radius: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 18px 22px;
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  opacity: 0;
  transform: scale(.7);
  animation: introLogoPop .7s cubic-bezier(.34,1.5,.64,1) .2s forwards;
}
@keyframes introLogoPop {
  to { opacity: 1; transform: scale(1); }
}

.intro-ring {
  position: absolute;
  width: 114px; height: 114px;
  border-radius: 50%;
  background: rgba(250,247,242,0.09);
  top: 12px; left: 50%; transform: translateX(-50%);
  animation: introRingBreath 3.5s ease-in-out infinite;
}
@keyframes introRingBreath {
  0%,100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  50%      { transform: translateX(-50%) scale(1.06); opacity: .7; }
}

.intro-ms {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 700;
  color: #FAF7F2;
  letter-spacing: -1.5px;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-top: 6px;
  opacity: 0;
  animation: introFadeUp .6s .6s forwards;
}
.intro-divider {
  display: block;
  width: 96px;
  height: 1px;
  background: rgba(250,247,242,0.3);
  margin: 14px auto 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: introFadeUp .6s .75s forwards;
}
.intro-gelnicka {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,247,242,0.65);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: introFadeUp .6s .85s forwards;
}
@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Názov školy pod logom ── */
.intro-school-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--brown);
  opacity: 0;
  animation: introFadeUp .6s 1s forwards;
  letter-spacing: .3px;
}

/* ── Fáza 2: logo letí do rohu ── */
.intro-logo.intro-flying {
  transition: transform .75s cubic-bezier(.4,0,.2,1),
              border-radius .75s cubic-bezier(.4,0,.2,1);
  animation: none;
  opacity: 1;
}
.intro-school-name.intro-fade-out {
  transition: opacity .3s;
  opacity: 0;
}

/* Keď je intro hotové, nav logo naskočí bez vlastnej animácie */
.nav-logo-animated.intro-ready {
  animation: none;
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════
   HERO INFO BAR – počasie + meniny
   ══════════════════════════════════════════════ */
.hero-info-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  animation: floatIn .6s .8s both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hib-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hib-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.hib-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hib-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  white-space: nowrap;
}
.hib-lbl {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.hib-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-dva-percent {
  position: absolute;
  top: 16px;
  left: 16px;
  display: block;
  text-decoration: none;
  z-index: 9;
  animation: floatIn .6s .8s both;
  transition: transform .2s;
  filter: drop-shadow(0 4px 12px rgba(232,131,106,0.5));
}
.hero-dva-percent:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 8px 20px rgba(232,131,106,0.7));
}
.hero-dva-svg {
  width: 72px;
  height: 65px;
  animation: heartbeat 2.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  15%      { transform: scale(1.15); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.08); }
  60%      { transform: scale(1); }
}
@media (max-width: 768px) {
  .hero-info-bar { display: none; }
  .hero-dva-percent { display: none; }
}

/* ── WordPress vstavaná galéria ── */
.gallery { display: grid !important; gap: 12px; margin: 20px 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { margin: 0 !important; overflow: hidden; border-radius: 12px; aspect-ratio: 4/3; }
.gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .35s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-caption { display: none; }
.wp-block-gallery img,
.wp-block-image img { transition: transform .35s; }
.wp-block-gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 768px) {
  .gallery-columns-3, .gallery-columns-4, .gallery-columns-5 { grid-template-columns: repeat(2, 1fr); }
}
