/* ZAFA | Vlastní styly webu
   Pořadí pravidel respektuje původní CSS kaskádu.
   Obecné selektory jsou ponechány pro použití mimo konkrétní sekce. */

/* ==========================================================================
   Animované tlačítko
   ========================================================================== */

.style-button {
    background-color: white;
    transition: background 0.3s;
}

.style-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4.5em;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        #e7d73e 0em 0.5em, transparent 0.5em 0.8em,
        #e7d73e 0.8em 1.21em, transparent 1.21em 1.6em,
        #e7d73e 1.6em 1.92em, transparent 1.92em 2.4em,
        #e7d73e 2.4em 2.63em, transparent 2.63em 3.2em,
        #e7d73e 3.2em 3.34em, transparent 3.34em 4em,
        #e7d73e 4em 4.05em, transparent 4.05em 4.8em
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.style-button:hover::before {
    transform: translateX(0);
}

.style-button a {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Oddělovače a rozbalovací bloky osob
   ========================================================================== */

.radek {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-basis: 100%;
}

.cara {
    flex-grow: 1;
    height: 2px;
    background-color: #434c53;
}

.popisek {
    margin-left: 10px;
    white-space: nowrap;
    color: #ff5f15;
}

.main-container .nadpis {
    vertical-align: top;
    margin-right: 2em;
    white-space: nowrap;
}

.osoba-wrap {
    border: 2px solid #FF5F15;
    padding: 18px;
}

input:not(:checked) ~ .main-container .osoba-wrap {
    display: block;
}

input:checked ~ .main-container .osoba-wrap {
    display: none;
}

input:not(:checked) + label .popisek::before {
    content: attr(data-zavrit);
}

input:checked + label .popisek::before {
    content: attr(data-otevrit);
}

/* ==========================================================================
   Základní typografie a odkazy
   ========================================================================== */

article h1 {
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    font-weight: 600;
}

a {
    color: #E94B35;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
}

body {
    margin: auto;
    font-family: "Archivo", sans-serif;
    max-width: 1600px;
    background-color: #fff;
}

/* ==========================================================================
   Hlavička, navigace a kontaktní prvky
   ========================================================================== */

.header {
    padding-bottom: 30px;
    margin-top: 20px;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
}

.logo {
    background: #fff;
}

.logo img {
    display: block;
}

.nav-menu {
    margin-left: 100px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.active-nav {
    text-decoration: underline !important;
    color: #E94B35 !important;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    border: 1px solid #E6D82C;
    padding: 17px 32px;
    margin-left: 15px;
    font-weight: 500;
}

.contact-item:first-child {
    margin-left: 0;
}

.contact-item span {
    z-index: 1;
    color: #E94B35;
    margin-right: 8px;
}

.contact-item2 {
    display: flex;
    align-items: center;
    padding: 17px 32px;
    margin-left: 15px;
    font-weight: 500;
}

.contact-item2:first-child {
    margin-left: 0;
}

.contact-item2::before {
    content: "■";
    color: #E94B35;
    margin-right: 8px;
}

/* ==========================================================================
   Úvodní a hlavní obsah
   ========================================================================== */

.hero {
    margin-top: 40px;
}

.hero-container {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero img {
    height: auto;
    display: block;
}

.main {
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-item {
    flex: 1 1 48%;
    display: flex;
    border: 1px solid #E6D82C;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    height: 80px;
}

.main-item + .main-item {
    margin-left: 20px;
}

.main-item-text {
    flex: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 500;
}

.main-item-text em {
    font-style: italic;
    font-weight: 400;
    margin-right: 8px;
    z-index: 1;
}

.main-item-text strong {
    font-weight: 700;
    z-index: 1;
}

.main-item-arrow {
    width: 80px;
    border-left: 1px solid #E6D82C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ==========================================================================
   Sloupce a profily osob
   ========================================================================== */

.left-col {
    width: 48%;
    margin-top: 42px;
}

.right-col {
    width: 48%;
    margin-top: 42px;
}

.right-col-container {
    float: right;
}

.jmeno {
    text-transform: uppercase;
    font-weight: 600;
}

.osoba {
    line-height: 20px;
}

.osoba img {
    width: 200px;
}

.asociace {
    margin-top: 23px;
    border-left: solid 3px;
    padding-left: 10px;
}

/* ==========================================================================
   Nadpisy a podnadpisy
   ========================================================================== */

.nadpis {
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    font-weight: 300;
}

.nadpis-italic {
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    font-weight: 300;
    font-style: italic;
}

.nadpis-bold {
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    font-weight: 600;
}

.podnadpis {
    font-size: 18px;
    line-height: 24px;
}

.nadpis2-italic {
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 300;
    font-style: italic;
}

.nadpis2-bold {
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   Základní patička a tlačítka
   ========================================================================== */

.footer {
    border-top: 3px solid #E6D82C;
    margin: 120px 0 40px 0;
    padding-top: 40px;
}

.tlacitko {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 8px;
    width: 187px;
    height: 54px;
    background: #FF5F15;
    color: #fff;
}

.tlacitko:hover {
    background: #e65500;
}

/* ==========================================================================
   Modální okno ovládané pomocí :target
   ========================================================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay:target {
    display: flex;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    text-decoration: none;
    font-size: 4rem;
    line-height: 1;
    color: #333;
    background: #fcc;
}

.open-modal {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* ==========================================================================
   Odstupy jednotlivých sekcí
   ========================================================================== */

#spolupracujeme {
    margin-top: 150px;
}

#dokumenty h2 {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Mobilní rozložení (do 1000 px)
   ========================================================================== */

.menu-toggle {
    display: none;
    font-size: 38px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .container {
        flex-wrap: wrap;
        height: auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-left: 0;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 10px 0;
        font-size: 1.3em;
    }

    .contact-info {
        display: block;
        width: 95%;
        margin-top: 50px;
        float: left;
    }

    .contact-item {
        display: block;
        margin: 0;
        width: 80%;
        font-size: 18px;
        float: left;
        padding: 12px;
    }

    .contact-item2 {
        font-size: 18px;
        margin: 0;
        padding: 5px;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .main-container {
        flex-direction: column;
    }

    .main-item {
        flex: none;
        width: 100%;
        margin: 0 0 20px 0;
        height: 60px;
    }

    .main-item + .main-item {
        margin-left: 0;
    }

    .main-item-text {
        font-size: 1.3rem;
        padding: 0 16px;
    }

    .main-item-arrow {
        width: 60px;
    }

    .page-title {
        font-size: 28px;
    }

    .nadpis {
        font-size: 22px;
        line-height: 36px;
        text-transform: uppercase;
        font-weight: 300;
    }

    .nadpis-italic {
        font-size: 22px;
        line-height: 36px;
        text-transform: uppercase;
        font-weight: 300;
        font-style: italic;
    }

    .nadpis-bold {
        font-size: 22px;
        line-height: 36px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .nadpis2-italic {
        font-size: 18px;
        line-height: 22px;
        text-transform: uppercase;
        font-weight: 300;
        font-style: italic;
    }

    .nadpis2-bold {
        font-size: 18px;
        line-height: 22px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .download {
        float: left;
    }

    .download_name {
        float: left;
    }

    .download_info {
        float: left;
    }

    .left-col {
        width: 90%;
    }

    .left-col img {
        width: 90%;
    }

    .right-col {
        width: 90%;
    }

    .right-col img {
        width: 90%;
    }

    .osoba-wrap {
        float: left;
        width: 80%;
        margin-top: 50px;
    }

    .osoba {
        line-height: 42px;
        font-size: 22px;
    }

    .osoba .asociace {
        font-size: 18px;
        line-height: 18px;
    }

    .osoba img {
        width: 70%;
    }

    .paticka-goto-top {
        margin-top: 30px;
    }

    .modal-content {
        width: 90%;
        max-width: 1000px;
    }

}

/* ==========================================================================
   Dokumenty ke stažení
   ========================================================================== */

.download-container {
    flex-wrap: wrap;
    align-items: stretch;
}

.download {
    padding: 18px;
    flex: 0 0 300px;
    min-height: 6em;
}

.download_name {
    font-size: 16px;
    width: 100%;
}

.download_info {
    margin-top: auto;
    color: #666;
    font-size: 12px;
}

.download_icon img {
    max-width: 32px;
    display: block;
    margin-top: 5px;
    margin-left: auto;
}

.more-docs {
    flex-basis: 100%;
    width: 100%;
}

.more-docs a {
    display: inline-block;
    margin-top: 20px;
}

/* ==========================================================================
   Partnerské organizace (SK a EN)
   ========================================================================== */

.post-44 .item,
.partners-en .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.post-44 .logo,
.partners-en .logo {
    display: block;
    margin-bottom: 12px;
    max-width: 120px;
    height: auto;
}

.post-44 h2,
.partners-en h2 {
    padding-top: 2em;
}

/* ==========================================================================
   Fotografie: masky a dekorativní SVG symboly
   ========================================================================== */

.image-box,
.image-box2,
.image-box3 {
    position: relative;
}

.image-box {
    display: inline-block;
}

.image-box .photo,
.image-box2 .photo,
.image-box3 .photo {
    display: block;
    width: 100%;
}

.image-box .photo {
    border-radius: 100px;
}

.image-box::after,
.image-box2::after,
.image-box3::after {
    content: "";
    position: absolute;
    width: 20%;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.image-box::after {
    left: -5%;
    bottom: -5%;
    background-image: url("/assets/img/e/e1.svg");
}

.image-box2 {
    width: 100%;
}

.image-box2 .photo,
.image-box3 .photo {
    height: auto;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-mode: alpha;
}

.image-box2 .photo {
    mask-image: url("/assets/img/m/m1.svg");
}

.image-box2::after {
    right: -10%;
    top: 66.66%;
    transform: translateY(-50%);
    background-image: url("/assets/img/e/e2.svg");
}

.image-box3 {
    width: 100%;
}

.image-box3 .photo {
    mask-image: url("/assets/img/m/m2.svg");
}

.image-box3::after {
    left: -10%;
    top: 65%;
    transform: translateY(-50%);
    background-image: url("/assets/img/e/e3.svg");
}

/* ==========================================================================
   Kontaktní sekce
   ========================================================================== */

#contacts .main-container {
    background-color: #e5d32e;
    position: relative;
    z-index: 0;
}

#contacts .main-container .cutout {
    z-index: -1;
    position: absolute;
    left: 0;
    top: 4em;
    width: 40px;
    height: 80px;
    background: white;
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
}

#contacts .main-container .cutout.right {
    left: 40px;
}

.zafa-contacts {
    background: #ebd936;
    color: #171717;
    padding: 40px;
    position: relative;
}

.zafa-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.zafa-contacts h2 {
    font-size: 32px;
    margin: 0 0 30px;
}

.zafa-contacts h3 {
    font-size: 24px;
    margin: 0 0 15px;
}

.zafa-contacts p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.zafa-contacts a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zafa-contacts a:hover {
    text-decoration: none;
}

.zafa-contacts .contact-link {
    font-size: 20px;
    font-weight: 600;
}

.zafa-contacts .registration {
    font-size: 13px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.zafa-contacts .registration p {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .zafa-contacts {
        padding: 25px !important;
    }

    .zafa-contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}

section.zafa-contacts::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 0;
    width: 90px;
    height: 90px;
    display: block;
    background-image: url("/assets/img/e/e4.svg") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    section.zafa-contacts::after {
        top: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }

}

/* ==========================================================================
   Patička: rozložení, kontakty a odkaz nahoru
   ========================================================================== */

section.footer {
    background: #fff;
    padding: 35px 0 !important;
    color: #171717;
}

section.footer .main-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px 60px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

section.footer .logo img {
    display: block;
    object-fit: contain;
}

section.footer .contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 70px;
}

section.footer .contact-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

section.footer .contact-group span {
    font-size: 13px;
    color: #666;
}

section.footer .contact-group a {
    color: #171717;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

section.footer .contact-group a:hover {
    text-decoration: underline;
}

section.footer .paticka-goto-top {
    background: none;
    padding: 0;
    width: auto;
}

section.footer .paticka-goto-top a {
    display: block;
    width: auto;
    height: auto;
    border: none;
    background: none;
    transition: opacity 0.2s;
}

section.footer .paticka-goto-top img {
    display: block;
    width: 240px;
    height: auto;
}

section.footer .paticka-goto-top a:hover {
    opacity: 0.8;
    background: none;
}

@media (max-width: 768px) {
    section.footer .paticka-goto-top img {
        width: 150px;
    }

}

section.footer .footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #e5e5e5;
    padding-top: 18px;
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    section.footer .main-container {
        grid-template-columns: 1fr auto;
        gap: 25px;
    }

    section.footer .contact-info {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        gap: 20px;
    }

    section.footer .paticka-goto-top {
        grid-column: 2;
        grid-row: 1;
    }

}

/* ==========================================================================
   Společné zarovnání obsahových bloků
   ========================================================================== */

.main,
.hero-container {
    max-width: 1440px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

section.footer .main-container {
    padding-left: 20px;
    padding-right: 20px;
}

.download-container .download {
    width: 100%;
    margin: 0;
}

.more-docs {
    grid-column: 1 / -1;
}

.header .container {
    max-width: 1440px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Hlavička na desktopu
   ========================================================================== */

@media (min-width: 1001px) {
    .header .nav-menu {
        margin-left: 40px;
    }

    .header .nav-menu li {
        margin: 0 8px;
    }

    .header .nav-menu a {
        white-space: nowrap;
    }

    .header .contact-item {
        padding: 17px 20px;
        margin-left: 10px;
        white-space: nowrap;
    }

    .header .logo,
    .header .contact-info {
        flex-shrink: 0;
    }

}

/* ==========================================================================
   Navigace: animované podtržení a aktivní položky
   ========================================================================== */

.header .nav-menu li {
    margin: 0;
}

.header .nav-menu a {
    position: relative;
    display: block;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header .nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: #E6D82C;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.header .nav-menu a:hover,
.header .nav-menu a.active-nav {
    color: #FF5F15 !important;
}

.header .nav-menu a:hover::after,
.header .nav-menu a.active-nav::after,
.header .nav-menu a:focus-visible::after {
    transform: scaleX(1);
}

@media (max-width: 1000px) {
    .header .nav-menu a {
        font-size: 18px;
        padding: 14px 20px;
        white-space: normal;
    }

}

/* ==========================================================================
   Šířka a linky hlavičky a patičky
   ========================================================================== */

section.header,
section.footer,
.header,
.footer {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.header,
section.footer {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    border-bottom: 4px solid #E6D82C;
}

section.footer {
    border-top: 4px solid #E6D82C;
}

.header .container,
section.footer .main-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Jednotný vzhled karet dokumentů a partnerů
   ========================================================================== */

.download,
.post-44 .item,
.partners-en .item {
    background: #fff;
    border: 1px solid #E6D82C;
    border-radius: 0;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    transition: background-color 0.2s ease;
}

.download:hover,
.post-44 .item:hover,
.partners-en .item:hover {
    background-color: #fffce5;
}

.download-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.post-44 .wrapper,
.partners-en .wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-left: 0;
}

.post-44 .item,
.partners-en .item {
    height: 150px;
    padding: 20px;
}

/* ==========================================================================
   Responzivní mřížky dokumentů a partnerů
   ========================================================================== */

@media (max-width: 1000px) {
    .download-container,
    .post-44 .wrapper,
    .partners-en .wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {
    .download-container,
    .post-44 .wrapper,
    .partners-en .wrapper {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================================
   Vrstvení dekorativních efektů
   ========================================================================== */

.style-button,
.download {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.style-button::before,
.download::before {
    z-index: -1;
    pointer-events: none;
}

/* ==================================================
   Orgány ZAFA – karty osob
   ================================================== */

/* ==================================================
   ORGÁNY ZAFA – KARTY OSOB
   ================================================== */

/* Mřížka karet */
.main-container.osoby-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch !important;
    width: 100%;
}

/* Karta osoby */
.osoby-grid .osoba-wrap {
    width: 100%;
    margin: 0;
    padding: 20px;
    float: none;
    box-sizing: border-box;
    border: 1px solid #E6D82C;
    background: #fff;
    transition: background-color 0.2s ease;
}

/* Zvýraznění karty při najetí */
.osoby-grid .osoba-wrap:hover {
    background-color: #fffce5;
}

/* Vnitřní uspořádání karty */
.osoby-grid .osoba {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 16px;
    line-height: 1.4;
}

/* Odstranění původních zalomení */
.osoby-grid .osoba > br {
    display: none;
}

/* Portrét */
.osoby-grid .osoba img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Jméno */
.osoby-grid .jmeno {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Funkce v organizaci */
.osoby-grid .osoba em {
    font-size: 15px;
    min-height: 24px;
    margin-bottom: 15px;
}

/* Profesní příslušnost */
.osoby-grid .osoba .asociace {
    margin-top: auto;
    border-left: 3px solid #E6D82C;
    padding-left: 10px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

/* Tablet – dva sloupce */
@media (max-width: 1000px) {
    .main-container.osoby-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobilní zařízení – jeden sloupec */
@media (max-width: 600px) {
    .main-container.osoby-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Rozbalování a sbalování sekcí
   ================================================== */

.radek {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
    cursor: pointer;
}

/* Oddělovací linka */
.cara {
    flex-grow: 1;
    height: 2px;
    background-color: #E6D82C;
}

/* Text ovládacího prvku */
.popisek {
    color: #171717;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Zvýraznění při najetí myší */
.radek:hover .popisek {
    color: #FF5F15;
}

/* Text podle aktuálního stavu */
input:not(:checked) + label .popisek::before {
    content: attr(data-zavrit);
}

input:checked + label .popisek::before {
    content: attr(data-otevrit);
}

.osoba-wrap {
    border: 1px solid #E6D82C;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
}

/* ==================================================
   Finální sjednocení grafického vzhledu
   ================================================== */

/* Menší vertikální mezery mezi sekcemi */
.main {
    margin-bottom: 70px;
}

#spolupracujeme {
    margin-top: 100px;
}

.footer {
    margin-top: 80px;
}

/* Tlačítka – jednotný žlutý rámeček */
.tlacitko {
    background: #fff;
    color: #171717;
    border: 1px solid #E6D82C;
    box-sizing: border-box;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tlacitko a {
    color: inherit;
    text-decoration: none;
}

.tlacitko:hover {
    background-color: #fffce5;
    text-decoration: none;
}

/* Kontakty v hlavičce bez podtržení */
.header .contact-info a {
    text-decoration: none;
}

.header .contact-info a:hover {
    color: #FF5F15;
}

/* Černobílé portréty členů orgánů */
.osoby-grid .osoba img {
    filter: grayscale(100%);
}

/* Kompaktnější mezery na mobilních zařízeních */
@media (max-width: 768px) {
    .main {
        margin-bottom: 40px;
    }

    #spolupracujeme {
        margin-top: 60px;
    }

    .footer {
        margin-top: 60px;
    }
}


/* Kompaktní varianta tlačítka pod textem */
.main-item.text-more {
    display: inline-flex;
    width: auto;
    height: 54px;
    margin: 20px 0 0;
    flex: none;
}

.main-item.text-more .main-item-text {
    font-size: 16px;
    padding: 0 20px;
}

.main-item.text-more .main-item-arrow {
    width: 54px;
    font-size: 20px;
}

.main-item.text-more {
    display: flex;
    width: fit-content;
    height: 54px;
    margin: 20px 0 0 auto;
    flex: none;
}

/* Varianta tlačítka zarovnaná doleva */
.main-item.text-more.text-more-left {
    margin-left: 0;
    margin-right: auto;
}

/* Tlačítko pod mřížkou dokumentů */
.download-container > .main-item.text-more {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 20px;
}

/* Volitelná varianta se zarovnáním doleva */
.download-container > .main-item.text-more-left {
    justify-self: start;
}

/* Doprovodný text přes celou šířku mřížky */
.osoby-grid > .osoby-text {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
}
/* Skrytí celé mřížky včetně doprovodného textu */
input:checked ~ .osoby-grid {
    display: none !important;
}

input:not(:checked) ~ .osoby-grid {
    display: grid;
}
