/* ==========================================================================
   BIOFARM-PARK ZLATÝ HÝĽ
   Modern, jednoduchý, minimalistický template inšpirovaný onearth-conservation
   --------------------------------------------------------------------------
   Zachovaná farebnosť partnerského projektu Bio Resort Zlatý Hýľ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Farby (zhodné s partnerským projektom zh) */
  --d: #080f2f;         /* primárna tmavá - navy */
  --d-soft: #0e1742;    /* mäkšia tmavá pre cards */
  --d-deep: #050920;    /* hlbšia tmavá pre pozadia */
  --l: #fffefc;         /* svetlá - off white */
  --m: #dedede;         /* medium gray */
  --m-soft: #f3f3f1;    /* veľmi jemná svetlá */
  --g: #c3960f;         /* gold accent */
  --g-soft: #e0b833;    /* mäkšie zlato pre hover */
  --g-deep: #97740a;    /* hlbšie zlato */
  --w: #ffffff;
  --line: rgba(8, 15, 47, 0.12);
  --line-on-dark: rgba(255, 254, 252, 0.12);

  /* Fonty */
  --title: 'Silk', 'Playfair Display', serif;
  --text: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --ano: 'mrleopold-pro', 'Montserrat', sans-serif;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 80px);
  --section-y: clamp(80px, 12vh, 160px);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-power: cubic-bezier(0.7, 0, 0.3, 1);

  /* Speeds */
  --t-fast: 240ms;
  --t-med: 480ms;
  --t-slow: 900ms;
}


#frontendeditor {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 40px;
    width: 65px;
    background: transparent;
    display: block;
    z-index: 99999999999999;
    opacity: 0;
  }
  
  #frontendeditor:hover {
  opacity: 1
  }
  
  .switch {
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 34px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  
  #frontendeditor input[type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
  }
  
  #frontendeditor .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #frontendeditor .slider.round {
    border-radius: 34px;
  }
  
  #frontendeditor .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #frontendeditor .slider.round:before {
    border-radius: 50%;
  }
  
  #frontendeditor input:checked + .slider {
    background-color: #75c11d;
  }
  
  #frontendeditor input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  #modal-buttons {
    position: fixed;
    bottom: 0;
    right: 10px;
    text-align: center;
    display: none;
  }
  
  #modal-close, #modal-save {
    display: inline-block;
    background: #ff0045;
    color: white ;
    cursor: pointer;
    padding: 5px 20px;
    margin: 20px 15px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 10px;
    border-radius: 30px;
    transition: 400ms;
    outline: none;
  }
  
  #modal-save {
    background: #76c11e;
    margin-left: 0;
    margin-right: 10px;
  }
  

/* --------------------------------------------------------------------------
   2. FONTS - lokálne fonty z partnerského projektu zh
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Silk';
  src: url('/template/zh/font/Silk.otf') format('opentype'),
       url('/template/zh/font/silkserif.woff2') format('woff2'),
       url('/template/zh/font/silkserif.woff') format('woff');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis ho zoberie */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--d);
  background: var(--l);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.01em;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--g);
  color: var(--d);
}

/* --------------------------------------------------------------------------
   4. TYPOGRAFIA
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}

.h-display {
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.h-1 {
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.2;
  margin-bottom: 30px;
}

.h-2 {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.25;
}

.h-3 {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.2;
}

.h-4 {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.lead {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(8, 15, 47, 0.78);
  max-width: 60ch;
}

.lead--on-dark {
  color: rgba(255, 254, 252, 0.78);
}

p + p {
  margin-top: 1em;
}

/* --------------------------------------------------------------------------
   5. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: var(--maxw);
  padding-top: 80px;
  padding-bottom: 80px;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--dark {
  background: var(--d);
  color: var(--l);
}

.section--soft {
  background: var(--m-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.section-head__title {
  margin-top: 16px;
}

.divider-line {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.section--dark .divider-line {
  background: var(--line-on-dark);
}

/* --------------------------------------------------------------------------
   6. BUTTONS - magnetic ready
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--d);
  --btn-fg: var(--l);
  --btn-border: var(--d);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              transform 220ms var(--ease-out);
  isolation: isolate;
  white-space: nowrap;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g);
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease-power);
  z-index: -1;
  border-radius: inherit;
}

.btn:hover {
  color: var(--d);
  border-color: var(--g);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  transition: transform var(--t-med) var(--ease-power);
}

.btn .arrow::before,
.btn .arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.btn .arrow::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.btn .arrow::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: transparent;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--gold {
  --btn-bg: var(--g);
  --btn-fg: var(--d);
  --btn-border: var(--g);
}

.btn--gold::before {
  background: var(--d);
}

.btn--gold:hover {
  color: var(--l);
  border-color: var(--d);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--d);
  --btn-border: var(--d);
}

.btn--ghost.on-dark {
  --btn-fg: var(--l);
  --btn-border: rgba(255, 254, 252, 0.6);
}

.btn--ghost.on-dark::before {
  background: var(--l);
}

.btn--ghost.on-dark:hover {
  color: var(--d);
  border-color: var(--l);
}

/* Magnetic obal - bez pohybu (zachovaný pre HTML kompatibilitu) */
.magnetic {
  display: inline-block;
}

.magnetic > .magnetic-inner {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   7. HEADER + NAVIGATION (blur on scroll)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out),
              backdrop-filter var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header.is-scrolled {
  padding: 0;
  background: rgb(8 15 47 / 35%);
  -webkit-backdrop-filter: blur(7px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header.theme-dark.is-scrolled {
  background: rgba(8, 15, 47, 0.78);
  border-bottom-color: var(--line-on-dark);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--l);
  font-family: var(--title);
  font-size: 18px;
  letter-spacing: 0.04em;
  z-index: 2;
  transition: color var(--t-med) var(--ease-out);
}

.brand img,
.brand svg {
  height: 100px;
  width: auto;
  display: block;
  transition: 1000ms ease-out;
}

.site-header.is-scrolled .brand {
  color: var(--d);
}

.site-header.is-scrolled .brand img.brand-light {
  display: block;
  height: 90px;
  padding: 10px;
}

.brand img.brand-dark {
  display: none;
}

.site-header.is-scrolled .brand img.brand-dark {
  display: none;
  
}

.nav {
  display: none;
  align-items: center;
  gap: 36px;
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
}

.nav__link {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--l);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease-out);
}

.site-header.is-scrolled .nav__link {
  color: var(--w);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--g);
  transition: width var(--t-med) var(--ease-power);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--g);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu button */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--l);
  position: relative;
  z-index: 110;
  transition: color var(--t-fast) var(--ease-out);
}

.site-header.is-scrolled .menu-toggle {
  color: var(--d);
}

.menu-toggle__lines {
  position: relative;
  width: 22px;
  height: 14px;
}

.menu-toggle__lines span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--l);
  transition: transform var(--t-med) var(--ease-power),
              opacity var(--t-med) var(--ease-power),
              top var(--t-med) var(--ease-power);
}

.menu-toggle__lines span:nth-child(1) { top: 0; }
.menu-toggle__lines span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__lines span:nth-child(3) { top: 100%; transform: translateY(-100%); }

.menu-toggle.is-open .menu-toggle__lines span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle__lines span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (min-width: 1000px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile flyout */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--d);
  color: var(--l);
  z-index: 105;
  display: flex;
  flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 700ms var(--ease-power);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.mobile-nav__item a {
  display: block;
  font-family: var(--title);
  font-size: clamp(36px, 9vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-on-dark);
  transition: color var(--t-fast) var(--ease-out),
              padding-left var(--t-med) var(--ease-power);
}

.mobile-nav__item a:hover {
  color: var(--g);
  padding-left: 16px;
}

.mobile-nav__contact {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.mobile-nav__contact a {
  color: var(--g);
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--l);
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -2;
  will-change: transform;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 15, 47, 0.55) 0%,
      rgba(8, 15, 47, 0.35) 35%,
      rgba(8, 15, 47, 0.85) 100%);
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
}

.hero__inner {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  color: var(--g);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--title);
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--l);
  max-width: 18ch;
  margin-bottom: 32px;
}



.hero__title .gold, .hero__title b, .hero__title strong {
  color: var(--g);
  font-style: italic;
  font-weight: 400 !important;
}

.hero__sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  color: rgba(255, 254, 252, 0.85);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.75);
}

/* Hero slider (Swiper) */
.hero-swiper {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -2;
  width: 100%;
  height: 110%;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-swiper .swiper-slide-active .swiper-slide__bg {
  transform: scale(1);
}

.hero-swiper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 15, 47, 0.55) 0%,
      rgba(8, 15, 47, 0.35) 35%,
      rgba(8, 15, 47, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Slider pagination – tenké zvislé linky vpravo dole */
.hero-pagination {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 2px;
  background: rgba(255, 254, 252, 0.3);
  border-radius: 0;
  opacity: 1;
  cursor: pointer;
  transition: background 320ms var(--ease-out),
              width 320ms var(--ease-power);
  margin: 0 !important;
  /* Klikateľný hit-area (väčší než vizuálne, aby sa ľahšie trafil) */
  position: relative;
  pointer-events: auto;
}

.hero-pagination .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  inset: -14px -3px;
}

.hero-pagination .swiper-pagination-bullet:hover {
  background: rgba(255, 254, 252, 0.6);
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--g);
  width: 56px;
}

/* Slider counter (1/3) */
.hero-counter {
  position: absolute;
  bottom: 36px;
  left: calc(var(--gutter) + 200px);
  z-index: 5;
  display: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 254, 252, 0.65);
  font-family: var(--text);
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .hero-counter { display: block; }
}

.hero-counter__current {
  color: var(--g);
}

@media (min-width: 1000px) {
  .hero__scroll {
    display: inline-flex;
  }
 
}

@media (max-width: 700px) {
  .brand img, .brand svg {
    height: 110px;
  }
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 254, 252, 0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--g);
  animation: scroll-indicator 2.4s var(--ease-in-out) infinite;
}

@keyframes scroll-indicator {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}

/* --------------------------------------------------------------------------
   9. STATS / MARQUEE
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--d);
  color: var(--l);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-on-dark);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 800px) {
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: left;
  border-left: 1px solid var(--line-on-dark);
  padding-left: 24px;
}

.stat__num {
  font-family: var(--title);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--g);
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.7);
  font-weight: 500;
}

.marquee {
  background: whitesmoke;
  color: var(--g);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 22px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--title);
  font-size: clamp(22px, 2.8vw, 44px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}

.marquee__track span::after {
  content: "✦";
  color: var(--g-soft);
  font-size: 0.7em;
  opacity: 0.55;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. ABOUT / MISSION SPLIT SECTION
   -------------------------------------------------------------------------- */
.about {
  background: var(--l);
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .about__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
  }
}

.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
}

.about__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  will-change: transform;
}

.about__media-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--l);
  color: var(--d);
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about__media-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g);
  display: inline-block;
}

.about__title {
  margin: 16px 0 28px;
  color: var(--d);
}

.about__title em {
  font-style: italic;
  color: var(--g);
}

.about__text {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(8, 15, 47, 0.78);
  max-width: 60ch;
}

.about__text p + p {
  margin-top: 1em;
}

.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--m-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--d);
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.chip::before {
  content: "•";
  color: var(--g);
}

.chip:hover {
  background: var(--d);
  color: var(--l);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. INITIATIVES / ATRAKCIE GRID
   -------------------------------------------------------------------------- */
.initiatives {
  background: var(--d);
  color: var(--l);
}

.initiatives__title {
  color: var(--l);
}

.initiatives__title em {
  color: var(--g);
  font-style: italic;
}

.initiatives__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 700px) {
  .initiatives__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .initiatives__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.initiative {
  position: relative;
  background: var(--d);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
  transition: background var(--t-med) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}

.initiative__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--g);
  transition: transform var(--t-med) var(--ease-power),
              background var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out);
}

.initiative__title {
  font-family: var(--title);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  color: var(--l);
}

.initiative__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 254, 252, 0.7);
  margin-top: auto;
}

.initiative::before {
  content: "";
  position: absolute;
  inset: auto auto -50% -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(195, 150, 15, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
  z-index: -1;
}

.initiative:hover::before {
  opacity: 1;
}

.initiative:hover .initiative__icon {
  transform: rotate(-12deg) scale(1.05);
  background: var(--g);
  color: var(--d);
  border-color: var(--g);
}

/* --------------------------------------------------------------------------
   12. ZVIERATÁ SHOWCASE - horizontálny pinned scroll (desktop)
   -------------------------------------------------------------------------- */
.animals {
  background: var(--m-soft);
  position: relative;
  overflow: hidden;
}

.animals__head {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .animals__head {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.animals__title em {
  color: var(--g);
  font-style: italic;
}

/* DEFAULT (mobile/tablet) — vertikálny grid */
.animals__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .animals__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* DESKTOP (>= 1024px) — single-row horizontal track pre pinned scroll */
@media (min-width: 1024px) {
  .animals {
    /* odsadenie aby pinned section sediel pekne pod headerom */
    padding: clamp(80px, 12vh, 140px) 0;
  }

  .animals .wrap {
    /* obal je nutne flex, lebo grid musí presahovať wrap (zarovnanie zľava na okraj wrapu, presah doprava) */
    overflow: visible;
  }

  .animals__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    width: max-content;
    grid-template-columns: none;
    /* padding-right netreba — rightGutter rátame v JS cez getScrollDistance() */
    will-change: transform;
  }

  /* Pin progress indicator (jemná línia v spodku) */
  .animals__progress {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 32px;
    height: 1px;
    background: rgba(8, 15, 47, 0.1);
    z-index: 2;
    pointer-events: none;
  }

  .animals__progress-fill {
    height: 100%;
    background: var(--g);
    width: 0%;
    transition: none;
    transform-origin: left center;
  }

  .animals__hint {
    position: absolute;
    right: var(--gutter);
    bottom: 56px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(8, 15, 47, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .animals__hint::after {
    content: "→";
    color: var(--g);
    font-size: 14px;
    animation: hint-arrow 1.6s var(--ease-in-out) infinite;
  }

  @keyframes hint-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
  }
}

@media (max-width: 1023px) {
  .animals__progress,
  .animals__hint { display: none; }
}

.animal-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--d);
  isolation: isolate;
  cursor: default;
  transform: translateZ(0);
  display: block;
  color: var(--l);
  text-decoration: none;
}

a.animal-card { cursor: pointer; }

/* Desktop horizontal track — fixná šírka kartičiek */
@media (min-width: 1024px) {
  .animal-card {
    flex-shrink: 0;
    width: clamp(280px, 24vw, 360px);
    aspect-ratio: 3 / 4;
  }
}

/* COMPACT MODE — menšie laptopy / nízke obrazovky.
   Horizontal-pin section musí celý headline + lead + cards zmestiť do 1 viewportu.
   Pri max-height < 900px alebo pri menších šírkach skrátime padding,
   zmenšíme nadpis a kartičky aby sa všetko zmestilo. */
@media (min-width: 1024px) and (max-width: 1440px) {
  .animals {
    padding: clamp(48px, 7vh, 80px) 0;
  }

  .animals__head {
    margin-bottom: 28px;
    gap: 16px;
  }

  .animals__title.h-1,
  section.animals .animals__title.h-1 {
    font-size: clamp(34px, 3.6vw, 56px);
    line-height: 1.02;
  }

  .animal-card {
    width: clamp(240px, 20vw, 300px);
  }

  .animals__progress { bottom: 20px; }
  .animals__hint { bottom: 36px; }
}

/* Pri nízkych obrazovkách (väčšina laptopov 13"–15" v 16:9 alebo 16:10) */
@media (min-width: 1024px) and (max-height: 860px) {
  .animals {
    padding: 40px 0 !important;
  }

  .animals__head {
    margin-bottom: 24px !important;
    gap: 12px;
  }

  .animals__title.h-1,
  section.animals .animals__title.h-1 {
    font-size: clamp(30px, 3vw, 44px) !important;
    line-height: 1.05;
  }

  .animals .lead,
  .animals__head .lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .animal-card {
    width: clamp(220px, 18vw, 280px) !important;
  }

  .animals__progress { bottom: 12px; }
  .animals__hint { bottom: 28px; }
}

/* Veľmi nízke obrazovky (napr. 13" 1280×720) */
@media (min-width: 1024px) and (max-height: 760px) {
  .animals {
    padding: 28px 0 !important;
  }

  .animals__head {
    margin-bottom: 18px !important;
  }

  .animals__title.h-1,
  section.animals .animals__title.h-1 {
    font-size: 28px !important;
    line-height: 1.05;
  }

  .animal-card {
    width: clamp(200px, 17vw, 260px) !important;
  }
}

.animal-card__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-power),
              filter var(--t-slow) var(--ease-power);
  will-change: transform;
}

.animal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 15, 47, 0) 40%,
    rgba(8, 15, 47, 0.85) 100%);
  z-index: 1;
  transition: background var(--t-med) var(--ease-out);
}

.animal-card__label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
  color: var(--l);
}

.animal-card__name {
  font-family: var(--title);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--l);
}

.animal-card__meta {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g);
  font-weight: 600;
}

.animal-card:hover .animal-card__img {
  transform: scale(1.06);
}

.animal-card:hover::after {
  background: linear-gradient(180deg,
    rgba(8, 15, 47, 0.1) 0%,
    rgba(8, 15, 47, 0.9) 100%);
}

/* Featured project (large variant) - ako "highlighted nature project" */
.featured-list {
  display: grid;
  gap: 0;
  margin-top: clamp(56px, 8vh, 96px);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  align-items: center;
  transition: padding var(--t-med) var(--ease-out);
  position: relative;
  cursor: pointer;
}

@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: 0.5fr 1.5fr 1fr 0.6fr;
    gap: 32px;
  }
}

/* Statická (popisná) variant — bez CTA stĺpca, bez hover/cursor.
   Použitie: .featured-list--static (grid 3 stĺpce loc/title/sub). */
.featured-list--static .feature-row {
  cursor: default;
}

.featured-list--static .feature-row:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .featured-list--static .feature-row {
    grid-template-columns: 0.5fr 1.5fr 2fr;
  }
}

.featured-list--static .feature-row:hover .feature-row__title {
  transform: none;
}

.featured-list--on-dark.featured-list--static .feature-row:last-child {
  border-bottom-color: var(--line-on-dark);
}

/* Vypneme zlatý hover farby titulu na statickej variante (popisné, nie klikateľné) */
.featured-list--static .feature-row:hover .feature-row__title,
.featured-list--on-dark.featured-list--static .feature-row:hover .feature-row__title {
  color: var(--d);
}

.featured-list--on-dark.featured-list--static .feature-row:hover .feature-row__title {
  color: var(--l);
}

.feature-row__loc {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--g);
}

.feature-row__title {
  font-family: var(--title);
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--d);
  transition: transform var(--t-med) var(--ease-power);
}

.feature-row__sub {
  font-size: 13px;
  color: rgba(8, 15, 47, 0.65);
  line-height: 1.5;
}

.feature-row__cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--d);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 12px 0;
  position: relative;
}

.feature-row__cta::after {
  content: "→";
  transition: transform var(--t-med) var(--ease-power);
  display: inline-block;
}

.feature-row:hover .feature-row__cta::after {
  transform: translateX(6px);
  color: var(--g);
}

.feature-row:hover .feature-row__title {
  transform: translateX(8px);
  color: var(--g);
}

/* On-dark variant (Initiatives section) */
.featured-list--on-dark .feature-row {
  border-top-color: var(--line-on-dark);
}

.featured-list--on-dark .feature-row:last-child {
  border-bottom: 1px solid var(--line-on-dark);
}

.featured-list--on-dark .feature-row__title {
  color: var(--l);
}

.featured-list--on-dark .feature-row__sub {
  color: rgba(255, 254, 252, 0.65);
}

.featured-list--on-dark .feature-row__cta {
  color: var(--l);
}

.featured-list--on-dark .feature-row:hover .feature-row__title {
  color: var(--g);
}

/* --------------------------------------------------------------------------
   13. CENNÍK
   -------------------------------------------------------------------------- */
.pricing {
  background: var(--l);
  position: relative;
}

.pricing__inner {
  margin-top: 40px;
}

.pricing-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--w);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 0.6fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background var(--t-fast) var(--ease-out);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:hover:not(.pricing-row--head) {
  background: var(--m-soft);
}

.pricing-row > div {
  padding: 18px 16px;
}

.pricing-row > div + div {
  border-left: 1px solid var(--line);
  text-align: center;
}

.pricing-row--head {
  background: var(--d);
  color: var(--l);
}

.pricing-row--head > div {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 18px 16px;
}

.pricing-row--head > div + div {
  border-left-color: var(--line-on-dark);
  color: var(--g);
}

.pricing-row__service {
  font-weight: 500;
  color: var(--d);
  line-height: 1.45;
}

.pricing-row__service strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.pricing-row__service em {
  font-style: normal;
  font-size: 12px;
  color: rgba(8, 15, 47, 0.55);
}

.pricing-row__price {
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--d);
    font-weight: 600;
}

.pricing-row__price.free {
  color: var(--g);
  font-size: 13px;
  font-family: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pricing-row > div + div {
    border-left: none;
    border-top: 1px solid var(--line);
    text-align: left;
    display: flex;
    justify-content: space-between;
  }

  .pricing-row > div + div::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(8, 15, 47, 0.6);
    font-weight: 600;
    margin-right: 16px;
  }

  .pricing-row--head {
    display: none;
  }
}

.pricing-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(8, 15, 47, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pricing-note::before {
  content: "ⓘ";
  color: var(--g);
  font-size: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   14. OTVÁRACIE HODINY
   -------------------------------------------------------------------------- */
.hours {
  background: var(--d);
  color: var(--l);
}

.hours__title {
  color: var(--l);
}

.hours__title em {
  color: var(--g);
  font-style: italic;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .hours-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.hours-card {
  background: var(--d-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-power),
              border-color var(--t-med) var(--ease-out);
}

.hours-card:hover {
  transform: translateY(-4px);
  border-color: var(--g);
}

.hours-card__season {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g);
  font-weight: 700;
}

.hours-card__period {
  font-family: var(--title);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1;
  margin: 14px 0 24px;
}

.hours-card__list {
  display: grid;
  gap: 10px;
}

.hours-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 13px;
}

.hours-card__row:last-child {
  border-bottom: none;
}

.hours-card__day {
  color: rgba(255, 254, 252, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 12px;
}

.hours-card__time {
  color: var(--l);
  font-weight: 600;
  text-align: right;
}

.hours-card__time--closed {
  color: rgba(255, 254, 252, 0.4);
  font-weight: 400;
}

.hours-card__time--group {
  color: var(--g);
  font-size: 11px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   15. GALÉRIA - hustý "dense" grid + Magnific Popup lightbox
   -------------------------------------------------------------------------- */
.gallery {
  background: var(--l);
  padding-bottom: var(--section-y);
}

.gallery__head {
  margin-bottom: 48px;
}

.gallery__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 6px;
  padding: 0 var(--gutter);
}

@media (min-width: 700px) {
  .gallery__strip {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 130px;
    gap: 8px;
  }
}

@media (min-width: 1100px) {
  .gallery__strip {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }
}

.gallery__item {
  overflow: hidden;
  border-radius: 4px;
  background: var(--m);
  position: relative;
  display: block;
  cursor: zoom-in;
  grid-row: span 2;
  grid-column: span 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-power),
              filter 400ms var(--ease-out);
  will-change: transform;
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 47, 0);
  transition: background var(--t-fast) var(--ease-out);
  pointer-events: none;
}

.gallery__item:hover::after {
  background: rgba(8, 15, 47, 0.18);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

/* dense layout variants */
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 3; }
.gallery__item--big  { grid-column: span 2; grid-row: span 3; }
.gallery__item--sq   { grid-row: span 2; grid-column: span 2; }
.gallery__item--small { grid-row: span 1; }

@media (max-width: 699px) {
  .gallery__item--big  { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
  .hero__eyebrow {display: none}
}

/* Magnific popup overrides – tmavý theme so zlatými šípkami */
.mfp-bg.mfp-zlatyhyl {
  background: var(--d-deep);
  opacity: 0;
  transition: opacity 360ms var(--ease-power);
}
.mfp-bg.mfp-zlatyhyl.mfp-ready { opacity: 0.94; }
.mfp-bg.mfp-zlatyhyl.mfp-removing { opacity: 0; }

.mfp-zlatyhyl .mfp-container { padding: clamp(12px, 4vw, 56px); }

.mfp-zlatyhyl .mfp-figure {
  line-height: 0;
}

/* Image popup — obmedzenie max veľkosti aby bolo vidno aj title/counter pod obrázkom.
   Padding 40px (top + bottom) je dôležitý — Magnific Popup z neho počíta max-height JS-om.
   Nesmie byť 0, inak obrázok vyplní celú výšku okna. */
.mfp-zlatyhyl img.mfp-img {
  padding: 40px 0 !important;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 40px) !important;
  max-width: min(1200px, calc(100vw - 160px)) !important;
  width: auto;
  margin: 0 auto;
  display: block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.mfp-zlatyhyl .mfp-image-holder .mfp-content {
  max-width: 100%;
}

@media (max-width: 700px) {
  .mfp-zlatyhyl img.mfp-img {
    padding: 30px 0 !important;
    max-width: calc(100vw - 32px) !important;
  }
}

.mfp-zlatyhyl .mfp-bottom-bar {
  margin-top: 16px;
  color: rgba(255, 254, 252, 0.7);
}

.mfp-zlatyhyl .mfp-title,
.mfp-zlatyhyl .mfp-counter {
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.7);
  font-weight: 600;
}

.mfp-zlatyhyl .mfp-counter {
  color: var(--g);
}

/* arrows */
.mfp-zlatyhyl .mfp-arrow {
  width: 64px;
  height: 64px;
  margin: -32px 0 0;
  opacity: 1;
  transition: transform 320ms var(--ease-power), background 280ms var(--ease-out);
  background: rgba(255, 254, 252, 0.08);
  border: 1px solid rgba(255, 254, 252, 0.16);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mfp-zlatyhyl .mfp-arrow:hover {
  background: var(--g);
  border-color: var(--g);
}

.mfp-zlatyhyl .mfp-arrow::before,
.mfp-zlatyhyl .mfp-arrow::after,
.mfp-zlatyhyl .mfp-arrow .mfp-a,
.mfp-zlatyhyl .mfp-arrow .mfp-b {
  display: none;
}

.mfp-zlatyhyl .mfp-arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mfp-zlatyhyl .mfp-arrow::before {
  display: block;
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--l);
  transition: border-color 280ms var(--ease-out);
}

.mfp-zlatyhyl .mfp-arrow:hover::before {
  border-color: var(--d);
}

.mfp-zlatyhyl .mfp-arrow-left::before {
  transform: translate(-30%, -50%) rotate(-45deg);
  border-left: 1.5px solid var(--l);
  border-top: 1.5px solid var(--l);
}

.mfp-zlatyhyl .mfp-arrow-left:hover::before {
  border-left-color: var(--d);
  border-top-color: var(--d);
}

.mfp-zlatyhyl .mfp-arrow-right::before {
  transform: translate(-70%, -50%) rotate(45deg);
  border-right: 1.5px solid var(--l);
  border-top: 1.5px solid var(--l);
}

.mfp-zlatyhyl .mfp-arrow-right:hover::before {
  border-right-color: var(--d);
  border-top-color: var(--d);
}

.mfp-zlatyhyl .mfp-arrow-left { left: 24px; }
.mfp-zlatyhyl .mfp-arrow-right { right: 24px; }

/* SKRYŤ vnútorný "default" close button (z .mfp-figure aj .mfp-iframe-scaler).
   Používame iba externý close button na úrovni .mfp-wrap, ktorý štýlujeme nižšie. */
.mfp-zlatyhyl .mfp-figure > .mfp-close,
.mfp-zlatyhyl .mfp-iframe-scaler > .mfp-close,
.mfp-zlatyhyl .mfp-content > .mfp-close,
.mfp-zlatyhyl .mfp-image-holder .mfp-close {
  display: none !important;
}

/* Hlavný (externý) close button na úrovni .mfp-wrap (closeBtnInside:false) */
.mfp-zlatyhyl > .mfp-close,
.mfp-zlatyhyl .mfp-wrap > .mfp-close,
button.mfp-close.mfp-close-btn,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close {
  width: 56px;
  height: 56px;
  font-size: 0;
  opacity: 1;
  background: rgba(255, 254, 252, 0.08);
  border: 1px solid rgba(255, 254, 252, 0.16);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  top: 16px;
  right: 16px;
  transition: background 280ms var(--ease-out);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  cursor: pointer;
  z-index: 1046;
  text-indent: -9999px;
  overflow: hidden;
  padding: 0;
}

.mfp-zlatyhyl > .mfp-close:hover,
.mfp-zlatyhyl .mfp-wrap > .mfp-close:hover,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close:hover {
  background: var(--g);
}

.mfp-zlatyhyl > .mfp-close::before,
.mfp-zlatyhyl > .mfp-close::after,
.mfp-zlatyhyl .mfp-wrap > .mfp-close::before,
.mfp-zlatyhyl .mfp-wrap > .mfp-close::after,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close::before,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--l);
  transition: background 280ms var(--ease-out);
  text-indent: 0;
}

.mfp-zlatyhyl > .mfp-close::before,
.mfp-zlatyhyl .mfp-wrap > .mfp-close::before,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close::before { transform: translate(-50%, -50%) rotate(45deg); }

.mfp-zlatyhyl > .mfp-close::after,
.mfp-zlatyhyl .mfp-wrap > .mfp-close::after,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.mfp-zlatyhyl > .mfp-close:hover::before,
.mfp-zlatyhyl > .mfp-close:hover::after,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close:hover::before,
.mfp-wrap.mfp-zlatyhyl > button.mfp-close:hover::after {
  background: var(--d);
}

/* iframe popup container */
.mfp-zlatyhyl.mfp-iframe-holder .mfp-content {
  max-width: 1100px;
}

.mfp-zlatyhyl .mfp-iframe-scaler iframe {
  background: var(--l);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
}

/* zoom-in animation */
.mfp-zlatyhyl.mfp-img-mobile .mfp-image-holder .mfp-close {
  top: 8px;
  right: 8px;
}

@media (max-width: 700px) {
  .mfp-zlatyhyl .mfp-arrow {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }
  .mfp-zlatyhyl .mfp-arrow-left { left: 8px; }
  .mfp-zlatyhyl .mfp-arrow-right { right: 8px; }
  .mfp-zlatyhyl .mfp-close { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   15c. LIGHTGALLERY THEME — zladenie so Zlatý Hýľ farebnosťou
   -------------------------------------------------------------------------- */

/* Tmavé glasy pozadie + smooth fade */
.lg-backdrop {
  background: rgba(8, 15, 47, 0.94);
}

.lg-outer {
  font-family: var(--text);
}

/* Toolbar (top right ikony: fullscreen, close, atď) */
.lg-toolbar {
  background: transparent;
}

.lg-toolbar .lg-icon {
  color: rgba(255, 254, 252, 0.85);
  width: 56px;
  height: 56px;
  font-size: 22px;
  line-height: 56px;
  border-radius: 50%;
  transition: background 280ms var(--ease-out),
              color 280ms var(--ease-out),
              transform 320ms var(--ease-power);
  margin: 8px 4px;
}

.lg-toolbar .lg-icon:hover {
  color: var(--d);
  background: var(--g);
}

/* Close button — round glass effekt */
.lg-toolbar .lg-close::after {
  content: "\e070";
}

.lg-toolbar .lg-close {
  background: rgba(255, 254, 252, 0.08);
  border: 1px solid rgba(255, 254, 252, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-right: 16px;
}

.lg-toolbar .lg-close:hover {
  background: var(--g);
  border-color: var(--g);
  transform: rotate(90deg);
}

/* Šípky - round glass buttons */
.lg-actions .lg-prev,
.lg-actions .lg-next {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  background: rgba(255, 254, 252, 0.08);
  border: 1px solid rgba(255, 254, 252, 0.16);
  border-radius: 50%;
  color: var(--l);
  font-size: 22px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 280ms var(--ease-out),
              color 280ms var(--ease-out),
              transform 320ms var(--ease-power);
}

.lg-actions .lg-prev:hover,
.lg-actions .lg-next:hover {
  background: var(--g);
  border-color: var(--g);
  color: var(--d);
}

.lg-actions .lg-prev { left: 24px; }
.lg-actions .lg-next { right: 24px; }

.lg-actions .lg-prev::before,
.lg-actions .lg-next::after {
  position: relative;
  top: 0;
}

/* Counter v rohu */
#lg-counter {
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.7);
  font-weight: 600;
  padding-left: 24px;
  padding-top: 22px;
  vertical-align: middle;
  display: inline-block;
}

#lg-counter .lg-counter-current {
  color: var(--g);
  font-weight: 700;
}

#lg-counter .lg-counter-all {
  color: rgba(255, 254, 252, 0.55);
}

/* Sub-html (titulok pod obrázkom) */
.lg-sub-html {
  background: linear-gradient(180deg, rgba(8, 15, 47, 0) 0%, rgba(8, 15, 47, 0.85) 100%);
  color: var(--l);
  padding: 40px 24px 24px;
  text-align: center;
}

.lg-sub-html h4 {
  font-family: var(--title);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--l);
  margin: 0;
  opacity: 0
}

/* Image radius + shadow */
.lg-outer .lg-image {
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 100px) !important;
  max-width: calc(100vw - 160px) !important;
}

/* Loader spinner v zlatej farbe */
.lg-outer .lg-progress-bar .lg-progress {
  background-color: var(--g);
}

#lg-loader-1::before,
#lg-loader-1 .lg-icon::before {
  border-top-color: var(--g);
}

/* Dropdown / share menu — len skrývame nepotrebné defaultne ikony */
.lg-toolbar .lg-download,
.lg-toolbar .lg-share,
.lg-toolbar .lg-autoplay-button {
  display: none;
}

@media (max-width: 700px) {
  .lg-actions .lg-prev,
  .lg-actions .lg-next {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }
  .lg-actions .lg-prev { left: 8px; }
  .lg-actions .lg-next { right: 8px; }

  .lg-toolbar .lg-icon {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
  }

  .lg-outer .lg-image {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 80px) !important;
  }
}

/* --------------------------------------------------------------------------
   16. CONTACT FORM
   -------------------------------------------------------------------------- */
.contact {
  background: var(--m-soft);
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }
}

.contact__intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.contact__title em {
  color: var(--g);
  font-style: italic;
}

.contact__info {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.contact__info-row {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact__info-row span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.55);
  font-weight: 600;
}

.contact__info-row a,
.contact__info-row p {
  font-size: clamp(20px, 1.6vw, 18px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--d);
  transition: color var(--t-fast) var(--ease-out);
}

.contact__info-row a:hover {
  color: var(--g);
}

.form {
  background: var(--w);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 700px) {
  .form__row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  position: relative;
}

.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.6);
  font-weight: 600;
  margin-bottom: 8px;
}

.field__label .req {
  color: var(--g);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--d);
  font-family: var(--text);
  transition: border-color var(--t-fast) var(--ease-out);
  outline: none;
  border-radius: 0;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(8, 15, 47, 0.35);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--g);
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(8, 15, 47, 0.7);
  line-height: 1.5;
  cursor: pointer;
}

.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--g);
  flex-shrink: 0;
}

.field--check a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__submit {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   17. PARTNERS / TERRA INCOGNITA
   -------------------------------------------------------------------------- */
.partners {
  padding: 80px 0;
  background: var(--l);
  border-top: 1px solid var(--line);
}

.partners__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .partners__inner {
    grid-template-columns: 0.6fr 1fr;
    gap: 64px;
  }
}

.partners__head {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.55);
  font-weight: 700;
  margin-bottom: 16px;
}

.partners__quote {
  font-family: var(--title);
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.3;
  color: var(--d);
}

.partners__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: center;
}

@media (min-width: 700px) {
  .partners__logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--w);
  transition: border-color 280ms var(--ease-out),
              transform 320ms var(--ease-power),
              box-shadow 280ms var(--ease-out);
}

.partners__logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: saturate(1) contrast(1);
  transition: filter 280ms var(--ease-out),
              transform 320ms var(--ease-power);
}

.partners__logo:hover {
  border-color: var(--g);
  box-shadow: 0 12px 30px rgba(8, 15, 47, 0.08);
}

.partners__logo--text {
  font-family: var(--title);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.01em;
  color: var(--d);
}

.partners__logo--text:hover {
  color: var(--g);
}

/* Terra Incognita logo má veľmi nízky aspect ratio – upraví na rozumnú výšku */
.partners__logo img[src*="terraincognita"] {
  max-height: 64px;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--d-deep);
  color: var(--l);
  padding: clamp(60px, 9vh, 120px) 0 32px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-on-dark);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-on-dark);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
  }
}

.footer__brand {
  max-width: 380px;
}

.footer__brand img {
  height: 130px;
  margin-bottom: 24px;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255, 254, 252, 0.65);
  line-height: 1.6;
}

/* Social siete v päte (Theme setup → Facebook / Instagram URL) */
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-left: 75px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 254, 252, 0.18);
  color: rgba(255, 254, 252, 0.85);
  transition: color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__social-link:hover {
  color: var(--d);
  background: var(--g);
  border-color: var(--g);
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 2px;
}

.footer__heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 254, 252, 0.2);
  margin-bottom: 20px;
}

.footer__list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer__list a {
  color: rgba(255, 254, 252, 0.85);
  transition: color var(--t-fast) var(--ease-out),
              padding-left var(--t-fast) var(--ease-out);
  display: inline-block;
}

.footer__list a:hover {
  color: var(--g);
  padding-left: 6px;
}

.footer__bottom {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 24px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 254, 252, 0.55);
  letter-spacing: 0.04em;
}

@media (min-width: 700px) {
  .footer__bottom {
    grid-template-columns: 1fr auto auto;
  }
}

.footer__copy {
  font-size: 12px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__legal a {
  color: inherit;
  transition: color var(--t-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--g);
}

/* Credit — "Vytvorené v Ellipse Cloud" odkaz vpravo dole */
.footer__credit {
  display: inline-flex;
  align-items: center;
}

.footer__credit a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  color: rgba(255, 254, 252, 0.7);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-power);
}

.footer__credit a:hover {
  border-color: var(--g);
  color: var(--l);
  background: rgba(195, 150, 15, 0.1);
}

.footer__credit-label {
  opacity: 0.7;
}

.footer__credit-brand {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--g);
  transition: color var(--t-fast) var(--ease-out);
}

.footer__credit a:hover .footer__credit-brand {
  color: var(--g-soft);
}

/* --------------------------------------------------------------------------
   19. ANIMATION UTILITIES
   -------------------------------------------------------------------------- */

/* Text reveal - splits letters */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line__inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

[data-reveal="line"] .reveal-line__inner {
  transition: transform 1.1s var(--ease-power);
}

[data-reveal="line"].is-visible .reveal-line__inner {
  transform: translateY(0);
}

[data-reveal="line"] .reveal-line:nth-child(2) .reveal-line__inner { transition-delay: 80ms; }
[data-reveal="line"] .reveal-line:nth-child(3) .reveal-line__inner { transition-delay: 160ms; }
[data-reveal="line"] .reveal-line:nth-child(4) .reveal-line__inner { transition-delay: 240ms; }

/* Simple fade up */
[data-reveal="up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-power),
              transform 700ms var(--ease-power);
  will-change: transform, opacity;
}

[data-reveal="up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade"] {
  opacity: 0;
  transition: opacity 800ms var(--ease-power);
  will-change: opacity;
}

[data-reveal="fade"].is-visible {
  opacity: 1;
}

/* Stagger - children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-power),
              transform 600ms var(--ease-power);
  will-change: transform, opacity;
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 480ms; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 560ms; }
[data-stagger].is-visible > *:nth-child(9) { transition-delay: 640ms; }
[data-stagger].is-visible > *:nth-child(10) { transition-delay: 720ms; }

/* Counter */
[data-count] {
  display: inline-block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-line__inner {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   19a. WELCOME POPUP + PERSONALIZED USER-NAME
   -------------------------------------------------------------------------- */

/* Personalizovaný "tag" — meno návštevníka v zlatej farbe a kurzívnom skriptovom fonte */
.user-name {
  color: var(--g);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  padding: 0 2px;
}

.user-name::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g), transparent);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left center;
  animation: userNameUnderline 900ms cubic-bezier(0.7, 0, 0.3, 1) 200ms forwards;
}

.user-name.on-dark { color: var(--g-soft); }

/* Tlmenie originálu na svetlom backgrounde s veľkými titulkami — nepretláča typografiu */
.h-1 .user-name,
.h-2 .user-name,
.about__title .user-name,
.animals__title .user-name {
  font-size: 0.88em;
  vertical-align: 0.04em;
}

@keyframes userNameUnderline {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .user-name::after { animation: none; transform: scaleX(1); }
}

/* ----- Welcome popup ----- */
.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-popup.is-open {
  display: flex;
}

.welcome-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 47, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  transition: opacity 480ms var(--ease-power);
}

.welcome-popup.is-open .welcome-popup__backdrop {
  opacity: 1;
}

.welcome-popup__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--l);
  border-radius: 14px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 720ms var(--ease-power),
              opacity 540ms var(--ease-power);
  overflow: hidden;
  isolation: isolate;
}

.welcome-popup.is-open .welcome-popup__card {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 220ms;
}

/* Dekoratívny zlatý kruh v rohu */
.welcome-popup__card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 150, 15, 0.14), transparent 70%);
  z-index: -1;
}

.welcome-popup__card::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 15, 47, 0.08), transparent 70%);
  z-index: -1;
}

.welcome-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 280ms var(--ease-out),
              border-color 280ms var(--ease-out),
              transform 280ms var(--ease-power);
  z-index: 2;
}

.welcome-popup__close:hover {
  background: var(--d);
  border-color: var(--d);
  transform: rotate(90deg);
}

.welcome-popup__close::before,
.welcome-popup__close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--d);
  transition: background 280ms var(--ease-out);
}

.welcome-popup__close::before { transform: rotate(45deg); }
.welcome-popup__close::after  { transform: rotate(-45deg); }

.welcome-popup__close:hover::before,
.welcome-popup__close:hover::after { background: var(--l); }

.welcome-popup__eyebrow {
  margin-bottom: 24px;
}

.welcome-popup__title {
  font-family: var(--title);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--d);
  margin-bottom: 16px;
}

.welcome-popup__title em {
  color: var(--g);
  font-style: italic;
}

.welcome-popup__text {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  color: rgba(8, 15, 47, 0.72);
  margin-bottom: 28px;
  max-width: 44ch;
}

.welcome-popup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-popup__field {
  position: relative;
}

.welcome-popup__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.6);
  margin-bottom: 10px;
}

.welcome-popup__input {
  width: 100%;
  padding: 16px 0 14px;
  font-family: var(--text);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  color: var(--d);
  transition: border-color 280ms var(--ease-out);
  outline: none;
  border-radius: 0;
  appearance: none;
}

.welcome-popup__input::placeholder {
  color: rgba(8, 15, 47, 0.32);
  font-weight: 400;
}

.welcome-popup__input:focus {
  border-bottom-color: var(--g);
}

.welcome-popup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.welcome-popup__skip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
  transition: color 240ms var(--ease-out);
}

.welcome-popup__skip::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 320ms var(--ease-power);
}

.welcome-popup__skip:hover {
  color: var(--d);
}

.welcome-popup__skip:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Body lock + svelte chip with current name (ukáže meno užívateľa po uložení) */
.user-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.user-greeting--hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .welcome-popup__card { border-radius: 12px; }
  .welcome-popup__close { top: 10px; right: 10px; }
  
}

/* --------------------------------------------------------------------------
   19b. SCROLL PROGRESS CIRCLE - desktop only
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  z-index: 90;
  display: none;
  pointer-events: auto;
  border-radius: 50%;
  background: rgba(8, 15, 47, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 254, 252, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 480ms var(--ease-power),
              transform 480ms var(--ease-power),
              border-color 280ms var(--ease-out);
  isolation: isolate;
}

.scroll-progress.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-progress:hover {
  border-color: var(--g);
}

@media (min-width: 1000px) {
  .scroll-progress {
    display: block;
  }
}

.scroll-progress__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-progress__track,
.scroll-progress__fill {
  fill: none;
  stroke-width: 1.5;
  cx: 32;
  cy: 32;
  r: 26;
}

.scroll-progress__track {
  stroke: rgba(255, 254, 252, 0.55);
}

.scroll-progress__fill {
  stroke: var(--g);
  stroke-linecap: round;
  /* circumference = 2 * π * 26 ≈ 163.36 */
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 80ms linear;
}

.scroll-progress__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l);
  font-family: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: color 200ms var(--ease-out);
}

.scroll-progress:hover .scroll-progress__num {
  color: var(--g);
}

.scroll-progress__top {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--g);
  font-size: 14px;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

.scroll-progress:hover .scroll-progress__top { opacity: 1; }
.scroll-progress:hover .scroll-progress__num { opacity: 0; }

/* --------------------------------------------------------------------------
   20. UTILS
   -------------------------------------------------------------------------- */
.hide-mobile { display: none; }
.hide-desktop { display: block; }

@media (min-width: 700px) {
  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

.no-scroll {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   21. PAGE TEMPLATE — Hero, Article, FAQ, Related, CTA
   -------------------------------------------------------------------------- */

/* PAGE HERO — fullwidth image s prekrývajúcim nadpisom */
.page-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  color: var(--l);
  padding: 160px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--d);
}

.page-hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -2;
  will-change: transform;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 15, 47, 0.35) 0%,
    rgba(8, 15, 47, 0.55) 50%,
    rgba(8, 15, 47, 0.92) 100%);
  z-index: 1;
}

.page-hero__bg img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
}

.page-hero__inner {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  color: var(--g);
  margin-bottom: 24px;
}

.page-hero__title {
  font-family: var(--title);
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--l);
  max-width: 22ch;
  margin-bottom: 24px;
}

.page-hero__perex {
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: rgba(255, 254, 252, 0.82);
  margin-top: 12px;
}

.page-breadcrumbs {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.6);
}

.page-breadcrumbs a {
  color: rgba(255, 254, 252, 0.85);
  transition: color var(--t-fast) var(--ease-out);
}

.page-breadcrumbs a:hover {
  color: var(--g);
}

.page-hero__scroll {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.65);
}

@media (min-width: 1000px) {
  .page-hero__scroll { display: inline-flex; }
}

/* ARTICLE / OBSAH ČLÁNKU */
.page-content {
  background: var(--l);
  padding: 0;
}

.article {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: rgba(8, 15, 47, 0.85);
}

.article__block {
  --stagger: 0ms;
  transition-delay: var(--stagger);
}

.article h1, .article h2, .article h3, .article h4 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: var(--d);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.article h1, .article h2, .article h3, .article h4, .article p, .article ul, .article ol, .article blockquote {
  max-width: 800px;
}

.article h2 {
  font-family: var(--title);
  font-size: clamp(24px, 2.4vw, 38px);
}

.article h3 {
  font-family: var(--title);
  font-size: clamp(20px, 1.8vw, 28px);
}

.article h4 {
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 700;
  font-family: var(--text);
  letter-spacing: 0.01em;
}

.article p {
  margin-bottom: 1.2em;
}

.article p + p,
.article ul + p,
.article ol + p {
  margin-top: 0;
}

.article a {
  color: var(--g-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast) var(--ease-out);
}

.article a:hover {
  color: var(--d);
}

.article ul,
.article ol {
  margin: 0 0 1.4em 0;
  padding: 0 0 0 1.4em;
}

.article ul li,
.article ol li {
  margin-bottom: 0.5em;
  list-style: none;
  position: relative;
  padding-left: 8px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
}

.article ol {
  counter-reset: ol-counter;
  padding-left: 1.6em;
}

.article ol li {
  counter-increment: ol-counter;
}

.article ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: -1.6em;
  top: 0.05em;
  font-family: var(--title);
  color: var(--g);
  font-weight: 400;
  font-size: 0.95em;
}

.article blockquote {
  margin: 2em 0;
  padding: 28px 32px;
  border-left: 3px solid var(--g);
  background: var(--m-soft);
  border-radius: 0 8px 8px 0;
  font-family: var(--title);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
  color: var(--d);
  font-style: italic;
}

.article img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2em 0;
  display: block;
  box-shadow: 0 14px 40px rgba(8, 15, 47, 0.1);
}

.article hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 3em 0;
}

.article strong {
  color: var(--d);
  font-weight: 700;
}

.article em {
  font-style: italic;
}

/* PAGE GALLERY (RS systémová) */
.page-gallery__strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 6px;
}

@media (min-width: 700px) {
  .page-gallery__strip {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 130px;
    gap: 8px;
  }
}

@media (min-width: 1100px) {
  .page-gallery__strip {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }
}

/* Override pre Bootstrap col-* z RS gallery() funkcie — upravíme na náš grid */
.page-gallery__strip .lightgallery,
.page-gallery__strip ul.lightgallery {
  display: contents !important;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-gallery__strip .lightgalleryli {
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto !important;
  flex: none !important;
  grid-row: span 2;
  grid-column: span 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--m);
}

.page-gallery__strip .lightgalleryli:nth-child(7n + 1) { grid-column: span 2; grid-row: span 3; }
.page-gallery__strip .lightgalleryli:nth-child(5n + 3) { grid-row: span 3; }
.page-gallery__strip .lightgalleryli:nth-child(11n + 5) { grid-column: span 2; }

.page-gallery__strip .lightgalleryli a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.page-gallery__strip .lightgalleryli a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 47, 0);
  transition: background 240ms var(--ease-out);
  pointer-events: none;
}

.page-gallery__strip .lightgalleryli:hover a::after {
  background: rgba(8, 15, 47, 0.18);
}

.page-gallery__strip .lightgalleryli img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-power);
}

.page-gallery__strip .lightgalleryli:hover img {
  transform: scale(1.04);
}

/* FAQ */
.page-faq {
  background: var(--m-soft);
}

.faq-list {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.faq-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--d);
  transition: padding var(--t-med) var(--ease-power);
}

.faq-item__head:hover {
  padding-left: 8px;
}

.faq-item__num {
  font-family: var(--title);
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--g);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 32px;
}

.faq-item__q {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--d);
  font-weight: 600;
}

.faq-item__icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-power);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--d);
  transition: background var(--t-med) var(--ease-out);
}

.faq-item__icon::before {
  top: 50%;
  left: 25%;
  width: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  top: 25%;
  left: 50%;
  width: 1.5px;
  height: 50%;
  transform: translateX(-50%);
  transition: transform var(--t-med) var(--ease-power),
              opacity var(--t-med) var(--ease-out);
}

.faq-item.is-open .faq-item__icon {
  background: var(--g);
  border-color: var(--g);
}

.faq-item.is-open .faq-item__icon::before {
  background: var(--d);
}

.faq-item.is-open .faq-item__icon::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq-item__body {
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease-power);
}

.faq-item__body[hidden] { display: none; }

.faq-item__a {
  padding: 0 calc(32px + 24px) 26px calc(32px + 24px);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.7;
  color: rgba(8, 15, 47, 0.78);
  max-width: 70ch;
}

.faq-item__a p + p {
  margin-top: 1em;
}

@media (max-width: 700px) {
  .faq-item__head {
    gap: 16px;
  }
  .faq-item__num {
    min-width: 24px;
    font-size: 14px;
  }
  .faq-item__a {
    padding-left: 0;
    padding-right: 0;
  }
}

/* RELATED CARDS pod článkom */
.page-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 700px) {
  .page-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .page-related__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.page-related__card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--d);
  isolation: isolate;
  text-decoration: none;
  color: var(--l);
  transition: transform 480ms var(--ease-power);
}

.page-related__card:hover {
  transform: translateY(-4px);
}

.page-related__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-power);
}

.page-related__card:hover img {
  transform: scale(1.05);
}

.page-related__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,47,0) 40%, rgba(8,15,47,0.85) 100%);
  z-index: 1;
}

.page-related__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 20px 24px;
}

.page-related__name {
  font-family: var(--title);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.15;
  color: var(--l);
}

.page-related__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--g);
}

/* PAGE CTA — finálny banner pod obsahom */
.page-cta {
  background: var(--m-soft);
}

.page-cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) 0;
}

.page-cta__title {
  margin-bottom: 16px;
  color: var(--d);
}

.page-cta__title em {
  color: var(--g);
  font-style: italic;
}

.page-cta .lead {
  margin: 0 auto 32px;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* FOOTER PARTNERS row v footri (z page.php aj homepage.php) */
.footer__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
}

.footer__partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 8px 14px;
  background: rgba(255, 254, 252, 0.94);
  border-radius: 8px;
  transition: background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}

.footer__partners a:hover {
  background: var(--l);
  transform: translateY(-2px);
}

.footer__partners img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.footer__partners img[src*="terraincognita"] { max-height: 44px; }

/* --------------------------------------------------------------------------
   22. BLOG TEMPLATE — filter tabs, grid, cards
   -------------------------------------------------------------------------- */

.page--blog .page-hero { min-height: 60vh; padding: 140px 0 60px; }

.blog-section {
  background: var(--l);
}

.blog-section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 32px;
}

@media (min-width: 800px) {
  .blog-section__head {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }
}

.blog-section__title {
  margin-top: 8px;
  color: var(--d);
}

.blog-section__title em {
  color: var(--g);
  font-style: italic;
}

.blog-section__count {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(8, 15, 47, 0.6);
  margin: 0;
  white-space: nowrap;
}

.blog-section__count strong {
  font-family: var(--title);
  font-size: clamp(28px, 2.4vw, 36px);
  color: var(--g);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-right: 6px;
  vertical-align: -2px;
}

/* FILTER TABS — chip style row */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.blog-filter__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 24px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d);
  cursor: pointer;
  transition: background 280ms var(--ease-out),
              color 280ms var(--ease-out),
              border-color 280ms var(--ease-out),
              transform 280ms var(--ease-power);
}

.blog-filter__tab:hover {
  border-color: var(--d);
  transform: translateY(-2px);
}

.blog-filter__tab.is-active {
  background: var(--d);
  border-color: var(--d);
  color: var(--l);
}

.blog-filter__tab.is-active .blog-filter__count {
  color: var(--g);
  background: rgba(195, 150, 15, 0.15);
}

.blog-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--m-soft);
  color: rgba(8, 15, 47, 0.6);
  font-family: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 280ms var(--ease-out),
              color 280ms var(--ease-out);
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

@media (min-width: 700px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
  }
}

.blog-grid[hidden] { display: none; }

/* BLOG CARD */
.blog-card {
  list-style: none;
  margin: 0;
  transition: opacity 380ms var(--ease-power),
              transform 380ms var(--ease-power);
}

.blog-card.is-filtered-out {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  pointer-events: none;
}

.blog-card[hidden] {
  display: none !important;
}

.blog-card__link {
  display: block;
  color: var(--d);
  text-decoration: none;
  height: 100%;
}

.blog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--m);
  margin-bottom: 24px;
  isolation: isolate;
}

.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-power);
  will-change: transform;
}

.blog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 47, 0);
  transition: background var(--t-fast) var(--ease-out);
  z-index: 1;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.06);
}

.blog-card:hover .blog-card__media::after {
  background: rgba(8, 15, 47, 0.12);
}

.blog-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 254, 252, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d);
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}

.blog-card:hover .blog-card__category {
  background: var(--g);
  color: var(--d);
}

.blog-card__body {
  padding: 0 4px;
}

.blog-card__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.5);
  margin-bottom: 12px;
}

.blog-card__title {
  font-family: var(--title);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--d);
  margin-bottom: 14px;
  transition: color var(--t-fast) var(--ease-out);
}

.blog-card:hover .blog-card__title {
  color: var(--g-deep);
}

.blog-card__perex {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(8, 15, 47, 0.68);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d);
  position: relative;
  padding-bottom: 4px;
}

.blog-card__cta::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--g);
  transition: width 360ms var(--ease-power);
}

.blog-card:hover .blog-card__cta::before {
  width: 100%;
}

.blog-card__cta .arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  transition: transform 360ms var(--ease-power);
}

.blog-card__cta .arrow::before,
.blog-card__cta .arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.blog-card__cta .arrow::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.blog-card__cta .arrow::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: transparent;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.blog-card:hover .blog-card__cta .arrow {
  transform: translateX(6px);
}

/* BLOG EMPTY STATE */
.blog-empty {
  text-align: center;
  padding: clamp(48px, 8vh, 96px) 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-top: 8px;
}

.blog-empty[hidden] { display: none; }

.blog-empty__icon {
  font-size: 56px;
  color: var(--g);
  margin-bottom: 16px;
  font-family: var(--title);
}

.blog-empty h3 {
  font-family: var(--title);
  font-size: clamp(22px, 2vw, 30px);
  color: var(--d);
  margin-bottom: 12px;
}

.blog-empty p {
  font-size: 14px;
  color: rgba(8, 15, 47, 0.65);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   23. CONTACT PAGE TEMPLATE (page_2.php) — kontaktné karty, formulár, FAQ s sticky CTA, mapa
   -------------------------------------------------------------------------- */

/* Status indikátor v hero (otvorené teraz / zatvorené / skupiny) */
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 22px;
  background: rgba(255, 254, 252, 0.08);
  border: 1px solid rgba(255, 254, 252, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--l);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.contact-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.contact-status__dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: status-pulse 2s ease-in-out infinite;
}

.contact-status--open .contact-status__dot {
  background: #2dd47a;
  color: #2dd47a;
}
.contact-status--closed .contact-status__dot {
  background: #e26060;
  color: #e26060;
}
.contact-status--group .contact-status__dot {
  background: var(--g);
  color: var(--g);
}

@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* CONTACT CARDS GRID */
.contact-cards {
  background: var(--l);
}

.contact-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 700px) {
  .contact-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .contact-cards__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--w);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--d);
  transition: border-color 320ms var(--ease-out),
              transform 320ms var(--ease-power),
              box-shadow 320ms var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: auto auto -50% -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(195, 150, 15, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  z-index: -1;
}

.contact-card:hover {
  border-color: var(--g);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(8, 15, 47, 0.06);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--m-soft);
  color: var(--g);
  transition: background 280ms var(--ease-out),
              color 280ms var(--ease-out),
              transform 480ms var(--ease-power);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card:hover .contact-card__icon {
  background: var(--g);
  color: var(--d);
  transform: rotate(-8deg) scale(1.05);
}

.contact-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.55);
}

.contact-card__value {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--d);
  font-weight: 600;
  margin-top: 4px;
  flex: 1;
}

.contact-card__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g);
  margin-top: 8px;
  transition: gap 280ms var(--ease-power);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-card:hover .contact-card__cta {
  gap: 10px;
}

.contact-card__cta--mute {
  color: rgba(8, 15, 47, 0.45);
  pointer-events: none;
}

/* GPS karta — neaktívna ako link */
.contact-card--gps {
  cursor: default;
}

.contact-card--gps:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.contact-card--gps:hover::before {
  opacity: 0;
}

.contact-card--gps:hover .contact-card__icon {
  background: var(--m-soft);
  color: var(--g);
  transform: none;
}

/* CONTACT FORM SECTION */
.contact-form-section {
  background: var(--m-soft);
}

.contact-form-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-form-section__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }
}

.contact-form-section__intro {
  position: sticky;
  top: 120px;
}

.contact-form-section__intro h2 {
  margin: 16px 0 24px;
  color: var(--d);
}

.contact-form-section__intro h2 em {
  color: var(--g);
  font-style: italic;
}

.contact-form-section__list {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-form-section__list li {
  position: relative;
  padding: 14px 0 14px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--d);
  border-bottom: 1px solid var(--line);
}

.contact-form-section__list li:last-child {
  border-bottom: none;
}

.contact-form-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--g);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--d) 45%, var(--d) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--d) 45%, var(--d) 55%, transparent 55%);
  background-size: 2px 10px, 7px 10px;
  background-position: 5px 6px, 7px 4px;
  background-repeat: no-repeat;
}

.contact-form-section__form {
  background: var(--w);
}

/* CONTACT FAQ — split layout (sticky intro + zoznam vpravo) */
.contact-faq {
  background: var(--l);
}

.contact-faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-faq__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }
}

.contact-faq__intro {
  position: sticky;
  top: 120px;
}

.contact-faq__intro h2 {
  margin: 16px 0 24px;
  color: var(--d);
}

.contact-faq__intro h2 em {
  color: var(--g);
  font-style: italic;
}

.contact-faq__cta {
  margin-top: 40px;
  padding: 28px;
  background: var(--m-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.contact-faq__cta-text {
  display: grid;
  gap: 6px;
}

.contact-faq__cta-text strong {
  font-family: var(--title);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--d);
  font-weight: 400;
}

/* GOOGLE MAPS embed */
.contact-map {
  position: relative;
  background: var(--d);
  isolation: isolate;
}

.contact-map__wrap {
  position: relative;
  height: clamp(400px, 60vh, 640px);
  width: 100%;
  overflow: hidden;
}

.contact-map__wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}

.contact-map__card {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  z-index: 2;
  max-width: 380px;
  padding: 28px 32px;
  background: var(--l);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(8, 15, 47, 0.15);
}

.contact-map__title {
  font-family: var(--title);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--d);
  margin: 12px 0 14px;
  font-weight: 400;
}

.contact-map__title em {
  color: var(--g);
  font-style: italic;
}

.contact-map__addr {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(8, 15, 47, 0.7);
  margin-bottom: 20px;
}

.contact-map__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 240ms var(--ease-out);
}

.contact-map__cta::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--g);
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 320ms var(--ease-power);
}

.contact-map__cta:hover {
  color: var(--g);
}

.contact-map__cta:hover::before {
  transform: scaleX(1);
}

.contact-map__cta .arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  transition: transform 320ms var(--ease-power);
}

.contact-map__cta .arrow::before,
.contact-map__cta .arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.contact-map__cta .arrow::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.contact-map__cta .arrow::after {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: transparent;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(45deg);
}

.contact-map__cta:hover .arrow {
  transform: translateX(6px);
}

@media (max-width: 700px) {
  .contact-map__card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 22px 24px;
  }

  .contact-form-section__intro,
  .contact-faq__intro {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   24. SIMPLE PAGE TEMPLATE (page_3.php) — wide article + impactful CTA banner
   -------------------------------------------------------------------------- */

/* WIDE ARTICLE — content na plnú šírku (1180px max pre čitateľnosť) */
.page-content--wide .article--wide {
  max-width: 1180px;
  margin: 0 auto 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
}

.page-content--wide .article--wide p,
.page-content--wide .article--wide ul,
.page-content--wide .article--wide ol {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

/* Obrázky a blockquoty môžu prečnievať na plnú šírku wrap-u */
.page-content--wide .article--wide img,
.page-content--wide .article--wide figure,
.page-content--wide .article--wide blockquote,
.page-content--wide .article--wide table,
.page-content--wide .article--wide iframe {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Veľký fullwidth obrázok — pridaj triedu .img-wide v editore */
.page-content--wide .article--wide img.img-wide,
.page-content--wide .article--wide .img-wide img {
  max-width: 100%;
  width: 100%;
  margin: 3em 0;
  border-radius: 12px;
}

.page-content--wide .article--wide h2,
.page-content--wide .article--wide h3,
.page-content--wide .article--wide h4 {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.page-content--wide .article--wide h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-top: 2em;
}

.page-content--wide .article--wide blockquote {
  max-width: 90ch;
  font-size: clamp(20px, 1.8vw, 28px);
  padding: 36px 44px;
}

/* CTA HERO BANNER — veľký banner s pozadím a magnetic CTA */
.page-cta-hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0;
  background: var(--d);
  color: var(--l);
  overflow: hidden;
  isolation: isolate;
}

.page-cta-hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -2;
  opacity: 0.4;
  will-change: transform;
}

.page-cta-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cta-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(195, 150, 15, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(8, 15, 47, 0.7) 0%, rgba(8, 15, 47, 0.92) 100%);
  z-index: -1;
}

.page-cta-hero__inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-cta-hero__eyebrow {
  color: var(--g);
  margin-bottom: 28px;
  justify-content: center;
}

.page-cta-hero__eyebrow::before {
  background: currentColor;
}

.page-cta-hero__title {
  font-family: var(--title);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--l);
  margin: 0 auto 28px;
  max-width: 18ch;
}

.page-cta-hero__title em {
  color: var(--g);
  font-style: italic;
}

.page-cta-hero__lead {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 254, 252, 0.82);
  max-width: 56ch;
  margin: 0 auto 40px;
}

.page-cta-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.page-cta-hero__perks {
  list-style: none;
  padding: 32px 0 0;
  margin: 0;
  border-top: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 700px) {
  .page-cta-hero__perks {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
  }
  
}

.page-cta-hero__perks li {
  display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 254, 252, 0.78);
}

.page-cta-hero__perk-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(195, 150, 15, 0.4);
  color: var(--g);
  font-size: 12px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   25. CONTACT FORM via contacForm() — CMS-generovaný HTML override
   -------------------------------------------------------------------------- */

/* Wrapper na volanie contacForm() — kdekoľvek v šablónach */
.bf-form {
  width: 100%;
}

/* Hlavný wrapper z contacForm() */
.bf-form .contact_form {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--w);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.bf-form .form_block {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 2-column row helper — wrapper aplikuje flex layout pre N po sebe idúcich blokov */
.bf-form .form_block.inline {
  flex-direction: row;
  gap: 16px;
}

.bf-form .form_block.inline > .form_block {
  flex: 1;
}

/* Label nad inputom (ak je $label = 1) */
.bf-form .form_block label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.6);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Všetky inputy / select / textarea */
.bf-form .formitem {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--d);
  font-family: var(--text);
  transition: border-color var(--t-fast) var(--ease-out);
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.bf-form textarea.formitem {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.bf-form .formitem::placeholder {
  color: rgba(8, 15, 47, 0.35);
}

.bf-form .formitem:focus {
  border-bottom-color: var(--g);
}

.bf-form .formitem.form_error {
  border-bottom-color: #e26060;
  animation: formitem-shake 360ms ease-in-out;
}

@keyframes formitem-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Select šípka — pretože appearance: none */
.bf-form select.formitem,
.bf-form select.formlistbox {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23080f2f' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 30px;
  cursor: pointer;
}

/* Date input — datepicker-style */
.bf-form input.formdate,
.bf-form input[type="date"].formitem {
  cursor: pointer;
}

/* Form row separator (type: line) */
.bf-form .form_block.line {
  margin: 16px 0 8px;
}

.bf-form .formseparator {
  font-family: var(--text);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(8, 15, 47, 0.55);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* GDPR checkbox blok */
.bf-form .gdpr-stat,
.bf-form .control--checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(8, 15, 47, 0.7);
  line-height: 1.5;
  margin-top: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.bf-form .gdpr-stat input[type="checkbox"],
.bf-form .control--checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bf-form .control__indicator {
  position: absolute !important;
  left: 0 !important;
  top: 1px !important;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--w);
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}

.bf-form .gdpr-stat input:checked ~ .control__indicator,
.bf-form .control--checkbox input:checked ~ .control__indicator {
  background: var(--g);
  border-color: var(--g);
}

.bf-form .control__indicator::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--d);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
}

.bf-form .gdpr-stat input:checked ~ .control__indicator::after,
.bf-form .control--checkbox input:checked ~ .control__indicator::after {
  opacity: 1;
}

.bf-form .gdpr-stat.form_error .control__indicator,
.bf-form .control--checkbox.form_error .control__indicator {
  border-color: #e26060;
}

.bf-form #gdpr-form-text,
.bf-form [id^="gdpr-form-text"] {
  margin: 0;
  display: inline;
}

.bf-form .gdpr-stat + p,
.bf-form .control--checkbox + p {
    flex: 1;
    margin: -10px 0 20px 28px;
    margin-left: 0;
    display: inline;
    padding-left: 25px;
}

/* Form submit button (DIV s id submitform) */
.bf-form [id^="submitform"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  margin-top: 8px;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d);
  background: var(--g);
  border: 1px solid var(--g);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-power);
  white-space: nowrap;
  align-self: flex-start;
  position: relative;
  isolation: isolate;
}

.bf-form [id^="submitform"]:hover {
  background: var(--d);
  border-color: var(--d);
  color: var(--l);
}

.bf-form [id^="submitform"]::after {
  content: "→";
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform var(--t-med) var(--ease-power);
}

.bf-form [id^="submitform"]:hover::after {
  transform: translateX(4px);
}

/* Form message — odpoveď zo servera (success / error) */
.bf-form .formmessge {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--d);
}

.bf-form .formmessge p {
  margin: 0;
  padding: 14px 18px;
  background: var(--m-soft);
  border-left: 3px solid var(--g);
  border-radius: 0 6px 6px 0;
}

.bf-form .formmessge:empty {
  display: none;
}

/* Date picker theming (jQuery UI datepicker keď sa použije .formdate) */
.bf-form .ui-datepicker {
  font-family: var(--text);
}

/* --------------------------------------------------------------------------
   26. RS DRAG-DROP EMBED GALLERY — dense masonry grid v článkoch
   --------------------------------------------------------------------------
   Pokrýva HTML štruktúru ktorú generuje editor RS drag-drop:
     <div class="rs-dd-embed-gallery rs-dd-embed-gallery--mogo gallery__strip lightgallery">
       <div class="mogalery-content">
         <ul class="lightgallery list-unstyled row rs-dd-embed-gallery--mogoul">
           <li class="mogali-N mogaliga-N lightgalleryli" data-src="..." data-sub-html="...">
             <a href="..." style="background-image:url(..._-01.webp);"><img class="img-responsive"></a>
           </li>
         </ul>
       </div>
     </div>
   Aplikuje rovnaký dense layout ako .gallery__strip na homepage.
   -------------------------------------------------------------------------- */

/* Vonkajší wrapper sa stane CSS gridom */
.rs-dd-embed-gallery,
.rs-dd-embed-gallery.gallery__strip,
.article .rs-dd-embed-gallery,
.article--wide .rs-dd-embed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 6px;
  margin: clamp(32px, 5vh, 60px) 0 !important; /* prepíše inline margin:30px */
  padding: 0;
  list-style: none;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 700px) {
  .rs-dd-embed-gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 130px;
    gap: 8px;
  }
  
}

@media (min-width: 1100px) {
  .rs-dd-embed-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }
}

/* Vnorené wrappery — display:contents aby <li> boli priamy potomok gridu */
.rs-dd-embed-gallery .mogalery-content,
.rs-dd-embed-gallery > .mogalery-content,
.rs-dd-embed-gallery .lightgallery,
.rs-dd-embed-gallery ul.lightgallery,
.rs-dd-embed-gallery .rs-dd-embed-gallery--mogoul,
.rs-dd-embed-gallery ul.list-unstyled {
  display: contents !important;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

/* Jednotlivý gallery item (li) */
.rs-dd-embed-gallery .lightgalleryli {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  flex: none !important;
  grid-row: span 2;
  grid-column: span 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: var(--m);
  isolation: isolate;
}

/* Override Bootstrap col- triedy (z list-unstyled row) — full width v gride */
.rs-dd-embed-gallery .lightgalleryli[class*="col-"],
.rs-dd-embed-gallery .row .lightgalleryli {
  flex: none !important;
  max-width: none !important;
}

/* Mosaic varianty — využijeme aj mogali-N triedy aj nth-child pre dense feel */
.rs-dd-embed-gallery .lightgalleryli:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 3;
}
.rs-dd-embed-gallery .lightgalleryli:nth-child(5n + 3) {
  grid-row: span 3;
}
.rs-dd-embed-gallery .lightgalleryli:nth-child(11n + 5) {
  grid-column: span 2;
}
.rs-dd-embed-gallery .lightgalleryli:nth-child(13n + 8) {
  grid-row: span 2;
  grid-column: span 2;
}

/* Anchor wrapper — má inline background-image z RS */
.rs-dd-embed-gallery .lightgalleryli a {
  display: block !important;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  cursor: zoom-in;
  text-decoration: none;
  border: none;
  padding: 0;
}

.rs-dd-embed-gallery .lightgalleryli a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 47, 0);
  transition: background 240ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.rs-dd-embed-gallery .lightgalleryli:hover a::after {
  background: rgba(8, 15, 47, 0.18);
}

/* Inner img — zobrazí sa cez background-image, ale aj img.img-responsive funguje */
.rs-dd-embed-gallery .lightgalleryli img,
.rs-dd-embed-gallery .lightgalleryli .img-responsive {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-power);
  border-radius: 0;
  margin: 0;
  z-index: 0;
}

.rs-dd-embed-gallery .lightgalleryli:hover img,
.rs-dd-embed-gallery .lightgalleryli:hover .img-responsive {
  transform: scale(1.04);
}

/* Ak je galéria vnútri wrap--narrow (page.php) alebo article--wide (page_3.php),
   povolíme jej presahovať na full-width container */
.article .rs-dd-embed-gallery,
.article--wide .rs-dd-embed-gallery {
  width: 100%;
  max-width: 100%;
}

/* RS drag-drop layout containers — odstrániť inline gap/flex pre náš grid */
.rs-article-drag-drop {
  width: 100%;
  margin: 0;
}

.rs-article-drag-drop .rs-dd-layout {
  gap: clamp(20px, 3vw, 40px) !important;
  margin: clamp(24px, 4vh, 48px) 0;
}

/* End of file */
