/* ═══════════════════════════════════════════════
   KLAVÍRNÍ ŠKOLA JIHLAVA — CSS
   Apple-style · Rich Yellow · Custom Cursor · 3D
   ═══════════════════════════════════════════════ */

:root {
  --yellow:       #F5C518;
  --yellow-deep:  #C9A000;
  --yellow-light: #FFF8D6;
  --yellow-glow:  rgba(245,197,24,0.15);
  --black:        #0A0A0A;
  --grey-900:     #111111;
  --grey-700:     #3A3A3A;
  --grey-400:     #9A9A9A;
  --grey-100:     #F5F5F7;
  --white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;

  --shadow-card:  0 2px 20px rgba(0,0,0,0.07), 0 8px 40px rgba(0,0,0,0.04);
  --shadow-float: 0 20px 60px rgba(0,0,0,0.12);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:        68px;
}

*, *::before, *::after { cursor: none !important; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--white);
  color: var(--grey-900);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* hide default – custom cursor takes over */
}
a  { text-decoration: none; color: inherit; }
img, iframe { max-width: 100%; }

/* ── UTILITIES ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.4);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--grey-900);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(10,10,10,0.15);
  cursor: none;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--yellow); background: var(--yellow-glow); transform: translateY(-2px); }

/* ══════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s;
  will-change: transform;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 12px; height: 12px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width  0.35s var(--ease),
    height 0.35s var(--ease),
    opacity 0.35s var(--ease),
    border-color 0.2s;
  will-change: transform;
}

/* On hoverable elements: dot shrinks to nothing, ring expands */
body.cursor-hover .cursor {
  width: 0; height: 0;
  opacity: 0;
}
body.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  opacity: 1;
}

/* On dark backgrounds */
body.cursor-dark .cursor { background: var(--yellow); }
body.cursor-dark .cursor-ring { border-color: var(--yellow); }

/* Hide on touch */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--black);
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.7; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  object-fit:contain;
}
.logo-text em { font-style: italic; color: var(--grey-700); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 0.88rem; font-weight: 400;
  padding: 8px 14px; border-radius: 50px;
  color: var(--grey-700); transition: all 0.2s;
}
nav a:hover { background: var(--grey-100); color: var(--black); }
nav a.nav-cta {
  background: var(--yellow); color: var(--black);
  font-weight: 500; margin-left: 8px; padding: 8px 20px;
}
nav a.nav-cta:hover { background: var(--yellow-deep); box-shadow: 0 4px 16px rgba(245,197,24,0.35); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: none; padding: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: all 0.3s; }

.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid rgba(0,0,0,0.06); }
.mobile-menu a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--grey-100); color: var(--grey-700); }
.mobile-menu a.nav-cta { margin-top: 12px; background: var(--yellow); color: var(--black); padding: 12px 20px; border-radius: 50px; text-align: center; border: none; font-weight: 500; }
.mobile-menu.open { display: flex; }


/* ==========================================================
       NAV DROPDOWN — "Výuka" menu
       ========================================================== */

    .nav-dropdown {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .nav-dropdown-trigger {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
    }

    .nav-dropdown-trigger .chevron {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform 0.25s ease;
      opacity: 0.6;
    }

    .nav-dropdown.open .nav-dropdown-trigger .chevron,
    .nav-dropdown:hover .nav-dropdown-trigger .chevron {
      transform: rotate(225deg) translateY(1px);
    }

    .nav-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      min-width: 260px;
      padding-top: 14px; /* bridges the gap so hover never breaks */
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
      z-index: 200;
    }

    .nav-dropdown.open .nav-dropdown-menu,
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .nav-dropdown-menu-inner {
      background: rgba(255, 255, 255, 0.86);
      -webkit-backdrop-filter: blur(22px) saturate(160%);
      backdrop-filter: blur(22px) saturate(160%);
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 16px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
      padding: 10px;
      transform: translateY(8px);
      transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-dropdown.open .nav-dropdown-menu-inner,
    .nav-dropdown:hover .nav-dropdown-menu-inner,
    .nav-dropdown:focus-within .nav-dropdown-menu-inner {
      transform: translateY(0);
    }

    .nav-dropdown-menu a {
      display: block;
      padding: 11px 16px;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-weight: 400;
      font-size: 14px;
      color: var(--black, #111);
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s ease;
    }

    .nav-dropdown-menu a:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    @media (max-width: 860px) {
      .nav-dropdown-menu {
        position: static;
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        margin-top: 4px;
        transition: max-height 0.3s ease;
      }
      .nav-dropdown.open .nav-dropdown-menu {
        max-height: 400px;
      }
      .nav-dropdown-menu-inner {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 14px;
        transform: none;
        transition: none;
      }
      .nav-dropdown-menu a {
        color: var(--grey-700, #4a4a4a);
        font-size: 15px;
        padding: 9px 12px;
      }
    }


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--white);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-overlay-enclosure,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.224) 0%, rgba(255, 255, 255, 0.501) 52%, rgba(255, 255, 255, 0.242) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(245,197,24,0.10) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}

.hero-content {
  text-align: center; position: relative; z-index: 2;
  max-width: 780px; padding: 0 32px;
  animation: heroReveal 1.1s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes heroReveal { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

.hero-eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--black-100); margin-bottom: 20px;
  animation: heroReveal 1s 0.1s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 300;
  line-height: 1.08; letter-spacing: -0.02em; color: var(--black);
  margin-bottom: 28px; animation: heroReveal 1s 0.2s both;
}
.hero-title em { font-style: italic; color: var(--yellow-deep); }

.hero-sub {
  font-size: 1.1rem; color: var(--grey-1000); line-height: 1.7;
  max-width: 520px; margin: 0 auto 40px; font-weight: 300;
  animation: heroReveal 1s 0.3s both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: heroReveal 1s 0.4s both; }

.hero-badge {
  position: absolute; top: 18%; right: 8%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 109px; height: 109px;
  background: var(--yellow); border-radius: 50%;
  box-shadow: 0 8px 32px rgba(245,197,24,0.4);
  animation: badgePop 0.8s 0.6s cubic-bezier(0.22,1,0.36,1) both; z-index: 3;
}
@keyframes badgePop { from { opacity:0; transform:scale(0.5) rotate(-20deg); } to { opacity:1; transform:scale(1) rotate(0); } }
.badge-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 0.6; padding-bottom: 10px; color: var(--black); }
.badge-label { font-size: 0.65rem; font-weight: 500; text-align: center; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(0,0,0,0.7); }

.keys-3d {
  position: absolute; bottom: 8%; left: 50%;
  transform: translateX(-50%) perspective(600px) rotateX(30deg);
  display: flex; gap: 3px; z-index: 1; opacity: 0.18;
  animation: keysFloat 3s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}
@keyframes keysFloat {
  from { transform: translateX(-50%) perspective(600px) rotateX(30deg) translateY(0); }
  to   { transform: translateX(-50%) perspective(600px) rotateX(30deg) translateY(-12px); }
}
.key { border-radius: 0 0 5px 5px; transform-style: preserve-3d; }
.key.white { width: 36px; height: 120px; background: linear-gradient(160deg,#fff 60%,#e0e0e0); border: 1px solid #ccc; box-shadow: 0 6px 0 #aaa, 0 8px 12px rgba(0,0,0,0.2); }
.key.black { width: 22px; height: 76px; background: linear-gradient(160deg,#222 40%,#555); position: relative; z-index: 2; margin-left: -11px; margin-right: -11px; box-shadow: 0 4px 0 #000, 0 6px 10px rgba(0,0,0,0.4); }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-400); animation: fadeIn 1.5s 1s both; z-index: 5;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--grey-400); border-bottom: 1.5px solid var(--grey-400);
  transform: rotate(45deg); animation: arrowBounce 1.5s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50%       { transform: rotate(45deg) translate(4px,4px); }
}

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 72px; }
.section-eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 16px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; color: var(--black); }
.section-header h2 em { font-style: italic; color: var(--yellow-deep); }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about { padding: 120px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 80px; }

.about-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-md);
  padding: 36px 28px; text-align: center;
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: var(--shadow-card);
}
.about-card:hover { box-shadow: var(--shadow-float); border-color: rgba(245,197,24,0.3); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.about-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.about-card span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.about-card p { font-size: 0.88rem; color: var(--grey-700); line-height: 1.65; }

.about-text-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }

.about-quote { position: relative; padding-left: 24px; }
.about-quote::before { content: ''; position: absolute; left:0; top:0; bottom:0; width:3px; background: var(--yellow); border-radius: 2px; }
.about-quote blockquote { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; line-height: 1.5; color: var(--grey-900); margin-bottom: 16px; font-weight: 300; }
.about-quote cite { font-size: 0.82rem; color: var(--grey-400); font-style: normal; }
.about-details p { color: var(--grey-700); line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }

/* Fixed-background "claim" band — background-attachment:fixed is the
   whole trick: the image is pinned to the viewport while the section's
   content scrolls over it, giving a parallax depth effect. */
.about-parallax {
  position: relative;
  margin: 0;
  min-height: 52vh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
.about-parallax::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.30) 0%, rgba(10,10,10,0.55) 100%);
}
.about-parallax-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 720px; padding: 0 32px;
}
.about-parallax-content h2{
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.3;
  color: var(--white);
}

/* ══════════════════════════════════════
   TIMELINE
══════════════════════════════════════ */
.timeline-section { padding: 120px 0; background: var(--grey-100); overflow: hidden; }

.timeline-scroll-wrapper {
  position: relative; overflow-x: auto; overflow-y: visible;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 80px; cursor: grab;
}
.timeline-scroll-wrapper::-webkit-scrollbar { display: none; }
.timeline-scroll-wrapper.grabbing { cursor: grabbing; }

.timeline-track {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;       /* items fill the full track height */
  position: relative;
  width: max-content;
  padding: 0 40px;
  height: 600px;              /* leaves room for the longest milestone text */
}

.timeline-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #D0D0D0 5%, #D0D0D0 95%, transparent 100%);
  transform: translateY(-50%); z-index: 0;
}

.tl-item {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  z-index: 1;
  /* no flex layout inside — everything is absolute */
}

.tl-bubble {
  width: 88px; height: 88px; background: var(--white); border: 2px solid #D0D0D0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);   /* always exactly on the center line */
  z-index: 2;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tl-bubble:hover { border-color: var(--yellow); box-shadow: 0 0 0 6px rgba(245,197,24,0.15); transform: translate(-50%, -50%) scale(1.1); }
.tl-bubble--gold { background: var(--yellow); border-color: var(--yellow-deep); box-shadow: 0 4px 20px rgba(245,197,24,0.35); }
.tl-bubble--gold .tl-year { color: var(--black); }
.tl-bubble--active { background: var(--black); border-color: var(--black); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.tl-bubble--active .tl-year { color: var(--white); }

.tl-year { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--grey-700); letter-spacing: 0.02em; }

/* Text for ABOVE items: bottom edge is exactly (44px bubble-half + 28px connector) above center */
.tl-item.tl-above .tl-content {
  position: absolute;
  bottom: calc(50% + 72px);
  left: 0; right: 0;
  text-align: center;
  padding: 0 14px;
}

/* Text for BELOW items: top edge is exactly 72px below center */
.tl-item.tl-below .tl-content {
  position: absolute;
  top: calc(50% + 72px);
  left: 0; right: 0;
  text-align: center;
  padding: 0 14px;
}

.tl-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--black); margin: 0 0 6px; line-height: 1.3; }
.tl-content p { font-size: 0.9rem; color: var(--grey-700); line-height: 1.55; margin: 0; }
.tl-content p + p { margin-top: 8px; }

/* Connector ticks — fixed 28px, same on every item */
.tl-item.tl-above .tl-bubble::after {
  content: ''; position: absolute;
  left: 50%; bottom: 100%;    /* starts at top of bubble, goes up */
  width: 1px; height: 28px;
  background: #D0D0D0; transform: translateX(-50%);
}
.tl-item.tl-below .tl-bubble::before {
  content: ''; position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: 28px;
  background: #D0D0D0; transform: translateX(-50%);
}

.timeline-fade-left, .timeline-fade-right { position: absolute; top: 0; bottom: 0; width: 100px; pointer-events: none; z-index: 5; }
.timeline-fade-left  { left:  0; background: linear-gradient( 90deg, var(--grey-100), transparent); }
.timeline-fade-right { right: 0; background: linear-gradient(-90deg, var(--grey-100), transparent); }

.timeline-nav { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.tl-nav-btn {
  width: 44px; height: 44px; background: var(--white); border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 50%; font-size: 1.1rem; cursor: none; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; color: var(--grey-700);
}
.tl-nav-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); box-shadow: 0 4px 16px rgba(245,197,24,0.3); }
/* ══════════════════════════════════════
   GALLERY PREVIEW
══════════════════════════════════════ */
.gallery-section { padding: 120px 0; background: var(--white); }
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:48px; }
.gallery-card { border-radius:var(--radius-md); overflow:hidden; transition:transform 0.35s; }
.gallery-card:hover { transform:scale(1.02); }
.gallery-thumb { aspect-ratio:3/4; position:relative; display:flex; align-items:flex-end; overflow:hidden; }
.g1 { background:linear-gradient(145deg,#2a1a00 0%,#7a4a00 40%,#F5C518 100%); }
.g2 { background:linear-gradient(145deg,#0a0a1a 0%,#1a1a4a 40%,#8080D0 100%); }
.g3 { background:linear-gradient(145deg,#1a0a0a 0%,#4a1a1a 40%,#C03030 100%); }
.g4 { background:linear-gradient(145deg,#001a0a 0%,#004a20 40%,#30C080 100%); }
.gallery-label { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,0.7)); color:var(--white); font-size:0.78rem; padding:20px 14px 14px; }
.gallery-cta { text-align:center; }

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.pricing-section { padding: 120px 0; background: var(--grey-100); }
.pricing-tabs { display:flex; justify-content:center; gap:8px; margin-bottom:56px; flex-wrap:wrap; }
.tab-btn { padding:10px 24px; border-radius:50px; border:1.5px solid rgba(0,0,0,0.1); background:var(--white); font-family:var(--font-body); font-size:0.88rem; cursor:none; color:var(--grey-700); transition:all 0.3s; }
.tab-btn:hover { border-color:var(--yellow); }
.tab-btn.active { background:var(--yellow); border-color:var(--yellow); color:var(--black); font-weight:500; box-shadow:0 4px 16px rgba(245,197,24,0.3); }
.tab-content { display:none; }
.tab-content.active { display:block; }
.price-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:32px; }
.price-card { background:var(--white); border-radius:var(--radius-md); padding:40px 32px; text-align:center; border:1px solid rgba(0,0,0,0.07); box-shadow:var(--shadow-card); position:relative; transition:all 0.35s; }
.price-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-float); }
.price-card--featured { background:var(--yellow); border-color:var(--yellow-deep); box-shadow:0 12px 40px rgba(245,197,24,0.3); }
.price-badge { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background:var(--black); color:var(--white); font-size:0.7rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; padding:5px 14px; border-radius:50px; white-space:nowrap; }
.price-duration { font-family:var(--font-display); font-size:1.6rem; font-weight:600; color:var(--black); margin-bottom:4px; }
.price-note { font-size:0.78rem; color:rgba(0,0,0,0.55); margin-bottom:28px; text-transform:uppercase; letter-spacing:0.08em; }
.price-main { margin-bottom:4px; }
.price-amount { font-family:var(--font-display); font-size:3rem; font-weight:300; color:var(--black); letter-spacing:-0.02em; }
.price-period { font-size:0.82rem; color:rgba(0,0,0,0.5); margin-bottom:24px; }
.price-alt { list-style:none; font-size:0.82rem; color:rgba(0,0,0,0.6); line-height:2; }
.price-alt li::before { content:'· '; }
.price-footnote { text-align:center; font-size:0.82rem; color:var(--grey-400); }

/* ══════════════════════════════════════
   PRICING GUIDE — help choosing length & variant
══════════════════════════════════════ */
.guide-panel { max-width: 900px; margin: 0 auto 48px; }
.guide-intro { text-align: center; max-width: 520px; margin: 0 auto 28px; }
.guide-intro h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.guide-intro p { font-size: 1rem; color: var(--grey-700); line-height: 1.5; }

.guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.guide-col-label { font-size: 1rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 8px; }

.guide-list { display: flex; flex-direction: column; }
.guide-row { font-size: 1rem; color: var(--grey-700); line-height: 1.55; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
.guide-row:last-child { border-bottom: none; }
.guide-row strong { font-size: 1rem; font-weight: 600; color: var(--black); }
.guide-row--highlight strong { color: var(--yellow-deep); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section { padding: 120px 0; background: var(--white); }
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:80px; align-items:start; }
.contact-info { display:flex; flex-direction:column; gap:36px; }
.contact-block h3 { font-family:var(--font-display); font-size:0.92rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--grey-600); margin-bottom:8px; }
.contact-block h3 em { font-style:italic; color:var(--grey-400); font-size:0.82rem; text-transform:none; }
.contact-block p { color:var(--grey-900); font-size:0.95rem; line-height:1.8; }
.contact-block p em { font-style:italic; color:var(--grey-400); font-size:0.82rem; }
.contact-block a { color:var(--grey-900); transition:color 0.2s; }
.contact-block a:hover { color:var(--yellow-deep); }
.contact-person {cursor: none; transition: color 0.2s; }
.contact-person:hover { color: var(--yellow-deep); }
.contact-map-wrapper { position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-float); aspect-ratio:4/3; }
.contact-map-wrapper iframe { width:100%; height:100%; border:none; display:block; }
.map-overlay-text { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(transparent,rgba(0,0,0,0.5)); color:var(--white); padding:16px 20px; font-size:0.88rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background:var(--black); color:rgba(255,255,255,0.4); padding:40px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-logo { display:flex; align-items:center; gap:10px; color:var(--white); font-family:var(--font-display); font-size:1rem; }
.footer-logo .logo-mark { color:var(--yellow); font-size:1.2rem; }
.footer-copy { font-size:0.78rem; }
.footer-nav { display:flex; gap:24px; }
.footer-nav a { font-size:0.82rem; color:rgba(255,255,255,0.4); transition:color 0.2s; }
.footer-nav a:hover { color:var(--yellow); }

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ══════════════════════════════════════
   GALLERY PAGE  (fotogalerie.html)
══════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--white);
  text-align: center;
}
.page-hero h1 { font-family:var(--font-display); font-size:clamp(2.8rem,6vw,5rem); font-weight:300; line-height:1.08; letter-spacing:-0.02em; }
.page-hero h1 em { font-style:italic; color:var(--yellow-deep); }
.page-hero p { color:var(--grey-700); font-size:1rem; margin-top:16px; }

/* Category filter */
.filter-bar { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; padding:40px 32px; background:var(--white); border-bottom:1px solid rgba(0,0,0,0.06); }
.filter-btn { padding:8px 20px; border-radius:50px; border:1.5px solid rgba(0,0,0,0.1); background:transparent; font-family:var(--font-body); font-size:0.84rem; cursor:none; color:var(--grey-700); transition:all 0.25s; }
.filter-btn:hover { border-color:var(--yellow); }
.filter-btn.active { background:var(--yellow); border-color:var(--yellow); color:var(--black); font-weight:500; }

/* Photo / video grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-flow: dense; /* fills gaps left by wide/tall cards instead of leaving holes */
  gap: 20px;
  padding: 60px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--grey-100);
  cursor: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.media-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.media-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.media-item.tall { grid-row: span 2; aspect-ratio: 3/4; }

.media-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
  display: block;
  transition: transform 0.5s var(--ease);
}
.media-item:hover .media-thumb { transform: scale(1.04); }

.media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.65));
  opacity: 0; transition: opacity 0.35s;
  display: flex; align-items: flex-end; padding: 20px;
}
.media-item:hover .media-overlay { opacity: 1; }

.media-info h3 { font-family:var(--font-display); font-size:1.1rem; color:var(--white); font-weight:400; }
.media-info p  { font-size:0.78rem; color:rgba(255,255,255,0.7); margin-top:4px; }

/* Video badge */
.media-item .video-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow); color: var(--black);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px;
}
.media-item .play-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; padding-left: 4px;
  transition: transform 0.3s, background 0.3s;
}
.media-item:hover .play-circle { transform: translate(-50%,-50%) scale(1.1); background: var(--yellow); }

/* Diploma badge — auto-added to _D / _D_2... photos by gallery-auto.js */
.media-item .diploma-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(20,20,20,0.72); color: #fff;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Gradient placeholder colours for demo items */
.media-item.demo-1 { background: linear-gradient(135deg,#1a0a00,#7a4a00,#F5C518); }
.media-item.demo-2 { background: linear-gradient(135deg,#0a0a20,#2a2a6a,#9090E0); }
.media-item.demo-3 { background: linear-gradient(135deg,#200808,#601818,#E04040); }
.media-item.demo-4 { background: linear-gradient(135deg,#001a0a,#005020,#40D090); }
.media-item.demo-5 { background: linear-gradient(135deg,#1a1a00,#606000,#E0D040); }
.media-item.demo-6 { background: linear-gradient(135deg,#00101a,#003050,#4090C0); }
.media-item.demo-7 { background: linear-gradient(135deg,#1a000a,#500020,#D04080); }
.media-item.demo-8 { background: linear-gradient(135deg,#0a0a0a,#303030,#909090); }

/* ══════════════════════════════════════
   NEWS PAGE  (novinky.html)
══════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s, box-shadow 0.35s;
  cursor: none;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }

.news-card-thumb {
  aspect-ratio: 16/9;
  background: var(--grey-100);
  position: relative;
  overflow: hidden;
}
.news-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
}
/* Add .news-card-thumb--contain to display a particular image without cropping. */
.news-card-thumb--contain img {
  object-fit: contain;
  padding: 16px;
}
.news-card-thumb.nc-1 { background: linear-gradient(135deg,#1a0a00,#7a4a00,#F5C518); }
.news-card-thumb.nc-2 { background: linear-gradient(135deg,#0a0a20,#2a2a6a,#9090E0); }
.news-card-thumb.nc-3 { background: linear-gradient(135deg,#200808,#601818,#E04040); }
.news-card-thumb.nc-4 { background: linear-gradient(135deg,#001a0a,#005020,#40D090); }
.news-card-thumb.nc-5 { background: linear-gradient(135deg,#1a1a00,#606000,#E0D040); }
.news-card-thumb.nc-6 { background: linear-gradient(135deg,#00101a,#003050,#4090C0); }

.news-card-body { padding: 28px; }
.news-tag {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow-deep); background: var(--yellow-light);
  padding: 4px 10px; border-radius: 50px;
}
.news-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.35; margin-bottom: 10px; }
.news-card p  { font-size: 0.86rem; color: var(--grey-700); line-height: 1.65; }
.news-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06); }
.news-date { font-size: 0.75rem; color: var(--grey-400); }
.news-link { font-size: 0.8rem; font-weight: 500; color: var(--yellow-deep); transition: letter-spacing 0.2s; }
.news-link:hover { letter-spacing: 0.04em; }

/* ══════════════════════════════════════
   REUSABLE POPUP (works for any div — see index.html / novinky.html)

   Template contract for content: each <template id="popup-xxx"> should contain
   exactly two wrapper divs:
     .popup-head  → eyebrow + heading. Stays pinned to the top, always visible.
     .popup-body  → everything else (text, .popup-gallery images, lists…). Scrolls.
══════════════════════════════════════ */
.popup-trigger { cursor: none; }

.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.popup-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }

.popup-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  width: 100%; max-width: 620px;
  max-height: 82vh;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s var(--ease);
  /* stack head (fixed) + body (scrolls) and clip to the rounded corners */
  display: flex; flex-direction: column;
  overflow: hidden;
}
.popup-overlay.open .popup-box { transform: scale(1) translateY(0); }
.popup-box.popup-box--large { max-width: 920px; }

.popup-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(10,10,10,0.12);
  background: var(--white);
  color: var(--grey-900);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  z-index: 1; /* sit above the sticky head */
  transition: all 0.3s var(--ease);
}
.popup-close:hover { background: var(--yellow); border-color: var(--yellow); transform: rotate(90deg); }

/* HEAD — never scrolls, always visible */
.popup-head-sticky {
  flex-shrink: 0;
  padding: 44px 60px 20px 44px; /* right padding clears the close button */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
}
.popup-head-sticky .section-eyebrow { text-align: left; margin-bottom: 8px; }
.popup-head .popup-head-title {font-family: var(--font-display); font-size: clamp(1.5rem,4vw,1.9rem); font-weight: 600; line-height: 1.2; color: var(--black); }

/* BODY — the only part that scrolls */
.popup-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 44px 44px; }
.popup-content > p { font-size: 0.92rem; color: var(--grey-700); line-height: 1.7; margin-bottom: 12px; }
.popup-content > p:last-child { margin-bottom: 0; }

/* image gallery: works with 1, 2, or 3 photos alike */
.popup-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; margin-bottom: 20px; }
.popup-gallery img { width: 100%; height: 180px; object-fit: cover; object-position: var(--image-position, center); border-radius: var(--radius-sm); display: block; background: var(--grey-100);}

.popup-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.popup-list li { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.popup-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popup-year { flex-shrink: 0; width: 52px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--yellow-deep); }
.popup-list strong { display: block; font-size: 0.92rem; font-weight: 500; margin-bottom: 4px; color: var(--black); }
.popup-list p { font-size: 0.85rem; color: var(--grey-700); line-height: 1.6; }

.profile-popup { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: 36px; align-items: start; }
.profile-photo-placeholder {width: 100%;height: 340px;border-radius: var(--radius-md);background: var(--grey-100);overflow: hidden;}
.profile-photo-placeholder img {width: 100%;height: 100%;object-fit: cover;transform: scale(var(--zoom, 1));object-position: var(--image-position, center);display: block;}
.profile-biography h4 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 14px; }
.profile-biography p { color: var(--grey-700); font-size: 0.98rem; line-height: 1.75; margin-bottom: 14px; }
.profile-biography p:last-child { margin-bottom: 0; }
.profile-biography .bio-subhead { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow-deep); margin: 20px 0 6px; }
.profile-biography .bio-subhead:first-of-type { margin-top: 20px; }

body.popup-open { overflow: hidden; }


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2,1fr); }
  .about-text-block { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map-wrapper { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .hero-badge { top: calc(var(--nav-h) + 12px); right: 20px; width: 72px; height: 72px; }
  .badge-num { font-size: 1.8rem; }
  .keys-3d { opacity: 0.1; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .price-cards { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .guide-columns { grid-template-columns: 1fr; gap: 20px; }
  .guide-panel { margin-bottom: 40px; }
  .section-header { margin-bottom: 48px; }
  .about,.timeline-section,.gallery-section,.pricing-section,.contact-section { padding: 80px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .media-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .media-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .video-sticky { padding: var(--nav-h) 16px 24px; }
  .about-parallax { background-attachment: scroll; min-height: 38vh; margin-top: 64px; }
  .popup-box { max-height: 88vh; }
  .popup-head-sticky { padding: 32px 52px 16px 24px; }
  .popup-content { padding: 20px 24px 32px; }
  .profile-popup { grid-template-columns: 1fr; gap: 24px; }
  .profile-photo-placeholder { min-height: 260px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .pricing-tabs { flex-direction: column; align-items: center; }
  .media-grid { padding: 40px 16px; grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; padding: 40px 16px 80px; }
}