/* ══════════════════════════════════════════════════════════════════
   Genius loci Sudslava — Shared Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    --bg: #FCFCFB;
    --text: #1A1A1A;
    --text-muted: rgba(26, 26, 26, 0.7);
    --accent: #5C6B4F;
    --accent-warm: #8B7355;
    --border: rgba(26, 26, 26, 0.08);
    --border-hover: rgba(26, 26, 26, 0.18);
    --glass: rgba(252, 252, 251, 0.88);
    --dark: #1A1A1A;
    --dark-muted: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --radius: 4px;
    --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
}

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

img {
    display: block;
    max-width: 100%;
}

/* ── Scroll Reveal ─────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ── Typography Utilities ──────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.85;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border-hover);
    padding-bottom: 4px;
}

.btn-text:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-text svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.btn-text:hover svg {
    transform: translateX(4px);
}

/* ── Navigation ────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    height: 64px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* On subpages (white bg), nav starts with bg too */
nav.nav-solid {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active {
    font-weight: 500;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: var(--transition-fast);
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Page Header (subpages) ────────────────────────────────────── */
.page-header {
    padding: 140px 6% 60px;
    text-align: center;
}

.page-header .eyebrow {
    justify-content: center;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.85;
}

/* ── Subpages Floating Wrapper ───────────────────────────────────── */
body.subpage-body {
    background-image: url('Fara.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--dark);
}

.subpage-wrapper {
    background: var(--bg);
    margin: 100px auto 60px;
    width: 92%;
    max-width: 1400px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: wrapperSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wrapperSlideUp {
    from {
        opacity: 0;
        transform: translateY(40vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust header padding when inside wrapper */
.subpage-wrapper .page-header {
    padding: 80px 6% 40px;
}

/* ── Novinky Gallery ────────────────────────────────────────────── */
.novinka-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.novinka-gallery-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.novinka-gallery-item:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition);
}

.novinka-gallery-item:hover:after {
    background: rgba(0,0,0,0.15);
}

.novinka-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.novinka-gallery-item:hover img {
    transform: scale(1.1);
}

/* ── Page Content ──────────────────────────────────────────────── */
.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6% 100px;
}

.prose {
    max-width: 720px;
}

.prose p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 24px;
}

.prose h2 {
    font-size: 1.6rem;
    margin-top: 56px;
    margin-bottom: 20px;
    color: var(--text);
}

.prose h3 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.prose blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0;
    line-height: 1.6;
}

.prose ul, .prose ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.prose li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 8px;
}

/* ── Hero (index) ──────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('Fara.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(252, 252, 251, 0.3) 0%,
        rgba(252, 252, 251, 0.15) 40%,
        rgba(26, 26, 26, 0.25) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 6%;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bg);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroFadeUp 1s 0.3s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 600;
    font-style: normal;
    line-height: 1.08;
    color: var(--bg);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 1.1s 0.5s forwards;
}

.hero-line {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 28px;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.8s forwards;
}

.hero-org {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    animation: heroFadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: heroFadeUp 0.8s 1.2s forwards;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    animation: scrollLine 2s ease 1.5s infinite;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ── News Cards (homepage + novinky.html) ──────────────────────── */
#novinky-section {
    padding: 120px 6%;
}

.novinky-header {
    max-width: var(--max-w);
    margin: 0 auto 56px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.novinky-header-text .section-desc {
    margin-top: 8px;
}

.novinky-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    white-space: nowrap;
}

.novinky-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.novinky-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.novinka-card {
    border: 1px solid var(--border);
    padding: 36px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.novinka-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.novinka-date {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 14px;
}

.novinka-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}

.novinka-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.novinka-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 20px;
}

.novinka-read-more:hover {
    gap: 10px;
}

/* Full news list (novinky.html) */
.novinky-full-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Činnost / Services cards ──────────────────────────────────── */
#cinnost {
    padding: 120px 6%;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(92, 107, 79, 0.04) 50%, var(--bg) 100%);
}

.cinnost-header {
    max-width: var(--max-w);
    margin: 0 auto 72px;
    text-align: center;
}

.cinnost-header .section-desc {
    margin: 0 auto;
}

.cinnost-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cinnost-card {
    background: white;
    padding: 48px 36px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cinnost-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.cinnost-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: rgba(92, 107, 79, 0.08);
    border-radius: 50%;
}

.cinnost-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.cinnost-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.cinnost-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── Kulisy section ────────────────────────────────────────────── */
#kulisy {
    background: var(--dark);
    color: white;
    padding: 140px 6%;
    position: relative;
    overflow: hidden;
}

.kulisy-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.kulisy-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #2a2520;
    overflow: hidden;
}

.kulisy-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.kulisy-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(139, 115, 85, 0.2));
}

.kulisy-visual-text {
    position: absolute;
    bottom: 32px;
    left: 32px;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-style: italic;
    opacity: 0.15;
    color: white;
    line-height: 1;
}

#kulisy .eyebrow {
    color: var(--accent-warm);
}

#kulisy .eyebrow::before {
    background: var(--accent-warm);
}

.kulisy-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 28px;
}

.kulisy-text p {
    color: var(--dark-muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.kulisy-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kulisy-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--accent-warm);
    line-height: 1;
    margin-bottom: 8px;
}

.kulisy-stat-label {
    font-size: 0.8rem;
    color: var(--dark-muted);
    letter-spacing: 0.05em;
}

/* ── Příběh / About ────────────────────────────────────────────── */
#pribeh {
    padding: 140px 6%;
}

.pribeh-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.pribeh-text h2 {
    margin-bottom: 32px;
}

.pribeh-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.pribeh-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0;
    line-height: 1.6;
}

.pribeh-img {
    position: relative;
}

.pribeh-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.pribeh-img-caption {
    position: absolute;
    bottom: -30px;
    right: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ── Interactive Timeline (kalendar-akci) ──────────────────────── */
.timeline-container {
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Year navigation ribbon */
.timeline-years {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}

.timeline-year-btn {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 100px;
}

.timeline-year-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.timeline-year-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Category filter pills */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 40px;
}

.timeline-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 100px;
}

.timeline-filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.timeline-filter-pill.active {
    background: var(--bg);
    border-color: var(--text);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.filter-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Stats bar */
.timeline-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 56px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* The spiral timeline */
.timeline-spiral {
    position: relative;
    padding: 20px 0 60px;
}

/* Year group */
.timeline-year-group {
    position: relative;
    margin-bottom: 16px;
}

/* Year marker */
.timeline-year-marker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.year-marker-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.year-marker-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    padding: 4px 20px;
    background: var(--bg);
    letter-spacing: -0.01em;
}

/* Event card layout */
.timeline-event {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    opacity: 1;
    transform: translateY(0);
}

.timeline-event.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Render events as a 2-column grid inside each group */
.timeline-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 700px) {
    .timeline-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.timeline-event-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 28px 28px 20px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.timeline-event-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Card internal styles */
.event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.event-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 100px;
}

.event-card-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.event-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.35;
    margin-bottom: 12px;
}

.event-card-desc {
    font-size: 1rem;
    color: var(--text);
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

.event-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.event-card-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.event-card-location svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.event-card-gcal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    padding: 8px 16px;
    border: 2px solid rgba(92, 107, 79, 0.3);
    border-radius: 100px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.event-card-gcal:hover {
    background: rgba(92, 107, 79, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.event-card-gcal svg {
    flex-shrink: 0;
}

/* Empty state */
.timeline-empty {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 80px 0;
    font-style: italic;
}

/* ── Timeline Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .timeline-spiral::before {
        left: 20px;
    }

    .timeline-event--left,
    .timeline-event--right {
        padding-left: 52px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-event--left .timeline-event-card,
    .timeline-event--right .timeline-event-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-event-dot {
        left: 20px;
    }

    .timeline-event--left .timeline-event-card::after,
    .timeline-event--right .timeline-event-card::after {
        left: -7px;
        right: auto;
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        border-right: none;
        border-bottom: none;
    }

    .timeline-stats {
        gap: 32px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .event-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 500px) {
    .timeline-years {
        gap: 4px;
    }

    .timeline-year-btn {
        font-size: 0.82rem;
        padding: 6px 14px;
    }

    .timeline-filter-pill {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .timeline-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .timeline-event-card {
        padding: 20px 18px 16px;
    }

    .event-card-title {
        font-size: 1rem;
    }

    .event-card-gcal span {
        display: none;
    }
}

/* ── Gallery Grid ──────────────────────────────────────────────── */
.gallery-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(92, 107, 79, 0.06);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(26, 26, 26, 0.3);
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 32px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.5;
    transition: var(--transition-fast);
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.3;
    transition: var(--transition-fast);
    padding: 30px;
    line-height: 1;
    z-index: 10001;
    user-select: none;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* ── Services page ─────────────────────────────────────────────── */
.services-block {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-bottom: 80px;
}

.services-block + .services-block {
    padding-top: 80px;
    border-top: 1px solid var(--border);
}

.services-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.services-block h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.services-block p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

.services-block ul {
    list-style: none;
    padding: 0;
}

.services-block ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.services-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.services-info-box {
    background: rgba(92, 107, 79, 0.06);
    padding: 32px;
    border-left: 3px solid var(--accent);
    margin-top: 24px;
}

.services-info-box p {
    margin-bottom: 8px;
}

.services-info-box p:last-child {
    margin-bottom: 0;
}

.services-info-box strong {
    font-weight: 500;
    color: var(--text);
}

/* ── Support page ──────────────────────────────────────────────── */
.podpora-content {
    max-width: 680px;
    margin: 0 auto;
}

.podpora-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 24px;
}

.podpora-account {
    padding: 40px;
    background: rgba(92, 107, 79, 0.05);
    border: 1px solid var(--border);
    margin: 40px 0;
}

.podpora-account h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.podpora-account-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.podpora-account-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.podpora-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent);
    text-align: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* ── Contact page ──────────────────────────────────────────────── */
.kontakt-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kontakt-info h2 {
    font-size: 1.4rem;
    margin-bottom: 28px;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.kontakt-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.kontakt-item a:hover {
    color: var(--accent);
}

.kontakt-map {
    border: 1px solid var(--border);
    overflow: hidden;
}

.kontakt-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius);
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 6% 40px;
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--dark-muted);
    line-height: 1.8;
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dark-muted);
    margin-bottom: 20px;
}

.footer-nav-link {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.footer-nav-link:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

.footer-back-top {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-back-top:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pribeh-grid,
    .kulisy-grid,
    .kontakt-grid,
    .services-two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cinnost-grid {
        grid-template-columns: 1fr 1fr;
    }

    .novinky-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        height: 64px;
    }

    nav.scrolled, nav.nav-solid {
        height: 56px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--text);
    }

    .nav-hamburger {
        display: flex;
    }

    .page-header {
        padding: 110px 6% 40px;
    }

    .novinky-grid,
    .novinky-full-grid {
        grid-template-columns: 1fr;
    }

    .cinnost-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .novinky-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #pribeh, #cinnost, #kulisy, #novinky-section {
        padding: 80px 6%;
    }

    .kulisy-stats {
        flex-direction: column;
        gap: 24px;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pribeh-img {
        order: -1;
    }
}
