:root {
    --forest: #18392a;
    --forest-2: #244d39;
    --brown: #4a2c14;
    --sand: #eee7db;
    --cream: #faf8f3;
    --white: #ffffff;
    --ink: #20251f;
    --muted: #687067;
    --line: #dcd9d0;
    --accent: #b78d55;
    --shadow: 0 18px 50px rgba(24, 57, 42, .14);
    --radius: 26px;
    --radius-sm: 16px;
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: .75rem 1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--forest);
    box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }

.wrap {
    width: min(calc(100% - 40px), var(--wrap));
    margin-inline: auto;
}

.topbar {
    background: var(--forest);
    color: rgba(255,255,255,.86);
    font-size: .86rem;
}
.topbar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__contacts { display: flex; align-items: center; gap: .65rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(31, 44, 36, .08);
}
.nav-shell {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}
.nav-shell__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    min-width: max-content;
}
.brand img {
    width: clamp(190px, 22vw, 280px);
    height: auto;
    border-radius: 0;
    box-shadow: none;
}
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong {
    color: var(--brown);
    font-size: 1.12rem;
    letter-spacing: .015em;
}
.brand__text small {
    margin-top: .32rem;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
}
.main-nav > a,
.nav-dropdown__toggle {
    border: 0;
    background: transparent;
    text-decoration: none;
    padding: .78rem .88rem;
    border-radius: 999px;
    color: #273029;
    font-weight: 650;
    font-size: .94rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.main-nav > a:hover,
.nav-dropdown__toggle:hover,
.main-nav .is-active,
.nav-dropdown__toggle.is-active {
    background: #edf3ef;
    color: var(--forest);
}
.main-nav .nav-cta {
    margin-left: .45rem;
    padding-inline: 1.15rem;
    background: var(--forest);
    color: #fff;
}
.main-nav .nav-cta:hover { background: var(--forest-2); color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown__toggle { display: flex; align-items: center; gap: .35rem; }
.nav-dropdown__menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: 250px;
    padding: .55rem;
    background: #fff;
    border: 1px solid rgba(33, 50, 40, .08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: .16s ease;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nav-dropdown__menu a {
    display: block;
    padding: .72rem .8rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
}
.nav-dropdown__menu a:hover { background: #f1f4f1; color: var(--forest); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .66rem .9rem;
    font-weight: 700;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 9px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.hero {
    position: relative;
    min-height: clamp(580px, 78vh, 780px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #1f3b2d url('../images/schwaigrovka-hero.webp') center 54% / cover no-repeat;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 28, 21, .78) 0%, rgba(12, 28, 21, .52) 38%, rgba(12, 28, 21, .12) 70%, rgba(12, 28, 21, .06) 100%),
        linear-gradient(0deg, rgba(12, 28, 21, .33), transparent 45%);
}
.hero__content {
    width: min(720px, 100%);
    padding: 5.4rem 0 7.4rem;
}
.eyebrow {
    margin: 0 0 .75rem;
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #d9c4a0;
}
.hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(3rem, 7vw, 6.3rem);
    line-height: .92;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.hero__lead {
    max-width: 650px;
    margin: 1.5rem 0 0;
    font-size: clamp(1.08rem, 2vw, 1.34rem);
    color: rgba(255,255,255,.9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #fff; color: var(--forest); }
.btn--primary:hover { background: #f4efe7; }
.btn--ghost { border: 1px solid rgba(255,255,255,.52); color: #fff; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-2); }
.btn--outline { border: 1px solid #cfcfc7; color: var(--forest); background: #fff; }

.hero__badge {
    position: absolute;
    right: max(24px, calc((100vw - var(--wrap)) / 2));
    bottom: 42px;
    max-width: 290px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
    background: rgba(18, 40, 30, .54);
    backdrop-filter: blur(12px);
    font-size: .9rem;
    color: rgba(255,255,255,.9);
}
.hero__badge strong { display: block; color: #fff; margin-bottom: .12rem; }

.quick-facts {
    position: relative;
    z-index: 2;
    margin-top: -52px;
}
.quick-facts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.fact { padding: 1.35rem 1.6rem; display: flex; gap: .85rem; align-items: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf3ef;
    color: var(--forest);
    font-weight: 900;
}
.fact strong { display: block; line-height: 1.15; }
.fact span { display: block; margin-top: .22rem; color: var(--muted); font-size: .88rem; }

.section { padding: clamp(4.3rem, 8vw, 7rem) 0; }
.section--white { background: #fff; }
.section--forest { background: var(--forest); color: #fff; }
.section--sand { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section--forest .section-head p { color: rgba(255,255,255,.72); }

.split {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(2.4rem, 6vw, 6rem);
    align-items: center;
}
.media-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card__note {
    position: absolute;
    left: 22px;
    bottom: 22px;
    max-width: 280px;
    padding: .8rem .95rem;
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    backdrop-filter: blur(10px);
    font-size: .88rem;
    line-height: 1.45;
}
.copy p { color: #545e55; }
.copy .lead { font-size: 1.16rem; color: #323a33; }
.copy__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.card {
    min-height: 250px;
    padding: 1.65rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(38, 56, 45, .08);
    box-shadow: 0 10px 32px rgba(35, 55, 42, .07);
    display: flex;
    flex-direction: column;
}
.card__number { font-size: .78rem; font-weight: 900; letter-spacing: .15em; color: var(--accent); }
.card h3 { margin: .9rem 0 .55rem; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }
.card a { margin-top: auto; padding-top: 1.2rem; color: var(--forest); font-weight: 800; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.gallery-preview,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.gallery-preview a,
.gallery-grid a {
    overflow: hidden;
    border-radius: 20px;
    background: #d9dfda;
    box-shadow: 0 10px 28px rgba(17, 42, 30, .1);
}
.gallery-preview a:nth-child(1) { grid-column: span 7; }
.gallery-preview a:nth-child(2) { grid-column: span 5; }
.gallery-preview a:nth-child(3) { grid-column: span 5; }
.gallery-preview a:nth-child(4) { grid-column: span 7; }
.gallery-preview img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-preview a:nth-child(1) img,
.gallery-preview a:nth-child(4) img { aspect-ratio: 16 / 9; }
.gallery-preview a:nth-child(2) img,
.gallery-preview a:nth-child(3) img { aspect-ratio: 4 / 3; }
.gallery-preview a:hover img,
.gallery-grid a:hover img { transform: scale(1.025); }
.gallery-actions { margin-top: 1.6rem; display: flex; justify-content: center; }

.location-panel {
    min-height: 520px;
    display: grid;
    align-items: end;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    color: #fff;
    background: url('../images/hostynske-vrchy.webp') center 48% / cover no-repeat;
}
.location-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(12,31,22,.84), rgba(12,31,22,.06) 70%);
}
.location-panel__content { max-width: 720px; padding: clamp(2rem, 5vw, 4rem); }
.location-panel h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
.location-panel p { color: rgba(255,255,255,.84); font-size: 1.08rem; }

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 28px;
    background: var(--brown);
    color: #fff;
}
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.cta-panel p { margin-bottom: 0; color: rgba(255,255,255,.78); }

.page-hero {
    padding: clamp(3.4rem, 7vw, 6rem) 0;
    background:
        linear-gradient(110deg, rgba(24,57,42,.96), rgba(24,57,42,.78)),
        url('../images/schwaigrovka-detail.webp') center / cover no-repeat;
    color: #fff;
}
.page-hero__inner { max-width: 800px; }
.page-hero .eyebrow { color: #e1c9a1; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.breadcrumbs { margin-bottom: 1rem; font-size: .84rem; color: rgba(255,255,255,.72); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

.prose-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3.6rem;
    align-items: start;
}
.prose {
    max-width: 820px;
    font-size: 1.02rem;
}
.prose p { margin: 0 0 1.25rem; }
.prose strong { color: #243128; }
.prose a { color: var(--forest); text-underline-offset: 3px; }
.prose img.float-right {
    float: right;
    max-width: min(42%, 420px);
    margin: .2rem 0 1.2rem 1.6rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 40, 29, .12);
}
.prose img.float-left {
    float: left;
    max-width: min(38%, 340px);
    margin: .2rem 1.6rem 1.2rem 0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(20, 40, 29, .12);
}
.aside-card {
    position: sticky;
    top: 154px;
    padding: 1.35rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
}
.aside-card h2 { margin: 0 0 .8rem; font-size: 1.1rem; letter-spacing: 0; }
.aside-card a { display: block; padding: .55rem 0; color: var(--forest); font-weight: 700; text-decoration: none; border-top: 1px solid #ecebe5; }
.aside-card a:first-of-type { border-top: 0; }

.inline-gallery {
    clear: both;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    margin: 2rem 0;
}
.inline-gallery a { text-decoration: none; color: var(--ink); }
.inline-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.inline-gallery span { display: block; margin-top: .45rem; font-size: .82rem; color: var(--muted); }

.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid a { grid-column: auto; aspect-ratio: 4 / 3; }
.gallery-grid a:nth-child(1),
.gallery-grid a:nth-child(5) { grid-column: span 2; aspect-ratio: 16 / 8.8; }
.gallery-note {
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: #edf3ef;
    color: #3f5145;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
}
.contact-card {
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
}
.contact-card h2 { font-size: 1.6rem; letter-spacing: -.02em; }
.contact-card a { color: var(--forest); font-weight: 700; }
.contact-card a.btn--forest { color: #fff; }
.contact-card a.btn--forest:hover { color: #fff; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 460px; border-radius: 24px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 4vw;
    background: rgba(8, 15, 11, .94);
}
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox__close {
    position: fixed;
    right: 24px;
    top: 18px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-open { overflow: hidden; }

.site-footer {
    background: #10271d;
    color: rgba(255,255,255,.76);
    padding: 4rem 0 1.4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr .8fr;
    gap: 2rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
}
.footer-brand img {
    width: min(100%, 250px);
    height: auto;
    border-radius: 0;
}
.footer-brand p {
    max-width: 320px;
    margin: 0;
}
.footer-grid h2 { margin: 0 0 .85rem; color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid p { margin: 0 0 .8rem; font-size: .92rem; }
.footer-grid a { color: inherit; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .8rem;
}

@media (max-width: 980px) {
    .topbar__claim { display: none; }
    .topbar__inner { justify-content: flex-end; }
    .nav-shell__inner { min-height: 78px; }
    .brand img { width: 220px; height: auto; }
    .brand__text strong { font-size: 1rem; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        left: 20px;
        right: 20px;
        top: 126px;
        display: none;
        max-height: calc(100vh - 145px);
        overflow: auto;
        padding: .75rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
        align-items: stretch;
        flex-direction: column;
    }
    .main-nav.is-open { display: flex; }
    .main-nav > a,
    .nav-dropdown__toggle { width: 100%; justify-content: space-between; text-align: left; border-radius: 12px; }
    .main-nav .nav-cta { margin: .35rem 0 0; text-align: center; }
    .nav-dropdown__menu {
        position: static;
        display: none;
        width: auto;
        padding: .25rem .6rem .65rem 1rem;
        box-shadow: none;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
    .nav-dropdown:hover .nav-dropdown__menu { display: none; }
    .nav-dropdown.is-open:hover .nav-dropdown__menu { display: block; }

    .hero__badge { display: none; }
    .quick-facts__grid { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
    .split,
    .prose-wrap,
    .contact-grid { grid-template-columns: 1fr; }
    .aside-card { position: static; }
    .cards { grid-template-columns: 1fr 1fr; }
    .cards .card:last-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .wrap { width: min(calc(100% - 28px), var(--wrap)); }
    .topbar { display: none; }
    .site-header { top: 0; }
    .nav-shell__inner { min-height: 72px; }
    .brand img { width: 170px; height: auto; }
    .brand__text small { display: none; }
    .main-nav { top: 82px; left: 14px; right: 14px; max-height: calc(100vh - 96px); }

    .hero { min-height: 650px; background-position: 58% 54%; }
    .hero::before { background: linear-gradient(90deg, rgba(12,28,21,.82), rgba(12,28,21,.32)), linear-gradient(0deg, rgba(12,28,21,.42), transparent 60%); }
    .hero__content { padding: 4.5rem 0 7rem; }
    .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
    .hero__lead { font-size: 1.05rem; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }

    .quick-facts { margin-top: -40px; }
    .section { padding: 4.3rem 0; }
    .cards { grid-template-columns: 1fr; }
    .cards .card:last-child { grid-column: auto; }

    .gallery-preview { grid-template-columns: 1fr; }
    .gallery-preview a:nth-child(n) { grid-column: auto; }
    .gallery-preview img { aspect-ratio: 4 / 3 !important; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid a:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3; }

    .cta-panel { grid-template-columns: 1fr; }
    .cta-panel .btn { width: auto; justify-self: start; }
    .location-panel { min-height: 590px; background-position: 55% center; }

    .media-card__note {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
        padding: .55rem .7rem;
        font-size: .78rem;
        line-height: 1.35;
        border-radius: 12px;
    }

    .prose img.float-right,
    .prose img.float-left { float: none; max-width: 100%; width: 100%; margin: 1rem 0 1.4rem; }
    .inline-gallery { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Historické galerie převzaté z původního webu */
.blokFotogalerieVtextu {
    clear: both;
    margin: 2rem 0;
}
.blokFotogalerieVtextu .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}
.blokFotogalerieVtextu .grid_3 .blok { margin-bottom: 1rem; }
.blokFotogalerieVtextu .grid_3 a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #eef0ec;
}
.blokFotogalerieVtextu .grid_3 img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .3s ease;
}
.blokFotogalerieVtextu .grid_3 a:hover img { transform: scale(1.025); }
.blokFotogalerieVtextu .grid_3 span {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}
@media (max-width: 700px) {
    .blokFotogalerieVtextu .row { grid-template-columns: 1fr 1fr; }
}
