/* ==========================================================================
   Lesy Bělá pod Bezdězem – veřejný web
   Vlastní CSS bez externích závislostí. Mobile-first, WCAG 2.2 AA.
   ========================================================================== */

/* --------------------------------------------------------------- proměnné */
:root {
    --ink: #06150f;
    --ink-2: #071910;
    --ink-3: #0c2417;
    --cream: #f6f3ed;
    --cream-tint: #f1ede5;
    --cream-2: #ece7dc;
    --paper: #ffffff;

    --text: #152117;
    --text-soft: #3f4c44;
    --text-muted: #566158;

    --lime-900: #22350a;
    --lime-800: #3f6212;
    --lime-700: #4d7c0f;
    --lime-600: #65a30d;
    --lime-500: #84cc16;
    --lime-300: #bef264;
    --lime-200: #d9f99d;
    --lime-50: #f7fee7;

    --line: rgba(21, 33, 23, .10);
    --line-strong: rgba(21, 33, 23, .18);
    /* Nález FE-03: rámeček polí formuláře s kontrastem 3,9 : 1 na bílé (dřív 1,45 : 1). */
    --field-line: #7a847c;
    --field-line-hover: #566158;
    --line-light: rgba(255, 255, 255, .14);

    --radius-sm: .625rem;
    --radius: .875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;

    --shadow-sm: 0 1px 2px rgba(6, 21, 15, .06), 0 1px 3px rgba(6, 21, 15, .05);
    --shadow: 0 10px 30px -12px rgba(6, 21, 15, .18), 0 2px 8px rgba(6, 21, 15, .05);
    --shadow-lg: 0 30px 60px -30px rgba(6, 21, 15, .35), 0 8px 24px -12px rgba(6, 21, 15, .18);
    --shadow-dark: 0 30px 60px -30px rgba(0, 0, 0, .6);

    --font-serif: "Lora", "Lora Fallback", "Lora Fallback Times", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        "Noto Sans", "Liberation Sans", Arial, sans-serif;

    --wrap: 78rem;
    --gutter: 1.25rem;
    --header-h: 4.75rem;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

@font-face {
    font-family: "Lora";
    /*
     * Nález C2: tentýž soubor byl uveden dvakrát – jednou jako
     * `woff2-variations`, podruhé jako `woff2`. Prohlížeč pak sáhne po
     * jiném zdroji, než který se preloadoval, a hlásí „preloaded but not
     * used“. Písmo je variabilní (osa wght 400–700), stačí tedy jeden
     * zápis; `tech(variations)` je moderní tvar, `format("woff2")` je
     * záložní pro starší prohlížeče.
     */
    src: url("../fonts/lora-latin-ext.woff2?v=0f80537343") format("woff2") tech(variations),
         url("../fonts/lora-latin-ext.woff2?v=0f80537343") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074,
        U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Nález F11: než se Lora načte, kreslí se nadpisy záložním písmem. Bez
 * úpravy rozměrů se po načtení text přeskládal (posun obsahu). Rozměry
 * Georgie a Times New Roman jsou přepočtené na Loru (průměrná šířka znaku,
 * horní a dolní dotah) – výpočet podle metrik písma (Capsize).
 */
@font-face {
    font-family: "Lora Fallback";
    src: local("Georgia");
    size-adjust: 104.98%;
    ascent-override: 95.83%;
    descent-override: 26.10%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "Lora Fallback Times";
    src: local("Times New Roman"), local("TimesNewRomanPSMT");
    size-adjust: 115.2%;
    ascent-override: 87.33%;
    descent-override: 23.78%;
    line-gap-override: 0%;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime-800); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--lime-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35rem; }
/*
 * Nález PROD-02 (1.2.17): mezera mezi položkami patří jen seznamům v textu.
 * Obecné `li + li` dopadalo i na položky hlavního menu (řádek zarovnaný na
 * střed), takže všechny kromě první byly o 2,8 px níž. Seznamy komponent
 * (s třídou) si mezery řídí samy. `:where()` drží specifičnost původního
 * pravidla, takže resety komponent (např. drobečková navigace) dál platí.
 */
:where(ul:not([class]), ol:not([class]), .prose ul, .prose ol) > li + li { margin-top: .35em; }

button { font: inherit; color: inherit; }

::selection { background: var(--lime-300); color: var(--ink); }

/*
 * Nález C1: `--lime-600` (#65a30d) měl proti krémovému pozadí kontrast
 * 2,79 : 1, tedy pod hranicí 3 : 1 podle WCAG 2.2 (1.4.11 i 2.4.13).
 * `--lime-700` (#4d7c0f) dává 4,51 : 1 na krémové a 4,99 : 1 na bílé.
 * Administrace tuto barvu (`--a-lime`) používala už dřív.
 */
:focus-visible {
    outline: 3px solid var(--lime-700);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Prvky uvnitř karet s overflow: hidden – prstenec musí směřovat dovnitř. */
.gallery-item__btn:focus-visible,
.gallery-card__btn:focus-visible {
    outline: 3px solid var(--lime-300);
    outline-offset: -6px;
    border-radius: var(--radius-lg);
}

.dark-surface :focus-visible { outline-color: var(--lime-300); }

/* -------------------------------------------------------------- pomocníci */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 52rem; }
.stack > * + * { margin-top: 1.5rem; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 200;
    transform: translateY(-200%);
    background: var(--ink);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.lb-icon { flex: none; max-width: none; }

/* -------------------------------------------------------------- tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.875rem;
    padding: .75rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .42s var(--ease), background-color .42s var(--ease),
        border-color .42s var(--ease), box-shadow .42s var(--ease), color .42s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .lb-icon { transition: transform .42s var(--ease); }
.btn:hover .lb-icon:last-child { transform: translateX(3px); }

.btn--primary {
    background: var(--lime-700);
    border-color: var(--lime-700);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(77, 124, 15, .8);
}
.btn--primary:hover { background: #3f6212; border-color: #3f6212; color: #fff; }

.btn--ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--lime-700); color: var(--lime-800); background: var(--lime-50); }


.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--lime-900);
    text-decoration: none;
    min-height: 2.75rem;
}
.link-arrow .lb-icon { transition: transform .25s var(--ease); }
.link-arrow:hover .lb-icon { transform: translateX(4px); }

/* --------------------------------------------------------------- hlavička */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 21, 15, .78), rgba(6, 21, 15, .28) 65%, rgba(6, 21, 15, 0));
    opacity: 1;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.site-header.is-scrolled { background: rgba(6, 21, 15, .92); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.site-header.is-scrolled::before { opacity: 0; }

/*
 * Stránky bez fotografie v záhlaví (detail aktuality, chybová stránka) mají
 * pod hlavičkou světlý obsah. Průhledná hlavička by na nich zmizela i s bílým
 * logem, proto je od začátku plná.
 */
.site-header--solid { background: rgba(6, 21, 15, .96); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8); }
.site-header--solid::before { opacity: 0; }

/* Bez fotografie v záhlaví nemá obsah co podtéct – odsadíme jej o výšku hlavičky. */
.page-bez-hero main { padding-top: var(--header-h); }

@supports (backdrop-filter: blur(1px)) {
    .site-header.is-scrolled { background: rgba(6, 21, 15, .78); backdrop-filter: blur(16px); }
}

/* ------------------------------------------------- vyhledávání na webu */
.site-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.site-search__icon {
    position: absolute;
    left: .7rem;
    display: inline-flex;
    color: rgba(255, 255, 255, .7);
    pointer-events: none;
}
.site-search__input {
    width: 100%;
    min-width: 0;
    padding: .5rem .75rem .5rem 2.25rem;
    font: inherit;
    font-size: .9375rem;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    /* FE-03: rámeček pole hledání v hlavičce s kontrastem nad 3 : 1 (dřív 2,0 : 1). */
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-search__input::placeholder { color: rgba(255, 255, 255, .62); }
.site-search__input:hover { background: rgba(255, 255, 255, .16); }
.site-search__input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 2px;
    background: rgba(255, 255, 255, .2);
}
.site-search__submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.site-search__submit:focus-visible {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: .5rem .9rem;
    clip-path: none;
    color: var(--ink);
    background: #fff;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

/* V hlavičce má pole pevnou šířku, aby menu nepřeskakovalo. */
.site-search--hlavicka { flex: 0 0 11.5rem; }
.site-search--mobil { margin: .5rem 0 1rem; }
.site-search--mobil .site-search__input { padding-block: .7rem; }

/*
 * Na užších obrazovkách by pole vytlačilo menu i telefon. Hledání tam
 * najdou návštěvníci v mobilním menu.
 */
@media (max-width: 79.99em) {
    .site-search--hlavicka { display: none; }
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: .75rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
    width: auto;
    height: 2.75rem;
    max-width: min(11.5rem, 46vw);
    object-fit: contain;
}
.brand--footer img { height: 3.25rem; max-width: 13rem; }

.nav { display: none; }

.nav-link {
    position: relative;
    display: inline-block;
    padding: .35rem .1rem;
    /* FE-23: odkazy menu mají nejméně 12 px; užší proklad místo dřívějších 11,2 px. */
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    white-space: nowrap;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -.15rem;
    width: 100%; height: 1px;
    background: var(--lime-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--lime-200); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--lime-200); }

/* ----------------------------------------------- podmenu v hlavním menu */
/*
 * Vydání 1.2.10: položka s podřízenými položkami (spravováno z administrace)
 * dostane vedle odkazu samostatné tlačítko s chevronem a rozbalovací kartu.
 * Chevron i karta existují jen tam, kde položka potomky má – o tom rozhoduje
 * šablona podle dat, ne CSS ani JS podle názvu.
 */
.nav__list, .submenu, .mobile-menu__list, .mobile-submenu { list-style: none; margin: 0; padding: 0; }
/* Svislé seznamy menu: rozestup položek patří komponentě (PROD-02), vzhled beze změny. */
.submenu > li + li, .mobile-menu__list > li + li, .mobile-submenu > li + li { margin-top: .35em; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.is-active-parent > .nav-link { color: var(--lime-200); }
.nav__item.is-active-parent > .nav-link::after { transform: scaleX(1); }

.nav__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Nález F6: cíl dotyku nejméně 24 × 24 px (WCAG 2.5.8). */
    width: 1.5rem;
    height: 1.5rem;
    margin-left: .05rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease), transform .25s var(--ease);
}
.nav__chevron .lb-icon { transition: transform .25s var(--ease); }
.nav__chevron:hover, .nav__chevron:focus-visible,
.nav__item:hover > .nav__chevron { color: var(--lime-200); background: rgba(255, 255, 255, .08); }
.nav__chevron[aria-expanded="true"] .lb-icon { transform: rotate(180deg); }

.submenu {
    /*
     * Zavřená karta je mimo layout (`display: none`), aby nezvětšovala
     * `scrollWidth` hlavičky – podle něj `site.js` přepíná kompaktní režim.
     * Otevření animuje krátké prolnutí s posunem; zavření je okamžité.
     */
    display: none;
    position: absolute;
    top: calc(100% + .85rem);
    left: 50%;
    z-index: 20;
    min-width: 20rem;
    max-width: 23.75rem;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
}
/* Malý „nosík“ směřující k rodiči. */
.submenu::before {
    content: "";
    position: absolute;
    top: -.45rem;
    left: 50%;
    width: .85rem;
    height: .85rem;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    background: var(--paper);
    transform: translateX(-50%) rotate(45deg);
}
/* Neviditelný můstek mezi odkazem a kartou – diagonální pohyb myši kartu nezavře. */
.submenu::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1rem;
    height: 1rem;
}
.nav__item.is-open > .submenu { display: block; animation: submenu-pop .18s var(--ease); }
@keyframes submenu-pop {
    from { opacity: 0; translate: 0 .5rem; }
    to { opacity: 1; translate: 0 0; }
}
/* Karta u okraje se zarovná k okraji, aby nepřetekla viewport (nasazuje JS). */
.nav__item.submenu-align-right > .submenu { left: auto; right: 0; transform: none; }
.nav__item.submenu-align-right > .submenu::before { left: auto; right: 1.5rem; transform: rotate(45deg); }
.nav__item.submenu-align-left > .submenu { left: 0; transform: none; }
.nav__item.submenu-align-left > .submenu::before { left: 1.5rem; transform: rotate(45deg); }

.submenu--wide { max-width: min(47.5rem, calc(100vw - 2 * var(--gutter))); }
.submenu--wide.is-two-columns { column-count: 2; column-gap: .25rem; min-width: 40rem; }
.submenu--wide.is-two-columns > li { break-inside: avoid; }

.submenu__link {
    display: block;
    min-height: 2.75rem;
    padding: .6rem .85rem .6rem 1.05rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.3;
    position: relative;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.submenu__link:hover, .submenu__link:focus-visible { background: var(--lime-50); color: var(--lime-900); }
.submenu__link:focus-visible { outline-offset: -2px; }
/* FE-10: rozbalovací karta je světlá i v tmavé hlavičce – prstenec zůstává tmavě zelený. */
.dark-surface .submenu :focus-visible { outline-color: var(--lime-700); }
.submenu__link.is-current { color: var(--lime-900); background: var(--cream-tint); }
.submenu__link.is-current::before {
    content: "";
    position: absolute;
    left: .35rem; top: .85rem; bottom: .85rem;
    width: 3px;
    border-radius: 3px;
    background: var(--lime-600);
}
.submenu__label { display: block; }
.submenu__hint {
    display: block;
    margin-top: .1rem;
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Bez JavaScriptu se karta ukáže při najetí nebo fokusu uvnitř položky. */
.no-js .nav__item--has-children:hover > .submenu,
.no-js .nav__item--has-children:focus-within > .submenu { display: block; }

.header-phone {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.header-phone .lb-icon { color: var(--lime-300); }
.header-phone:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .2); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
    position: absolute;
    inset: 100% 0 auto 0;
    /* Plně krycí podklad – při 98 % prosvítal text hero sekce. */
    background: var(--ink);
    border-top: 1px solid var(--line-light);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: grid;
    gap: .25rem;
    padding: 1rem var(--gutter) 1.5rem;
    transform-origin: top;
    animation: menu-in .28s var(--ease);
}
.mobile-menu[hidden] { display: none; }

/* Bez JavaScriptu se menu nezavírá – zobrazíme ho trvale a tlačítko schováme. */
.no-js .menu-toggle { display: none; }
.no-js .mobile-menu { display: block; animation: none; }
/*
 * Nález FE-09 (druhý audit 1.2.15): trvale otevřené menu bez JavaScriptu
 * leželo přes obsah (hlavička je `fixed`, menu `absolute`) a na telefonu
 * zakrylo celou obrazovku. Bez JavaScriptu proto hlavička i menu zůstávají
 * v toku stránky – menu je nahoře a obsah pod ním.
 */
@media (max-width: 63.99em) {
    .no-js .site-header { position: relative; background: var(--ink); }
    .no-js .site-header::before { opacity: 0; }
    .no-js .mobile-menu { position: static; max-height: none; overflow: visible; }
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-.75rem); }
    to { opacity: 1; transform: none; }
}

.mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: rgba(255, 255, 255, .1); color: var(--lime-200); }
.mobile-menu .mobile-contact {
    margin-top: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-light);
    display: grid;
    gap: .5rem;
}
.mobile-menu .mobile-contact a { color: var(--lime-200); gap: .6rem; }

/* Podmenu v mobilním menu (accordion; bez JS trvale rozbalené). */
.mobile-menu__list { display: grid; gap: .25rem; }
.mobile-menu__row { display: flex; align-items: stretch; gap: .25rem; }
.mobile-menu__row .mobile-menu__link { flex: 1 1 auto; min-width: 0; }
.mobile-menu__link { overflow-wrap: anywhere; }
.mobile-menu__chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    min-height: 3rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.mobile-menu__chevron .lb-icon { transition: transform .25s var(--ease); }
.mobile-menu__chevron:hover, .mobile-menu__chevron:focus-visible { color: var(--lime-200); background: rgba(255, 255, 255, .1); }
.mobile-menu__chevron[aria-expanded="true"] .lb-icon { transform: rotate(180deg); }
.mobile-menu__item.is-active-parent > .mobile-menu__row > .mobile-menu__link { color: var(--lime-200); }

.mobile-submenu {
    display: grid;
    gap: .15rem;
    margin: .1rem 0 .4rem .9rem;
    padding-left: .75rem;
    border-left: 1px solid rgba(255, 255, 255, .16);
}
.mobile-submenu[hidden] { display: none; }
.mobile-menu .mobile-submenu__link {
    min-height: 2.75rem;
    padding-block: .5rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .78);
    overflow-wrap: anywhere;
}
.mobile-menu .mobile-submenu__link.is-current,
.mobile-menu .mobile-submenu__link[aria-current="page"] { color: var(--lime-200); background: rgba(255, 255, 255, .06); }
.mobile-menu a[aria-current="page"] { color: var(--lime-200); }
.mobile-submenu.is-opening { animation: submenu-in .22s var(--ease); }
@keyframes submenu-in {
    from { opacity: 0; transform: translateY(-.35rem); }
    to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------- hero */
.hero {
    position: relative;
    isolation: isolate;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* Obrázek (WebP + JPEG podle šířky okna) doplňuje layout ve <style nonce>. */
    background-size: cover;
    background-position: center 45%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(6, 21, 15, .82), rgba(6, 21, 15, .66) 55%, rgba(6, 21, 15, .9)),
        linear-gradient(to top, var(--ink) 1%, rgba(6, 21, 15, .05) 40%, rgba(0, 0, 0, .3) 100%);
}

.hero__inner { position: relative; max-width: 46rem; }

.hero__eyebrow {
    display: block;
    margin-bottom: 1.1rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--lime-300);
}

.hero h1 {
    font-size: clamp(2.35rem, 7.4vw, 6rem);
    letter-spacing: -.038em;
    line-height: 1.04;
}
.hero h1 .accent { color: var(--lime-300); }

.hero__text {
    margin-top: 1.6rem;
    max-width: 34rem;
    font-size: clamp(1rem, .96rem + .4vw, 1.125rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .84);
}

.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .875rem; }

.hero__scroll {
    display: none;
    margin-top: 3rem;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    text-align: center;
}
.hero__scroll .lb-icon { margin: .75rem auto 0; animation: bob 1.9s ease-in-out infinite; }

/*
 * Nález FE-24 (druhý audit 1.2.15): na telefonu šířky 320 px (iPhone SE)
 * končilo druhé tlačítko hero pod ohybem – tlačítka se zalomila pod sebe
 * a nadpis s textem zabraly celou výšku. Na nejužších displejích je hero
 * kompaktnější a obě tlačítka se vejdou vedle sebe.
 */
@media (max-width: 22.49em) {
    .hero { padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: 2.25rem; }
    .hero__eyebrow { margin-bottom: .75rem; }
    .hero h1 { font-size: 2.125rem; }
    .hero__text { margin-top: 1.1rem; line-height: 1.6; }
    .hero__actions { margin-top: 1.5rem; gap: .625rem; }
    .hero__actions .btn { padding-inline: 1rem; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* -------------------------------------------------------- karta s výhodami */
.benefits {
    position: relative;
    z-index: 5;
    margin-top: -1.5rem;
}
.benefits__grid {
    display: grid;
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}
.benefit {
    background: var(--ink-2);
    padding: 1.5rem 1.35rem;
    color: #fff;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.benefit:hover { background: #0b2317; }
.benefit .lb-icon { color: var(--lime-300); margin-bottom: 1.05rem; transition: transform .45s var(--ease); }
.benefit:hover .lb-icon { transform: scale(1.1) rotate(3deg); }
.benefit h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.benefit p { margin: .7rem 0 0; font-size: .875rem; line-height: 1.6; color: rgba(255, 255, 255, .62); }

/* ------------------------------------------------------------------ sekce */
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2.5rem; }
.section--dark { background: var(--ink-2); color: #fff; position: relative; overflow: hidden; }
.section--alt { background: var(--cream-2); }
.section--to-tint { background: linear-gradient(180deg, var(--cream), var(--cream-tint)); }
.section--from-tint { background: linear-gradient(180deg, var(--cream-tint), var(--cream)); }
.section--glow {
    background:
        radial-gradient(circle at 86% 4%, rgba(190, 242, 100, .12), transparent 28%),
        var(--cream);
}
.section--glow-left {
    background:
        radial-gradient(circle at 12% 42%, rgba(77, 124, 15, .07), transparent 32%),
        var(--cream-tint);
}

.section-head {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(21, 33, 23, .11);
}

.section-label {
    display: block;
    margin-bottom: .7rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--lime-800);
}
.section--dark .section-label { color: var(--lime-300); }

.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.section-lead { margin-top: 1rem; max-width: 42rem; color: var(--text-soft); font-size: 1.0625rem; }
.section--dark .section-lead { color: rgba(255, 255, 255, .7); }

.rule { width: 4rem; height: 2px; background: var(--lime-700); border: 0; margin: 1.1rem 0 0; }

/* ------------------------------------------------------------------ karty */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid--services { gap: 1.25rem; }

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line), 0 14px 40px rgba(6, 21, 15, .045);
    text-decoration: none;
    color: inherit;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(77, 124, 15, .28), 0 26px 60px rgba(6, 21, 15, .1);
    color: inherit;
}

.service-card__media { position: relative; aspect-ratio: 22 / 10; overflow: hidden; background: var(--cream-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.055); }
.service-card__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%);
}

.service-card__body { position: relative; padding: 2.25rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.service-card__icon {
    position: absolute;
    top: -1.75rem;
    left: 1.4rem;
    display: grid;
    place-items: center;
    width: 3.5rem; height: 3.5rem;
    border-radius: 50%;
    background: #fff;
    color: var(--lime-700);
    box-shadow: 0 8px 20px -10px rgba(6, 21, 15, .4);
    outline: 1px solid var(--line);
}
.service-card__body h3 { font-size: 1.3rem; }
.service-card__body p { margin-top: .8rem; font-size: .9375rem; line-height: 1.65; color: var(--text-soft); flex: 1; }
.service-card__more {
    margin-top: auto;
    margin-top: 1.25rem;
    display: inline-grid;
    place-items: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: var(--lime-50);
    color: var(--lime-800);
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-card__more { background: var(--lime-700); color: #fff; }

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line), 0 16px 45px rgba(6, 21, 15, .045);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(77, 124, 15, .26), 0 26px 60px rgba(6, 21, 15, .1);
}
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.055); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(7, 25, 16, .86);
    color: var(--lime-200);
    /* FE-23: štítky slouží i jako odkazy filtru (kategorie, alba) – nejméně 12 px. */
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}
.news-card__media .chip { position: absolute; top: 1rem; left: 1rem; }
.chip--light { background: var(--lime-50); color: var(--lime-800); }

.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__date {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lime-800);
}
.news-card__body h2,
.news-card__body h3 { margin-top: .7rem; font-size: 1.375rem; line-height: 1.25; }
.news-card__body h2 a,
.news-card__body h3 a { color: inherit; text-decoration: none; }
.news-card__body h2 a:hover,
.news-card__body h3 a:hover { color: var(--lime-900); }
.news-card__body p { margin-top: .85rem; font-size: .9375rem; line-height: 1.7; color: var(--text-soft); flex: 1; }
.news-card__body .link-arrow { margin-top: 1.25rem; }

/* ------------------------------------------------------------- o společnosti */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__list { display: grid; gap: .85rem; margin-top: 1.75rem; }
.about__list div { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--text-soft); }
.about__list .lb-icon { color: var(--lime-700); margin-top: .15rem; }
.about__cta { margin-top: 1.5rem; }

.about__panel {
    background: var(--paper);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
}
/* FE-11: v detailu aktuality je panelem samotný `<figure>` – bez nulového okraje
   prohlížeče odsadil fotografii o 40 px a zúžil ji. */
figure.about__panel { margin: 0; }

/* FE-27: odkaz mezi stejnojmennou stránkou a službou. */
.related-link {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    margin: 1.75rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    background: var(--lime-50);
    color: var(--text);
    font-size: .9375rem;
}
.related-link .lb-icon { flex: none; margin-top: .15rem; color: var(--lime-700); }
.related-link a { color: var(--lime-800); font-weight: 700; }
.about__panel figure { margin: 0; position: relative; aspect-ratio: 16 / 9; }
.about__panel img { width: 100%; height: 100%; object-fit: cover; }
.about__panel figure::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7, 25, 16, .7), transparent 55%);
}

.stats { display: grid; }
.stat { padding: 1.75rem 1.25rem; text-align: center; border-top: 1px solid var(--line); }
.stat .lb-icon { color: var(--lime-700); margin: 0 auto .85rem; }
.stat__value { font-family: var(--font-serif); font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem); font-weight: 700; color: #243018; }
.stat__label { margin-top: .35rem; font-size: .875rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- galerie */
.gallery-grid { display: grid; gap: 1rem; }
/* Na malých displejích ukazujeme jen ukázku – celá galerie má vlastní stránku. */
@media (max-width: 47.99em) {
    .gallery-grid > :nth-child(n + 7) { display: none; }
}

/*
 * Nález FE-07: mobilní úvodní stránka měla služby i galerii v jednom sloupci
 * (≈ 15 000 px, 19 obrázků). Od 360 px jsou dlaždice ve dvou sloupcích,
 * služeb se na telefonu ukážou čtyři a pod ukázkou je odkaz na přehled.
 */
.section-more { display: none; margin: 1.5rem 0 0; }
@media (max-width: 47.99em) {
    .card-grid--services > :nth-child(n + 5) { display: none; }
    .section-head__link--sirsi { display: none; }
    .section-more { display: block; }
}
@media (min-width: 22.5em) {
    .card-grid--services,
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 22.5em) and (max-width: 39.99em) {
    .card-grid--services, .gallery-grid { gap: .75rem; }
    .card-grid--services .service-card__media { aspect-ratio: 3 / 2; }
    .card-grid--services .service-card__body { padding: 1.6rem .85rem 1rem; }
    .card-grid--services .service-card__icon { top: -1.375rem; left: .85rem; width: 2.75rem; height: 2.75rem; }
    .card-grid--services .service-card__icon .lb-icon { width: 1.25rem; height: 1.25rem; }
    .card-grid--services .service-card__body h3 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
    .card-grid--services .service-card__body p,
    .card-grid--services .service-card__more { display: none; }
    .gallery-item figcaption { right: 2.25rem; padding: .6rem .7rem; font-size: .75rem; }
}

.gallery-item {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream-2);
    box-shadow: inset 0 0 0 1px var(--line), 0 14px 40px rgba(6, 21, 15, .045);
    transition: transform .65s var(--ease), box-shadow .65s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px) scale(1.006); box-shadow: 0 24px 55px rgba(6, 21, 15, .14); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease); }
.gallery-item__btn {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}
.gallery-item__btn::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6, 21, 15, .45), transparent 60%);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-within img { transform: scale(1.055); }
.gallery-item:hover .gallery-item__btn::after,
.gallery-item:focus-within .gallery-item__btn::after { opacity: 1; }
/* Pořadové číslo fotografie – decentní detail podle grafické předlohy. */
.gallery-grid { counter-reset: gallery; }
.gallery-item::before {
    content: counter(gallery, decimal-leading-zero);
    counter-increment: gallery;
    position: absolute;
    right: .875rem;
    bottom: .75rem;
    z-index: 2;
    color: rgba(255, 255, 255, .9);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    opacity: 0;
    transform: translateY(.3rem);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    pointer-events: none;
}
.gallery-item:hover::before,
.gallery-item:focus-within::before { opacity: 1; transform: none; }

.gallery-item figcaption {
    position: absolute;
    left: 0; right: 3.25rem; bottom: 0;
    padding: .9rem 1rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    pointer-events: none;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* Na dotykových zařízeních není hover – popisek necháme trvale viditelný. */
@media (hover: none) {
    .gallery-item figcaption { opacity: 1; transform: none; }
    .gallery-item::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 55%;
        background: linear-gradient(0deg, rgba(6, 21, 15, .78), rgba(6, 21, 15, 0));
        pointer-events: none;
    }
    .gallery-item figcaption { z-index: 1; }
}

.album-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 2;
}
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease); }
.album-card:hover img { transform: scale(1.045); }
.album-card__body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(6, 21, 15, .92), rgba(6, 21, 15, .1));
    color: #fff;
}
.album-card__title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.album-card__body span { display: block; margin-top: .35rem; font-size: .8125rem; color: rgba(255, 255, 255, .72); }

/* ------------------------------------------------------------- lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    /* Nález WEB-05 / FE-08: s `1fr` se prostřední řádek roztáhl podle
       fotografie a ta přetekla okno (na 1366×768 o 21 % výšky). */
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: rgba(4, 13, 9, .95);
    padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; }
.lightbox__count { font-size: .8125rem; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.lightbox__stage { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; min-height: 0; position: relative; }
/* <picture> nesmí vytvořit vlastní box – obrázek je přímo v mřížce scény,
   jinak by se `max-height: 100%` nevztahovalo k výšce scény. Prvek <source>
   by jinak obsadil první řádek mřížky. */
.lightbox__picture { display: contents; }
.lightbox__picture source { display: none; }
.lightbox__stage img { grid-area: 1 / 1; }
.lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-dark);
}
.lightbox__caption { color: rgba(255, 255, 255, .82); text-align: center; font-size: .9375rem; padding: .75rem 0 .25rem; min-height: 2.5rem; }
.lightbox__btn {
    display: inline-grid;
    place-items: center;
    width: 3rem; height: 3rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* ---------------------------------------------------------------- kroky */
.steps { display: grid; gap: 1rem; }
.step {
    position: relative;
    padding: 1.4rem;
    border: 1px solid rgba(190, 242, 100, .13);
    border-radius: 1.125rem;
    background: rgba(255, 255, 255, .035);
    transition: transform .6s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease);
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(190, 242, 100, .28);
    background: rgba(255, 255, 255, .06);
}
.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.5rem; height: 3.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(190, 242, 100, .45);
    border-radius: 50%;
    background: rgba(190, 242, 100, .1);
    color: var(--lime-200);
    font-size: .875rem;
    font-weight: 700;
}
.step h3 { font-size: 1.35rem; }
.step__num { box-shadow: 0 16px 36px rgba(0, 0, 0, .22); }
.step p { margin-top: .7rem; font-size: .9375rem; color: rgba(255, 255, 255, .68); }

.section--dark .bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: .18;
}
.section--dark .bg-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, var(--ink-2) 25%, rgba(7, 25, 16, .88) 60%, var(--ink-2));
}
.section--dark .wrap { position: relative; z-index: 2; }

/* ------------------------------------------------------------- reference */
.quote-card {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: inset 0 0 0 1px var(--line), 0 14px 40px rgba(6, 21, 15, .045);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.quote-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--lime-700), var(--lime-300));
    opacity: .7;
}
.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(77, 124, 15, .26), 0 24px 54px rgba(6, 21, 15, .1);
}
.quote-card .lb-icon { color: var(--lime-600); margin-bottom: 1.1rem; }
.quote-card p { font-size: .9375rem; line-height: 1.75; color: var(--text-soft); flex: 1; }
.quote-card footer { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.quote-card strong { display: block; color: var(--text); }
.quote-card span { font-size: .875rem; color: var(--text-muted); }

/* -------------------------------------------------------------------- CTA */
.cta {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--ink-2);
    color: #fff;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
}
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.cta::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, var(--ink-2) 20%, rgba(7, 25, 16, .82) 60%, rgba(7, 25, 16, .45));
}
.cta__inner { position: relative; z-index: 2; display: grid; gap: 1.75rem; }
.cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.35rem); }
.cta p { margin-top: .75rem; color: rgba(255, 255, 255, .74); }

/* ------------------------------------------------------------- formuláře */
.form-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.form-grid { display: grid; gap: 1.15rem; }

.field { display: grid; gap: .45rem; }
.field > label { font-size: .875rem; font-weight: 700; color: var(--text); }
.field .hint { font-size: .8125rem; color: var(--text-muted); }
.field .req { color: #b91c1c; }

.input, .textarea, .select {
    width: 100%;
    min-height: 2.875rem;
    padding: .7rem .9rem;
    border: 1px solid var(--field-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--field-line-hover); }
/*
 * Nález FE-02: pravidlo `:focus` stálo za `:focus-visible` se stejnou
 * specificitou a přebilo ho – fokus z klávesnice byl jen tenký rámeček
 * s kontrastem 3,09 : 1. Fokus myší (`:focus`) je teď nejdřív a klávesnice
 * dostane plný prstenec.
 */
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--lime-700);
    box-shadow: 0 0 0 3px rgba(132, 204, 22, .18);
    outline: none;
}
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
    border-color: var(--lime-700);
    box-shadow: none;
    outline: 3px solid var(--lime-700);
    outline-offset: 2px;
}
.textarea { min-height: 9rem; resize: vertical; }
/* Nález FE-03: výběr má vlastní šipku (prohlížečovou skrývá `appearance: none`). */
.select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233f4c44' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 1rem;
}

.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.field-error { font-size: .8125rem; font-weight: 600; color: #b91c1c; }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; }
.checkbox input {
    width: 1.25rem; height: 1.25rem;
    margin-top: .18rem;
    accent-color: var(--lime-700);
    flex: none;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-block { margin-top: 2rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.contact-layout { display: grid; gap: 1.25rem; }

.contact-list {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .9375rem;
    color: var(--text-soft);
}
.contact-list li,
.contact-list li > a {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    margin: 0;
    color: inherit;
    text-decoration: none;
    min-height: 2rem;
}
.contact-list li > a { flex: 1; }

/* ------------------------------------------- mapa na stránce Kontakt */
/*
 * Nález PROD-03 (1.2.17): karta pod kontaktními údaji. Bez inline stylů –
 * CSP je nepovoluje. Rámec vyplní plochu s poměrem 3 : 2 (nejméně 280 px).
 */
.map-card {
    margin-top: 1.25rem;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
/*
 * Výška 2/3 šířky karty, nejméně 280 px. Ne `aspect-ratio` + `min-height`:
 * minimální výška by se přes poměr stran přenesla do šířky a plocha by na
 * telefonu přetekla. Bez podpory jednotek kontejneru zůstane 280 px.
 */
.map-card { container-type: inline-size; }
.map-card__area { position: relative; height: 280px; height: max(280px, 66.667cqi); background: var(--cream-tint); }
.map-card__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.map-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .75rem;
    padding: 1.25rem;
    text-align: center;
}
.map-card__icon { color: var(--lime-700); }
.map-card__address { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.map-card__note { margin: 0; max-width: 24rem; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.map-card__open { margin: 0; padding: .8rem 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; }
.map-card__open a { display: inline-flex; align-items: center; gap: .35rem; }
.no-js .map-card__button { display: none; }
.contact-list a:hover { color: var(--lime-800); text-decoration: underline; }
.contact-list .lb-icon { color: var(--lime-700); margin-top: .15rem; flex: none; }

.flash-inline { margin-bottom: 1.25rem; display: grid; gap: .75rem; }

/* --------------------------------------------------------------- oznámení */
.alert {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: .9375rem;
    margin-bottom: 1.25rem;
}
.alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert--error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert--info { background: var(--lime-50); border-color: #d9f99d; color: var(--lime-900); }
.alert .lb-icon { margin-top: .1rem; flex: none; }
.alert__text { margin: 0; }
/* Souhrn chyb formuláře s odkazy na pole (FE-25); fokus na něj přesune site.js. */
.alert__list { margin: .45rem 0 0; padding-left: 1.15rem; }
.alert__list > li + li { margin-top: .2rem; }
.alert__list a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.alert[data-chyby-formulare]:focus { outline: 3px solid var(--lime-700); outline-offset: 2px; }

/* ------------------------------------------------------------- drobečky */
.breadcrumbs { font-size: .8125rem; color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--lime-800); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------- záhlaví stránky */
.page-hero {
    position: relative;
    isolation: isolate;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(6, 21, 15, .84), rgba(6, 21, 15, .7) 55%, rgba(6, 21, 15, .92)),
        linear-gradient(to top, var(--ink) 2%, rgba(6, 21, 15, .06) 45%, rgba(0, 0, 0, .28) 100%);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 52rem; }
.page-hero__eyebrow {
    display: block;
    margin-bottom: .9rem;
    color: var(--lime-300);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.35rem, 6.4vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -.04em;
}
.page-hero p {
    margin-top: 1.5rem;
    max-width: 43rem;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, .95rem + .35vw, 1.125rem);
    line-height: 1.8;
}
.page-hero .hero__actions { margin-top: 2rem; }

/* ---------------------------------------------- pruh drobečkové navigace */
.breadcrumb-band { border-bottom: 1px solid var(--line); background: var(--cream); }
.breadcrumb-band .breadcrumbs { min-height: 3.5rem; display: flex; align-items: center; }

/* ------------------------------------------ tmavý úvodní panel podstránky */
.intro-band { position: relative; z-index: 2; padding-top: 1.75rem; }
.intro-panel {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-xl);
    background: var(--ink-2);
    color: #fff;
    box-shadow: var(--shadow-dark);
}
.intro-statement { padding: 2rem 1.75rem; }
.intro-statement .section-label { color: var(--lime-300); }
.intro-statement p {
    margin: 0;
    max-width: 41rem;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    line-height: 1.85;
}
.intro-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intro-meta--jedno { grid-template-columns: minmax(0, 1fr); }
.meta-item {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--line-light);
    border-right: 1px solid var(--line-light);
}
.meta-item:last-child { border-right: 0; }
.meta-item strong {
    font-family: var(--font-serif);
    color: var(--lime-300);
    font-size: 2.125rem;
    font-weight: 700;
    line-height: 1;
}
.meta-item span {
    margin-top: .55rem;
    color: rgba(255, 255, 255, .62);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* --------------------------------------------------- seznam služeb v řádcích */
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter-row .chip[aria-current="page"] {
    background: var(--lime-800);
    border-color: var(--lime-800);
    color: #fff;
}

.service-list { display: grid; gap: 1.375rem; }
.service-detail {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: 0 14px 44px rgba(6, 21, 15, .045);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.service-detail:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 124, 15, .24);
    box-shadow: var(--shadow-lg);
}
.service-detail__media { overflow: hidden; background: var(--cream-2); }
.service-detail__media img {
    width: 100%;
    height: 100%;
    min-height: 13rem;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.service-detail:hover .service-detail__media img { transform: scale(1.045); }
.service-detail__body { padding: 1.9rem 1.75rem; }
.service-detail__number {
    margin-bottom: .7rem;
    color: var(--lime-800);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.service-detail__body h2,
.service-detail__body h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.08; }
.service-detail__body h2 a,
.service-detail__body h3 a { color: inherit; text-decoration: none; }
.service-detail__body h2 a:hover,
.service-detail__body h3 a:hover { color: var(--lime-900); }
.service-detail__body p {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: var(--text-soft);
    font-size: .9375rem;
    line-height: 1.85;
}
.service-points { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.service-points span {
    border-radius: 999px;
    background: var(--lime-50);
    padding: .5rem .75rem;
    color: var(--lime-800);
    font-size: .6875rem;
    font-weight: 700;
}
.service-detail__action {
    display: grid;
    min-height: 4rem;
    place-items: center;
    border-top: 1px solid var(--line);
    color: var(--lime-800);
    text-decoration: none;
    transition: background-color .45s var(--ease), color .45s var(--ease);
}
.service-detail__action:hover { background: var(--lime-800); color: #fff; }
/* Nález FE-04: karta služby má overflow: hidden – prstenec fokusu musí dovnitř. */
.service-detail__action:focus-visible { outline-offset: -4px; }

/* ------------------------------------------------- hlavní aktualita a štítky */
.featured-news {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.featured-news__media { overflow: hidden; background: var(--cream-2); }
.featured-news__media img { width: 100%; height: 100%; min-height: 17rem; object-fit: cover; }
.featured-news__body { display: flex; flex-direction: column; justify-content: center; padding: 2.25rem 1.9rem; }
.featured-news__body .chip { align-self: flex-start; }
.featured-news__date {
    margin-top: 1.5rem;
    color: var(--lime-800);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.featured-news__body h2 { margin-top: .8rem; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.85rem); line-height: 1.06; }
.featured-news__body h2 a { color: inherit; text-decoration: none; }
.featured-news__body h2 a:hover { color: var(--lime-900); }
.featured-news__body p { margin-top: 1.2rem; color: var(--text-soft); line-height: 1.9; }
.featured-news__body .btn { margin-top: 1.75rem; align-self: flex-start; }

/* --------------------------------------------------------- mozaika galerie */
.gallery-mosaic { display: grid; gap: 1rem; grid-auto-rows: 15rem; }
.gallery-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink-2);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 21, 15, .74), transparent 55%);
    opacity: .68;
    transition: opacity .55s var(--ease);
}
.gallery-card:hover img, .gallery-card:focus-within img { transform: scale(1.05); }
.gallery-card:hover::after, .gallery-card:focus-within::after { opacity: .9; }
.gallery-card__btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: none;
    cursor: pointer;
}
.gallery-card figcaption { position: absolute; inset: auto 1.4rem 1.25rem; z-index: 1; color: #fff; }
.gallery-card figcaption strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.2; }
.gallery-card figcaption span { display: block; margin-top: .25rem; color: rgba(255, 255, 255, .68); font-size: .8125rem; }

/* --------------------------------------------------------- stránka O nás */
.about-layout { display: grid; gap: 2.5rem; align-items: center; }
.about-visual { position: relative; }
.about-visual img { width: 100%; min-height: 22rem; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.stat-float {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-lg);
    background: var(--ink-2);
    color: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
    margin: -3rem 1rem 0;
    position: relative;
}
.stat-float div { padding: 1.25rem .75rem; text-align: center; border-right: 1px solid var(--line-light); }
.stat-float div:last-child { border-right: 0; }
.stat-float strong { display: block; font-family: var(--font-serif); color: var(--lime-300); font-size: 1.65rem; font-weight: 700; }
.stat-float span { display: block; margin-top: .3rem; color: rgba(255, 255, 255, .6); font-size: .75rem; }

.values-grid { display: grid; gap: 1.25rem; }
.value-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    padding: 1.85rem;
    box-shadow: 0 14px 40px rgba(6, 21, 15, .045);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(77, 124, 15, .2); box-shadow: var(--shadow-lg); }
.value-card .lb-icon { color: var(--lime-700); }
.value-card h2, .value-card h3 { margin: 1.25rem 0 0; font-size: 1.5rem; }
.value-card p { margin: .8rem 0 0; color: var(--text-soft); font-size: .9375rem; line-height: 1.8; }

/* ------------------------------------------------------------------ próza */
.prose { font-size: 1.0625rem; line-height: 1.78; color: var(--text-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.25rem 0 .9rem; font-size: 1.6rem; color: var(--text); }
.prose h3 { margin: 1.85rem 0 .75rem; font-size: 1.25rem; color: var(--text); }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li::marker { color: var(--lime-700); }
.prose blockquote {
    margin: 1.75rem 0;
    padding: .35rem 0 .35rem 1.25rem;
    border-left: 3px solid var(--lime-600);
    font-style: italic;
    color: var(--text);
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
/*
 * Nález B5 (audit 1.2.5): sanitizer povoluje tabulky, ale `.prose` neměla
 * ošetřené vodorovné přetečení. Širší tabulka roztáhla obsahový sloupec
 * a `body { overflow-x: hidden }` pravou část natrvalo skryla.
 * `display: block` s vlastním posuvem drží tabulku uvnitř sloupce;
 * `tabindex` v `site.js` k ní pustí i klávesnici (WCAG 2.1.1).
 */
.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9375rem;
}
.prose table:focus-visible { outline: 2px solid var(--lime-300); outline-offset: 2px; }
.prose table > tbody, .prose table > thead { display: table; width: 100%; }

/*
 * Položky mřížky mají `min-width: auto`, takže je široký obsah roztáhne
 * a stopa se rozšíří přes celou stránku dřív, než se posuv tabulky uplatní.
 * Obsahové bloky proto smějí zmenšit pod svou vnitřní šířku.
 */
.about > *, .about-layout > *, .contact-layout > * { min-width: 0; }
/* Pojistka pro rozvržení, která teprve vzniknou; starší prohlížeče ji ignorují. */
@supports selector(:has(*)) {
    :is([class*="grid"], [class*="layout"], .about) > *:has(.prose) { min-width: 0; }
}
.prose th, .prose td { padding: .65rem .75rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream); font-weight: 700; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ------------------------------------------------------------ stránkování */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding-inline: .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--lime-600); color: var(--lime-800); background: var(--lime-50); }
.pagination [aria-current="page"] { background: var(--lime-700); border-color: var(--lime-700); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }
.pagination-summary { margin-top: 1rem; text-align: center; font-size: .875rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- patička */
.site-footer { background: var(--ink); color: #fff; padding-block: 3rem 1.75rem; }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line-light); }
.footer-note { margin-top: 1.25rem; max-width: 22rem; font-size: .875rem; line-height: 1.65; color: rgba(255, 255, 255, .74); }
.footer-note p { margin: 0 0 .6rem; }
.footer-note p:last-child { margin-bottom: 0; }
.footer h2 {
    margin-bottom: 1.15rem;
    font-family: var(--font-sans);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lime-300);
}
.footer-list { display: grid; gap: .9rem; font-size: .9375rem; color: rgba(255, 255, 255, .72); }
.footer-list a, .footer-list div { display: flex; gap: .75rem; align-items: flex-start; color: inherit; text-decoration: none; min-height: 1.75rem; }
/* Nález FE-14: kontaktní odkazy se od textu lišily jen barvou. */
.footer-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    text-decoration-color: rgba(255, 255, 255, .45);
}
.footer-list a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-legal { margin: 1rem 0 0; font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.footer-list .lb-icon { color: var(--lime-300); margin-top: .15rem; flex: none; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; font-size: .9375rem; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; min-height: 1.75rem; display: flex; align-items: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    margin-top: 1.75rem;
    display: grid;
    gap: .6rem;
    font-size: .75rem;
    color: rgba(255, 255, 255, .72);
}
.footer-bottom a { color: rgba(255, 255, 255, .82); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__credit { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
/* Odznak autora webu (nawebicku.cz). Barvu a písmo přebírá z patičky; styly musí být zde, CSP inline styly nepovolí. */
.nwb-odznak { display: inline-flex; align-items: center; gap: .5em; font: inherit; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nwb-odznak svg { width: 1.6em; height: 1.42em; flex: none; display: block; }
.nwb-odznak b { font-weight: 700; }
.nwb-odznak:hover b, .nwb-odznak:focus-visible b { text-decoration: underline; text-underline-offset: .2em; }
.nwb-odznak:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* --------------------------------------------------------- chybová stránka */
.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: 5rem 3rem;
}
.error-page__code {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--lime-700);
}
.error-page h1 { margin-top: 1rem; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); }
.error-page p { margin-top: 1rem; max-width: 34rem; margin-inline: auto; color: var(--text-soft); }
.error-page .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ------------------------------------------------------------- vyhledávání */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-form .input { flex: 1 1 14rem; }

.result-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.result-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: inset 0 0 0 1px var(--line);
    margin: 0;
}
.result-item__date { color: var(--text-soft); font-size: .875rem; margin-top: .15rem; }
.result-item h2 { font-size: 1.1875rem; }
.result-item h2 a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}
.result-item h2 a:hover { color: var(--lime-800); text-decoration-thickness: 2px; }
/* Nález FE-15: shoda ve výsledcích hledání. */
.result-item mark {
    background: var(--lime-200);
    color: var(--text);
    padding: 0 .1em;
    border-radius: 2px;
}
.result-item p { margin-top: .5rem; font-size: .9375rem; color: var(--text-soft); }

/* -------------------------------------------------------------- dokumenty */
.doc-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.doc-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    box-shadow: inset 0 0 0 1px var(--line);
    margin: 0;
}
.doc-item .lb-icon { color: var(--lime-700); }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__body strong { display: block; }
.doc-item__body span { font-size: .8125rem; color: var(--text-muted); }

/* ------------------------------------------------------------- odhalování */
.reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    /*
     * Nález F3: obsah se ukázal, až když site.js doběhl. Selhal-li skript
     * (blokovaný, chyba v jiném modulu), zůstala stránka prázdná. Pojistka
     * ho ukáže sama po 2,5 s; skript ji vypne třídou `reveal-ready`, jakmile
     * odhalování skutečně převezme.
     */
    animation: reveal-pojistka 0s 2.5s forwards;
}
.reveal-ready .reveal { animation: none; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes reveal-pojistka { to { opacity: 1; transform: none; } }
.reveal-delay-1 { transition-delay: 0s; }
.reveal-delay-2 { transition-delay: .06s; }
.reveal-delay-3 { transition-delay: .12s; }
.reveal-delay-4 { transition-delay: .18s; }
.reveal-delay-5 { transition-delay: .24s; }
.reveal-delay-6 { transition-delay: .3s; }

.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------------- breakpointy */
@media (min-width: 40em) {
    :root { --gutter: 1.75rem; }
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; }
    .gallery-card:first-child { grid-column: span 2; }
    .service-detail__body { padding: 2.1rem; }
    .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
    .stat:first-child { border-left: 0; }
    .cta { padding: 3rem 2.25rem; }
    .form-card { padding: 2rem; }
    .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 48em) {
    .section { padding-block: 4.5rem; }
    .intro-panel { grid-template-columns: 1.1fr .9fr; }
    .intro-panel--bez-cisel { grid-template-columns: minmax(0, 1fr); }
    .intro-panel--jedno-cislo { grid-template-columns: minmax(0, 1fr) minmax(13rem, .5fr); }
    .intro-statement { padding: 2.5rem 2.75rem; }
    .meta-item { border-top: 0; border-left: 1px solid var(--line-light); border-right: 0; }
    .intro-meta .meta-item:first-child { border-left: 1px solid var(--line-light); }
    .service-detail { grid-template-columns: 17rem 1fr; }
    .service-detail__action { grid-column: 1 / -1; }
    .featured-news { grid-template-columns: 1.08fr .92fr; }
    .featured-news__body { padding: 3rem 2.5rem; }
    .stat-float { margin: -3.5rem 1.5rem 0; }
    .hero { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 4rem; }
    .section-head { grid-template-columns: 1fr auto; align-items: end; }
    .section-head > .section-lead { max-width: 26rem; justify-self: end; }
    .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
    .contact-layout { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

@media (min-width: 64em) {
    :root { --gutter: 2rem; --header-h: 5.25rem; }

    .page-hero { padding-top: calc(var(--header-h) + 5.5rem); padding-bottom: 6rem; min-height: 38rem; display: flex; align-items: center; }
    .page-hero::after {
        background:
            linear-gradient(105deg, rgba(6, 21, 15, .95) 8%, rgba(6, 21, 15, .62) 50%, rgba(6, 21, 15, .3) 100%),
            linear-gradient(to top, rgba(6, 21, 15, .92), rgba(6, 21, 15, 0) 55%);
    }
    .intro-band { padding-top: 2.5rem; }
    .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .about-layout { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
    .stat-float { position: absolute; right: -1.5rem; bottom: 2rem; width: min(38rem, 96%); margin: 0; }
    .stat-float div { padding: 1.5rem; }
    .stat-float strong { font-size: 1.85rem; }
    .service-detail { grid-template-columns: 21rem 1fr 7rem; }
    .service-detail__action { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); }
    .gallery-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 7.5rem; }
    .gallery-card:nth-child(1) { grid-column: span 7; grid-row: span 4; }
    .gallery-card:nth-child(2) { grid-column: span 5; grid-row: span 2; }
    .gallery-card:nth-child(3) { grid-column: span 5; grid-row: span 2; }
    .gallery-card:nth-child(4),
    .gallery-card:nth-child(5),
    .gallery-card:nth-child(6) { grid-column: span 4; grid-row: span 3; }
    .gallery-card:nth-child(7) { grid-column: span 5; grid-row: span 3; }
    .gallery-card:nth-child(8) { grid-column: span 7; grid-row: span 3; }
    .gallery-card:nth-child(n + 9) { grid-column: span 4; grid-row: span 3; }

    /* Menu se vejde jen s úsporným rozestupem; širší obrazovky jej rozvolní. */
    .nav { display: flex; align-items: center; flex: 1 1 auto; justify-content: center; min-width: 0; }
    .nav__list { display: flex; align-items: center; gap: 1rem; }
    .menu-toggle { display: none; }
    .header-phone { display: inline-flex; }
    .mobile-menu, .no-js .mobile-menu { display: none !important; }
    .no-js .nav { display: flex; }

    /*
     * Nález A2 (audit 1.2.5): nevejde-li se obsah hlavičky, přepneme
     * i na širokém displeji na tlačítko a rozbalovací menu. Třídu nasazuje
     * `site.js` po změření skutečné šířky. Bez JavaScriptu se menu zalomí
     * do více řádků – hlavička je pak vyšší, ale nic nezmizí.
     */
    .header-inner.is-compact .nav,
    .header-inner.is-compact .header-phone,
    .header-inner.is-compact .site-search--hlavicka { display: none; }
    .header-inner.is-compact .menu-toggle { display: inline-flex; }
    .header-inner.is-compact ~ .mobile-menu:not([hidden]) { display: block !important; }
    .no-js .nav__list { flex-wrap: wrap; row-gap: .35rem; justify-content: flex-end; }

    .hero { padding-top: calc(var(--header-h) + 6rem); padding-bottom: 8.5rem; min-height: 50rem; display: flex; align-items: center; }
    .hero::before {
        /* Nález WEB-15: nová fotografie má pod koncem nadpisu světlý opar
           (akcent 2,4 : 1, odstavec 3,8 : 1). Přechod drží tmavší tón až za
           text; pravá třetina fotografie zůstává světlá. */
        background:
            linear-gradient(105deg, rgba(6, 21, 15, .94) 8%, rgba(6, 21, 15, .8) 45%, rgba(6, 21, 15, .6) 68%, rgba(6, 21, 15, .22) 100%),
            linear-gradient(to top, var(--ink) 1%, rgba(6, 21, 15, .04) 44%, rgba(0, 0, 0, .24) 100%);
    }
    .hero__scroll { display: block; }
    .hero__inner { max-width: 52rem; }
    .hero h1 { max-width: 52rem; }

    .benefits { margin-top: -5rem; }
    .benefits__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .benefit { padding: 1.85rem 1.6rem; }

    .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .about { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; }
    .about--reverse { grid-template-columns: 1.1fr .9fr; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
    .section--tight { padding-block: 3rem; }
    .cta { padding: 3.5rem 3.25rem; }
}

@media (min-width: 80em) {
    /*
     * Vydání 1.2.10: rozestupy jsou o něco úspornější, aby se osm položek
     * s chevronem u podmenu vešlo vedle vyhledávání a telefonu i na 1440 px
     * s písmem šířky Arialu; od 100em se menu opět rozvolní.
     */
    .nav__list { gap: 1.1rem; }
    .nav-link { font-size: .75rem; letter-spacing: .14em; }

    .card-grid--services { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
    .card-grid--services .service-card__body { padding: 2.1rem 1.1rem 1.2rem; }
    .card-grid--services .service-card__body h3 { font-size: 1.1rem; }
    .card-grid--services .service-card__body p { font-size: .875rem; }

    .gallery-grid { gap: 1.25rem; }

    .steps { gap: 1rem; }
}

/* --------------------------------------------------- omezené animace */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .btn:hover, .service-card:hover, .news-card:hover { transform: none; }
}

/* ------------------------------------------------------------------- tisk */
@media print {
    .site-header, .site-footer, .hero__scroll, .lightbox, .btn, .pagination { display: none !important; }
    /* Nález FE-01: neodhalené bloky byly na papíře prázdné. */
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
    .submenu, .mobile-submenu { display: none !important; }
    .is-opening { animation: none !important; }
    body { background: #fff; color: #000; }
    .page-hero { padding-top: 0; color: #000; background: none; }
    .page-hero::after, .page-hero__bg { display: none; }
    /* PROD-03: na papíře mapa nemá smysl, adresa zůstává v kontaktních údajích. */
    .map-card { display: none !important; }
}

/* Na širokých obrazovkách je v hlavičce dost místa na vzdušnější menu. */
@media (min-width: 90em) {
    .nav__list { gap: 1.25rem; }
    .nav-link { letter-spacing: .15em; }
}
