/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 0 0 10px 10px;
    z-index: 9999;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    color: var(--color-text);
    position: relative;
    padding-bottom: 18px;
    letter-spacing: -0.02em;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    background: var(--color-season);
    border-radius: 2px;
}
.section-title--left { text-align: left; }
.section-title--left::after { left: 0; transform: none; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s cubic-bezier(0.16,1,0.3,1), color 0.22s;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Directional fill - animovaná vrstva přichází zleva */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0,0,0,0.12);
    transform: translateX(-101%);
    transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    z-index: -1;
}
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(0.97); }

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); text-decoration: none; }

.btn-primary {
    background: var(--color-season);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: 600;
}
.btn-outline::before { background: rgba(233,30,140,0.07); }

/* === TOP BAR === */
.topbar {
    background: #F8F8F8;
    border-bottom: 1px solid #EEE;
    font-size: 13px;
    color: #555;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.topbar__links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.topbar__links a:hover { color: var(--color-primary); }
.topbar__links span { margin: 0 8px; color: #CCC; }
.topbar__phone { color: var(--color-primary); font-weight: 600; }

.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__fb {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1877F2;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.2s;
}
.topbar__fb:hover { opacity: 0.75; text-decoration: none; }

@media (max-width: 640px) {
    .topbar__links { display: none; }
    .topbar__fb span { display: none; }
}

/* === SITE HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header__logo { display: flex; align-items: center; }
.header__logo img { height: 50px; width: auto; }
.header__logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

/* === NAVIGATION === */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
    background: var(--color-bg-light);
    color: var(--color-primary);
}
.nav-list > li.current-menu-item > a {
    border-bottom: 2px solid var(--color-season);
    border-radius: 8px 8px 0 0;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px;
    list-style: none;
    z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.dropdown li a:hover { background: var(--color-bg-light); color: var(--color-primary); }

/* Hamburger */
.nav-close { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s;
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 999;
        padding: 80px 24px 24px;
        flex-direction: column;
    }
    .nav-menu.is-open { display: flex; }
    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        color: var(--color-text);
        padding: 8px;
        border-radius: 50%;
        transition: background 0.15s;
    }
    .nav-close:hover { background: #f0f0f0; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a { font-size: 18px; padding: 14px 8px; border-bottom: 1px solid #F0F0F0; }
    .dropdown { display: none !important; }
}

/* === HERO === */
.hero {
    position: relative;
}

.hero__bg {
    position: relative;
    min-height: 88vh;
    background-color: #1a0520;
    background-image: linear-gradient(140deg, #1a0520 0%, #3d0a40 45%, #c2185b 80%, #e91e8c 100%);
    display: flex;
    align-items: center;
    padding-bottom: 60px; /* space for wave */
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.22) 60%, rgba(0,0,0,0.08) 100%);
    z-index: 1;
}

.hero__spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 60% at 72% 48%,
        rgba(255, 184, 48, 0.13) 0%,
        transparent 68%
    );
    pointer-events: none;
    z-index: 2;
}

/* Layout */
.hero__layout {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 56px;
    padding-top: 56px;
    padding-bottom: 24px;
    width: 100%;
}

.hero__left { flex: 1 1 auto; min-width: 0; }

.hero__layout--split .hero__left  { flex: 0 0 54%; max-width: 54%; }
.hero__layout--split .hero__right { flex: 0 0 42%; max-width: 42%; }

/* Eyebrow */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 18px;
}

.hero__title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    margin-bottom: 18px;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.hero__tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 34px;
    max-width: 520px;
    line-height: 1.68;
}

/* Action buttons */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__cta { font-size: 16px; padding: 15px 38px; }

.hero__ghost-link {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.hero__ghost-link:hover { color: #fff; text-decoration: none; }

/* Stats pill */
.hero__stats {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 14px 8px;
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}
.hero__stat-item strong {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.hero__stat-item span {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
}
.hero__stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.22);
    flex-shrink: 0;
}

/* Photo frame */
.hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero__photo-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    position: relative;
    z-index: 1;
    transform: rotate(-2deg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.38), 0 4px 16px rgba(0,0,0,0.2);
}

.hero__blob {
    position: absolute;
    inset: -9%;
    z-index: 0;
    background: var(--color-season);
    opacity: 0.22;
    border-radius: 52% 52% 46% 46% / 62% 62% 40% 40%;
    transform: rotate(-2deg);
    animation: heroBlobPulse 10s ease-in-out infinite alternate;
}

@keyframes heroBlobPulse {
    0%   { transform: scale(1)    rotate(-2deg); }
    100% { transform: scale(1.03) rotate(-1deg); }
}

/* === Season-aware hero photo shapes === */

/* Summer: kruh = slunce */
body.season-summer .hero__photo-frame img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: rotate(0deg);
}
body.season-summer .hero__blob {
    border-radius: 50%;
    opacity: 0.18;
    inset: -12%;
    transform: rotate(0deg);
    animation: heroBlobPulse 8s ease-in-out infinite alternate;
}

/* Autumn: tvar listu - protilehlé zaoblené rohy */
body.season-autumn .hero__photo-frame img {
    border-radius: 0% 72% 0% 72% / 0% 62% 0% 62%;
    transform: rotate(-14deg);
}
body.season-autumn .hero__blob {
    border-radius: 0% 68% 0% 68% / 0% 58% 0% 58%;
    transform: rotate(-14deg);
    inset: -7%;
    animation: heroBlobPulse 12s ease-in-out infinite alternate;
}

/* Winter: hexagon - geometrie sněhové vločky */
body.season-winter .hero__photo-frame img {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    transform: rotate(15deg);
}
body.season-winter .hero__blob {
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    border-radius: 0;
    opacity: 0.16;
    transform: rotate(15deg);
    animation: heroBlobPulse 16s ease-in-out infinite alternate;
}

/* Wave divider */
.hero__sun-ghost {
    position: absolute;
    left: 13%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(280px, 34vw, 460px);
    height: clamp(280px, 34vw, 460px);
    opacity: 0.055;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
.hero__sun-rays,
.hero__sun-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hero__sun-rays {
    animation: sunRaysSpin 28s linear infinite;
    transform-origin: center center;
}
@keyframes sunRaysSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__sun-rays { animation: none; }
}
/* V létě točící sluníčka řeší sezónní dekorace - rotaci loga vypnout */
body.season-summer .hero__sun-rays { animation: none; }
@media (max-width: 768px) {
    .hero__sun-ghost {
        width: 200px; height: 200px;
        opacity: 0.06;
        left: 50%;
        transform: translateX(-50%) translateY(-30%);
    }
    .hero__sun-rays { animation: none; }
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}
.hero__wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero__layout--split {
        flex-direction: column-reverse;
        gap: 32px;
    }
    .hero__layout--split .hero__left,
    .hero__layout--split .hero__right {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .hero__right { justify-content: center; }
    .hero__photo-frame { max-width: 260px; }
    .hero__tagline { max-width: 100%; }
}

@media (max-width: 640px) {
    .hero__bg { min-height: auto; padding-bottom: 0; }
    .hero__layout { padding-top: 28px; padding-bottom: 88px; gap: 20px; }
    .hero__photo-frame { max-width: 160px; }
    .hero__stats { flex-wrap: nowrap; justify-content: center; padding: 10px 4px; width: 100%; }
    .hero__stat-item { padding: 4px 8px; flex: 1 1 0; min-width: 0; }
    .hero__stat-item strong { font-size: 1.2rem; }
    .hero__stat-sep { height: 28px; }
    .hero__wave svg { height: 44px; }
    .ms-wave svg { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__blob { animation: none !important; }
}

/* === AKTUALITY SEKCE === */
.aktuality-section { padding: 88px 0 80px; background: #FAFAFA; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .posts-grid { grid-template-columns: 1fr; } }

/* === POST CARD === */
.post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--card-color, #E91E8C) 10%, transparent), 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.2), box-shadow 0.28s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--card-color, #E91E8C) 20%, transparent), 0 4px 12px color-mix(in srgb, var(--card-color, #E91E8C) 10%, transparent);
}
.post-card__accent { height: 4px; flex-shrink: 0; }

.post-card__img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__img { transform: scale(1.04); }

.post-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.post-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.post-card__date { font-size: 13px; color: #777; }
.post-card__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { font-size: 14px; color: #555; line-height: 1.55; flex: 1; }
.post-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
}
.post-card__link:hover { text-decoration: underline; }

/* Load more */
.load-more-wrap { text-align: center; }
.load-more-btn { min-width: 240px; }
.load-more-btn.is-loading { opacity: 0.6; pointer-events: none; }
.load-more-btn.is-hidden { display: none; }

/* === KDO JSME === */
.kdo-jsme-section { padding: 80px 0; background: var(--color-bg-light); }
.kdo-jsme__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.kdo-jsme__content { font-size: 16px; line-height: 1.8; color: #444; }
.kdo-jsme__image img {
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
@media (max-width: 768px) {
    .kdo-jsme__inner { grid-template-columns: 1fr; gap: 32px; }
    .kdo-jsme__image { order: -1; }
}

/* === HODNOTY === */
.hodnoty-section { padding: 88px 0; background: #F7F7F8; }
.hodnoty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 480px) { .hodnoty-grid { grid-template-columns: 1fr; } }

/* Horizontální layout - ikona vlevo, text vpravo */
.hodnota-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    padding: 28px 28px 28px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px color-mix(in srgb, var(--val-color, var(--color-primary)) 10%, transparent), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--val-color, var(--color-primary));
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.2), box-shadow 0.28s;
    position: relative;
}
.hodnota-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--val-color, var(--color-primary)) 22%, transparent), 0 4px 12px color-mix(in srgb, var(--val-color, var(--color-primary)) 10%, transparent);
}
.hodnota-item--1 { --val-color: #E91E8C; }
.hodnota-item--2 { --val-color: #43A047; }
.hodnota-item--3 { --val-color: #FF9800; }
.hodnota-item--4 { --val-color: #2196F3; }

.hodnota-item__icon {
    font-size: 26px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--val-color, var(--color-primary)) 12%, white);
}
.hodnota-item--1 .hodnota-item__icon { background: #FFE8F5; }
.hodnota-item--2 .hodnota-item__icon { background: #E8F5E9; }
.hodnota-item--3 .hodnota-item__icon { background: #FFF3E0; }
.hodnota-item--4 .hodnota-item__icon { background: #E3F2FD; }

.hodnota-item__content { flex: 1; min-width: 0; }
.hodnota-item__title { font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--color-text); }
.hodnota-item__text { font-size: 14px; color: #555; line-height: 1.65; }

/* === CTA BANNER === */
.cta-banner {
    background: var(--color-season);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-banner__text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
.cta-banner__btn {
    background: #fff;
    color: #1a1a1a;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.cta-banner__btn:hover { background: rgba(255,255,255,0.93); box-shadow: 0 6px 28px rgba(0,0,0,0.22); }
@media (max-width: 640px) { .cta-banner__inner { flex-direction: column; text-align: center; } }

/* === PROJEKTY === */
.projekty-section { padding: 72px 0; background: var(--color-bg-light); }
.projekty-logos {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.projekty-logos img { height: 60px; width: auto; filter: grayscale(20%); }
.projekty-text { text-align: center; color: #555; font-size: 14px; max-width: 680px; margin: 0 auto; line-height: 1.75; }

/* === KONTAKT === */
.kontakt-section { padding: 80px 0; }
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.kontakt-list { list-style: none; margin-top: 24px; }
.kontakt-list li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.kontakt-list li:last-child { border-bottom: none; }
.kontakt-list a { color: var(--color-primary); }

/* === FOOTER === */
.site-footer {
    background: #1c1c1c;
    color: #aaa;
    margin-top: 80px;
    border-top: 3px solid var(--color-season);
}

/* Tři sloupce */
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
}

/* Branding sloupec */
.footer__school-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}
.footer__school-sub {
    font-size: 13px;
    color: #777;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.footer__contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.footer__contact-list a { color: #ccc; text-decoration: none; transition: color 0.2s; }
.footer__contact-list a:hover { color: #fff; }
.footer__contact-list span { color: #aaa; }

/* Sloupce s nadpisem */
.footer__col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-season);
    margin: 0 0 20px;
}

/* Rychlé odkazy */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }

/* Provozní info */
.footer__info-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__info-row { display: flex; flex-direction: column; gap: 2px; }
.footer__info-row dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    font-weight: 600;
}
.footer__info-row dd {
    margin: 0;
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

/* Spodní lišta */
.footer__bottom {
    border-top: 1px solid #2e2e2e;
}
.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.footer__copy { font-size: 13px; color: #666; margin: 0; }
.footer__copy a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer__copy a:hover { color: #ccc; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { color: #666; font-size: 13px; transition: color 0.2s; text-decoration: none; }
.footer__nav a:hover { color: #ccc; }

/* Responzivita */
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 40px; padding-bottom: 36px; }
    .footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 28px; }
    .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* === POST CARD PLACEHOLDER === */
.post-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.post-card__placeholder-icon {
    font-size: 48px;
    opacity: 0.65;
    transition: transform 0.3s;
}
.post-card:hover .post-card__placeholder-icon { transform: scale(1.15); }

/* === KDO JSME - STATS === */
.kdo-jsme__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: center;
}
.stat-item {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(233,30,140,0.08);
    border: 1px solid var(--color-border);
    transition: transform 0.25s, box-shadow 0.25s;
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(233,30,140,0.14);
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    display: block;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/* === KONTAKTNÍ FORMULÁŘ === */
.kontakt-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}
.kontakt-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(233,30,140,0.10);
}
.form-group textarea { min-height: 110px; }
.kontakt-form .btn { align-self: flex-start; margin-top: 6px; }
.form-success {
    background: #f0fbf4;
    border: 1.5px solid #43A047;
    border-radius: 12px;
    padding: 16px 20px;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 16px;
}
.form-error {
    background: #fff3f3;
    border: 1.5px solid #F44336;
    border-radius: 12px;
    padding: 12px 16px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 12px;
}

/* === Contact Form 7 - napasování na design tématu === */
.wpcf7-form p { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.wpcf7-form br { display: none; }
.wpcf7-form label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(233,30,140,0.10);
}
.wpcf7-form-control.wpcf7-textarea { min-height: 110px; }
.wpcf7-form p:has(.wpcf7-submit) { align-items: flex-start; }
.wpcf7-form-control.wpcf7-submit {
    display: inline-block;
    padding: 13px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 6px;
}
.wpcf7-form-control.wpcf7-submit:hover { background: #c01579; transform: translateY(-1px); }
.wpcf7-response-output {
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin: 10px 0 0 !important;
    font-size: 14px !important;
    border-width: 1.5px !important;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: #f0fbf4;
    border-color: #43A047 !important;
    color: #2e7d32;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    background: #fff3f3;
    border-color: #F44336 !important;
    color: #c62828;
}
.wpcf7-not-valid-tip { color: #c62828; font-size: 12px; margin-top: 3px; }

/* Kontakt bez mapy - prominent list */
.kontakt-mapa--placeholder {
    background: var(--color-bg-light);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
}
.kontakt-list--prominent { list-style: none; }
.kontakt-list--prominent li {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
}
.kontakt-list--prominent li:last-child { border-bottom: none; }
.kontakt-list--prominent a { color: var(--color-primary); font-weight: 500; }

/* === PROJEKTY EU - BAREVNÉ BOXY === */
.projekty-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 20px;
    padding: 24px 32px;
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.2), box-shadow 0.28s;
}
.projekty-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.projekty-logo-box img {
    display: block;
    max-height: 72px;
    width: auto;
    max-width: 240px;
}
.projekty-logo-box--nase-ms { padding: 0; overflow: hidden; }
.projekty-logo-box--nase-ms img {
    max-height: 110px;
    max-width: 200px;
    border-radius: 18px;
}

/* === SECTION SUBTITLE === */
.section-subtitle {
    text-align: center;
    color: #5A5A5A;
    font-size: 15px;
    margin-top: -40px;
    margin-bottom: 52px;
    line-height: 1.6;
}

/* === ZIVOT SEKCE - alternující řady s postavičkami === */
.zivot-section {
    padding: 64px 0 72px;
    background: var(--color-bg);
}
.ms-wave + .zivot-section { padding-top: 24px; }

.zivot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    margin-bottom: 64px;
}
.zivot-row:last-child { margin-bottom: 0; }
.zivot-row--reverse { direction: rtl; }
.zivot-row--reverse > * { direction: ltr; }

.zivot-row__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zivot-row__blob {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--blob-color, #F0F0F0);
    border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
    z-index: 0;
}
.zivot-row__image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.13));
    transition: transform 0.4s ease;
}
.zivot-row__image:hover img {
    transform: translateY(-8px) scale(1.02);
}

.zivot-row__text {
    padding: 8px 0;
}
.zivot-row__tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-season);
    background: color-mix(in srgb, var(--color-season) 10%, transparent);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.zivot-row__text h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.zivot-row__text p {
    font-size: 16px;
    color: #555;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .zivot-row,
    .zivot-row--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
        margin-bottom: 48px;
    }
    .zivot-row__image img { max-width: 260px; }
    .zivot-row__text h3 { font-size: 1.4rem; }
    .zivot-row--reverse .zivot-row__image { order: -1; }
}

/* === KDO JSME - sekce nadpis doleva === */
.kdo-jsme-section .section-title {
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 16px;
}
.kdo-jsme-section .section-title::after { left: 0; transform: none; }

/* === STAT ITEMS - barevné čísla === */
.stat-number { color: var(--color-season); }

/* === KONTAKT SEKCE === */
.kontakt-section { padding: 88px 0; }

/* === WAVE DIVIDERS === */
.ms-wave {
    display: block;
    overflow: hidden;
    line-height: 0;
    /* -1px překryv nahoře i dole = eliminuje sub-pixelový šev (tenká světlá čára)
       mezi vlnou a sousední sekcí. Barvy vlny (pozadí = sekce nad, výplň = sekce pod)
       se shodují, takže překryv je neviditelný. */
    margin: -1px 0;
}
.ms-wave svg { display: block; width: 100%; height: 60px; }
.wave-fill-season { fill: var(--color-season); }
/* Reduce top padding on sections that receive a wave above */
.ms-wave + .kdo-jsme-section  { padding-top: 16px; }
.ms-wave + .hodnoty-section   { padding-top: 16px; }
.ms-wave + .cta-banner        { padding-top: 20px; }
.ms-wave + .projekty-section  { padding-top: 16px; }

/* ===== SINGLE POST ===== */

.post-hero {
    position: relative;
    padding: 68px 0 88px;
    background-color: #1a0520;
    background-image: linear-gradient(140deg, #1a0520 0%, #3d0a40 45%, #c2185b 80%, #e91e8c 100%);
}
.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 100%);
}
.post-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.post-hero__badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.post-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 20px;
}
.post-hero__meta {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
}
.post-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}
.post-hero__wave svg { display: block; width: 100%; height: 48px; }

/* Titulní obrázek */
.post-thumbnail-wrap { padding: 40px 0 0; }
.post-thumbnail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: block;
}

/* Tělo článku - dvousloupcový layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    padding: 48px 0 80px;
    align-items: start;
}
@media (max-width: 960px) {
    .post-layout { grid-template-columns: 1fr; gap: 40px; }
    .post-layout__sidebar { border-top: 1px solid var(--color-border); padding-top: 32px; }
}

/* Sidebar */
.post-sidebar__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.post-layout__sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    align-items: flex-start;
    transition: opacity 0.15s;
}
.sidebar-post:hover { opacity: 0.75; }
.sidebar-post:last-of-type { border-bottom: none; }

.sidebar-post__thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}
.sidebar-post__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sidebar-post__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sidebar-post__cat {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}
.sidebar-post__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-post__date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.sidebar-all-link {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}
.sidebar-all-link:hover { text-decoration: underline; }
.post-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text);
}
.post-content h2 { font-size: 1.45rem; margin: 2em 0 0.75em; }
.post-content h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; }
.post-content p { margin-bottom: 1.25em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.post-content li { margin-bottom: 0.4em; }
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content a:hover { text-decoration: none; }
.post-content blockquote {
    border-left: 4px solid var(--color-season);
    padding: 14px 22px;
    margin: 1.8em 0;
    background: var(--color-bg-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}

/* === GUTENBERG BLOKY ve wpisu === */

/* Tlačítko (primární) */
.post-content .wp-block-button .wp-block-button__link,
.entry-content .wp-block-button .wp-block-button__link {
    background-color: var(--color-season);
    color: #fff !important;
    border-color: var(--color-season);
    border-radius: 50px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: filter 0.18s, box-shadow 0.18s;
    display: inline-block;
}
.post-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Tlačítko (obrys) */
.post-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--color-season) !important;
    border: 2px solid var(--color-season);
    box-shadow: none;
}
.post-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--color-season);
    color: #fff !important;
}

/* Soubor ke stažení */
.post-content .wp-block-file,
.entry-content .wp-block-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin: 1.5em 0;
    flex-wrap: wrap;
}
.post-content .wp-block-file__content-wrapper,
.entry-content .wp-block-file__content-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}
.post-content .wp-block-file a:not(.wp-block-file__button),
.entry-content .wp-block-file a:not(.wp-block-file__button) {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    flex: 1;
}
.post-content .wp-block-file a:not(.wp-block-file__button):hover,
.entry-content .wp-block-file a:not(.wp-block-file__button):hover {
    color: var(--color-primary);
}
.post-content .wp-block-file .wp-block-file__button,
.entry-content .wp-block-file .wp-block-file__button {
    background-color: var(--color-season);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: filter 0.18s;
    flex-shrink: 0;
}
.post-content .wp-block-file .wp-block-file__button:hover,
.entry-content .wp-block-file .wp-block-file__button:hover {
    filter: brightness(1.1);
}

/* Oddělovač */
.post-content .wp-block-separator,
.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid var(--color-border);
    margin: 2em 0;
}
.post-content .wp-block-separator.is-style-wide,
.entry-content .wp-block-separator.is-style-wide {
    width: 100%;
}
.post-content .wp-block-separator.is-style-dots,
.entry-content .wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    color: var(--color-season);
    font-size: 1.4em;
    letter-spacing: 0.5em;
}
.post-content .wp-block-separator.is-style-dots::before,
.entry-content .wp-block-separator.is-style-dots::before {
    content: '···';
}

/* Tabulka */
.post-content .wp-block-table,
.entry-content .wp-block-table {
    margin: 1.8em 0;
    overflow-x: auto;
}
.post-content .wp-block-table table,
.entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.post-content .wp-block-table th,
.entry-content .wp-block-table th {
    background: var(--color-bg-light);
    color: var(--color-text);
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}
.post-content .wp-block-table td,
.entry-content .wp-block-table td {
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    vertical-align: top;
}
.post-content .wp-block-table tr:nth-child(even) td,
.entry-content .wp-block-table tr:nth-child(even) td {
    background: #FAFAFA;
}

/* Citát */
.post-content .wp-block-quote,
.entry-content .wp-block-quote {
    border-left: 4px solid var(--color-season);
    padding: 14px 22px;
    margin: 1.8em 0;
    background: var(--color-bg-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}
.post-content .wp-block-quote cite,
.post-content .wp-block-quote footer,
.entry-content .wp-block-quote cite,
.entry-content .wp-block-quote footer {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
}
.post-content .wp-block-pullquote,
.entry-content .wp-block-pullquote {
    border-top: 4px solid var(--color-season);
    border-bottom: 4px solid var(--color-season);
    padding: 24px;
    margin: 2em 0;
    text-align: center;
    background: var(--color-bg-light);
}
.post-content .wp-block-pullquote blockquote,
.entry-content .wp-block-pullquote blockquote {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-text);
}

/* Galerie */
.post-content .wp-block-gallery,
.entry-content .wp-block-gallery {
    margin: 1.8em 0;
}
.post-content .wp-block-gallery .wp-block-image img,
.entry-content .wp-block-gallery .wp-block-image img {
    border-radius: 10px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Jednotlivý obrázek */
.post-content .wp-block-image figcaption,
.entry-content .wp-block-image figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* Kód */
.post-content .wp-block-code,
.entry-content .wp-block-code,
.post-content .wp-block-preformatted,
.entry-content .wp-block-preformatted {
    background: #F3F0F7;
    border: 1px solid #E0D9EC;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    overflow-x: auto;
    margin: 1.5em 0;
}

/* Info / upozornění bloky (Group s barvou pozadí) */
.post-content .wp-block-group,
.entry-content .wp-block-group {
    margin: 1.5em 0;
}

/* Prev / Next navigace */
.post-adjacent {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.post-adjacent__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: #F7F7F8;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.post-adjacent__link:hover { background: var(--color-bg-light); }
.post-adjacent__link--next { text-align: right; }
.post-adjacent__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.post-adjacent__title {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Zpět tlačítko */
.post-back {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .post-hero { padding: 52px 0 72px; }
    .post-thumbnail-wrap { padding: 28px 0 0; }
    .post-thumbnail-img { border-radius: 10px; max-height: 320px; }
    .post-body { padding: 36px 0 60px; }
    .post-content { font-size: 16px; }
}

/* ===== ARCHIV AKTUALIT ===== */

.archive-hero {
    position: relative;
    padding: 60px 0 80px;
    background-color: #1a0520;
    background-image: linear-gradient(140deg, #1a0520 0%, #3d0a40 45%, #c2185b 80%, #e91e8c 100%);
}
.archive-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 100%);
}
.archive-hero__content {
    position: relative;
    z-index: 1;
}
.archive-hero__back {
    display: inline-block;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 16px;
}
.archive-hero__back:hover { color: #fff; }
.archive-hero__badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.archive-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}
.archive-hero__sub {
    color: rgba(255,255,255,0.82);
    font-size: 16px;
}
.archive-hero__wave {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; line-height: 0;
    pointer-events: none;
}
.archive-hero__wave svg { display: block; width: 100%; height: 48px; }

/* Category filter */
.archive-section { padding: 48px 0 80px; }

.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.cat-filter__btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    color: #555;
    background: #F0F0F2;
    transition: all 0.18s;
}
.cat-filter__btn:hover,
.cat-filter__btn.is-active {
    background: var(--cat-color, var(--color-primary));
    color: #fff;
    border-color: transparent;
}
.cat-filter__btn--all { --cat-color: var(--color-primary); }

/* Archive grid - tighter spacing */
.posts-grid--archive {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px)  { .posts-grid--archive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .posts-grid--archive { grid-template-columns: 1fr; } }

/* Pagination */
.archive-pagination { margin-top: 52px; display: flex; justify-content: center; }
.archive-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0; padding: 0;
}
.archive-pagination .page-numbers li { margin: 0; }
.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #F0F0F2;
    color: var(--color-text);
    transition: all 0.18s;
}
.archive-pagination .page-numbers a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.archive-pagination .page-numbers .current { background: var(--color-primary); color: #fff; }
.archive-pagination .page-numbers .prev,
.archive-pagination .page-numbers .next { background: transparent; border: 2px solid var(--color-border); color: var(--color-primary); }
.archive-pagination .page-numbers .prev:hover,
.archive-pagination .page-numbers .next:hover { background: var(--color-bg-light); }

.archive-empty {
    text-align: center;
    color: #777;
    font-size: 16px;
    padding: 60px 0;
}

/* === GALERIE AKTUALITY === */
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 32px 0 16px;
}
.post-gallery__item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-light);
}
.post-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-gallery__item:hover .post-gallery__img,
.post-gallery__item:focus .post-gallery__img {
    transform: scale(1.04);
}
.post-gallery__item:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .post-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* === MOBILNÍ OPRAVY === */
@media (max-width: 640px) {
    .load-more-btn { width: 100%; }
    .kdo-jsme__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-item { padding: 20px 12px; }
    .stat-number { font-size: 2.2rem; }
    .kontakt-form .btn { width: 100%; text-align: center; }
    .projekty-logos { gap: 16px; }
    .projekty-logo-box { padding: 16px 20px; min-width: 100px; }
}

/* =============================================
   SUBPAGE KOMPONENTY
   ============================================= */

/* === PAGE HERO - breadcrumb + subtitle === */
.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.page-hero__breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb span { color: rgba(255,255,255,0.45); }
.page-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    line-height: 1.65;
    margin-top: 12px;
}

/* Sezónní gradienty pro page-hero (sdílí .post-hero) */
body.season-spring  .page-hero { background-image: linear-gradient(140deg, #0d2d1a 0%, #1a5c2d 45%, #4CAF50 80%, #81C784 100%); }
body.season-summer  .page-hero { background-image: linear-gradient(140deg, #3d2000 0%, #7B4500 45%, #E65100 80%, #FFB74D 100%); }
body.season-autumn  .page-hero { background-image: linear-gradient(140deg, #2d1008 0%, #5d1e10 45%, #A0522D 80%, #D2691E 100%); }
body.season-winter  .page-hero { background-image: linear-gradient(140deg, #08152a 0%, #0d2744 45%, #1a5276 80%, #5B9BD5 100%); }

/* === SUBPAGE SUBNAV === */
.page-subnav {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 70px;
    z-index: 90;
}
.page-subnav__inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.page-subnav__inner::-webkit-scrollbar { display: none; }
.page-subnav__link {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.page-subnav__link:hover { color: var(--color-primary); text-decoration: none; }
.page-subnav__link.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-season);
    font-weight: 700;
}

/* === PAGE BODY === */
.page-body { padding: 64px 0 88px; }
.page-body--tight { padding: 48px 0 80px; }

/* === INFO BOX === */
.info-box {
    background: var(--color-bg-light);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.info-box__icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.info-box__body { flex: 1; min-width: 0; }
.info-box__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}
.info-box__text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.info-box__text a { color: var(--color-primary); }
.info-box__text strong { color: var(--color-text); }
@media (max-width: 540px) {
    .info-box { flex-direction: column; gap: 12px; padding: 20px; }
}

/* === SECTION NAV GRID (O škole landing) === */
.section-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 32px;
}
@media (max-width: 768px) { .section-nav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .section-nav-grid { grid-template-columns: 1fr; } }

.section-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.section-nav-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 28px rgba(233,30,140,0.12);
    transform: translateY(-3px);
    text-decoration: none;
}
.section-nav-item__icon { font-size: 24px; flex-shrink: 0; }
.section-nav-item__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
}
.section-nav-item__arrow {
    font-size: 18px;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}
.section-nav-item:hover .section-nav-item__arrow { opacity: 1; transform: translateX(0); }

/* === O ŠKOLE intro layout === */
.o-skole-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 56px;
}
@media (max-width: 768px) { .o-skole-intro { grid-template-columns: 1fr; gap: 32px; } }
.o-skole-intro__text { font-size: 16px; color: #555; line-height: 1.85; }
.o-skole-intro__text p { margin-bottom: 1.1em; }
.o-skole-intro__text p:last-child { margin-bottom: 0; }
.o-skole-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === TŘÍDY GRID === */
.tridy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 72px;
    align-items: start;
}
@media (max-width: 960px) { .tridy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tridy-grid { grid-template-columns: 1fr; } }

.trida-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    border: 1.5px solid var(--color-border);
    border-top: 5px solid var(--trida-color, var(--color-primary));
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s;
}
.trida-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(0,0,0,0.12);
}
.trida-card__icon { font-size: 32px; margin-bottom: 14px; display: block; }
.trida-card__name { font-size: 19px; font-weight: 800; color: var(--color-text); margin-bottom: 6px; }
.trida-card__age { font-size: 13px; color: #888; margin-bottom: 16px; }
.trida-card__desc {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-bottom: 14px;
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
}
.trida-card__desc p { font-size: 14px; color: #555; line-height: 1.7; }
.trida-card__desc p + p { margin-top: 12px; }
/* Sbalený stav: ~5 řádků + jemné prolnutí do bílé */
.trida-card__desc.is-clamped {
    position: relative;
    max-height: 8.5em;
    overflow: hidden;
}
.trida-card__desc.is-clamped::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2.4em;
    background: linear-gradient(rgba(255,255,255,0), #fff);
    pointer-events: none;
}
.trida-card__toggle {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    font: inherit;
    font-weight: 700;
    color: var(--trida-color, var(--color-primary));
    cursor: pointer;
}
.trida-card__toggle:hover { text-decoration: underline; }
.trida-card__toggle:focus-visible { outline: 2px solid var(--trida-color, var(--color-primary)); outline-offset: 3px; border-radius: 4px; }
.trida-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--trida-color, var(--color-primary));
    text-decoration: none;
}
.trida-card__phone:hover { text-decoration: underline; }

/* === NÁŠ TÝM (organizační struktura) === */
.tym-section { margin-top: 64px; }
.tym-foto {
    max-width: 880px;
    margin: 8px auto 24px;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 14px 44px rgba(0,0,0,0.14);
}
.tym-foto img { display: block; width: 100%; height: auto; }
@media (max-width: 540px) {
    .tym-foto { border-radius: 18px; border-width: 4px; }
}
.tym-skupina-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin: 40px 0 24px;
}
.tym-lead {
    max-width: 380px;
    margin: 0 auto 8px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    border: 1.5px solid var(--color-border);
    border-top: 5px solid var(--color-primary);
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.tym-lead__icon { font-size: 34px; display: block; margin-bottom: 12px; }
.tym-lead__role {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 6px;
}
.tym-lead__name { font-size: 20px; font-weight: 800; color: var(--color-text); }

.tym-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}
@media (max-width: 960px) { .tym-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tym-grid { grid-template-columns: 1fr; } }

.tym-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    border: 1.5px solid var(--color-border);
    border-top: 5px solid var(--tym-color, var(--color-primary));
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s;
}
.tym-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}
.tym-card__icon { font-size: 30px; display: block; margin-bottom: 12px; }
.tym-card__name { font-size: 18px; font-weight: 800; color: var(--tym-color, var(--color-text)); margin-bottom: 14px; }
.tym-card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tym-card__list li { font-size: 15px; color: var(--color-text); line-height: 1.45; }
.tym-card__list li span { display: block; font-size: 12.5px; color: #888; margin-top: 2px; }

/* === AKTIVITY GRID === */
.aktivity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .aktivity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .aktivity-grid { grid-template-columns: 1fr; } }

.aktivita-item {
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}
.aktivita-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}
.aktivita-item__icon { font-size: 32px; display: block; margin-bottom: 14px; }
.aktivita-item__title { font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 10px; }
.aktivita-item__text { font-size: 14px; color: #666; line-height: 1.65; }

/* === DOKUMENTY LIST === */
.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.doc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    color: var(--color-text);
}
.doc-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(233,30,140,0.10);
    transform: translateY(-2px);
    text-decoration: none;
}
.doc-item--unavailable { cursor: default; opacity: 0.72; }
.doc-item--unavailable:hover { transform: none; border-color: var(--color-border); box-shadow: none; }
.doc-item__icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF5F9;
    border-radius: 14px;
}
.doc-item__info { flex: 1; min-width: 0; }
.doc-item__name { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 3px; display: block; }
.doc-item__type { font-size: 12px; color: #999; letter-spacing: 0.04em; display: block; }
.doc-item__arrow { font-size: 18px; color: var(--color-primary); opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: translateX(-4px); }
.doc-item__tag { font-size: 11px; font-weight: 700; color: #888; background: #F0F0F0; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.doc-item:not(.doc-item--unavailable):hover .doc-item__arrow { opacity: 1; transform: translateX(0); }

/* === ZÁPIS PAGE === */
.zapis-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) { .zapis-layout { grid-template-columns: 1fr; gap: 40px; } }

.zapis-hero-info {
    background: linear-gradient(135deg, var(--color-season), var(--color-primary));
    border-radius: 24px;
    padding: 36px 44px;
    color: #fff;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(233,30,140,0.22);
}
.zapis-hero-info__icon { font-size: 52px; flex-shrink: 0; }
.zapis-hero-info__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.88; margin-bottom: 4px; }
.zapis-hero-info__date { font-size: 1.9rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 4px; }
.zapis-hero-info__note { font-size: 14px; opacity: 0.85; line-height: 1.5; }

.zapis-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.zapis-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 22px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.zapis-step__num {
    width: 38px;
    height: 38px;
    background: var(--color-season);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.zapis-step__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--color-text); }
.zapis-step__text { font-size: 14px; color: #555; line-height: 1.6; }

/* === KONTAKT PAGE === */
.zamestnanci-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}
@media (max-width: 900px) { .zamestnanci-layout { grid-template-columns: 1fr; gap: 40px; } }

.tridy-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 540px) { .tridy-contacts { grid-template-columns: 1fr; } }

.trida-contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--color-border);
    border-left: 4px solid var(--tc-color, var(--color-primary));
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.trida-contact-card__name { font-weight: 700; font-size: 14px; color: var(--color-text); margin-bottom: 8px; }
.trida-contact-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-color, var(--color-primary));
    text-decoration: none;
}
.trida-contact-card__phone:hover { text-decoration: underline; }

/* === POPLATKY PAGE === */
.poplatky-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}
@media (max-width: 640px) { .poplatky-grid { grid-template-columns: 1fr; } }

.poplatky-card {
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.poplatky-card__icon { font-size: 40px; margin-bottom: 16px; display: block; }
.poplatky-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.poplatky-card__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
    line-height: 1.1;
}
.poplatky-card__note { font-size: 13px; color: #888; margin-bottom: 12px; line-height: 1.5; }
.poplatky-info-list { list-style: none; margin-top: 12px; }
.poplatky-info-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}
.poplatky-info-list li:last-child { border-bottom: none; }
.poplatky-info-list strong { color: var(--color-text); font-weight: 700; }
.poplatky-info-list a { color: var(--color-primary); }

/* === JÍDELNA PAGE === */
.jidelna-intro {
    background: var(--color-bg-light);
    border-radius: 24px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}
@media (max-width: 768px) { .jidelna-intro { grid-template-columns: 1fr; padding: 28px 24px; } }
.jidelna-intro p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 12px; }
.jidelna-intro p:last-child { margin-bottom: 0; }
.jidelna-intro__icon { font-size: 80px; text-align: center; line-height: 1; }

.jidelnicek-week { margin-bottom: 24px; }
.jidelnicek-day {
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.jidelnicek-day__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
}
.jidelnicek-day__name { font-weight: 700; font-size: 15px; color: #fff; }
.jidelnicek-day__date { font-size: 13px; color: rgba(255,255,255,0.82); margin-left: auto; }
.jidelnicek-day__body { padding: 14px 22px; }
.jidelnicek-meal {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: baseline;
}
.jidelnicek-meal:last-child { border-bottom: none; }
.jidelnicek-meal__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #999;
    flex-shrink: 0;
}
.jidelnicek-meal__text { font-size: 14px; color: #444; line-height: 1.55; }
.allergen-badge { font-size: 11px; color: #aaa; font-weight: 400; }

.jidelnicek-note { text-align: center; font-size: 13px; color: #888; margin-top: 8px; }
.jidelnicek-note a { color: var(--color-primary); }

.allergen-list {
    background: #FFF5F9;
    border: 1.5px solid rgba(233,30,140,0.15);
    border-radius: 18px;
    padding: 28px 32px;
    margin-top: 32px;
}
.allergen-list__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 18px;
}
.allergen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 768px) { .allergen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .allergen-grid { grid-template-columns: 1fr; } }
.allergen-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #555;
    align-items: flex-start;
}
.allergen-item__num { font-weight: 700; color: var(--color-primary); flex-shrink: 0; min-width: 28px; }

@media (max-width: 640px) {
    .jidelnicek-meal { grid-template-columns: 90px 1fr; gap: 8px; }
    .allergen-list { padding: 20px; }
    .jidelna-intro { gap: 24px; }
    .zapis-hero-info { padding: 24px; }
    .zapis-hero-info__date { font-size: 1.5rem; }
}

.dok-sekce-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-season);
}
.dok-sekce-title:first-of-type { margin-top: 24px; }

/* === WCAG 2.2 SC 2.4.11 - Focus Not Obscured ===
   Sticky header (70px) + sticky subnav (48px) = 118px překrytí.
   scroll-margin-top zajistí, že fokusovaný element nebude schovaný za sticky UI. */
[id] { scroll-margin-top: 130px; }
/* Na stránkách bez subnavigace stačí jen header */
.page-body:not(:has(.page-subnav)) [id],
body:not(:has(.page-subnav)) [id] { scroll-margin-top: 90px; }

/* === ZÁPIS - animovaný průvodce zápisem krok za krokem === */
.zapis-postup { padding: 52px 0 60px; }
.zapis-postup .section-title { margin-bottom: 18px; }

/* Přepis globálního margin-top: -40px který způsobuje překryv s nadpisem */
.zapis-postup .section-subtitle {
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 1.05rem;
    max-width: none;
}

.zapis-kroky {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}

/* Animated progress track */
.zapis-kroky__linka {
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: rgba(0,0,0,0.07);
    border-radius: 3px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.zapis-kroky__linka-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 0%;
    background: linear-gradient(90deg, #3d8b42 0%, #1976D2 25%, #E91E8C 50%, #FF9800 75%, #8E24AA 100%);
    border-radius: 3px;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zapis-kroky.is-visible .zapis-kroky__linka-fill { width: 100%; }

/* Step column */
.zapis-krok {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* Head: number circle (arrow hidden - linka connects them) */
.zapis-krok__head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    min-height: 64px;
}

.zapis-krok__arrow { display: none; }

/* Number circle */
.zapis-krok__num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--krok-color, var(--color-primary));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zapis-krok:hover .zapis-krok__num {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* Pulsing ring (GPU-safe transform-based) */
.zapis-krok__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--krok-color, var(--color-primary));
    opacity: 0;
    animation: krokPulse 2.8s ease-out infinite;
}

@keyframes krokPulse {
    0%   { opacity: 0.6; transform: scale(0.9); }
    70%  { opacity: 0;   transform: scale(1.55); }
    100% { opacity: 0;   transform: scale(1.55); }
}

/* Staggered pulse start per step (linka is nth-child 1, steps start at 2) */
.zapis-krok:nth-child(3) .zapis-krok__pulse { animation-delay: 0.56s; }
.zapis-krok:nth-child(4) .zapis-krok__pulse { animation-delay: 1.12s; }
.zapis-krok:nth-child(5) .zapis-krok__pulse { animation-delay: 1.68s; }
.zapis-krok:nth-child(6) .zapis-krok__pulse { animation-delay: 2.24s; }

/* Step card - flex column pro stejnou výšku karet */
.zapis-krok__card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-top: 3px solid var(--krok-color, var(--color-primary));
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zapis-krok__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.zapis-krok__icon { display: flex; margin-bottom: 13px; opacity: 0.85; }

.zapis-krok__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.zapis-krok__title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--color-text);
}

.zapis-krok__text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 14px;
    flex: 1; /* roztáhne text aby tip byl vždy dole */
}

.zapis-krok__tip {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.zapis-krok__tip svg { flex-shrink: 0; margin-top: 1px; opacity: 0.65; }

/* Mobile: vertical stack with circle left + card right */
@media (max-width: 900px) {
    .zapis-kroky {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .zapis-kroky__linka { display: none; }
    .zapis-krok { flex-direction: row; align-items: flex-start; gap: 16px; }
    .zapis-krok__head {
        flex-direction: column;
        align-items: center;
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        min-height: auto;
    }
    .zapis-krok__num { width: 52px; height: 52px; font-size: 1.25rem; }
    .zapis-krok__card {
        flex: initial;  /* na mobilu nepotřebujeme stejné výšky */
        min-width: 0;
        border-top: none;
        border-left: 3px solid var(--krok-color, var(--color-primary));
    }
    .zapis-krok__text { flex: initial; }
}

@media (max-width: 640px) {
    .zapis-postup { padding: 32px 0 40px; }
    .zapis-krok__num { width: 46px; height: 46px; font-size: 1.1rem; }
    .zapis-krok__text { font-size: 13px; }
    .zapis-krok__title { font-size: 0.93rem; }
}

@media (prefers-reduced-motion: reduce) {
    .zapis-krok__pulse { animation: none !important; opacity: 0 !important; }
    .zapis-kroky__linka-fill { transition: none !important; width: 100% !important; }
    .zapis-krok__num { transition: none !important; }
}

/* =============================================
   PROJEKTY - KARTA (homepage)
   ============================================= */
.projekty-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 32px;
    border: 1.5px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.projekty-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.projekty-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--color-text);
}
.projekty-card__text {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}
.projekty-card__link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-season);
    text-decoration: none;
}
.projekty-card__link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .projekty-card { flex-direction: column; gap: 12px; padding: 20px; }
}

/* =============================================
   STRÁNKA DOBRÝ ZAČÁTEK
   ============================================= */
.dz-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.dz-meta-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid var(--color-season);
}
.dz-meta-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}
.dz-meta-card__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}
.dz-section-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}
.dz-list {
    padding-left: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dz-list li {
    color: var(--color-text);
    line-height: 1.6;
}
.dz-list li::marker { color: var(--color-season); }

/* Timeline */
.dz-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    border-left: 3px solid var(--color-season);
    padding-left: 0;
}
.dz-timeline__item {
    display: flex;
    gap: 24px;
    padding: 20px 20px 20px 28px;
    position: relative;
}
.dz-timeline__item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 26px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--color-season);
}
.dz-timeline__item--highlight::before {
    background: var(--color-season);
}
.dz-timeline__item--highlight {
    background: rgba(0,0,0,0.02);
    border-radius: 0 12px 12px 0;
}
.dz-timeline__year {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-season);
    white-space: nowrap;
    min-width: 80px;
    padding-top: 2px;
}
.dz-timeline__body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .dz-meta-grid { grid-template-columns: 1fr; }
    .dz-timeline__item { flex-direction: column; gap: 4px; padding: 16px 16px 16px 28px; }
    .dz-timeline__year { min-width: auto; }
}

/* =============================================
   MOBILNÍ PADDING - SEKCE A STRÁNKY
   ============================================= */
@media (max-width: 768px) {
    .kontakt-section { padding: 56px 0; }
    .page-body { padding: 44px 0 60px; }
    .page-body--tight { padding: 32px 0 48px; }
    .zivot-section { padding: 40px 0 56px; }
    .projekty-section { padding: 48px 0; }
    .hodnoty-section { padding: 48px 0; }
    .aktuality-section { padding: 48px 0 56px; }
}

@media (max-width: 640px) {
    .kontakt-section { padding: 40px 0; }
    .page-body { padding: 32px 0 48px; }
    .page-body--tight { padding: 24px 0 40px; }
    .post-hero { padding: 32px 0 44px; }
    .zivot-section { padding: 32px 0 44px; }
    .zivot-row__image img { max-width: 200px; }
    .zivot-row { margin-bottom: 36px; }
    .projekty-section { padding: 36px 0; }
    .hodnoty-section { padding: 36px 0; }
    .aktuality-section { padding: 36px 0 44px; }
    .kdo-jsme-section { padding: 36px 0 44px; }
}

/* === FACEBOOK LINKS === */
.footer__social {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #2e2e2e;
}
.footer__fb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b9dc3;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer__fb-link:hover { color: #1877F2; text-decoration: none; }
.footer__fb-link svg { flex-shrink: 0; }

.aktuality__fb-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 4px;
}
.aktuality__fb-hint:hover { color: #1877F2; text-decoration: none; }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* === AOS - na mobilech nahraď fade-left/fade-right za fade-up === */
@media (max-width: 767px) {
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 30px, 0) !important;
        opacity: 0;
    }
    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1;
    }
}

/* ===== Obecný textový obsah stránky ===== */
.page-text p { margin: 0 0 16px; line-height: 1.7; color: var(--color-text, #333); }
.page-text strong { color: var(--color-text-strong, #1a1a1a); }

/* ===== Projekty EU ===== */
.eu-projekty { display: flex; flex-direction: column; gap: 28px; }
.eu-projekt {
    display: grid; grid-template-columns: 280px 1fr; gap: 24px;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.07); border: 1px solid rgba(0,0,0,.04);
}
.eu-projekt--noimg { grid-template-columns: 1fr; }
.eu-projekt__media {
    position: relative; display: block; background: #f3f4f6;
    cursor: zoom-in; overflow: hidden;
}
.eu-projekt__media img {
    width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px;
    transition: transform .4s ease;
}
.eu-projekt__media:hover img, .eu-projekt__media:focus-visible img { transform: scale(1.04); }
.eu-projekt__zoom {
    position: absolute; top: 50%; left: 50%;
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45); color: #fff;
    opacity: 0; transform: translate(-50%, -50%) scale(.8);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none; backdrop-filter: blur(2px);
}
.eu-projekt__zoom svg { display: block; }
.eu-projekt__media:hover .eu-projekt__zoom,
.eu-projekt__media:focus-visible .eu-projekt__zoom {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
}
.eu-projekt__body { padding: 24px 28px 24px 0; }
.eu-projekt--noimg .eu-projekt__body { padding: 24px 28px; }
.eu-projekt__title { font-family: var(--font-display, inherit); font-size: 1.3rem; margin: 0 0 8px; color: var(--color-season, #3d8b42); }
.eu-projekt__meta { font-size: .85rem; color: #777; margin: 0 0 12px; font-weight: 600; }
.eu-projekt__desc { margin: 0; line-height: 1.7; color: #444; }
.eu-projekt__desc p { margin: 0 0 12px; }
.eu-projekt__desc p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .eu-projekt { grid-template-columns: 1fr; }
    .eu-projekt__media img { min-height: 200px; max-height: 320px; }
    .eu-projekt__zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .eu-projekt__body { padding: 20px 22px; }
}

/* ===== Lightbox (sdílený náhled obrázku) ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15, 15, 20, .92);
    display: flex; align-items: center; justify-content: center;
    padding: 28px; opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img {
    max-width: 100%; max-height: 82vh; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff;
    transform: scale(.96); transition: transform .3s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__caption { color: #f0f0f0; font-size: .95rem; text-align: center; max-width: 640px; }
.lightbox__close {
    position: absolute; top: 18px; right: 22px;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer; transition: background .2s ease;
}
.lightbox__close:hover, .lightbox__close:focus-visible { background: rgba(255,255,255,.3); }
@media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox__img, .eu-projekt__media img { transition: none; }
}
