/* ============================================================
   TJ SKI SLAVOJ BRUNTÁL – hlavní styly webu
   Paleta vychází z loga: tmavě modrá #003366 + ledově světlá
   modrá hor #DEE8EB / #A8C4CE. Nadpisy Barlow Condensed, text Barlow.
   Administrace (modaly, formuláře, nástroje) je v css/admin.css.
   ============================================================ */

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

:root {
    --navy: #003366;
    --navy-deep: #00224A;
    --navy-soft: #1B4A80;
    --blue: #1A6FB8;
    --blue-dark: #145A95;
    --blue-light: #E3F0FA;
    --sky: #5FAEE6;
    --ice: #DEE8EB;
    --ice-2: #A8C4CE;
    --ice-3: #C9D8DF;
    --snow: #F4F8FA;
    --text: #1B2A3A;
    --muted: #5B6B7B;
    --line: #D7E2EA;
    --white: #FFFFFF;
    --error: #D32F2F;
    --success: #2E7D32;

    --font-heading: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
    --font-body: 'Barlow', 'Segoe UI', Roboto, sans-serif;

    --max-width: 1240px;
    --header-height: 108px;
    --radius: 18px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-card: 0 10px 30px rgba(0, 34, 74, 0.08);
    --shadow-card-hover: 0 20px 46px rgba(0, 34, 74, 0.16);
    --shadow-soft: 0 6px 18px rgba(0, 34, 74, 0.08);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* aliasy pro sdílené admin styly */
    --color-border: var(--line);
    --color-white: var(--white);
    --color-text: var(--text);
    --color-text-light: var(--muted);
    --color-bg-light: var(--snow);
    --color-primary: var(--blue);
    --color-error: var(--error);
    --color-success: var(--success);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

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);
    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, 51, 102, 0.22);
}

.btn--primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(26, 111, 184, 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;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.header.is-scrolled {
    box-shadow: 0 6px 24px rgba(0, 34, 74, 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-height);
    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, 34, 74, 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, 34, 74, 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;
    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, 34, 74, 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);
    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, #F7FAFC 0%, var(--ice) 55%, #CFDDE4 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(95, 174, 230, 0.22), rgba(95, 174, 230, 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, 34, 74, 0.75), rgba(0, 34, 74, 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, 34, 74, 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, #F7FAFC 0%, var(--ice) 70%, #D3E0E7 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(26, 111, 184, 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, 34, 74, 0.88) 0%, rgba(0, 51, 102, 0.62) 55%, rgba(0, 51, 102, 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: #F1F3F5 !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, 51, 102, 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__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, 34, 74, 0.92) 0%, rgba(0, 34, 74, 0.55) 55%, rgba(0, 34, 74, 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; vodorovně přesně gutter
       kontejneru, takže karta sedí na kraji a další nevykukuje. */
    padding: 1rem var(--gutter, 1.25rem) 2.5rem;
    margin: -1rem calc(-1 * var(--gutter, 1.25rem)) -2.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;
}

.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;
}

.photo-wall {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.photo-wall__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.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, 34, 74, 0.8), rgba(0, 34, 74, 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(168, 196, 206, 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: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.contact-form-box__message {
    grid-column: 1 / -1;
}

.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:focus {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 184, 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 {
    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(26, 111, 184, 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: rgba(255, 255, 255, 0.85);
}

.footer__contact-item:hover {
    color: var(--white);
}

.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);
}

.footer__content a:not(.btn) {
    color: var(--sky);
    text-decoration-color: rgba(95, 174, 230, 0.4);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.85);
    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: rgba(255, 255, 255, 0.85);
}

.footer__copy a:hover {
    color: var(--white);
}

.footer__copy-sep {
    margin: 0 0.4rem;
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 45, 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: #061a33;
}

.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;
}

.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, 51, 102, 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: 20px;
    right: 24px;
    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: 1rem;
    bottom: 4.5rem;
    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, 34, 74, 0.18);
}

.cookie-consent-trigger {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    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, 34, 74, 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 #BBDEFB;
}

.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.45;
}

.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-height: 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 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .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 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .photo-wall__item:nth-child(6n + 1) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 10;
    }

    .contact-form-box__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .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;
    }
}
