/* ============================================================
   Byty Generála Svobody — theme "svoboda"
   Architektonický editorial: papír, lesní zeleň, mosaz, hvězda.
   Display: Marcellus · Text: Instrument Sans
   ============================================================ */

:root {
    --paper: #FAF7F2;
    --paper-2: #F1ECE1;
    --ink: #182420;
    --ink-60: #515E56;
    --ink-30: #A7B0AA;
    --pine: #1F4A38;
    --pine-dark: #143024;
    --brass: #A98A5A;
    --brass-light: #C9B08A;
    --line: #DFD8CA;
    --white: #FFFFFF;
    --st-free: #2F7D52;
    --st-free-bg: #E4F0E8;
    --st-res: #C08A2E;
    --st-res-bg: #F7EDDA;
    --st-sold: #8E978F;
    --st-sold-bg: #ECEDEA;
    --ff-display: 'Marcellus', 'Times New Roman', serif;
    --ff-text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    --maxw: 1200px;
    --radius: 2px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--ff-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--pine-dark); }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.1em; }
::selection { background: var(--pine); color: var(--paper); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* ---------- Utility ---------- */
.eyebrow {
    font-family: var(--ff-text);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brass);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: '';
    width: 2.2rem;
    height: 1px;
    background: var(--brass);
    display: inline-block;
}
.star { display: inline-block; width: .85em; height: .85em; vertical-align: -0.05em; fill: currentColor; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--pine-dark); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead { font-size: 1.15rem; color: var(--ink-60); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--ff-text);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .95rem 1.9rem;
    border: 1px solid var(--pine);
    border-radius: var(--radius);
    background: var(--pine);
    color: var(--white);
    cursor: pointer;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .15s ease;
}
.btn:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--pine); }
.btn--ghost:hover { background: var(--pine); color: var(--white); }
.btn--light { background: var(--paper); color: var(--pine-dark); border-color: var(--paper); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--pine-dark); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background .3s ease, box-shadow .3s ease;
    background: transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(250, 247, 242, .95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--line);
}
.site-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem clamp(1.1rem, 4vw, 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__label { display: flex; flex-direction: column; line-height: 1.12; }
.brand__label b { font-family: var(--ff-display); font-weight: 400; font-size: 1.18rem; letter-spacing: .02em; }
.brand__label span { font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.site-nav a {
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink);
    padding: .35rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover { color: var(--pine); border-bottom-color: var(--brass); }
.site-nav .btn { padding: .65rem 1.25rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s ease, opacity .25s ease; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        background: var(--paper);
        gap: 1.6rem;
        transform: translateY(-100%);
        transition: transform .35s ease;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav a { font-size: 1.1rem; }
    body.nav-locked { overflow: hidden; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-toggle { position: relative; z-index: 110; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: var(--ink);
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(250,247,242,.25) 0%, rgba(250,247,242,0) 30%, rgba(250,247,242,0) 55%, rgba(250,247,242,.92) 88%, var(--paper) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero__eyebrow { margin-bottom: .9rem; }
.hero h1 { max-width: 14ch; margin-bottom: .4em; }
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--ink-60); max-width: 46ch; margin-bottom: 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.hero-stats__in {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
    padding: 1.4rem 1.2rem;
    text-align: center;
    border-left: 1px solid var(--line);
}
.hero-stat:first-child { border-left: 0; }
.hero-stat b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--pine); }
.hero-stat span { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); }
@media (max-width: 700px) {
    .hero-stats__in { grid-template-columns: repeat(2, 1fr); }
    .hero-stat:nth-child(3) { border-left: 0; }
    .hero-stat { border-top: 1px solid var(--line); }
    .hero-stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Units table ---------- */
.units-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; align-items: center; }
.units-filters__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60); margin-right: .4rem; }
.chip {
    font-family: var(--ff-text);
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-60);
    cursor: pointer;
    transition: all .18s ease;
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: var(--white); }

.units-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow-x: auto; }
.units-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.units-table th {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-60);
    text-align: left;
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--ink);
    white-space: nowrap;
    background: var(--paper);
}
.units-table td { padding: .92rem 1rem; border-bottom: 1px solid var(--line); font-size: .97rem; white-space: nowrap; }
.units-table tbody tr { cursor: pointer; transition: background .15s ease; }
.units-table tbody tr:hover { background: var(--paper-2); }
.units-table tbody tr:last-child td { border-bottom: 0; }
.units-table .num { font-family: var(--ff-display); font-size: 1.15rem; color: var(--pine); }
.units-table .price { font-weight: 600; }
.units-table .muted { color: var(--ink-60); }
.units-table tr.is-sold td { color: var(--ink-30); }
.units-table tr.is-sold .price { text-decoration: line-through; text-decoration-color: var(--ink-30); font-weight: 400; }
.units-table tr.is-sold .num { color: var(--ink-30); }

.status-pill {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 999px;
}
.status-pill--in_stock { background: var(--st-free-bg); color: var(--st-free); }
.status-pill--reserved { background: var(--st-res-bg); color: var(--st-res); }
.status-pill--sold, .status-pill--out_of_stock { background: var(--st-sold-bg); color: var(--st-sold); }

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--brass);
    border-bottom: 1px solid transparent;
}
.doc-link:hover { color: var(--pine); }
.doc-link svg { width: 15px; height: 15px; fill: currentColor; }

.units-note { font-size: .92rem; color: var(--ink-60); margin-top: 1.1rem; display: flex; gap: .6rem; align-items: baseline; }
.units-note .star { color: var(--brass); flex: 0 0 auto; }

/* Mobile unit cards */
.unit-cards { display: none; }
@media (max-width: 760px) {
    .units-wrap { display: none; }
    .unit-cards { display: grid; gap: .9rem; }
    .unit-card {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        padding: 1.1rem 1.2rem;
        display: block;
        color: var(--ink);
    }
    .unit-card__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
    .unit-card__num { font-family: var(--ff-display); font-size: 1.35rem; color: var(--pine); }
    .unit-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .92rem; color: var(--ink-60); margin-bottom: .6rem; }
    .unit-card__price { font-weight: 700; font-size: 1.05rem; }
    .unit-card.is-sold .unit-card__price { text-decoration: line-through; font-weight: 400; color: var(--ink-30); }
}

/* ---------- Financing ---------- */
.fin-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fin-step { background: var(--paper); padding: 1.8rem 1.5rem 1.6rem; position: relative; }
.fin-step__no { font-size: .74rem; font-weight: 700; letter-spacing: .18em; color: var(--brass); text-transform: uppercase; }
.fin-step__pct { font-family: var(--ff-display); font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--pine); line-height: 1.1; margin: .35rem 0 .45rem; }
.fin-step__title { font-weight: 700; font-size: .98rem; margin-bottom: .3rem; }
.fin-step__text { font-size: .9rem; color: var(--ink-60); line-height: 1.5; }
@media (max-width: 900px) { .fin-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fin-steps { grid-template-columns: 1fr; } }
.fin-note { margin-top: 1.3rem; font-size: .95rem; color: var(--ink-60); }

/* ---------- Features (Proč Uničov) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 1.6rem 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(24, 36, 32, .35); }
.feat__icon { color: var(--brass); margin-bottom: .9rem; }
.feat__icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.feat h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.feat p { font-size: .95rem; color: var(--ink-60); margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 700px) { .stats-band { grid-template-columns: 1fr; gap: 1.4rem; } }
.stat-big b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--brass-light); }
.stat-big span { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* ---------- Text / editorial ---------- */
.editorial { max-width: 760px; }
.editorial h2 { margin-top: 1.6em; }
.editorial h2:first-child { margin-top: 0; }
.editorial ul { padding-left: 1.2rem; }
.editorial li { margin-bottom: .35rem; }
.text-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .text-cols { grid-template-columns: 1fr; } }
.text-cols__media img { border: 1px solid var(--line); border-radius: var(--radius); }
.text-cols__media figcaption { font-size: .84rem; color: var(--ink-60); margin-top: .6rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.gallery-grid img { transition: transform .4s ease; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20, 30, 26, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close {
    position: absolute; top: 1.2rem; right: 1.6rem;
    background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; opacity: .7; padding: 1rem; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info__item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info__item:first-child { border-top: 1px solid var(--line); }
.contact-info__item b { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--brass); margin-bottom: .25rem; }
.contact-info__item a { font-family: var(--ff-display); font-size: 1.3rem; color: var(--ink); }
.contact-info__item a:hover { color: var(--pine); }
.contact-info__item p { margin: 0; color: var(--ink-60); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
    width: 100%;
    font-family: var(--ff-text);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem .95rem;
    transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pine); }
.field textarea { min-height: 130px; resize: vertical; }
.gdpr-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-60); }
.gdpr-row input { width: auto; margin-top: .25rem; }
.form-errors { color: #a13030; font-size: .92rem; margin-bottom: .8rem; }

/* ---------- Product (unit) detail ---------- */
.unit-hero { padding-top: clamp(6.5rem, 12vw, 9rem); }
.breadcrumbs { font-size: .84rem; color: var(--ink-60); margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.breadcrumbs a { color: var(--ink-60); }
.breadcrumbs a:hover { color: var(--pine); }
.breadcrumbs .sep { color: var(--brass); }
.unit-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .unit-layout { grid-template-columns: 1fr; } }
.unit-plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.2rem; }
.unit-plan img { width: 100%; }
.unit-plan figcaption { font-size: .82rem; color: var(--ink-60); margin-top: .7rem; text-align: center; }
.unit-summary h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .25em; }
.unit-summary__sub { color: var(--ink-60); margin-bottom: 1.4rem; }
.unit-price { font-family: var(--ff-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--pine); margin: .9rem 0 .3rem; }
.unit-price small { font-family: var(--ff-text); font-size: .85rem; color: var(--ink-60); letter-spacing: .05em; }
.params-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.params-table th, .params-table td { text-align: left; padding: .68rem .2rem; border-bottom: 1px solid var(--line); font-size: .97rem; }
.params-table th { font-weight: 600; color: var(--ink-60); width: 46%; }
.params-table td { font-weight: 600; }
.unit-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.unit-desc { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 820px; }
.unit-desc table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.unit-desc table td, .unit-desc table th { padding: .55rem .6rem; border-bottom: 1px solid var(--line); font-size: .95rem; text-align: left; }
.unit-desc table tr td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Category ---------- */
.page-head { padding-top: clamp(7rem, 13vw, 10rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(250, 247, 242, .75); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-dark); color: rgba(250, 247, 242, .82); }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding: 3.2rem 0 2.4rem; }
.site-footer .brand__label b { color: var(--white); }
.site-footer .brand__label span { color: var(--brass-light); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer__nav a { color: rgba(250, 247, 242, .82); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__meta { border-top: 1px solid rgba(250, 247, 242, .15); padding: 1.3rem 0 1.6rem; font-size: .84rem; color: rgba(250, 247, 242, .55); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.site-footer__meta a { color: rgba(250, 247, 242, .7); }
.site-footer__meta a:hover { color: var(--white); }

/* ---------- Flash messages ---------- */
.flashes { position: fixed; top: 5.2rem; right: 1.2rem; z-index: 300; display: grid; gap: .6rem; max-width: 380px; }
.flash {
    padding: .9rem 1.2rem;
    border-radius: var(--radius);
    background: var(--pine);
    color: var(--white);
    font-size: .95rem;
    box-shadow: 0 14px 40px -12px rgba(20, 48, 36, .5);
    animation: flash-in .3s ease;
}
.flash--error { background: #8c3232; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Simple page content ---------- */
.page-content { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* ---------- Cookie consent ---------- */
.hidden { display: none !important; }
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 0 clamp(14px,2.5vw,28px) clamp(14px,2.5vw,28px); }
.cc-card {
    max-width: 1100px; margin: 0 auto; background: var(--paper); color: var(--ink);
    border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 2px;
    box-shadow: 0 24px 60px -20px rgba(24,36,32,.45);
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px;
    padding: clamp(18px,2.4vw,26px) clamp(20px,3vw,34px);
}
.cc-text { flex: 1; min-width: 260px; }
.cc-text h4 { font-family: var(--ff-display); font-weight: 400; font-size: 19px; margin: 0 0 4px; }
.cc-text p { font-size: 13.5px; color: var(--ink-60); line-height: 1.5; margin: 0; }
.cc-text a { color: var(--pine); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn { border-radius: 99px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; letter-spacing: .03em; cursor: pointer; font-family: var(--ff-text); transition: background .2s, color .2s, border-color .2s; }
.cc-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.cc-btn-ghost:hover { border-color: var(--brass); color: var(--pine); }
.cc-btn-solid { background: var(--pine); border: 1px solid var(--pine); color: #fff; }
.cc-btn-solid:hover { background: var(--pine-dark); }
.cc-modal { position: fixed; inset: 0; z-index: 200; }
.cc-overlay { position: absolute; inset: 0; background: rgba(20,30,26,.55); backdrop-filter: blur(3px); }
.cc-dialog { position: relative; max-width: 560px; margin: 8vh auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); max-height: 84vh; overflow-y: auto; }
.cc-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.cc-dialog-head h5 { font-family: var(--ff-display); font-weight: 400; font-size: 21px; margin: 0; }
.cc-close { background: none; border: none; font-size: 17px; cursor: pointer; color: var(--ink-60); padding: 4px 8px; }
.cc-close:hover { color: var(--ink); }
.cc-dialog-body { padding: 12px 26px; }
.cc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cc-row:last-child { border-bottom: none; }
.cc-row b { font-family: var(--ff-display); font-weight: 400; font-size: 16.5px; display: block; margin-bottom: 3px; }
.cc-row p { font-size: 13px; color: var(--ink-60); line-height: 1.45; max-width: 44ch; margin: 0; }
.cc-row input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--pine); flex-shrink: 0; }
.cc-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .cc-card { flex-direction: column; align-items: stretch; } .cc-actions { justify-content: stretch; } .cc-actions .cc-btn { flex: 1; } }

/* ---------- 404 / empty builder ---------- */
.err-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 60px; }
.err-page .code { font-family: var(--ff-display); font-size: clamp(80px,14vw,160px); color: var(--brass); line-height: 1; }
.err-page h1 { font-size: clamp(24px,3vw,36px); margin: 14px 0 12px; }
.err-page p { color: var(--ink-60); margin-bottom: 30px; }
.empty-note { padding: 160px 20px; text-align: center; color: var(--ink-60); }
.empty-note b { font-family: var(--ff-display); font-size: 24px; display: block; margin-bottom: 10px; color: var(--ink); }

/* ---------- Kontaktní formulář (override komponenty) ---------- */
.scf h3 { margin-bottom: .3rem; }
.scf > p { color: var(--ink-60); margin-bottom: 1.4rem; }
.contact-success { text-align: center; padding: 2.5rem 1rem; }
.contact-success .check { width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; background: var(--st-free-bg); color: var(--st-free); display: flex; align-items: center; justify-content: center; }
.contact-success .check svg { width: 26px; height: 26px; stroke-width: 2; }

/* Interest radio pills (realty mode) */
.interest-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.interest-pill { position: relative; cursor: pointer; }
.interest-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.interest-pill span { display: inline-block; font-size: .88rem; font-weight: 600; padding: .5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-60); transition: all .18s ease; }
.interest-pill input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--white); }
.interest-pill:hover span { border-color: var(--pine); color: var(--pine); }
.interest-pill input:checked:hover + span { color: var(--white); }
