/* ===== ZÁKLAD ===== */

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

:root {
    --bg: #ffffff;
    --text: #1f1f1f;
    --muted: #666666;
    --line: #e9e9e9;
    --soft: #f7f7f7;
    --accent: #f08a24;
    --accent-hover: #dd7814;
    --max-width: 1280px;
    --radius: 22px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

/* ===== OBECNÉ BLOKY ===== */

.container,
.header-inner,
.hero-inner {
    align-items: flex-start;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 80px 0;
    background: #ffffff;
}

.section-heading {
    margin-bottom: 28px;
}

.section-kicker {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

/* ===== HEADER ===== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.logo {
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav-desktop > li {
    position: relative;
}

.nav-desktop a,
.nav-desktop .nav-label {
    text-decoration: none;
    color: var(--text);
    font-size: 17px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.nav-desktop a:hover,
.nav-desktop a:focus,
.nav-desktop .nav-label:hover {
    background: var(--soft);
    color: var(--text);
}

.nav-desktop .nav-label::after {
    content: "▼";
    font-size: 18px;
    margin-left: 8px;
    line-height: 1;
    position: relative;
    top: 1px;
    color: var(--text);
    opacity: 0.75;
}

.has-submenu:hover .nav-label::after,
.has-submenu:focus-within .nav-label::after {
    opacity: 1;
}

.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 220px;
    padding: 14px 10px 10px;
    background: transparent;
    z-index: 120;
}

.has-submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    display: block;
}

.has-submenu .submenu::before {
    content: "";
    display: block;
    position: absolute;
    inset: 14px 0 0 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    z-index: -1;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

.has-submenu .submenu li {
    width: 100%;
}

.has-submenu .submenu a {
    display: flex;
    width: 100%;
    border-radius: 12px;
    padding: 11px 14px;
    background: transparent;
}

.has-submenu .submenu a:hover,
.has-submenu .submenu a:focus {
    background: var(--soft);
}

.nav-mobile {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    padding: 6px 4px;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    font-size: 26px;
    line-height: 1;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
}

/* ===== HERO ===== */

.hero {
    padding: 36px 0 60px;
    background: #ffffff;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.02fr 1.18fr;
    align-items: center;
    gap: 36px;
}

.hero-text {
    padding: 12px 0;
}

.hero-kicker {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 520px;
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 26px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--soft);
}

/* ===== HERO OBRÁZEK ===== */

.hero-visual-wrap {
    min-width: 0;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 0 28px 28px 0;
    box-shadow: none;
}

.hero-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: left center;
    display: block;
    background: #ffffff;
}

/* ===== INTRO ===== */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.intro-text,
.intro-box,
.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.intro-text:hover,
.intro-box:hover,
.card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    filter: brightness(96%);
}

.intro-text {
    padding: 28px;
    font-size: 18px;
    color: var(--text);
}

.intro-text p + p {
    margin-top: 16px;
}

.intro-box {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.intro-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.intro-text-inner {
    flex-grow: 1;
}

.intro-quote-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    padding: 32px;
}

.intro-quote {
    width: 100%;
    max-width: 340px;
}

.intro-quote-wide {
    margin-top: 28px;
    min-height: 0;
    padding: 20px 24px;
}

.intro-quote-wide .intro-quote {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.intro-quote-wide .intro-quote-text {
    line-height: 1.4;
}

.intro-quote-wide .intro-quote-author {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .intro-quote-wide .intro-quote {
        display: block;
    }

    .intro-quote-wide .intro-quote-author {
        margin-top: 12px;
        white-space: normal;
    }
}

.home-news-card-date {
    margin: 12px 0 8px;
    font-size: 14px;
    color: var(--muted);
}

.intro-quote-text {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
}

.intro-quote-author {
    margin: 16px 0 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== NOVINKY ===== */

.news-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.news-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    filter: brightness(96%);
}

.news-card h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    margin-top: auto;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.news-link:hover,
.news-link:focus {
    color: var(--accent-hover);
}

/* ===== GALERIE GRID ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
    aspect-ratio: 1 / 1;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius) - 6px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.015);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== KARTY ===== */

.card {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: 20px;
    color: var(--muted);
    text-align: center;
}

/* ===== FOOTER ===== */

.site-footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
    transform: scale(1.08);
    background: #f0f0f0;
}

.footer-social img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ===== LIGHTBOX ===== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    padding: 30px 20px;
    align-items: center;
    justify-content: center;
}

.lightbox.active,
.lightbox.is-open {
    display: flex;
}

.lightbox-content,
.lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 42px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.lightbox-close:hover {
    opacity: 0.8;
}

/* ===== ČLÁNEK ===== */

.article-wrap {
    max-width: 900px;
}

.article-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.article-date {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
}

.article-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 19px;
    color: var(--text);
    white-space: pre-line;
}

.article-content p + p {
    margin-top: 18px;
}

.article-back {
    margin-top: 34px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.article-content a:hover,
.article-content a:focus {
    color: var(--accent-hover);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.article-content .img-left {
    float: left;
    max-width: 45%;
    margin: 0 20px 10px 0;
}

.article-content .img-right {
    float: right;
    max-width: 45%;
    margin: 0 0 10px 20px;
}

.article-content .img-center {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

.article-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
    margin: 24px 0;
    border-radius: var(--radius);
}

.article-content .text-left {
    text-align: left;
}

.article-content .text-center {
    text-align: center;
}

.article-content .text-right {
    text-align: right;
}

.article-content .img-thumb {
    max-width: 260px;
    width: 100%;
    height: auto;
}

.article-content a img.img-thumb {
    cursor: pointer;
}

.article-header-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

/* ===== ARCHIV NOVINEK ===== */

.archive-wrap {
    max-width: 900px;
}

.archive-list {
    border-top: 1px solid var(--line);
}

.archive-item {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.archive-date {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.archive-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.archive-title a {
    color: var(--text);
    text-decoration: none;
}

.archive-title a:hover,
.archive-title a:focus {
    color: var(--accent);
}

.archive-excerpt {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 12px;
}

.archive-read a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.archive-read a:hover,
.archive-read a:focus {
    color: var(--accent-hover);
}

/* ===== EDITOR + PAGINACE ===== */

.editor-toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.editor-toolbar button:hover {
    background: #f5f5f5;
}

.pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    font-weight: 700;
}

.pagination-link:hover,
.pagination-link:focus {
    background: var(--soft);
}

.pagination-link.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ===== ALBA ===== */

.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.albums-grid-home {
    grid-template-columns: repeat(4, 1fr);
}

.album-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.album-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    filter: brightness(96%);
}

.album-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    overflow: hidden;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

.album-text {
    padding: 18px;
}

.album-text h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    color: var(--text);
}

.album-meta {
    font-size: 14px;
    color: var(--muted);
}

/* ===== VIDEA ===== */

.videos-stack {
    display: grid;
    gap: 40px;
}

.videos-subsection {
    display: grid;
    gap: 20px;
}

.videos-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.videos-subhead h3 {
    font-size: 28px;
    line-height: 1.15;
}

.videos-grid {
    display: grid;
    gap: 22px;
}

.videos-grid-wide,
.videos-grid-home {
    grid-template-columns: repeat(3, 1fr);
}

.videos-grid-shorts {
    grid-template-columns: repeat(4, 1fr);
}

.video-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    filter: brightness(96%);
}

.video-thumb {
    width: 100%;
    background: #f3f3f3;
    overflow: hidden;
    position: relative;
}

.video-thumb-wide {
    aspect-ratio: 16 / 9;
}

.video-thumb-short {
    aspect-ratio: 9 / 16;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb-empty {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.video-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    flex-grow: 1;
}

.video-date {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.video-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-open-btn {
    margin-top: auto;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.video-card-empty .video-card-body {
    justify-content: center;
    min-height: 220px;
}

.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.video-lightbox.is-open {
    display: flex;
}

.video-lightbox-dialog {
    position: relative;
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: none;
    border: 0;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.video-lightbox-frame {
    width: 100%;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
}

.video-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-type-video {
    max-width: 1100px;
    aspect-ratio: 16 / 9;
}

.video-type-short {
    width: min(100%, 430px);
    aspect-ratio: 9 / 16;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px !important;
    height: 52px !important;
    max-width: none !important;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.75;
}

/* ===== MEDIA ===== */

.media-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.media-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.media-card-thumb {
    position: relative;
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-card-thumb img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.media-card-thumb-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 1100px) and (min-width: 681px) {
    .media-card-thumb {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 680px) {
    .media-card-thumb {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

.media-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.media-card-body h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.media-card-description {
    margin: 0;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.media-card-meta {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.media-card-body .news-link {
    margin-top: auto;
    font-weight: 700;
}

.media-card-empty {
    grid-column: 1 / -1;
}

.media-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== KONTAKT ===== */

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

.contact-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.contact-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.contact-card p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.contact-form-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select,
.contact-form input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 18px;
    background: #ffffff;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form-message {
    margin-bottom: 18px;
    font-weight: 700;
}

.contact-form-message.is-success {
    color: #1d7a2f;
}

.contact-form-message.is-error {
    color: #c0392b;
}

/* ===== ADMIN MERCH ===== */

.admin-wrap {
    max-width: 1100px;
}

.admin-box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 28px;
}

.admin-form input[type="text"],
.admin-form textarea,
.admin-form input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 16px;
    margin-bottom: 18px;
    background: #fff;
}

.admin-form textarea {
    min-height: 160px;
}

.admin-form label {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.admin-product {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.admin-product h3 {
    margin: 0 0 8px;
}

.admin-product-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.admin-product-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-product-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.admin-message {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ===== MAXŮV JÍDELNÍČEK – FINÁLNÍ VERZE ===== */

.maxfood,
.maxfood * {
    box-sizing: border-box !important;
    white-space: normal !important;
}

.maxfood {
    display: block !important;
    margin-bottom: -40px;
}

.maxfood-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.maxfood-intro {
    max-width: 680px !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-grid,
.maxfood-info {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    padding: 0 !important;
    align-items: start !important;
}

.maxfood-grid {
    margin: 150px 0 0 0 !important;
}

.maxfood-info {
    margin: 20px 0 0 0 !important;
}

.maxfood-card {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-img {
    display: block !important;
    height: 180px !important;
    max-height: 180px !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #f3f3f3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-content {
    display: block !important;
    padding: 18px 20px 18px !important;
    margin: 0 !important;
}

.maxfood-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-yellow { background: #f4b400 !important; }
.maxfood-orange { background: #f08a24 !important; }
.maxfood-purple { background: #8b5ab8 !important; }
.maxfood-red { background: #e53b45 !important; }

.maxfood-name {
    display: block !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #1f1f1f !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-sub {
    display: block !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
}

.maxfood-yellow-text { color: #f4b400 !important; }
.maxfood-orange-text { color: #f08a24 !important; }
.maxfood-purple-text { color: #8b5ab8 !important; }
.maxfood-red-text { color: #e53b45 !important; }

.maxfood-line {
    display: block !important;
    height: 1px !important;
    background: #e2e2e2 !important;
    margin: 12px 0 10px 0 !important;
    padding: 0 !important;
}

.maxfood-text {
    display: block !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    color: #222 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maxfood-box {
    display: block !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    border: 1px solid #eeeeee !important;
    margin: 0 !important;
}

.maxfood-good {
    background: #fbfbf5 !important;
    border-color: #e4ead9 !important;
}

.maxfood-bad {
    background: #fff7f6 !important;
    border-color: #f1dddd !important;
}

.maxfood-box-title {
    display: block !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.maxfood-good .maxfood-box-title {
    color: #4f6f35 !important;
}

.maxfood-bad .maxfood-box-title {
    color: #d9363e !important;
}

.maxfood-row {
    display: block !important;
    position: relative !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    padding: 8px 0 8px 24px !important;
    margin: 0 !important;
    border-bottom: 1px dotted rgba(0,0,0,0.12) !important;
}

.maxfood-row:last-child {
    border-bottom: 0 !important;
}

.maxfood-good .maxfood-row::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;
    color: #4f8a31 !important;
    font-weight: 800 !important;
}

.maxfood-bad .maxfood-row::before {
    content: "×" !important;
    position: absolute !important;
    left: 0 !important;
    top: 6px !important;
    color: #e53935 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

@media (max-width: 900px) {
    .maxfood-grid,
    .maxfood-info {
        grid-template-columns: 1fr !important;
    }

    .maxfood-img {
        height: 180px !important;
        max-height: 180px !important;
    }
}

/* ===== BIO LINKS ===== */

.bio-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.bio-link-box {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    text-align: center;
}

.bio-link-box strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.bio-link-box span {
    font-size: 14px;
    color: var(--muted);
}

.bio-link-box:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.bio-icon {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto 14px auto;
}

@media (max-width: 680px) {
    .food-cards,
    .food-info-grid,
    .bio-links {
        grid-template-columns: 1fr;
    }
}

/* ===== KAMARÁDI ===== */

.kamaradi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.kamarad-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.kamarad-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: start;
}

.kamarad-info h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 14px;
}

.kamarad-label {
    display: block;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 2px;
}

.kamarad-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.kamarad-meta {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.kamarad-meta li {
    margin-bottom: 7px;
}

.kamarad-meta strong {
    font-weight: 700;
}

.kamarad-info p {
    margin: 0;
    line-height: 1.55;
}

.kamarad-photo a {
    display: block;
    text-decoration: none;
}

.kamarad-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f5f5f5;
}

.kamarad-no-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f5f5f5;
    color: var(--muted);
    padding: 14px;
}

/* ===== ALBUM LIGHTBOX ===== */

.album-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-lightbox-prev {
    left: 18px;
}

.album-lightbox-next {
    right: 18px;
}

.album-lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.78);
}

/* ===== HOMEPAGE NOVINKA ===== */

.home-news-strip {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
}

.home-news-strip-label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    color: #666;
    background: #f1f1f1;
    border-radius: 20px;

    white-space: nowrap;
}

.home-news-strip-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-news-strip-actions a {
    white-space: nowrap;
}

/* ===== TABLET ===== */

@media (max-width: 1100px) {
    .menu-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: none;
    }

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

    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 16px 16px;
        background: #ffffff;
        border-top: 1px solid var(--line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
        z-index: 100;
    }

    .main-nav.is-open .nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
    }

    .main-nav.is-open .nav-mobile a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0 14px;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text);
        font-size: 16px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-text {
        padding-top: 8px;
    }

    .hero-description {
        max-width: none;
    }

    .hero-visual {
        min-height: 480px;
    }

    .hero-visual img {
        min-height: 480px;
    }

    .gallery-grid,
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .albums-grid,
    .albums-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid-wide,
    .videos-grid-home,
    .videos-grid-shorts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBIL ===== */

@media (max-width: 680px) {
    .header-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0 16px;
        min-height: auto;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
        gap: 8px;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .menu-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: none;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-top: 0;
        padding: 12px 16px 16px;
        background: #ffffff;
        border-top: 1px solid var(--line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
        z-index: 100;
    }

    .main-nav.is-open .nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        list-style: none;
    }

    .main-nav.is-open .nav-mobile li {
        width: 100%;
    }

    .main-nav.is-open .nav-mobile a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text);
        font-size: 16px;
    }

    .hero {
        padding: 24px 0 48px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 54px);
    }

    .hero-description {
        font-size: 17px;
    }

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

    .btn {
        width: 100%;
    }

    .hero-visual {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 0 22px 22px 0;
        overflow: hidden;
        background: #ffffff;
    }

    .hero-visual img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: left center;
        display: block;
    }

    .gallery-grid,
    .intro-grid,
    .albums-grid,
    .albums-grid-home,
    .videos-grid-wide,
    .videos-grid-home,
    .videos-grid-shorts {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .card {
        min-height: 180px;
    }

    .news-card {
        min-height: auto;
    }

    .news-card h3 {
        font-size: 22px;
    }

    .footer-social {
        gap: 14px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-social img {
        width: 18px;
        height: 18px;
    }

    .article-title {
        font-size: clamp(30px, 9vw, 42px);
    }

    .article-content {
        font-size: 17px;
    }

    .archive-title {
        font-size: 24px;
    }

    .archive-excerpt {
        font-size: 16px;
    }

    .album-text h3 {
        font-size: 20px;
    }

    .videos-subhead h3 {
        font-size: 24px;
    }

    .video-card h3 {
        font-size: 20px;
    }

    .video-lightbox-close {
        top: -40px;
        font-size: 34px;
    }

    .article-content .img-left,
    .article-content .img-right {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    .article-content .img-center,
    .article-content .img-thumb {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    .album-lightbox-nav {
        width: 46px;
        height: 46px;
        font-size: 26px;
    }

    .album-lightbox-prev {
        left: 10px;
    }

    .album-lightbox-next {
        right: 10px;
    }

    .home-news-strip {
        padding: 18px 20px;
    }

    .home-news-strip-actions {
        gap: 10px;
    }
}

/* ===== DALŠÍ BREAKPOINTY ===== */

@media (max-width: 980px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .kamaradi-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kamarad-card-inner {
        grid-template-columns: 1fr;
    }

    .kamarad-photo {
        max-width: 180px;
    }
}

.intro-news-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.3;
}


/* =========================================================
   DOPLNĚNÍ A SJEDNOCENÍ - VEŘEJNÝ WEB + ADMIN + MERCH + KOŠÍK
   Tento blok ponechává původní sekce a doplňuje třídy, které se
   v šablonách používají, ale v CSS nebyly samostatně ošetřené.
   ========================================================= */

/* ===== SPOLEČNÉ DOPLŇKY ===== */

.section-subtitle {
    max-width: 760px;
    margin: -12px 0 28px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.article-section {
    padding: 58px 0 76px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.short {
    max-width: 760px;
}

/* ===== ADMIN - OBECNÉ ===== */

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.admin-menu a {
    display: block;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.admin-content {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.admin-list,
.admin-products-list,
.videos-admin-list,
.media-admin-list,
.quotes-list {
    display: grid;
    gap: 16px;
}

.admin-item,
.media-admin-item,
.video-admin-item,
.quote-item,
.gallery-admin-item,
.album-admin-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    padding: 18px;
}

.admin-meta,
.media-admin-meta,
.video-admin-meta,
.gallery-admin-meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0 12px;
}

.admin-actions,
.admin-form-actions,
.gallery-admin-actions,
.media-admin-actions,
.video-admin-actions,
.quote-actions,
.admin-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.admin-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd1d1;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: var(--soft);
    font-weight: 800;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-thumb,
.album-admin-thumb {
    width: 120px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: block;
    background: #f4f4f4;
}

.edit-link,
.delete-link,
.delete-button,
.cover-button,
.admin-product-image-delete {
    display: inline;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
}

.edit-link,
.cover-button {
    color: var(--accent);
}

.edit-link:hover,
.cover-button:hover {
    color: var(--accent-hover);
}

.delete-link,
.delete-button,
.admin-product-image-delete {
    color: #c0392b;
}

.delete-link:hover,
.delete-button:hover,
.admin-product-image-delete:hover {
    color: #a93226;
}

.cover-active {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eaf7ee;
    color: #1d7a2f;
    font-size: 13px;
    font-weight: 800;
}

/* ===== ADMIN - GALERIE / ALBA ===== */

.albums-admin-grid,
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.album-admin-card,
.gallery-admin-item {
    overflow: hidden;
}

.album-admin-text,
.gallery-admin-text {
    padding-top: 12px;
}

.album-admin-text h3,
.gallery-admin-text h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.album-hidden-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff4e5;
    color: #9a5a00;
    font-size: 12px;
    font-weight: 800;
    margin-top: 8px;
}

.album-admin-empty {
    min-height: 120px;
    border-radius: 14px;
    border: 1px dashed var(--line);
    background: var(--soft);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

/* ===== ADMIN - MÉDIA ===== */

.media-admin-content,
.media-admin-description {
    line-height: 1.65;
}

.media-admin-content img,
.media-admin-description img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.media-admin-item h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

/* ===== ADMIN - CITÁTY ===== */

.quote-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 8px;
}

.quote-author {
    color: var(--muted);
    margin: 0;
}

/* ===== ADMIN - VIDEA ===== */

.video-admin-top {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.video-admin-thumb {
    width: 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f4f4f4;
}

.video-admin-url {
    word-break: break-word;
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.video-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ===== ADMIN - MERCH DETAILNĚ ===== */

.admin-product-description {
    margin: 10px 0 14px;
    line-height: 1.6;
}

.admin-product-image-item {
    display: grid;
    gap: 8px;
    width: 110px;
}

.admin-product-image-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.admin-product-image-delete {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
}

.admin-product-actions {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

/* ===== ADMIN - POČÍTADLO / THUMB LOG ===== */

.stats-grid,
.thumb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-card,
.thumb-stat {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.stat-card strong,
.thumb-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.thumb-log-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.thumb-log-table th,
.thumb-log-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.thumb-log-table th {
    background: var(--soft);
}

/* ===== LIGHTBOX KOMPATIBILITA ===== */

.lightbox.active,
.video-lightbox.active {
    display: flex;
}

#lightbox,
#video-lightbox {
    transition: opacity 0.2s ease;
}

#lightbox-img,
#lightbox-image {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    object-fit: contain;
}

/* ===== MOBILNÍ DOPLŇKY PRO ADMIN / MERCH ===== */

@media (max-width: 760px) {
    .admin-content,
    .admin-box {
        padding: 18px;
    }

    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-topbar .btn,
    .admin-actions .btn,
    .admin-form-actions .btn,
    .gallery-admin-actions .btn,
    .media-admin-actions .btn,
    .video-admin-actions .btn {
        width: 100%;
        text-align: center;
    }

    .admin-actions,
    .admin-form-actions,
    .gallery-admin-actions,
    .media-admin-actions,
    .video-admin-actions,
    .quote-actions,
    .admin-product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-link,
    .delete-link,
    .delete-button,
    .cover-button {
        width: 100%;
    }

    .video-admin-top {
        grid-template-columns: 1fr;
    }

    .video-admin-thumb {
        width: 100%;
    }

    .albums-admin-grid,
    .gallery-admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-images {
        gap: 12px;
    }

    .admin-product-image-item {
        width: calc(50% - 6px);
    }

    .admin-product-image-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .stats-grid,
    .thumb-stats {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   V3 OPRAVA ADMINISTRACE
   Opravuje příliš obecné doplňkové styly z V2, aby nerozbíjely
   stránky administrace, které mají vlastní vložené admin styly.
   ========================================================= */

/* Seznam článků / týdeníčku: .admin-content je v adminu vnitřek položky,
   ne samostatný bílý box. */
.admin-list .admin-content {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    flex: 1;
    min-width: 0;
}

/* Položky článků a týdeníčku mají zůstat řádkový seznam, ne další karta uvnitř boxu. */
.admin-list .admin-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 18px 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.admin-list .admin-item:last-child {
    border-bottom: 0;
}

.admin-list .admin-actions a {
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.admin-list .admin-actions a:hover {
    color: var(--accent-hover);
}

.admin-list .delete-button {
    display: inline;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: #c0392b;
    cursor: pointer;
    border-radius: 0;
}

/* Náhledy článků / týdeníčku. */
.admin-list .admin-thumb {
    width: 120px;
    min-width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid var(--line);
    display: block;
    flex: 0 0 120px;
}

.admin-list .admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Alba a fotky: karta nesmí dostat vnitřní padding, jinak se rozbije čtvercový náhled. */
.albums-admin-grid .album-admin-card,
.gallery-admin-grid .gallery-admin-item {
    padding: 0;
    overflow: hidden;
}

.albums-admin-grid .album-admin-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 0;
    display: block;
    overflow: hidden;
    background: #f3f3f3;
}

.albums-admin-grid .album-admin-thumb img,
.gallery-admin-grid .gallery-admin-item > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.albums-admin-grid .album-admin-text,
.gallery-admin-grid .gallery-admin-text {
    padding: 16px;
}

/* Média: ponechat rozložení s ikonou/náhledem vlevo. */
.media-admin-list .media-admin-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: start;
}

.media-admin-list .media-admin-thumb {
    width: 92px;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-admin-list .media-admin-thumb img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

.media-admin-list .media-admin-thumb.is-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* Videa: náhled je obalový div a obrázek je uvnitř něj. */
.videos-admin-list .video-admin-thumb {
    width: 220px;
    max-width: 100%;
    margin-bottom: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f3f3f3;
}

.videos-admin-list .video-admin-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Admin menu je delší než veřejné menu, proto musí přepnout na hamburger dřív. */
@media (max-width: 1180px) {
    .logo[href="/admin/index.php"] ~ .menu-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .logo[href="/admin/index.php"] ~ .main-nav {
        display: none;
        width: 100%;
    }

    .logo[href="/admin/index.php"] ~ .main-nav .nav-desktop {
        display: none;
    }

    .logo[href="/admin/index.php"] ~ .main-nav .nav-mobile {
        display: none;
    }

    .logo[href="/admin/index.php"] ~ .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-top: 0;
        padding: 12px 16px 16px;
        background: #ffffff;
        border-top: 1px solid var(--line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
        z-index: 100;
    }

    .logo[href="/admin/index.php"] ~ .main-nav.is-open .nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        list-style: none;
    }

    .logo[href="/admin/index.php"] ~ .main-nav.is-open .nav-mobile li {
        width: 100%;
    }

    .logo[href="/admin/index.php"] ~ .main-nav.is-open .nav-mobile a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text);
        font-size: 16px;
    }
}

@media (max-width: 680px) {
    .admin-list .admin-item {
        flex-direction: column;
    }

    .admin-list .admin-thumb {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-basis: auto;
    }

    .media-admin-list .media-admin-item {
        grid-template-columns: 1fr;
    }

    .media-admin-list .media-admin-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Jemné doladění vzduchu v jídelníčku – silnější */
.maxfood-line {
    margin: 12px 0 10px !important;
}

.maxfood-text {
    line-height: 1.5 !important;
}

.maxfood-content {
    padding: 18px 20px 18px !important;
}

.maxfood-row {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* sjednocení fontu s webem */
.maxfood,
.maxfood * {
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Dorovnání výšky karet v jídelníčku */
.maxfood-grid {
    align-items: stretch !important;
}

.maxfood-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.maxfood-content {
    flex: 1 !important;
}

/* ===== KVÍZ ===== */

.quiz-box {
    padding: 34px;
}

.quiz-head {
    margin-bottom: 6px;
}

.quiz-progress {
    width: 100%;
    height: 14px;
    margin: 0 0 28px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--soft);
    display: block;
}

.quiz-progress::-webkit-progress-bar {
    background: var(--soft);
    border-radius: 999px;
}

.quiz-progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: 999px;
}

.quiz-progress::-moz-progress-bar {
    background: var(--accent);
    border-radius: 999px;
}

.quiz-question {
    margin: 0 0 26px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.quiz-form {
    display: grid;
    gap: 14px;
}

.quiz-answer {
    width: 100%;
    min-height: 68px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quiz-answer:hover,
.quiz-answer:focus {
    background: #fff7ef;
    border-color: var(--accent);
    transform: scale(1.01);
}

.quiz-answer-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #cccccc;
    border-radius: 50%;
    display: block;
    flex: 0 0 auto;
}

.quiz-answer:hover .quiz-answer-circle,
.quiz-answer:focus .quiz-answer-circle {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 5px #ffffff;
}

.quiz-answer-text {
    display: block;
}

.quiz-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.quiz-info-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: center;
}

.quiz-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff1e5;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
}

.quiz-info-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

.quiz-info-card p {
    margin: 0;
    line-height: 1.5;
}

.quiz-result-box {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: center;
    padding: 34px;
}

.quiz-result-main h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.quiz-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.quiz-result-card {
    border: 1px solid #f2d4ba;
    border-radius: 18px;
    background: #fff7ef;
    padding: 28px;
    text-align: left;
}

.quiz-result-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffe4cc;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 18px;
}

.quiz-result-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.quiz-result-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .quiz-info-grid {
        grid-template-columns: 1fr;
    }

    .quiz-result-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .quiz-box,
    .quiz-result-box {
        padding: 22px;
    }

    .quiz-question {
        font-size: 28px;
    }

    .quiz-answer {
        min-height: 60px;
        font-size: 17px;
        padding: 16px 18px;
    }

    .quiz-info-card {
        grid-template-columns: 48px 1fr;
    }

    .quiz-info-icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .quiz-result-actions .btn {
        width: 100%;
    }

    .quiz-result-card {
        text-align: center;
    }

    .quiz-result-icon {
        margin: 0 auto 18px;
    }
}

.quiz-section {
    padding-top: 30px;
}

/* ===== MAXŮV KVÍZ - PLOVOUCÍ TLAPKA ===== */

.max-quiz-widget {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
}

.max-quiz-paw {
    width: 74px;
    height: 74px;
    display: block;
    text-decoration: none;
    animation: maxQuizPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.max-quiz-paw img {
    width: 100%;
    height: 100%;
    display: block;
}

.max-quiz-paw:hover,
.max-quiz-paw:focus,
.max-quiz-paw.is-active {
    animation: none;
    transform: scale(1.08);
}

.max-quiz-bubble {
    position: absolute;
    right: 10px;
    bottom: 92px;
    width: 260px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.max-quiz-bubble.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.max-quiz-bubble strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.max-quiz-bubble span {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    color: var(--muted);
    margin-bottom: 16px;
}

.max-quiz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
}

.max-quiz-button:hover,
.max-quiz-button:focus {
    background: var(--accent-hover);
}

.max-quiz-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.max-quiz-arrow {
    position: absolute;
    right: 38px;
    bottom: -33px;
    width: 66px;
    height: auto;
    display: block;
    pointer-events: none;
}

@keyframes maxQuizPulse {
    0% {
        transform: scale(1);
    }

    8% {
        transform: scale(1.07);
    }

    16% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 680px) {
    .max-quiz-widget {
        right: 14px;
        bottom: 14px;
    }

    .max-quiz-paw {
        width: 62px;
        height: 62px;
    }

    .max-quiz-bubble {
        right: 4px;
        bottom: 78px;
        width: 238px;
        padding: 18px;
    }

    .max-quiz-arrow {
        right: 30px;
        bottom: -30px;
        width: 58px;
    }
}
