@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans Condensed';
    src: url('../fonts/OpenSans-CondLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans Condensed';
    src: url('../fonts/OpenSans-CondBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #252421;
    --surface: #1b1a18;
    --surface-deep: #141311;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f2f2f2;
    --text-muted: #b5b3ac;
    --accent: #c9ff13;
    --danger: #f87171;
    --success: #4ade80;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-cond: 'Open Sans Condensed', 'Open Sans', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--bg) url('../img/bg_stranka.jpg') repeat;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    caret-color: transparent;
}

main {
    overflow-x: clip;
}

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

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

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

input, textarea, [contenteditable="true"] {
    caret-color: auto;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--accent);
    color: #111;
    padding: 8px 14px;
    font-weight: 600;
    z-index: 2500;
}
.skip-link:focus {
    left: 12px;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Plovoucí minimalistické menu inspirované původním menu.png */
.floating-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.floating-nav {
    pointer-events: auto;
    width: 100%;
    max-width: 960px;
    min-height: 76px;
    background: rgba(36, 36, 33, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.nav-brand {
    display: none;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f2f2f2;
    transition: color 0.18s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 44px;
}

.nav-links a {
    font-family: var(--font-cond);
    font-size: 27px;
    font-weight: 700;
    color: #f2f2f2;
    letter-spacing: 0.01em;
    transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    cursor: pointer;
    padding: 0 8px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    background: rgba(28, 28, 25, 0.98);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 16px 22px;
    transform: translateY(-130%);
    transition: transform 0.24s ease;
    z-index: 950;
}

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

.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer a {
    font-family: var(--font-cond);
    font-size: 24px;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer a:last-child {
    border-bottom: 0;
}

/* Klidný embosovaný Masthead věrný head.jpg */
.masthead {
    padding: 122px 0 42px;
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.masthead-mark {
    position: relative;
    width: 215px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.1)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.45));
}

.masthead-sator {
    width: 100%;
    height: auto;
    display: block;
    color: var(--logo-color, #080807);
    transition: color 0.25s ease;
}

@keyframes logoPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(var(--logo-glow-rgb, 201, 255, 19), var(--logo-glow-alpha-low, 0.08)))
                drop-shadow(0 0 18px rgba(var(--logo-glow-rgb, 201, 255, 19), var(--logo-glow-alpha-low, 0.08)));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(var(--logo-glow-rgb, 201, 255, 19), var(--logo-glow-alpha-high, 0.35)))
                drop-shadow(0 0 28px rgba(var(--logo-glow-rgb, 201, 255, 19), var(--logo-glow-alpha-high, 0.35)));
    }
}

.masthead-mark.has-logo-glow .masthead-sator {
    animation: logoPulseGlow var(--logo-glow-speed, 5.5s) ease-in-out infinite;
    will-change: filter;
}

@media (prefers-reduced-motion: reduce) {
    .masthead-mark.has-logo-glow .masthead-sator {
        animation: none;
        filter: drop-shadow(0 0 12px rgba(var(--logo-glow-rgb, 201, 255, 19), var(--logo-glow-alpha-high, 0.35)));
    }
}

.masthead-wordmark {
    margin: 0 auto;
    padding-right: 0;
    min-width: 0;
    text-align: left;
}

.masthead-wordmark h1 {
    margin: 0;
    line-height: 1.05;
    font-weight: 400;
}

.wordmark-main {
    display: inline-block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: clamp(2.1rem, 5.2vw, 4.1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    transform: scaleX(0.9);
    transform-origin: left center;
    margin-right: -0.32em;
}

.wordmark-legal {
    font-family: var(--font-cond);
    font-size: clamp(1.3rem, 3vw, 2.35rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #e9e8e2;
}

.wordmark-sub {
    margin: 2px 0 0;
    font-family: var(--font-cond);
    font-size: clamp(1.25rem, 2.8vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #eae9e3;
}

/* Promo / PF banner */
.promo-strip {
    padding: 8px 0 28px;
}

.promo-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(20, 20, 18, 0.48);
    border: 1px solid var(--border);
}

.promo-thumb {
    width: 120px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.14), 0 -1px 2px rgba(0, 0, 0, 0.65);
}

.promo-copy strong {
    font-family: var(--font-cond);
    font-size: 1.35rem;
    color: var(--accent);
}

.promo-copy p {
    margin: 2px 0 0;
    font-size: 0.95rem;
    color: var(--text);
}

/* Sekce */
.section {
    padding: 28px 0 36px;
}

.section-services {
    padding-top: 12px;
}

/* Nabízené služby – přehledná architektonická prezentace */
.services-showcase {
    padding-top: 6px;
}

.services-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 14px;
    border-top: 1px solid var(--border);
    margin-top: 26px;
    margin-bottom: 0;
}

.services-tab {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-top: 2px solid transparent;
    margin-top: -1px;
    padding: 12px 0 6px;
    font-family: var(--font-cond);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.services-tab:hover,
.services-tab.is-active {
    color: var(--accent);
}

.services-tab.is-active {
    border-top-color: var(--accent);
}

.services-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 36px;
    align-items: start;
}

.services-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    background: #141311;
    border: 1px solid #161613;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.14), 0 -1px 2px rgba(0, 0, 0, 0.65);
}

.service-visual {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-visual.is-active {
    opacity: 1;
    pointer-events: auto;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-detail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.service-copy {
    display: none;
}

.service-copy.is-active {
    display: block;
    animation: svcFade 0.28s ease;
}

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

.service-copy h3 {
    margin: 0;
    font-family: var(--font-cond);
    font-size: clamp(1.6rem, 6vw, 2.125rem);
    font-weight: 700;
    line-height: 1.08;
    color: #f2f2f2;
    overflow-wrap: break-word;
}

.service-rule {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 14px 0 16px;
}

.service-intro {
    margin: 0 0 18px;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.65;
    color: #deddd6;
}

.service-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.service-bullets li {
    position: relative;
    padding-left: 16px;
    font-family: var(--font-cond);
    font-size: 21px;
    font-weight: 300;
    line-height: 1.25;
    color: #f2f2f2;
}

.service-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--accent);
}

/* Monumentální embosované nadpisy sekcí (nabízené služby, o ateliéru, reference, kontakt) */
.section-monument {
    margin: 38px 0 18px;
    font-family: var(--font-cond);
    font-size: clamp(2.75rem, 14vw, 10.5rem);
    font-weight: 700;
    line-height: 0.84;
    letter-spacing: -0.05em;
    color: #080807;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.14), 0 -1px 2px rgba(0, 0, 0, 0.65);
    max-width: 100%;
    overflow-wrap: break-word;
}

.sub-heading-left,
.sub-heading-right {
    font-family: var(--font-cond);
    font-size: clamp(1.75rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #f2f2f2;
    margin: 18px 0 16px;
    min-width: 0;
    overflow-wrap: break-word;
}

.sub-heading-left {
    text-align: left;
}

.sub-heading-right {
    text-align: right;
}

.masthead-wordmark,
.service-copy h3,
.sub-heading-left,
.sub-heading-right,
.team-name,
.map-place-title,
.firm-name,
.promo-copy strong,
.modal-info-col h3 {
    text-shadow: 0 1px 0 #141311, 0 2px 0 #0e0d0c, 0 3px 0 #080807, 0 6px 14px rgba(0, 0, 0, 0.92);
}

/* O ateliéru - otevřená typografie bez karet */
.about-columns {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 56px;
    align-items: start;
}

.about-paragraph {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.62;
    text-align: justify;
    color: #ecebe4;
}

.about-software {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.about-footnote {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-entry {
    margin-bottom: 18px;
}

.team-name {
    display: block;
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    transition: color 0.18s ease;
}

a.team-name:hover {
    color: var(--accent);
}

.team-role {
    display: block;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.35;
    color: #deddd6;
}

/* Reference - textový filtr a čistá 2-sloupcová mřížka */
.ref-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 6px 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.ref-filter-btn {
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-family: var(--font-cond);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.ref-filter-btn:hover,
.ref-filter-btn.is-active {
    color: var(--accent);
}

.ref-filter-btn.is-active {
    border-bottom-color: var(--accent);
}

.ref-category-group {
    margin-bottom: 34px;
}

.ref-category-group.is-hidden {
    display: none;
}

.ref-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ref-cat-head .sub-heading-right {
    margin: 0 0 0 auto;
    min-width: 0;
}

.ref-carousel-nav {
    display: flex;
    gap: 8px;
}

.ref-nav-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

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

.ref-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.ref-grid {
    display: flex;
    gap: 18px;
    padding: 4px 0 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.ref-grid::-webkit-scrollbar {
    display: none;
}

.ref-tile {
    flex: 0 0 calc((100% - 18px) / 2);
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 450 / 250;
    background: #161613;
    border: 1px solid #161613;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.14), 0 -1px 2px rgba(0, 0, 0, 0.65);
}

.ref-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.ref-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-sator {
    width: 90px;
    height: 90px;
    opacity: 0.35;
}

.ref-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 16, 0.92);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ref-tile:hover .ref-overlay,
.ref-tile:focus-visible .ref-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ref-tile:hover .ref-cover {
    transform: scale(1.03);
}

.ref-overlay h4 {
    margin: 0 0 6px;
    font-family: var(--font-cond);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--accent);
}

.ref-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #f2f2f2;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ref-year {
    font-family: var(--font-cond);
    font-size: 18px;
    font-weight: 700;
    margin-right: 6px;
    color: #ffffff;
}

.ref-hint {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* Kontakt */
.contact-columns {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.map-box {
    width: 100%;
    aspect-ratio: 500 / 333;
    background: #171614;
    border: 1px solid #161613;
    overflow: hidden;
    display: flex;
}

.map-static-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.map-static-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.map-static-link:hover img {
    transform: scale(1.02);
    filter: brightness(1.06);
}

.map-static-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    background: rgba(18, 17, 15, 0.88);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-family: var(--font-cond);
    font-size: 13px;
    letter-spacing: 0.03em;
}

.map-static-attr {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 6px;
    background: rgba(18, 17, 15, 0.72);
    color: var(--muted);
    font-size: 11px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent-placeholder {
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.map-place-title {
    margin: 0;
    font-family: var(--font-cond);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.map-place-note {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 44ch;
}

.map-place-actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-planner {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.route-planner input {
    flex: 1;
    min-width: 180px;
    background: rgba(15, 15, 13, 0.65);
    border: 1px solid var(--border-strong);
    padding: 6px 10px;
    color: var(--text);
}

.contact-info-col {
    text-align: right;
    font-family: var(--font-cond);
    color: #f2f2f2;
    line-height: 1.25;
}

.contact-firm {
    margin: 0 0 14px;
}

.firm-name {
    display: inline-block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-weight: 700;
    font-size: 46px;
    letter-spacing: 0.01em;
    transform: scaleX(0.9);
    transform-origin: left center;
    margin-right: -0.32em;
}

.firm-legal {
    font-size: 28px;
}

.firm-sub {
    font-size: 28px;
}

.contact-address,
.contact-web {
    margin: 0 0 14px;
    font-size: 32px;
}

.contact-tel,
.contact-ids {
    margin: 0 0 14px;
    font-size: 24px;
}

.contact-info-col a:hover {
    color: var(--accent);
}

/* Minimalistická tlačítka */
.btn-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: #f2f2f2;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn-minimal:hover {
    border-color: #ffffff;
    color: #ffffff;
}

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

.btn-accent-outline:hover {
    background: var(--accent);
    color: #11110f;
}

/* Minimalistická patička */
.site-footer {
    padding: 26px 0 38px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 700;
    color: #c8c6be;
}

.footer-sep {
    opacity: 0.4;
}

.footer-link-btn {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link-btn:hover,
.footer-admin:hover {
    color: var(--accent);
}

.footer-admin {
    opacity: 0.72;
}

/* Modální okna (Lightbox + Cookie nastavení) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 9, 0.88);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1020px;
    max-height: 92vh;
    overflow-y: auto;
    background: #1c1b18;
    border: 1px solid var(--border-strong);
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    background: rgba(20, 20, 18, 0.9);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-media-col {
    padding: 18px;
    background: #11100f;
    border-right: 1px solid var(--border);
}

.modal-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #070706;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-stage img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
}

.modal-video-wrap {
    position: absolute;
    inset: 0;
    background: #11100f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-wrap[hidden] {
    display: none;
}

.modal-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-consent-gate {
    padding: 24px;
    text-align: center;
    max-width: 440px;
}

.video-consent-gate p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.video-consent-gate .gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    background: rgba(20, 20, 18, 0.8);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.stage-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.stage-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(20, 20, 18, 0.85);
    padding: 2px 8px;
    font-size: 12px;
}

.modal-caption {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
    min-height: 18px;
}

.modal-thumbs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-thumb {
    width: 66px;
    height: 46px;
    padding: 0;
    border: 1px solid transparent;
    background: #141311;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.65;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumb.is-active,
.modal-thumb:hover {
    opacity: 1;
    border-color: var(--accent);
}

.modal-info-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.modal-cat {
    font-family: var(--font-cond);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.modal-info-col h3 {
    margin: 0 0 14px;
    font-family: var(--font-cond);
    font-size: 26px;
    line-height: 1.2;
}

.modal-meta {
    margin: 0 0 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.modal-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.modal-meta dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.modal-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-simple-box {
    position: relative;
    z-index: 1;
    max-width: 780px;
    width: 100%;
    background: #1c1b18;
    border: 1px solid var(--border-strong);
    padding: 16px;
    text-align: center;
}

.modal-simple-box img {
    margin: 0 auto;
    max-height: 74vh;
    object-fit: contain;
}

.modal-simple-box p {
    margin: 12px 0 0;
    color: var(--text-muted);
}

/* Cookie lišta a nastavení */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1450;
    background: rgba(20, 19, 17, 0.97);
    border-top: 1px solid var(--border-strong);
    padding: 16px 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-copy strong {
    display: block;
    font-family: var(--font-cond);
    font-size: 20px;
    color: #ffffff;
}

.cookie-banner-copy p {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 68ch;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    background: #1c1b18;
    border: 1px solid var(--border-strong);
    padding: 26px;
}

.cookie-modal-box h3 {
    margin: 0 0 8px;
    font-family: var(--font-cond);
    font-size: 28px;
}

.cookie-modal-intro {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.cookie-groups {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.cookie-group {
    padding: 14px;
    background: rgba(15, 15, 13, 0.55);
    border: 1px solid var(--border);
}

.cookie-group-toggle {
    cursor: pointer;
}

.cookie-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cookie-group-head strong {
    font-size: 14.5px;
    color: #ffffff;
}

.cookie-always {
    font-size: 12px;
    color: var(--accent);
}

.cookie-group p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.cookie-group code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    font-size: 12px;
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* Dotyková zařízení: overlay referencí čitelný i bez najetí myší */
@media (hover: none) {
    .ref-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top, rgba(16, 16, 14, 0.92) 45%, rgba(16, 16, 14, 0.25));
    }
}

/* Responzivita */
@media (max-width: 900px) {
    .nav-brand {
    display: none;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f2f2f2;
    transition: color 0.18s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
        gap: 24px;
    }

    .nav-links a {
        font-size: 23px;
    }

    .masthead-inner {
        gap: 32px;
    }

    .masthead-mark {
        width: 180px;
    }

    .services-tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px 20px;
    }

    .services-stage,
    .about-columns,
    .contact-columns,
    .modal-dialog {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-col {
        text-align: left;
    }

    .modal-media-col {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .floating-nav {
        min-height: 62px;
        justify-content: space-between;
        padding: 0 18px;
    }

    .nav-brand {
        display: inline-flex;
        align-items: center;
    }

    .nav-brand {
    display: none;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f2f2f2;
    transition: color 0.18s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-drawer {
        top: 62px;
    }

    .masthead {
        padding: 96px 0 28px;
    }

    .masthead-inner {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .masthead-mark {
        width: clamp(82px, 24vw, 128px);
    }

    .masthead-wordmark {
        margin: 0 auto;
        padding-right: 0;
        min-width: 0;
    }

    .section-monument {
        line-height: 0.92;
        margin: 24px 0 14px;
    }

    .services-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .services-tab {
        width: 100%;
        padding: 10px 0 10px 12px;
        margin-top: 0;
        border-top: 0;
        border-bottom: 1px solid var(--border);
        border-left: 2px solid transparent;
        white-space: normal;
        text-align: left;
    }

    .services-tab:last-child {
        border-bottom: 0;
    }

    .services-tab.is-active {
        border-top-color: transparent;
        border-left-color: var(--accent);
    }

    .ref-tile {
        flex: 0 0 100%;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
