:root {
    --mainBlue: #1a3066;
    --mainBlueOver: #0e255a;
    --mainGold: #b17300;
    --mainGoldOver: #cf8701;
    --mainBlack: #000;
    --mainBlackOver: #191919;
    --mainWhite: #fff;
    --mainGray: #f7f7f7;
}     


/* === HEADER === */
.header {
    position: fixed;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: all 100ms ease;
}

/* Container s max-width */
.header__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Hlavní content s flexem */
.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.header__logo {
    flex: 0 0 auto;
}

.header__logo a {
    display: block;
    line-height: 0;
}

.header__logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease, opacity 0.3s ease;
}

/* Přepínání log - výchozí stav (desktop, nahoře) */
.header__logo-white {
    display: block;
}

.header__logo-color {
    display: none;
}

/* Po scrollu - barevné logo */
.header--scrolled .header__logo-white {
    display: none;
}

.header--scrolled .header__logo-color {
    display: block;
}

/* Hlavní navigace */
.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header__menu {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 35px;
    align-items: center;
}

.header__menu li {
    margin: 0;
    list-style-type: none;
}

.header__menu a {
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header__menu a:hover {
    color: var(--mainGold);
}

/* Po scrollu - tmavý text menu */
.header--scrolled .header__menu a {
    color: var(--mainBlue) !important;
}

.header--scrolled .header__menu a:hover {
    color: var(--mainBlueOver) !important;
}

/* Pravá strana - akce */
.header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* CTA tlačítko s ikonkou */
.header__cta,
.header__mobile-cta a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: var(--mainGold) !important;
    color: var(--mainWhite) !important;
    padding: 15px 30px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.header__cta:hover,
.header__mobile-cta a:hover {
    background-color: var(--mainGoldOver) !important;
}

.header__cta-icon {
    flex-shrink: 0;
}

/* Mobilní CTA v menu - skryté na desktopu */
.header__mobile-cta {
    display: none;
}

/* Mobile menu toggle - Hamburger/Cross */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1002;
}

.header__toggle span {
    width: 28px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Po scrollu - tmavý hamburger */
.header--scrolled .header__toggle span {
    background-color: var(--mainBlue);
}

/* Animace hamburger -> křížek */
.header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Scrolled state - zmenšený header s bílým pozadím */
.header--scrolled {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.header--scrolled .header__logo img {
    height: 60px;
}

/* === RESPONZIVITA === */

/* Desktop pod 1650 */
@media (max-width: 1650px) {    
    .header__container {
        padding: 0 30px;
    }
}

/* Tablet */
@media (max-width: 1280px) {
    .header {
        border-radius: 0;
    }
    
    .header__container {
        padding: 0 30px;
    }
    
    .header__content {
        gap: 30px;
    }
    
    .header__menu {
        gap: 25px;
    }
    
    .header__menu a {
        font-size: 14px;
    }
    
    .header__cta {
        padding: 10px 22px !important;
        font-size: 14px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Mobile - vždy bílé pozadí a barevné logo */
    .header {
        padding: 15px 0;
        background: #fff;
    }
    
    .header__logo-white {
        display: none !important;
    }
    
    .header__logo-color {
        display: block !important;
    }
    
    .header__menu a {
        color: var(--mainBlack) !important;
    }
    
    .header__toggle span {
        background-color: #000;
    }
    
    .header__container {
        padding: 0 20px;
    }
    
    .header__content {
        gap: 20px;
    }
    
    .header__logo img {
        height: 60px;
    }
    
    /* Mobile navigace vyjíždějící pod hlavičku */
    .header__nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--mainWhite);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 30px;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        
        /* Animace - schované nahoře */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s ease,
                    visibility 0s linear 0.4s;
    }
    
    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s ease,
                    visibility 0s linear 0s;
    }
    
    .header__menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .header__menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        
        /* Animace jednotlivých položek */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .header__menu li:last-child {
        border-bottom: none;
    }

    /* Postupná animace položek menu */
    .header__nav.active .header__menu li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header__nav.active .header__menu li:nth-child(1) { transition-delay: 0.1s; }
    .header__nav.active .header__menu li:nth-child(2) { transition-delay: 0.15s; }
    .header__nav.active .header__menu li:nth-child(3) { transition-delay: 0.2s; }
    .header__nav.active .header__menu li:nth-child(4) { transition-delay: 0.25s; }
    .header__nav.active .header__menu li:nth-child(5) { transition-delay: 0.3s; }
    .header__nav.active .header__menu li:nth-child(6) { transition-delay: 0.35s; }
    
    .header__menu a {
        display: block;
        padding: 18px 0;
        font-size: 18px;
    }
    
    .header__cta {
        display: none !important;
    }

    /* Mobilní CTA v menu */
    .header__mobile-cta {
        display: block !important;
        margin-top: 20px !important;
        text-align: center;
    }
    
    .header__toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header__nav {
        padding: 20px;
        top: 60px;
        max-height: calc(100vh - 60px);
    }
}


/* Newsletter formulář */
.newsletter-form {
  width: 100%;
  max-width: 660px;
  margin: 30px auto;
}

.newsletter-content {
  display: flex;
}

.newsletter-field-email {
  flex: 1;
}

.newsletter-input {
  width: 100%;
  padding: 0 16px !important;
  border: none;
  font-size: 16px;
  height: 56px;
  line-height: 56px;
  outline: none;
  box-sizing: border-box;
}

.newsletter-input:focus {
  background-color: #dfdfdf;
}

.newsletter-submit {
  background-color: var(--mainGold);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  padding: 0 24px;
  height: 56px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-submit:hover {
  background-color: var(--mainGoldOver);
}

.newsletter-submit:disabled {
  background-color: var(--mainGold);
  cursor: wait;
}

.newsletter-form p.note {
  padding-top: 15px;
  color: #fff;
  text-align: center;
}


/* Zprávy po odeslání */
.newsletter-message {
  width: 100%;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 14px;
}

.newsletter-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newsletter-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 📱 Responzivní úpravy */
@media (max-width: 600px) {
  .newsletter-content  {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-input,
  .newsletter-submit {
    width: 100%;
    height: 50px;
  }
}


/* Submenu - Flexbox layout */
.submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center; /* Centrování položek - řeší lichý počet */
}

.submenu-item {
    flex: 0 1 calc(25% - 15px); /* Nerostou, jen se zmenšují */
    min-width: 220px;
    max-width: calc(25% - 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 25px;
    background-color: var(--mainGray);
    border: 1px solid #e5e5e5;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background-color: var(--mainBlueOver);
    border-color: var(--mainBlueOver);
}

.submenu-item:hover .submenu-icon,
.submenu-item:hover .submenu-title,
.submenu-item:hover .submenu-desc {
    color: var(--mainWhite);
}

/* Aktivní stav */
.submenu-item.is-active {
    background-color: var(--mainBlue);
    border-color: var(--mainBlue);
}

.submenu-item.is-active .submenu-icon,
.submenu-item.is-active .submenu-title,
.submenu-item.is-active .submenu-desc {
    color: var(--mainWhite);
}

.submenu-item.is-active:hover {
    background-color: var(--mainBlueOver);
    border-color: var(--mainBlueOver);
}

/* Ikona - větší jako v originálu */
.submenu-icon {
    font-size: 64px;
    color: var(--mainBlue);
    margin-bottom: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

/* Nadpis */
.submenu-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--mainBlue);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Popisek */
.submenu-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* ===========================================
   STRETCH VARIANTA
   Položky se roztáhnou na celou šířku řádku
   =========================================== */

.submenu--stretch {
    justify-content: flex-start; /* Zarovnání doleva */
}

.submenu--stretch .submenu-item {
    flex: 1 1 calc(25% - 15px); /* Rostou i se zmenšují */
    max-width: calc(50% - 10px); /* Max 2 na řádek při roztažení */
}

/* ===========================================
   RESPONZIVITA
   =========================================== */

/* Tablet - 2 v řadě */
@media (max-width: 992px) {
    .submenu-item {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 200px;
    }
    
    .submenu--stretch .submenu-item {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobil - 1 v řadě */
@media (max-width: 576px) {
    .submenu {
        gap: 15px;
    }
    
    .submenu-item,
    .submenu--stretch .submenu-item {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: auto;
        padding: 30px 20px;
    }
    
    .submenu-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .submenu-title {
        font-size: 16px;
    }
}



/* Upravení DIVI */

@media (max-width: 980px) {
  .et_pb_row_1-4_1-4 > .et_pb_column.et_pb_column_1_4, .et_pb_row_1-4_1-4_1-2 > .et_pb_column.et_pb_column_1_4, .et_pb_row_4col > .et_pb_column.et_pb_column_1_4 {
    width: 100% !important;
    margin-right: 0 !important;
  }
}

#detail-prispevku {
}

#detail-prispevku h2 {
    padding: 2rem 0;
}

#detail-prispevku h3 {
    padding: 2rem 0;
}

#detail-prispevku h4 {
    padding: 2rem 0;
}

/* === MSZ FOOTER === */
.footer {
    position: relative;
    width: 100%;
}

/* Container s max-width */
.footer__container {
}

/* Hlavní content s flexem */
.footer__content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Desktop: zobrazit H3, skrýt button */
.footer__title--desktop {
    display: block;
}

.footer__accordion-toggle {
    display: none;
}

/* Společné styly pro sloupce */
.footer__col {
    flex: 1;
    min-width: 200px;
}

.footer__col--kontakt {
    flex: 0 0 280px;
    min-width: 250px;
}

.footer__btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 20px 25px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  color: var(--mainWhite) !important;
  background: var(--mainGold);
  transition: 350ms all ease;
  cursor: pointer;
}

.footer__btn:hover{
  text-decoration: none;
  background: var(--mainGoldOver);
}

.footer__btn:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


.footer__col--arealy {
    flex: 0 0 220px;
    min-width: 180px;
}

.footer__col--partneri {
    flex: 0 0 250px;
    min-width: 200px;
}

.footer__col--info {
    flex: 0 0 280px;
    min-width: 250px;
}

/* Titulky sloupců */
.footer__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--mainBlue);
    line-height: 1.3;
}

.footer__title--xxl {
    font-size: 30px;
}

/* Telefonní číslo */
.footer__phone {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #d4a017;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.footer__phone:hover {
    color: #b8890f;
}

/* Menu styly */
.footer__nav {
    margin: 0;
}

.footer__menu-list {
    list-style: disc;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
}

.footer__menu-list li {
    padding: 0 !important;
    margin-bottom: 15px;
    color: var(--mainBlue);
}

.footer__menu-list li::marker {
    color: var(--mainBlue);
}

.footer__menu-list a {
    color: var(--mainBlue);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer__menu-list a:hover {
    color: #d4a017;
}

/* Kontaktní informace */
.footer__address {
    margin-bottom: 15px;
}

.footer__address p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--mainBlue);
}

.footer__org-name {
    font-weight: 600;
    color: var(--mainBlue) !important;
}

.footer__ids {
    margin-bottom: 10px;
}

.footer__ids p {
    margin: 0;
    font-size: 18px;
    color: var(--mainBlue);
}

.footer__ids strong {
    color: var(--mainBlue);
}

.footer__ds {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--mainBlue);
}

.footer__ds strong {
    color: var(--mainBlue);
}

/* Sociální sítě */
.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    transition: transform 0.2s ease;
}

.footer__social-link:hover {
    transform: scale(1.05);
}

.footer__social-link::before {
    content: '';
    display: block;
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer__social-link--facebook::before {
    background-image: url('images/icon-facebook.png');
}

.footer__social-link--instagram::before {
    background-image: url('images/icon-instagram.png');
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Bottom bar */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    font-size: 16px;
    color: var(--mainBlue);
}

.footer__made a {
    color: var(--mainBlue);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer__made a:hover {
    color: var(--mainBlue);
}

/* === RESPONZIVITA === */

/* Tablet */
@media (max-width: 1200px) {
    .footer__content {
        gap: 30px;
    }
    
    .footer__col--kontakt,
    .footer__col--arealy,
    .footer__col--partneri,
    .footer__col--info {
        flex: 1 1 calc(50% - 20px);
        min-width: 250px;
    }
}

@media (max-width: 1024px) {
    .footer__container {
        padding: 0 30px;
    }
    
    .footer__phone {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
    }
    
    .footer__container {
        padding: 0 20px;
    }
    
    .footer__content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer__title--desktop {
        display: none;
    }
    
    .footer__accordion-toggle {
        display: flex;
        /* tvoje stávající styly pro button */
    }

    .footer__col--kontakt,
    .footer__col--arealy,
    .footer__col--partneri,
    .footer__col--info {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .footer__phone {
        font-size: 22px;
    }
    
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer__phone {
        font-size: 20px;
    }
}

/* ==========================================================================
   Footer Accordion - mobilní styly
   Přidat do hlavního CSS nebo style.css
   ========================================================================== */

/* Accordion toggle tlačítko */
.footer__accordion-toggle {
    display: none; /* Skryté na desktopu */
}

/* Accordion content - na desktopu vždy viditelné */
.footer__accordion-content {
    display: block;
}

/* ==========================================================================
   Mobile styles (768px a méně)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Toggle tlačítko - zobrazit na mobilu */
    .footer__accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        color: inherit;
        font: inherit;
        border-bottom: 1px solid var(--mainBlue);
        -webkit-tap-highlight-color: transparent;
    }
    
    .footer__accordion-toggle:focus {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
    
    .footer__accordion-toggle:focus:not(:focus-visible) {
        outline: none;
    }
    
    /* H3 uvnitř tlačítka - reset marginů */
    .footer__accordion-toggle .footer__title {
        margin: 0;
        flex: 1;
    }
    
    /* Ikona šipky */
    .footer__accordion-icon {
        position: relative;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin-left: 12px;
        color: var(--mainBlue);
    }
    
    .footer__accordion-icon::before,
    .footer__accordion-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        background-color: currentColor;
        transition: transform 0.3s ease;
    }
    
    /* Vertikální čárka (zmizí při otevření) */
    .footer__accordion-icon::before {
        left: 50%;
        width: 2px;
        height: 12px;
        transform: translate(-50%, -50%);
    }
    
    /* Horizontální čárka */
    .footer__accordion-icon::after {
        left: 50%;
        width: 12px;
        height: 2px;
        transform: translate(-50%, -50%);
    }
    
    /* Rotace ikony při otevření (+ → −) */
    .footer__accordion-toggle[aria-expanded="true"] .footer__accordion-icon::before {
        transform: translate(-50%, -50%) rotate(90deg);
        opacity: 0;
    }
    
    /* Accordion content - skryté na mobilu */
    .footer__accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-top: 0;
    }
    
    /* Otevřený stav */
    .footer__accordion-content.is-open {
        max-height: 500px; /* Dostatečná výška pro obsah */
        padding-top: 15px;
    }
    
    /* Alternativní varianta s chevronem místo +/- */
    /*
    .footer__accordion-icon::before {
        display: none;
    }
    
    .footer__accordion-icon::after {
        width: 10px;
        height: 10px;
        background: transparent;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translate(-50%, -70%) rotate(45deg);
    }
    
    .footer__accordion-toggle[aria-expanded="true"] .footer__accordion-icon::after {
        transform: translate(-50%, -30%) rotate(-135deg);
    }
    */
}
