/* ==========================================================================
   PD LOMNIČKA — WOW REDESIGN 2026
   Premium Agro Design System
   ========================================================================== */

/* Google Fonts loaded in HTML */

:root {
  /* === PALETTE === */
  --clr-bg:        #F8F5F0;
  --clr-bg-soft:   #EDE8E0;
  --clr-dark:      #0D1409;
  --clr-dark-2:    #141C10;
  --clr-ink:       #1A201A;
  --clr-ink-muted: #5C6459;
  --clr-green:     #1A3A24;
  --clr-green-mid: #2D5C40;
  --clr-green-lt:  #3E7A54;
  --clr-gold:      #D4A24A;
  --clr-gold-lt:   #F0C878;
  --clr-gold-dk:   #B07830;
  --clr-white:     #FFFFFF;
  --clr-border:    #DDD6C8;

  /* === TYPOGRAPHY === */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* === SPACING === */
  --section-py: clamp(80px, 8vw, 130px);
  --container:  min(1260px, 92vw);

  /* === RADII === */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-full: 999px;

  /* === TRANSITIONS === */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:     200ms var(--ease);
  --t-mid:      400ms var(--ease);
  --t-slow:     650ms var(--ease);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-ink);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: inherit; }

::selection { background: var(--clr-green); color: var(--clr-white); }

.container { width: var(--container); margin: 0 auto; }

/* ==========================================================================
   CANVAS (hero background particles)
   ========================================================================== */

#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

#hero-canvas.ready { opacity: 1; }

/* ==========================================================================
   AOS — Animate on scroll (custom, no library needed)
   ========================================================================== */

[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px);  }
[data-aos="fade-up"]    { transform: translateY(40px);  }

[data-aos].aos-animate {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: background var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  background: var(--clr-green);
  color: var(--clr-gold);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
}

.logo-icon-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--clr-gold);
  background-color: #ffffff;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s var(--t-fast), border-color 0.3s var(--t-fast);
}

.logo:hover .logo-icon-img {
  transform: rotate(6deg) scale(1.05);
  border-color: var(--clr-white);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-green);
  transition: var(--t-fast);
}

/* Top header: white text on hero */
.site-header:not(.scrolled) .logo-text,
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.9); }

.site-header:not(.scrolled) .logo-mark { background: rgba(255,255,255,0.15); color: var(--clr-gold); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-ink-muted);
  padding: 8px 12px;
  border-radius: var(--r-full);
  transition: var(--t-fast);
  position: relative;
}

.nav-link:hover { color: var(--clr-green); background: rgba(26,58,36,0.06); }

.nav-map-link {
  color: var(--clr-green-mid);
  border: 1px solid rgba(26,58,36,0.2);
}

.nav-map-link:hover { background: var(--clr-green); color: var(--clr-white); border-color: var(--clr-green); }

.nav-cta {
  background: var(--clr-gold);
  color: var(--clr-dark) !important;
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-weight: 700;
}

.nav-cta:hover { background: var(--clr-gold-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,162,74,0.4); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 910;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--t-fast);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: var(--t-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--t-fast);
}

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

.btn-gold {
  background: var(--clr-gold);
  color: var(--clr-dark);
  box-shadow: 0 4px 20px rgba(212,162,74,0.3);
}

.btn-gold:hover { background: var(--clr-gold-dk); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,162,74,0.45); }

.btn-outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.btn-green {
  background: var(--clr-green);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(26,58,36,0.3);
}

.btn-green:hover { background: var(--clr-green-mid); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ==========================================================================
   SECTION TYPOGRAPHY
   ========================================================================== */

.section { padding: var(--section-py) 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--clr-ink);
  margin-bottom: 20px;
}

.section-title em {
  font-style: normal;
  color: var(--clr-green);
  position: relative;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--clr-ink-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 0;
}

.section-center {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-center .section-eyebrow::before { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-white);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video,
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 13, 7, 0.75) 0%,
    rgba(15, 25, 12, 0.55) 50%,
    rgba(8, 13, 7, 0.88) 100%
  );
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  padding: 140px 0 100px;
  width: 100%;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-pretitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.55s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--clr-gold-lt);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.75s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.95s forwards;
}

/* Hero mini meteo strip */
.hero-meteo {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 1.15s forwards;
}

.meteo-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 7px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}

.meteo-icon { font-size: 0.95rem; }

.meteo-loc { border-color: rgba(212,162,74,0.3); color: var(--clr-gold-lt); }

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeSlideUp 1s var(--ease) 1.5s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */

.stats-bar {
  background: var(--clr-green);
  color: var(--clr-white);
  padding: 0;
}

.stats-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--clr-gold);
  letter-spacing: -0.02em;
}

.stat-unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--clr-gold-lt);
  margin-left: 3px;
  vertical-align: super;
  font-size: 1rem;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
  max-width: 130px;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin: 24px 0;
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-section { background: var(--clr-bg); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
}

.about-main-img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.18);
  transition: transform var(--t-slow);
}

.about-img-frame:hover .about-main-img { transform: scale(1.02); }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--clr-gold);
  color: var(--clr-dark);
  border-radius: var(--r-md);
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(212,162,74,0.4);
}

.badge-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.badge-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-ink);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-pillars { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--clr-bg-soft);
  border-radius: var(--r-md);
  padding: 20px;
  border-left: 3px solid var(--clr-gold);
  transition: var(--t-fast);
}

.pillar:hover { background: var(--clr-white); box-shadow: 0 8px 30px rgba(0,0,0,0.07); }

.pillar-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }

.pillar strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--clr-ink); }

.pillar p { font-size: 0.9rem; color: var(--clr-ink-muted); line-height: 1.65; margin: 0; }

/* ==========================================================================
   AGRO KALENDÁR
   ========================================================================== */

.calendar-section { background: var(--clr-dark-2); color: var(--clr-white); }

.calendar-section .section-eyebrow { color: var(--clr-gold); }

.calendar-section .section-title { color: var(--clr-white); }
.calendar-section .section-title em { color: var(--clr-gold-lt); }

.calendar-section .section-lead { color: rgba(255,255,255,0.6); }

/* Tabs */
.cal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cal-tabs::-webkit-scrollbar { display: none; }

.cal-tab {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  transition: var(--t-fast);
  cursor: pointer;
}

.cal-tab:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.8);
}

.cal-tab.active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-dark);
  box-shadow: 0 8px 24px rgba(212,162,74,0.35);
}

.cal-tab-icon { font-size: 1.6rem; }

.cal-tab-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.cal-tab-sub {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Panels */
.cal-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: calPanelIn 0.4s var(--ease);
}

@keyframes calPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cal-panel[hidden] { display: none; }

.cal-panel-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.cal-panel-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: brightness(0.7);
}

.cal-panel:hover .cal-panel-hero img { transform: scale(1.03); }

.cal-panel-badge {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 7px 18px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}

.badge-spring { background: #5FB87A; color: #fff; }
.badge-summer { background: #F0A832; color: #111; }
.badge-autumn { background: #D4622A; color: #fff; }
.badge-winter { background: #6FA8DC; color: #fff; }

.cal-panel-body { padding: 32px; }

.cal-panel-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-white);
  margin-bottom: 28px;
}

.cal-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cal-category {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 22px;
}

.cal-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cal-cat-icon { font-size: 1.3rem; }

.cal-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--clr-gold-lt);
}

.cal-ops {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-ops li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.op-check {
  color: var(--clr-gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   PRODUKCIA
   ========================================================================== */

.production-section { background: var(--clr-bg-soft); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prod-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-mid);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.prod-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.prod-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.prod-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--clr-green);
  color: var(--clr-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
}

.prod-body { padding: 28px; }

.prod-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--clr-ink);
  margin-bottom: 12px;
}

.prod-body p {
  font-size: 0.9rem;
  color: var(--clr-ink-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.prod-tags li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--clr-bg-soft);
  color: var(--clr-green);
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(26,58,36,0.15);
}

/* ==========================================================================
   GALÉRIA
   ========================================================================== */

.gallery-section { background: var(--clr-bg); }

.gallery-loading {
  text-align: center;
  color: var(--clr-green);
  font-weight: 600;
  padding: 40px;
}

/* Dynamic gallery grid (generated by JS) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-mid);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* ==========================================================================
   INZERÁTY / ADS
   ========================================================================== */

.ads-section { background: var(--clr-dark); color: var(--clr-white); }

.ads-section .section-eyebrow { color: var(--clr-gold); }
.ads-section .section-title   { color: var(--clr-white); }
.ads-section .section-title em { color: var(--clr-gold-lt); }

.ads-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 40px;
  font-size: 1rem;
}

/* Dynamic ads (from JS) */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ad-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--t-fast);
}

.ad-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,162,74,0.3);
  transform: translateY(-3px);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--t-fast);
}

.lightbox-close:hover { color: var(--clr-white); transform: rotate(90deg); }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 90vw; }

.lightbox-image { max-height: 80vh; border-radius: var(--r-md); }

.lightbox-caption { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--clr-white);
  font-size: 1.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-fast);
  cursor: pointer;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */

.contact-section { background: var(--clr-bg-soft); }

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

.contact-lead {
  color: var(--clr-ink-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--clr-white);
  border-radius: var(--r-md);
  border-left: 3px solid var(--clr-gold);
}

.ci-icon { font-size: 1.3rem; flex-shrink: 0; }

.contact-row strong { display: block; font-weight: 700; color: var(--clr-ink); margin-bottom: 4px; }

.contact-row span,
.contact-row a {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-ink-muted);
  line-height: 1.6;
}

.contact-row a:hover { color: var(--clr-green); }

/* Contact Form */
.contact-form {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-ink);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-ink-muted);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-sm);
  background: var(--clr-bg);
  font-size: 0.95rem;
  color: var(--clr-ink);
  transition: var(--t-fast);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--clr-green);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(26,58,36,0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--clr-dark); color: rgba(255,255,255,0.65); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-white);
  display: block;
  margin-bottom: 14px;
}

.footer-logo strong { color: var(--clr-gold); }

.footer-brand p { font-size: 0.88rem; max-width: 260px; line-height: 1.7; }

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--t-fast);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--clr-gold); }

.footer-admin { color: var(--clr-gold-lt) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-media { order: -1; }
  .cal-categories { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  /* Mobile nav */
  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: 80vw; max-width: 320px;
    height: 100svh;
    background: var(--clr-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 28px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-mid);
    z-index: 905;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }

  .site-nav.open { transform: translateX(0); }

  .nav-link { color: rgba(255,255,255,0.75); font-size: 1rem; padding: 12px 0; width: 100%; }
  .nav-link:hover { background: none; color: var(--clr-gold); }
  .nav-cta { background: var(--clr-gold); padding: 12px 24px; margin-top: 16px; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  /* Stats */
  .stats-grid { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; margin: 0; }
  .stat-item { padding: 28px 16px; }

  /* Cal */
  .cal-tab-sub { display: none; }
  .cal-categories { grid-template-columns: 1fr; }
  .cal-panel-hero { height: 180px; }

  /* Prod */
  .prod-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }

  /* About badge */
  .about-badge { bottom: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .cal-tabs { gap: 6px; }
  .cal-tab { min-width: 80px; padding: 14px 8px; }
  .cal-tab-label { font-size: 0.8rem; }
  .contact-form { padding: 24px; }
}

/* ==========================================================================
   PREMIUM AGRO-CALENDAR REDESIGN (Side-by-Side & Glassmorphism)
   ========================================================================== */

@media (min-width: 992px) {
  .cal-panel {
    display: grid;
    grid-template-columns: 36% 64%;
    min-height: 440px;
    align-items: stretch;
  }
  
  .cal-panel-hero {
    height: 100%;
  }
  
  .cal-panel-hero img {
    height: 100%;
    object-position: center center;
  }
  
  /* Summer tractor horizontal alignment tweak to show the actual tractor */
  .cal-panel-hero img[src*="traktor_praca.jpg"] {
    object-position: 45% center;
  }

  /* Spring feeding teliatko tweak to focus on the feeding action */
  .cal-panel-hero img[src*="krmenie_teliatka.jpg"] {
    object-position: 55% center;
  }
  
  .cal-panel-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Glassmorphic seasonal badges with blurred drop-shadow */
.cal-panel-badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  z-index: 2;
}

.badge-spring { background: rgba(95, 184, 122, 0.85) !important; color: #fff !important; }
.badge-summer { background: rgba(240, 168, 50, 0.85) !important; color: #111 !important; }
.badge-autumn { background: rgba(212, 98, 42, 0.85) !important; color: #fff !important; }
.badge-winter { background: rgba(111, 168, 220, 0.85) !important; color: #fff !important; }

/* Micro interactions & styling enhancements for the checklist */
.cal-category {
  transition: all 0.3s ease;
}
.cal-category:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(223, 161, 90, 0.25);
  transform: translateY(-2px);
}
