/* ============================================================
   BW TAXI – hlavní styly webu
   Struktura a třídy jsou sdílené se sesterskými CMS (předloha skibruntal, metosagroup);
   černobílá paleta BW Taxi je v sekci „Vzhled BW Taxi“ na konci souboru (přebíjí
   proměnné i zlaté akcenty metosagroup). Nadpisy Oswald, text Inter. Názvy proměnných (--navy,
   --blue…) zůstávají kvůli sdíleným stylům administrace (css/admin.css).
   Úpravy vzhledu oproti předloze jsou v sekci „Vzhled metosagroup“ na konci.
   Soubor se needituje ručně – sestavuje ho php build/build_style.php.
============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* tmavá šedá (role „navy“ ze sdíleného základu) */
    --navy: #1A1A1A;
    --navy-deep: #0F0F0F;
    --navy-soft: #2D2D2D;
    /* zlatá (role „blue“ – odkazy, nadtitulky, ikony, primární tlačítko) */
    --blue: #EFC030;
    --blue-dark: #D4A820;
    --blue-light: #FBF3D6;
    --sky: #F5D560;
    /* světlé neutrální tóny */
    --ice: #F5F5F0;
    --ice-2: #CFCFC8;
    --ice-3: #E6E6E0;
    --snow: #FAFAF7;
    --text: #1A1A1A;
    --muted: #555555;
    --line: #E0E0E0;
    --white: #FFFFFF;
    --error: #D32F2F;
    --success: #388E3C;

    --font-heading: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width: 1280px;
    /* --header-bar = výška lišty hlavičky (tmavá lišta s kontakty + zlatá lišta s logem), --header-height navíc
       započítá bezpečnou zónu nahoře (iPhone s viewport-fit=cover); main.js ji pak přepíše změřenou výškou hlavičky. */
    --header-bar: 124px;
    --header-height: calc(var(--header-bar) + env(safe-area-inset-top, 0px));
    --radius: 12px;
    --radius-sm: 6px;
    --radius-pill: 4px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* aliasy pro sdílené admin styly a původní třídy metosagroup */
    --color-border: var(--line);
    --color-white: var(--white);
    --color-text: var(--text);
    --color-text-light: var(--muted);
    --color-bg: var(--ice);
    --color-bg-light: var(--snow);
    --color-primary: var(--blue);
    --color-error: var(--error);
    --color-success: var(--success);
    --color-gold: var(--blue);
    --color-gold-dark: var(--blue-dark);
    --color-gold-light: var(--sky);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    /* Safari na iOS 26 ignoruje theme-color a barvu své lišty bere z pozadí
       stránky / prvku u okraje – nenechávat průhledné. */
    background-color: var(--white);
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > main,
body > .page-content {
    flex: 1 0 auto;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    flex-shrink: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy);
    letter-spacing: 0.005em;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    --gutter: 1.25rem;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow p {
    margin: 0;
}

/* ------------------------------------------------------------
   Tlačítka
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn--primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.btn--outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--ice-3);
    color: var(--navy);
}

.btn--ghost:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--white);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.btn--light:hover {
    background: var(--ice);
    border-color: var(--ice);
    color: var(--navy);
}

.btn--sm {
    font-size: 0.92rem;
    padding: 0.65rem 1.3rem;
}

.btn--lg {
    font-size: 1.15rem;
    padding: 1.1rem 2.3rem;
}

.btn--full {
    width: 100%;
}

/* ------------------------------------------------------------
   Hlavička + navigace
   ------------------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Neprůhledné pozadí bez backdrop-filter: Safari na iOS 26 vzorkuje barvu
       horní lišty z fixního prvku u okraje a rozmazání na něm vzorkování
       rozbije (lišta zůstane bílá i nad tmavým obsahem). Pozadí 0.96 bylo
       stejně prakticky neprůhledné. */
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.header.is-scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.header.is-hidden {
    transform: translateY(-100%);
}

.header.header--menu-open {
    z-index: 1040;
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--header-bar);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo__img {
    height: 90px;
    width: auto;
}

.logo__img--footer {
    height: 96px;
}

.logo__img--login {
    height: 90px;
    margin: 0 auto;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav--mobile {
    display: none;
}

.nav__list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.15rem;
}

.nav__link {
    display: block;
    position: relative;
    padding: 0.6rem 0.9rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav__link:hover {
    color: var(--blue);
}

.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__link--disabled {
    color: var(--muted);
    cursor: default;
}

.nav__link--disabled::after {
    display: none;
}

.nav__item--inactive {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
    opacity: 0.6;
}

.nav__arrow {
    font-size: 0.7rem;
    margin-left: 0.15rem;
}

.nav__dropdown {
    position: relative;
}

.nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0.5rem;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    list-style: none;
    z-index: 100;
}

.nav__dropdown:hover .nav__submenu {
    display: block;
}

.nav__submenu li a,
.nav__submenu-link {
    display: block;
    padding: 0.5rem 1.1rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.nav__submenu li a:hover {
    background: var(--snow);
    color: var(--blue);
}

.nav__submenu-item {
    position: relative;
}

.nav__submenu--child {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: transparent;
    min-width: 0;
}

.nav__submenu--child li a {
    font-size: 0.9rem;
    padding: 0.35rem 1.1rem;
    color: var(--muted);
}

.header__cta {
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--navy);
    transition: width 0.3s ease;
}

.hamburger span:nth-child(2) {
    width: 20px;
}

.hamburger:hover span {
    width: 28px;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav__footer {
    display: none;
}

/* Měření přirozené šířky menu (initAdaptiveNav v main.js) */
html.nav-measuring .nav--desktop {
    display: flex !important;
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    flex: none;
    width: max-content;
}

/* === Sbalené menu (hamburger) — řízeno třídou html.nav-collapsed z main.js === */
:where(html.nav-collapsed) .hamburger {
    display: flex;
}

:where(html.nav-collapsed) .nav--desktop {
    display: none !important;
}

:where(html.nav-collapsed) .header__cta {
    display: none;
}

:where(html.nav-collapsed) .nav--mobile {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 320px;
    max-width: 88vw;
    background: var(--white);
    z-index: 1050;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0;
    overflow: hidden;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0);
}

:where(html.nav-collapsed) .nav--mobile.active {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
}

:where(html.nav-collapsed) .nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    min-height: var(--header-height);
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--snow);
}

:where(html.nav-collapsed) .nav__header-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
}

:where(html.nav-collapsed) .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    color: var(--navy);
    transition: all 0.25s ease;
}

:where(html.nav-collapsed) .nav__close:hover {
    border-color: var(--blue);
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

:where(html.nav-collapsed) .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    flex: none;
}

:where(html.nav-collapsed) .nav__list > li {
    border-bottom: 1px solid var(--line);
}

:where(html.nav-collapsed) .nav__list > li:last-child {
    border-bottom: none;
}

:where(html.nav-collapsed) .nav__admin-add {
    padding: 0.75rem 1.5rem;
}

:where(html.nav-collapsed) .nav__link {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

:where(html.nav-collapsed) .nav__link::after {
    display: none;
}

:where(html.nav-collapsed) .nav__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    width: 20px;
    height: 20px;
    margin-left: auto;
}

:where(html.nav-collapsed) .nav__arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
    transition: transform 0.35s var(--ease);
}

:where(html.nav-collapsed) .nav__dropdown.active > .nav__link .nav__arrow::after {
    transform: rotate(45deg);
}

:where(html.nav-collapsed) .nav--mobile .nav__dropdown:hover .nav__submenu {
    display: none;
}

:where(html.nav-collapsed) .nav--mobile .nav__dropdown.active > .nav__submenu {
    display: block;
}

:where(html.nav-collapsed) .nav--mobile .nav__dropdown.active .nav__submenu--child {
    display: block;
}

:where(html.nav-collapsed) .nav__submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem;
    display: none;
    background: var(--snow);
}

:where(html.nav-collapsed) .nav__submenu li a,
:where(html.nav-collapsed) .nav__submenu-link {
    font-size: 1rem;
    padding: 0.6rem 1.5rem 0.6rem 2rem;
}

:where(html.nav-collapsed) .nav__submenu--child {
    padding: 0;
    margin-left: 1rem;
    background: transparent;
}

:where(html.nav-collapsed) .nav__footer {
    display: block;
    padding: 1.25rem 1.5rem 1.75rem;
    border-top: 1px solid var(--line);
    background: var(--snow);
    margin-top: auto;
}

:where(html.nav-collapsed) .nav__footer-divider {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    margin-bottom: 1rem;
}

:where(html.nav-collapsed) .nav__footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

:where(html.nav-collapsed) .nav__footer-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text);
}

:where(html.nav-collapsed) .nav__footer-item svg {
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__footer-social {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

:where(html.nav-collapsed) .nav__footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--navy);
    background: var(--white);
}

:where(html.nav-collapsed) .nav__footer-cta {
    display: inline-flex;
    margin-bottom: 1rem;
}

:where(html.nav-collapsed) .nav__footer-brand {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ------------------------------------------------------------
   Hero úvodní stránky
   ------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #FAFAF7 0%, var(--ice) 55%, #F5F5F0 100%);
    padding: 3.5rem 0 7rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 85% 10%, rgba(245, 213, 96, 0.22), rgba(245, 213, 96, 0) 40%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero__eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
    flex-shrink: 0;
}

.hero__eyebrow p {
    margin: 0;
}

.hero__title {
    font-size: clamp(2.8rem, 5.6vw, 4.9rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--navy);
    margin-bottom: 1.4rem;
    text-wrap: balance;
}

.hero__text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero__text p + p {
    margin-top: 0.75rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

/* Koláž fotek */
.hero__collage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    aspect-ratio: 4 / 3.15;
}

.hero__photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ice-3);
    box-shadow: var(--shadow-card);
    border: 4px solid var(--white);
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.hero__photo:hover img {
    transform: scale(1.04);
}

.hero__photo--1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.hero__photo--2 {
    grid-column: 2;
    grid-row: 1;
}

.hero__photo--3 {
    grid-column: 2;
    grid-row: 2;
}

.hero__photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem 1rem 0.7rem;
    font-size: 0.85rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero__photo:hover .hero__photo-caption {
    opacity: 1;
}

.hero__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--navy);
    background: linear-gradient(160deg, var(--ice), var(--ice-2));
    grid-column: 1 / -1;
}

.hero__badge {
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--white);
    transform: rotate(-6deg);
    z-index: 2;
}

.hero__badge-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero__badge strong {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
}

.hero__peaks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    color: var(--white);
    pointer-events: none;
}

.peaks {
    display: block;
    width: 100%;
    height: 100%;
}

/* Pásek pod hero */
.hero__strip {
    position: relative;
    z-index: 2;
    margin-top: -3.4rem;
}

.hero__strip-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(var(--strip-count, 4), minmax(0, 1fr));
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    overflow: hidden;
}

.hero__strip-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.35rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
    border-right: 1px solid var(--line);
}

.hero__strip-item:last-child {
    border-right: none;
}

.hero__strip-item--empty {
    grid-column: 1 / -1;
    justify-content: center;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
}

.hero__strip-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Hlavička podstránky
   ------------------------------------------------------------ */
.page-header {
    position: relative;
    background: linear-gradient(160deg, #FAFAF7 0%, var(--ice) 70%, #F5F5F0 100%);
    padding: 3rem 0 5.5rem;
    overflow: hidden;
}

.page-header--no-image {
    padding-bottom: 5rem;
}

.page-header__peaks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 64px;
    color: var(--white);
    pointer-events: none;
}

.page-header .container {
    position: relative;
}

.page-header__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.page-header--image-side .page-header__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.page-header--image-side .page-header__layout--size-1-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-header--image-side .page-header__layout--size-2-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.page-header--image-left .page-header__layout > .page-header__media {
    order: -1;
}

.page-header__content {
    max-width: 46rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--blue);
}

.breadcrumb__sep {
    color: var(--ice-2);
}

.breadcrumb__current {
    color: var(--navy);
    font-weight: 600;
}

.page-header__title {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.page-header__description {
    font-size: 1.15rem;
    color: var(--text);
}

.page-header__description p + p {
    margin-top: 0.6rem;
}

.page-header__content > .admin-tools--inline {
    margin-top: 1.25rem;
}

.page-header__media {
    position: relative;
}

.page-header__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 440px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 4px solid var(--white);
}

.page-header--detail .page-header__media img {
    max-height: 380px;
}

.page-header__eyebrow svg {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------------------
   Obsah stránky
   ------------------------------------------------------------ */
.page-content {
    position: relative;
}

.page-main {
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.page-main--home {
    max-width: none;
    padding: 0 0 1rem;
}

.page-main__content + .page-main__items,
.page-main__items + .media-manager,
.page-main__content + .media-manager {
    margin-top: 3rem;
}

.page-main__items .staff-section,
.page-main__items .blok-section {
    padding: 0;
}

.rich-text {
    font-size: 1.06rem;
    line-height: 1.7;
}

.rich-text h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin: 2.2rem 0 0.8rem;
}

.rich-text h3 {
    font-size: 1.5rem;
    margin: 1.8rem 0 0.6rem;
}

.rich-text h4 {
    font-size: 1.2rem;
    margin: 1.4rem 0 0.5rem;
}

.rich-text h2:first-child,
.rich-text h3:first-child,
.rich-text h4:first-child {
    margin-top: 0;
}

.rich-text p {
    margin-bottom: 1rem;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 1.1rem 1.4rem;
}

.rich-text li {
    margin-bottom: 0.35rem;
}

.rich-text ul li::marker {
    color: var(--blue);
}

.rich-text ol li::marker {
    color: var(--blue);
    font-weight: 700;
}

.rich-text strong {
    color: var(--navy);
    font-weight: 700;
}

.rich-text a:not(.btn) {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.4);
    text-underline-offset: 3px;
}

.rich-text a:not(.btn):hover {
    color: var(--navy);
    text-decoration-color: currentColor;
}

.rich-text blockquote {
    position: relative;
    margin: 1.75rem 0;
    padding: 1.4rem 1.6rem 1.4rem 2.2rem;
    border-left: 4px solid var(--blue);
    background: var(--snow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

.rich-text blockquote p:last-child {
    margin-bottom: 0;
}

.rich-text img {
    border-radius: var(--radius-sm);
}

.rich-text figure {
    margin: 1.5rem 0;
}

.rich-text figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.98rem;
}

.rich-text th,
.rich-text td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.rich-text th {
    background: var(--snow);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
}

.rich-text hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

.rich-text .btn {
    text-decoration: none;
    margin-top: 0.5rem;
}

/* kontaktní karty a mapa (obsah stránky Kontakt) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-card {
    padding: 1.6rem 1.7rem;
    border-radius: var(--radius);
    background: var(--snow);
    border: 1px solid var(--line);
}

.contact-card h3 {
    margin-top: 0;
    font-size: 1.45rem;
    text-transform: uppercase;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    margin: 0.5rem 0 1rem;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* ------------------------------------------------------------
   Sekce (podstránky vykreslené uvnitř stránky)
   ------------------------------------------------------------ */
.page-subsection {
    position: relative;
    padding: 4.5rem 0;
}

.page-content--home .page-subsection:first-of-type {
    padding-top: 4rem;
}

.page-subsection--bg-ledova,
.page-subsection--bg-modra,
.page-subsection--bg-bila,
.page-subsection--photo {
    margin: 0.75rem 0;
}

.page-subsection--bg-ledova {
    background: var(--snow);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-subsection--bg-bila {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-subsection--bg-modra {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
}

.page-subsection--bg-modra .page-subsection__title,
.page-subsection--bg-modra .page-subsection__link,
.page-subsection--bg-modra .rich-text strong,
.page-subsection--bg-modra h3 {
    color: var(--white);
}

.page-subsection--bg-modra .eyebrow {
    color: var(--sky);
}

.page-subsection--bg-modra .rich-text a:not(.btn) {
    color: var(--sky);
}

.page-subsection--photo {
    background-color: var(--navy);
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.3) 100%), var(--section-photo);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.page-subsection--photo .container {
    width: 100%;
}

.page-subsection--photo .page-subsection__content-wrap {
    max-width: 40rem;
}

.page-subsection--photo .page-subsection__title,
.page-subsection--photo .page-subsection__link {
    color: var(--white);
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

.page-subsection--photo .eyebrow {
    color: var(--sky);
}

.page-subsection--photo .rich-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
}

.page-subsection--inactive .container {
    opacity: 0.55;
}

.page-subsection--inactive .page-subsection__title {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

.page-subsection__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.page-subsection__layout:last-child {
    margin-bottom: 0;
}

.page-subsection__layout--full {
    grid-template-columns: minmax(0, 1fr);
}

.page-subsection__layout--full .page-subsection__content-wrap {
    max-width: 52rem;
}

.page-subsection__layout--image-right,
.page-subsection__layout--image-left {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.page-subsection__layout--size-1-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.page-subsection__layout--size-2-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.page-subsection__layout--image-left .page-subsection__media {
    order: -1;
}

.page-subsection__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-subsection__title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    text-transform: uppercase;
    line-height: 1;
    text-wrap: balance;
}

.page-subsection__title--placeholder {
    color: var(--muted);
}

.page-subsection__title--placeholder small {
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: none;
    font-weight: 400;
}

.page-subsection__link {
    color: inherit;
}

.page-subsection__link:hover {
    color: var(--blue);
}

.page-subsection__intro {
    font-size: 1.15rem;
    color: var(--text);
}

.page-subsection--bg-modra .page-subsection__intro {
    color: rgba(255, 255, 255, 0.9);
}

.page-subsection__intro + .page-subsection__content {
    margin-top: 1rem;
}

.page-subsection__more {
    margin-top: 1.6rem;
}

.page-subsection__media {
    position: relative;
}

.page-subsection__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 4px solid var(--white);
}

.page-subsection__all {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ------------------------------------------------------------
   Sdílené prvky karet
   ------------------------------------------------------------ */
.card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.card-more svg {
    transition: transform 0.25s ease;
}

.card-more:hover svg {
    transform: translateX(4px);
}

.card-bg-ledova,
.blok-card--bg-ledova,
.blok-inline-item--bg-ledova {
    background: var(--blue-light) !important;
}

.card-bg-seda,
.blok-card--bg-seda,
.blok-inline-item--bg-seda {
    background: #F1F1EE !important;
}

.card-bg-bila,
.blok-card--bg-bila,
.blok-inline-item--bg-bila {
    background: var(--white) !important;
}

.card-bg-modra,
.blok-card--bg-modra,
.blok-inline-item--bg-modra {
    background: var(--navy) !important;
    color: var(--white);
}

.blok-card--bg-modra .blok-card__name,
.blok-card--bg-modra .rich-text strong,
.card-bg-modra .staff-card__name,
.blok-inline-item--bg-modra .blok-inline-item__title {
    color: var(--white);
}

.blok-card--bg-modra .card-more,
.card-bg-modra .card-more,
.blok-inline-item--bg-modra .card-more {
    color: var(--sky);
}

.blok-card--bg-modra .blok-card__icon,
.blok-card--bg-modra .blok-card__number {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.card-border-zadne { --card-border: transparent; }
.card-border-seda { --card-border: var(--line); }
.card-border-ledova { --card-border: var(--ice-2); }
.card-border-modra { --card-border: var(--navy); }

[class*="card-border-"] {
    border: 2px solid var(--card-border, var(--line)) !important;
}

/* Karty bloku */
.blok-section {
    padding: 0.5rem 0 0;
}

.blok-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
    gap: 1.5rem;
}

.blok-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.blok-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.blok-card__photo {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ice);
}

.blok-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.blok-card:hover .blok-card__photo img {
    transform: scale(1.05);
}

.blok-card--image-full {
    justify-content: center;
    box-shadow: none;
}

.blok-card--image-full .blok-card__photo {
    aspect-ratio: auto;
    background: var(--white);
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.blok-card--image-full .blok-card__photo img {
    width: auto;
    height: auto;
    max-height: 96px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.blok-card--image-full:hover .blok-card__photo img {
    transform: scale(1.04);
}

.blok-card--image-full .blok-card__body {
    padding: 0 1rem 1rem;
    text-align: center;
}

.blok-card--image-full .blok-card__name {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
}

.blok-card__icon,
.blok-card__number {
    width: 62px;
    height: 60px;
    border-radius: 16px;
    margin: 1.6rem 1.6rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.blok-card__icon svg {
    width: 28px;
    height: 28px;
}

.blok-card__number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.blok-card:hover .blok-card__icon,
.blok-card:hover .blok-card__number {
    background: var(--navy);
    color: var(--white);
}

.blok-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.blok-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem 1.6rem 1.6rem;
}

.blok-card--badge .blok-card__body {
    padding-top: 1.1rem;
}

.blok-card__name {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.blok-card__perex {
    font-size: 1rem;
    color: var(--muted);
}

.blok-card__perex p:last-child {
    margin-bottom: 0;
}

.card-more--static {
    color: var(--blue);
}

.blok-grid--ratio-1-4 .blok-card__name,
.blok-grid--ratio-1-5 .blok-card__name {
    font-size: 1.3rem;
}

.blok-grid--ratio-1-5 .blok-card__body,
.blok-grid--ratio-1-4 .blok-card__body {
    padding: 1.2rem 1.3rem 1.4rem;
}

/* Bloky pod sebou (fotka vedle textu) */
.blok-inline-list {
    display: grid;
    gap: 1.5rem;
}

.blok-inline-item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.blok-inline-item__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: stretch;
}

.blok-inline-item--size-1-2 .blok-inline-item__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.blok-inline-item--size-2-3 .blok-inline-item__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.blok-inline-item--image-right .blok-inline-item__image {
    order: 2;
}

.blok-inline-item--no-image .blok-inline-item__grid {
    grid-template-columns: minmax(0, 1fr);
}

.blok-inline-item__image {
    min-height: 240px;
    background: var(--ice);
}

.blok-inline-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blok-inline-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue);
    min-height: 160px;
}

.blok-inline-item__icon svg {
    width: 44px;
    height: 44px;
}

.blok-inline-item__card {
    display: flex;
    flex-direction: column;
    padding: 2rem 2.2rem;
}

.blok-inline-item__title {
    font-size: 1.7rem;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.blok-inline-item__text {
    font-size: 1.02rem;
}

/* Karty osob / výhod / kurzů */
.staff-section {
    padding: 0.5rem 0 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
    gap: 1.5rem;
}

.staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.staff-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ice);
}

.staff-card--personal .staff-card__photo {
    aspect-ratio: 1;
}

.staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card__avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin: 1.7rem 1.6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(150deg, var(--blue), var(--navy));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.04em;
}

.staff-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    margin: 1.6rem 1.6rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue);
}

.staff-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.6rem 1.6rem;
}

.staff-card__name {
    font-size: 1.45rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.staff-card--personal .staff-card__perex {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.staff-card__perex {
    font-size: 1rem;
    color: var(--muted);
}

.staff-card__perex p:last-child {
    margin-bottom: 0;
}

.staff-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.98rem;
}

.staff-card__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.staff-card__contact a:hover {
    color: var(--blue);
}

.staff-card__contact svg {
    color: var(--blue);
}

.course__badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--blue-light);
    color: var(--blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.course__price {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 0.8rem;
}

.course__price span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Aktuality – výpis pod sebou */
.news-list {
    display: grid;
    gap: 1.5rem;
}

.news-item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.news-item__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: stretch;
}

.news-item--size-1-2 .news-item__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.news-item--size-2-3 .news-item__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.news-item--image-right .news-item__image {
    order: 2;
}

.news-item--no-image .news-item__grid {
    grid-template-columns: minmax(0, 1fr);
}

.news-item__image {
    background: var(--ice);
    min-height: 220px;
    max-height: 340px;
    overflow: hidden;
}

.news-item__image a,
.news-item__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.news-item__image img {
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.news-item:hover .news-item__image img {
    transform: scale(1.04);
}

.news-item__image a.photo-link,
.news-card__media a.photo-link {
    cursor: zoom-in;
}

/* Lightbox otevřený na jediné fotce (aktualita) – bez šipek a náhledů */
.lightbox-overlay--single .lightbox-nav,
.lightbox-overlay--single .lightbox-thumbs {
    display: none;
}

.news-item__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.7rem 2rem 1.8rem;
}

.news-item__date,
.news-card__date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--blue-light);
    margin-bottom: 0.8rem;
}

.news-item__title {
    font-size: 1.75rem;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    line-height: 1.05;
}

.news-item__title a {
    color: inherit;
}

.news-item__title a:hover {
    color: var(--blue);
}

.news-item__text {
    font-size: 1.02rem;
    color: var(--text);
}

/* Aktuality – mřížka karet */
.news-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.news-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ice);
}

.news-card__media a {
    display: block;
    height: 100%;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.news-card:hover .news-card__media img {
    transform: scale(1.05);
}

.news-card__media-placeholder {
    display: flex;
    align-items: flex-end;
    height: 100%;
    color: var(--ice-2);
    background: linear-gradient(160deg, var(--snow), var(--ice));
}

.news-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 1.3rem 1.5rem 1.5rem;
}

.news-card__title {
    font-size: 1.45rem;
    text-transform: uppercase;
    line-height: 1.08;
    margin-bottom: 0.5rem;
}

.news-card__title a {
    color: inherit;
}

.news-card__title a:hover {
    color: var(--blue);
}

.news-card__perex {
    font-size: 0.98rem;
    color: var(--muted);
}

/* Fotogalerie – karty galerií */
.gallery-section {
    position: relative;
}

.gallery-carousel__track {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 4), minmax(0, 1fr));
    gap: 1.25rem;
}

.gallery-card {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-card__link {
    display: block;
    color: inherit;
}

.gallery-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ice);
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.06);
}

.gallery-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    color: var(--muted);
    font-size: 0.95rem;
    background: linear-gradient(160deg, var(--snow), var(--ice));
}

.gallery-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1.1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gallery-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.gallery-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-card__meta svg {
    width: 14px;
    height: 14px;
}

/* ------------------------------------------------------------
   Karusely (vodorovné pásy prvků)
   ------------------------------------------------------------ */
.news-carousel__track,
.staff-carousel__track,
.blok-carousel__track,
.gallery-carousel__track:not(.gallery-carousel__track--grid) {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Dráha má overflow kvůli posouvání a stín karet by ořízla – proto rezerva
       na stín (padding) vykompenzovaná záporným okrajem: nahoře zdvih karty 6px + rozptyl
       stínu, dole posun 20px + rozptyl 46px (--shadow-card-hover); vodorovně přesně gutter
       kontejneru, takže karta sedí na kraji a další nevykukuje. */
    padding: 2.5rem var(--gutter, 1.25rem) 4.5rem;
    margin: -2.5rem calc(-1 * var(--gutter, 1.25rem)) -4.5rem;
    scroll-padding: 0 var(--gutter, 1.25rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-carousel__track::-webkit-scrollbar,
.staff-carousel__track::-webkit-scrollbar,
.blok-carousel__track::-webkit-scrollbar,
.gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Vodorovně dráha končí přesně na okraji gutteru (sousední karta je od kraje dál
   než gutter, takže v klidu nikdy nevykukuje). Aby stín krajní karty v gutteru
   nekončil ostrou hranou, maska ho přes šířku gutteru plynule ztlumí. */
@media (min-width: 901px) {
    .news-carousel__track,
    .staff-carousel__track,
    .blok-carousel__track,
    .gallery-carousel__track:not(.gallery-carousel__track--grid) {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter, 1.25rem), #000 calc(100% - var(--gutter, 1.25rem)), transparent);
        mask-image: linear-gradient(to right, transparent, #000 var(--gutter, 1.25rem), #000 calc(100% - var(--gutter, 1.25rem)), transparent);
    }
}

/* Dráha má záporný horní okraj (rezerva na stín) a překrývala by spodní část šipek –
   šipky musí zůstat nad ní, jinak kliknutí občas skončí na dráze. */
.news-carousel__nav,
.staff-carousel__nav,
.blok-carousel__nav,
.gallery-carousel__nav {
    position: relative;
    z-index: 1;
}

.news-carousel__track > *,
.staff-carousel__track > *,
.blok-carousel__track > *,
.gallery-carousel__track:not(.gallery-carousel__track--grid) > * {
    flex: 0 0 calc((100% - (var(--items-per-row, 3) - 1) * 1.5rem) / var(--items-per-row, 3));
    scroll-snap-align: start;
}

.news-carousel__nav,
.staff-carousel__nav,
.blok-carousel__nav,
.gallery-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-carousel__nav[hidden],
.staff-carousel__nav[hidden],
.blok-carousel__nav[hidden],
.gallery-carousel__nav[hidden] {
    display: none;
}

.news-carousel__btn,
.staff-carousel__btn,
.blok-carousel__btn,
.gallery-carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-carousel__btn:hover,
.staff-carousel__btn:hover,
.blok-carousel__btn:hover,
.gallery-carousel__btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ------------------------------------------------------------
   Fotky a dokumenty stránky / prvku
   ------------------------------------------------------------ */
.media-manager {
    margin-top: 1rem;
}

.page-gallery {
    margin-top: 2.5rem;
}

.page-gallery__title,
.page-documents-section__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.9rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.page-gallery__count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.6rem;
}

/* Obal je container, aby šla výška řádku odvodit ze šířky mřížky (cqw).
   Výšku řádků určuje pevně grid-auto-rows, ne obsah dlaždic – fotky jsou
   absolutně umístěné a do výpočtu řádků nevstupují. Jinak Chrome roztáhl
   řádky podle přirozené výšky načtené fotky na výšku v dlaždici 2×2. */
.photo-wall-frame {
    container-type: inline-size;
}

.photo-wall {
    --wall-cols: 4;
    --wall-gap: 0.85rem;
    display: grid;
    grid-template-columns: repeat(var(--wall-cols), minmax(0, 1fr));
    grid-auto-rows: calc((100cqw - (var(--wall-cols) - 1) * var(--wall-gap)) / var(--wall-cols) * 0.75);
    grid-auto-flow: dense; /* zaplní díru před dlaždicí 2×2, která se nevešla na konec řádku */
    gap: var(--wall-gap);
}

.photo-wall__item {
    position: relative;
    display: block;
    min-height: 0;
    aspect-ratio: 4 / 3; /* záloha pro prohlížeče bez cqw */
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ice);
    box-shadow: var(--shadow-soft);
}

.photo-wall__item:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.photo-wall__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

/* Fotky ve zdi se objevují rychleji a zpoždění se počítá v main.js
   podle pořadí v právě zobrazené dávce, ne podle pořadí na stránce. */
.photo-wall__item.is-visible {
    transition-duration: 0.45s;
    transition-delay: calc(var(--stagger, 0) * 60ms);
}

.photo-wall__item:hover img {
    transform: scale(1.05);
}

.photo-wall__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.8rem 0.6rem;
    font-size: 0.85rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-wall__item:hover .photo-wall__caption {
    opacity: 1;
}

.page-documents-section {
    margin-top: 2.5rem;
}

.page-documents {
    display: grid;
    gap: 0.6rem;
}

.page-documents__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-documents__item:hover {
    border-color: var(--ice-2);
    box-shadow: var(--shadow-soft);
}

.page-documents__link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-weight: 500;
}

.page-documents__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-light);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-documents__name {
    flex: 1;
    min-width: 0;
}

.doc-extension {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
}

.page-documents__download {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Detail prvku
   ------------------------------------------------------------ */
.page-content--detail .item-detail {
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.item-detail__content {
    max-width: 48rem;
}

.item-detail__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin-top: 1rem;
}

.item-detail__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.item-detail__contact-item svg {
    color: var(--blue);
}

.item-detail__back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.item-detail__back .btn:hover svg {
    transform: translateX(-3px);
}

.item-detail--inactive .item-detail__content {
    opacity: 0.6;
}

/* ------------------------------------------------------------
   Kontaktní formulář
   ------------------------------------------------------------ */
.section--contact-form {
    padding: 3rem 0 4.5rem;
}

.contact-form-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

.contact-form-box__intro {
    padding: 3rem 2.75rem;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-box__intro {
    position: relative;
    isolation: isolate;
    padding-bottom: 7rem;
}

.contact-form-box__peaks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 110px;
    z-index: -1;
    pointer-events: none;
}

.contact-form-box__peaks-back {
    fill: rgba(255, 255, 255, 0.12);
}

.contact-form-box__peaks-front {
    fill: rgba(255, 255, 255, 0.09);
}

.contact-form-box__intro .eyebrow {
    color: var(--sky);
}

.contact-form-box__title {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.contact-form-box__subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.contact-form-box__contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-form-box__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-weight: 600;
}

.contact-form-box__contacts a:hover {
    color: var(--sky);
}

.contact-form-box__contacts svg {
    color: var(--sky);
}

.contact-form-box__form {
    position: relative;
    padding: 2.75rem 2.75rem 2.5rem;
    background: var(--white);
}

.contact-form-box__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

/* šířky polí z administrace (1/3, 1/2, 2/3, 1/1) */
.contact-form-box__field--w13 {
    grid-column: span 2;
}

.contact-form-box__field--w12 {
    grid-column: span 3;
}

.contact-form-box__field--w23 {
    grid-column: span 4;
}

.contact-form-box__field--w11 {
    grid-column: 1 / -1;
}

.contact-form-box__title--placeholder {
    opacity: 0.6;
}

.contact-form-box__title--placeholder small {
    font-size: 0.6em;
    font-weight: 400;
}

.contact-form-box__subtitle p + p {
    margin-top: 0.6em;
}

.contact-form-box__form--empty {
    display: flex;
    align-items: center;
    color: var(--muted);
}

.field-float {
    position: relative;
    margin-bottom: 0;
}

.field-float .form-control {
    padding: 1.35rem 1rem 0.55rem;
    background: var(--snow);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.field-float .form-control::placeholder {
    color: transparent;
    transition: color 0.2s ease;
}

.field-float .form-control:focus::placeholder,
.field-float--static .form-control::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.field-float .form-control:focus {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}

.field-float label {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    font-size: 1rem;
    color: var(--muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.field-float .form-control:focus + label,
.field-float .form-control:not(:placeholder-shown) + label,
.field-float--static .form-control + label {
    top: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.field-float--textarea .form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form-box__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.contact-form-box__bottom .form-checkbox {
    flex: 1 1 260px;
    font-size: 0.9rem;
    color: var(--muted);
    align-items: flex-start;
}

.contact-form-box__bottom .form-checkbox input {
    margin-top: 0.15rem;
}

.contact-form-box__bottom .btn--submit {
    flex-shrink: 0;
}

/* Základ formulářů (login, kontakt) */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14);
}

.form-control--textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}

.form-errors {
    background: #FFF0F0;
    border: 1px solid #FFCDD2;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.form-error {
    color: var(--error);
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Patička
   ------------------------------------------------------------ */
.footer {
    position: relative;
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 5.5rem 0 0;
    margin-top: auto;
}

.footer__peaks {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 70px;
    color: var(--white);
    transform: scaleY(-1);
    pointer-events: none;
}

.footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 0.8fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer__brand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    margin: 1rem 0 0.5rem;
}

.footer__brand-text {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 22rem;
}

.footer__heading {
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 1.1rem;
}

.footer__contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__contact-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--sky);
}

.footer__contact-item:hover {
    color: var(--white);
}

.footer__contact-item:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__contact-item svg {
    color: var(--sky);
    margin-top: 0.2rem;
}

.footer__company {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.footer__social-link:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.footer__content {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer__content h3,
.footer__content h4 {
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 1.1rem;
}

.footer__content strong {
    color: var(--white);
}

/* odkazy v textu patičky (selektor s .rich-text musí přebít obecné .rich-text a:not(.btn):hover) */
.footer__content a:not(.btn),
.footer__content.rich-text a:not(.btn) {
    color: var(--sky);
    text-decoration: underline;
    text-decoration-color: rgba(245, 213, 96, 0.4);
    text-underline-offset: 3px;
}

.footer__content a:not(.btn):hover,
.footer__content.rich-text a:not(.btn):hover {
    color: var(--white);
    text-decoration-color: currentColor;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer__links a {
    color: var(--sky);
    font-weight: 500;
}

.footer__links a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__copy {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__copy a {
    color: var(--sky);
}

.footer__copy a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__copy-sep {
    margin: 0 0.4rem;
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox-image {
    max-width: min(92vw, 1400px);
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    background: #111111;
}

.lightbox-video {
    display: none;
    max-width: min(92vw, 1400px);
    max-height: 80vh;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video.is-visible {
    display: block;
}

.lightbox-embed {
    display: none;
    width: min(92vw, 1400px, calc(80vh * 16 / 9));
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-embed.is-visible {
    display: block;
}

.lightbox-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.lightbox-image.is-hidden {
    display: none;
}

/* Popis fotky pod zvětšenou fotkou (fotky.popis přes data-caption odkazu) */
.lightbox-caption {
    display: none;
    max-width: min(92vw, 900px);
    padding: 0 0.5rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    overflow-wrap: anywhere;
}

.lightbox-caption.is-visible {
    display: block;
}

/* S popisem nechat fotce/videu méně výšky, ať se popis i náhledy vejdou na obrazovku */
.lightbox-overlay.has-caption .lightbox-image,
.lightbox-overlay.has-caption .lightbox-video {
    max-height: 72vh;
}

.lightbox-overlay.has-caption .lightbox-embed {
    width: min(92vw, 1400px, calc(72vh * 16 / 9));
}

.lightbox-thumb--video::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(-40%, -50%);
    border-left: 9px solid var(--white);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* Odznak přehrání na dlaždici videa ve fotogalerii */
.photo-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: transform 0.3s var(--ease), background 0.3s ease;
}

.photo-play svg {
    margin-left: 3px;
}

.photo-wall__item--video:hover .photo-play,
.photo-item--video:hover .photo-play {
    transform: scale(1.08);
    background: var(--blue);
}

.lightbox-close {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav--prev {
    left: 20px;
}

.lightbox-nav--next {
    right: 20px;
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: min(92vw, 900px);
    padding: 6px 4px 2px;
    scrollbar-width: thin;
}

.lightbox-thumb {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lightbox-thumb:hover {
    opacity: 1;
}

.lightbox-thumb img {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.lightbox-thumb.is-active {
    border-color: var(--sky);
    opacity: 1;
}

/* ------------------------------------------------------------
   Cookie lišta
   ------------------------------------------------------------ */
.cookie-consent {
    position: fixed;
    left: calc(1rem + env(safe-area-inset-left, 0px));
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    width: min(440px, calc(100vw - 2rem));
    z-index: 1200;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.cookie-consent-trigger {
    position: fixed;
    left: calc(1rem + env(safe-area-inset-left, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1190;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.1rem;
}

.cookie-consent__title {
    width: 100%;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.cookie-consent__text {
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-consent__text a {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

#cookieConsentSettingsToggle {
    order: 1;
    margin-right: auto;
}

#cookieConsentSaveSettings {
    order: 2;
}

#cookieConsentAccept {
    order: 3;
}

.cookie-consent__actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.cookie-consent__settings-link {
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: underline;
}

.cookie-consent--expanded .cookie-consent__settings-link {
    display: none;
}

.cookie-consent__settings {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--snow);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-consent[hidden],
.cookie-consent__settings[hidden],
.cookie-consent-trigger[hidden],
.cookie-consent__actions .btn[hidden] {
    display: none !important;
}

.cookie-consent__setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.cookie-consent__setting-row:last-of-type {
    border-bottom: none;
}

.cookie-consent__setting-row small,
.cookie-consent__setting-row p {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.cookie-consent__setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.cookie-consent__tag {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Přihlášení a chybové stránky
   ------------------------------------------------------------ */
.login-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--snow), var(--ice));
    padding: 2rem 1rem;
}

.login-box {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

.login-box__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-box__header .logo {
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.login-box__header h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.login-box__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.flash-messages:empty {
    display: none;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.flash--success {
    background: #E8F5E9;
    color: var(--success);
    border: 1px solid #C8E6C9;
}

.flash--error {
    background: #FFF0F0;
    color: var(--error);
    border: 1px solid #FFCDD2;
}

.flash--info {
    background: var(--blue-light);
    color: var(--blue-dark);
    border: 1px solid #D6D6D6;
}

.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(160deg, var(--snow), var(--ice));
}

.error-page__inner {
    text-align: center;
}

.error-page__inner--card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    max-width: 640px;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.error-page__eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.error-page__inner h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(120deg, var(--blue), var(--navy));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page__title {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.error-page__lead {
    color: var(--muted);
    margin-bottom: 2rem;
}

.error-page__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-page__links {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.error-page__links-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.error-page__links-list {
    display: flex;
    gap: 0.5rem 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page__link {
    font-weight: 600;
}

/* ------------------------------------------------------------
   Animace při scrollování (data-animate, main.js)
   ------------------------------------------------------------ */
[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(32px);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="zoom-in"] {
    transform: scale(0.94);
}

/* V karuselu se karty nezmenšují: prohlížeč přichytí dráhu na zmenšenou kartu
   a po doběhnutí animace by zůstala o pár pixelů posunutá. */
.news-carousel__track > [data-animate="zoom-in"]:not(.is-visible),
.staff-carousel__track > [data-animate="zoom-in"]:not(.is-visible),
.blok-carousel__track > [data-animate="zoom-in"]:not(.is-visible),
.gallery-carousel__track > [data-animate="zoom-in"]:not(.is-visible) {
    transform: translateY(32px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--stagger, 0) * 90ms);
}

.item-card--inactive {
    opacity: 0.55;
}

[data-animate].item-card--inactive.is-visible {
    opacity: 0.55;
}

.item-card--inactive .staff-card__name,
.item-card--inactive .blok-card__name,
.item-card--inactive .news-item__title,
.item-card--inactive .news-card__title,
.item-card--inactive .gallery-card__title {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero__photo img,
    .blok-card,
    .staff-card,
    .news-card,
    .news-item,
    .gallery-card {
        transition: none !important;
    }
}

/* ------------------------------------------------------------
   Responzivita
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .hero__inner {
        gap: 2.5rem;
    }

    .hero__title {
        font-size: clamp(2.6rem, 5.4vw, 4rem);
    }

    .blok-grid,
    .news-grid,
    .staff-grid {
        grid-template-columns: repeat(min(var(--items-per-row, 3), 3), minmax(0, 1fr));
    }

    .gallery-carousel__track--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --header-bar: 80px;
    }

    .logo__img {
        height: 62px;
    }

    .hero {
        padding: 2.5rem 0 6rem;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .hero__collage {
        aspect-ratio: 16 / 10;
        max-width: 640px;
    }

    .hero__strip-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__strip-item {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .hero__strip-item:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .hero__strip-item:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .page-header--image-side .page-header__layout,
    .page-header--image-side .page-header__layout--size-1-2,
    .page-header--image-side .page-header__layout--size-2-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-header--image-left .page-header__layout > .page-header__media {
        order: 0;
    }

    .page-header__media img {
        max-height: 340px;
    }

    .page-subsection {
        padding: 3.5rem 0;
    }

    .page-subsection__layout--image-right,
    .page-subsection__layout--image-left,
    .page-subsection__layout--size-1-2,
    .page-subsection__layout--size-2-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .page-subsection__layout--image-left .page-subsection__media {
        order: 0;
    }

    .page-subsection__media img {
        max-height: 360px;
    }

    .page-subsection--photo {
        padding: 4.5rem 0;
        min-height: 0;
    }

    .blok-grid,
    .news-grid,
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-carousel__track--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-carousel__track > *,
    .staff-carousel__track > *,
    .blok-carousel__track > *,
    .gallery-carousel__track:not(.gallery-carousel__track--grid) > * {
        flex-basis: calc((100% - 1.5rem) / 2);
    }

    .news-item__grid,
    .news-item--size-1-2 .news-item__grid,
    .news-item--size-2-3 .news-item__grid,
    .blok-inline-item__grid,
    .blok-inline-item--size-1-2 .blok-inline-item__grid,
    .blok-inline-item--size-2-3 .blok-inline-item__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-item--image-right .news-item__image,
    .blok-inline-item--image-right .blok-inline-item__image {
        order: 0;
    }

    .news-item__image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .photo-wall {
        --wall-cols: 3;
    }

    .contact-form-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form-box__intro,
    .contact-form-box__form {
        padding: 2.25rem 1.75rem;
    }

    .contact-form-box__intro {
        padding-bottom: 5.5rem;
    }

    .contact-form-box__peaks {
        height: 80px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lightbox-nav--prev {
        left: 8px;
    }

    .lightbox-nav--next {
        right: 8px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .container {
        --gutter: 1rem;
        padding: 0 var(--gutter);
    }

    .btn {
        padding: 0.85rem 1.4rem;
        font-size: 1rem;
    }

    .btn--lg {
        padding: 1rem 1.6rem;
        font-size: 1.05rem;
    }

    .hero {
        padding: 2rem 0 5.5rem;
    }

    .hero__title {
        font-size: clamp(2.4rem, 11vw, 3rem);
    }

    .hero__text {
        font-size: 1.08rem;
    }

    .hero__collage {
        gap: 0.6rem;
    }

    .hero__badge {
        width: 90px;
        height: 90px;
        left: -8px;
        bottom: -12px;
    }

    .hero__badge strong {
        font-size: 1.6rem;
    }

    .hero__peaks {
        height: 56px;
    }

    .hero__strip {
        margin-top: -2.5rem;
    }

    .hero__strip-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__strip-item {
        padding: 1rem 1.2rem;
        font-size: 1.05rem;
        border-right: none !important;
        border-bottom: 1px solid var(--line);
    }

    .hero__strip-item:last-child {
        border-bottom: none;
    }

    .page-header {
        padding: 2.25rem 0 4.5rem;
    }

    .page-header__peaks {
        height: 44px;
    }

    .page-header__title {
        font-size: clamp(2.1rem, 9vw, 2.8rem);
    }

    .page-subsection {
        padding: 2.75rem 0;
    }

    .page-subsection__title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .page-subsection__title-row {
        flex-direction: column;
    }

    .blok-grid,
    .news-grid,
    .staff-grid,
    .gallery-carousel__track--grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* na mobilu vždy jen jeden prvek přes celou šířku */
    .news-carousel__track > *,
    .staff-carousel__track > *,
    .blok-carousel__track > *,
    .gallery-carousel__track:not(.gallery-carousel__track--grid) > * {
        flex-basis: 100%;
    }

    .news-item__card,
    .blok-inline-item__card {
        padding: 1.4rem 1.3rem 1.5rem;
    }

    .news-item__title {
        font-size: 1.5rem;
    }

    .photo-wall {
        --wall-cols: 2;
        --wall-gap: 0.5rem;
    }

    .contact-form-box__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form-box__field--w13,
    .contact-form-box__field--w12,
    .contact-form-box__field--w23 {
        grid-column: 1 / -1;
    }

    .footer {
        padding-top: 4.5rem;
    }

    .footer__peaks {
        height: 46px;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .footer__copy {
        justify-content: center;
        text-align: center;
    }

    .rich-text h2 {
        font-size: 1.7rem;
    }

    .rich-text blockquote {
        font-size: 1.2rem;
        padding: 1.1rem 1.2rem 1.1rem 1.5rem;
    }

    .page-documents__download {
        display: none;
    }

    .map-embed iframe {
        height: 280px;
    }
}

/* Odkazy se stylem z editoru (Phone, Email, Facebook, Whatsapp, Web, Place):
   ikona před textem přes CSS masku v barvě odkazu – na webu i v editoru */
.rich-text a.phone,
.rich-text a.email,
.rich-text a.fb,
.rich-text a.wa,
.rich-text a.web,
.rich-text a.place,
.ck-content a.phone,
.ck-content a.email,
.ck-content a.fb,
.ck-content a.wa,
.ck-content a.web,
.ck-content a.place {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.rich-text a.phone::before,
.rich-text a.email::before,
.rich-text a.fb::before,
.rich-text a.wa::before,
.rich-text a.web::before,
.rich-text a.place::before,
.ck-content a.phone::before,
.ck-content a.email::before,
.ck-content a.fb::before,
.ck-content a.wa::before,
.ck-content a.web::before,
.ck-content a.place::before {
    content: '';
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.rich-text a.phone::before,
.ck-content a.phone::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.rich-text a.email::before,
.ck-content a.email::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.rich-text a.fb::before,
.ck-content a.fb::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

.rich-text a.wa::before,
.ck-content a.wa::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5c-1.5 0-2.9-.4-4.1-1.1L3 20l1.4-4.9A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5c-1.5 0-2.9-.4-4.1-1.1L3 20l1.4-4.9A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E");
}

.rich-text a.web::before,
.ck-content a.web::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.rich-text a.place::before,
.ck-content a.place::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* odkazy v textu formuláře na tmavém pozadí (musí přebít .rich-text a:not(.btn)) */
.contact-form-box__intro .rich-text a:not(.btn) {
    color: var(--sky);
    text-decoration-color: rgba(245, 213, 96, 0.45);
}

.contact-form-box__intro .rich-text a:not(.btn):hover {
    color: var(--white);
    text-decoration-color: currentColor;
}

/* ============================================================
   Mobil: ochrana proti vodorovnému přetečení (25. 10. 2026, sdílené pro všechny sesterské weby)
   - Android Chrome/Samsung ignorují overflow-x: hidden jen na body: stránka jde posunout do strany
     a hamburger „uteče“ mimo displej. Ořez proto i na html (clip nedělá posuvný kontejner).
   - Zavřené vysunuté menu (fixed + translateX(100 %)) je skutečně skryté, ne jen odsunuté za okraj.
   - Při zvětšeném systémovém písmu na telefonu se dlouhá slova (e-mail, název firmy) a tlačítka
     nevejdou do sloupce – smí se zalomit, jinak roztáhnou stránku do šířky.
   ============================================================ */
html {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

.nav--mobile:not(.active) {
    visibility: hidden;
    transition: transform 0.45s ease, visibility 0s linear 0.45s;
}

.rich-text,
.rich-text a,
.footer,
.footer a {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .btn {
        max-width: 100%;
        white-space: normal;
    }
}

/* ============================================================
   Vzhled metosagroup (přepisy nad sdíleným základem)
   Převzato z původního designu webu (style.css v záloze
   ZALOHA/2026-10-26-pred-zakladem-skibruntal): tmavá horní lišta
   s kontakty + zlatá hlavička s logem a menu, tmavé hero s videem
   v zaobleném rámu a zlatými oblouky, zlatý pásek statistik
   s animovanými čísly, sekce se středovými nadpisy, karty služeb
   s ikonou, tmavé sekce s šikmými zlatými proužky, zlatá sekce
   (kariéra), světlý kontaktní blok s bílou kartou formuláře,
   tmavá patička se čtyřmi sloupci. Hory z loga skibruntal (peaks)
   se nezobrazují.
   ============================================================ */

/* --- Základ: Inter 16 px, šedé texty --- */
:root {
    --muted-2: #666666;
    --hazard: repeating-linear-gradient(-45deg, var(--blue), var(--blue) 10px, var(--navy) 10px, var(--navy) 20px);
}

body {
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.eyebrow::before {
    display: none;
}

.peaks,
.hero__peaks,
.page-header__peaks,
.footer__peaks,
.contact-form-box__peaks {
    display: none !important;
}

.rich-text {
    line-height: 1.7;
}

.rich-text p,
.rich-text li {
    color: var(--muted);
}

.rich-text strong {
    color: var(--text);
    font-weight: 600;
}

/* --- Tlačítka (Inter 0.875 rem, zlatá s tmavým textem, rádius 4 px) --- */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 2px solid transparent;
    box-shadow: none;
}

.btn--primary {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--navy);
    font-weight: 600;
}

.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--navy);
    box-shadow: none;
    transform: none;
}

.btn--outline {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue-dark);
}

.btn--outline:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--navy);
}

/* tlačítko v tmavé sekci = rámeček */
.btn--light,
.btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
}

.btn--light:hover,
.btn--ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
    color: var(--blue);
}

.btn--sm {
    font-size: 0.8rem;
    padding: 0.65rem 1.4rem;
}

.btn--lg {
    font-size: 0.9rem;
    padding: 1rem 2rem;
}

/* tlačítka v hero (Oswald, verzálky) */
.btn--hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 2px solid var(--blue);
    background: var(--blue);
    color: var(--navy);
    transition: all 0.3s ease;
}

.btn--hero:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--navy);
}

.btn--hero-outline {
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--white);
}

.btn--hero-outline:hover {
    border-color: var(--blue);
    background: transparent;
    color: var(--blue);
}

/* ------------------------------------------------------------
   Hlavička: tmavá lišta s kontakty + zlatá lišta s logem a menu
   ------------------------------------------------------------ */
.header {
    background: var(--blue);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header__topbar {
    background: var(--navy);
}

.header__topbar-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header__topbar-left,
.header__topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.header__topbar-left {
    gap: 0.75rem;
}

.header__admin-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0;
}

.header__admin-link {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.header__admin-link:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    position: relative;
}

.header__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.header__contact-item:first-child {
    border-left: none;
}

.header__contact-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--blue);
    transition: color 0.3s ease;
}

.header__contact-item:hover {
    background: var(--blue);
    color: var(--navy);
}

.header__contact-item:hover svg {
    color: var(--navy);
}

.header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    padding: 0.5rem 0.7rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.header__social-link svg {
    width: 16px;
    height: 16px;
}

.header__social-link:hover {
    background: var(--blue);
    color: var(--navy);
}

/* tužka u kontaktů v liště (správce) – vedle položek, ne absolutně v rohu */
.header__contact .admin-inline-edit.header__contact-edit {
    position: static;
    margin-left: 0.6rem;
    width: 26px;
    height: 26px;
}

.header__inner {
    padding: 0 1rem;
    height: 88px;
    gap: 1.25rem;
}

.logo__img {
    height: 56px;
    width: auto;
}

.logo__img--footer {
    height: 52px;
}

.logo__img--login {
    height: 56px;
}

.nav__list {
    gap: 0;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 0.5rem 1rem;
}

.nav__link::after {
    display: none;
}

.nav__link:hover {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.nav__link--disabled {
    color: rgba(26, 26, 26, 0.6);
}

.nav__arrow {
    font-size: 0.65rem;
    margin-left: 0.15rem;
}

/* v mobilním (hamburger) menu zůstává jen otočný chevron ::after, textová šipka ▾ se skryje */
:where(html.nav-collapsed) .nav__arrow {
    font-size: 0;
    margin-left: auto;
}

.nav__submenu {
    left: 0;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nav__submenu li a,
.nav__submenu-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.45rem 1rem;
}

.nav__submenu li a:hover {
    background: var(--ice);
    color: var(--blue-dark);
}

.nav__submenu--child li a {
    font-size: 0.8rem;
    text-transform: none;
    color: var(--muted);
}

.nav__add-page {
    border-color: rgba(26, 26, 26, 0.4);
    color: var(--navy);
}

/* Po přihlášení přibude v menu tlačítko „Přidat stránku“ – odstupy položek o něco menší */
body.is-admin .nav__link {
    padding: 0.5rem 0.8rem;
}

.header__cta {
    display: none;
}

.hamburger span {
    background: var(--navy);
}

/* mobilní menu: tmavý panel se zlatými akcenty */
:where(html.nav-collapsed) .nav--mobile {
    background: var(--navy);
    color: var(--white);
}

:where(html.nav-collapsed) .nav__header {
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

:where(html.nav-collapsed) .nav__header-title {
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__close {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    background: none;
}

:where(html.nav-collapsed) .nav__close:hover {
    border-color: var(--blue);
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__list > li {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

:where(html.nav-collapsed) .nav__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

:where(html.nav-collapsed) .nav__link:hover {
    color: var(--blue);
    text-decoration: none;
}

:where(html.nav-collapsed) .nav__submenu {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:where(html.nav-collapsed) .nav__submenu li a,
:where(html.nav-collapsed) .nav__submenu-link {
    color: rgba(255, 255, 255, 0.86);
    text-transform: none;
}

:where(html.nav-collapsed) .nav__submenu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__footer {
    background: var(--navy-deep);
    border-top-color: rgba(255, 255, 255, 0.12);
}

:where(html.nav-collapsed) .nav__footer-item,
:where(html.nav-collapsed) .nav__footer-item a {
    color: rgba(255, 255, 255, 0.82);
}

:where(html.nav-collapsed) .nav__footer-item svg {
    color: var(--blue);
}

:where(html.nav-collapsed) .nav__footer-social-link {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--blue);
    background: none;
}

:where(html.nav-collapsed) .nav__footer-brand {
    color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   Hero: tmavé, vlevo texty, vpravo video v zaobleném rámu se zlatými oblouky
   ------------------------------------------------------------ */
.hero {
    overflow: hidden;
    position: relative;
    background: var(--navy);
    padding: 0;
}

.hero__bg,
.hero__overlay {
    display: none;
}

.hero__inner {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    gap: 3rem;
}

.hero__content {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero__badge {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    z-index: auto;
    flex-direction: row;
    transform: none;
    box-shadow: none;
    background: transparent;
    line-height: 1.4;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 0.45rem 1.2rem;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

.hero__text,
.hero__text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
}

.hero__text {
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__placeholder {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.hero__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.hero__arc {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.18;
    top: -5%;
    right: -15%;
    z-index: 0;
    animation: arcFloat1 8s ease-in-out infinite;
}

.hero__arc--small {
    width: 50%;
    height: 70%;
    top: auto;
    bottom: -20%;
    right: -5%;
    opacity: 0.12;
    animation: arcFloat2 6s ease-in-out infinite;
}

.hero__arc--accent {
    width: 35%;
    height: 45%;
    top: 15%;
    right: auto;
    left: -8%;
    bottom: auto;
    opacity: 0.09;
    animation: arcFloat3 10s ease-in-out infinite;
}

@keyframes arcFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-2%, 3%) scale(1.04); }
    50% { transform: translate(1.5%, -2%) scale(0.97); }
    75% { transform: translate(-1%, -1.5%) scale(1.02); }
}

@keyframes arcFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -4%) scale(1.06); }
    66% { transform: translate(-2.5%, 2%) scale(0.95); }
}

@keyframes arcFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(4%, 5%) scale(1.1); }
    80% { transform: translate(-2%, -3%) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__arc {
        animation: none;
    }
}

.hero__video-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    z-index: 1;
}

.hero__volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    padding: 0.5rem 0;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.hero__volume:hover,
.hero__volume--active {
    opacity: 1;
}

.hero__volume-icon {
    color: var(--blue);
    flex-shrink: 0;
}

.hero__volume-wave {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero__volume--active .hero__volume-wave--1 {
    opacity: 1;
}

.hero__volume--active .hero__volume-wave--2 {
    opacity: 0.7;
}

.hero__volume-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 110px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.hero__volume-slider::-webkit-slider-runnable-track {
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.hero__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--blue);
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: -7px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(0, 0, 0, 0.35);
}

.hero__volume-slider::-moz-range-track {
    width: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: none;
}

.hero__volume-slider::-moz-range-progress {
    background: var(--blue);
    border-radius: 4px;
}

.hero__volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--blue);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.hero__video-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 20px 20px 20px 100px;
    overflow: hidden;
    background: var(--navy-deep);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(0, 0, 0, 0.15);
}

.hero__video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* --- Pásek statistik pod hero: zlatý, čísla s počítadlem --- */
.hero__strip {
    position: relative;
    z-index: 2;
    margin: 0;
    background: var(--blue);
    padding: 2.5rem 0;
}

.hero__strip-list {
    grid-template-columns: repeat(var(--strip-count, 4), minmax(0, 1fr));
    gap: 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    text-align: center;
}

.hero__strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0;
    border-right: none;
    font-family: var(--font-body);
    color: var(--navy);
}

.hero__strip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.1);
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.hero__strip-icon svg {
    width: 20px;
    height: 20px;
}

.stats-strip__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stats-strip__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.hero__strip-item--empty {
    grid-column: 1 / -1;
    color: rgba(26, 26, 26, 0.7);
    font-size: 0.95rem;
    font-weight: 400;
}

/* ------------------------------------------------------------
   Hlavička podstránky: světlá, nadpis Oswald, foto s rádiusem 16 px
   ------------------------------------------------------------ */
.page-header {
    background: var(--ice);
    padding: 3rem 0 3rem;
}

.page-header--no-image {
    padding-bottom: 2.5rem;
}

.breadcrumb {
    font-size: 0.85rem;
}

.page-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
}

.page-header__description,
.page-header__description p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--muted);
}

.page-header__media img {
    border: none;
    box-shadow: none;
    border-radius: 16px;
    background: var(--white);
}

/* ikona (PNG) místo fotky v záhlaví: nezvětšovat na celou plochu */
.page-header__media img[src$=".png"] {
    object-fit: contain;
    background: var(--navy);
    padding: 2rem;
    aspect-ratio: 4 / 3;
}

.page-main {
    padding: 3rem 0 4rem;
}

/* ------------------------------------------------------------
   Sekce: odsazení 5 rem, nadpisy na středu (bez fotky), Oswald 2,5 rem
   ------------------------------------------------------------ */
.page-subsection {
    padding: 5rem 0;
}

.page-content--home .page-subsection:first-of-type {
    padding-top: 5rem;
}

.page-subsection--bg-ledova,
.page-subsection--bg-modra,
.page-subsection--bg-bila,
.page-subsection--bg-zlata,
.page-subsection--photo {
    margin: 0;
}

.page-subsection--bg-ledova,
.page-subsection--bg-bila {
    border-top: none;
    border-bottom: none;
}

.page-subsection--bg-ledova {
    background: var(--snow);
}

/* úvodní sekce (text + foto) a každá další sekce: střídání bílé a krémové se řeší podbarvením v administraci */
.page-subsection__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.page-subsection__title-row {
    margin-bottom: 0.75rem;
}

.page-subsection__intro,
.page-subsection__intro p {
    font-size: 1.05rem;
    color: var(--muted);
}

.page-subsection__content,
.page-subsection__content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* sekce bez fotky: hlavička na středu (jako původní „Naše služby / Co děláme“), karty pod ní;
   obsah sekce nemá vlastní limit šířky (předloha 52 rem) – šířku dává jen .container */
.page-subsection__layout--full .page-subsection__content-wrap {
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

.page-subsection__layout--full .page-subsection__title-row {
    justify-content: center;
    position: relative;
}

/* tlačítka správce sekce (upravit, skrýt, smazat, přidat) vždy v pravém horním rohu sekce,
   zarovnaná s pravým okrajem .container (1280 px, okraj 1,25 rem) – nezávisle na rozložení s fotkou/bez fotky */
.page-subsection .admin-tools--subsection {
    position: absolute;
    top: 1rem;
    right: max(1.25rem, calc((100% - var(--max-width)) / 2 + 1.25rem));
    z-index: 5;
}

.page-subsection__layout--full .page-subsection__intro,
.page-subsection__layout--full .page-subsection__content {
    margin-left: auto;
    margin-right: auto;
}

.page-subsection__layout--full .page-subsection__more {
    margin-top: 1.6rem;
}

.page-subsection__layout {
    margin-bottom: 2.5rem;
}

.page-subsection__media img {
    border: none;
    box-shadow: none;
    border-radius: 16px;
}

.page-subsection__media img[src$=".png"] {
    object-fit: contain;
    background: var(--navy);
    padding: 2rem;
    aspect-ratio: 4 / 3;
}

/* tmavá sekce: tmavá šedá s šikmými zlatými proužky nahoře a dole (CTA pás, partneři) */
.page-subsection--bg-modra {
    background: var(--navy);
    position: relative;
}

.page-subsection--bg-modra::before,
.page-subsection--bg-modra::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: var(--hazard);
    pointer-events: none;
}

.page-subsection--bg-modra::after {
    top: auto;
    bottom: 0;
}

.page-subsection--bg-modra .page-subsection__title,
.page-subsection--bg-modra .page-subsection__link {
    color: var(--white);
}

/* tmavý textový pás (CTA): zlatý nadpis jako v původním designu */
.page-subsection--bg-modra.page-subsection--text .page-subsection__title,
.page-subsection--bg-modra.page-subsection--text .page-subsection__link {
    color: var(--blue);
}

.page-subsection--bg-modra .eyebrow,
.page-subsection--photo .eyebrow {
    color: var(--blue);
}

.page-subsection--bg-modra .page-subsection__intro,
.page-subsection--bg-modra .page-subsection__intro p,
.page-subsection--bg-modra .rich-text,
.page-subsection--bg-modra .rich-text p,
.page-subsection--bg-modra .rich-text li {
    color: rgba(255, 255, 255, 0.7);
}

.page-subsection--bg-modra .rich-text a:not(.btn) {
    color: var(--blue);
}

.page-subsection--bg-modra .page-subsection__more.btn--light {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--navy);
}

.page-subsection--bg-modra .page-subsection__more.btn--light:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--navy);
}

/* zlatá sekce (kariéra): zlaté pozadí, tmavý text, tmavé karty */
.page-subsection--bg-zlata {
    background: var(--blue);
    color: var(--navy);
}

.page-subsection--bg-zlata .eyebrow {
    color: rgba(26, 26, 26, 0.65);
}

.page-subsection--bg-zlata .page-subsection__title,
.page-subsection--bg-zlata .page-subsection__link,
.page-subsection--bg-zlata .rich-text strong {
    color: var(--navy);
}

.page-subsection--bg-zlata .page-subsection__intro,
.page-subsection--bg-zlata .page-subsection__intro p,
.page-subsection--bg-zlata .rich-text,
.page-subsection--bg-zlata .rich-text p,
.page-subsection--bg-zlata .rich-text li {
    color: rgba(26, 26, 26, 0.75);
}

.page-subsection--bg-zlata .rich-text a:not(.btn) {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-subsection--bg-zlata .btn--outline,
.page-subsection--bg-zlata .btn--light {
    border-color: var(--navy);
    color: var(--navy);
    background: transparent;
}

.page-subsection--bg-zlata .btn--outline:hover,
.page-subsection--bg-zlata .btn--light:hover {
    background: var(--navy);
    color: var(--blue);
}

.page-subsection--bg-zlata .blok-card,
.page-subsection--bg-zlata .staff-card,
.page-subsection--bg-zlata .news-card,
.page-subsection--bg-zlata .blok-inline-item {
    background: rgba(26, 26, 26, 0.92);
    border-color: transparent;
    box-shadow: none;
}

.page-subsection--bg-zlata .blok-card:hover,
.page-subsection--bg-zlata .staff-card:hover,
.page-subsection--bg-zlata .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.page-subsection--bg-zlata .blok-card__name,
.page-subsection--bg-zlata .staff-card__name,
.page-subsection--bg-zlata .news-card__title,
.page-subsection--bg-zlata .blok-inline-item__title {
    color: var(--white);
}

.page-subsection--bg-zlata .blok-card__perex,
.page-subsection--bg-zlata .blok-card__perex p,
.page-subsection--bg-zlata .staff-card__perex,
.page-subsection--bg-zlata .staff-card__perex p,
.page-subsection--bg-zlata .news-card__perex {
    color: rgba(255, 255, 255, 0.6);
}

/* tučný text, seznamy a odkazy uvnitř tmavých karet zlaté sekce (přebíjí tmavý text sekce) */
.page-subsection--bg-zlata .blok-card__perex li,
.page-subsection--bg-zlata .staff-card__perex li,
.page-subsection--bg-zlata .news-card__perex li {
    color: rgba(255, 255, 255, 0.6);
}

.page-subsection--bg-zlata .blok-card__perex strong,
.page-subsection--bg-zlata .staff-card__perex strong,
.page-subsection--bg-zlata .news-card__perex strong,
.page-subsection--bg-zlata .blok-card__perex.rich-text strong,
.page-subsection--bg-zlata .staff-card__perex.rich-text strong {
    color: var(--white);
}

.page-subsection--bg-zlata .blok-card__perex a:not(.btn),
.page-subsection--bg-zlata .staff-card__perex a:not(.btn),
.page-subsection--bg-zlata .news-card__perex a:not(.btn),
.page-subsection--bg-zlata .blok-card__perex.rich-text a:not(.btn),
.page-subsection--bg-zlata .staff-card__perex.rich-text a:not(.btn) {
    color: var(--blue);
}

.page-subsection--bg-zlata .card-more,
.page-subsection--bg-zlata .card-more--static {
    color: var(--blue);
}

.page-subsection--bg-zlata .blok-card__icon,
.page-subsection--bg-zlata .blok-card__number,
.page-subsection--bg-zlata .staff-card__icon {
    background: rgba(0, 0, 0, 0.12);
    color: var(--blue);
}

.page-subsection--bg-zlata .blok-carousel__btn,
.page-subsection--bg-zlata .staff-carousel__btn,
.page-subsection--bg-zlata .news-carousel__btn,
.page-subsection--bg-zlata .gallery-carousel__btn {
    background: transparent;
    border-color: rgba(26, 26, 26, 0.3);
    color: rgba(26, 26, 26, 0.7);
}

.page-subsection--bg-zlata .blok-carousel__btn:hover,
.page-subsection--bg-zlata .staff-carousel__btn:hover,
.page-subsection--bg-zlata .news-carousel__btn:hover,
.page-subsection--bg-zlata .gallery-carousel__btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--blue);
}

.page-subsection--bg-zlata .staff-card--attach,
.page-subsection--bg-zlata .blok-card--attach,
.page-subsection--bg-zlata .news-card--attach {
    background: rgba(26, 26, 26, 0.08);
    border-color: rgba(26, 26, 26, 0.3);
    color: var(--navy);
}

/* sekce s fotkou na pozadí: fotka ztlumená pod tmavým překryvem */
.page-subsection--photo {
    background-image: linear-gradient(rgba(26, 26, 26, 0.86), rgba(26, 26, 26, 0.86)), var(--section-photo);
    display: block;
    min-height: 0;
    padding: 5rem 0;
}

.page-subsection--photo .page-subsection__content-wrap {
    max-width: 44rem;
}

.page-subsection--photo .page-subsection__title,
.page-subsection--photo .page-subsection__link {
    font-size: 2.5rem;
}

.page-subsection--photo .rich-text,
.page-subsection--photo .rich-text p,
.page-subsection--photo .page-subsection__intro,
.page-subsection--photo .page-subsection__intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

/* --- Karty v tmavých sekcích: průsvitné, zlatý hover --- */
.page-subsection--photo .blok-card,
.page-subsection--photo .staff-card,
.page-subsection--photo .news-card,
.page-subsection--photo .news-item,
.page-subsection--photo .blok-inline-item,
.page-subsection--bg-modra .blok-card,
.page-subsection--bg-modra .staff-card,
.page-subsection--bg-modra .news-card,
.page-subsection--bg-modra .news-item,
.page-subsection--bg-modra .blok-inline-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: var(--white);
}

.page-subsection--photo .blok-card:hover,
.page-subsection--photo .staff-card:hover,
.page-subsection--photo .news-card:hover,
.page-subsection--photo .news-item:hover,
.page-subsection--photo .blok-inline-item:hover,
.page-subsection--bg-modra .blok-card:hover,
.page-subsection--bg-modra .staff-card:hover,
.page-subsection--bg-modra .news-card:hover,
.page-subsection--bg-modra .news-item:hover,
.page-subsection--bg-modra .blok-inline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.page-subsection--photo .blok-card__name,
.page-subsection--photo .staff-card__name,
.page-subsection--photo .news-card__title,
.page-subsection--photo .news-item__title,
.page-subsection--photo .blok-inline-item__title,
.page-subsection--bg-modra .blok-card__name,
.page-subsection--bg-modra .staff-card__name,
.page-subsection--bg-modra .news-card__title,
.page-subsection--bg-modra .news-item__title,
.page-subsection--bg-modra .blok-inline-item__title,
.page-subsection--bg-modra .blok-card--image-full .blok-card__name,
.page-subsection--bg-modra .rich-text strong,
.page-subsection--bg-modra h3 {
    color: var(--white);
}

.page-subsection--photo .blok-card__perex,
.page-subsection--photo .blok-card__perex p,
.page-subsection--photo .staff-card__perex,
.page-subsection--photo .news-card__perex,
.page-subsection--photo .blok-inline-item__text,
.page-subsection--bg-modra .blok-card__perex,
.page-subsection--bg-modra .blok-card__perex p,
.page-subsection--bg-modra .staff-card__perex,
.page-subsection--bg-modra .news-card__perex,
.page-subsection--bg-modra .blok-inline-item__text {
    color: rgba(255, 255, 255, 0.6);
}

.page-subsection--photo .card-more,
.page-subsection--photo .card-more--static,
.page-subsection--bg-modra .card-more,
.page-subsection--bg-modra .card-more--static {
    color: var(--blue);
}

.page-subsection--photo .blok-card__icon,
.page-subsection--photo .blok-card__number,
.page-subsection--photo .staff-card__icon,
.page-subsection--bg-modra .blok-card__icon,
.page-subsection--bg-modra .blok-card__number,
.page-subsection--bg-modra .staff-card__icon {
    background: rgba(0, 0, 0, 0.1);
    color: var(--blue);
}

.page-subsection--photo .blok-card__photo,
.page-subsection--bg-modra .blok-card__photo,
.page-subsection--bg-modra .blok-card--image-full .blok-card__photo {
    background: transparent;
}

.page-subsection--photo .blok-carousel__btn,
.page-subsection--photo .gallery-carousel__btn,
.page-subsection--photo .news-carousel__btn,
.page-subsection--photo .staff-carousel__btn,
.page-subsection--bg-modra .blok-carousel__btn,
.page-subsection--bg-modra .gallery-carousel__btn,
.page-subsection--bg-modra .news-carousel__btn,
.page-subsection--bg-modra .staff-carousel__btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.page-subsection--photo .blok-carousel__btn:hover,
.page-subsection--photo .gallery-carousel__btn:hover,
.page-subsection--photo .news-carousel__btn:hover,
.page-subsection--photo .staff-carousel__btn:hover,
.page-subsection--bg-modra .blok-carousel__btn:hover,
.page-subsection--bg-modra .gallery-carousel__btn:hover,
.page-subsection--bg-modra .news-carousel__btn:hover,
.page-subsection--bg-modra .staff-carousel__btn:hover {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}

/* loga partnerů v tmavé sekci: šedá, barevná až na hover */
.page-subsection--bg-modra .blok-card--image-full .blok-card__photo img {
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.page-subsection--bg-modra .blok-card--image-full:hover .blok-card__photo img {
    filter: none;
    opacity: 1;
}

.page-subsection--bg-modra .blok-card--image-full {
    justify-content: center;
}

.page-subsection--bg-modra .blok-card--image-full .blok-card__photo {
    min-height: 100px;
    padding: 1.5rem 1rem;
}

.page-subsection--bg-modra .blok-card--image-full .blok-card__photo img {
    max-height: 50px;
}

/* --- Karty obecně: rádius 12 px, jemný stín, ikona v zlatém poli (služby) --- */
.blok-card,
.staff-card,
.news-card,
.news-item,
.gallery-card,
.blok-inline-item {
    border-radius: 12px;
}

.blok-card,
.staff-card,
.news-card,
.news-item,
.blok-inline-item {
    box-shadow: none;
    border-color: var(--line);
}

.blok-card:hover,
.staff-card:hover,
.news-card:hover,
.news-item:hover,
.blok-inline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

/* zlatá linka nahoře karty při najetí (jako původní karty služeb) */
.blok-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.blok-card:hover::before {
    transform: scaleX(1);
}

.blok-card__icon,
.blok-card__number,
.staff-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 2rem 2rem 0;
    background: rgba(0, 0, 0, 0.12);
    color: var(--blue);
}

.blok-card__icon svg,
.staff-card__icon svg {
    width: 26px;
    height: 26px;
}

.blok-card:hover .blok-card__icon,
.blok-card:hover .blok-card__number {
    background: var(--blue);
    color: var(--navy);
}

.blok-card__body {
    padding: 1.25rem 2rem 2rem;
}

.blok-card--badge .blok-card__body {
    padding-top: 1.25rem;
}

.blok-card__name,
.staff-card__name {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blok-card__perex,
.blok-card__perex p,
.staff-card__perex,
.staff-card__perex p,
.news-card__perex {
    font-size: 0.92rem;
    line-height: 1.6;
}

.card-more {
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--blue-dark);
}

.card-more:hover {
    color: var(--blue);
}

/* karta s fotkou nahoře (služba s ilustračním fotem): fotka 16:10 */
.blok-card__photo {
    background: var(--ice);
}

.blok-card--image-full .blok-card__photo img {
    max-height: 72px;
}

.blok-card--image-full .blok-card__name {
    color: var(--text);
}

/* výhody: velké číslo v názvu, popisek pod ním */
.staff-card--vyhody .staff-card__name {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.staff-card--vyhody .staff-card__perex,
.staff-card--vyhody .staff-card__perex p {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-card--vyhody .staff-card__icon {
    width: 48px;
    height: 48px;
    margin: 1.4rem 1.4rem 0;
}

/* aktuality: datum v tmavém pruhu jako v původním designu */
.news-card__date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.news-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.news-card__media-placeholder {
    background: var(--navy);
}

/* galerie: na úvodní stránce mozaika – první (největší) galerie přes 2×2 */
.gallery-card__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gallery-card__meta {
    font-size: 0.78rem;
}

.gallery-card__caption {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.4) 55%, rgba(26, 26, 26, 0) 100%);
}

.page-content--home .page-subsection--galerie .gallery-carousel__track--grid {
    grid-auto-flow: dense;
}

.page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child .gallery-card__image {
    height: 100%;
    aspect-ratio: auto;
    min-height: 420px;
}

.page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child .gallery-card__title {
    font-size: 1.3rem;
}

/* Tlačítko „Zobrazit vše“ pod pásem karet musí zůstat nad posuvným pásem (ten má dole rezervu na stín karet) */
.page-subsection__all {
    position: relative;
    z-index: 1;
}

/* Dlouhé nedělitelné texty (e-mail, adresa) se při zvětšeném písmu smí zalomit kdekoli */
.rich-text,
.rich-text a,
.contact-form-box,
.contact-form-box a,
.page-header__description,
.page-header__description a,
.item-detail__contact a,
.staff-card__contact a {
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   Kontaktní blok před patičkou: světlý, vlevo text a kontakty, vpravo bílá karta s formulářem
   ------------------------------------------------------------ */
.section--contact-form {
    padding: 5rem 0;
    background: var(--ice);
}

.contact-form-box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: start;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.contact-form-box__intro {
    background: transparent;
    color: var(--text);
    padding: 0;
    isolation: auto;
    justify-content: flex-start;
}

.contact-form-box__intro .eyebrow {
    color: var(--blue);
}

.contact-form-box__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--text);
    margin: 0.25rem 0 1rem;
}

.contact-form-box__subtitle,
.contact-form-box__subtitle p,
.contact-form-box__subtitle li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-form-box__subtitle {
    margin-bottom: 2rem;
}

.contact-form-box__intro .rich-text a:not(.btn) {
    color: var(--blue-dark);
}

.contact-form-box__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form-box__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-form-box__detail > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--blue);
    margin-top: 0.1rem;
}

.contact-form-box__detail strong {
    display: block;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
}

.contact-form-box__detail a,
.contact-form-box__detail span {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-form-box__detail a:hover {
    color: var(--blue-dark);
}

.contact-form-box__social {
    display: flex;
    gap: 0.75rem;
}

.contact-form-box__social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.3s ease;
}

.contact-form-box__social a:hover {
    border-color: var(--blue);
    color: var(--navy);
    background: rgba(0, 0, 0, 0.15);
}

.contact-form-box__form-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-form-box__form {
    padding: 0;
    background: transparent;
}

.contact-form-box__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form-box__field {
    margin: 0;
    grid-column: span 3;
}

.contact-form-box__field--1-3 {
    grid-column: span 2;
}

.contact-form-box__field--1-2 {
    grid-column: span 3;
}

.contact-form-box__field--2-3 {
    grid-column: span 4;
}

.contact-form-box__field--full,
.contact-form-box__field--textarea {
    grid-column: 1 / -1;
}

.contact-form-box__field label {
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.contact-form-box__field .form-control {
    background: #FAFAFA;
    border-color: #DDD;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
}

.contact-form-box__field .form-control::placeholder {
    color: #AAAAAA;
}

.contact-form-box__field .form-control:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.contact-form-box__field textarea.form-control {
    min-height: 120px;
}

.contact-form-box__bottom {
    margin-top: 1rem;
}

.contact-form-box__bottom .form-checkbox {
    font-size: 0.82rem;
    color: #777;
}

.contact-form-box__bottom .form-checkbox a {
    color: #000;
}

.contact-form-box__bottom .btn--submit {
    min-width: 180px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--navy);
    color: var(--blue);
    border-color: var(--navy);
}

.contact-form-box__bottom .btn--submit:hover {
    background: #333;
    border-color: #333;
    color: var(--blue);
}

.contact-form-box__form--empty {
    color: var(--muted);
}

/* ------------------------------------------------------------
   Mapa (Google Maps) pod obsahem stránky
   ------------------------------------------------------------ */
.map-section {
    background: var(--white);
    padding: 3rem 0 0;
}

.map-section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.map-section__canvas {
    width: 100%;
    height: 420px;
    background: var(--ice);
}

/* ------------------------------------------------------------
   Patička: tmavá, čtyři sloupce (logo + text, Navigace, Služby, Kontakt)
   ------------------------------------------------------------ */
.footer {
    background: var(--navy);
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer__top {
    padding: 3.5rem 0 2.5rem;
}

.footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 0;
}

.footer__brand,
.footer__col {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer__brand-title {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.footer__brand-text,
.footer__brand-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 22rem;
}

.footer__brand-text {
    margin-bottom: 1.25rem;
}

.footer__brand-text a:not(.btn),
.footer__brand-text.rich-text a:not(.btn) {
    color: var(--blue);
    text-decoration: none;
}

.footer__brand-text a:not(.btn):hover,
.footer__brand-text.rich-text a:not(.btn):hover {
    color: var(--white);
}

.footer__heading,
.footer__content h3,
.footer__content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.footer__links {
    gap: 0.5rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--blue);
    text-decoration: none;
}

.footer__contact {
    gap: 0.65rem;
}

.footer__contact-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    align-items: flex-start;
}

.footer__contact-item svg,
.footer__contact-icon svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer__contact-item:hover {
    color: var(--blue);
}

.footer__contact-item:hover span {
    text-decoration: none;
}

.footer__contact-item--text {
    display: flex;
    gap: 0.6rem;
}

.footer__content,
.footer__content p,
.footer__content li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer__content a:not(.btn),
.footer__content.rich-text a:not(.btn) {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer__content a:not(.btn):hover,
.footer__content.rich-text a:not(.btn):hover {
    color: var(--blue);
}

.footer__company {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer__social {
    margin-top: 0;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}

.footer__social-link:hover {
    background: transparent;
    border-color: var(--blue);
    color: var(--blue);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer__copy {
    border-top: none;
    padding: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__copy p {
    margin: 0;
}

.footer__copy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer__copy a:hover {
    color: var(--blue);
    text-decoration: none;
}

/* --- Přihlášení: logo na zlatém poli jako v hlavičce --- */
.login-box__header .logo {
    background: var(--blue);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.2rem;
}

/* --- Datum u aktualit, štítky, lightbox --- */
.news-item__date,
.course__badge {
    color: var(--blue-dark);
}

.lightbox-thumb.is-active {
    border-color: var(--blue);
}

/* ------------------------------------------------------------
   Okno „Upravit hero“: video a pásek statistik (admin)
   ------------------------------------------------------------ */
.hero-video__current {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 0.75rem;
}

.hero-video__preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--navy);
    display: block;
}

.hero-video__info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text);
    overflow-wrap: anywhere;
}

.hero-video__info .btn {
    align-self: flex-start;
}

.hero-video__current .form-helper--warn {
    grid-column: 1 / -1;
    color: #8A6D00;
    background: #FFF7D6;
    border: 1px solid #F0DC8C;
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
}

.hero-video__empty {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-video__poster {
    width: 160px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hero-video__pick {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-video__picked {
    font-size: 0.85rem;
    color: var(--success);
}

.hero-video__progress {
    margin-top: 0.75rem;
}

.hero-strip-row__number {
    max-width: 7.5rem;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Responzivita --- */
@media (max-width: 1250px) {
    .nav__link {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }

    body.is-admin .nav__link {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 1200px) {
    .hero__inner {
        min-height: auto;
        gap: 2rem;
    }
}

@media (max-width: 1000px) {
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --header-bar: 112px;
    }

    .header__inner {
        height: 76px;
    }

    .logo__img {
        height: 48px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 1.5rem;
    }

    .hero__content {
        padding: 3rem 0 0;
        text-align: center;
        max-width: none;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__text,
    .hero__text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__media {
        padding: 0 0 2.5rem;
    }

    .page-subsection,
    .page-content--home .page-subsection:first-of-type {
        padding: 3.5rem 0;
    }

    .page-subsection__title,
    .page-subsection--photo .page-subsection__title,
    .page-subsection--photo .page-subsection__link,
    .contact-form-box__title,
    .page-header__title {
        font-size: 1.9rem;
    }

    .page-header {
        padding: 2rem 0 2rem;
    }

    .contact-form-box {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child .gallery-card__image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero__volume {
        display: none;
    }

    .hero__strip {
        padding: 2rem 0;
    }

    .hero__strip-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .stats-strip__number {
        font-size: 2.2rem;
    }

    .btn--hero,
    .btn--hero-outline {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        padding: 0.75rem 1.7rem;
    }

    /* horní lišta: při zvětšeném písmu se kontakty smí zalomit do více řádků */
    .header__topbar-inner {
        gap: 0.5rem;
        justify-content: center;
    }

    .header__topbar-left:empty {
        display: none;
    }

    .header__topbar-right,
    .header__contact {
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
        max-width: 100%;
        flex-shrink: 1;
    }

    .header__contact-item {
        padding: 0.4rem 0.6rem;
    }

    .contact-form-box__field,
    .contact-form-box__field--1-3,
    .contact-form-box__field--2-3 {
        grid-column: 1 / -1;
    }

    .contact-form-box__form-panel {
        padding: 1.5rem;
    }

    .contact-form-box__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-box__bottom .btn--submit {
        min-width: 0;
        width: 100%;
    }

    .hero-video__current {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__video-wrap {
        border-radius: 16px 16px 16px 60px;
    }

    .page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .page-content--home .page-subsection--galerie .gallery-carousel__track--grid .gallery-card:first-child .gallery-card__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* skryté části okna videa (atribut hidden musí přebít display grid/flex výše) */
.hero-video__current[hidden],
.hero-video__empty[hidden],
.hero-video__picked[hidden],
.hero-video__progress[hidden],
.hero-video__current .form-helper--warn[hidden] {
    display: none;
}

/* mobil + správce: odkazy správce v horní liště na vlastním řádku, aby nepřekrývaly kontakty */
@media (max-width: 768px) {
    .header__topbar-inner {
        flex-wrap: wrap;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .header__topbar-left:not(:empty) {
        width: 100%;
        justify-content: center;
    }

    .header__topbar-right {
        width: 100%;
    }
}

/* karty osob (Kontakt, 4 vedle sebe): menší odsazení a kontakty, aby se e-mail nelámal uprostřed slova */
.staff-card--personal .staff-card__body {
    padding: 1.1rem 1.25rem 1.4rem;
}

.staff-card--personal .staff-card__name {
    font-size: 1.05rem;
}

.staff-card--personal .staff-card__perex,
.staff-card--personal .staff-card__perex p {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.staff-card--personal .staff-card__contact {
    font-size: 0.85rem;
    gap: 0.3rem;
}

.staff-card--personal .staff-card__contact a {
    overflow-wrap: anywhere;
}

.staff-card--personal .staff-card__avatar {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
    margin: 1.4rem 1.25rem 0;
}

/* Kontakt: karty osob bez kolečka s iniciálami, těsnější mezery a odsazení, aby se při 4 vedle sebe vešel celý e-mail */
.staff-card--personal .staff-card__avatar {
    display: none;
}

.staff-section--personal .staff-grid {
    gap: 1rem;
}

.staff-card--personal .staff-card__body {
    padding: 1.1rem 0.9rem 1.2rem;
}

.staff-card--personal .staff-card__name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.staff-card--personal .staff-card__contact {
    font-size: 0.8rem;
    gap: 0.3rem;
    margin-top: 0.7rem;
}

.staff-card--personal .staff-card__contact a {
    white-space: nowrap;
    overflow-wrap: normal;
    gap: 0.35rem;
}

.staff-card--personal .staff-card__contact svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* obsah stránky: text zůstává úzký (62 rem), výpisy prvků a fotogalerie jdou do celé šířky kontejneru
   (karty osob na Kontaktu 4 vedle sebe mají místo na celý e-mail) */
.page-main {
    max-width: none;
}

.page-main__content {
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
}

/* karty fotogalerií: datum vložení u realizací nic neříká (galerie jsou importované), zůstává jen počet fotek */
.gallery-card__meta > span:first-child {
    display: none;
}

/* ------------------------------------------------------------
   Časová osa (typ casova_osa, _timeline.latte): svislá zlatá linka uprostřed, období prokládaná vlevo
   a vpravo (mřížka 2 sloupce, každé období zabírá 8 řádků; levá začínají na řádcích 1, 9, 17…, pravá o řádek níž –
   proměnná --i ze šablony, pravý sloupec je tak posunutý jen o zlomek výšky karty), na mobilu linka vlevo a období pod sebou. Období = karta s velkým letopočtem a seznamem.
   ------------------------------------------------------------ */
.timeline-section {
    padding-top: 0.5rem;
}

.timeline {
    --timeline-gap: 6.5rem;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 1rem 0 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--timeline-gap);
    row-gap: 0;
    align-items: start;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--blue) 0%, var(--blue) 85%, rgba(0, 0, 0, 0) 100%);
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    grid-row: var(--i, auto) / span 8;
    padding-bottom: 1.75rem;
    min-width: 0;
}

.timeline__item--left {
    grid-column: 1;
}

.timeline__item--right {
    grid-column: 2;
}

.timeline__marker {
    position: absolute;
    top: 1.55rem;
    right: calc(var(--timeline-gap) / -2 - 12px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    border: 5px solid var(--blue);
    box-shadow: 0 0 0 5px var(--white);
    z-index: 2;
}

.page-subsection--bg-ledova .timeline__marker {
    box-shadow: 0 0 0 5px var(--snow);
}

.timeline__item--right .timeline__marker {
    right: auto;
    left: calc(var(--timeline-gap) / -2 - 12px);
}

.timeline__card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.75rem 1.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline__card:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* šipka karty směrem k lince */
.timeline__card::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    right: -9px;
    width: 16px;
    height: 16px;
    background: inherit;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}

.timeline__card:hover::before {
    border-color: var(--blue);
}

.timeline__item--right .timeline__card::before {
    right: auto;
    left: -9px;
    border-right: none;
    border-top: none;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ikonky správce na kartě období: až po najetí myší (jako u ostatních karet; karta není .blok-card,
   pravidlo hoveru ze základu na ni neplatí), na dotykové obrazovce pořád */
.timeline__card:hover .timeline__actions,
.timeline__card .timeline__actions:focus-within {
    opacity: 1;
}

@media (hover: none) {
    .timeline__card .timeline__actions {
        opacity: 1;
    }
}

.timeline__period {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue-dark);
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--blue);
}

.timeline--admin .timeline__period {
    padding-right: 7rem;
}

.timeline__photo {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.timeline__photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.timeline__text,
.timeline__text p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
}

.timeline__text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline__text li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted);
}

.timeline__text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    background: var(--blue);
    transform: rotate(45deg);
}

.timeline__card .card-more {
    margin-top: 0.9rem;
}

/* správce: „Přidat období“ nahoře přes celou šířku (nové období = nejnovější rok, jde na začátek) */
.timeline__item--attach {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 2rem;
    z-index: 1;
}

.timeline__item--attach .timeline__marker {
    display: none;
}

.timeline__attach {
    width: 100%;
    min-height: 90px;
}

/* tmavá / zlatá sekce */
.page-subsection--bg-modra .timeline__card,
.page-subsection--bg-zlata .timeline__card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.page-subsection--bg-modra .timeline__marker {
    box-shadow: 0 0 0 5px var(--navy);
}

.page-subsection--bg-modra .timeline__card::before {
    background: var(--navy-soft);
}

.page-subsection--bg-modra .timeline__period {
    color: var(--blue);
}

.page-subsection--bg-modra .timeline__text,
.page-subsection--bg-modra .timeline__text p,
.page-subsection--bg-modra .timeline__text li {
    color: rgba(255, 255, 255, 0.7);
}

.page-subsection--bg-zlata .timeline::before {
    background: linear-gradient(to bottom, var(--navy) 0%, var(--navy) 85%, rgba(26, 26, 26, 0) 100%);
}

.page-subsection--bg-zlata .timeline__marker {
    background: var(--blue);
    border-color: var(--navy);
    box-shadow: 0 0 0 5px var(--blue);
}

.page-subsection--bg-zlata .timeline__card,
.page-subsection--bg-zlata .timeline__card::before {
    background: rgba(26, 26, 26, 0.92);
    border-color: transparent;
}

.page-subsection--bg-zlata .timeline__period {
    color: var(--blue);
}

.page-subsection--bg-zlata .timeline__text,
.page-subsection--bg-zlata .timeline__text p,
.page-subsection--bg-zlata .timeline__text li {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .timeline {
        display: block;
    }

    .timeline::before {
        left: 14px;
        transform: none;
    }

    .timeline__item,
    .timeline__item--right,
    .timeline__item--attach {
        width: 100%;
        margin: 0;
        padding: 0 0 2rem 3rem;
    }

    .timeline__marker,
    .timeline__item--right .timeline__marker {
        right: auto;
        left: 2px;
        top: 1.3rem;
    }

    .timeline__card::before,
    .timeline__item--right .timeline__card::before {
        right: auto;
        left: -9px;
        border: none;
        border-left: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .timeline__period {
        font-size: 2.1rem;
    }

    .timeline__card {
        padding: 1.25rem 1.25rem 1.4rem;
    }
}

/* ------------------------------------------------------------
   Fotogalerie na výšku (volba „Fotogalerie na výšku“ u stránky, stranky.galerie_vyska): certifikáty a jiné
   naskenované listy se zobrazují celé bez ořezu – mřížka dlaždic 3:4, fotka uvnitř celá (object-fit: contain)
   na bílém podkladu s jemným rámečkem, žádná dlaždice není zvětšená přes 2×2.
   ------------------------------------------------------------ */
.photo-wall--portrait {
    --wall-cols: 4;
    --wall-gap: 1.25rem;
    grid-auto-rows: auto;
    grid-auto-flow: row;
}

.photo-wall--portrait .photo-wall__item,
.photo-wall--portrait .photo-wall__item:nth-child(6n + 1) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3 / 4;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.photo-wall--portrait .photo-wall__item:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.photo-wall--portrait .photo-wall__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.photo-wall--portrait .photo-wall__item:hover img {
    transform: none;
}

.photo-wall--portrait .photo-wall__caption {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    border-radius: 0 0 4px 4px;
}

@media (max-width: 1100px) {
    .photo-wall--portrait {
        --wall-cols: 3;
    }
}

@media (max-width: 700px) {
    .photo-wall--portrait {
        --wall-cols: 2;
        --wall-gap: 0.85rem;
    }
}

/* správcovská mřížka fotogalerie (po přihlášení, gallery.css) se stejnou volbou: dlaždice 3:4 s celou fotkou */
.photo-grid--portrait {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.photo-grid--portrait .photo-item {
    aspect-ratio: 3 / 4;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 0.5rem;
}

.photo-grid--portrait .photo-item .photo-link {
    display: block;
    height: 100%;
}

.photo-grid--portrait .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.photo-grid--portrait .photo-item:hover img {
    transform: none;
}

/* Video v hero: tlačítko pauza/přehrát uprostřed (vidět při najetí myší, při pauze a po dohrání pořád),
   kliknutí do videa také zastaví/spustí; obraz v obraze je vypnutý atributem disablepictureinpicture */
.hero__video-wrap--video .hero__video {
    cursor: pointer;
}

.hero__playpause {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.55);
    color: var(--white);
    cursor: pointer;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero__video-wrap:hover .hero__playpause,
.hero__playpause:focus-visible,
.hero__video-wrap.is-paused .hero__playpause {
    opacity: 1;
}

.hero__playpause:hover,
.hero__playpause:focus-visible {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--navy);
}

.hero__playpause-icon {
    display: block;
}

.hero__playpause-icon--play,
.hero__video-wrap.is-paused .hero__playpause-icon--pause {
    display: none;
}

.hero__video-wrap.is-paused .hero__playpause-icon--play {
    display: block;
    margin-left: 3px;
}

@media (hover: none) {
    .hero__playpause {
        opacity: 0.85;
    }
}

@media (max-width: 600px) {
    .hero__playpause {
        width: 56px;
        height: 56px;
    }
}

/* Menu: při najetí se pod textem položky rozvine ze středu tenká tmavá linka (spodní okraj) */
.nav--desktop .nav__link {
    position: relative;
    text-decoration: none;
}

.nav--desktop .nav__link::after {
    content: '';
    display: block;
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
    pointer-events: none;
}

.nav--desktop .nav__link:hover,
.nav--desktop .nav__link:focus-visible {
    color: #000;
    text-decoration: none;
}

.nav--desktop .nav__link:hover::after,
.nav--desktop .nav__link:focus-visible::after,
.nav--desktop .nav__dropdown:hover > .nav__link::after {
    transform: scaleX(1);
}

.nav--desktop .nav__link--disabled::after {
    display: none;
}

/* v mobilním panelu linka není */
html.nav-collapsed .nav__link::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .nav--desktop .nav__link::after {
        transition: none;
    }
}


/* ============================================================
   Vzhled BW Taxi (Black & White Taxi) – přebíjí sdílený základ a sekci metosagroup
   Paleta: jen černá, bílá a šedé. Role „blue“ (akcent) je černá na světlém pozadí;
   v tmavých blocích (hlavička, hero, pásek, patička) se akcent přepíná na bílou.
   Motiv: šachovnicový „taxi“ pruh (.taxi-band), černobílé video přes celou obrazovku.
   ============================================================ */
:root {
    --navy: #0B0B0B;
    --navy-deep: #000000;
    --navy-soft: #1C1C1C;
    --blue: #111111;
    --blue-dark: #000000;
    --blue-light: #EFEFEF;
    --sky: #FFFFFF;
    --ice: #F3F3F3;
    --ice-2: #D6D6D6;
    --ice-3: #E6E6E6;
    --snow: #FAFAFA;
    --text: #111111;
    --muted: #5C5C5C;
    --line: #E1E1E1;
    --radius: 10px;
    --radius-pill: 3px;
    --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.14);
    --header-bar: 118px;
    /* šachovnice taxi */
    --checker-size: 14px;
    --checker: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 0 0 / calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
}

/* --- Obecné --- */
a:hover {
    color: #000;
}

.eyebrow {
    color: var(--muted);
}

.eyebrow::before {
    background: #000;
}

/* horská silueta z předlohy sem nepatří */
.page-header__peaks,
.contact-form-box__peaks,
.footer__peaks {
    display: none !important;
}

/* --- Tlačítka: černá/bílá, při najetí inverze --- */
.btn--primary {
    background: #000;
    border-color: #000;
    color: #fff;
    box-shadow: none;
}

.btn--primary:hover {
    background: #fff;
    border-color: #000;
    color: #000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn--outline {
    border-color: #000;
    color: #000;
}

.btn--outline:hover {
    background: #000;
    color: #fff;
}

.btn--hero {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.btn--hero:hover {
    background: #000;
    border-color: #fff;
    color: #fff;
}

.btn--hero-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn--hero-outline:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

/* --- Hlavička: bílá lišta s černým logem, nad ní černá kontaktní lišta --- */
.header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.header.is-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 10px 28px rgba(0, 0, 0, 0.12);
}

.header__topbar {
    background: #000;
}

.header__admin-link {
    border-color: rgba(255, 255, 255, 0.35);
}

.header__admin-link:hover {
    border-color: #fff;
    color: #fff;
}

.header__contact-item {
    color: rgba(255, 255, 255, 0.9);
}

.header__contact-item svg,
.header__social-link {
    color: #fff;
}

.header__contact-item:hover,
.header__social-link:hover {
    background: #fff;
    color: #000;
}

.header__contact-item:hover svg {
    color: #000;
}

.header__inner {
    height: 82px;
}

.logo__img {
    height: 50px;
    width: auto;
}

.logo__img--footer {
    height: 62px;
}

.logo__img--login {
    height: 60px;
}

.nav__link {
    color: #000;
    font-weight: 700;
}

.nav--desktop .nav__link::after {
    background: #000;
}

.nav__submenu li a:hover {
    background: var(--ice);
    color: #000;
}

.nav__add-page {
    border-color: rgba(0, 0, 0, 0.35);
    color: #000;
}

/* mobilní menu: černý panel s bílými akcenty */
:where(html.nav-collapsed) .nav--mobile {
    background: #0B0B0B;
}

:where(html.nav-collapsed) .nav__header {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

:where(html.nav-collapsed) .nav__header-title,
:where(html.nav-collapsed) .nav__link:hover,
:where(html.nav-collapsed) .nav__footer-item svg,
:where(html.nav-collapsed) .nav__footer-social-link,
:where(html.nav-collapsed) .nav__close:hover {
    color: #fff;
}

:where(html.nav-collapsed) .nav__close:hover,
:where(html.nav-collapsed) .nav__footer-social-link:hover {
    border-color: #fff;
}

:where(html.nav-collapsed) .nav__submenu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

:where(html.nav-collapsed) .nav__footer-cta {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* --- Hero přes celou obrazovku: černobílé video, tmavý přechod, text vlevo --- */
.hero--fullscreen {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

.hero--fullscreen .hero__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
}

.hero--fullscreen .hero__video {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.06) brightness(0.95);
    transform: scale(1.02);
}

.hero--fullscreen .hero__overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.18) 75%, rgba(0, 0, 0, 0.3) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero--fullscreen .hero__inner {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7rem 1.25rem 7.5rem;
    min-height: 0;
}

.hero--fullscreen .hero__content {
    max-width: 680px;
    padding: 0;
}

.hero--fullscreen .hero__badge {
    color: #fff;
    border-color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.hero--fullscreen .hero__title {
    font-size: clamp(2.6rem, 6.2vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero--fullscreen .hero__text,
.hero--fullscreen .hero__text p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
    max-width: 560px;
}

.hero--fullscreen .hero__placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ovládání videa vpravo dole: play/pause + vodorovná hlasitost */
.hero__controls {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero--fullscreen .hero__playpause {
    position: static;
    width: 40px;
    height: 40px;
    transform: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
}

.hero--fullscreen .hero__playpause:hover,
.hero--fullscreen .hero__playpause:focus-visible {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.hero--fullscreen .hero__playpause-icon--play,
.hero--fullscreen .hero__playpause-icon--pause {
    display: none;
}

.hero--fullscreen .hero__playpause-icon--pause {
    display: block;
}

.hero--fullscreen.hero--paused .hero__playpause-icon--pause,
.hero--fullscreen .hero__video-wrap.is-paused ~ .hero__controls .hero__playpause-icon--pause {
    display: none;
}

.hero--fullscreen .hero__video-wrap.is-paused ~ .hero__controls .hero__playpause-icon--play {
    display: block;
    margin-left: 2px;
}

.hero--fullscreen .hero__volume {
    flex-direction: row;
    gap: 0.45rem;
    padding: 0;
    opacity: 0.85;
}

.hero--fullscreen .hero__volume-icon {
    color: #fff;
}

.hero--fullscreen .hero__volume-slider {
    writing-mode: horizontal-tb;
    direction: ltr;
    width: 84px;
    height: 20px;
}

.hero--fullscreen .hero__volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    margin-top: 0;
}

.hero--fullscreen .hero__volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5.5px;
    margin-left: 0;
    background: #fff;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.hero--fullscreen .hero__volume-slider::-moz-range-track {
    width: 100%;
    height: 3px;
}

.hero--fullscreen .hero__volume-slider::-moz-range-progress {
    background: #fff;
    height: 3px;
}

.hero--fullscreen .hero__volume-slider::-moz-range-thumb {
    background: #fff;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* „myš“ – výzva ke scrollování */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 3;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll-mouse {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    position: relative;
}

.hero__scroll-mouse::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: heroScroll 1.8s ease-in-out infinite;
}

@keyframes heroScroll {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-mouse::after {
        animation: none;
    }
}

/* šachovnicový taxi pruh */
.taxi-band {
    position: relative;
    z-index: 3;
    height: calc(var(--checker-size) * 2);
    background: var(--checker);    
}

.taxi-band--thin {
    --checker-size: 8px;
}

/* --- Pásek statistik: černý, bílá čísla --- */
.hero__strip {
    background: #000;
    border-bottom: 1px solid #000;
    padding: 2.25rem 0;
}

.hero__strip-item {
    color: #fff;
}

.hero__strip-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.stats-strip__number {
    color: #fff;
}

.stats-strip__label {
    color: rgba(255, 255, 255, 0.68);
}

.hero__strip-item--empty {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Sekce --- */
.page-subsection--bg-modra {
    background: linear-gradient(150deg, #0B0B0B 0%, #000 100%);
}

.page-subsection--bg-modra .eyebrow,
.page-subsection--bg-modra .rich-text a:not(.btn) {
    color: #fff;
}

.page-subsection--bg-modra .eyebrow::before {
    background: #fff;
}

/* „zlatá“ sekce = světle šedý pruh s tenkou šachovnicí nahoře */
.page-subsection--bg-zlata {
    background: var(--ice);
    color: var(--text);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.page-subsection--bg-zlata .eyebrow {
    color: var(--muted);
}

.page-subsection--bg-zlata .page-subsection__title,
.page-subsection--bg-zlata .page-subsection__link,
.page-subsection--bg-zlata .rich-text strong {
    color: #000;
}

.page-subsection--bg-zlata .page-subsection__intro,
.page-subsection--bg-zlata .page-subsection__intro p,
.page-subsection--bg-zlata .rich-text,
.page-subsection--bg-zlata .rich-text p,
.page-subsection--bg-zlata .rich-text li {
    color: var(--text);
}

.page-subsection--bg-zlata .rich-text a:not(.btn) {
    color: #000;
}

/* fotka sekce přes celou šířku: černobíle, jako hero */
.page-subsection--photo {
    filter: none;
}

.page-subsection--photo::before {
    filter: grayscale(100%);
}

/* --- Hlavička podstránky --- */
.page-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-header__media img {
    border-radius: 10px;
}

/* --- Karty: černý rámeček při najetí, ikona v černém poli --- */
.blok-card:hover,
.staff-card:hover,
.news-card:hover,
.news-item:hover,
.blok-inline-item:hover {
    border-color: #000;
}

.blok-card::before {
    background: #000;
}

.blok-card__icon,
.blok-card__number,
.staff-card__icon {
    background: #000;
    color: #fff;
}

.blok-card:hover .blok-card__icon,
.blok-card:hover .blok-card__number {
    background: #fff;
    color: #000;
    box-shadow: inset 0 0 0 2px #000;
}

.card-more {
    color: #000;
}

.card-more:hover {
    color: var(--muted);
}

/* --- Karty poboček: černé, město + telefon + ceny z dispečinku --- */
.pobocky-section {
    margin-top: 0.5rem;
}

.pobocky-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 4), minmax(0, 1fr));
    gap: 1.25rem;
}

.pobocka-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.4rem 1.3rem;
    background: #0B0B0B;
    color: #fff;
    border: 1px solid #000;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}

.pobocka-card::after {
    /* šachovnicová linka při spodním okraji */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    --checker-size: 6px;
    background: var(--checker);
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.pobocka-card--photo {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.9) 70%), var(--pobocka-foto) center / cover no-repeat;
}

.pobocka-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.pobocka-card:hover::after {
    opacity: 1;
}

.pobocka-card__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.pobocka-card__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    flex-shrink: 0;
}

.pobocka-card__pin svg {
    width: 16px;
    height: 16px;
}

.pobocka-card__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}

.pobocka-card__link {
    color: #fff;
}

.pobocka-card__link:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.pobocka-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #000;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 0.5rem 1.1rem 0.5rem 0.85rem;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.pobocka-card__phone svg {
    width: 20px;
    height: 20px;
}

.pobocka-card__phone:hover {
    background: #000;
    color: #fff;
}

.pobocka-card__phone--empty {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.35);
}

.pobocka-card__prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0.25rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pobocka-card__price dt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.15rem;
}

.pobocka-card__price dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pobocka-card__prices-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.pobocka-card__email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.pobocka-card__email:hover {
    color: #fff;
}

.pobocka-card__more {
    margin-top: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.4rem;
    color: #fff;
}

.pobocka-card__more:hover {
    color: rgba(255, 255, 255, 0.7);
}

.pobocka-card__actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pobocka-card:hover .pobocka-card__actions,
.pobocky-grid--admin .pobocka-card__actions {
    opacity: 1;
}

.pobocka-card--attach {
    background: #fff;
    color: #000;
    border: 2px dashed rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    min-height: 200px;
}

.pobocka-card--attach::after {
    display: none;
}

.pobocka-card--attach:hover {
    border-color: #000;
}

.pobocka-card--attach .admin-attach-card__icon {
    font-size: 2rem;
    line-height: 1;
}

/* ceny na detailu pobočky */
.pobocka-card__prices--detail {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 2rem;
    margin: 1rem 0 0;
    padding: 0.9rem 1.3rem;
    border: 1px solid #000;
    border-radius: var(--radius);
    background: #000;
    color: #fff;
}

.item-detail__contact--pobocka .item-detail__contact-item {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* --- Formulář před patičkou --- */
.contact-form-box {
    border-color: #000;
}

.contact-form-box__intro {
    background: linear-gradient(160deg, #0B0B0B 0%, #000 100%);
}

.contact-form-box__intro .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-box__intro .eyebrow::before {
    background: #fff;
}

.form-control--select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

/* --- Patička: černá, bílé nadpisy --- */
.footer {
    background: #000;
    color: rgba(255, 255, 255, 0.8);
    border-top: 0;
}

.footer::before {
    content: '';
    display: block;
    height: 12px;
    --checker-size: 6px;
    background: var(--checker);
}

.footer__heading,
.footer__contact-item,
.footer__contact-item svg {
    color: #fff;
}

.footer__links a:hover,
.footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer__social-link {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.footer__social-link:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.footer__bottom {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__copy a {
    color: #fff;
}

/* --- Přihlášení --- */
.login-box__header .logo {
    background: #fff;
}

/* --- Mapa: černobílá --- */
.map-section__canvas {
    filter: grayscale(100%);
}

/* --- Fotogalerie: černobílé náhledy, barevné po najetí --- */
.photo-wall__item img {
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s var(--ease);
}

.photo-wall__item:hover img {
    filter: none;
}

/* --- Responzivita --- */
@media (max-width: 1100px) {
    .pobocky-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    :root {
        --header-bar: 108px;
    }

    .header__inner {
        height: 72px;
    }

    .logo__img {
        height: 44px;
    }

    .hero--fullscreen .hero__inner {
        padding: 5rem 1.25rem 6.5rem;
    }

    .hero--fullscreen .hero__content {
        text-align: left;
        max-width: none;
    }

    .hero--fullscreen .hero__actions {
        justify-content: flex-start;
    }

    .hero--fullscreen .hero__text,
    .hero--fullscreen .hero__text p {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 720px) {
    .pobocky-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .pobocka-card {
        padding: 1.2rem 1rem 1.1rem;
    }

    .pobocka-card__name {
        font-size: 1.15rem;
    }

    .pobocka-card__phone {
        font-size: 1.05rem;
        padding: 0.45rem 0.9rem 0.45rem 0.75rem;
    }

    .pobocka-card__prices {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .hero__controls {
        right: 1rem;
        bottom: 1rem;
    }

    .hero__scroll {
        display: none;
    }

    .hero--fullscreen .hero__title {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }
}

@media (max-width: 460px) {
    .pobocky-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --- BW Taxi: dodatečné opravy po kontrole v prohlížeči --- */
/* kontaktní blok zůstává světlý (metosagroup), jen bez zlaté */
.contact-form-box__intro {
    background: transparent;
}

.contact-form-box__intro .eyebrow {
    color: var(--muted);
}

.contact-form-box__intro .eyebrow::before {
    background: #000;
}

.contact-form-box__intro .rich-text a:not(.btn) {
    color: #000;
}

.contact-form-box__bottom .btn--submit {
    background: #000;
    border-color: #000;
    color: #fff;
}

.contact-form-box__bottom .btn--submit:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}

.contact-form-box__social a:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* karty v tmavých sekcích: bílá ikona v průsvitném poli */
.page-subsection--bg-modra .blok-card__icon,
.page-subsection--bg-modra .blok-card__number,
.page-subsection--bg-modra .staff-card__icon,
.page-subsection--photo .blok-card__icon,
.page-subsection--photo .blok-card__number {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.page-subsection--bg-zlata .blok-card__icon,
.page-subsection--bg-zlata .blok-card__number,
.page-subsection--bg-zlata .staff-card__icon {
    background: #000;
    color: #fff;
}

.rich-text a:not(.btn) {
    text-decoration-color: rgba(0, 0, 0, 0.35);
}

.flash--info {
    background: var(--ice);
    color: var(--text);
}

/* nadpisy (i odkazové) v tmavých sekcích bílé */
.page-subsection--bg-modra .page-subsection__title,
.page-subsection--bg-modra .page-subsection__title a,
.page-subsection--bg-modra .page-subsection__link,
.page-subsection--photo .page-subsection__title,
.page-subsection--photo .page-subsection__title a,
.page-subsection--photo .page-subsection__link {
    color: #fff;
}

.page-subsection--bg-modra .page-subsection__link:hover,
.page-subsection--photo .page-subsection__link:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------
   BW Taxi: hlavička podle původního webu – bílé logo na tmavém zkoseném podkladu vlevo,
   tmavé menu na bílé vpravo, žlutá (#ecbe34) pro položku pod kurzorem a aktivní stránku
   ------------------------------------------------------------ */
:root {
    --header-bar: 104px;
    --taxi-yellow: #ecbe34;
    --logo-dark: #1f2120;
    --font-menu: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    /* celý web jedním písmem jako původní web */
    --font-heading: var(--font-menu);
    --font-body: var(--font-menu);
}

body {
    font-size: 18px;
    letter-spacing: 0.3px;
}

.header__topbar {
    display: none;
}

.header,
.header.is-scrolled {
    /* tmavý podklad loga pokračuje až k levému okraji obrazovky (jako na starém webu) */
    background: linear-gradient(to right, var(--logo-dark) 0%, var(--logo-dark) 25%, #fff 25%, #fff 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header__inner {
    max-width: 1600px;
    height: var(--header-bar);
    padding: 0 1.25rem 0 0;
    gap: 2rem;
}

.header .logo {
    align-self: stretch;
    width: 34%;
    max-width: 520px;
    min-width: 230px;
    padding: 14px 40px 14px 1.25rem;
    background: var(--logo-dark);
    clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.header .logo__img {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: 100%;
}

.nav--desktop .nav__link {
    /* písmo menu jako na původním webu: Roboto Condensed 12 px / 700 / prostrkání 2 px */
    font-family: var(--font-menu);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--logo-dark);
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav--desktop .nav__link::after {
    display: none;
}

.nav--desktop .nav__link:hover,
.nav--desktop .nav__link--active,
.nav--desktop .nav__dropdown:hover > .nav__link {
    color: var(--taxi-yellow);
    text-decoration: none;
}

.nav__submenu-link--active,
.nav__submenu li a.nav__submenu-link--active {
    color: var(--taxi-yellow);
}

.nav__submenu li a:hover {
    background: var(--ice);
    color: var(--taxi-yellow);
}

/* hamburger: přerušovaná žlutá jako na starém webu */
.hamburger span {
    background: var(--taxi-yellow);
}

:where(html.nav-collapsed) .nav__link:hover,
:where(html.nav-collapsed) .nav__link--active,
:where(html.nav-collapsed) .nav__header-title,
:where(html.nav-collapsed) .nav__submenu li a:hover,
:where(html.nav-collapsed) .nav__submenu-link--active {
    color: var(--taxi-yellow);
}

:where(html.nav-collapsed) .nav__close:hover {
    border-color: var(--taxi-yellow);
    color: var(--taxi-yellow);
}

@media (max-width: 1000px) {
    .header .logo {
        width: 300px;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    :root {
        --header-bar: 88px;
    }

    .header__inner {
        height: var(--header-bar);
        padding-right: 1rem;
    }

    .header .logo {
        padding: 10px 30px 10px 1rem;
    }

    .header .logo__img {
        max-height: 56px;
    }
}

@media (max-width: 500px) {
    .header .logo {
        width: 230px;
        padding-right: 24px;
    }

    .header .logo__img {
        max-height: 48px;
    }
}

/* mobilní menu a rozbalovací podmenu stejným písmem jako hlavní menu */
:where(html.nav-collapsed) .nav__link,
.nav__submenu li a,
.nav__submenu-link {
    font-family: var(--font-menu);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

:where(html.nav-collapsed) .nav__link {
    font-size: 13px;
}

/* hero bez ovládání videa (videa jsou bez zvuku, běží ve smyčce) */
.hero--fullscreen .hero__controls {
    display: none;
}

.hero--fullscreen .hero__video {
    pointer-events: none;
}

/* ------------------------------------------------------------
   Karusel poboček pod hero (místo pásku statistik): tmavé zkosené karty jako na původním webu
   ------------------------------------------------------------ */
.hero__strip {
    display: none;
}

.hero-pobocky {
    background: #fff;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.hero-pobocky__inner {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-pobocky__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hero-pobocky__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.hero-pobocky__track::-webkit-scrollbar {
    display: none;
}

.hero-pobocky__item {
    flex: 0 0 calc(100% / var(--hero-pobocky-cols, 5));
    scroll-snap-align: start;
    padding: 0 0.3rem;
    box-sizing: border-box;
    margin: 0;
}

.hero-pobocka {
    min-height: 150px;
    height: 100%;
    background: var(--logo-dark);
    color: #fff;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
    padding: 1.1rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
}

.hero-pobocka__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.hero-pobocka__link {
    color: #fff;
}

.hero-pobocka__link:hover {
    color: var(--taxi-yellow);
}

.hero-pobocka__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--taxi-yellow);
    white-space: nowrap;
}

.hero-pobocka__phone svg {
    width: 18px;
    height: 18px;
}

.hero-pobocka__phone:hover {
    color: #fff;
}

.hero-pobocka__prices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.hero-pobocka__prices strong {
    color: #fff;
    font-weight: 700;
}

.hero-pobocky__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--logo-dark);
    border-radius: 50%;
    background: #fff;
    color: var(--logo-dark);
    cursor: pointer;
    z-index: 2;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-pobocky__btn--prev {
    left: 0.4rem;
}

.hero-pobocky__btn--next {
    right: 0.4rem;
}

.hero-pobocky__btn:hover {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: var(--logo-dark);
}

.hero-pobocky__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 1400px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 4;
    }
}

@media (max-width: 1100px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 3;
    }
}

@media (max-width: 760px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 2;
    }

    .hero-pobocky__inner {
        padding: 0 2.75rem;
    }
}

@media (max-width: 480px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 1;
    }
}

/* karusel poboček přes celou šířku: 7 karet na velkých monitorech, méně na menších */
.hero-pobocky__inner {
    max-width: none;
    padding: 0 3rem;
}

.hero-pobocky__item {
    --hero-pobocky-cols: 7;
}

@media (max-width: 1800px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 6;
    }
}

@media (max-width: 1500px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 5;
    }
}

@media (max-width: 1250px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 4;
    }
}

@media (max-width: 1000px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 3;
    }
}

@media (max-width: 720px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 2;
    }
}

@media (max-width: 460px) {
    .hero-pobocky__item {
        --hero-pobocky-cols: 1;
    }
}

/* karusel poboček: od kraje ke kraji, větší dlaždice, šipky jen při najetí, tažení myší */
.hero-pobocky {
    padding: 0;
    border-bottom: 0;
}

.hero-pobocky__inner {
    padding: 0;
    gap: 0;
}

.hero-pobocky__item {
    padding: 0;
}

.hero-pobocka {
    min-height: 190px;
    padding: 1.4rem 1.8rem;
    gap: 0.5rem;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    border-right: 0;
}

.hero-pobocky__item:first-child .hero-pobocka {
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.hero-pobocka__name {
    font-size: 1.6rem;
}

.hero-pobocka__phone {
    font-size: 1.35rem;
}

.hero-pobocka__prices {
    font-size: 0.95rem;
}

.hero-pobocky__track {
    cursor: grab;
    user-select: none;
}

.hero-pobocky__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.hero-pobocky__track.is-dragging a {
    pointer-events: none;
}

.hero-pobocky__btn {
    opacity: 0;
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(31, 33, 32, 0.85);
    color: #fff;
    transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-pobocky__btn--prev {
    left: 0.75rem;
}

.hero-pobocky__btn--next {
    right: 0.75rem;
}

.hero-pobocky:hover .hero-pobocky__btn,
.hero-pobocky__btn:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    /* dotyková zařízení: posouvá se prstem, šipky jen jemně naznačené */
    .hero-pobocky__btn {
        opacity: 0.6;
    }
}

/* jako na původním webu: pás přesahuje okno o šířku zkosení na obou stranách, krajní šikmé hrany tak nejsou vidět */
.hero-pobocky {
    overflow: hidden;
}

.hero-pobocky__viewport {
    margin: 0 -28px;
}

.hero-pobocky__item:first-child .hero-pobocka {
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.hero-pobocka {
    clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
    margin-right: -14px;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
}

.hero-pobocky__item:first-child .hero-pobocka,
.hero-pobocky__item .hero-pobocka {
    clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
}

/* ------------------------------------------------------------
   Úvodní stránka: textové sekce s fotkou jako pásy přes celou šířku (podle původního webu) –
   na jedné polovině fotka od kraje, vedle ní tmavý podklad #1f2120 s bílým textem, zkosená hrana mezi nimi.
   Strana fotky se řídí volbou „Pozice fotky“ sekce.
   ------------------------------------------------------------ */
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) {
    background: var(--logo-dark);
    color: #fff;
    padding: 0;
    margin: 0 0 20px;
    overflow: hidden;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) > .container {
    max-width: none;
    padding: 0;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 480px;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    position: relative;
    background: #fff;
    margin: 0;
    order: 2;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__media {
    order: 1;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    filter: grayscale(100%);
    transition: filter 0.9s ease;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media:hover img {
    filter: none;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
    order: 1;
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__content-wrap {
    order: 2;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .page-subsection__title,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .page-subsection__link,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) h3,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text p,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text li,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text strong {
    color: #fff;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .eyebrow {
    color: var(--taxi-yellow);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .eyebrow::before {
    background: var(--taxi-yellow);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text a:not(.btn) {
    color: var(--taxi-yellow);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--outline {
    border-color: #fff;
    color: #fff;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--outline:hover {
    background: #fff;
    color: var(--logo-dark);
}

@media (max-width: 1650px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
        padding: 50px;
    }
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media,
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__media {
        order: 1;
        clip-path: none;
        aspect-ratio: 16 / 9;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap,
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__content-wrap {
        order: 2;
        padding: 40px 20px 50px;
    }
}

/* místo šachovnice jen tenký bílý proužek nad i pod pásem poboček, aby nesplýval s hero a dalším tmavým blokem */
.taxi-band {
    display: none;
}

.hero-pobocky {
    background: #fff;
    padding: 12px 0;
    margin: 0;
}

.page-content--home .page-subsection:first-of-type,
.page-content--home .page-subsection--home-intro {
    margin-top: 0;
}

/* pásy na úvodu: výšku dává celá fotka (bez ořezu), text se do ní vycentruje; jen když je text delší,
   fotka se dotáhne na výšku textu (objekt-fit cover) – obě poloviny se tak vyvažují jako na původním webu */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
    min-height: 0;
    align-items: stretch;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    display: grid;
    min-height: 0;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
    padding: clamp(28px, 4.5vw, 90px) clamp(24px, 5vw, 100px);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .page-subsection__title {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text p,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .rich-text li {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
        aspect-ratio: auto;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img {
        min-height: 0;
        height: auto;
    }
}

/* poměr stran fotky nastaví main.js (initHomeBands) na sloupec s fotkou; fotka ho pak celá vyplní */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    display: block;
    aspect-ratio: var(--foto-ratio, 4 / 3);
    min-height: 100%;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
        min-height: 0;
    }
}

/* pásy na úvodu: fotka bez limitu výšky a bez vnuceného poměru 4:3 ze základních stylů; PNG stejně jako JPG */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
    max-height: none;
    aspect-ratio: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
}

/* pásy na úvodu: poměr stran drží neviditelný prvek, fotka vyplňuje sloupec absolutně s přesahem 1 px
   dolů – pod fotkou tak nikdy neprosvitne tmavé pozadí (subpixelová spára při některých rozlišeních) */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    position: relative;
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    align-self: stretch;
    overflow: hidden;
    background: #fff;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: var(--foto-ratio, 4 / 3);
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: calc(100% + 2px);
    max-height: none;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
        aspect-ratio: auto;
    }
}

/* ------------------------------------------------------------
   Karusel fotek na úvodu (sekce Fotogalerie): přes celou šířku okna, zkosené dlaždice 4:3 jako pás poboček,
   černobílé, po najetí barevné
   ------------------------------------------------------------ */
.photo-carousel {
    position: relative;
    width: 100vw;
    margin: 2rem calc(50% - 50vw) 0;
    overflow: hidden;
}

.photo-carousel__inner {
    position: relative;
}

.photo-carousel__viewport {
    overflow: hidden;
    margin: 0 -28px;
}

.photo-carousel__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.photo-carousel__track::-webkit-scrollbar {
    display: none;
}

.photo-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.photo-carousel__track.is-dragging a {
    pointer-events: none;
}

.photo-carousel__item {
    flex: 0 0 calc(100% / var(--photo-carousel-cols, 5));
    scroll-snap-align: start;
    margin: 0;
}

.photo-carousel__link {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-right: -14px;
    clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
    background: var(--logo-dark);
}

.photo-carousel__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.9s ease, transform 0.9s ease;
}

.photo-carousel__link:hover img {
    filter: none;
    transform: scale(1.04);
}

.photo-carousel .hero-pobocky__btn {
    opacity: 0;
}

.photo-carousel:hover .hero-pobocky__btn,
.photo-carousel .hero-pobocky__btn:focus-visible {
    opacity: 1;
}

@media (hover: none) {
    .photo-carousel .hero-pobocky__btn {
        opacity: 0.6;
    }
}

@media (max-width: 1500px) {
    .photo-carousel__item {
        --photo-carousel-cols: 4;
    }
}

@media (max-width: 1100px) {
    .photo-carousel__item {
        --photo-carousel-cols: 3;
    }
}

@media (max-width: 720px) {
    .photo-carousel__item {
        --photo-carousel-cols: 2;
    }
}

@media (max-width: 460px) {
    .photo-carousel__item {
        --photo-carousel-cols: 1;
    }
}

/* pásy na úvodu jako na původním webu: výšku bloku určuje text, fotka je na bílé polovině vycentrovaná
   v přirozené velikosti (nikdy se nezvětšuje), větší fotka se jen zmenší, aby se do poloviny vešla */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
    min-height: 420px;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    background: #fff;
    overflow: hidden;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media::before {
    content: none;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0;
    background: #fff;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
    padding: 100px;
}

@media (max-width: 1400px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
        padding: 50px;
    }
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
        min-height: 0;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
        aspect-ratio: auto;
        padding: 20px 0;
        text-align: center;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
        position: static;
        transform: none;
        display: block;
        margin: 0 auto;
        max-height: 70vh;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
        padding: 40px 20px 50px;
    }
}

/* tlačítka v tmavých pásech na úvodu: bílá s tmavým textem, při najetí žlutá */
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--primary,
.page-subsection--bg-modra .btn--primary {
    background: #fff;
    border-color: #fff;
    color: var(--logo-dark);
    box-shadow: none;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--primary:hover,
.page-subsection--bg-modra .btn--primary:hover {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: var(--logo-dark);
}

/* „světlé“ tlačítko v tmavých sekcích (metosagroup ho mělo zlaté): bílé, při najetí žluté */
.btn--light,
.page-subsection--bg-modra .btn--light,
.page-subsection--photo .btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--logo-dark);
    box-shadow: none;
}

.btn--light:hover,
.page-subsection--bg-modra .btn--light:hover,
.page-subsection--photo .btn--light:hover {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: var(--logo-dark);
}

.page-subsection--bg-modra .page-subsection__more.btn--light,
.page-subsection--photo .page-subsection__more.btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--logo-dark);
}

.page-subsection--bg-modra .page-subsection__more.btn--light:hover,
.page-subsection--photo .page-subsection__more.btn--light:hover {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: var(--logo-dark);
}

/* fotka v pásu jako na původním webu: na šířku poloviny (nikdy víc než přirozená velikost), vycentrovaná,
   přesah na výšku se ořízne – malý obrázek (QR kód) zůstane malý, velká fotka vyplní celou polovinu */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
    max-width: 100%;
    max-height: none;
    width: auto;
    height: auto;
}

/* tlačítko v pásu: malé, obrysové žluté jako na původním webu */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__content-wrap {
    align-items: flex-start;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .page-subsection__more,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--light,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--outline,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--primary {
    width: auto;
    align-self: flex-start;
    margin-top: 1.5rem;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid var(--taxi-yellow);
    border-radius: 0;
    color: #fff;
    box-shadow: none;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .page-subsection__more:hover,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--light:hover,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--outline:hover,
.page-content--home .page-subsection--text:not(.page-subsection--photo):has(.page-subsection__media) .btn--primary:hover {
    background: var(--taxi-yellow);
    border-color: var(--taxi-yellow);
    color: var(--logo-dark);
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img,
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media img[src$=".png"] {
        max-height: none;
    }
}

/* pásy na úvodu: minimální výška 600 px; bílá polovina s fotkou přesahuje o 1 px nahoru i dolů (sekce
   přesah ořízne), aby pod ní ani nad ní neprosvítal tmavý podklad sekce (zaokrouhlení hran u clip-path) */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
    min-height: 600px;
}

.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
    margin-top: -1px;
    margin-bottom: -1px;
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) {
        min-height: 0;
    }

    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout:has(.page-subsection__media) .page-subsection__media {
        margin: 0;
    }
}

/* dekorativní 6px pruhy nahoře a dole u tmavých sekcí (předloha metosagroup) – na BW Taxi nejsou */
.page-subsection--bg-modra::before,
.page-subsection--bg-modra::after {
    display: none;
    content: none;
}

/* zkosení jako na původním webu: fotka vpravo má hranu „/“ (nahoře odsazená), fotka vlevo hranu „\“ (dole odsazená) */
.page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__media {
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

@media (max-width: 1000px) {
    .page-content--home .page-subsection--text:not(.page-subsection--photo) .page-subsection__layout--image-left:has(.page-subsection__media) .page-subsection__media {
        clip-path: none;
    }
}

/* hamburger menu: bílé položky na tmavém panelu (obecné .nav__link { color: #000 } sem nepatří) */
html.nav-collapsed .nav--mobile .nav__link,
html.nav-collapsed .nav--mobile .nav__link--disabled,
html.nav-collapsed .nav--mobile .nav__submenu-link,
html.nav-collapsed .nav--mobile .nav__submenu li a {
    color: rgba(255, 255, 255, 0.92);
}

html.nav-collapsed .nav--mobile .nav__link:hover,
html.nav-collapsed .nav--mobile .nav__link--active,
html.nav-collapsed .nav--mobile .nav__submenu li a:hover,
html.nav-collapsed .nav--mobile .nav__submenu-link--active {
    color: var(--taxi-yellow);
}

html.nav-collapsed .nav--mobile .nav__footer-item,
html.nav-collapsed .nav--mobile .nav__footer-item a {
    color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------------
   Stránka Senior Taxi: tabulka obcí, poznámky [ověřit]
   ------------------------------------------------------------ */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.rich-text .senior-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rich-text .senior-table th,
.rich-text .senior-table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
    color: var(--text);
}

.rich-text .senior-table th {
    background: var(--logo-dark);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rich-text .senior-table tbody tr:nth-child(even) td {
    background: var(--ice);
}

.rich-text .senior-table__city {
    font-weight: 700;
    white-space: nowrap;
}

/* [ověřit] = poznámky pro vedení před zveřejněním; po doplnění je smažte v administraci */
mark.overit {
    background: var(--taxi-yellow);
    color: var(--logo-dark);
    padding: 0 0.3em;
    border-radius: 2px;
    font-size: 0.85em;
    font-weight: 600;
}

/* tmavé karty ve světle šedé sekci („zlatá“): bílý text karty, ne tmavý */
.page-subsection--bg-zlata .blok-card .blok-card__perex,
.page-subsection--bg-zlata .blok-card .blok-card__perex p,
.page-subsection--bg-zlata .blok-card .blok-card__perex li {
    color: rgba(255, 255, 255, 0.85);
}

.page-subsection--bg-zlata .blok-card .card-more {
    color: #fff;
}

/* odrážky v sekci s nadpisem na středu: seznam zarovnaný doleva, jako blok vycentrovaný */
.page-subsection__layout--full .page-subsection__content ul,
.page-subsection__layout--full .page-subsection__content ol,
.page-subsection__layout--full .page-subsection__intro ul,
.page-subsection__layout--full .page-subsection__intro ol {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

/* Sekce bez fotky: texty zarovnané doleva (předloha je centrovala). Zarovnání z editoru (text-align
   v odstavci) má přednost, výchozí je vlevo – jako na původním webu. Nadpis a nadtitulek zůstávají vlevo s textem. */
.page-subsection__layout--full .page-subsection__content-wrap {
    text-align: left;
    margin-left: 0;
    max-width: none;
}

.page-subsection__layout--full .page-subsection__title-row {
    justify-content: flex-start;
}

.page-subsection__layout--full .page-subsection__intro,
.page-subsection__layout--full .page-subsection__content {
    margin-left: 0;
    margin-right: 0;
    max-width: 52rem;
}

.page-subsection__layout--full .page-subsection__content ul,
.page-subsection__layout--full .page-subsection__content ol,
.page-subsection__layout--full .page-subsection__intro ul,
.page-subsection__layout--full .page-subsection__intro ol {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

/* úvodní stránka: pás poboček a karusel fotek mají nadpis na středu i nadále */
.page-content--home #fotogalerie-uvod .page-subsection__layout--full .page-subsection__content-wrap,
.page-content--home #fotogalerie-uvod .page-subsection__layout--full .page-subsection__title-row,
.page-content--home #co-nabizime .page-subsection__layout--full .page-subsection__content-wrap,
.page-content--home #co-nabizime .page-subsection__layout--full .page-subsection__title-row {
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.page-content--home #fotogalerie-uvod .page-subsection__layout--full .page-subsection__intro,
.page-content--home #co-nabizime .page-subsection__layout--full .page-subsection__intro {
    margin-left: auto;
    margin-right: auto;
}

/* texty sekcí bez omezení šířky – využijí celou šířku kontejneru */
.page-subsection__content-wrap,
.page-subsection__layout--full .page-subsection__content-wrap,
.page-subsection__layout--full .page-subsection__intro,
.page-subsection__layout--full .page-subsection__content,
.page-subsection__intro,
.page-subsection__content {
    max-width: none;
}

/* tmavá textová sekce: předloha dávala nadpis zlatě (var(--blue)), v černobílé paletě je to černá na černé – bílá */
.page-subsection--bg-modra.page-subsection--text .page-subsection__title,
.page-subsection--bg-modra.page-subsection--text .page-subsection__title a,
.page-subsection--bg-modra.page-subsection--text .page-subsection__link,
.page-subsection--bg-modra.page-subsection--text .rich-text h2,
.page-subsection--bg-modra.page-subsection--text .rich-text h3,
.page-subsection--bg-modra.page-subsection--text .rich-text h4,
.page-subsection--bg-modra.page-subsection--text .rich-text strong {
    color: #fff;
}

.page-subsection--bg-modra.page-subsection--text .page-subsection__intro,
.page-subsection--bg-modra.page-subsection--text .page-subsection__intro p,
.page-subsection--bg-modra.page-subsection--text .page-subsection__content,
.page-subsection--bg-modra.page-subsection--text .page-subsection__content p,
.page-subsection--bg-modra.page-subsection--text .rich-text li {
    color: rgba(255, 255, 255, 0.85);
}

.page-subsection--bg-modra.page-subsection--text .eyebrow {
    color: var(--taxi-yellow);
}

.page-subsection--bg-modra.page-subsection--text .eyebrow::before {
    background: var(--taxi-yellow);
}

.page-subsection--bg-modra.page-subsection--text .rich-text a:not(.btn) {
    color: var(--taxi-yellow);
}
