﻿/* ========================================
   Mateřská škola VE SVAHU — Vrbno pod Pradědem
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Barvy znacky (odecteno primo z loga) --- */
    --color-brand-blue: #7690C9;
    --color-brand-blue-dark: #4F69A8;
    --color-brand-green: #92B55B;
    --color-brand-green-dark: #6E9040;
    --color-brand-green-light: #DCE9C6;
    --color-brand-coral: #F08365;
    --color-brand-coral-dark: #D96444;
    --color-brand-yellow: #FECC00;

    --color-bg: #F6FAEF;
    --color-bg-light: #FFFFFF;
    --color-surface-soft: #F1F6E7;

    /* Hlavni interaktivni barva (odkazy, aktivni prvky) */
    --color-gold: #5C77BA;
    --color-gold-dark: #3F5896;
    --color-gold-light: #DFE6F6;

    --color-text: #3E4A55;
    --color-text-light: #5C77BA;
    --color-white: #FFFFFF;
    --color-border: #E2EAD3;
    --color-error: #D32F2F;
    --color-success: #4C8B32;
    --color-hero-accent: #4F69A8;
    --font-heading: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1280px;
    --header-height: 118px;

    /* Druhotny akcent = koralova z loga */
    --color-accent-2: #F08365;
    --color-accent-2-dark: #D96444;
    --color-accent-2-light: #FBDDD3;
    --color-accent-2-bg: #FEF4F0;
    --color-neutral-bg: #F4F3EE;
    --shadow-card: 0 10px 30px rgba(110, 144, 64, 0.10);
    --shadow-card-hover: 0 16px 40px rgba(110, 144, 64, 0.17);
    --radius-card: 22px;
    --radius-pill: 999px;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

body.has-hero {
    padding-top: var(--header-height);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-gold-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: 0.875rem 2.25rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-gold-light);
    color: var(--color-text);
    border-color: var(--color-gold-light);
}

.btn--primary:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn--outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

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

/* ========================================
   COOKIE CONSENT
   ======================================== */
.cookie-consent {
    position: fixed;
    left: 1rem;
    bottom: 4.5rem;
    width: min(440px, calc(100vw - 2rem));
    z-index: 1200;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.cookie-consent-trigger {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1190;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-trigger:hover {
    transform: translateY(-1px);
    border-color: var(--color-gold);
}

.cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem;
}

.cookie-consent__title {
    margin: 0;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.25;
}

.cookie-consent__text {
    margin: 0;
    color: var(--color-text);
    font-size: 0.88rem;
    line-height: 1.4;
}

.cookie-consent__text a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

#cookieConsentSaveSettings {
    order: 2;
}

#cookieConsentAccept {
    order: 3;
    margin-left: auto;
}

#cookieConsentSettingsToggle {
    order: 1;
    margin-right: auto;
}

.cookie-consent__actions .btn {
    padding: 0.62rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    width: auto;
    min-width: 185px;
}

.cookie-consent--expanded .cookie-consent__actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent--expanded .cookie-consent__actions .btn {
    width: calc(50% - 0.25rem);
    min-width: 0;
}

.cookie-consent--expanded .cookie-consent__settings-link {
    display: none;
}

.cookie-consent__settings-link {
    color: var(--color-text-light);
    font-size: 0.76rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__settings-link:hover {
    color: var(--color-text);
}

.cookie-consent__settings {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-light);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent[hidden],
.cookie-consent__settings[hidden],
.cookie-consent-trigger[hidden] {
    display: none !important;
}

.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.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cookie-consent__setting-row:last-of-type {
    border-bottom: none;
}

.cookie-consent__setting-row strong {
    display: block;
    font-size: 0.95rem;
}

.cookie-consent__setting-row small,
.cookie-consent__setting-row p {
    margin: 0.15rem 0 0;
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.35;
}

.cookie-consent__setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
    flex-shrink: 0;
}

.cookie-consent__tag {
    color: var(--color-text-light);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .cookie-consent-trigger {
        width: 44px;
        height: 44px;
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-consent {
        left: 0.75rem;
        bottom: 4.2rem;
        width: calc(100vw - 1.5rem);
    }

    .cookie-consent__inner {
        align-items: stretch;
    }

    .cookie-consent__actions {
        justify-content: flex-start;
    }

    .cookie-consent__actions .btn {
        flex-shrink: 0;
        min-width: 0;
        width: calc(50% - 0.25rem);
    }

    .cookie-consent--expanded .cookie-consent__actions {
        flex-direction: row;
        align-items: center;
    }

    .cookie-consent--expanded .cookie-consent__actions .btn {
        min-width: 0;
        width: calc(50% - 0.25rem);
    }

    .cookie-consent__setting-row {
        align-items: flex-start;
    }

}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s 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: 16px;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox-image {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    background: #111;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav--prev {
    left: -64px;
}

.lightbox-nav--next {
    right: -64px;
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: min(92vw, 900px);
    padding: 6px 4px 2px;
}

.lightbox-thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.lightbox-thumb img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.lightbox-thumb.is-active {
    border-color: var(--color-gold);
}

@media (max-width: 900px) {
    .lightbox-nav--prev {
        left: 8px;
    }

    .lightbox-nav--next {
        right: 8px;
    }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.header.is-scrolled {
    box-shadow: 0 4px 18px rgba(20, 60, 70, 0.06);
}

.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 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;    
}

/* Logo */
.logo {    
    padding:10px 0;    
}

.logo__img {
    height: 55px;
    width: auto;
}

.logo__img--footer {
    height: 40px;    
}

.logo__img--admin {
    height: 36px;
    filter: brightness(0) invert(1);
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Desktop nav visible, mobile nav hidden on desktop */
.nav--mobile {
    display: none;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav__link {
    display: block;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-gold);
}

.nav__link--disabled {
    color: var(--color-text-light);
    cursor: default;
}

.nav__item--inactive {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

.nav__arrow {
    font-size: 0.65rem;
    margin-left: 0.15rem;
}

/* Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    list-style: none;
    z-index: 100;
}

.nav__dropdown:hover .nav__submenu {
    display: block;
}

.nav__submenu li a {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--color-gold);
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    font-weight: 700;
}

.nav__submenu-link {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.nav__submenu li a:hover {
    background: var(--color-bg);
    color: var(--color-gold);
}

.nav__submenu-link:hover {
    background: transparent;
    color: var(--color-text-light);
}

.nav__submenu-item {
    position: relative;
}

.nav__submenu--child {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 1rem 0 1rem;    
    background: transparent;
}

.nav__submenu--child li a {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: var(--color-text-light);
    text-transform: none;
}

.nav__submenu--child .nav__submenu-link {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: var(--color-text-light);
    text-transform: none;
}

.nav__submenu--child li a:hover {
    background: transparent;
    color: var(--color-gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;    
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* No hamburger-to-X animation â€” close button is inside the nav panel */

/* --- Mobile menu backdrop --- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 35, 42, 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 cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Mobile nav footer (hidden on desktop) --- */
.nav__footer {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
/* ---- HERO ---- */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    line-height: 0;
    display: flex;
    align-items: center;
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}


/* ---- Hero Animations ---- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 5rem 0;
}

.section__title {
    font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

/* --- About --- */
.section--about {
    background: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.about__text p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-2px);
}

.feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.feature p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- Info Page Items --- */
.info-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.blok-inline-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.info-list {
    display: grid;
    gap: 2.5rem;
}

.blok-inline-list {
    display: grid;
    gap: 2.5rem;
}

.info-item {
    position: relative;
}

.blok-inline-item {
    position: relative;
}

.info-item__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "image card";
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.blok-inline-item__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "image card";
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.info-item--size-1-2 .info-item__grid {
    grid-template-columns: 1fr 1fr;
}
.blok-inline-item--size-1-2 .blok-inline-item__grid {
    grid-template-columns: 1fr 1fr;
}

.info-item--size-2-3 .info-item__grid {
    grid-template-columns: 2fr 1fr;
}
.blok-inline-item--size-2-3 .blok-inline-item__grid {
    grid-template-columns: 2fr 1fr;
}

.info-item__card {
    grid-area: card;
    background-color: var(--color-surface-soft);
    background-image:
        radial-gradient(ellipse 70% 70% at 0% 0%, rgba(180, 225, 240, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 20%, rgba(150, 210, 232, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(190, 230, 242, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(165, 218, 236, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(240, 250, 253, 0.8) 0%, transparent 70%);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blok-inline-item__card {
    grid-area: card;
    background-color: var(--color-surface-soft);
    background-image:
        radial-gradient(ellipse 70% 70% at 0% 0%, rgba(180, 225, 240, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 20%, rgba(150, 210, 232, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(190, 230, 242, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(165, 218, 236, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(240, 250, 253, 0.8) 0%, transparent 70%);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item--image-right .info-item__grid {
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "card image";
}
.blok-inline-item--image-right .blok-inline-item__grid {
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "card image";
}

.info-item--image-right.info-item--size-1-2 .info-item__grid {
    grid-template-columns: 1fr 1fr;
}
.blok-inline-item--image-right.blok-inline-item--size-1-2 .blok-inline-item__grid {
    grid-template-columns: 1fr 1fr;
}

.info-item--image-right.info-item--size-2-3 .info-item__grid {
    grid-template-columns: 1fr 2fr;
}
.blok-inline-item--image-right.blok-inline-item--size-2-3 .blok-inline-item__grid {
    grid-template-columns: 1fr 2fr;
}

.info-item__image {
    grid-area: image;
    border-radius: 16px;
    overflow: hidden;
}
.blok-inline-item__image {
    grid-area: image;
    border-radius: 16px;
    overflow: hidden;
}

.info-item__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 146, 175, 0.08), rgba(47, 146, 175, 0.02));
}
.blok-inline-item__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 146, 175, 0.08), rgba(47, 146, 175, 0.02));
}

.info-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blok-inline-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-item__title {
    font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.35rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
}

.blok-inline-item__title {
        font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.35rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border);
        text-transform: uppercase;
}
.blok-inline-item__title {
        font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.35rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-border);
        text-transform: uppercase;
}

.info-item__text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}
.blok-inline-item__text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.info-item__card .rich-text ul {
    list-style-type: circle;
}
.blok-inline-item__card .rich-text ul {
    list-style-type: circle;
}

.info-item:hover .staff-card__actions {
    opacity: 1;
}

.blok-inline-item:hover .blok-card__actions {
    opacity: 1;
}

.info-item .staff-card__actions {
    z-index: 3;
}

.blok-inline-item .blok-card__actions {
    z-index: 3;
}

.info-item--attach {
    border: 2px dashed var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 220px;
    font-family: var(--font-body);
    padding: 1.5rem;
}

.blok-inline-item--attach {
    border: 2px dashed var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 220px;
    font-family: var(--font-body);
    padding: 1.5rem;
}

.info-item--attach:hover {
    border-color: var(--color-gold);
    background: var(--color-bg);
    color: var(--color-text);
}

.blok-inline-item--attach:hover {
    border-color: var(--color-gold);
    background: var(--color-bg);
    color: var(--color-text);
}

/* --- News list (Aktuality) --- */
.news-list {
    display: grid;
    gap: 1.75rem;
}

.news-item .info-item__card {
    justify-content: flex-start;
}

.news-item .blok-inline-item__card {
    justify-content: flex-start;
}

.news-item .info-item__title {
    text-transform: none;
    margin-bottom: 1rem;
}

.news-item .blok-inline-item__title {
    text-transform: none;
    margin-bottom: 1rem;
}

.news-item .info-item__title a {
    color: var(--color-text);
}

.news-item .blok-inline-item__title a {
    color: var(--color-text);
}

.news-item__meta {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.news-item--attach {
    min-height: 140px;
}

/* --- FAQ (Otazky) --- */
.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg);
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--color-text);
    cursor: pointer;
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.faq-title {
    text-align: left;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.faq-body {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.faq-item:hover .staff-card__actions {
    opacity: 1;
}

.faq-item--attach {
    border: 2px dashed var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 120px;
    font-family: var(--font-body);
    padding: 1.5rem;
}

.faq-item--attach:hover {
    border-color: var(--color-gold);
    background: var(--color-bg);
    color: var(--color-text);
}

@media (max-width: 768px) {
    .info-item__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "card";
    }

    .blok-inline-item__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "card";
    }

    .info-item__image {
        max-height: 400px;
    }

    .blok-inline-item__image {
        max-height: 400px;
    }

    .info-item__card {
        padding: 2rem 1.5rem;
    }

    .blok-inline-item__card {
        padding: 2rem 1.5rem;
    }

    .info-item--image-right .info-item__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "card";
    }

    .blok-inline-item--image-right .blok-inline-item__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "card";
    }

    .info-item--size-1-2 .info-item__grid,
    .info-item--size-2-3 .info-item__grid {
        grid-template-columns: 1fr;
    }

    .blok-inline-item--size-1-2 .blok-inline-item__grid,
    .blok-inline-item--size-2-3 .blok-inline-item__grid {
        grid-template-columns: 1fr;
    }

    .info-item__title {
        font-size: 1.25rem;
    }

    .blok-inline-item__title {
        font-size: 1.25rem;
    }

    .faq-toggle {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .faq-body {
        padding: 0 1.2rem 1.2rem;
    }
}

/* --- Courses --- */
.section--courses {
    background-color: var(--color-bg-light);
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.course-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.course-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.course-card__text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.course-card__details {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-card__details li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
    padding-left: 1rem;
    position: relative;
}

.course-card__details li::before {
    content: 'â€˘';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Pricing --- */
.section--pricing {
    background: var(--color-bg);
}

.pricing__table-wrap {
    overflow-x: auto;
}

.pricing__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.pricing__table thead {
    background: var(--color-gold);
    color: var(--color-white);
}

.pricing__table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.pricing__table td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing__table tbody tr:last-child td {
    border-bottom: none;
}

.pricing__table tbody tr:hover {
    background: var(--color-bg);
}

.pricing__table td:last-child {
    font-weight: 600;
    color: var(--color-gold-dark);
    white-space: nowrap;
}

/* --- Contact --- */
.section--contact {
    background: var(--color-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact__info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact__item svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact__item div {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact__item strong {
    color: var(--color-text);
}

.contact__item a {
    color: var(--color-gold);
}

.contact__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact__social a {
    transition: opacity 0.3s;
}

.contact__social a:hover {
    opacity: 0.7;
}

.contact__map iframe {
    width: 100%;
    border-radius: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    /*background: var(--color-surface-soft);*/
    color: var(--color-text);
    padding: 3rem 0;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2rem;
}

.footer__brand,
.footer__text,
.footer__content,
.footer__links {
    flex: 1 1 0;
    min-width: 0;
}

.logo--footer .logo__text {
    color: var(--color-text);
}

.footer__brand p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.footer__text,
.footer__content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.footer__text p,
.footer__content p {
    margin: 0 0 0.7rem;
}

.footer__text p:last-child,
.footer__content p:last-child {
    margin-bottom: 0;
}

.footer__text-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.35rem 0;
}

.footer__text-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__text-contact-item:hover {
    color: var(--color-gold);
}

.footer__text-company {
    margin-top: 0.35rem;
}

.footer__text-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.55rem;
}

.footer__text-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: color 0.3s;
}

.footer__text-social-link:hover {
    color: var(--color-gold);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.footer__links a {
    color: var(--color-text-light);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--color-gold);
}

.footer__copy {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.12);
}

.footer__copy-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__copy p {
    font-size: 0.8rem;
    color: rgba(0,0,0,0.4);
    margin: 0;
}

.footer__copy a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.login-box__header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box__header .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.login-box__header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.login-box__header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.login-box .form-group {
    position: relative;
}

.login-box .form-group label {
    position: absolute;
    top: -0.55em;
    left: 0.75rem;
    background: var(--color-white);
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
    line-height: 1;
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: none;
    color: var(--color-text);
    transition: border-color 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-gold);
}

.form-helper {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.4rem;
}

.form-helper a {
    color: var(--color-gold);
}

.form-helper a:hover {
    color: var(--color-gold-dark);
}

.form-helper__preview {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 220px;
    background: var(--color-bg-light);
    position: relative;
}

.form-helper__preview img {
    display: block;
    width: 100%;
    height: auto;
}

.form-helper__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    cursor: pointer;
    line-height: 1;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.form-helper__remove:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.form-helper__remove.is-active {
    background: var(--color-error);
}

/* Hero strip rows (icon + text editor) */


.form-errors {
    background: #FFF0F0;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.form-error {
    color: var(--color-error);
    font-size: 0.85rem;
}

.login-box__footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-box__footer a {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.login-box__footer a:hover {
    color: var(--color-gold);
}

.attach-tabs {
    margin-bottom: 1rem;
}

.attach-tab {
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.attach-tab.is-active {
    background: var(--color-gold-light);
    border-color: var(--color-gold);
    color: var(--color-text);
}
.attach-panel .modal-box__footer {
    margin-top: 1rem;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.flash--success {
    background: #E8F5E9;
    color: var(--color-success);
    border: 1px solid #C8E6C9;
}

.flash--error {
    background: #FFF0F0;
    color: var(--color-error);
    border: 1px solid #FFCDD2;
}

.flash--info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

/* ========================================
   ERROR PAGE
   ======================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-page__inner {
    text-align: center;
}

.error-page__inner--card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.error-page__eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.error-page__inner h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.error-page__inner p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-page__lead {
    margin-bottom: 2rem;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.error-page__links {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.error-page__links-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.error-page__links-list {
    display: flex;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page__link {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
}

.error-page__link:hover {
    text-decoration: underline;
}

/* ========================================
   PAGE CONTENT (dynamic pages)
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    background: var(--color-bg);        
}

.page-header .breadcrumb {
    background: transparent;    
    border-bottom: 0;
}

.breadcrumb a {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb__sep {
    color: var(--color-text-light);
    margin: 0 0.4rem;
    font-size: 0.8rem;
}

.breadcrumb__current {
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 3rem 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header__layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "content";
    align-items: center;
    gap: 2rem;
}

.page-header--image-side .page-header__layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "content media";
}

.page-header--image-left .page-header__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-areas: "media content";
}

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

.page-header__content {
    grid-area: content;
    display: flex;
    flex-direction: column;
}

.page-header__breadcrumb {
    margin-bottom: 0.75rem;
}

.page-header__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold);
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0.25rem 0 0;
}

.page-header__description {
    color: var(--color-text);
    margin-top: 1rem;
}

.page-header__description p {
    margin-bottom: 0.75rem;
    color: inherit;
}

.page-header__description p:last-child {
    margin-bottom: 0;
}

.page-header__content > .admin-tools--inline {
    margin-top: 1rem;
}

.page-header__media {
    grid-area: media;
    border-radius: 16px;
    overflow: hidden;
}

.page-header__media .photo-link {
    display: block;
    height: 100%;
    cursor: zoom-in;
}

.page-header__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-header--inactive .page-header__content,
.page-header--inactive .page-header__media {
    opacity: 0.6;
}

.page-header--inactive .page-header__title {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

/* Page Body */
.page-content {    
    padding: 2rem 0;
}

/* Page Main Content */
.page-main {
    min-width: 0;
}

/* Subsections (child pages rendered as blocks) */
.page-subsection {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.page-subsection--bg-bezova {
    background-color: var(--color-bg);
    border-radius: 6px;
    padding: 2rem;
    border-top: none;
}

.page-subsection--bg-zlata {
    background-color: var(--color-gold-light);
    border-radius: 6px;
    padding: 2rem;
    border-top: none;
}

.page-subsection--bg-bila {
    background-color: var(--color-white);
    border-radius: 6px;
    padding: 2rem;
    border-top: none;
}

.page-subsection--inactive .page-subsection__layout {
    opacity: 0.6;
}

.page-subsection--inactive .page-subsection__title,
.page-subsection--inactive .page-subsection__link {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

.page-subsection__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text);    
    text-align: center;
    text-transform: uppercase;
}

.page-subsection__title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-subsection__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "content media";
    gap: 2rem;
    align-items: center;
    padding-bottom: 2rem;    
}

.page-subsection__layout--plain {
    background-color: var(--color-surface-soft);
    background-image:
        radial-gradient(ellipse 70% 70% at 0% 0%, rgba(180, 225, 240, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 20%, rgba(150, 210, 232, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(190, 230, 242, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(165, 218, 236, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(240, 250, 253, 0.6) 0%, transparent 70%);
    padding: 2rem;
    border-radius: 16px;
}

.page-subsection__layout--full {
    grid-template-columns: 1fr;
    grid-template-areas: "content";    
}

.page-subsection__layout--image-left {
    grid-template-areas: "media content";
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

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

.page-subsection__content-wrap {
    display: flex;
  flex-direction: column;
  justify-content: center;
        grid-area: content;
}

.page-subsection__content-wrap .page-subsection__title,
.page-subsection__content-wrap .page-subsection__intro {
    text-align: left;
}

.page-subsection__content-wrap .page-subsection__title-row {
    justify-content: flex-start;
}

.page-subsection__layout--full .page-subsection__content-wrap .page-subsection__title,
.page-subsection__layout--full .page-subsection__content-wrap .page-subsection__intro {
    text-align: center;
}

.page-subsection__layout--full .page-subsection__content-wrap .page-subsection__title-row {
    justify-content: center;
}

.admin-tools--subsection {
    margin-top: 0;
}

.page-subsection__link {
    color: inherit;
    text-decoration: none;
}

.page-subsection__link:hover {
    color: var(--color-gold);
}

.page-subsection__intro {    
    text-align: center;
}

.page-subsection__content {
    margin-bottom: 1.5rem;
}

.page-subsection__more {
    display: inline-block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    text-decoration: none;
}

.page-subsection__more:hover {
    text-decoration: underline;
}

.page-subsection__media {
    border-radius: 16px;
    overflow: hidden;    
    align-self: center;
    grid-area: media;
    text-align: right;
}

.page-subsection__layout--image-left .page-subsection__media {
    text-align: left;
}


@media (max-width: 900px) {
    .page-header--image-side .page-header__layout,
    .page-header--image-left .page-header__layout,
    .page-header--image-side .page-header__layout--size-1-2,
    .page-header--image-side .page-header__layout--size-2-3,
    .page-header--image-left .page-header__layout--size-2-3 {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "media";
    }

    .page-header__media {
        min-height: 240px;
    }

    .page-header__eyebrow {
        font-size: 0.85rem;
    }

    .page-header__title {
        font-size: 2rem;
    }

    .page-subsection__layout {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "media";
        padding: 2rem;
    }

    .page-subsection__content-wrap .page-subsection__title,
    .page-subsection__content-wrap .page-subsection__intro {
        text-align: center;
    }

    .page-subsection__content-wrap .page-subsection__title-row {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding: 1rem 0;
    }

    .page-header__eyebrow {
        font-size: 0.75rem;
    }

    .page-header__title {
        font-size: 1.4rem;
    }

    .page-header__media {
        min-height: 160px;
    }
}


/* Rich Text (DB content rendering) */
.rich-text {
    line-height: 1.8;
    color: var(--color-text);    
}

.rich-text h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;    
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.rich-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.rich-text p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.rich-text ul, .rich-text ol {
    margin: 1rem 0;
    padding-left: 1rem;
}

.rich-text li {
    margin-bottom: 0.1rem;
    color: var(--color-text-light);
}

.rich-text strong,
.rich-text b {
    color: inherit;
    font-weight: 700;
}

.rich-text a {
    color: var(--color-gold);
}

.rich-text blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1.5rem 1.75rem 1.5rem 3.25rem;
    background: var(--color-bg);
    border-left: 3px solid var(--color-gold);
    border-radius: 4px 12px 12px 4px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--color-gold-dark);
}

.rich-text blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 1rem;
    font-family: Georgia, serif;
    font-size: 2.75rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.55;
}

.rich-text blockquote p {
    color: inherit;
    margin-bottom: 0.5rem;
}

.rich-text blockquote p:last-child {
    margin-bottom: 0;
}

/* CKEditor content spacing */
.ck-content p {
    margin-bottom: 0.6rem;
}

.ck-content p:last-child {
    margin-bottom: 0;
}

.ck-content ul,
.ck-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.ck-content li {
    margin-bottom: 0.35rem;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin: 1.5rem 0;
}

.rich-text thead {
    background: var(--color-gold);
    color: var(--color-white);
}

.rich-text th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.rich-text td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
}

.rich-text tbody tr:last-child td {
    border-bottom: none;
}

.rich-text tbody tr:hover {
    background: var(--color-bg);
}

.rich-text td:last-child {
    font-weight: 600;
    color: var(--color-gold-dark);
}


/* =============================================
   PRICING TABS (CenĂ­k)
   ============================================= */

.pricing-tabs {
    margin-top: 2rem;
}

/* Tab Navigation */
.pricing-tabs__nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.pricing-tabs__tab {
    flex: 1;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.pricing-tabs__tab:hover {
    color: var(--color-text);
}

/* Tab Panels */
.pricing-tabs__panel {
    display: none;
    padding: 2.5rem 3rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0 0 12px 12px;
}

.pricing-tabs__panel.is-active {
    display: block;
}

/* Category Headings */
.pricing-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 2rem 0 0.5rem 0;
    color: var(--color-text);
}

.pricing-content h3:first-child {
    margin-top: 0;
}

/* Subcategory headings (h4) */
.pricing-content h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1rem 0 0.25rem 0;
    color: var(--color-gold);
}

/* Pricing Tables â€” Override rich-text defaults */
.pricing-content.rich-text table,
.pricing-content.rich-text figure.table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0 0 0.5rem 0;
    overflow: visible;
}

.pricing-content.rich-text figure.table {
    margin: 0;
}

/* thead = column header row (OĹˇetĹ™enĂ­ / cena v KÄŤ) â€” editor can add thead to any table */
.pricing-content.rich-text thead {
    background: transparent;
}

.pricing-content.rich-text thead tr {
    display: flex;
    justify-content: space-between;
    padding: 0 0 0.5rem 0;
}

.pricing-content.rich-text thead th {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    padding: 0;
    background: transparent;
    text-transform: none;
}

.pricing-content.rich-text thead tr {
    display: flex;
    justify-content: space-between;
    padding: 0 0 0.5rem 0;
}

.pricing-content.rich-text thead th {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
    padding: 0;
    background: transparent;
    text-transform: none;
}

.pricing-content.rich-text tbody tr {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.pricing-content.rich-text tbody tr:hover {
    background: transparent;
}

.pricing-content.rich-text td {
    padding: 0;
    border: none;
    border-bottom: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    background: transparent;
}

/* First column: service name + dotted leader */
.pricing-content.rich-text td:first-child {
    flex: 1;
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    font-weight: 400;
    color: var(--color-text);
}

.pricing-content.rich-text td:first-child::after {
    content: '';
    flex: 1;
    border-bottom: 2px dashed var(--color-border);
    margin: 0 0.25rem;
    min-width: 2rem;
    position: relative;
    top: -0.25em;
}

/* Last column: price */
.pricing-content.rich-text td:last-child {
    white-space: nowrap;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

/* Tab wrap: tab button + admin actions inline â€” this IS the visual tab */
.pricing-tabs__tab-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s, background 0.3s;
}

.pricing-tabs__tab-wrap:hover {
    border-color: var(--color-border);
}

.pricing-tabs__tab-wrap.is-active {
    background: var(--color-bg);
    border-color: var(--color-border);
    border-bottom-color: var(--color-bg);
    border-radius: 4px 4px 0 0;
    z-index: 1;
    margin-bottom: -1px;
}

.pricing-tabs__tab-wrap.is-active .pricing-tabs__tab {
    color: var(--color-text);
}

.pricing-tabs__tab-wrap--add {
    flex: 0 0 auto;
}

/* Admin actions next to tab */
.pricing-tabs__tab-actions {
    display: flex;
    gap: 0.15rem;
    align-items: center;
    padding-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.pricing-tabs__tab-wrap:hover .pricing-tabs__tab-actions {
    opacity: 1;
}

.pricing-tabs__tab-actions .staff-action {
    width: 24px;
    height: 24px;
    padding: 3px;
}

/* "+" add tab button */
.pricing-tabs__tab--add {
    flex: 0 0 auto;
    min-width: 2.5rem;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.pricing-tabs__tab--add:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Nav in admin mode: keep tab flex:1 inside wrap */
.pricing-tabs__nav--admin .pricing-tabs__tab {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-tabs__nav {
        flex-direction: column;
        gap: 0.25rem;
    }

    .pricing-tabs__tab {
        text-align: center;
    }

    .pricing-tabs__panel {
        padding: 1.5rem 1rem;
    }

    .pricing-content.rich-text td:first-child {
        white-space: normal;
    }
}


/* Page Children Cards */
.page-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-child-card-wrap {
    position: relative;
}

.page-child-card {
    display: block;
    background: var(--color-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.page-child-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.page-child-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.page-child-card__text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.page-child-card__more {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
}

.page-gallery h2 {
    font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
}

/* Staff section */
.staff-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.staff-section--decorated {
    background-color: var(--color-surface-soft);
    background-image:
        radial-gradient(ellipse 70% 70% at 0% 0%, rgba(180, 225, 240, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 20%, rgba(150, 210, 232, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(190, 230, 242, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(165, 218, 236, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(240, 250, 253, 0.8) 0%, transparent 70%);
}

.staff-section h2 {
    font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 5), minmax(0, 1fr));
    gap: 1.5rem;
}

.staff-grid.staff-grid--vyhody {
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
}

.staff-carousel__track.staff-carousel__track--vyhody .staff-card {
    flex: 0 0 calc((100% - (var(--items-per-row, 3) - 1) * 1.5rem) / var(--items-per-row, 3));
    min-width: 240px;
}

.staff-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0.5rem 0 1.5rem;
}

.staff-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.staff-carousel__btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.staff-carousel__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.staff-carousel__track::-webkit-scrollbar {
    display: none;
}

.staff-carousel__track .staff-card {
    flex: 0 0 calc((100% - (var(--items-per-row, 5) - 1) * 1.5rem) / var(--items-per-row, 5));
    min-width: 180px;
}

.staff-card,
.blok-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.staff-card.dragging,
.blok-card.dragging {
    opacity: 0.6;
    transform: scale(1.02);
    pointer-events: none;
}

.staff-card__photo,
.blok-card__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg);
    position: relative;
    z-index: 0;
}

.staff-card__photo img,
.blok-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blok-card--clickable .blok-card__photo img {
    transition: transform 0.35s ease;
}

.blok-card--clickable:hover .blok-card__photo img,
.blok-card--clickable:focus-within .blok-card__photo img {
    transform: scale(1.04);
}

.staff-card__body,
.blok-card__body {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.blok-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.blok-card--clickable {
    cursor: pointer;
}

.blok-card--no-description {
    border: none;
}

.blok-card--media-only .blok-card__photo,
.blok-card--image-full .blok-card__photo {
    aspect-ratio: auto;
    min-height: 220px;
    height: auto;
}

.blok-card--image-full .blok-card__photo img {
    object-fit: contain;
}

.staff-card__name,
.blok-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.35rem;    
}

.staff-card__role {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.staff-card__contact,
.blok-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.staff-card__contact a,
.blok-card__contact a {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.staff-card__perex,
.blok-card__perex {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.course__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.course__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-light);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course__price {
    font-weight: 600;
    color: var(--color-gold);
    font-size: 1.5rem;
}

.course__price span {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 1rem;
}

.staff-card__more,
.blok-card__more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    text-decoration: none;
}

.staff-card__actions,
.blok-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 99;
}

.staff-card:hover .staff-card__actions,
.blok-card:hover .blok-card__actions,
.reference-card:hover .staff-card__actions,
.pricing-card:hover .staff-card__actions,
.news-card:hover .staff-card__actions {
    opacity: 1;
}

.staff-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.staff-action:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.05);
}

.staff-action--delete:hover {
    background: #e74c3c;
}

.staff-action--remove:hover {
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
}

.staff-action--move {
    cursor: grab;
}

.staff-action--move:active {
    cursor: grabbing;
}

.staff-card__more:hover,
.blok-card__more:hover {
    text-decoration: underline;
}

.staff-card--attach,
.blok-card--attach,
.reference-card--attach,
.news-card--attach,
.gallery-card--attach,
.pricing-card.pricing-card--attach {
    border: 2px dashed var(--color-border);
    background: var(--color-bg-light);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-height: 180px;
    font-family: var(--font-body);
    padding: 1.5rem;
}

.staff-card--attach:hover,
.blok-card--attach:hover,
.reference-card--attach:hover,
.news-card--attach:hover,
.gallery-card--attach:hover,
.pricing-card.pricing-card--attach:hover {
    border-color: var(--color-gold);
    background: var(--color-bg);
    color: var(--color-text);
}

.admin-attach-card__icon {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--color-gold);
}

.admin-attach-card__text {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.page-add-section {
    padding-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--color-border);
}

.page-add-section__button {
    width: 100%;
    border-radius: 16px;
}

/* News blocks */
.page-news-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Blok section */


.blok-section h2,
.blok-carousel__header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.blok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .blok-grid.blok-grid--ratio-1-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .blok-grid.blok-grid--ratio-1-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .blok-grid.blok-grid--ratio-1-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .blok-grid.blok-grid--ratio-1-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .blok-grid.blok-grid--ratio-1-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

.blok-carousel__nav {
    display: flex;
    gap: 0.5rem;
}

.blok-carousel__nav--inline {
    justify-content: flex-end;
    margin: 0.5rem 0 1.5rem;
}

.blok-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.blok-carousel__btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.blok-carousel__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;    
}

.blok-carousel__track::-webkit-scrollbar {
    display: none;
}

.blok-carousel__track .blok-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 240px;
}

@media (min-width: 992px) {
    .blok-carousel__track.blok-carousel__track--ratio-1-1 .blok-card {
        flex: 0 0 100%;
        min-width: 0;
    }

    .blok-carousel__track.blok-carousel__track--ratio-1-2 .blok-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 0;
    }

    .blok-carousel__track.blok-carousel__track--ratio-1-3 .blok-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 0;
    }

    .blok-carousel__track.blok-carousel__track--ratio-1-4 .blok-card {
        flex: 0 0 calc(25% - 1.125rem);
        min-width: 0;
    }

    .blok-carousel__track.blok-carousel__track--ratio-1-5 .blok-card {
        flex: 0 0 calc(20% - 1.2rem);
        min-width: 0;
    }
}

.page-news-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg);
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}

.news-card__title a {
    color: var(--color-text);
}

.news-card__meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.news-card__perex {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.news-card__more {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-top: 0.25rem;
}

.news-empty {
    color: var(--color-text-light);
}

.news-detail {
    margin-bottom: 2rem;
}

.news-detail__meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.news-detail__media {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

/* ========================================
   ITEM DETAIL â€” jednoduchĂ˝ layout
   ======================================== */
.item-detail {
    margin-bottom: 2.5rem;
}

/* Hero â€” text + fotka vpravo */
.item-detail__hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.item-detail--inactive .item-detail__hero {
    opacity: 0.6;
}

.item-detail--inactive .page-header__title {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

/* Fotografie */
.item-detail__photo {
    position: relative;
    overflow: hidden;    
    border-radius: 16px;
}

.item-detail__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Info panel */
.item-detail__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.item-detail__breadcrumb {
    background: transparent;
    padding: 0 0 0.5rem 0;
    border-bottom: 0;
}

.item-detail__info--full {
    grid-column: 1 / -1;
}

/* Nadpis */
.item-detail__name {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

/* JmĂ©no poloĹľky */
.item-detail__subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Popis */
.item-detail__perex {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* Kontakty */
.item-detail__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.item-detail__contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-detail__contact-item svg {
    flex-shrink: 0;
    stroke: var(--color-gold);
}

.item-detail__contact-item:hover {
    color: var(--color-text);
}

/* Obsah pod hero */
.item-detail__content {
    position: relative;
    padding: 0;
    margin-bottom: 2.5rem;
}

/* Galerie pod detailem */
.item-detail + .page-gallery {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem 2.5rem 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem;
}

.item-detail + .page-gallery h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.item-detail + .page-gallery h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .item-detail__hero {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
    }

    .item-detail__name {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .item-detail__hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .item-detail__photo {
        min-height: 300px;
        max-height: 400px;
    }

    .item-detail__name {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .item-detail__photo {
        min-height: 250px;
        max-height: 320px;
    }

    .item-detail__name {
        font-size: 1.5rem;
    }
}

.news-detail__media img {
    width: 100%;
    display: block;
}

.news-detail__perex {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Gallery section â€” carousel layout */
.gallery-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.gallery-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gallery-carousel__header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
}

.gallery-carousel__nav {
    display: flex;
    gap: 0.5rem;
}

.gallery-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.gallery-carousel__btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.gallery-carousel__track {
    --items-per-row: 4;
    /* mezera mezi kartami — počítá s ní i šířka karty, musí se měnit tady */
    --gallery-gap: 1.5rem;
    display: flex;
    gap: var(--gallery-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 calc((100% - (var(--items-per-row) - 1) * var(--gallery-gap, 1.5rem)) / var(--items-per-row));
    min-width: 220px;
    margin: 0;
}

.gallery-card__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-border);
    margin-bottom: 0.75rem;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.05);
}

.gallery-card figcaption {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.gallery-card__more {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    text-decoration: none;
}

.gallery-card__more:hover {
    text-decoration: underline;
}

.gallery-card__caption {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.gallery-card a.photo-link {
    display: block;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .gallery-card {
        flex: 0 0 calc((100% - 2 * var(--gallery-gap, 1.5rem)) / 3);
        min-width: 200px;
    }
    .blok-carousel__track .blok-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 calc((100% - var(--gallery-gap, 1.5rem)) / 2);
        min-width: 180px;
    }
    .blok-carousel__track .blok-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 180px;
    }
}

/* StarĂ© styly pĹ™esunuty do gallery.css */

/* Page documents - zĂˇkladnĂ­ layout (detaily v gallery.css) */
.page-documents-section {
    margin-top: 2.5rem;
}

.page-documents-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.page-documents {
    display: grid;
    gap: 0.75rem;
}

.page-documents__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-light);
    position: relative;
}

.page-documents__link {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    flex: 1;
}

.page-documents__link:hover {
    text-decoration: underline;
}

/* Contact Form on page */
.contact-form-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.contact-form-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.contact-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row--media {
    grid-template-columns: minmax(0, 2fr) auto auto;
    align-items: end;
}

.form-row--media .form-group--wide {
    min-width: 0;
}

.form-row--media .form-group--compact {
    justify-self: start;
}

.form-row--media-inline {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.form-row--media-inline .form-group--wide {
    flex: 1 1 auto;
    min-width: 0;
}

.form-row--media-inline .form-group--compact {
    flex: 0 0 auto;
}

.form-row--media-inline .form-helper--before-input {
    flex: 0 0 auto;
}

.form-row--media-options {
    grid-template-columns: auto auto;
    align-items: end;
}

.form-row--page-type {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
}

.form-helper-grid--photos {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-helper-grid--photos .form-helper--file {
    margin-top: 0;
}

.form-helper-grid--photos .form-helper__preview {
    max-width: 150px;
    margin-bottom: 0;
}

.form-helper-grid--photos .form-helper__preview img {
    height: 90px;
    object-fit: contain;
}

.form-helper--before-input {
    margin-bottom: 0.5rem;
}

.form-helper--before-input .form-helper__preview {
    max-width: 150px;
    margin-bottom: 0;
}

.form-helper--before-input .form-helper__preview img {
    height: 90px;
    object-fit: contain;
}

.media-file {
    position: relative;
    min-width: 240px;
}

.media-file__field {
    position: relative;
}

.media-file__field .form-control {
    min-width: 0;
    padding-right: 2rem;
}

.media-file__field .form-helper__remove {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1;
}

.media-file__field .form-helper__remove:hover {
    background: transparent;
    color: var(--color-text);
    transform: translateY(-50%);
}

.media-file__popup {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    width: 180px;
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-light);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 30;
}

.media-file__popup img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.media-file:hover .media-file__popup,
.media-file:focus-within .media-file__popup {
    opacity: 1;
    transform: translateY(0);
}

.form-control--compact {
    width: auto;
    min-width: 10rem;
}

.form-control--textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map on page */
.map-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.map-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.map-section__fullbleed {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}

.map-section__canvas,
#mapa {
    width: 100%;
    height: 440px;
}

@media (max-width: 767px) {
    .map-section__canvas,
    #mapa {
        height: 360px;
    }
}

/* Reference Section */

.reference-grid {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 2), minmax(0, 1fr));
    gap: 1.5rem;
}

.reference-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.reference-card__quote {
    margin-bottom: 0.75rem;
}

.reference-card__icon {
    color: var(--color-gold);
    width: 28px;
    height: 22px;
}

.reference-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
    flex: 1;
    font-style: italic;
}

.reference-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 0;
}

.reference-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reference-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.reference-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.reference-card__more {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.reference-card__more:hover {
    color: var(--color-gold-dark);
}

@media (max-width: 768px) {
    .reference-grid {
        grid-template-columns: 1fr;
    }
}

.reference-section--page {
    margin-top: 2rem;
}

.reference-section--page .reference-card {
    position: relative;
}

.reference-grid--admin .reference-card .staff-card__actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

/* Section CTA */
.section__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Contact Form Box */
.section--contact-form {
    background-color: var(--color-surface-soft);
    background-image:
        radial-gradient(ellipse 70% 70% at 0% 0%, rgba(180, 225, 240, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 20%, rgba(150, 210, 232, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(190, 230, 242, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(165, 218, 236, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(240, 250, 253, 0.8) 0%, transparent 70%);
}

.contact-form-box {
    max-width: 960px;
    margin: 0 auto;
}

.contact-form-box__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-box__subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.contact-form-box__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form-box__left .form-group {
    margin-bottom: 1rem;
}

/* Floating labels */
.contact-form-box .field-float {
    position: relative;
}

.contact-form-box .field-float .form-control {
    padding-top: 1.3rem;
    padding-bottom: 0.35rem;
}

.contact-form-box .field-float label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin-bottom: 0;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--color-text-light);
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.contact-form-box .field-float .form-control:focus + label,
.contact-form-box .field-float .form-control:not(:placeholder-shown) + label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--color-gold-dark);
}

/* Textarea: label rests near the top instead of vertically centered */
.contact-form-box .field-float--textarea .form-control {
    padding-top: 1.6rem;
    min-height: 140px;
    resize: vertical;
}

.contact-form-box .field-float--textarea label {
    top: 1.15rem;
    transform: translateY(0);
}

.contact-form-box .field-float--textarea .form-control:focus + label,
.contact-form-box .field-float--textarea .form-control:not(:placeholder-shown) + label {
    top: 0.5rem;
}

/* Date & select can't reliably detect "empty" via CSS — keep the label permanently floated */
.contact-form-box .field-float--static label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--color-gold-dark);
}

.contact-form-box__right {
    display: flex;
    flex-direction: column;
}

.contact-form-box__right .form-group--full {
    margin-bottom: 1rem;
}

.contact-form-box__bottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-form-box__bottom .form-checkbox {
    flex: 1;
    font-size: 0.85rem;
}

.contact-form-box__bottom .btn--submit {
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Course card as link */
.course-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-card__more {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
}

/* Global flash messages */
.flash-messages-global {
    position: fixed;
    top: calc(var(--header-height) + 0.75rem);
    right: 1rem;
    z-index: 1600;
    width: min(460px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash-messages-global:empty {
    display: none;
}

.flash-messages-global .flash {
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   INLINE ADMIN
   ======================================== */

/* Admin floating bar (bottom) */
.admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--color-text);
    border-top: 2px solid var(--color-gold);
}

.admin-bar__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-bar__status {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.admin-bar__status strong {
    color: var(--color-white);
}

.admin-bar__link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-gold);
    transition: color 0.2s;
}

.admin-bar__link:hover {
    color: var(--color-gold-light);
}

/* Admin tools (in admin bar) */
.admin-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tools--inline {
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.admin-tools__label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-right: 0.25rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255,255,255,0.7);
}

.admin-tools--inline .admin-tool {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.admin-tools--inline .admin-tool:hover {
    background: var(--color-bg-light);
}

.admin-tool:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.admin-tool--toggle.is-inactive {
    opacity: 0.4;
    border-style: dashed;
}

.admin-tool--toggle.is-inactive:hover {
    opacity: 1;
}

.admin-tool--delete:hover {
    border-color: #FF8A80;
    color: #FF8A80;
    background: rgba(255,100,100,0.1);
}

.admin-tool.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.admin-tools--card {
    position: absolute;
    top: 12px;
    right: 12px;
    margin-top: 0;
    z-index: 2;
}

.admin-inline-container {
    position: relative;
}

.admin-inline-edit {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-border);
    color: var(--color-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.admin-inline-edit:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(255, 255, 255, 1);
}

.page-header--inactive {
    opacity: 0.6;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    ), linear-gradient(135deg, var(--color-bg) 0%, var(--color-brand-green-light) 100%);
}

/* CKEditor uses project font */
.ck-editor__editable,
.ck-content {
    font-family: var(--font-body);
}

/* CKEditor: JS Ĺ™Ă­dĂ­ vĂ˝Ĺˇku (auto-grow 96â€“320px).
   Ĺ˝ĂˇdnĂ˝ CSS max-height, aby nativnĂ­ resize handle fungoval bez omezenĂ­. */
.ck-editor__editable.ck-editor__editable_inline {
    min-height: 96px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    resize: vertical !important;
}

/* CKEditor popups (napĹ™. vloĹľenĂ­ odkazu) musĂ­ bĂ˝t nad admin modalem */
.ck.ck-balloon-panel,
.ck.ck-dropdown__panel,
.ck-body-wrapper {
    z-index: 2600 !important;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--color-white);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-box__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.modal-box__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.modal-box__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-box__close:hover {
    color: var(--color-text);
}

.modal-box__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-box__body .form-group {
    position: relative;
    margin-bottom: 1.15rem;
}

.modal-box__body .form-group label {
    position: absolute;
    top: -0.55em;
    left: 0.75rem;
    background: var(--color-white);
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
    line-height: 1;
    pointer-events: none;
}

.modal-box__footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Form checkboxes */
.form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

/* Admin feedback toast */
.admin-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 3000;
    animation: toastIn 0.3s ease-out, toastOut 0.3s 2.5s ease-in forwards;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.admin-toast--success {
    border-left: 3px solid var(--color-success);
}

.admin-toast--error {
    border-left: 3px solid var(--color-error);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .staff-carousel__track .staff-card {
        flex: 0 0 calc(25% - 1.125rem);
        min-width: 220px;
    }
}

@media (max-width: 1024px) {


    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .staff-carousel__track .staff-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 200px;
    }

    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }


    .page-header__layout {
        min-height: 0;
    }

    .page-header__title {
        font-size: 2rem;
    }


    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-carousel__track .staff-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 180px;
    }

    .staff-grid.staff-grid--vyhody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-carousel__track.staff-carousel__track--vyhody .staff-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 180px;
    }

    .courses__grid {
        grid-template-columns: 1fr;
    }

    .page-body--with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

    .page-header__title {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-box__grid {
        grid-template-columns: 1fr;
    }

    .contact-form-box__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-box__bottom .btn--submit {
        min-width: unset;
        width: 100%;
    }

    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex-wrap: nowrap;
        gap: 1.5rem;
    }

    .footer__brand,
    .footer__text,
    .footer__content,
    .footer__links {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: center;
    }

    .footer__text-contact,
    .footer__text-company,
    .footer__text-social,
    .footer__links {
        align-items: center;
        justify-content: center;
    }

    .footer__text-contact-item {
        justify-content: center;
    }

    .footer__links {
        justify-content: center;
        align-items: center;
    }

    .footer__copy-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

}

/* ========================================
   SBALENÉ MENU (hamburger) — řízeno třídou, ne breakpointem
   ========================================
   Třídu `nav-collapsed` na <html> nastavuje JS podle toho, jestli se menu
   vejde vedle loga (viz initAdaptiveNav v main.js). Díky tomu se hamburger
   objeví přesně tehdy, když je potřeba — i když si uživatel do menu přidá
   další položky. Prefix `:where(...)` schválně nepřidává specificitu, aby
   pozdější úpravy hlavičky fungovaly stejně jako dřív. */
/* === Hamburger === */
:where(html.nav-collapsed) .hamburger {
    display: flex;
}

/* === Hide desktop nav, show mobile nav === */
:where(html.nav-collapsed) .nav--desktop {
    display: none !important;
}

:where(html.nav-collapsed) .nav--mobile {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 250px;
    max-width: 85vw;
    background: var(--color-bg-light);
    z-index: 1050;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    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(10, 35, 42, 0.15);
}

/* === Nav header with close button === */
:where(html.nav-collapsed) .nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    min-height: var(--header-height);
    box-sizing: border-box;
}

:where(html.nav-collapsed) .nav__header-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
}

:where(html.nav-collapsed) .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: none;
    cursor: pointer;
    color: var(--color-text);
    transition: all 0.25s ease;
}

:where(html.nav-collapsed) .nav__close:hover,
:where(html.nav-collapsed) .nav__close:active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(47, 146, 175, 0.06);
}

/* === Nav body (scrollable area below header) === */
:where(html.nav-collapsed) .nav__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* === Nav list === */
:where(html.nav-collapsed) .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    flex: none;
    overflow-y: visible;
}

:where(html.nav-collapsed) .nav__list > li {
    border-bottom: 1px solid var(--color-border);
}

:where(html.nav-collapsed) .nav__list > li:last-child {
    border-bottom: none;
}

/* === Nav links === */
:where(html.nav-collapsed) .nav__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 1rem 1.75rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: none;
    transition: color 0.3s ease, background 0.3s ease;
}

:where(html.nav-collapsed) .nav__link:active {
    background: rgba(47, 146, 175, 0.06);
}

/* === Dropdown chevron === */
: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;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(html.nav-collapsed) .nav__arrow::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--color-gold);
    border-bottom: 1.5px solid var(--color-gold);
    transform: rotate(-45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(html.nav-collapsed) .nav__dropdown.active > .nav__link .nav__arrow::after {
    transform: rotate(45deg);
}

/* Disable hover-based submenu in mobile panel â€” click-only via .active */
: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;
}
/* Level 3 always visible when level 2 is open */
:where(html.nav-collapsed) .nav--mobile .nav__dropdown.active .nav__submenu--child {
    display: block;
    animation: none;
}

/* === Submenu (level 1) === */
:where(html.nav-collapsed) .nav__submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
    background: transparent;
    border-top: 1px solid rgba(217, 238, 244, 0.6);
}

:where(html.nav-collapsed) .nav__dropdown.active > .nav__submenu {
    display: block;
    animation: mobileSubmenuReveal 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes mobileSubmenuReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

:where(html.nav-collapsed) .nav__submenu li a,
:where(html.nav-collapsed) .nav__submenu-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem 0.75rem 2rem;
    color: var(--color-text);
    text-transform: none;
    display: block;
    transition: color 0.2s ease;
}

:where(html.nav-collapsed) .nav__submenu li a:hover,
:where(html.nav-collapsed) .nav__submenu li a:active {
    color: var(--color-gold);
    background: transparent;
}

/* === Submenu (level 2 â€” grandchildren) === */
:where(html.nav-collapsed) .nav__submenu--child {
    display: block;
    padding: 0;
    margin: 0;        
    margin-left: 1rem;
    background: transparent;
}

:where(html.nav-collapsed) .nav__submenu--child li a,
:where(html.nav-collapsed) .nav__submenu--child .nav__submenu-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.65rem 1.75rem 0.65rem 1rem;
    color: var(--color-text-light);
    text-transform: none;
    display: block;
    transition: color 0.2s ease;
    position: static;
}

:where(html.nav-collapsed) .nav__submenu--child li a::before {
    display: none;
}

:where(html.nav-collapsed) .nav__submenu--child li a:hover,
:where(html.nav-collapsed) .nav__submenu--child li a:active,
:where(html.nav-collapsed) .nav__submenu--child .nav__submenu-link:hover {
    color: var(--color-gold);
    background: transparent;
}

/* === Mobile nav footer === */
:where(html.nav-collapsed) .nav__footer {
    display: block;
    padding: 1.25rem 1.75rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

:where(html.nav-collapsed) .nav__footer-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-light), transparent);
    margin-bottom: 1.25rem;
}

:where(html.nav-collapsed) .nav__footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

:where(html.nav-collapsed) .nav__footer-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.775rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

:where(html.nav-collapsed) .nav__footer-item svg {
    flex-shrink: 0;
    stroke: var(--color-gold);
    opacity: 0.7;
}

:where(html.nav-collapsed) a.nav__footer-item:hover {
    color: var(--color-gold);
}

:where(html.nav-collapsed) .nav__footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

:where(html.nav-collapsed) .nav__footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-gold);
    transition: all 0.3s ease;
}

:where(html.nav-collapsed) .nav__footer-social-link:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

:where(html.nav-collapsed) .nav__footer-social-link svg {
    stroke: currentColor;
}

:where(html.nav-collapsed) .nav__footer-brand {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: 0.08em;
    margin: 0;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }


    .staff-carousel__track .staff-card {
        flex: 0 0 100%;
        min-width: 0;
    }

    .gallery-card {
        flex: 0 0 100%;
        min-width: 0;
    }

    .blok-carousel__track .blok-card {
        flex: 0 0 100%;
        min-width: 0;
    }

    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .pricing__table th,
    .pricing__table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .login-box {
        padding: 1.5rem;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-carousel__track .staff-card {
        flex: 0 0 80%;
        min-width: 220px;
    }

    .staff-grid.staff-grid--vyhody {
        grid-template-columns: 1fr;
    }

    .staff-carousel__track.staff-carousel__track--vyhody .staff-card {
        flex: 0 0 80%;
        min-width: 220px;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-box__header,
    .modal-box__body,
    .modal-box__footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .modal-box__body .form-row {
        grid-template-columns: 1fr;
    }

    .admin-bar__inner {
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Base hidden state â€” applied via JS before observer fires */
[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
}

/* Fade up */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

/* Fade in (no movement) */
[data-animate="fade-in"] {
    transform: none;
}

/* Slide from left */
[data-animate="slide-left"] {
    transform: translateX(-60px);
}

/* Slide from right */
[data-animate="slide-right"] {
    transform: translateX(60px);
}

/* Scale up */
[data-animate="zoom-in"] {
    transform: scale(0.9);
}

/* Revealed state â€” added by IntersectionObserver */
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Stagger delays via CSS custom property */
[data-animate].is-visible {
    transition-delay: calc(var(--stagger, 0) * 100ms);
}

.item-card--inactive {
    opacity: 0.6;
}

[data-animate].item-card--inactive.is-visible {
    opacity: 0.45;
}

.item-card--inactive .staff-card__name,
.item-card--inactive .blok-card__name {
    text-decoration: line-through;
    text-decoration-thickness: from-font;
}

/* Prefers reduced motion â€” respect user setting */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================
   REDESIGN 2026 — nové homepage sekce
   (Hero, Pro koho, Ceník, Důvody, Bonusy/Garance, Bicom, O mně/Reference)
   ======================================== */

/* --- Shared: section title + ornamental divider --- */
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.75rem;
}

.section-heading__title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    color: var(--color-gold-dark);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.9rem auto;
    color: var(--color-gold);
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--color-border);
}

.section-divider svg {
    flex: none;
}

.section-heading__lead {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.redesign-section {
    padding: 4.5rem 0;
}

.redesign-section--tint {
    background: var(--color-bg);
}

/* --- Hero (navrh_01): fotka na pozadí celé sekce, header nad ní průhledný --- */
body.has-overlay-header {
    padding-top: 0;
}

.header--overlay {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.header--overlay.is-scrolled {
    background: var(--color-white);
    border-bottom-color: var(--color-border);
}

.header__cta {
    margin-left: 1.5rem;
    white-space: nowrap;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: var(--color-bg-light);
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.45) 22%,
        rgba(255, 255, 255, 0.16) 42%,
        rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 3rem;
}


@media (max-width: 600px) {
    .header__cta {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero__photo {
        object-position: 70% center;
    }

    .hero::after {
        background: rgba(255, 255, 255, 0.82);
    }

}


/* --- Pro koho (navrh_02): topic list + quote box uvnitř blok-card --- */
.blok-card .topic-list {
    list-style: none;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blok-card .topic-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
}

.blok-card .topic-list li::before {
    content: '';
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-gold-light);
}

.blok-card .quote-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-gold-dark);
    text-align: center;
    box-shadow: var(--shadow-card);
    margin-top: 1.25rem;
}

.blok-grid--ratio-1-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blok-grid--ratio-1-2 .blok-card {
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.blok-grid--ratio-1-2 .blok-card__photo {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blok-grid--ratio-1-2 .blok-card__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .blok-grid--ratio-1-2 {
        grid-template-columns: 1fr;
    }
}

/* Card background — white/no color by default, colored only once explicitly chosen when editing the prvek */
.blok-card--bg-modra {
    background: var(--color-bg) !important;
}

.blok-card--bg-seda {
    background: var(--color-neutral-bg) !important;
}

.blok-card--bg-bila {
    background: var(--color-white) !important;
    border: 1px solid var(--color-border) !important;
}

.blok-card--bg-ruzova {
    background: var(--color-accent-2-bg) !important;
}

.blok-card--bg-ruzova .quote-box {
    color: var(--color-accent-2-dark);
}

.blok-card--bg-ruzova .topic-list li::before {
    background: var(--color-accent-2-light);
}

.blok-card--bg-ruzova .blok-card__name {
    color: var(--color-accent-2-dark);
}

/* Card background — generic, reusable on any card (reference, pricing…). White/no color by default, colored only once explicitly chosen when editing the prvek */
.card-bg-modra {
    background: var(--color-bg) !important;
}

.card-bg-seda {
    background: var(--color-neutral-bg) !important;
}

.card-bg-bila {
    background: var(--color-white) !important;
    border: 1px solid var(--color-border) !important;
}

.card-bg-ruzova {
    background: var(--color-accent-2-bg) !important;
}

.card-bg-ruzova .quote-box {
    color: var(--color-accent-2-dark);
}

/* --- Ceník / Harmonizační cesta (navrh_03) --- */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(var(--items-per-row, 3), minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card__badge {
    display: inline-flex;
    align-self: flex-start;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.pricing-card__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-gold-dark);
    margin-bottom: 0.5rem;
}

.pricing-card__duration {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.pricing-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.pricing-card__features li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: var(--color-gold);
}

.pricing-card__note {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-card__price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-accent-2-dark);
    text-align: center;
    margin-bottom: 1.25rem;
}

.pricing-card .btn {
    width: 100%;
}

@media (max-width: 992px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* --- Proč vznikají potíže / Proč lidé přichází / Co nabízím (navrh_04) --- */
.reasons-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reasons-intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.reasons-intro__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.reasons-intro__list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.reasons-intro__list li::before {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: var(--color-gold);
}

.reasons-intro__photo img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    width: 100%;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 0.9fr;
    gap: 1.75rem;
}

.reasons-column {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
}

.reasons-column h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.reasons-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.reasons-column li {
    font-size: 0.88rem;
    line-height: 1.4;
    padding-left: 1rem;
    position: relative;
}

.reasons-column li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.reasons-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.reasons-sidebar h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.reasons-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.reasons-sidebar li {
    padding-left: 1rem;
    position: relative;
}

.reasons-sidebar li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

@media (max-width: 992px) {
    .reasons-intro {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Bonusy (navrh_05) --- */
.blok-grid--ratio-1-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.blok-grid--ratio-1-5 .blok-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
}

.blok-grid--ratio-1-5 .blok-card__photo {
    width: 64px;
    height: 64px;
    aspect-ratio: 1/1;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
    padding: 16px;
}

.blok-grid--ratio-1-5 .blok-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blok-grid--ratio-1-5 .blok-card__name {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.blok-grid--ratio-1-5 .blok-card__perex {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

@media (max-width: 992px) {
    .blok-grid--ratio-1-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .blok-grid--ratio-1-5 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Garance péče (navrh_05) --- */
.guarantee-box {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 2.25rem 2rem;
}

.guarantee-box h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.guarantee-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-width: 640px;
    margin: 0 auto;
}

.guarantee-box li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.5;
}

.guarantee-box li::before {
    content: '✔';
    flex: none;
    color: var(--color-gold);
    font-weight: 700;
    margin-top: 0.1rem;
}

/* --- Bicom terapie (navrh_06) --- */
.bicom-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.bicom-columns > div {
    border: 2px dashed var(--color-gold-light);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
}

.bicom-columns h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.bicom-columns ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bicom-columns li {
    padding-left: 1.1rem;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.4;
}

.bicom-columns li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .bicom-columns {
        grid-template-columns: 1fr;
    }
}

.blok-grid--ratio-1-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.blok-grid--ratio-1-4 .blok-card {
    text-align: center;
    position: relative;
    padding-top: 2.5rem;
}

.blok-grid--ratio-1-4 .blok-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.blok-grid--ratio-1-4 .blok-card__photo {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
    .blok-grid--ratio-1-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blok-grid--ratio-1-4 {
        grid-template-columns: 1fr;
    }
}

/* --- O mně + Moje filozofie (navrh_07) --- */
.bio-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.bio-section__photo img {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.bio-section__philosophy {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
}

.bio-section__philosophy h3 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.bio-section__philosophy p + p {
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .bio-section {
        grid-template-columns: 1fr;
    }

    .bio-section__photo img {
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 1/1;
    }
}

/* ========================================
   MŠ VE SVAHU — motiv webu
   Doladění převzatých komponent na vizuál školky.
   ======================================== */

body {
    background-color: var(--color-white);
}

/* line-height s rezervou, aby se neořezávaly háčky a kroužky (Ů, Ř, Č). */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-brand-blue-dark);
    letter-spacing: 0;
}

/* --- Tlačítka --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.btn--primary {
    background-color: var(--color-brand-coral);
    border-color: var(--color-brand-coral);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-brand-coral-dark);
    border-color: var(--color-brand-coral-dark);
    color: var(--color-white);
}

.btn--outline {
    color: var(--color-brand-green-dark);
    border-color: var(--color-brand-green);
}

.btn--outline:hover {
    background-color: var(--color-brand-green);
    border-color: var(--color-brand-green);
    color: var(--color-white);
}

/* ========================================
   HLAVIČKA
   ======================================== */
.header {
    background: var(--color-white);
    border-bottom: none;
}

.header.is-scrolled {
    box-shadow: 0 4px 18px rgba(110, 144, 64, 0.10);
}

/* Hlavička zůstává v šířce obsahu (--max-width). Široké je záměrně jen hero. */
.header__inner {
    padding: 0.35rem 1.25rem;
    gap: 1.5rem;
}

/* flex kvuli tomu, aby vyska .logo odpovidala presne vysce obrazku
   (jinak inline-block prida baseline mezeru a hlavicka meni vysku po scrollu) */
.logo {
    padding: 0;
    display: flex;
    align-items: center;
}

.logo__img {
    height: 86px;
}

.nav__list {
    gap: 0.25rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-brand-blue);
    line-height: 1.5;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-pill);
}

.nav__link:hover {
    color: var(--color-brand-coral);
    background: var(--color-surface-soft);
}

.nav__link--disabled:hover {
    background: transparent;
    color: var(--color-brand-blue);
}

.nav__submenu {
    border-color: var(--color-border);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(110, 144, 64, 0.14);
}

.nav__submenu li a,
.nav__submenu-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: none;
    color: var(--color-brand-blue);
}

.nav__submenu li a:hover {
    background: var(--color-surface-soft);
    color: var(--color-brand-coral);
}

/* Tlačítko sbaleného menu: kulaté jako ostatní prvky webu, čárky v barvách loga */
.hamburger {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-surface-soft);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hamburger:hover,
.hamburger:focus-visible {
    background: var(--color-brand-green-light);
}

.hamburger:active {
    transform: scale(0.94);
}

.hamburger span {
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: var(--color-brand-blue);
}

.hamburger span:nth-child(2) {
    background: var(--color-brand-green);
}

.hamburger span:nth-child(3) {
    background: var(--color-brand-coral);
}

/* ========================================
   HERO — fotka + zelený oblouk z loga
   ======================================== */
/* Hero má pevný poměr 2:1 daný obrázkem (fotka i oblouk jsou v jednom souboru).
   Nad 1920 px se dál neroztahuje, jinak by se fotka jen zvětšovala doztracena. */
.hero {
    display: block;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    height: auto;
    min-height: 0;
    line-height: normal;
    background: var(--color-white);
}

/* Původní ztmavovací přechod přes fotku tu nechceme. */
.hero::after {
    display: none;
}

.hero__photo {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
    z-index: 0;
}

/* Na mobilu by pás 2:1 byl moc nízký — necháme ho vyšší a ořízneme po stranách.
   Ořez po stranách je bezpečný, bílá plocha nad obloukem sahá až k hornímu okraji. */
@media (max-width: 700px) {
    .hero__photo {
        height: 62vw;
        min-height: 240px;
        object-fit: cover;
        object-position: center top;
    }
}

/* Text hera (pokud ho škola vyplní) leží přes spodní část fotky. */
.hero .container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7%;
    top: auto;
    z-index: 3;
    display: block;
    height: auto;
    padding: 0 1rem;
}


/* Tlačítko pro úpravu úvodního bloku sedí v pravém dolním rohu hera —
   nahoře by ho překryla hlavička, protože hero se pod ni vysouvá. */


/* Odsazení a podklad hlavičky titulní strany řeší motivy.css. */
.page-header--homepage .page-header__eyebrow {
    display: none;
}

/* ========================================
   KACHLE TŘÍD NA TITULNÍ STRANĚ
   ======================================== */
.page-subsection__layout--plain {
    background-color: transparent;
}

.blok-card {
    border-radius: var(--radius-card);
}

/* Kachle tříd jsou samotné ilustrace — bez rámečku a podkladu.
   Selektory jsou zdvojené kvůli přebití pravidel pro .blok-grid--ratio-1-2. */
.blok-card--image-full,
.blok-grid--ratio-1-2 .blok-card--image-full {
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
    padding: 0;
}

.blok-card--image-full .blok-card__photo,
.blok-grid--ratio-1-2 .blok-card--image-full .blok-card__photo {
    background: transparent;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 0;
    margin-bottom: 0.5rem;
}

.blok-card--image-full .blok-card__photo img,
.blok-grid--ratio-1-2 .blok-card--image-full .blok-card__photo img {
    width: auto;
    max-width: 100%;
    max-height: 360px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.blok-card--image-full:hover .blok-card__photo img {
    transform: scale(1.04);
}

.blok-card--image-full .blok-card__body,
.blok-grid--ratio-1-2 .blok-card--image-full .blok-card__body {
    text-align: center;
    padding: 0.25rem 0 0;
}

.blok-card__name {
    font-family: var(--font-heading);
    color: var(--color-brand-blue-dark);
}

.blok-card--image-full .blok-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.blok-grid--ratio-1-2 {
    max-width: 960px;
    margin: 0 auto;
    gap: 2.5rem;
}

/* ========================================
   OBSAHOVÉ SEKCE
   ======================================== */
.section__title,
.page-header__title,
.page-subsection__title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-brand-blue-dark);
}

.page-header {
    background: linear-gradient(180deg, var(--color-surface-soft) 0%, var(--color-white) 100%);
}

.rich-text a,
.page-content a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text a:hover,
.page-content a:hover {
    color: var(--color-brand-coral);
}

.info-item__card,
.blok-inline-item__card {
    border-radius: var(--radius-card);
}

/* ========================================
   KONTAKTNÍ FORMULÁŘ
   ======================================== */
.section--contact-form {
    background-color: var(--color-surface-soft);
}

.contact-form-box {
    border-radius: var(--radius-card);
}

.contact-form-box__title {
    font-family: var(--font-heading);
    text-transform: none;
}

/* ========================================
   PATIČKA — korálový pás z loga
   ======================================== */
.footer {
    background: var(--color-brand-coral);
    color: var(--color-white);
    padding: 3.25rem 0 2rem;
}

.footer__brand p,
.footer__text,
.footer__content,
.footer__text-contact-item,
.footer__text-social-link,
.footer__links a {
    color: rgba(255, 255, 255, 0.92);
}

.footer__text-contact-item:hover,
.footer__text-social-link:hover,
.footer__links a:hover {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__links a {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Logo v patičce je barevné — na korálovém pásu dostane bílý podklad. */
.logo--footer {
    display: inline-flex;
    padding: 0.6rem 0.9rem;
    background: var(--color-white);
    border-radius: 16px;
}

.logo__img--footer {
    height: 62px;
}

.footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.footer__copy p {
    color: rgba(255, 255, 255, 0.78);
}

.footer__copy a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ========================================
   MOBILNÍ MENU
   ======================================== */
.nav--mobile .nav__footer-item,
.nav--mobile .nav__footer-brand {
    color: var(--color-text);
}

.nav--mobile .nav__footer-social-link {
    color: var(--color-brand-blue);
}

@media (max-width: 1024px) {
    .logo__img {
        height: 64px;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 92px;
    }

    .logo__img {
        height: 56px;
    }
}

/* ========================================
   POSUN HERA POD HLAVIČKU (titulní strana)
   ========================================
   Nahoře v obrázku je vysoký bílý klín — oblouk padá u levého okraje až na
   svoji spodní hranu. Hlavičku proto necháme nahoře průhlednou a hero pod ni
   vysuneme; bílou dodá sám obrázek a stránka se o ten kus zkrátí.

   Kolik lze vysunout, určuje lísteček vpravo nahoře (zabírá 90–97,5 % šířky
   hera a začíná 48 px pod jeho horní hranou) — nesmí zasáhnout do menu.
   Pozor: ta hodnota 48 px platí pro současný uvodni-fotka.jpg. Když se obrázek
   vymění a motiv se posune, je potřeba posun hera znovu přeměřit.
   Menu je v 1280 px, hero až v 1920 px, takže zhruba od 1700 px se rozejdou
   a hero může jít nahoru celé. Pod tím jen o kousek. */
@media (min-width: 1100px) {
    body.is-homepage .header:not(.is-scrolled) {
        background: transparent;
        box-shadow: none;
    }

    body.is-homepage .hero {
        margin-top: -30px;
    }
}

@media (min-width: 1700px) {
    body.is-homepage .hero {
        margin-top: calc(-1 * var(--header-height));
    }
}

/* ========================================
   VĚTŠÍ LOGO NA TITULNÍ STRANĚ
   ========================================
   V návrhu je logo nahoře výrazně větší a sedí v bílém klínu nad obloukem.
   Po odscrollování a na ostatních stránkách zůstává malé, aby se vešlo do lišty.

   Obrázek je proto polohovaný absolutně a `.logo` si drží původní výšku —
   kdyby hlavička povyrostla, sjelo by menu níž a naráželo by do lístečku
   vpravo nahoře. Velikost je omezená lístky vlevo na oblouku — 170 px se nad ně
   vejde v celém rozsahu od 1100 px výš. */
@media (min-width: 1100px) {
    /* Když by se vedle velkého loga nevešlo menu, logo se zmenší na to, co
       zbývá (`--logo-fit-height` z initAdaptiveNav v main.js), a menu se
       nemusí sbalit. */
    body.is-homepage .header:not(.is-scrolled) .logo {
        --logo-hero-fit: min(var(--logo-hero-height), var(--logo-fit-height, 100vh));
        position: relative;
        width: calc(var(--logo-hero-fit) * 560 / 473);
        height: 86px;
    }

    body.is-homepage .header:not(.is-scrolled) .logo__img {
        position: absolute;
        top: 0;
        left: 0;
        height: var(--logo-hero-fit);
    }

    /* Menu zůstává svisle vycentrované v hlavičce stejně jako na podstránkách.
       K oblouku a lístečku v obrázku pod ním zbývá aspoň 30 px (měřeno
       v šířkách 1100, 1280 a 1700 px s obrázkem uvodni-fotka.jpg). */
}

.logo__img {
    transition: height 0.25s ease;
}

/* ========================================
   LOGO — plynulá velikost, nikdy deformace
   ========================================
   Logo je v hlavičce flex-položka. Dřív mělo napevno danou výšku a mohlo se
   smrštit na šířku (menu vedle něj přetlačilo), takže se deformovalo.
   Teď se nesmršťuje vůbec (`flex: 0 0 auto`) a výška jde plynule podle šířky
   okna — velké, dokud je na něj místo, pak menší, ale vždy se zachovaným
   poměrem stran. `object-fit: contain` je poslední pojistka.

   Když je menu dlouhé, logo mu navíc ustoupí: initAdaptiveNav (main.js)
   spočítá, kolik místa vedle menu zbývá, a pošle sem `--logo-fit-height`.
   Hamburger přijde na řadu, až když se nevejde ani logo v nejmenší velikosti
   (`--logo-min-height`). `--logo-hero-height` je velké logo na titulce,
   které ustupuje stejně. */
:root {
    --logo-min-height: 56px;
    --logo-hero-height: 170px;
    --logo-height: clamp(var(--logo-min-height), 6.4vw, 86px);
}

.header__inner .logo {
    flex: 0 0 auto;
}

.header__inner .logo__img {
    height: min(var(--logo-height), var(--logo-fit-height, 100vh));
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
    aspect-ratio: 560 / 473;
}

/* Měření šířky menu (viz initAdaptiveNav v main.js) — desktopové menu se na
   okamžik vyjme z toku a zobrazí v přirozené šířce, aby šlo změřit, jestli se
   vedle loga vejde. Uživatel nic nevidí. */
html.nav-measuring .nav--desktop {
    display: flex !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Bez JS se menu nemá jak změřit ani sbalit (hamburger by nešel otevřít),
   proto ho aspoň necháme zalomit do více řádků, ať nepřeteče z hlavičky. */
html.no-js .nav--desktop .nav__list {
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Menší text v horní liště nesmí zmenšit i vysunovací panel — ten má prsty
   místo myši, takže si drží svou velikost. */
:where(html.nav-collapsed) .nav__link {
    font-size: 1rem;
}


/* ============================================================
   ADMINISTRACE A KARTY — převzato ze sjkrnov / profipage (2026-09-21)
   ============================================================ */

/* Přihlášený admin: „Přidat stránku“ jako kulaté plus před první položkou menu */
.nav__admin-add { display: flex; align-items: center; margin-right: 0.35rem; }

.nav__add-page {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px dashed var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav__add-page:hover {
    border-color: var(--color-gold);
    border-style: solid;
    color: var(--color-gold);
    background: var(--color-bg);
}

/* Ohraničení karty — pole „Ohraničení karty“ u prvku (u stránky, když se
   zobrazuje jako karta). Hodnota platí stejně při jakémkoli rozložení,
   proto !important přes .blok-card--bg-bila i hover stav. */
.card-border-zadne        { --card-border: transparent; }
.card-border-seda         { --card-border: var(--color-border); }
.card-border-svetle-modra { --card-border: var(--color-gold-light); }
.card-border-modra        { --card-border: var(--color-gold); }
.card-border-zelena       { --card-border: var(--color-brand-green); }
.card-border-koralova     { --card-border: var(--color-accent-2); }

[class*="card-border-"],
[class*="card-border-"]:hover {
    border-style: solid !important;
    border-color: var(--card-border) !important;
}

/* barevné ohraničení má být vidět — šedé (výchozí) zůstává tenké jako dřív */
[class*="card-border-"]:not(.card-border-seda):not(.card-border-zadne) {
    border-width: 2px;
}

/* 5 vedle sebe má v základu border: none — bez toho by šířka čáry
   spadla na výchozí 3 px */
.blok-grid--ratio-1-5 .blok-card[class*="card-border-"]:not(.blok-card--bg-bila),
.blok-carousel__track--ratio-1-5 .blok-card[class*="card-border-"]:not(.blok-card--bg-bila) {
    border-width: 2px;
}

/* Ikona karty a „vlastní číslo“ (pořadí) — číslo je kulaté, ať se od ikony liší.
   Barvy z loga se střídají: modrá – zelená – korálová. */
.blok-card__icon,
.blok-card__number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 1rem 1rem 0;
    background: var(--color-gold-light);
    color: var(--color-gold-dark);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.blok-card__icon { border-radius: 15px; }

.blok-card__icon svg { width: 26px; height: 26px; }

.blok-card__number {
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.blok-card--badge:nth-child(3n+2) .blok-card__icon,
.blok-card--badge:nth-child(3n+2) .blok-card__number {
    background: var(--color-brand-green-light);
    color: var(--color-brand-green-dark);
}

.blok-card--badge:nth-child(3n) .blok-card__icon,
.blok-card--badge:nth-child(3n) .blok-card__number {
    background: var(--color-accent-2-light);
    color: var(--color-accent-2-dark);
}

.blok-card:hover .blok-card__icon,
.blok-card:hover .blok-card__number {
    transform: scale(1.06);
}

.blok-grid--ratio-1-5 .blok-card__icon,
.blok-grid--ratio-1-5 .blok-card__number {
    margin: 0 auto 0.5rem;
}

/* Všechna tlačítka „Přidat …“ stejným písmem — <button> jinak nedědí
   písmo a použije systémové (silnější „+“ i text) */
.admin-attach-item,
.admin-attach-item .admin-attach-card__icon,
.admin-attach-item .admin-attach-card__text {
    font-family: var(--font-body);
}

.admin-attach-item .admin-attach-card__icon { font-weight: 400; }
.admin-attach-item .admin-attach-card__text { font-weight: 600; }

/* Prvky ze stránky | Podstránky ze stránky | Počet převzatých prvků */
.form-row--zdroj {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
}

/* počet bez zvoleného zdroje nemá smysl — pole zůstává vidět, ale ztlumené */
.form-row--zdroj .form-control:disabled {
    background: var(--color-bg);
    color: var(--color-text-light);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-box__body .form-row--zdroj {
        grid-template-columns: 1fr;
    }
}

/* Karusely — šipky jen když se prvky nevejdou (main.js, syncCarouselNav),
   na dotyk se karty přichytávají */
.blok-carousel__nav[hidden],
.staff-carousel__nav[hidden] {
    display: none;
}

.blok-carousel__track.is-scrollable,
.staff-carousel__track.is-scrollable {
    scroll-snap-type: x mandatory;
}

.blok-carousel__track.is-scrollable > *,
.staff-carousel__track.is-scrollable > * {
    scroll-snap-align: start;
}

/* Ceníkové karty v karuselu */
.pricing-cards.staff-carousel__track--pricing {
    display: flex;
    max-width: none;
    margin: 0;
    gap: 2rem;
}

.staff-carousel__track--pricing .pricing-card {
    flex: 0 0 calc((100% - (var(--items-per-row, 3) - 1) * 2rem) / var(--items-per-row, 3));
    min-width: 240px;
}

@media (max-width: 768px) {
    .staff-carousel__track--personal .staff-card,
    .staff-carousel__track--pricing .pricing-card {
        flex: 0 0 100%;
        min-width: 0;
        scroll-snap-stop: always;
    }
}


/* ============================================================
   DLAŽDICE TŘÍD — vlastní prvky titulní strany (.blok-section--tridy)
   Bez rámečku, bez pozadí a bez „Více zde“; kliká se na celou dlaždici
   (odkaz prvku, jinak jeho detail). Při najetí se obrázek rozhoupe.
   ============================================================ */
.blok-section--tridy .blok-card,
.blok-section--tridy .blok-card:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none;
    transform: none;
    overflow: visible;
    padding: 0;
}

.blok-section--tridy .blok-card__photo {
    background: transparent;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 0;
    margin-bottom: 0.5rem;
}

.blok-section--tridy .blok-card__photo img {
    width: auto;
    max-width: 100%;
    max-height: 360px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transform-origin: 50% 85%;
    transition: transform 0.4s ease;
}

.blok-section--tridy .blok-card__body {
    text-align: center;
    padding: 0.25rem 0 0;
}

.blok-section--tridy .blok-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.25s ease;
}

/* návštěvník „Více zde“ nevidí vůbec (šablona), přihlášenému zůstává malý odkaz na detail */
.blok-section--tridy .blok-card__more {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
}

/* Hover: obrázek se rozhoupe ze strany na stranu a zůstane lehce zvětšený */
@keyframes tridaHoupani {
    0%   { transform: rotate(0deg) scale(1); }
    20%  { transform: rotate(-6deg) scale(1.04); }
    45%  { transform: rotate(5deg) scale(1.06); }
    70%  { transform: rotate(-3deg) scale(1.06); }
    100% { transform: rotate(0deg) scale(1.06); }
}

.blok-section--tridy .blok-card:hover .blok-card__photo img,
.blok-section--tridy .blok-card:focus-within .blok-card__photo img {
    animation: tridaHoupani 0.9s ease-in-out forwards;
}

.blok-section--tridy .blok-card--clickable:hover .blok-card__name,
.blok-section--tridy .blok-card--clickable:focus-within .blok-card__name {
    color: var(--color-accent-2-dark);
}

.blok-section--tridy .blok-card__overlay-link:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 6px;
    border-radius: var(--radius-card);
}

@media (prefers-reduced-motion: reduce) {
    .blok-section--tridy .blok-card:hover .blok-card__photo img,
    .blok-section--tridy .blok-card:focus-within .blok-card__photo img {
        animation: none;
        transform: scale(1.04);
    }
}
