/* ── MOA Custom Overrides ──────────────────── */

/* Globální font — Aleo přes celý projekt */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Hide custom scrollbar (defined in MOA.css) */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

/* Fix map-info visibility under map (was hidden by overflow:hidden on map-wrap) */
.hp-map .map-info {
    position: relative;
    z-index: 1;
    padding: 15px 0;
}

/* Map section — Figma: 987 × 715 px, mapa na střed, nadpis vlevo */
.hp-map .map-wrap.map-moa {
    width: 987px;
    height: 715px;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}
.hp-map .map-wrap.map-moa svg {
    width: 987px;
    height: auto;
    max-height: 715px;
    display: block;
}
@media (max-width: 1100px) {
    .hp-map .map-wrap.map-moa {
        width: 100%;
        height: auto;
    }
    .hp-map .map-wrap.map-moa svg {
        width: 100%;
        max-height: none;
    }
}

/* Project card image containment */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.project-card:hover {
    opacity: 0.85;
}
.project-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Projekty filter styling */
.projekty .filter label {
    font-weight: 500;
    cursor: pointer;
    margin-left: 5px;
}
.projekty .filter input[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.2);
}

/* Cloud tags in projekty filter */
.projekty .cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Map tooltip — Figma: 300 × Hug, radius 15, padding 35/45, gap 29, #F0F0F0, font Aleo */
#map-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 300px;
    background: #F0F0F0;
    border-radius: 15px;
    padding: 35px 45px;
    pointer-events: none;
    box-sizing: border-box;
}
#map-tooltip h3 {
    margin: 0 0 29px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
}
#map-tooltip p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 40px;
    color: #000;
}

/* Calendar widget — fill the column */
.calendar-blok {
    max-width: 100%;
    margin-right: 0;
}

.cal-event__date,
.cal-event__title {
    font-family: 'Roboto', sans-serif;
}

/* Calendar tooltip — clickable, anchored to cell */
#calendar-tooltip,
.calendar-tooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #F0F0F0;
    border-radius: 10px;
    padding: 12px 18px;
    pointer-events: auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
    border: 1px solid #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    min-width: 180px;
}
.calendar-tooltip__link {
    display: block;
    padding: 4px 0;
    color: #003C71;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.15s;
}
.calendar-tooltip__link:hover {
    color: #7b67a8;
    text-decoration: underline;
}
.calendar-tooltip__link + .calendar-tooltip__link {
    border-top: 1px solid #d0d0d0;
    margin-top: 4px;
    padding-top: 8px;
}

/* SVG map region hover cursor */
svg path.region[data-id] {
    cursor: pointer;
    transition: fill 0.15s ease;
}

/* btn-moa: styles defined in MOA.css — teal bg (#007f7e), white text, hover purple (#7b67a8) */



/* Footer wallpaper background */
footer {
    background-image: url("/img/wallpaper.png") !important;
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: auto;
}

/* ── Site header — Figma spec ───────────────────────────────────────────────── */

.site-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 100;
    background: transparent;
}

/* Top bar: logo vlevo, search+lang vpravo — bílé pozadí jen zde */
.site-header__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 38px 160px;
    gap: 45px;
    width: 100%;
    height: 127px;
    border-bottom: 1px solid #CCCCCC;
    box-sizing: border-box;
    background: #fff;
}

/* Logo: 336×51 px */
.site-header__logo {
    display: inline-block;
    flex-shrink: 0;
}
.site-header__logo img {
    width: 336px;
    height: 51px;
    object-fit: contain;
}

.logo-link img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Pravá strana: search + lang */
.site-header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

/* Search box: 465×50 px, bílá, border #E0E0E0 */
.site-header__search {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 465px;
    height: 50px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
}

.site-header__search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #727272;
    padding: 0;
    min-width: 0;
}
.site-header__search-input::placeholder {
    color: #727272;
}

/* Search button: 43×37 px, desktop — žluté pozadí, bílá ikona */
.site-header__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 37px;
    background: #CC7900;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    transition: background 0.2s;
}
.site-header__search-btn:hover {
    background: #e0903a;
}
.site-header__search-btn img {
    width: 19px;
    height: 19px;
}

/* Language switcher */
.site-header__lang {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.site-header__lang-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    color: #000;
}
.site-header__lang-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

/* Lang switcher dropdown component */
.lang-switcher {
    position: relative;
    display: inline-block;
}
.lang-switcher__current {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    color: #000;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    min-width: 60px;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.lang-switcher__current[aria-expanded="true"] + .lang-switcher__dropdown,
.lang-switcher.is-open .lang-switcher__dropdown {
    display: block;
}
.lang-switcher__option {
    display: block;
    padding: 8px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}
.lang-switcher__option:hover {
    background: #f5f5f5;
}
.lang-switcher__option.is-active {
    font-weight: 700;
}

/* Hamburger button (mobile) */
.site-header__hamburger {
    background: none;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: 4px;
    padding: 6px 10px;
}

/* Navigation bar: full width, space-between, padding 49px 160px, height 122px */
/* background-image přímo na elementu — vždy za contentem, bez z-index tricků */
.site-header__nav {
    width: 100%;
    box-sizing: border-box;
}

.site-header__nav:not(.site-header__nav--home) {
    /* gray background provided by .gray-menu:before from the section below */
}

.site-header__nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 49px 160px;
    gap: 32px;
    height: 122px;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
}

.site-header__nav:not(.site-header__nav--home) .site-header__nav-list {
    /* no custom background — gray-menu:before handles this */
}

.site-header__nav-link {
    font-family: 'Chaney', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s;
}
.site-header__nav-link:hover,
.site-header__nav-link.is-active {
    color: #7b67a8;
    text-decoration: none;
}

/* Mobile nav */
.site-header__mobile-list {
    list-style: none;
    padding: 16px 24px;
    margin: 0;
    background: #fff;
    border-top: 1px solid #CCCCCC;
}
.site-header__mobile-link {
    display: block;
    font-family: 'CHANEY', sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}
.site-header__mobile-link:hover {
    color: #7b67a8;
}
/* Viewport breakout — makes a ::before pseudo-element span 100vw
   regardless of the container width. Used by gray-menu and head-bg-gray. */
.gray-menu:before,
.head-bg-gray:before {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
}

/* gray-menu:before extends upward to cover the navbar (~80px) */
.gray-menu:before {
    top: -80px;
}

/* Head-block šedé pozadí na vnitřních stránkách (ne HP, ne výpis akcí).
   Třída se přidává přes ViewData["HeaderGray"] v layoutu. */
.head-bg-gray {
    position: relative;
}
.head-bg-gray:before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #F3F3F3;
    border-bottom: solid 2px #ccc;
    top: 0;
    bottom: 0;
}
/* Navbar border-top je v MOA.css, ale v headeru ho řídíme přes head-bg-gray border-bottom,
   aby bílá čára nepřetékala mimo container-1600. */
header .navbar {
    border-top: none;
}

@media (min-width: 990px) and (max-width: 1199px) {
    .nav-link {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
}

/* Search submit: lupa jako SVG background (originál používá font Iconic s prázdným value) */
header .search input[type="submit"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
}

/* ── Globální 1600 px container — obsah max 1600 px, okraje řeší auto margin ── */
.container-1600 {
    max-width: 1624px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
@media (max-width: 1400px) {
    .container-1600 { padding-left: 12px !important; padding-right: 12px !important; }
}
@media (max-width: 991px) {
    .container-1600 { padding-left: 12px !important; padding-right: 12px !important; }
    .moa-claim { padding-top: 50px !important; }
}

/* ── Aktuality grid — Figma layout (1600 × 620 px, gap 40 px) ──────────────── */
.aktuality-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
}

/* Proporcionální šířky dle Figma (780 : 370 : 370) */
.aktuality-main { flex: 780; min-width: 0; height: 620px; display: flex; }
.aktuality-side  { flex: 370; min-width: 0; height: 620px; display: flex; }

.aktuality-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 15px;
    overflow: hidden; /* ořez obsahu na border-radius karty */
}

.aktuality-img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.aktuality-main .aktuality-img { height: 485px; }
.aktuality-side  .aktuality-img { height: 370px; }

.aktuality-panel {
    flex: 1;
    background: #7b67a8;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
}

.aktuality-panel .date {
    color: #cc7900;
}

.aktuality-panel p {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.aktuality-main .aktuality-panel p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.aktuality-card:hover .aktuality-panel {
    background: #cc7900;
    color: #000;
}

.aktuality-card:hover .aktuality-panel .date {
    color: #7b67a8;
}

@media (max-width: 991px) {
    .site-header__top {
        padding: 23px 10px;
        height: 75px;
        box-sizing: border-box;
    }
    .site-header__logo img {
        width: 127px;
        height: 29px;
    }
    .site-header__right {
        gap: 15px;
    }
    .site-header__search {
        display: none;
    }
    .site-header__nav-list {
        display: none;
    }
}

@media (max-width: 991px) {
    .aktuality-grid {
        flex-direction: column;
        gap: 12px;
    }
    .aktuality-main,
    .aktuality-side {
        flex: none;
        width: 100%;
        height: auto;
    }
    .aktuality-card {
        height: auto;
    }
    .aktuality-main .aktuality-img { height: 300px; }
    .aktuality-side  .aktuality-img { height: 220px; }
    .aktuality-panel { flex: none; }
}

/* Aktuality — tlačítko "ZOBRAZ VŠE" (Figma: 195×60 px, zelená → fialová hover) */
.aktuality .btn-moa {
    width: 195px;
    height: 60px;
    padding: 15px 25px;
    gap: 10px;
    background: #007F7E;
    border-color: #007F7E;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.aktuality .btn-moa:hover {
    background: #7b67a8;
    border-color: #7b67a8;
    color: #fff;
}

/* MoaPage — articles (Princip vymezení) button: Figma 237×60 px, green bg, white text */
.moa-vymezeni-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    gap: 10px;
    width: 237px;
    height: 60px;
    background: #007F7E;
    border-color: #007F7E;
    color: #fff;
    box-sizing: border-box;
    flex: none;
    order: 2;
    flex-grow: 0;
}
.moa-vymezeni-btn:hover {
    background: #7b67a8;
    border-color: #7b67a8;
    color: #fff;
}

/* Footer bottom — logo + copyright */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 12px;
}
.footer-bottom__logo {
    height: 51px;
    width: auto;
}
.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Contacts page — Google Maps 1920 × 670 px, full width */
.contacts-map-section {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
}
.contacts-map-iframe {
    display: block;
    width: 100%;
    height: 670px;
    border: none;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.contacts-map-iframe:hover {
    filter: unset;
}

/* ── Contact cards (Contacts page — Další kontakty) ────────────────────────────── */
.contacts-section-title {
    font-family: 'Aleo', serif;
    font-weight: 700;
    font-size: 28px;
    color: #050E2C;
    margin: 2rem 0 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    height: 100%;
}

.contact-card__photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e4f3;
    color: #7B67A8;
}

.contact-card__photo--placeholder svg {
    width: 52px;
    height: 52px;
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-card__name {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #050E2C;
}

.contact-card__role {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #555;
    margin-bottom: 0.25rem;
}

.contact-card__phone,
.contact-card__email {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #7B67A8;
    text-decoration: none;
}

.contact-card__phone:hover,
.contact-card__email:hover {
    text-decoration: underline;
}

/* ── Load More Button (Data Page) ──────────────────────────────────────────────── */
.btn-load-more {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    gap: 10px;
    min-width: 280px;
    height: 60px;
    background: #007F7E;
    border: none;
    border-radius: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-load-more:hover {
    background: #7b67a8;
}

.btn-load-more:disabled {
    background: #909090;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-load-more:disabled:hover {
    background: #909090;
}

/* Data page perex */
.data-perex {
    padding: 15px 0;
    color: #555;
    font-size: 15px;
}
.data-perex:empty {
    display: none;
}

/* Iframe block styling */
.iframe-block .iframe-inner {
    overflow: visible;
}
.px-web-embed-frame {
    display: block;
    border: none;
    width: 100%;
}
/* Cap each chart iframe at 599 px wide so the Infogram chart engine evaluates
   pageSize.width * scaleX <= 600 and switches into its overlay/auto-fit popup
   mode (above that threshold popups render at the chart's native design scale,
   which is too small to read). Then scale the iframe visually to fit the
   col-lg-6 column at whatever viewport, without changing what the chart sees.
   col-lg-6 content area ≈ (100vw - 48px) / 2, so the max scale that fits is
   ((100vw - 48px) / 2) / 599. We use a tighter divisor for safety margin and
   cap at 1.28 (the value that fits inside the 1624 px container cap). */
.iframe-block {
    --chart-scale: clamp(1, calc((100vw - 96px) / 1198px), 1.28);
    /* Each Infogram chart with a 4:3 design (960×720) fills only the top
       ~449 px of its 591 px iframe; the rest is Infogram chrome / whitespace.
       Cap the block to the scaled chart-content height and clip the rest. */
    height: calc(450px * var(--chart-scale));
    overflow: hidden;
}
.iframe-block .iframe-inner {
    overflow: visible;
}
.iframe-block .px-web-embed-frame {
    width: 599px !important;
    max-width: 100%;
    transform: scale(var(--chart-scale));
    transform-origin: top left;
}
.data-chart-item__iframe {
    overflow: hidden;
}
.data-chart-item__iframe iframe {
    display: block;
    border: none;
    width: 100%;
}
@media (max-width: 610px) {
    .px-web-embed-frame {
        height: 620px !important;
    }
}

/* ── MOA Accordion Section — Figma spec ───────────────────────────────────── */
.moa-accordion-section {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    box-sizing: border-box;
}

/* Single-block variant used inside BlockList content (GeneralPage etc.) —
   override the full-viewport breakout so the accordion respects parent container width. */
.moa-accordion-section--single {
    width: 100%;
    left: auto;
    transform: none;
    margin: 2px 0;
}
.moa-accordion-section--single .accordion-button {
    height: auto;
    min-height: 64px;
    padding: 16px 24px;
    font-size: 22px;
    line-height: 28px;
}
@media (max-width: 768px) {
    .moa-accordion-section--single .accordion-button {
        min-height: 56px;
        padding: 14px 18px;
        font-size: 18px;
        line-height: 24px;
    }
}

.moa-accordion-section .accordion {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Remove Bootstrap defaults on accordion items */
.moa-accordion-section .accordion-item {
    border: none;
    border-radius: 0 !important;
    background: transparent;
}

/* Header button — base */
.moa-accordion-section .accordion-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    height: 85px;
    width: 100%;
    font-family: 'Aleo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none;
    cursor: pointer;
}

/* Replace Bootstrap SVG arrow with CSS chevron */
.moa-accordion-section .accordion-button::after {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: none !important;
    border-right: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: 4px;
}

.moa-accordion-section .accordion-button:not(.collapsed)::after {
    background-image: none !important;
    transform: rotate(-135deg);
    margin-top: 10px;
}

/* Purple — metropolitní oblast */
.moa-accordion-section .accordion-item.purple .accordion-button.collapsed {
    background: #7B67A8;
    color: #FFFFFF;
}
.moa-accordion-section .accordion-item.purple .accordion-button:not(.collapsed) {
    background: #7B67A8 !important;
    color: #FFFFFF !important;
    border-bottom: none;
}

/* Orange — aglomerace */
.moa-accordion-section .accordion-item.orange .accordion-button.collapsed {
    background: #CC7900;
    color: #FFFFFF;
}
.moa-accordion-section .accordion-item.orange .accordion-button:not(.collapsed) {
    background: #CC7900 !important;
    color: #FFFFFF !important;
    border-bottom: none;
}


/* Accordion body */
.moa-accordion-section .accordion-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 30px;
    gap: 50px;
    background: #FFFFFF;
}

/* Description text */
.accordion-desc {
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.accordion-desc p { margin: 0; }

/* Data row: image + numbers */
.accordion-data {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 55px;
    width: 100%;
}

/* Image */
.accordion-image {
    flex: 0 0 770px;
    width: 770px;
    height: 535px;
}
.accordion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Numbers grid: 2×2 flex-wrap */
.accordion-numbers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 100px 55px;
    flex: 1;
}

.accordion-number-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    width: 290px;
}

.accordion-number-cell .num-label {
    font-family: 'Aleo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    display: block;
}

.accordion-number-cell .num-line {
    display: block;
    width: 64px;
    height: 4px;
    background: #7B67A8;
}

.accordion-number-cell .num-value {
    font-family: 'CHANEY', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: #7B67A8;
    display: block;
    width: 100%;
}

/* Email cell */
.num-email-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 290px;
}
.num-email-arrow {
    display: inline-block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-right: 2px solid #7B67A8;
    border-bottom: 2px solid #7B67A8;
    transform: rotate(-45deg);
}
.num-email-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 40px;
    color: #7B67A8;
    text-decoration: none;
    word-break: break-all;
}
.num-email-link:hover { text-decoration: underline; }

/* CTA buttons — inside numbers grid */
.accordion-cta-cell {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
    width: 282px;
    height: 60px;
}
.btn-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    gap: 10px;
    height: 60px;
    background: #007F7E;
    border: none;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.2s;
    box-sizing: border-box;
    flex-shrink: 0;
}
.btn-cta:hover {
    background: #7b67a8;
    color: #fff;
}
.btn-strategie { width: 175px; }
.btn-web       { width: 102px; }

/* Responsive */
@media (max-width: 1400px) {
    .moa-accordion-section { padding: 0; }
    .accordion-image { flex: 0 0 50%; width: 50%; height: auto; aspect-ratio: 770 / 535; }
}
@media (max-width: 991px) {
    .moa-accordion-section { padding: 0; }
    .moa-accordion-section .accordion-button { font-size: 22px; height: auto; min-height: 65px; }
    .accordion-data { flex-direction: column; }
    .accordion-image { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .accordion-numbers { gap: 40px 30px; }
    .accordion-number-cell { width: calc(50% - 15px); }
}
@media (max-width: 576px) {
    .moa-accordion-section .accordion-button { font-size: 18px; }
    .accordion-number-cell { width: 100%; }
}

/* ── ITI Articles Section — Figma Spec ─────────────────────────────── */
.iti-articles-section {
    width: 100%;
}

.iti-articles-section .container-1600 {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 100px 50px !important;
}

/* Article Block — alternating layout */
.iti-article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    width: 100%;
}

.iti-article--reverse {
    flex-direction: row-reverse;
}

.iti-article__image {
    flex: 1;
    width: 50%;
    aspect-ratio: 800 / 532;
    border-radius: 15px;
    overflow: hidden;
}

.iti-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iti-article__text {
    display: flex;
    flex-direction: column;
    gap: 50px;
    flex: 1;
    width: 50%;
    height: auto;
}

/* Text full width when no image */
.iti-article:has(.iti-article__image) .iti-article__text {
    width: 730px;
}

.iti-article:not(:has(.iti-article__image)) .iti-article__text {
    width: 100%;
}

.iti-article__title,
.article-content-block__heading {
    font-family: 'Chaney', sans-serif;
    font-weight: 700;
    font-size: 36px;
    font-style: normal;
    line-height: 43px;
    color: #000000;
    margin: 0;
}

.iti-article__desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    margin: 0;
}

.iti-article__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    gap: 10px;
    width: auto;
    height: 60px;
    background: #007F7E;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
    align-self: flex-start;
}

.iti-article__button:hover {
    background: #7b67a8;
}

/* Text alignment within iti-article — editor's `textAlign` property. */
/* Default is left (no class), Center / Right opt in via class.        */
.iti-article__text--align-center { text-align: center; }
.iti-article__text--align-center .iti-article__button { align-self: center; }
.iti-article__text--align-right  { text-align: right; }
.iti-article__text--align-right  .iti-article__button { align-self: flex-end; }

/* Text Columns Block — 3 columns */
.iti-text-columns {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 125px;
    width: 100%;
}

.iti-text-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 450px;
}

.iti-column-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
}

.iti-column-title-line {
    width: 7px;
    height: 45px;
    background: #7B67A8;
    flex-shrink: 0;
}

.iti-column-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #7B67A8;
    margin: 0;
}

.iti-column-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    margin: 0;
}

/* Full-width text articles */
.iti-article--full-width .iti-article__text {
    width: 100%;
}

@media (max-width: 768px) {
    .iti-articles-section .container-1600 {
        padding: 60px 12px !important;
        gap: 60px;
    }
    .iti-article {
        flex-direction: column;
        gap: 40px;
    }
    .iti-article--reverse {
        flex-direction: column;
    }
    .iti-article__image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 800 / 532;
    }
    .iti-article__text,
    .iti-article:has(.iti-article__image) .iti-article__text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .iti-article__title,
    .iti-article__desc {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .iti-article__desc * {
        max-width: 100%;
    }
    .iti-text-columns {
        gap: 40px;
        flex-wrap: wrap;
    }
    .iti-text-column {
        width: calc(33.333% - 30px);
    }
}

@media (max-width: 991px) {
    .iti-articles-section .container-1600 {
        padding: 40px 12px !important;
        gap: 40px;
    }
    .iti-text-column {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .iti-articles-section .container-1600 {
        padding: 30px 12px !important;
        gap: 30px;
    }
    .iti-article__title,
    .article-content-block__heading {
        font-size: 24px;
        line-height: 28px;
    }
    .iti-article__desc {
        font-size: 16px;
        line-height: 24px;
    }
    .iti-text-columns {
        flex-direction: column;
        gap: 30px;
    }
    .iti-text-column {
        width: 100%;
    }
}

/* ── Metodické Dokumenty Section ──────────────────────────────────── */

.methodical-documents {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    width: 100%;
    border-top: 1px solid #007F7E;
    list-style: none;
    margin: 0;
}

.methodical-document-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 17px 20px 17px 0;
    width: 100%;
    height: 64px;
    border-bottom: 1px solid #CCCCCC;
    list-style: none;
    margin: 0;
    transition: color 0.2s;
}

.methodical-document-item:hover .doc-title,
.methodical-document-item:hover .doc-meta {
    color: #7B67A8;
}

/* Single-block variant used inside BlockList content (GeneralPage etc.) —
   each item is standalone, so first gets the teal top border; siblings share borders. */
.methodical-document-item--single {
    border-top: 1px solid #007F7E;
}
.methodical-document-item--single + .methodical-document-item--single {
    border-top: none;
}

.doc-content {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.doc-link {
    text-decoration: none;
    color: inherit;
}

.doc-title {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    display: block;
    transition: color 0.2s;
}

.doc-meta-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 35px;
    flex: 0 0 auto;
}

.doc-meta {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    white-space: nowrap;
    transition: color 0.2s;
}

.doc-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
}

.methodical-document-item:hover .doc-download-icon {
    color: #7B67A8;
}

.doc-download-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1400px) {
    .methodical-document-item {
        padding: 17px 0;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .methodical-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        height: auto;
        padding: 20px 0;
    }

    .doc-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .doc-meta {
        align-self: flex-start;
    }
}

/* ── Article Detail ──────────────────── */

.article-detail-header {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0 0 160px;
    gap: 50px;
    box-sizing: border-box;
    background: #F3F3F3;
    background-image: url("/img/slide-bg.webp");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 560px auto;
    min-height: 627px;
}

.article-detail-header__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    width: 1150px;
}

.article-detail-header__title {
    font-family: 'CHANEY', sans-serif;
    font-size: 36px;
    line-height: 50px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.article-detail-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
}

.article-detail-tag {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
    height: 33px;
    background: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.article-detail-tag:hover {
    background: #7B67A8;
    color: #FFFFFF;
}

.article-detail-tag--active {
    background: #FFFFFF;
    color: #000000;
}

.article-detail-wallpaper {
    display: none;
}

.article-detail-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 75px 160px 50px;
    gap: 0;
    width: 100%;
    background: #FFFFFF;
}

.article-detail-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.article-detail-stat__value {
    font-family: 'CHANEY';
    font-size: clamp(22px, 3.2vw, 54px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Responsive .counter values (DataPage, HomePage) */
.counter > div > div:first-child {
    font-size: clamp(22px, 3.2vw, 54px) !important;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .counter > div > div:first-child {
        font-size: 54px !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .article-detail-stat__value {
        font-size: 54px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.article-detail-stat__value.purple {
    color: #7B67A8;
}

.article-detail-stat__value.orange {
    color: #CC7900;
}

.article-detail-stat__value.teal {
    color: #007F7E;
}

.article-detail-stat__line {
    width: 64px;
    height: 4px;
}

.article-detail-stat__line.purple {
    background: #7B67A8;
}

.article-detail-stat__line.orange {
    background: #CC7900;
}

.article-detail-stat__line.teal {
    background: #007F7E;
}

.article-detail-stat__label {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    color: #000000;
    width: 100%;
    margin: 0;
}

.article-detail-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 160px;
    gap: 50px;
    width: 100%;
    background: #FFFFFF;
}

.article-detail-perex {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    color: #000000;
    margin: 0;
    width: 1600px;
    max-width: 100%;
    padding-top: 50px;
}

.article-detail-body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #000000;
    width: 1600px;
    max-width: 100%;
}

.article-detail-body p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 30px;
    color: #000000;
}

.article-detail-body blockquote {
    border-left: 7px solid #7B67A8;
    padding-left: 20px;
    font-weight: 700;
    margin: 30px 0;
}

.article-detail-blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    min-width: 0;
}

/* Compact variant used by GeneralPage — many short blocks (headings, accordion, docs)
   look airy with the default 3rem gap. Tighter spacing fits SO MOA-style content. */
.article-detail-blocks--compact {
    gap: 1rem;
}
.article-detail-blocks--compact .moa-accordion-section--single {
    margin: 0;
}
.article-detail-blocks--compact .methodical-document-item--single + .methodical-document-item--single {
    margin-top: -1rem;
}

.article-content-block {
    width: 100%;
    min-width: 0;
}

.bl-iframe-block {
    width: 100%;
    min-width: 0;
    margin: 2rem 0 3.5rem;
}

.bl-iframe-block__title {
    margin: 40px 0 16px;
    color: #000;
}

.bl-iframe-block__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.bl-iframe-block__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.article-image-block {
    width: 100%;
    min-width: 0;
    margin: 2rem 0 3.5rem;
}

.article-image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Size — width driven by editor's `imageSize` property (default Full).      */
/* Alignment — `imageAlignment` (Left/Center/Right), default Center.         */
.article-image-block.size-sm   { max-width: 25%; }
.article-image-block.size-md   { max-width: 50%; }
.article-image-block.size-lg   { max-width: 75%; }
.article-image-block.size-full { max-width: 100%; }

.article-image-block.align-left   { margin-left: 0;    margin-right: auto; }
.article-image-block.align-center { margin-left: auto; margin-right: auto; }
.article-image-block.align-right  { margin-left: auto; margin-right: 0; }

/* Tablet: bump tiny sizes up so images stay legible on smaller screens. */
@media (max-width: 991px) {
    .article-image-block.size-sm { max-width: 50%; }
}
/* Phone: always full-width regardless of editor choice. */
@media (max-width: 576px) {
    .article-image-block.size-sm,
    .article-image-block.size-md,
    .article-image-block.size-lg { max-width: 100%; }
}

.article-quote-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    margin: 32px 0;
}

.article-quote-block__line {
    width: 10px;
    min-height: 80px;
    align-self: stretch;
    background: #7B67A8;
    flex-shrink: 0;
}

.article-quote-block__text {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 42px;
    color: #000000;
    margin: 0;
    align-self: center;
}

@media (max-width: 768px) {
    .article-quote-block {
        gap: 20px;
        margin: 24px 0;
    }
    .article-quote-block__line {
        width: 6px;
    }
    .article-quote-block__text {
        font-size: 22px;
        line-height: 32px;
    }
}

.article-detail-blocks .rich-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #000000;
    width: 1600px;
    max-width: 100%;
}

.article-detail-blocks .rich-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 30px;
    color: #000000;
}

.article-detail-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    width: 1600px;
    max-width: 100%;
}

.article-detail-gallery__item {
    width: 300px;
    height: 300px;
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.article-detail-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-detail-image {
    width: 1600px;
    max-width: 100%;
    max-height: 1000px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1400px) {
    .article-detail-header {
        padding: 100px 120px 0;
        gap: 40px;
    }

    .article-detail-header__text {
        width: 100%;
    }

    .article-detail-wallpaper {
        width: 400px;
        height: 400px;
    }

    .article-detail-stat {
        width: 300px;
    }

    .article-detail-content,
    .article-detail-stats {
        padding-left: 120px;
        padding-right: 120px;
    }

    .article-detail-perex,
    .article-detail-body,
    .article-detail-image,
    .article-detail-gallery {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .article-detail-header {
        flex-direction: column;
        padding: 80px 80px 0;
        gap: 40px;
    }

    .article-detail-header__title {
        font-size: 28px;
        line-height: 36px;
    }

    .article-detail-wallpaper {
        width: 100%;
        height: 300px;
    }

    .article-detail-stats {
        flex-direction: column;
        align-items: stretch;
        padding: 50px 80px;
    }

    .article-detail-stat {
        width: 100%;
    }

    .article-detail-content,
    .article-detail-stats {
        padding-left: 80px;
        padding-right: 80px;
    }

    .article-detail-gallery {
        gap: 15px;
    }

    .article-detail-gallery__item {
        width: calc(50% - 7.5px);
        height: auto;
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .article-detail-header {
        padding: 60px 16px 0;
    }

    .article-detail-header__title {
        font-size: 24px;
        line-height: 32px;
    }

    .article-detail-tags {
        gap: 10px;
    }

    .article-detail-wallpaper {
        height: 200px;
    }

    .article-detail-stats {
        padding: 30px 16px;
    }

    .article-detail-stat__value {
        font-size: 36px;
        line-height: 36px;
    }

    .article-detail-content,
    .article-detail-stats {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-detail-perex,
    .article-detail-body {
        font-size: 16px;
        line-height: 26px;
        width: 100%;
    }

    .article-detail-gallery {
        flex-direction: column;
    }

    .article-detail-gallery__item {
        width: 100%;
    }
}

/* ── News Article (minimalist) ────────────────────────────── */
.news-article {
    padding: 40px 0 80px;
    background: #FFFFFF;
}

.news-article .container-1600 {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.news-article__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
}

.news-article__head {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    margin-bottom: 35px;
    background: #007F7E;
    border: none;
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.news-article__back:hover,
.news-article__back:focus {
    background: #7b67a8;
    color: #fff;
}

.news-article__title {
    font-family: "Chaney", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.15;
    color: #000;
    margin: 0 0 8px;
}

.news-article__date {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    margin: 0 0 18px;
}

.news-article__perex {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    color: #000;
    margin: 0;
}

.news-article__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    align-self: flex-start;
    margin-top: 60px;
}

.news-article__body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    color: #000;
    max-width: 1100px;
}

.news-article__body h2,
.news-article__body h3,
.news-article__body h4 {
    margin: 40px 0 16px;
    line-height: 1.25;
}

.news-article__body h2:first-child,
.news-article__body h3:first-child,
.news-article__body h4:first-child {
    margin-top: 0;
}

.news-article__body p {
    margin: 0 0 24px;
}

.news-article__body p:last-child {
    margin-bottom: 0;
}

.news-article__body blockquote {
    border-left: 7px solid #7B67A8;
    padding-left: 20px;
    font-weight: 700;
    margin: 30px 0;
}

.news-article__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
}

.news-article__blocks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-article__blocks > * {
    width: 100%;
}

.news-article__blocks img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .news-article {
        padding: 30px 0 60px;
    }

    .news-article__top {
        flex-direction: column;
        gap: 30px;
    }

    .news-article__image {
        max-width: 100%;
        margin-top: 0;
        order: 2;
    }

    .news-article__title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .news-article {
        padding: 20px 0 40px;
    }

    .news-article__title {
        font-size: 1.6rem;
    }

    .news-article__perex,
    .news-article__body {
        font-size: 16px;
        line-height: 26px;
    }

    .news-article__back {
        margin-bottom: 25px;
    }
}

/* ── Hide nav background and pattern on /aktuality page ──────────────── */
body:has(.container.articles) .site-header__nav {
    background-image: none !important;
}

body:has(.container.articles) .site-header__nav-list {
    background-color: transparent !important;
    background-image: none !important;
}

/* ── Hide nav pattern on error page ──────────────────────────────────── */
body:has(.error-page) .site-header__nav {
    background-image: none !important;
}

body:has(.error-page) .site-header__nav-list {
    background-color: #F3F3F3 !important;
    background-image: none !important;
}

body:has(.error-page) .site-header__top {
    background-color: #F3F3F3 !important;
}

/* ── Pager — Disabled state for pagination arrows ─────────────────── */
.pager .disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    opacity: 0.35;
    cursor: default;
}

.pager .left.disabled::before {
    display: inline-block;
    content: " ";
    width: 16px;
    height: 16px;
    background-image: url("/img/cal-move.svg");
    background-size: 100% 100%;
    transform: rotate(180deg);
}

.pager .right.disabled::after {
    display: inline-block;
    content: " ";
    width: 16px;
    height: 16px;
    background-image: url("/img/cal-move.svg");
    background-size: 100% 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ── TABLET & SMALL DESKTOP RESPONSIVE ─────────────────────────────────────
   Opravy pro šířky 576px–1400px (tablety, malé notebooky).
   ═════════════════════════════════════════════════════════════════════════════ */

/* Zabrání horizontálnímu scrollu způsobenému full-bleed prvky (100vw + translateX) */
body { overflow-x: hidden; }

/* YouTube iframe — vždy responzivní (HTML atributy width/height přebity) */
.video-box iframe {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block;
}

/* Map SVG — responzivní zobrazení */
.hp-map .map-wrap {
    overflow-x: auto;
    width: 100%;
}
.hp-map .map-wrap svg {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ── Header: intermediate padding pro 992px–1400px ── */
@media (min-width: 992px) and (max-width: 1400px) {
    .site-header__top {
        padding: 20px 80px;
        height: auto;
    }
    .site-header__search {
        width: 320px;
    }
    .site-header__nav-list {
        padding: 20px 80px;
        height: auto;
        min-height: 80px;
    }
}

/* ── Carousel: tablet layout — obrázek nahoře, šipky, pak text ── */
@media (max-width: 991px) {
    .carousel-wrapper {
        flex-direction: column-reverse !important; /* image (DOM: 2nd) se zobrazí nahoře */
        width: 100%;
        height: auto;
    }
    .carousel-board {
        flex: none;
        width: 100%;
        height: auto;
        padding: 55px 24px 40px !important; /* top padding = prostor pro šipky */
        gap: 20px;
        border-radius: 0;
    }
    .carousel-board h2 {
        font-size: clamp(22px, 4vw, 36px);
        line-height: 1.2;
    }
    .carousel-board .btn-moa {
        width: auto;
        max-width: 220px;
    }
    .carousel-image {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 320px;
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    /* Šipky: těsně pod obrázkem (320px), nad textem */
    .carousel-control-prev {
        top: calc(320px + 10px) !important;
        bottom: auto !important;
        left: 24px !important;
    }
    .carousel-control-next {
        top: calc(320px + 10px) !important;
        bottom: auto !important;
        left: 60px !important;
    }
}

/* ── Carousel: malý mobil (576px) — nižší obrázek ── */
@media (max-width: 576px) {
    .carousel-image {
        height: 220px;
    }
    .carousel-board {
        padding: 55px 16px 30px !important;
        gap: 16px;
    }
    .carousel-board h2 {
        font-size: clamp(18px, 5vw, 26px);
    }
    .carousel-control-prev {
        top: calc(220px + 10px) !important;
        bottom: auto !important;
        left: 16px !important;
    }
    .carousel-control-next {
        top: calc(220px + 10px) !important;
        bottom: auto !important;
        left: 52px !important;
    }
}

/* ── Mobilní header: pouze ikona lupy (bez textového pole) ── */
@media (max-width: 991px) {
    .site-header__search {
        display: flex !important;
        width: auto;
        padding: 0;
        border: none;
        background: transparent;
        gap: 0;
    }
    .site-header__search-input {
        display: none !important;
    }
    /* Lupa na mobilu: průhledné pozadí, žlutá ikona */
    .site-header__search-btn {
        background: transparent;
        width: 37px;
        height: 37px;
        border-radius: 4px;
        padding: 9px;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .site-header__search-btn img {
        filter: brightness(0) saturate(100%) invert(72%) sepia(87%) saturate(421%) hue-rotate(330deg) brightness(106%) contrast(97%);
    }
    .site-header__search-btn:hover {
        background: rgba(0,0,0,0.05);
    }
}

/* Hamburger — Figma: 42×28px, 3 teal linky 42×6px, gap 5px, průhledné pozadí */
.site-header__hamburger {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 42px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-header__hamburger .navbar-toggler-icon {
    width: 42px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 28'%3e%3crect x='0' y='0' width='42' height='6' rx='1' fill='%23007F7E'/%3e%3crect x='0' y='11' width='42' height='6' rx='1' fill='%23007F7E'/%3e%3crect x='0' y='22' width='42' height='6' rx='1' fill='%23007F7E'/%3e%3c/svg%3e");
    background-size: 100% 100%;
}
.site-header__hamburger:hover .navbar-toggler-icon,
.site-header__hamburger:focus .navbar-toggler-icon {
    opacity: 0.75;
}

/* ── Aktuality: 576px — menší výška obrázků + menší gap ── */
@media (max-width: 576px) {
    .aktuality-grid { gap: 10px; }
    .aktuality-main .aktuality-img { height: 220px; }
    .aktuality-side  .aktuality-img { height: 180px; }
    .aktuality-panel { padding: 15px; gap: 8px; }
}

/* ── Mobilní vyhledávání — rozbalený stav ── */
@media (max-width: 991px) {
    .site-header__search.is-open {
        position: absolute;
        left: 0;
        top: 75px;
        width: 100%;
        padding: 12px 15px;
        border: none;
        border-bottom: 2px solid #CC7900;
        background: #fff;
        z-index: 300;
        gap: 10px;
        box-sizing: border-box;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .site-header__search.is-open .site-header__search-input {
        display: flex !important;
        flex: 1;
        font-size: 16px;
        padding: 0 8px;
        border: none;
    }
    .site-header__search.is-open .site-header__search-btn {
        background: #CC7900;
    }
    .site-header__search.is-open .site-header__search-btn img {
        filter: none;
    }
}

/* ── Newsletter: zkrácený text + odsazení na mobilu ── */
@media (max-width: 991px) {
    .nl-text {
        display: none;
    }
    .newsletter .ed::after {
        content: 'odběr newsletteru';
        margin-left: 8px;
        color: #000;
        font-size: 20px;
        font-weight: 400;
    }
    .newsletter {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    /* Sekce s newsletterem — větší vertikální mezera */
    .row.py-2.py-lg-5 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}

/* ── Newsletter: prevence overflow na mobilu ── */
@media (max-width: 576px) {
    .newsletter .d-flex {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
}

/* ── Newsletter width on all pages — 1600px max or container width ── */
@media (min-width: 1200px) {
    .newsletter-section .container {
        max-width: 1600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    section > .container:has(.newsletter) {
        /*max-width: 1600px !important;*/
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ── 380px MOBILE OPTIMIZATION ──────────────────────────────────────────────
   Pro mobilní zařízení se šířkou 380px (typické malé smartphony).
   Řeší: font-size, padding, gap, přetékání obsahu
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    /* ── Global Typography ─────────────────────────────────────────── */
    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    h1 { font-size: clamp(20px, 5vw, 24px); }
    h2 { font-size: clamp(18px, 4.5vw, 22px); }
    h3 { font-size: clamp(16px, 4vw, 20px); }
    h4 { font-size: 16px; }

    /* ── Header / Navigation ───────────────────────────────────────── */
    .site-header__top {
        padding: 23px 10px;
        height: 75px;
        box-sizing: border-box;
    }

    .site-header__logo img {
        width: 127px;
        height: 29px;
    }

    .site-header__right {
        gap: 15px;
    }

    .site-header__search {
        display: none;
    }

    .site-header__lang-label {
        font-size: 14px;
    }

    /* search zůstává viditelný (řízeno 991px blokem výše) */

    .site-header__nav-list {
        display: none;
    }

    .site-header__mobile-list {
        padding: 12px 16px;
    }

    .site-header__mobile-link {
        font-size: 14px;
        padding: 10px 0;
    }

    /* ── Carousel / Slider ─────────────────────────────────────────── */
    .carousel-wrapper {
        width: 100%;
        flex-direction: column-reverse; /* image nahoře, board dole */
        height: auto;
    }

    .carousel-board {
        flex: none;
        width: 100%;
        height: auto;
        padding: 55px 12px 30px !important; /* top padding = prostor pro šipky */
        gap: 16px;
        border-radius: 0;
    }

    .carousel-board .btn-moa {
        width: 100%;
        padding: 12px 16px;
        height: auto;
        font-size: 16px;
    }

    .carousel-image {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 200px;
        max-height: 200px;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: calc(200px + 10px) !important;
        bottom: auto !important;
        width: 20px;
        height: 26px;
    }

    .carousel-control-prev {
        left: 12px !important;
    }

    .carousel-control-next {
        left: 44px !important;
    }

    /* ── Container padding ─────────────────────────────────────────── */
    .container-1600 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* ── Aktuality Grid ────────────────────────────────────────────── */
    .aktuality-grid {
        gap: 8px;
    }

    .aktuality-main,
    .aktuality-side {
        height: auto;
        min-height: auto;
    }

    .aktuality-main .aktuality-img { height: 200px; }
    .aktuality-side .aktuality-img { height: 160px; }

    .aktuality-panel {
        padding: 15px;
        gap: 10px;
    }

    .aktuality .btn-moa {
        width: 100%;
        padding: 12px 16px;
        height: auto;
        font-size: 14px;
    }

    /* ── Mapa ──────────────────────────────────────────────────────── */
    #map-tooltip {
        width: calc(100vw - 40px);
        padding: 20px 20px;
        font-size: 14px;
    }

    #map-tooltip h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    #map-tooltip p {
        font-size: 14px;
        line-height: 24px;
    }

    .hp-map .map-wrap.map-moa {
        height: auto;
    }

    .hp-map .map-wrap.map-moa svg {
        height: 250px;
    }

    /* ── Accordion (MOA) ───────────────────────────────────────────── */
    .moa-accordion-section {
        width: 100vw;
        padding: 0px 12px 0px !important;
    }

    .moa-accordion-section .accordion-button {
        padding: 15px 12px;
        height: auto;
        min-height: 50px;
        font-size: 16px;
        line-height: 20px;
    }

    .moa-accordion-section .accordion-body {
        padding: 25px 12px;
        gap: 25px;
    }

    .accordion-desc {
        font-size: 14px;
        line-height: 24px;
    }

    .accordion-data {
        gap: 30px;
    }

    .accordion-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .accordion-numbers {
        gap: 20px 15px;
    }

    .accordion-number-cell {
        width: calc(50% - 7.5px);
        gap: 10px;
    }

    .accordion-number-cell .num-value {
        font-size: 24px;
        line-height: 28px;
    }

    .btn-cta {
        padding: 12px 16px;
        height: auto;
        min-height: 44px;
        font-size: 14px;
        line-height: 20px;
    }

    .btn-strategie,
    .btn-web {
        width: 100%;
    }

    /* ── ITI Articles Section ──────────────────────────────────────── */
    .iti-articles-section .container-1600 {
        padding: 30px 12px !important;
        gap: 30px;
    }

    .iti-article {
        gap: 20px;
    }

    .iti-article__image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .iti-article__text {
        width: 100%;
        gap: 20px;
    }

    .iti-article__title,
    .article-content-block__heading {
        font-size: 18px;
        line-height: 24px;
    }

    .iti-article__desc {
        font-size: 14px;
        line-height: 22px;
    }

    .iti-article__button {
        width: 100%;
        padding: 12px 16px;
        height: auto;
        font-size: 14px;
        line-height: 20px;
    }

    .iti-text-columns {
        gap: 20px;
    }

    .iti-text-column {
        width: 100%;
    }

    /* ── Methodical Documents ──────────────────────────────────────── */
    .methodical-document-item {
        padding: 12px 0;
        height: auto;
        gap: 12px;
    }

    .doc-title {
        font-size: 14px;
        line-height: 20px;
    }

    .doc-meta {
        font-size: 12px;
        line-height: 18px;
    }

    .doc-meta-wrapper {
        gap: 15px;
    }

    /* ── Article Detail ────────────────────────────────────────────── */
    .article-detail-header {
        padding: 40px 12px 0;
        gap: 20px;
        min-height: 200px;
    }

    .article-detail-header__text {
        width: 100%;
        gap: 20px;
    }

    .article-detail-header__title {
        font-size: 20px;
        line-height: 28px;
    }

    .article-detail-tag {
        padding: 4px 8px;
        height: auto;
        font-size: 11px;
        line-height: 16px;
    }

    .article-detail-stats {
        padding: 30px 12px !important;
    }

    .article-detail-stat {
        width: 100%;
        gap: 15px;
    }

    .article-detail-stat__value {
        font-size: 32px;
        line-height: 32px;
    }

    .article-detail-stat__label {
        font-size: 14px;
        line-height: 20px;
    }

    .article-detail-content {
        padding: 0 12px !important;
        gap: 30px;
    }

    .article-detail-perex,
    .article-detail-body {
        font-size: 14px;
        line-height: 22px;
    }

    .article-detail-gallery {
        gap: 10px;
    }

    .article-detail-gallery__item {
        width: calc(50% - 5px);
        height: 150px;
    }

    /* ── Footer ────────────────────────────────────────────────────── */
    footer {
        padding-top: 20px;
    }

    .footer-bottom {
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 8px;
    }

    .footer-bottom__logo {
        height: 30px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* ── Contacts Map ──────────────────────────────────────────────── */
    .contacts-map-iframe {
        height: 300px;
    }

    /* ── Calendar Tooltip ──────────────────────────────────────────── */
    #calendar-tooltip {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ── Aktuality: náhledový obrázek nad nadpisem na mobilech ── */
@media (max-width: 767px) {
    .multiple-article-table li a {
        flex-direction: column;
    }

    .nok-nahled {
        display: flex !important;
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* ── MoaPage map → accordion spacing — tablet ───────── */
@media (max-width: 1199px) {
    .hp-map {
        margin-bottom: 40px;
    }

    .hp-map h2 {
        margin-bottom: 24px;
    }
}

/* ── Project Detail: centered content column ─────────────── */
.project-content-col {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Project Detail: gallery — column count driven by --gallery-cols ────── */
/* Set on the .project-gallery element by galleryBlock.cshtml (editor's      */
/* `imagesPerRow` property). Tablet/phone capped to keep thumbnails legible. */
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.project-gallery a {
    flex: 0 0 calc((100% - (var(--gallery-cols, 5) - 1) * 8px) / var(--gallery-cols, 5));
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}
.project-gallery a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}
.project-gallery a:hover img {
    transform: scale(1.05);
}
@media (max-width: 991px) {
    .project-gallery a {
        flex: 0 0 calc((100% - (var(--gallery-cols-md, 3) - 1) * 8px) / var(--gallery-cols-md, 3));
    }
}
@media (max-width: 576px) {
    .project-gallery a {
        flex: 0 0 calc((100% - (var(--gallery-cols-sm, 2) - 1) * 8px) / var(--gallery-cols-sm, 2));
    }
}

/* ── Calendar — mobile ───────────────────────────────── */
@media (max-width: 991px) {
    /* Switch from fixed 57px + negative-margin to percentage widths on mobile */
    .fc-calendar .fc-head > div,
    .fc-calendar .fc-row > div {
        width: calc((100% - 18px) / 7);
        margin-right: 3px;
    }
    .fc-calendar .fc-head > div:last-of-type,
    .fc-calendar .fc-row > div:last-of-type {
        margin-right: 0;
    }
    .fc-calendar .fc-row > div {
        height: 34px;
        margin-bottom: 2px;
    }

    /* Events wrap: stack events above nav arrows */
    .cal-events-wrap {
        flex-direction: column;
        gap: 16px;
    }
    .cal-events {
        gap: 20px;
    }
    .cal-event {
        min-height: 56px;
    }
    .cal-event__line {
        min-height: 56px;
    }
    .cal-event__title {
        font-size: 17px;
        line-height: 21px;
    }
    .cal-event__date {
        font-size: 15px;
    }
    .cal-events-nav {
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
        gap: 32px;
    }
}

#analyticsContainer .analysis {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

#analyticsContainer .analysis > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#analyticsContainer .analysis .anal-conteiner {
    flex: 1;
}

#analyticsContainer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
}

/* CTA button color variants for RTE */
.btn-moa-purple,
.btn-moa-brown,
.btn-moa-blue,
.btn-moa-pink,
.btn-moa-orange,
.btn-moa-green,
.btn-moa-mauve {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Aleo', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
    padding: 15px 25px;
    height: 60px;
    box-sizing: border-box;
    line-height: 30px;
}
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}
@media (max-width: 576px) {
    .btn-row { gap: 12px; }
    .btn-row > a { width: 100%; text-align: center; }
}

.btn-moa-purple  { background: #7b67a8; }
.btn-moa-brown   { background: #ad7b5e; }
.btn-moa-blue    { background: #55b3e6; }
.btn-moa-pink    { background: #f05a77; }
.btn-moa-orange  { background: #f5833b; }
.btn-moa-green   { background: #30b983; }
.btn-moa-mauve   { background: #ad799e; }
.btn-moa-purple:hover  { background: #007F7E; }
.btn-moa-brown:hover   { background: #936950; }
.btn-moa-blue:hover    { background: #4898C4; }
.btn-moa-pink:hover    { background: #CC4D65; }
.btn-moa-orange:hover  { background: #D06F32; }
.btn-moa-green:hover   { background: #299D6F; }
.btn-moa-mauve:hover   { background: #936786; }

/* ── Newsletter Mailchimp ────────────────────────────────────────── */
.newsletter .mc-email {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: 'Aleo', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 400;
    padding: 0 8px;
    margin: 0 10px;
    height: 30px;
    color: #333;
    vertical-align: middle;
}
.newsletter .mc-email::placeholder { color: #999; }

.newsletter input[type=submit].btn-ok {
    border: none;
    line-height: 30px;
    font-family: inherit;
}

.newsletter-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.newsletter-gdpr input[type=checkbox] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #007f7e;
}
.newsletter-gdpr label {
    margin-left: 0;
    font-size: 15px;
}
.newsletter-gdpr label a { color: #007f7e; }

.newsletter #mce-success-response { color: #007f7e; font-size: 15px; padding: 4px 0; }
.newsletter #mce-error-response   { color: #c0392b; font-size: 15px; padding: 4px 0; }
.newsletter .mce_inline_error {
    font-size: 12px !important;
    color: #c0392b !important;
    background: transparent !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
}

@media (max-width: 767px) {
    .newsletter .d-flex { flex-wrap: wrap; }
    .newsletter .mc-email {
        flex: 1 1 100%;
        order: 3;
        margin: 6px 0;
    }
    .newsletter input[type=submit].btn-ok { order: 4; }
    .newsletter .nl-text { display: none; }
    .newsletter .ed::after {
        content: 'odběr newsletteru';
        margin-left: 8px;
        color: #000;
        font-size: 20px;
        font-weight: 400;
    }
}

/* ── Cookie consent ──────────────────────────────────────── */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.cookie-bar.is-visible {
    transform: translateY(0);
}
.cookie-bar[hidden] {
    display: none;
}
.cookie-bar__inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.cookie-bar__text {
    flex: 1 1 360px;
    min-width: 0;
}
.cookie-bar__text strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cookie-bar__text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.cookie-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cookie-bar__btn {
    padding: 10px 20px;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
}
.cookie-bar__btn--reject {
    background: #fff;
    color: #333;
    border-color: #ccc;
}
.cookie-bar__btn--reject:hover {
    background: #f4f4f4;
}
.cookie-bar__btn--settings {
    background: transparent;
    color: #007f7e;
    border-color: #007f7e;
}
.cookie-bar__btn--settings:hover {
    background: #007f7e;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cookie-bar__actions {
        justify-content: stretch;
    }
    .cookie-bar__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ── Cookie manažer (modal) ─────────────────────────────── */
.cookie-modal .modal-content {
    border-radius: 8px;
    border: none;
}
.cookie-modal .modal-header {
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 24px;
}
.cookie-modal .modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.cookie-modal .modal-body {
    padding: 24px;
}
.cookie-modal__intro {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}
.cookie-modal__footer {
    border-top: 1px solid #e6e6e6;
    padding: 16px 24px;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-cat {
    padding: 18px 0;
    border-top: 1px solid #ececec;
}
.cookie-cat:first-of-type {
    border-top: none;
    padding-top: 0;
}
.cookie-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.cookie-cat__title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.cookie-cat__desc {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Switch (toggle) */
.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.cookie-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.cookie-switch label {
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
}
.cookie-switch label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-switch input[type="checkbox"]:checked + label {
    background: #007f7e;
}
.cookie-switch input[type="checkbox"]:checked + label::after {
    transform: translateX(20px);
}
.cookie-switch input[type="checkbox"]:focus-visible + label {
    outline: 2px solid #7b67a8;
    outline-offset: 2px;
}
.cookie-switch--locked label {
    background: #007f7e;
    opacity: 0.5;
    cursor: not-allowed;
}
.cookie-switch__hint {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Odkaz „Nastavení cookies" v patičce */
.cookie-settings-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.cookie-settings-link:hover {
    color: #007f7e;
}

/* ── A11y utilities (WCAG 2.1 AA) ───────────────────────── */

/* Skip-link — viditelný pouze při fokusu klávesnicí (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: #7b67a8;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 2px solid #cc7900;
    outline-offset: 0;
}

/* Visually hidden — text dostupný pro screen readery, neviditelný vizuálně */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Globální focus-visible indikátor (WCAG 2.4.7) — přebíjí outline:none v MOA.css */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #7b67a8;
    outline-offset: 2px;
}
/* Search/newsletter inputs mají transparent pozadí — pro lepší viditelnost box-shadow */
.searchBox input[type="text"]:focus-visible,
.newsletter .mc-email:focus-visible,
.site-header__search-input:focus-visible {
    outline: 2px solid #7b67a8;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(123, 103, 168, 0.15);
}
