/* --- DESIGN SYSTEM & ZÁKLAD --- */

:root {
    --primary-sage: #8da399; 
    --primary-dark: #2c3e50;
    --accent-sand: #f4f1ea;
    --text-dark: #333333;
    --text-light: #ffffff;
    --white: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --spacing-section: 80px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-sage);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-sage);
    color: var(--primary-sage);
}

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

/* --- NAVIGACE & HLAVIČKA PRO VŠECHNY STRÁNKY --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-sage);
    font-weight: 600;
}

/* Partneři: render as a regular nav link (no button background) */

/* Hamburger menu styl */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* UNIVERZÁLNÍ PAGE HEADER (použito na podstránkách) */
.page-header {
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.2)), url('obrazek1.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Univerzální HERO (pro O Institutu apod. - aliasy k page-header) */
.about-hero, .zone-hero, .page-hero {
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.2)), url('obrazek1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.about-hero h1, .zone-hero h1, .page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-hero p, .zone-hero p, .page-hero p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}


/* --- PATIČKA --- */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4, .footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer ul, .footer-col ul {
    list-style: none;
}

.footer ul li, .footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =========================================
   SPECIFICKÉ STYLY JEDNOTLIVÝCH STRÁNEK 
   ========================================= */

/* --- 1. INDEX.HTML --- */
.hero {
    background-color: var(--accent-sand);
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.6)), url('mistnost.jpg');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: flex-end; 
    text-align: center;
    color: var(--white);
    padding-bottom: 150px; 
}
.hero-content { width: 100%; }
.hero-content h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 3rem; }
.hero-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.hero-item h2 { color: var(--primary-sage); font-size: 2rem; margin-bottom: 10px; }
.hero-item p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; font-weight: 300; line-height: 1.4; }
.hero-intro { max-width: 800px; margin: 0 auto; }
.hero-intro h1 { font-family: 'Lora', serif; color: var(--white); font-size: 3.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.hero-intro p { color: rgba(255, 255, 255, 0.95); font-size: 1.35rem; font-weight: 300; line-height: 1.6; }

.personas { margin-top: -50px; padding-bottom: var(--spacing-section); }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 30px; }
.persona-card { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s; }
.persona-card:hover { transform: translateY(-5px); }
.persona-icon { font-size: 2.5rem; color: var(--primary-sage); margin-bottom: 20px; }

.community-bar { background-color: var(--accent-sand); padding: 15px 0; border-bottom: 1px solid #e0e0e0; }
.community-flex { display: flex; justify-content: space-between; align-items: center; }
.news-alert { font-weight: 600; color: var(--primary-dark); display: flex; align-items: center; gap: 10px; }
.news-tag { background: var(--primary-sage); color: white; padding: 2px 8px; font-size: 0.8rem; border-radius: 4px; text-transform: uppercase; }

.training-highlight { padding: var(--spacing-section) 0; background-color: var(--white); }
.training-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.training-info h2 { font-size: 2.5rem; }
.training-meta { display: flex; gap: 20px; margin: 20px 0; }
.meta-item { display: flex; align-items: center; gap: 10px; color: #666; }
.countdown-box { background-color: var(--primary-sage); color: var(--white); padding: 30px; border-radius: 8px; text-align: center; }
.deadline-date { font-size: 2rem; font-weight: 700; font-family: var(--font-heading); margin: 10px 0; }

/* --- 2. ABSOLVENTI.HTML --- */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 80px; }
.section-title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 20px; border-bottom: 2px solid var(--accent-sand); padding-bottom: 10px; }
.event-card { background: white; border: 1px solid #eee; border-radius: 8px; padding: 25px; margin-bottom: 20px; display: flex; gap: 20px; transition: 0.3s; }
.event-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--primary-sage); }
.date-box { background: var(--accent-sand); padding: 15px; border-radius: 4px; text-align: center; min-width: 80px; height: fit-content; }
.date-box .day { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); display: block; }
.date-box .month { font-size: 0.9rem; text-transform: uppercase; }
.event-info h3 { margin-bottom: 5px; color: var(--primary-dark); }
.event-meta { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.library-box { background: white; padding: 25px; border-radius: 8px; border: 1px solid #eee; }
.resource-list li { padding: 15px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; }
.resource-list li:last-child { border-bottom: none; }
.icon-doc { color: var(--primary-sage); font-size: 1.2rem; }
.btn-full { background: var(--primary-sage); color: white; width: 100%; display: block; text-align: center; padding: 10px; border-radius: 4px; font-weight: 600; margin-top: 15px; }
.btn-full:hover { background: var(--primary-dark); }

/* --- 3. O-INSTITUTU.HTML --- */
.mission-box { background: var(--accent-sand); padding: 50px 60px; margin: 50px auto; border-radius: 8px; text-align: left; max-width: 1200px; }
.mission-box h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 20px; }
.team-section { padding: 50px 0; }
.team-title { text-align: center; margin-bottom: 14px; font-size: 2.2rem; }
.team-subtitle { text-align: center; max-width: 720px; margin: 0 auto 40px; color: #666; font-style: italic; }
.team-section { padding-top: 50px; }
.team-section + .team-section { border-top: 1px solid #eee; margin-top: 40px; }

/* === Partneři grid === */
.partners-section {
    padding: 50px 0;
    border-top: 1px solid #eee;
    margin-top: 50px;
}
.partners-section > h2 { font-size: 2rem; margin-bottom: 8px; }
.section-lead { color: #666; margin-bottom: 30px; max-width: 720px; }
.partners-subhead {
    font-family: 'Lora', serif;
    color: var(--primary-dark, #2c3e50);
    margin: 30px 0 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.partners-subhead i { color: var(--primary-sage, #8da399); }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}
.partner-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.partner-logo-wrap {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f7f6f2;
    border: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}
.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.partner-logo-fallback {
    width: 100%;
    height: 100%;
    background: var(--primary-sage, #8da399);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.partner-info { flex: 1; min-width: 0; }

/* === Spolupracující organizace – stránka === */
.org-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.org-card-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
    margin-bottom: 22px;
}
.org-logo-box { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.org-logo-img { max-width: 100%; max-height: 120px; height: auto; width: auto; display: block; object-fit: contain; }
.org-card-titles { flex: 1; min-width: 0; }
.org-card-titles h2 {
    margin: 0 0 6px;
    font-family: 'Lora', serif;
    color: var(--primary-dark, #2c3e50);
    font-size: 1.5rem;
}
.org-tagline {
    color: #666;
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}
.org-card-body p { line-height: 1.7; color: #444; margin-bottom: 14px; }
.org-card-body h3 {
    font-family: 'Lora', serif;
    color: var(--primary-dark, #2c3e50);
    margin: 24px 0 12px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.org-card-body h3 i { color: var(--primary-sage, #8da399); }
.org-activities {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.org-activities li {
    padding: 10px 0 10px 24px;
    border-bottom: 1px solid #f4f4f4;
    position: relative;
    line-height: 1.6;
    color: #444;
}
.org-activities li:last-child { border-bottom: none; }
.org-activities li::before {
    content: "›";
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--primary-sage, #8da399);
    font-weight: 600;
    font-size: 1.2rem;
}
.org-contact-box {
    background: #f7f6f2;
    border-left: 4px solid var(--primary-sage, #8da399);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 18px;
}
.org-contact-box h4 {
    margin: 0 0 10px;
    font-family: 'Lora', serif;
    color: var(--primary-dark, #2c3e50);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.org-contact-box h4 i { color: var(--primary-sage, #8da399); }
.org-contact-box p { margin: 4px 0; font-size: 0.95rem; }
@media (max-width: 640px) {
    .org-card { padding: 22px; }
    .org-card-header { flex-direction: column; text-align: center; }
    .org-logo-img { max-width: 220px; margin: 0 auto; }
}
a.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: var(--primary-sage, #8da399);
}
.partner-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--primary-dark, #2c3e50);
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.partner-desc { font-size: 0.88rem; color: #666; line-height: 1.5; }

/* === Spolupracující organizace box === */
.cooperating-org {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}
.cooperating-org:last-of-type { border-bottom: none; }
.cooperating-org strong {
    display: block;
    font-family: 'Lora', serif;
    color: var(--primary-dark, #2c3e50);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.cooperating-org p { font-size: 0.9rem; color: #555; margin: 4px 0; line-height: 1.5; }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-card { text-align: center; background: white; padding: 20px 10px; border: 1px solid #eee; border-radius: 8px; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.team-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center center; margin-bottom: 20px; border: 3px solid var(--accent-sand); background-color: #f0f0f0; }
.avatar-placeholder { width: 140px; height: 140px; background-color: var(--primary-sage); border-radius: 50%; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.team-name { font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 5px; min-height: 3em; display: flex; align-items: center; justify-content: center; }
.team-role { color: #666; font-size: 0.85rem; font-style: italic; margin-bottom: 15px; min-height: 3em; }
.team-card p { font-size: 0.9rem; }

.admin-row { margin-top: 32px; padding-top: 24px; border-top: 1px dashed #ddd; }
.admin-card { display: flex; align-items: center; gap: 24px; background: #fafafa; padding: 20px 24px; border-radius: 8px; border: 1px solid #eee; max-width: 720px; }
.admin-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: 70% center; border: 3px solid var(--accent-sand); flex-shrink: 0; background-color: #f0f0f0; }
.admin-info { flex: 1; }
.admin-name { font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 2px; }
.admin-role { color: #666; font-size: 0.9rem; font-style: italic; margin-bottom: 8px; }
.admin-info p { font-size: 0.9rem; margin: 0; }
@media (max-width: 600px) {
    .admin-card { flex-direction: column; text-align: center; }
}

.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: auto; }
.btn.disabled:hover, .btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.history-section { padding: 60px 0; border-top: 1px solid #eee; margin-top: 60px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* --- 4. ADRESAR.HTML --- */
.directory-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; max-width: var(--container-width); margin: 0 auto 80px; padding: 0 20px; }
#map-container { grid-column: 1 / -1; height: 500px; width: 100%; margin-bottom: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; z-index: 1; }
.sidebar-col { display: flex; flex-direction: column; gap: 16px; height: fit-content; position: sticky; top: 100px; align-self: start; }
.filters { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: fit-content; }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-size: 1.1rem; border-bottom: 2px solid var(--primary-sage); padding-bottom: 5px; margin-bottom: 15px; font-family: var(--font-heading); }
.checkbox-label { display: block; margin-bottom: 8px; cursor: pointer; }
.checkbox-label input { margin-right: 10px; accent-color: var(--primary-sage); }

.search-bar { background: var(--white); padding: 16px 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 0.85rem; pointer-events: none; }
.search-input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.search-input:focus { outline: none; border-color: var(--primary-sage); box-shadow: 0 0 0 2px rgba(141, 163, 153, 0.18); }
.search-input::placeholder { color: #aaa; }
.btn-filter { width: 100%; padding: 12px; background: var(--primary-sage); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.btn-filter:hover { background: var(--primary-dark); }
.reset-link { font-size: 0.8rem; color: #888; margin-top: 10px; text-align: center; cursor: pointer; text-decoration: underline; display: block; }

.therapist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr)); gap: 20px; }
.therapist-card { background: var(--white); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; cursor: pointer; transition: all 0.3s ease; border-left: 5px solid var(--primary-sage); }
.therapist-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.therapist-card.hidden { display: none; }
.card-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.card-basic-info h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 5px; font-family: var(--font-heading); }
.card-basic-info p { margin: 0; color: #666; font-size: 0.9rem; }
.expand-icon { transition: 0.3s; color: var(--primary-sage); }
.card-details { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; background-color: #fafafa; border-top: 1px solid #eee; }
.card-details-inner { padding: 20px; display: flex; gap: 20px; }
.therapist-card.open .card-details { max-height: 500px; }
.therapist-card.open .expand-icon { transform: rotate(180deg); }
.therapist-card.open { border-left-color: var(--primary-dark); }

.t-photo { width: 80px; height: 80px; border-radius: 50%; background-color: #e0e0e0; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; }
.t-info-grid { flex-grow: 1; }
.info-row { margin-bottom: 8px; font-size: 0.9rem; display: flex; gap: 10px; word-break: break-word; }
.info-row i { color: var(--primary-sage); margin-top: 4px; width: 15px; }
.tags { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: var(--white); border: 1px solid #ddd; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; color: #555; }
.tag.role-supervizor { background-color: #eef5f2; border-color: var(--primary-sage); color: var(--primary-dark); font-weight: 600; }
.tags-header { margin-top: 8px; }
.tags-header .tag { background: #f5e8d0; border-color: #d4ad6c; color: #6b4a17; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }
.tags-header .tag.role-supervizor { background-color: var(--primary-sage); border-color: var(--primary-sage); color: var(--white); }
.insurance-badge { background-color: #e3f2fd; color: #1565c0; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 5px; font-weight: 600;}

/* --- 5. O-METODE.HTML --- */
.rogers-section { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rogers-img img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.rogers-text blockquote { font-style: italic; border-left: 4px solid var(--primary-sage); padding-left: 20px; margin: 20px 0; color: #555; }
.pillars-section { background-color: var(--primary-dark); color: white; padding: 80px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 40px; }
.pillar-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.pillar-card h3 { color: var(--primary-sage); font-size: 1.5rem; }
.pillar-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-sage); }
.abstract-bg { background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('rogers.png'); background-size: cover; background-attachment: fixed; padding: 80px 0; }
.resources-section { background-color: var(--accent-sand); padding: 80px 0; }
.resources-intro { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.resources-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.col-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #e0ded5; }
.col-header h3 { margin-bottom: 0; font-size: 1.6rem; color: var(--primary-dark); }
.col-header i { color: var(--primary-sage); font-size: 1.4rem; }
.doc-card { background: var(--white); padding: 25px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.3s ease; display: flex; align-items: flex-start; gap: 20px; border: 1px solid transparent; }
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--primary-sage); }
.doc-icon { background-color: #f4f8f6; width: 50px; height: 50px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon i { color: var(--primary-sage); font-size: 1.5rem; }
.doc-content { flex-grow: 1; }
.doc-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 5px; line-height: 1.3; }
.doc-meta { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.doc-download { font-size: 0.85rem; font-weight: 600; color: var(--primary-sage); display: flex; align-items: center; gap: 5px; }
.doc-card:hover .doc-download { color: var(--primary-dark); }

/* --- 6. VYCVIKY.HTML --- */
.layout-container { max-width: var(--container-width); margin: 0 auto 80px; padding: 0 20px; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.sidebar-menu { background: var(--white); border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); overflow: hidden; position: sticky; top: 100px; }
.sidebar-title { background: var(--primary-sage); color: white; padding: 15px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.sidebar-links button, .sidebar-links a { display: block; width: 100%; text-align: left; padding: 15px 20px; border: none; background: none; border-bottom: 1px solid #eee; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark); cursor: pointer; transition: 0.3s; }
.sidebar-links button:hover, .sidebar-links a:hover { background-color: var(--accent-sand); color: var(--primary-dark); padding-left: 25px; }
.sidebar-links button.active { background-color: var(--accent-sand); font-weight: 600; border-left: 4px solid var(--primary-dark); }
.sidebar-links a i { margin-left: 5px; font-size: 0.8rem; opacity: 0.5; }
.content-area { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); min-height: 500px; }
.content-section { display: none; animation: fadeIn 0.4s ease; }
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.content-area h2 { color: var(--primary-dark); font-family: var(--font-heading); border-bottom: 2px solid var(--accent-sand); padding-bottom: 10px; margin-bottom: 20px; }
.content-area h3 { color: var(--primary-sage); margin-top: 30px; margin-bottom: 15px; font-family: var(--font-heading); }
ul.styled-list { list-style: disc; padding-left: 20px; margin-bottom: 20px; color: #555; }
ul.styled-list li { margin-bottom: 8px; }
.info-box { background-color: var(--accent-sand); padding: 20px; border-left: 4px solid var(--primary-sage); margin: 20px 0; border-radius: 4px; }
.btn-action { display: inline-block; background: var(--primary-sage); color: white; padding: 12px 25px; border-radius: 4px; font-weight: 600; margin-top: 20px; }
.btn-action:hover { background: var(--primary-dark); }

/* --- 7. PRIHLASKA.HTML --- */
.form-wrapper { max-width: 700px; margin: 60px auto; background: var(--white); padding: 50px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h1 { font-family: var(--font-heading); color: var(--primary-dark); margin-bottom: 10px; }
.form-header p { color: #666; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; transition: 0.3s; }
input:focus, select:focus { border-color: var(--primary-sage); outline: none; box-shadow: 0 0 0 3px rgba(141, 163, 153, 0.2); }
.file-upload { border: 2px dashed #ccc; padding: 30px; text-align: center; border-radius: 6px; background: #fafafa; cursor: pointer; transition: 0.3s; position: relative; }
.file-upload:hover { border-color: var(--primary-sage); background: #f0f4f2; }
.file-upload input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.btn-submit { width: 100%; padding: 15px; background-color: var(--primary-sage); color: white; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background-color: var(--primary-dark); }


/* Tlačítko pro rozbalení filtrů – viditelné jen na mobilu */
.filter-toggle-btn {
    display: none;
}

/* =========================================
   MEDIA QUERIES (Mobilní responzivita)
   ========================================= */
@media (max-width: 1024px) { 
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } 
}

@media (max-width: 768px) {
    /* Hamburger & Menu */
    .hamburger { display: block; }
    .nav-links {
        display: none; 
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 10px; font-size: 1.1rem; }
    .logo { font-size: 1.4rem; }
    .logo-img { height: 40px; }

    /* Různé opravy velikostí na mobilu */
    .hero-content h1, .about-hero h1, .zone-hero h1, .page-header h1 { font-size: 2.2rem !important; margin-bottom: 1.5rem; }
    .hero-item h2 { font-size: 1.5rem; }
    .hero-item p, .about-hero p, .zone-hero p, .page-header p { font-size: 1rem; }
    .training-info h2 { font-size: 2rem; }

    /* Přeštosování gridů pod sebe */
    .hero-pillars, 
    .training-wrapper,
    .persona-grid,
    .footer-grid,
    .dashboard-grid,
    .info-grid,
    .directory-layout,
    .rogers-section,
    .pillars-grid,
    .resources-layout,
    .layout-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Specifické opravy / marginy */
    .hero { padding-bottom: 50px; min-height: auto; padding-top: 50px; }
    .news-alert { font-size: 0.8rem; }
    .community-flex { flex-direction: column; gap: 10px; text-align: center; }
    #map-container { height: 280px; }
    .sidebar-menu { position: static; margin-bottom: 30px; }
    .page-header { padding: 40px 20px; }
    .form-wrapper { margin: 20px; padding: 30px; }
    .mission-box { padding: 30px 22px; margin: 30px 0; }
    .mission-box h2 { font-size: 1.6rem; }
    .info-box { padding: 16px 14px !important; }

    /* Adresář – mobilní filtry */
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: calc(100% - 40px);
        margin: 0 20px 0;
        padding: 12px 20px;
        background: var(--primary-sage);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font-body);
    }

    .sidebar-col {
        position: static;
        gap: 12px;
    }

    .filters {
        position: static;
        display: none;
        margin: 0 20px;
        width: calc(100% - 40px);
    }

    .filters.filters-open {
        display: block;
    }

    .search-bar {
        margin: 0 20px;
        width: calc(100% - 40px);
        padding: 14px 16px;
    }

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

    .directory-layout {
        padding: 0;
        margin-bottom: 40px;
    }

    .therapist-grid {
        padding: 0 20px;
        margin-top: 20px;
    }
}

/* === Aktuality & Akce === */
.legend-bar {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 0.95rem;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.legend-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.legend-public { background: #d4ad6c; }
.legend-graduates { background: var(--primary-sage); }

.section-title {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.event-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
    border-left: 6px solid #ddd;
    position: relative;
}
.event-card.event-public { border-left-color: #d4ad6c; }
.event-card.event-graduates { border-left-color: var(--primary-sage); }
.event-card.past { opacity: 0.7; }

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-public { background: #f5e8d0; color: #6b4a17; border: 1px solid #d4ad6c; }
.badge-graduates { background: #eef5f2; color: var(--primary-dark); border: 1px solid var(--primary-sage); }

.event-date {
    background: #f9f9f9;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #eee;
}
.event-public .event-date { background: #fbf4e6; }
.event-graduates .event-date { background: #f0f6f3; }
.event-day { font-family: 'Lora', serif; font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); line-height: 1.1; }
.event-month { font-size: 0.95rem; color: #555; text-transform: lowercase; margin-top: 5px; }
.event-year { font-size: 0.85rem; color: #888; margin-top: 3px; }

.event-body { padding: 25px 30px 25px 0; }
.event-body h3 { font-family: 'Lora', serif; font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 10px; padding-right: 180px; }
.event-place { font-size: 0.95rem; color: #555; margin-bottom: 5px; }
.event-place i { color: var(--primary-sage); margin-right: 5px; }

.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.past-label {
    display: inline-block;
    background: #e0e0e0;
    color: #555;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.past-events {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
}
.past-events summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 5px 0;
}
.past-events summary:hover { color: var(--primary-sage); }
.past-list { margin-top: 15px; padding-left: 20px; line-height: 1.8; font-size: 0.95rem; color: #555; }

@media (max-width: 768px) {
    .event-card { grid-template-columns: 1fr; }
    .event-date { border-right: none; border-bottom: 1px solid #eee; padding: 15px; flex-direction: row; gap: 8px; }
    .event-body { padding: 20px; }
    .event-body h3 { padding-right: 0; padding-top: 30px; }
    .event-badge { top: 10px; right: 10px; }
    .legend-bar { flex-direction: column; gap: 10px; }
}

/* ===== Home info panely (titulka) ===== */
.home-info { padding: 60px 0 80px; background: #fafaf7; }
.home-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.info-panel {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.info-panel-training { border-top: 4px solid var(--primary-sage, #8da399); }
.info-panel-events   { border-top: 4px solid #d4a85a; }
.info-panel-header h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 8px 0 12px;
}
.info-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-sage, #8da399);
    background: #eef3f0;
    padding: 5px 12px;
    border-radius: 20px;
}
.info-panel-tag-amber { color: #b8881f; background: #faf2dd; }
.info-panel-lead { color: #555; line-height: 1.6; margin-bottom: 18px; }
.info-panel-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex: 1;
}
.info-panel-facts li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ed;
    font-size: 0.95rem;
    color: #444;
}
.info-panel-facts li:last-child { border-bottom: none; }
.info-panel-facts i { color: var(--primary-sage, #8da399); width: 20px; margin-right: 8px; }
.info-panel-events-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px;
    flex: 1;
}
.info-panel-events-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0ed;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.95rem;
    color: #555;
}
.info-panel-events-list li:last-child { border-bottom: none; }
.event-mini-date {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b8881f;
}
.info-panel-events-list strong { color: #2c3e50; font-size: 1.05rem; }
.info-panel-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .home-info-grid { grid-template-columns: 1fr; }
    .info-panel { padding: 25px; }
}

/* ===== Sidebar (vycviky) – skupiny ===== */
.sidebar-group-label {
    margin-top: 18px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
}

/* ===== Karty výcviků ===== */
.training-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0 40px;
}
.training-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.training-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef3f0;
    color: var(--primary-sage, #8da399);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.training-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}
.training-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 20px;
    font-size: 0.88rem;
    color: #666;
}
.training-card-meta i { color: var(--primary-sage, #8da399); margin-right: 5px; }
.training-card-cta { margin-top: auto; }

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

/* ===== O metodě – Rogers ===== */
.rogers-flex {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    margin: 25px 0;
}
.rogers-portrait img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.rogers-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}
.rogers-body p {
    margin-bottom: 16px;
    line-height: 1.75;
    color: #333;
}
.method-quote {
    background: #f7f5f1;
    border-left: 4px solid #b88a4a;
    padding: 22px 26px;
    margin: 30px 0;
    font-family: 'Lora', serif;
    font-style: italic;
    color: #444;
    line-height: 1.7;
    border-radius: 0 6px 6px 0;
}
.method-quote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.88rem;
    color: #888;
    font-family: 'Inter', sans-serif;
}

/* ===== O metodě – pilíře ===== */
.method-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}
.method-pillar {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
}
.method-pillar > .method-pillar-icon { grid-row: span 3; align-self: center; }
.method-pillar-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef3f0;
    color: var(--primary-sage, #8da399);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.method-pillar h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.method-pillar p { color: #555; line-height: 1.6; font-size: 0.95rem; margin: 0 0 10px; }
.method-pillar h3 { margin: 0 0 8px; text-align: left; }
.method-pillar > p:first-of-type {
    font-style: italic;
    color: #444;
    margin-bottom: 12px;
}
.pillar-commentary {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 640px) {
    .method-pillar { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 24px; }
    .method-pillar h3 { text-align: center; }
    .method-pillar > .method-pillar-icon { grid-row: auto; }
}

/* ===== O metodě – karty směrů ===== */
.method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.method-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 26px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--primary-sage, #8da399);
}
.method-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #faf2dd;
    color: #b88a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.method-card h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.method-card p { color: #555; line-height: 1.6; font-size: 0.93rem; margin: 0; }

/* Expandable variant (uses <details>) */
.method-card-expandable { padding: 0; }
.method-card-expandable summary {
    list-style: none;
    cursor: pointer;
    padding: 26px;
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    gap: 14px;
    align-items: center;
    transition: background 0.2s;
    position: relative;
}
.method-card-expandable summary::-webkit-details-marker { display: none; }
.method-card-expandable summary::marker { display: none; content: ''; }
.method-card-expandable summary:hover { background: #fafaf7; }
.method-card-expandable summary > .method-card-icon { grid-row: span 2; align-self: start; }
.method-card-expandable summary > h3 { grid-column: 2; margin: 0 0 4px; }
.method-card-expandable summary > p { grid-column: 2; }
.method-card-expandable summary > .method-card-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--primary-sage, #8da399);
    transition: transform 0.25s ease;
}
.method-card-expandable[open] summary > .method-card-chevron { transform: rotate(180deg); }
.method-card-expandable[open] { border-color: var(--primary-sage, #8da399); }
.method-card-detail {
    padding: 4px 26px 26px;
    border-top: 1px solid #ececec;
    margin-top: 6px;
    animation: fadeIn 0.3s ease;
}
.method-card-detail p { color: #444; line-height: 1.7; font-size: 0.95rem; margin: 14px 0 0; }
.method-card-detail p:first-child { margin-top: 14px; }
@media (max-width: 640px) {
    .method-card-expandable summary { padding: 20px; grid-template-columns: 40px 1fr 22px; gap: 10px; }
    .method-card-detail { padding: 4px 20px 20px; }
}

/* ===== Literatura – tagy na kartách ===== */
.book-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    justify-content: space-between;
}
.book-tag {
    background: #eef3f0;
    color: var(--primary-sage, #8da399);
    border: 1px solid #c9d8d0;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Knihovna – polička ===== */
.bookshelf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 20px;
    border-bottom: 2px solid #ececec;
    padding-bottom: 0;
}
.shelf-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #666;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.shelf-tab:hover { color: var(--primary-sage, #8da399); }
.shelf-tab.active {
    color: var(--primary-sage, #8da399);
    border-bottom-color: var(--primary-sage, #8da399);
    font-weight: 600;
}
.bookshelf-wrap {
    background: linear-gradient(180deg, #f5f1ea 0%, #ebe4d6 100%);
    padding: 25px;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    min-height: 200px;
}
.bookshelf {
    display: none;
    grid-template-columns: 1fr;
    gap: 16px;
}
.bookshelf.shelf-active { display: grid; }

.book-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.book-spine {
    width: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.book-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.book-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}
.book-title {
    font-family: 'Lora', serif;
    font-size: 0.98rem;
    color: #2c3e50;
    margin: 2px 0 4px;
    line-height: 1.3;
}
.book-author { font-size: 0.85rem; color: #666; font-weight: 600; }
.book-pub    { font-size: 0.8rem;  color: #888; line-height: 1.4; }
.book-links {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.book-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f1ea;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}
.book-links a:hover { background: var(--primary-sage, #8da399); color: #fff; }

.book-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--primary-sage, #8da399);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.book-download-btn:hover { background: var(--primary-dark, #2c3e50); }
.book-download-btn i { font-size: 0.9rem; }

/* ===== Výzkum: lehce zvýrazněná police (širší hřbet, větší titulek) ===== */
.bookshelf-vyzkum { gap: 18px; }
.bookshelf-vyzkum .book-spine { width: 50px; font-size: 1.4rem; }
.bookshelf-vyzkum .book-title { font-size: 1.1rem; }

/* ===== Rozkliknutelná studie – anotace + hlavní zjištění ===== */
.study-details {
    margin-top: 14px;
    border: 1px solid #e6e2dc;
    border-radius: 6px;
    background: #fbf9f5;
    overflow: hidden;
    transition: box-shadow 0.2s, background 0.2s;
}
.study-details[open] {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.study-details summary {
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark, #2c3e50);
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.study-details summary::-webkit-details-marker { display: none; }
.study-details summary::marker { display: none; content: ''; }
.study-details summary:hover { background: #f3eee5; }
.study-chevron {
    transition: transform 0.25s ease;
    font-size: 0.78rem;
    color: var(--primary-sage, #8da399);
}
.study-details[open] .study-chevron { transform: rotate(90deg); }
.study-details-body {
    padding: 4px 16px 16px 16px;
    border-top: 1px solid #ece7df;
    background: #fff;
    animation: studyFadeIn 0.25s ease;
}
@keyframes studyFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}
.study-abstract {
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 12px 0 14px;
    color: #333;
    text-align: justify;
}
.study-label {
    color: var(--primary-sage, #8da399);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
    margin-right: 4px;
}
.study-findings-title {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    margin: 14px 0 8px;
    color: var(--primary-dark, #2c3e50);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ece7df;
}
.study-findings-title i { color: #c9a961; font-size: 0.85rem; }
.study-findings {
    margin: 0;
    padding-left: 22px;
    list-style: none;
}
.study-findings li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #444;
    position: relative;
    padding-left: 4px;
}
.study-findings li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-sage, #8da399);
}
.study-findings li strong { color: var(--primary-dark, #2c3e50); }
.study-findings li em { color: #6c7a89; font-style: italic; }

@media (max-width: 768px) {
    /* Obsahový rámec — méně paddingu, ať se vejde víc textu */
    .content-area { padding: 22px 16px; }
    .content-area h2 { font-size: 1.5rem; }
    .content-area h3 { font-size: 1.15rem; }

    /* Knihovní polička — užší okraj */
    .bookshelf-wrap { padding: 14px; }
    .bookshelf { gap: 14px; }

    /* Záložky polic — menší rozestupy a font */
    .bookshelf-tabs { gap: 4px; margin: 18px 0 14px; }
    .shelf-tab { padding: 8px 10px; font-size: 0.82rem; }

    /* Karta knihy — hřbet jako horní pruh, větší ikona */
    .bookshelf .book-card { flex-direction: column; }
    .bookshelf .book-spine { width: 100%; height: 42px; font-size: 1.3rem; }
    .bookshelf-vyzkum .book-spine { height: 48px; font-size: 1.5rem; }
    .book-body { padding: 14px 14px 16px; }
    .book-title { font-size: 1rem; }
    .bookshelf-vyzkum .book-title { font-size: 1.05rem; }
    .book-pub { font-size: 0.78rem; }

    /* Tlačítko stáhnout PDF — přes celou šířku */
    .book-download-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }

    /* Rozkliknutelný panel */
    .study-details summary { padding: 10px 12px; font-size: 0.88rem; }
    .study-details-body { padding: 4px 12px 14px; }
    .study-abstract { text-align: left; font-size: 0.9rem; }
    .study-findings { padding-left: 20px; }
    .study-findings li { font-size: 0.88rem; }

    /* Info-callout v sekci Výzkum — menší padding */
    .content-section .info-callout { padding: 18px 16px; }
}

@media (max-width: 480px) {
    /* Velmi úzké displeje (iPhone SE apod.) */
    .content-area { padding: 18px 12px; }
    .bookshelf-wrap { padding: 10px; }
    .shelf-tab { padding: 7px 8px; font-size: 0.78rem; }
    .book-body { padding: 12px; }
    .study-details summary { font-size: 0.85rem; padding: 9px 10px; }
    .study-details-body { padding: 4px 10px 12px; }
}

/* ===== Knihovna – feature grid ===== */
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.library-feature {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.library-feature i {
    font-size: 1.8rem;
    color: var(--primary-sage, #8da399);
    margin-bottom: 12px;
}
.library-feature h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.library-feature p { color: #555; font-size: 0.92rem; line-height: 1.5; }

.library-contact-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}
.library-contact-box h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.library-contact-box p { margin-bottom: 8px; line-height: 1.5; }
.library-contact-box i { color: var(--primary-sage, #8da399); width: 18px; margin-right: 6px; }

.info-callout {
    background: #f7f5f1;
    border-left: 4px solid var(--primary-sage, #8da399);
    border-radius: 0 8px 8px 0;
    padding: 22px 26px;
    margin: 25px 0;
}
.info-callout h3 {
    font-family: 'Lora', serif;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.info-callout p { color: #555; line-height: 1.6; }
.resource-list { list-style: none; padding: 0; margin-top: 10px; }
.resource-list li { padding: 6px 0; color: #555; }

.conditions-list {
    margin: 14px 0 0 0;
    padding-left: 24px;
    counter-reset: cond;
    list-style: none;
}
.conditions-list li {
    position: relative;
    padding: 8px 0 8px 38px;
    line-height: 1.65;
    color: #444;
    counter-increment: cond;
    border-bottom: 1px solid #efece6;
}
.conditions-list li:last-child { border-bottom: none; }
.conditions-list li::before {
    content: counter(cond);
    position: absolute;
    left: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-sage, #8da399);
    color: #fff;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conditions-list li strong { color: var(--primary-dark, #2c3e50); }

/* Sjednocená typografie pro content-section nadpisy a odstavce */
.content-section h2 {
    font-family: 'Lora', serif;
    font-size: 1.9rem;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef3f0;
}
.content-section h3 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 28px 0 12px;
}
.content-section > p { line-height: 1.75; color: #333; margin-bottom: 14px; }

@media (max-width: 768px) {
    .rogers-flex { grid-template-columns: 1fr; }
    .rogers-portrait { max-width: 220px; margin: 0 auto; }
    .method-pillars,
    .method-cards,
    .library-grid { grid-template-columns: 1fr; }
}

/* === Adresář: přepínač zobrazení (malé dlaždice / seznam) === */
.view-switch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.view-switch .vs-count { color: #777; font-size: 0.9rem; margin-right: auto; }
.view-switch .vs-seg { display: inline-flex; border: 1px solid var(--primary-sage); border-radius: 8px; overflow: hidden; }
.view-switch .vs-seg button { border: 0; background: var(--white); padding: 8px 14px; cursor: pointer; font: inherit; font-size: 0.88rem; color: var(--primary-dark); }
.view-switch .vs-seg button.on { background: var(--primary-sage); color: var(--white); }

/* malé dlaždice (výchozí) */
.therapist-grid.view-male { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; align-items: start; }
.view-male .therapist-card, .view-list .therapist-card { border-left-width: 4px; }
.view-male .card-header { padding: 10px 12px; }
.view-male .card-basic-info h3 { font-size: 0.95rem; line-height: 1.25; margin-bottom: 3px; }
.view-male .card-basic-info p { font-size: 0.8rem; }
.view-male .tags-header { margin-top: 5px; }
.view-male .tags-header .tag { padding: 1px 8px; font-size: 0.72rem; }
.view-male .card-details-inner, .view-list .card-details-inner { padding: 10px 12px; }
.view-male .t-photo, .view-list .t-photo { display: none; }
.view-male .info-row, .view-list .info-row { font-size: 0.85rem; margin-bottom: 4px; }
.view-male .therapist-card:hover, .view-list .therapist-card:hover { transform: none; }

/* kompaktní seznam */
.therapist-grid.view-list { grid-template-columns: 1fr; gap: 0; background: var(--white); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.view-list .therapist-card { border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee; border-left-width: 4px; }
.view-list .therapist-card:hover { background: #f6faf8; box-shadow: none; }
.view-list .card-header { padding: 9px 16px; }
.view-list .card-basic-info { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(110px, 1.6fr) auto; gap: 12px; align-items: center; flex: 1; }
.view-list .card-basic-info h3 { font-size: 0.97rem; margin: 0; }
.view-list .card-basic-info p { font-size: 0.85rem; }
.view-list .tags-header { margin: 0; }
.view-list .tags-header .tag { padding: 1px 8px; font-size: 0.72rem; }
.view-list .insurance-badge { display: none; }
.therapist-card.hidden { display: none; }
@media (max-width: 768px) {
    .view-list .card-basic-info { grid-template-columns: 1fr; gap: 3px; }
}

/* --- O METODĚ: dlaždicová navigace (kresba tužkou) --- */
.layout-container.tiles-layout { display: block; padding-top: 30px; }
.method-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 34px; align-items: start; }
.method-tiles button { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 8px 12px; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; font-family: var(--font-body); color: var(--text-dark); transition: transform .2s; }
.method-tiles button svg { width: 72px; height: 72px; color: #3b3b3b; margin-bottom: 8px; filter: url(#pencil); opacity: .88; transition: opacity .2s; }
.method-tiles button svg .fill { fill: url(#hatch); }
.method-tiles button strong { font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; line-height: 1.25; color: var(--primary-dark); }
.method-tiles button span { font-size: 0.78rem; color: #777; }
.method-tiles button:hover { transform: translateY(-2px); }
.method-tiles button:hover svg, .method-tiles button.active svg { opacity: 1; }
.method-tiles button.active strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 1000px) { .method-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .method-tiles { grid-template-columns: repeat(2, 1fr); } .method-tiles button span { display: none; } .method-tiles button svg { width: 56px; height: 56px; } }
