/* ============================================================
   VOD Hvožďany — moderní jednostránka
   override Quark/Spectre + custom design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
    --vod-primary:        #2d4a1e;
    --vod-primary-light:  #4a7c3c;
    --vod-primary-soft:   #6f9c5d;
    --vod-accent:         #d4a056;
    --vod-accent-light:   #e0b676;
    --vod-accent-dark:    #b8853a;
    --vod-dark:           #16201a;
    --vod-dark-2:         #1f2a22;
    --vod-light:          #faf7f0;
    --vod-light-2:        #ece5d3;
    --vod-gray:           #ece9df;
    --vod-text:           #1d231e;
    --vod-text-muted:     #5d645e;
    --vod-border:         rgba(20,30,18,0.08);
    --vod-shadow:         0 18px 50px rgba(20,30,18,0.10);
    --vod-shadow-lg:      0 30px 70px rgba(20,30,18,0.18);

    --vod-container: 1180px;
    --vod-section-pad: clamp(2.5rem, 5vw, 4.5rem);
    --vod-header-h: 6.5rem;
    --vod-header-h-scrolled: 5rem;
}

/* ============================================================
   Reset Spectre / Quark globals (the cause of "ujíždí")
   ============================================================ */

html, body { font-size: 17px !important; }
@media (max-width: 480px) { html, body { font-size: 16px !important; } }

body#top,
body.modular,
body.header-fixed,
body.sticky-footer {
    background: var(--vod-light);
    color: var(--vod-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    hanging-punctuation: first last;
}
h1, h2, h3, h4, .vod-hero h1 {
    text-wrap: balance;
}
p { text-wrap: pretty; }

/* Kill Quark's 4rem padding-top under #body-wrapper that we don't use */
body.header-fixed #body-wrapper,
body.header-fixed .hero + #start > #body-wrapper { padding-top: 0 !important; }
#body-wrapper .container { padding: 0 !important; }

/* The page-wrapper / #start should not impose container constraints */
#page-wrapper, #start, #start > * { width: 100%; max-width: none; margin: 0; padding: 0; }
body > .container, body.modular .container { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* Spectre's `section.section { padding: 0 1rem }` interferes — strip it on modular sections */
section.section { padding: 0 !important; position: relative; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--vod-text);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1.6rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.2rem; }
a { color: var(--vod-primary); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--vod-primary-light); }
strong { color: var(--vod-text); font-weight: 600; }
ul { padding-left: 1.25rem; }
ul li { margin-bottom: 0.4rem; }

::selection { background: var(--vod-accent); color: var(--vod-dark); }

/* ============================================================
   Header / sticky nav  (use Quark's `.scrolled` class, set by site.js)
   ============================================================ */

#header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: var(--vod-header-h) !important;
    z-index: 1000 !important;
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    transition: background .35s ease, height .35s ease, box-shadow .35s ease, border-color .35s ease;
    padding: 0 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}
/* Visual change once user scrolled (Quark adds .scrolled at scrollY > 75) */
#header.scrolled {
    background: rgb(22,32,26) !important;
    height: var(--vod-header-h-scrolled) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}
.header-dark #header:not(.scrolled),
.header-dark.header-transparent #header:not(.scrolled),
.header-transparent #header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%) !important;
}
#header.scrolled .navbar-section { height: var(--vod-header-h-scrolled) !important; }
#header .navbar-section { height: var(--vod-header-h) !important; transition: height .35s ease; }

/* Quark wraps #header in <section class="container grid-lg"> with max-width 976px — bust out */
#header > .container,
#header > section.container,
#header section.container.grid-lg,
#header section.container.grid-xl,
#header section.container.grid-md {
    max-width: var(--vod-container) !important;
    width: 100% !important;
    padding: 0 1.75rem !important;
    margin: 0 auto !important;
}

.navbar {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar-section { display: flex; align-items: center; }
.navbar-section.logo { flex: 0 0 auto; }
.navbar-section.desktop-menu { flex: 1 1 auto; justify-content: flex-end; }

/* Brand: VOD Hvožďany logo */
.navbar-brand { display: inline-flex !important; align-items: center; padding: 0 !important; }
.navbar-brand svg { display: none !important; }
.vod-brand-img {
    display: block;
    height: 88px;
    width: auto;
    max-width: 360px;
    transition: height .25s ease;
}
#header.scrolled .vod-brand-img { height: 72px; }
.mobile-logo .vod-brand-img { height: 100px; max-width: 380px; }
@media (max-width: 600px) {
    .vod-brand-img { height: 64px; max-width: 260px; }
    #header.scrolled .vod-brand-img { height: 56px; }
}

/* Desktop menu */
.dropmenu, .dropmenu.animated, nav.dropmenu {
    display: flex !important;
}
.dropmenu ul.navigation,
nav.dropmenu > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 0.1rem;
    align-items: center;
}
.dropmenu ul.navigation li { margin: 0 !important; padding: 0 !important; }
.dropmenu ul.navigation a {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.92rem !important;
    text-transform: none !important;
    letter-spacing: 0;
    padding: 0.55rem 0.95rem !important;
    border-radius: 6px;
    transition: all .2s ease;
    display: inline-block;
}
.dropmenu ul.navigation a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.10);
}
.dropmenu ul.navigation a.active {
    color: var(--vod-accent-light) !important;
    background: rgba(212,160,86,0.12);
}

/* Hide Quark's <840px desktop-menu rule is fine; we just style what's left */
@media (max-width: 840px) {
    #header .navbar-section.desktop-menu, .dropmenu { display: none !important; }
}

/* Mobile menu / hamburger — Quark colors hamburger lines #3085EE blue, override to white */
.mobile-menu .button_container span { background: #fff !important; }
/* Lift hamburger above #header (z-index 1000) so it's clickable on tablet/mobile */
.mobile-menu { z-index: 1100 !important; }
.mobile-menu .button_container { z-index: 1101 !important; }
.mobile-container { z-index: 1050 !important; }
@media (max-width: 840px) {
    .mobile-menu { display: block !important; }
}
@media (min-width: 841px) {
    .mobile-menu { display: none !important; }
}

/* Mobile overlay menu */
.mobile-container .overlay.open { opacity: 1 !important; }
.mobile-container .overlay {
    background: var(--vod-dark) !important;
    background-image: radial-gradient(ellipse at top, rgba(74,124,60,0.10), transparent 60%) !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 4.5rem !important;
}
/* Lock scroll on both html & body when mobile overlay is open.
   iOS Safari ignores `overflow: hidden` for touch-scroll, so we also apply
   `position: fixed`. The JS in vod-menu.js saves/restores scrollY and sets
   body.top so the page doesn't visually jump. */
html.mobile-nav-open,
body.mobile-nav-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
}
body.mobile-nav-open {
    position: fixed !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
/* Overlay itself stays scrollable inside (long menu support) */
.mobile-container .overlay {
    touch-action: auto !important;
    overscroll-behavior: contain;
}
body.mobile-nav-open #header { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
body.mobile-nav-open #header .navbar-brand::after { color: transparent !important; }
.overlay-menu, nav.overlay-menu { display: block; padding: 1rem 0; }
.overlay-menu ul.tree, nav.overlay-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    background: transparent !important;
}
.overlay-menu li { background: transparent !important; }
.overlay-menu ul a, .overlay-menu ul.tree a {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.9rem 1.5rem;
    display: block;
    transition: color .25s ease, letter-spacing .25s ease;
    text-decoration: none;
    background: transparent !important;
}
.overlay-menu ul a:hover, .overlay-menu ul.tree a:hover {
    color: var(--vod-accent) !important;
    letter-spacing: 0.04em;
}
.mobile-logo {
    text-align: center;
    padding: 1.2rem 0 0.6rem;
    display: flex;
    justify-content: center;
}
.mobile-logo .navbar-brand { padding: 0 !important; }
.mobile-logo svg { display: none !important; }

/* ============================================================
   Hero
   ============================================================ */

.vod-hero {
    min-height: 100vh;
    width: 100%;
    display: block;
    text-align: center;
    color: #fff;
    padding: calc(var(--vod-header-h) + 3rem) 1.5rem 6rem;
    position: relative;
    overflow: hidden;
    background-color: var(--vod-dark);
    background-attachment: fixed;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.vod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(20,30,18,0.15) 0%, rgba(20,30,18,0.65) 70%, rgba(20,30,18,0.85) 100%);
    pointer-events: none;
}
.vod-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    z-index: 1;
    position: sticky;
    top: calc(var(--vod-header-h) + 5rem);
    animation: vod-fade-up .8s cubic-bezier(.22,.61,.36,1) .15s both;
}
@media (max-width: 600px) {
    .vod-hero-inner { top: calc(var(--vod-header-h) + 2.5rem); }
}
/* Fade hero content out as we scroll past hero — prevents heading from sliding under header */
@supports (animation-timeline: scroll()) {
    .vod-hero-inner {
        animation: vod-fade-up .8s cubic-bezier(.22,.61,.36,1) .15s both,
                   vod-hero-exit linear both;
        animation-timeline: auto, scroll(root);
        animation-range: auto, 55vh 85vh;
    }
    @keyframes vod-hero-exit {
        to { opacity: 0; transform: translateY(-30px); }
    }
}
.vod-hero h1 {
    color: #fff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.6rem, 7.2vw, 5.4rem);
    margin: 0 0 1.6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
    text-wrap: balance;
    text-transform: uppercase;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "locl" 1;
    font-kerning: normal;
    text-rendering: geometricPrecision;
}
.vod-hero > .vod-hero-inner > h1 + p {
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    color: var(--vod-accent);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    margin: 0 auto 2.8rem;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0,0,0,0.40);
    position: relative;
    padding-top: 1.6rem;
    display: inline-block;
    text-indent: 0.42em;
}
.vod-hero > .vod-hero-inner > h1 + p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: var(--vod-accent);
    opacity: 0.75;
}
.vod-hero p:has(a),
.vod-hero p:last-of-type {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.vod-hero p a {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .25s cubic-bezier(.22,.61,.36,1);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.2;
}
.vod-hero p a:first-of-type {
    background: var(--vod-accent);
    color: var(--vod-dark) !important;
    box-shadow: 0 10px 30px rgba(212,160,86,0.4);
}
.vod-hero p a:first-of-type:hover {
    background: var(--vod-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(212,160,86,0.5);
    color: var(--vod-dark) !important;
}
.vod-hero p a:last-of-type:not(:first-of-type) {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    border-color: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vod-hero p a:last-of-type:not(:first-of-type):hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.7);
    color: #fff !important;
    transform: translateY(-3px);
}

.vod-hero-scroll {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    display: block;
    z-index: 3;
    background: transparent;
    transition: opacity .2s ease, transform .25s ease;
}
.vod-hero-scroll:hover { opacity: 0.85; transform: translate(-50%, 3px); }
.vod-hero-scroll span {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: rgba(255,255,255,0.95);
    border-radius: 2px;
    animation: vod-scroll 1.8s ease-in-out infinite;
}
@keyframes vod-scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   Section wrapper
   ============================================================ */

.vod-section {
    padding: var(--vod-section-pad) 2rem !important;
    background: var(--vod-light);
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    border-radius: 0;
}
.vod-section.bg-alt { background: var(--vod-light-2); }
@media (max-width: 600px) {
    .vod-section { padding: var(--vod-section-pad) 1.4rem !important; }
}
.vod-section.bg-dark {
    background: var(--vod-dark);
    color: rgba(255,255,255,0.85);
}
.vod-section.bg-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74,124,60,0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212,160,86,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.vod-section.bg-dark > .vod-container { position: relative; z-index: 1; }
.vod-section.bg-dark h2,
.vod-section.bg-dark h3,
.vod-section.bg-dark h4 { color: #fff; }
.vod-section.bg-dark strong { color: #fff; }
.vod-section.bg-dark a { color: var(--vod-accent-light); }
.vod-section.bg-dark a:hover { color: var(--vod-accent); }

.vod-container {
    max-width: var(--vod-container);
    margin: 0 auto;
    width: 100%;
}

/* H2 accent underline */
.vod-section h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}
.vod-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--vod-accent);
    border-radius: 2px;
}

/* Eyebrow label */
.vod-section > .vod-container > h2 + p:first-of-type,
.vod-section h2 ~ p {
    color: var(--vod-text-muted);
    font-size: 1.08rem;
    max-width: 720px;
}

/* Editorial heading — opt-in variant for short-content text sections (Živočišná, Rostlinná) and Projekty */
.h2-editorial .vod-text-body > h2:first-child,
.vod-projekty-intro > h2:first-child {
    margin-left: 2.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.6rem;
    padding-left: 1.4rem;
    padding-bottom: 0.2rem;
    border-left: 3px solid var(--vod-accent);
    line-height: 1.15;
}
.h2-editorial .vod-text-body > h2:first-child::after,
.vod-projekty-intro > h2:first-child::after { display: none; }
@media (max-width: 600px) {
    .h2-editorial .vod-text-body > h2:first-child,
    .vod-projekty-intro > h2:first-child {
        margin-left: 0;
        padding-left: 1rem;
    }
}

/* O družstvu — push the heading lower without breaking the visual rhythm */
.h2-pushed-down { padding-top: calc(var(--vod-section-pad) + 1.5rem); }
@media (max-width: 600px) {
    .h2-pushed-down { padding-top: calc(var(--vod-section-pad) + 0.5rem); }
}

/* O družstvu — vertical accent line before the heading */
.h2-pushed-down .vod-text-body > h2:first-child {
    padding-bottom: 0;
    padding-left: 1.4rem;
    margin-left: 0;
}
.h2-pushed-down .vod-text-body > h2:first-child::after {
    bottom: auto;
    right: auto;
    top: 50%;
    left: 0;
    width: 3px;
    height: 0.85em;
    transform: translateY(-50%);
    border-radius: 2px;
}
@media (max-width: 600px) {
    .h2-pushed-down .vod-text-body > h2:first-child { padding-left: 1rem; }
}

/* Kontakt — center the heading to match the centered card layout */
.vod-kontakt > .vod-container { text-align: center; }
.vod-kontakt > .vod-container > h2 { display: block; text-align: center; margin-bottom: 2.5rem; }
.vod-kontakt > .vod-container > h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.vod-kontakt .vod-kontakt-card { text-align: left; }
.vod-section.bg-dark h2 ~ p { color: rgba(255,255,255,0.75); }

/* ============================================================
   Text section with image
   ============================================================ */

.vod-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}
.vod-text-grid.align-left .vod-text-body { order: 2; }
.vod-text-grid.align-left .vod-text-image { order: 1; }
.vod-text-body p { color: var(--vod-text-muted); font-size: 1.05rem; line-height: 1.7; }
.vod-text-body ul { padding-left: 1.4rem; }
.vod-text-body ul li { margin-bottom: 0.5rem; color: var(--vod-text-muted); line-height: 1.6; }
.vod-text-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
    color: var(--vod-primary);
    font-weight: 600;
    letter-spacing: 0.005em;
}
.vod-text-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.4rem;
    font-size: 0.95rem;
    background: var(--vod-light-2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.vod-text-body table th,
.vod-text-body table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--vod-border);
    color: var(--vod-text);
}
.vod-text-body table th {
    background: rgba(74,124,60,0.08);
    color: var(--vod-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vod-text-body table tr:last-child td { border-bottom: none; }
.vod-text-body table td:last-child {
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--vod-text);
    font-weight: 500;
}

.vod-text-image {
    position: relative;
    isolation: isolate;
}
.vod-text-image img,
.vod-text-image .vod-img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 450px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--vod-shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.vod-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    box-shadow: var(--vod-shadow-lg);
    position: relative;
    overflow: hidden;
}
.vod-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.18) 0%, transparent 40%);
}
.vod-img-placeholder--green {
    background: linear-gradient(135deg, var(--vod-primary-soft) 0%, var(--vod-primary) 100%);
}
.vod-img-placeholder--gold {
    background: linear-gradient(135deg, var(--vod-accent-light) 0%, var(--vod-accent-dark) 100%);
}
.vod-img-placeholder--dark {
    background: linear-gradient(135deg, #3a5a2a 0%, var(--vod-dark) 100%);
}

@media (max-width: 800px) {
    .vod-text-grid { grid-template-columns: 1fr; gap: 2rem; }
    .vod-text-grid.align-left .vod-text-body,
    .vod-text-grid.align-left .vod-text-image { order: initial; }
}


/* ============================================================
   Projekty (EU)
   ============================================================ */

.vod-projekty-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
.vod-projekty-intro {
    position: static;
    max-width: 720px;
}
.vod-projekty .vod-projects {
    max-width: 720px;
}
.vod-eu-flag {
    margin-top: 1.5rem;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,51,153,0.18);
}
.vod-eu-flag svg { display: block; }
.vod-projects {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}
.vod-projects li {
    background: rgba(212, 160, 86, 0.06);
    border-left: 4px solid var(--vod-accent);
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    transition: transform .25s ease, background .25s ease;
}
.vod-projects li:hover {
    background: rgba(212, 160, 86, 0.10);
    transform: translateX(4px);
}
.vod-project-image {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid var(--vod-border);
}
.vod-project-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #fff;
}
.vod-project-body {
    padding: 1.4rem 1.6rem;
}
.vod-projects h4 {
    margin: 0 0 0.4rem;
    color: var(--vod-text);
    font-size: 1.1rem;
    font-weight: 600;
}
.vod-projects p {
    margin: 0;
    color: var(--vod-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.vod-project-funding {
    margin-top: 0.7rem !important;
    font-size: 0.85rem !important;
    color: #003399 !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}
@media (max-width: 800px) {
    .vod-projekty-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .vod-projekty-intro { position: static; }
}

/* ============================================================
   Kontakt (dark)
   ============================================================ */

.vod-kontakt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.vod-kontakt-grid--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}
.vod-kontakt-grid--single .vod-kontakt-card {
    padding: 2.6rem 2.4rem;
    text-align: left;
}
.vod-kontakt-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    transition: all .3s ease;
}
.vod-kontakt-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,160,86,0.30);
    transform: translateY(-3px);
}
.vod-kontakt-card h3 {
    margin: 0 0 1.3rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.vod-kontakt-card p { font-size: 0.95rem; margin-bottom: 0.7rem; color: rgba(255,255,255,0.85); line-height: 1.55; }
.vod-kontakt-card a {
    color: #fff !important;
    border-bottom: 1px dashed rgba(212,160,86,0.4);
    transition: border-color .2s ease, color .2s ease;
}
.vod-kontakt-card a:hover { color: var(--vod-accent) !important; border-bottom-color: var(--vod-accent); }
.vod-kontakt-ident {
    margin-top: 1.4rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.02em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: baseline;
}
.vod-kontakt-ident-sep { color: var(--vod-accent); opacity: 0.7; }
.vod-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    display: inline-block;
    margin-right: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.vod-note {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-top: 1.2rem;
    font-style: italic;
}
.vod-kontakt-people ul { list-style: none; padding: 0; margin: 0; }
.vod-kontakt-people li {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.92rem;
}
.vod-kontakt-people li:last-child { border-bottom: none; padding-bottom: 0; }
.vod-people-role {
    color: rgba(255,255,255,0.45);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}
.vod-people-name { color: #fff; font-weight: 500; font-size: 0.98rem; }
.vod-people-tel { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 0.1rem; }

@media (max-width: 900px) {
    .vod-kontakt-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

.vod-footer {
    background: #0c100d;
    color: #fff;
    padding: 3rem 1.5rem 2.4rem;
    text-align: center;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.vod-footer .vod-container { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.vod-footer p { margin: 0; color: #fff; }
.vod-footer-logo {
    display: inline-flex;
    margin-bottom: 0.1rem;
    opacity: 0.95;
    transition: opacity .25s ease;
}
.vod-footer-logo:hover { opacity: 1; }
.vod-footer-logo img {
    height: 56px;
    width: auto;
    max-width: 220px;
    display: block;
}
@media (max-width: 600px) {
    .vod-footer-logo img { height: 44px; max-width: 180px; }
}
.vod-footer-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}
.vod-footer-name {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #fff;
}
.vod-footer-name strong { font-weight: 600; color: #fff; }
.vod-footer-addr {
    font-size: 0.83rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    align-items: baseline;
    letter-spacing: 0.01em;
}
.vod-footer-sep { color: var(--vod-accent); opacity: 0.65; }
.vod-footer-meta {
    font-size: 0.78rem;
    margin-top: 0.6rem !important;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 760px;
    line-height: 1.55;
    letter-spacing: 0.015em;
}

/* Hide Quark's default footer partial */
body > footer:not(.vod-footer),
#footer:not(.vod-footer) {
    display: none !important;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes vod-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vod-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vod-section .vod-container,
section.section.modular-features .container > .frame-box {
    animation: vod-fade-in .6s ease-out;
}

/* (content-visibility removed — was making off-screen sections render blank in screenshots/print) */

/* ============================================================
   Small util / cleanup
   ============================================================ */

img { max-width: 100%; height: auto; }
.vod-section.bg-dark ul, .vod-section.bg-dark li { color: rgba(255,255,255,0.8); }

/* iOS safe-area niceties */
@supports (padding: env(safe-area-inset-bottom)) {
    .vod-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
}

/* Make sure spectre's body overflow-x: hidden stays put (no horizontal scroll) */
html, body { max-width: 100%; }

/* ============================================================
   Responsive refinements
   ============================================================ */

/* Tablet (≤ 1024px) — soften padding, give container side breathing room */
@media (max-width: 1024px) {
    :root { --vod-section-pad: clamp(4rem, 8vw, 7rem); }
    .vod-section { padding-left: 2rem; padding-right: 2rem; }
    .vod-text-grid { gap: 3rem; }
}

/* Tablet portrait (≤ 840px) — text/image columns stack earlier on narrow viewports */
@media (max-width: 840px) {
    .vod-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); }
    .vod-hero > .vod-hero-inner > h1 + p { letter-spacing: 0.32em; }
    .vod-projekty-grid { grid-template-columns: 1fr; gap: 2rem; }
    .vod-projekty-intro { position: static; }
    .vod-kontakt-grid--single { grid-template-columns: 1fr; }
}

/* Small mobile (≤ 600px) — single column body, tighter heading offset */
@media (max-width: 600px) {
    .vod-section { padding-left: 1.4rem; padding-right: 1.4rem; }
    .vod-hero { padding-left: 1.4rem; padding-right: 1.4rem; }
    .vod-hero p:has(a),
    .vod-hero p:last-of-type { flex-direction: column; gap: 0.7rem; align-items: stretch; }
    .vod-hero p a { text-align: center; }
    .vod-kontakt-grid--single .vod-kontakt-card { padding: 2rem 1.6rem; }
    .vod-footer-logo img { height: 80px !important; }
}

/* Very small viewports (≤ 480px) — keep sections compact, hero on one screen */
@media (max-width: 480px) {
    :root { --vod-section-pad: 3rem; }
    .vod-hero { padding-top: calc(var(--vod-header-h) + 1.5rem); padding-bottom: 3.5rem; }
    .vod-hero h1 { font-size: 2.2rem; line-height: 1.1; }
    .vod-hero > .vod-hero-inner > h1 + p { font-size: 0.72rem; letter-spacing: 0.28em; padding-top: 1.2rem; }
    .vod-section { padding-left: 1.1rem; padding-right: 1.1rem; }
    .vod-kontakt-card p { font-size: 0.92rem; }
    .vod-project-image img { max-height: 240px; }
    .vod-footer { padding: 2rem 1rem 1.8rem; }
    .vod-footer-logo img { height: 70px !important; max-width: 240px !important; }
}

/* Landscape phones (short height) — hero should fit without scroll */
@media (max-height: 520px) and (orientation: landscape) {
    .vod-hero { min-height: auto; padding-top: calc(var(--vod-header-h) + 1.2rem); padding-bottom: 2rem; }
    .vod-hero h1 { font-size: 2rem; margin-bottom: 0.8rem; }
    .vod-hero > .vod-hero-inner > h1 + p { padding-top: 0.8rem; margin-bottom: 1.4rem; }
    .vod-hero-scroll { display: none; }
}

/* Ultra-wide (≥ 1600px) — limit max line length for readability */
@media (min-width: 1600px) {
    :root { --vod-container: 1280px; }
}

/* Section anchor offset (so fixed header doesn't cover heading when clicked) */
.vod-section, .vod-hero { scroll-margin-top: var(--vod-header-h); }
#start > div[id] { scroll-margin-top: var(--vod-header-h); }

/* Zivocisna: shift image crop to the right so the rightmost cow's head is fully visible */
#zivocisna + section .vod-text-image img,
#zivocisna + section .vod-text-image .vod-img {
    object-position: 80% center;
}

/* Standalone pages (e.g. /dokumenty): give content room below fixed header and constrain width */
body.standalone-page.header-fixed #body-wrapper,
body.projekty-page.header-fixed #body-wrapper {
    padding-top: var(--vod-header-h) !important;
    background: var(--vod-light);
    min-height: 100vh;
}
body.standalone-page.header-fixed #body-wrapper {
    padding-top: calc(var(--vod-header-h) + 3rem) !important;
    padding-bottom: 6rem;
}
/* Projekty as standalone page: full-width layout (no container constraint), section provides its own padding */
body.projekty-page #body-wrapper > .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.projekty-page section.projekty-standalone {
    margin: 0;
}
body.standalone-page #body-wrapper > .container {
    max-width: 780px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}
body.standalone-page #body-wrapper h2 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--vod-dark);
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
    position: relative;
}
body.standalone-page #body-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 3px;
    height: 0.85em;
    background: var(--vod-accent);
}
body.standalone-page #body-wrapper p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--vod-text);
    margin-bottom: 1.2rem;
}
body.standalone-page #body-wrapper a {
    color: var(--vod-primary);
    text-decoration: underline;
    text-decoration-color: var(--vod-accent);
    text-underline-offset: 3px;
}
body.standalone-page #body-wrapper a:hover {
    text-decoration-thickness: 2px;
}

/* ============================================================
   Dokumenty — auto-generated download list (page media files)
   ============================================================ */
.vod-docs {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}
.vod-docs .vod-doc { margin: 0; }
.vod-doc-link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--vod-border);
    border-left: 4px solid var(--vod-accent);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 6px 18px rgba(20,30,18,0.05);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none !important;
}
.vod-doc-link:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 26px rgba(20,30,18,0.10);
    background: rgba(212,160,86,0.06);
}
.vod-doc-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: var(--vod-primary);
    color: #fff;
    font-family: 'Montserrat','Inter',sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}
.vod-doc-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.vod-doc-name {
    color: var(--vod-text);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.3;
    word-break: break-word;
}
.vod-doc-meta {
    color: var(--vod-text-muted);
    font-size: 0.82rem;
}
.vod-doc-action {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--vod-primary);
    border: 1px solid rgba(45,74,30,0.25);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.vod-doc-link:hover .vod-doc-action {
    background: var(--vod-accent);
    color: var(--vod-dark);
    border-color: var(--vod-accent);
}
.vod-docs-empty {
    margin-top: 1.5rem !important;
    color: var(--vod-text-muted) !important;
    font-style: italic;
}
@media (max-width: 540px) {
    .vod-doc-link { gap: 0.85rem; padding: 0.85rem 1rem; }
    .vod-doc-icon { width: 2.6rem; height: 2.6rem; font-size: 0.65rem; }
    .vod-doc-action { display: none; }
    .vod-doc-name { font-size: 0.95rem; }
}
