
/* Zvýraznění vybrané pobočky v kontaktech */
.pobocka-card-vybrana {
    box-shadow: 0 0 0 4px #ff9800, 0 2px 8px rgba(0,0,0,0.15);
    border-width: 3px !important;
    z-index: 2;
    position: relative;
    background: #fffbe7;
}
body {
    margin: 0;
    padding: 0;
}

/* Nadpisy modulů */
.modul-nadpis {
    font-family: 'Barlow', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0px;
    color: #2C2A3F;
    text-align: left;
    opacity: 1;
    margin: 0 0 30px 0;
}

@media (max-width: 992px) {
    .modul-nadpis {
        font-size: 28px;
        line-height: 34px;
        margin: 0 0 20px 0;
    }
}

/* Tlačítko Archiv */
.btn-archiv {
    display: inline-block;
    width: 192px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid #2C2A3F;
    border-radius: 8px;
    opacity: 1;
    font-family: 'Barlow', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #2C2A3F;
    text-decoration: none;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-archiv:hover {
    background-color: #2C2A3F;
    color: #FFFFFF;
    text-decoration: none;
}

/* Hlavička — Figma DS (aktivní šířka) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(45, 47, 67, 0.08);
}
.header .container,
.header__inner {
    max-width: 1140px;
    margin: 0 auto;
    height: 100%;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
}
@media (min-width: 1400px) {
    .header .container,
    .header__inner {
        max-width: 1320px;
    }
}
.header__brand {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    height: 100%;
    min-width: 0;
}
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 1;
    min-width: 0;
}
.logo {
    height: 42px;
    width: auto;
    max-width: min(280px, 42vw);
    object-fit: contain;
    object-position: left center;
}
.header__strediska-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #2d2f43;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease;
}
.header__strediska-toggle:hover,
.header__strediska-toggle:focus-visible {
    background: #f0f0f0;
    outline: none;
}
.header__strediska-toggle .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
    transition: transform .25s ease;
}
.header__strediska-toggle[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(180deg);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header__search {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    width: min(360px, 36vw);
    min-width: 200px;
    height: 40px;
}
.header__search-input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: #2d2f43;
    outline: none;
    min-width: 0;
}
.header__search-input::placeholder {
    color: #6c6a7a;
}
.header__search-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #2d2f43;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.header__search-btn .material-symbols-outlined {
    font-size: 22px;
}

.header__user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d2f43;
    text-decoration: none;
}
.header__user:hover {
    background: #f0f0f0;
    color: #2d2f43;
}
.header__user .material-symbols-outlined {
    font-size: 26px;
}

.hamburger {
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    height: 3px;
    background-color: #2d2f43;
    border-radius: 2px;
}

.header-spacer {
    height: 72px;
}

@media (max-width: 767.98px) {
    .header__search {
        display: none;
    }
    .logo {
        height: 36px;
    }
}

/* Menu - skryté jako výchozí (vpravo = hamburger, vlevo = střediska) */
.menu {
    position: fixed;
    top: 72px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 72px);
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease, left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.menu.show {
    right: calc(50% - 570px); /* Zarovnání k pravému okraji containeru */
}

@media (min-width: 1400px) {
    .menu.show {
        right: calc(50% - 660px); /* Zarovnání pro container-xl */
    }
}

@media (max-width: 1200px) {
    .menu.show {
        right: 0; /* Na menších obrazovkách k pravému okraji */
    }
}

/* Menu středisek — zrcadlo hamburgeru, vysouvá se zleva */
.menu--strediska {
    right: auto;
    left: -300px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.menu--strediska.show {
    right: auto;
    left: calc(50% - 570px);
}
@media (min-width: 1400px) {
    .menu--strediska.show {
        left: calc(50% - 660px);
    }
}
@media (max-width: 1200px) {
    .menu--strediska.show {
        left: 0;
    }
}
.menu--strediska .menu-stredisko-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.menu--strediska .menu-stredisko-logo {
    flex: 0 0 auto;
    width: 22px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.menu--strediska .menu-stredisko-nazev {
    flex: 1 1 auto;
    line-height: 1.25;
}
.menu--strediska a.is-current {
    color: #0089b6;
    font-weight: 700;
    background: rgba(0, 137, 182, 0.12);
    border-radius: 6px;
    padding: 6px 10px;
    margin: -6px -10px;
}
.menu--strediska a.is-current .menu-stredisko-nazev {
    font-weight: 700;
}
/* DDM (0) → středisko (1) → podstředisko (2) */
.menu--strediska li.is-level-0 .menu-stredisko-link {
    font-weight: 600;
}
.menu--strediska li.is-level-1 {
    padding-left: 14px;
}
.menu--strediska li.is-level-2 {
    padding-left: 32px;
}
.menu--strediska li.is-level-2 .menu-stredisko-link {
    font-size: 15px;
    font-weight: 400;
    color: #4a4c5c;
}
.menu--strediska li.is-no-logo .menu-stredisko-link {
    padding-left: 2px;
}

.menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.menu ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

/* Banner / hero — aktivní šířka stránky (container), bez šedého pozadí */
.banner-wrap {
    margin-top: 72px;
    padding: 0;
    background: transparent;
}
.banner-wrap .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}
@media (min-width: 1400px) {
    .banner-wrap .container {
        max-width: 1320px;
    }
}
.hero-banner {
    --hero-bg: #2C2A3F;
    --hero-cta: #0089b6;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
    min-height: 280px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3d6d9;
}
.hero-banner__copy {
    background: var(--hero-bg);
    color: #fff;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
}
.hero-banner__title {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(1.55rem, 2.4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff;
}
.hero-banner__lead {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.15vw, 1.05rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}
.hero-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.5rem;
    max-width: 16rem;
}
.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hero-banner__btn--primary {
    background: var(--hero-cta);
    border: 2px solid var(--hero-cta);
    color: #fff;
}
.hero-banner__btn--primary:hover {
    filter: brightness(1.08);
    color: #fff;
}
.hero-banner__btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}
.hero-banner__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.hero-banner__media {
    position: relative;
    min-height: 220px;
    background: #f3d6d9;
}
.hero-banner__media--empty {
    background: linear-gradient(135deg, #f6dde0 0%, #e8c4c9 100%);
}
.hero-banner__placeholder {
    position: absolute;
    inset: 0;
}
.hero-banner__img,
.hero-banner__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767.98px) {
    .hero-banner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-banner__media {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    .hero-banner__actions {
        max-width: none;
    }
}

@media (min-width: 768px) {
    .hero-banner {
        min-height: 320px;
    }
}

@media (min-width: 1200px) {
    .hero-banner {
        min-height: 380px;
    }
}

/* legacy .banner (kdyby někde zbyl) */
.banner {
    margin-top: 92px;
    width: 100%;
    height: 150px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Obsah stránky — těsně pod bannerem / sekcemi */
.content {
    padding: 0;
}

/* Stejná vnější šířka jako box kontaktu / patičky (bez bočního gutteru Bootstrapu) */
.content .container:not(.kotak-kontakt__inner) {
    padding-left: 0;
    padding-right: 0;
}

/* Na úzkém displeji malý okraj, ať text nesedí na hraně viewportu */
@media (max-width: 575.98px) {
    .content .container:not(.kotak-kontakt__inner),
    .banner-wrap .container,
    .header__inner {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Oprava výšky Swiper wrapperu */
.swiper-wrapper {
    height: auto !important;
}
