/* === FITNESS MB — DESIGN SYSTEM (rodina cms-engine, bento grid) === */

/* BAREVNÁ PALETA — přepisuje se z data/appearance.json v headeru */
:root {
    --brand-light: #E63E2E;   /* akcent — červená */
    --brand-dark: #141414;    /* tmavá — uhlová černá */
    --darkest-blue: #0b0b0b;  /* nejtmavší sekce (název kvůli enginu) */
    --light-bg: #f6f6f7;
    --white: #ffffff;
    --border: #e5e5e8;
    --text: #333a44;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--brand-dark);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
h1 { font-size: 3.2rem; margin-bottom: 20px; }
h2 { font-size: 2.1rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
p { font-size: 1.02rem; font-weight: 300; color: #4b5563; }
h1 i, h2 i { color: var(--brand-light); font-style: normal; }

/* TLAČÍTKA */
.btn-container { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--white);
    padding: 15px 32px; font-weight: 600; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px;
    font-family: 'Oswald', sans-serif; font-size: 0.95rem;
    transition: background 0.3s ease; border: none; cursor: pointer;
}
.btn-cta:hover { background: var(--brand-dark); color: var(--white); }
.btn-outline {
    background: transparent; color: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
}
.btn-outline:hover { background: var(--white); color: var(--brand-dark); }
.btn-outline-dark { color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--brand-dark); }
.btn-outline-dark:hover { background: var(--brand-dark); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; letter-spacing: 0.8px; }

/* HLAVIČKA A NAVIGACE */
header {
    background: var(--brand-dark); color: var(--white);
    border-bottom: 3px solid var(--brand-light);
    padding: 14px 40px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.site-logo { height: 45px; display: block; transition: opacity 0.3s; }
.site-logo:hover { opacity: 0.85; }

nav { display: flex; gap: 28px; }
nav a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem; text-transform: uppercase; font-weight: 500; letter-spacing: 1.5px;
    transition: color 0.3s;
}
nav a:hover, nav a.active { color: var(--brand-light); }

/* HAMBURGER TLAČÍTKO */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: rgba(255,255,255,0.85); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BENTO GRID */
.grid-container {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.grid-item {
    border-right: 1px solid var(--border); border-top: 1px solid var(--border);
    padding: 40px; display: flex; flex-direction: column; justify-content: center;
    background: var(--white);
}
.no-pad { padding: 0; overflow: hidden; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--brand-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.75); }
.span-2-col { grid-column: span 2; }
.span-3-col { grid-column: span 3; }
.span-4-col { grid-column: span 4; }

/* HERO SWIPER */
.hero-text {
    position: relative; z-index: 1; overflow: hidden;
    min-height: 480px; justify-content: flex-end;
}
.hero-text h1, .hero-text p { color: var(--white); }
.hero-text h1 { font-size: 3.6rem; }
.hero-text p { max-width: 560px; font-size: 1.15rem; }
.hero-text > * { position: relative; z-index: 2; }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
/* ztmavení jen pod textem vlevo, doprava jde do ztracena (fotka zůstane vidět) */
.hero-text::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(11,11,11,0.82) 0%, rgba(11,11,11,0.66) 30%, rgba(11,11,11,0.22) 58%, rgba(11,11,11,0) 80%),
        linear-gradient(180deg, rgba(11,11,11,0) 55%, rgba(11,11,11,0.35) 100%);
}
/* nadpis jen pro čtečky a vyhledávače */
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-dots {
    display: flex; gap: 10px; margin-top: 26px;
}
.hero-dot {
    width: 11px; height: 11px; border-radius: 50%; padding: 0; cursor: pointer;
    border: 2px solid rgba(255,255,255,0.8); background: transparent; transition: background 0.2s;
}
.hero-dot.active { background: var(--brand-light); border-color: var(--brand-light); }

/* OTEVÍRACÍ DOBA — oranžový blok na homepage (oranžová z loga) */
.hours-hp { background: #E85222; color: var(--white); }
.hours-hp h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 8px; }
.hours-hp-text { color: rgba(255,255,255,0.95); font-size: 1.05rem; font-weight: 400; }

/* PŘEDNOSTI — šedý blok se zelenými nadpisy (dle originálu) */
.prednosti-block { background: #515050; }
.prednosti-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.prednost {
    padding: 40px 34px; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.prednost:last-child { border-right: none; }
.prednost h3 {
    color: #BAD61E; font-size: 1.35rem; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.prednost p { color: rgba(255,255,255,0.9); font-size: 0.98rem; }
@media (max-width: 760px) {
    .prednosti-grid { grid-template-columns: 1fr; }
    .prednost { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .prednost:last-child { border-bottom: none; }
}
.hero-badge {
    display: inline-block; align-self: flex-start;
    background: var(--brand-light); color: var(--white);
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; font-weight: 600; padding: 6px 14px; margin-bottom: 18px;
}

/* PODSTRÁNKOVÝ HERO */
.subpage-hero { padding: 70px 40px; }
.subpage-hero h1 { margin-bottom: 10px; }
.subpage-hero p { max-width: 640px; }

/* OTEVÍRACÍ DOBA */
.hours-row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,0.15);
    font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row strong { white-space: nowrap; font-weight: 600; }
.bg-dark .hours-row { color: rgba(255,255,255,0.85); }

/* KARTY SLUŽEB */
.service-card { justify-content: flex-start; text-decoration: none; transition: background 0.25s; }
.service-card:hover { background: var(--light-bg); }
.service-icon { margin-bottom: 16px; line-height: 0; }
.service-icon .ico { width: 42px; height: 42px; color: var(--brand-light); }

/* ikona jako velký nakloněný vodoznak v pravém rohu karty */
.icon-corner { position: relative; overflow: hidden; }
.icon-corner .service-icon {
    position: absolute; top: 22px; right: 18px; margin: 0; z-index: 0; pointer-events: none;
}
.icon-corner .service-icon .ico {
    width: 88px; height: 88px; color: var(--brand-light);
    opacity: 0.14; transform: rotate(30deg);
}
.icon-corner > *:not(.service-icon) { position: relative; z-index: 1; }
.icon-corner h3 { padding-right: 56px; }  /* aby se nadpis nekryl s vodoznakem */

/* SLUŽBY — rovná 3-sloupcová mřížka (bez děr) */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
}
.services-grid .service-card,
.services-stack .service-card {
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 40px; background: var(--white); text-decoration: none;
    position: relative; overflow: hidden; transition: background 0.25s;
}
.services-grid .service-card:hover,
.services-stack .service-card:hover { background: var(--light-bg); }
.services-grid .service-card .service-more,
.services-stack .service-card .service-more { margin-top: auto; padding-top: 16px; }

/* AKTUALITY — vyvážené sloupce (masonry-like, plná šířka) */
.news-cols { columns: 3 320px; column-gap: 44px; }
.news-cols .news-item { break-inside: avoid; -webkit-column-break-inside: avoid; }
.news-cols .news-item:first-child { padding-top: 6px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
/* nadpis služby s ikonou (podstránka Služby) */
.svc-h2 { display: flex; align-items: center; gap: 12px; }
.svc-h2-ico { line-height: 0; }
.svc-h2-ico .ico { width: 32px; height: 32px; color: var(--brand-light); }

/* DETAIL SLUŽBY (/sluzby/<slug>) */
.svc-back {
    display: inline-block; margin-bottom: 14px; text-decoration: none; color: var(--brand-light);
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; font-weight: 600;
}
.svc-back:hover { color: var(--brand-dark); }
.svc-h1 { display: flex; align-items: center; gap: 14px; }
.svc-h1 .ico { width: 40px; height: 40px; color: var(--brand-light); }
.svc-block-title { font-size: 1.35rem; margin: 22px 0 8px; }
.svc-block-title:first-child { margin-top: 0; }
.svc-block-text { font-size: 1rem; }
.svc-image img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.svc-others { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-other {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
    background: var(--white); border: 1px solid var(--border); text-decoration: none;
    color: var(--brand-dark); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.svc-other:hover { border-color: var(--brand-light); color: var(--brand-light); }
.svc-other-ico { line-height: 0; }
.svc-other-ico .ico { width: 20px; height: 20px; color: var(--brand-light); }
/* ikony v patičce (kontakt) */
.fico-row { display: flex; align-items: flex-start; gap: 9px; }
.fico-row .fico { width: 17px; height: 17px; color: var(--brand-light); flex-shrink: 0; margin-top: 3px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; }
.service-more {
    margin-top: 16px; color: var(--brand-light);
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; font-weight: 600;
}

/* AKTUALITY */
.news-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-date {
    color: var(--brand-light); font-family: 'Oswald', sans-serif;
    font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
}
.news-item h3 { margin: 6px 0 8px; }
.news-item p { font-size: 0.95rem; white-space: pre-line; }
.news-img { max-width: 100%; max-height: 260px; object-fit: cover; margin: 4px 0 10px; display: block; }
.news-clamp {
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-fb-link {
    display: inline-block; margin-top: 8px;
    color: var(--brand-light); text-decoration: none;
    font-family: 'Oswald', sans-serif; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; font-weight: 600;
}
.news-fb-link:hover { color: var(--brand-dark); }

/* HOME SPLIT — aktuality (vlevo) a služby (vpravo) graficky oddělené */
.home-split { display: flex; align-items: stretch; }
.home-split .split-col { flex: 1 1 50%; min-width: 0; padding: 44px; }
.home-split .split-usp { display: flex; flex-direction: column; }
.home-split .split-col + .split-col { border-left: 1px solid var(--border); }
.home-split h2 { margin-bottom: 26px; }

/* služby jako svislý seznam karet */
.services-stack { border: 1px solid var(--border); overflow: hidden; }
.services-stack .service-card { border-bottom: 1px solid var(--border); }
.services-stack .service-card:last-child { border-bottom: none; }

/* aktuality jako kompaktní feed — dlouhé texty zkrácené na 5 řádků */
.news-single .news-item:first-child { padding-top: 0; }
.news-single .news-item p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
/* přelité aktuality pod službami oddělit linkou */
.hs-overflow:not(:empty) { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 4px; }

/* Rezervace (nad službami) + Otevřeno denně (pod službami) */
.news-promo { background: var(--light-bg); border: 1px solid var(--border); padding: 26px 24px; border-radius: 10px; }
.news-promo .service-icon { margin-bottom: 10px; }
.news-promo h3 { margin: 0 0 6px; }
.news-promo p { font-size: 0.95rem; }
/* rezervace nahoře = bento buňka: hranatá, šedá až ke krajům sloupce (sloupec má padding 44px) */
.promo-top {
    border-radius: 0; border: 0; border-bottom: 1px solid var(--border);
    margin: -44px -44px 34px; padding: 40px 44px;
}
.promo-top .service-icon { top: 30px; right: 34px; }
.usp-promos { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
/* oranžový blok = bento buňka: hranatý, až ke krajům sloupce; bez přelitých aktualit i dolů k okraji */
.usp-promos .news-hours { background: #E85222; color: var(--white); text-align: center; padding: 34px 24px; margin: 0 -44px; }
.split-usp.usp-fill .usp-promos { margin-bottom: -44px; }
.usp-promos .news-hours h3 { color: var(--white); margin: 0 0 6px; font-size: 1.5rem; }
.usp-promos .news-hours p { color: rgba(255,255,255,0.95); font-size: 1rem; }
/* když se nic nepřelilo, oranžový blok vyplní zbytek výšky pravého sloupce */
.split-usp.usp-fill .usp-promos { flex: 1 1 auto; }
.split-usp.usp-fill .usp-promos .news-hours { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 900px) {
    .home-split { flex-direction: column; align-items: stretch; }
    .home-split .split-col { padding: 32px 20px; }  /* rodič je no-pad → boční okraj jako u .grid-item na mobilu */
    .promo-top { margin: -32px -20px 28px; padding: 30px 20px; }
    .promo-top .service-icon { top: 22px; right: 18px; }
    .usp-promos .news-hours { margin: 0 -20px; }
    .split-usp.usp-fill .usp-promos { margin-bottom: -32px; }
    .home-split .split-col + .split-col { border-left: none; border-top: 1px solid var(--border); }
}

/* CENÍK */
.price-section h3 {
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: 8px; margin-bottom: 14px;
}
.price-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-name { font-size: 0.98rem; }
.price-name small { display: block; color: #8a94a3; font-size: 0.82rem; }
.price-value {
    font-family: 'Oswald', sans-serif; font-weight: 600; white-space: nowrap;
    color: var(--brand-dark); font-size: 1.05rem;
}
.price-note { font-size: 0.85rem; color: #8a94a3; margin-top: 14px; }

/* TRENÉŘI / LEKTOŘI */
.trainer-card { justify-content: flex-start; }
.trainer-card h3 { color: var(--brand-light); }
.trainer-role {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.8rem; color: #8a94a3; margin-bottom: 12px;
}
.trainer-card ul { list-style: none; margin: 0 0 16px; }
.trainer-card ul li {
    font-size: 0.92rem; color: #4b5563; font-weight: 300;
    padding: 4px 0 4px 20px; position: relative;
}
.trainer-card ul li::before {
    content: '›'; position: absolute; left: 4px; color: var(--brand-light); font-weight: 700;
}
.trainer-contact { margin-top: auto; font-size: 0.92rem; }
.trainer-contact a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.trainer-contact a:hover { color: var(--brand-light); }

/* GALERIE */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    grid-column: span 4;
}
.gallery-grid a { display: block; overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* VIRTUÁLNÍ PROHLÍDKA */
.tour-head { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; }
.tour-head a { color: var(--brand-dark); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.tour-head a:hover { color: var(--brand-light); }
.tour-embed { width: 100%; aspect-ratio: 16/9; min-height: 420px; max-height: 80vh; border: none; display: block; }

/* LIGHTBOX */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 18px; right: 24px; background: none; border: none;
    color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* REZERVACE — krokové karty */
.step-card { position: relative; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 14px;
    background: var(--brand-light); color: var(--white);
    font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700;
}
.step-list { list-style: none; }
.step-list li {
    font-size: 0.95rem; color: #4b5563; font-weight: 300;
    padding: 8px 0 8px 24px; position: relative;
    border-bottom: 1px dashed var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
    content: '✓'; position: absolute; left: 0; top: 8px;
    color: var(--brand-light); font-weight: 700;
}

/* ROZVRH LEKCÍ (z Member Pro) — bento: hairline mřížka dnů, lekce jako řádky ceníku */
.rozvrh-block { justify-content: flex-start; }
.rozvrh-intro { max-width: 640px; margin-bottom: 30px; }
.rozvrh-days {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.rozvrh-day { background: var(--white); padding: 26px 28px 20px; display: flex; flex-direction: column; }
.rozvrh-day-title {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px;
    border-bottom: 2px solid var(--brand-light); padding-bottom: 10px;
}
.rozvrh-day-title span { color: var(--brand-light); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.5px; }
.rozvrh-list { list-style: none; }
.rozvrh-lesson {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time cap" "name cap" "trainer trainer" "btn btn";
    gap: 2px 12px; align-items: center;
    padding: 14px 0; border-bottom: 1px dashed var(--border);
}
.rozvrh-lesson:last-child { border-bottom: none; padding-bottom: 0; }
.rozvrh-time { grid-area: time; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--brand-dark); letter-spacing: 0.5px; }
.rozvrh-name { grid-area: name; font-weight: 600; font-size: 1rem; color: var(--brand-dark); }
.rozvrh-trainer { grid-area: trainer; font-size: 0.88rem; color: #6b7280; }
.rozvrh-cap {
    grid-area: cap; align-self: start; justify-self: end; white-space: nowrap;
    font-family: 'Oswald', sans-serif; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
    color: var(--white); background: var(--brand-light); padding: 4px 10px;
}
.rozvrh-cap.is-full { color: #6b7280; background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.rozvrh-lesson.is-full .rozvrh-time, .rozvrh-lesson.is-full .rozvrh-name { color: #8a94a3; }
.rozvrh-btn { grid-area: btn; justify-self: start; margin-top: 10px; }
.rozvrh-empty { font-size: 0.98rem; }
.rozvrh-note { font-size: 0.85rem; color: #6b7280; margin-top: 22px; max-width: 760px; }
.rozvrh-note strong { color: #b45309; font-weight: 600; }
@media (max-width: 576px) {
    .rozvrh-days { grid-template-columns: 1fr; }
    .rozvrh-day { padding: 20px 18px 16px; }
    .rozvrh-btn { width: auto; }
}

/* nejbližší lekce na homepage (uvnitř promo karty Rezervace) */
.rozvrh-mini-title {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 0.78rem; font-weight: 600; color: var(--brand-light); margin: 14px 0 6px;
}
.rozvrh-mini { list-style: none; border-top: 1px solid var(--border); }
.rozvrh-mini li {
    display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
    padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.rozvrh-mini-when { font-family: 'Oswald', sans-serif; font-weight: 600; white-space: nowrap; color: var(--brand-dark); }
.rozvrh-mini-name { flex: 1 1 auto; color: var(--text); }
.rozvrh-mini-cap { font-size: 0.78rem; color: #15803d; white-space: nowrap; }
.rozvrh-mini li.is-full .rozvrh-mini-cap { color: #6b7280; }
.rozvrh-mini li.is-full .rozvrh-mini-name { color: #6b7280; }

/* SCREENSHOTY U JEDNOTLIVÝCH KROKŮ (rezervace) */
.shot-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    margin: 10px 0 4px;
}
.shot-grid:has(a:only-child) { grid-template-columns: minmax(0, 60%); }
.shot-grid a {
    display: block; border: 1px solid var(--border); overflow: hidden;
    aspect-ratio: 16/9; background: var(--light-bg);
}
.shot-grid img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    display: block; transition: transform 0.3s ease;
}
.shot-grid a:hover img { transform: scale(1.06); }

/* KONTAKT */
.contact-list { list-style: none; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brand-light); }
.map-embed { width: 100%; height: 100%; min-height: 380px; border: none; display: block; }

/* PATIČKA */
footer { background: var(--darkest-blue); color: var(--white); }
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.footer-item {
    padding: 40px 30px; border-right: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-direction: column;
}
.footer-item:last-child { border-right: none; }
.footer-item h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.footer-item p { font-size: 0.92rem; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer-item a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-item a:hover { color: var(--brand-light); }
/* logo doleva — ve flex sloupci se jinak roztáhne na šířku a SVG se v boxu vycentruje */
.footer-item img { align-self: flex-start; width: auto; }
/* poslední sloupec zarovnaný k pravému okraji */
.footer-social { align-items: flex-end; text-align: right; }
/* časy s tabulkovými číslicemi → 8:00 a 9:00 sedí pod sebou */
.hours-row strong { font-variant-numeric: tabular-nums; }

/* RESPONZIVITA */
@media (max-width: 1024px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .span-2-col, .span-3-col, .span-4-col { grid-column: span 2; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-column: span 2; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .footer-item:nth-child(2n) { border-right: none; }
    .footer-item:nth-last-child(-n+2) { border-bottom: none; }
    .subpage-hero { padding: 55px 40px; }
    .hero-text { min-height: 420px; }
    .hero-text h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    header { flex-direction: row; flex-wrap: wrap; padding: 12px 20px; gap: 0; position: sticky; }
    .nav-toggle { display: flex; }
    #mainNav {
        display: none; flex-direction: column; gap: 0; width: 100%;
        background: var(--darkest-blue);
        position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3); padding: 10px 0;
    }
    #mainNav.nav-open { display: flex; }
    #mainNav a {
        padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1rem; letter-spacing: 0.5px;
    }
    #mainNav a:last-child { border-bottom: none; }
    .grid-item { padding: 30px 20px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    .hero-text { min-height: 380px; }
    .hero-text h1 { font-size: 2.6rem; }
    .subpage-hero { padding: 45px 20px; }
    /* na mobilu je text přes celou šířku → ztmavit odspodu místo zleva */
    .hero-text::after {
        background: linear-gradient(180deg, rgba(11,11,11,0.25) 0%, rgba(11,11,11,0.8) 100%);
    }
}

@media (max-width: 576px) {
    .grid-container { grid-template-columns: 1fr; border-left: none; }
    .grid-item, .span-2-col, .span-3-col, .span-4-col { grid-column: span 1; border-right: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .footer-item:last-child { border-bottom: none; }
    .footer-social { align-items: flex-start; text-align: left; }  /* v jednom sloupci zarovnat jako ostatní */
    .hero-text { min-height: 320px; }
    .hero-text h1 { font-size: 2.1rem; }
    .btn-container { flex-direction: column; }
    .btn-cta { width: 100%; }
}

/* === ZÁLOŽKA FITNESS ↔ GOLF (úplně dole, pod patičkou obou webů) ===
   Pruh přes celou šířku, dvě poloviny. Aktivní má barvu patičky, druhá je světlá
   a vede na protějšek. */
.site-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--darkest-blue); }
.ss-tab {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 22px 30px; text-decoration: none; color: var(--brand-dark);
    background: var(--light-bg); border-top: 4px solid transparent;
    transition: background 0.2s, color 0.2s;
}
.ss-fitness { border-top-color: #E63E2E; }
.ss-golf    { border-top-color: #1F9D3C; }
.ss-ico { line-height: 0; }
.ss-ico .ico { width: 30px; height: 30px; }
.ss-fitness .ico { color: #E63E2E; }
.ss-golf .ico    { color: #1F9D3C; }
.ss-txt strong {
    display: block; font-family: 'Oswald', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; line-height: 1.2;
}
.ss-txt small { display: block; font-size: 0.8rem; opacity: 0.7; }
.ss-go { font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.ss-fitness .ss-go { color: #E63E2E; }
.ss-golf .ss-go    { color: #1F9D3C; }
.ss-tab.is-active { background: var(--darkest-blue); color: var(--white); }
a.ss-tab:hover { background: var(--white); }
a.ss-tab:hover .ss-go { transform: translateX(4px); }
a.ss-fitness:hover strong { color: #E63E2E; }
a.ss-golf:hover strong    { color: #1F9D3C; }
/* přihlášený správce: plovoucí edit lišta (#cms-editbar) by pruh zakrývala */
body:has(#cms-editbar) .ss-tab { padding-bottom: 76px; }
@media (max-width: 576px) {
    .ss-tab { padding: 14px 12px; gap: 8px; }
    .ss-ico .ico { width: 22px; height: 22px; }
    .ss-txt strong { font-size: 0.88rem; }
    .ss-txt small { display: none; }
    .ss-go { font-size: 1.1rem; }
}

/* === INDOOR GOLF MB (body.site-golf) — stejný systém, světlá hlavička kvůli logu === */
.site-golf header { background: var(--white); box-shadow: 0 1px 0 var(--border); }
.site-golf .site-logo { height: 48px; width: auto; }
.site-golf nav a { color: var(--brand-dark); }
.site-golf nav a:hover, .site-golf nav a.active { color: var(--brand-light); }
.site-golf .nav-toggle span { background: var(--brand-dark); }
.site-golf .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; }
.site-golf .usp-promos .news-hours { background: var(--brand-light); }
.preview-bar {
    background: #f5c518; color: #141414; text-align: center; padding: 8px 16px;
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
}
.golf-par { margin-bottom: 12px; }
.golf-muted { color: #6b7280; }
.golf-inline-link { color: var(--brand-light); font-weight: 600; text-decoration: none; }
.golf-inline-link:hover { color: var(--brand-dark); }
.golf-on-dark { color: var(--white); font-weight: 600; text-decoration: none; }
.golf-phone { margin: 6px 0 10px; }
.golf-phone a {
    font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 600; letter-spacing: 1px;
    color: var(--brand-light); text-decoration: none;
}
.golf-features { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); margin: 0 -44px; }
.golf-feature {
    display: flex; align-items: center; gap: 12px; padding: 18px 24px 18px 44px;
    border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: 0.95rem; color: var(--brand-dark);
}
.golf-feature:nth-child(2n) { border-left: 1px solid var(--border); padding-left: 24px; }
.golf-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* lichý počet → poslední přes celou šířku */
.golf-feature:only-child { grid-column: 1 / -1; }
/* ÚVOD golfu: mřížka 2×3 — O klubu|Výbava, Simulátor|Rezervace, grafika|Otevřeno; buňky v řádku mají stejnou výšku */
.golf-home {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-areas: "about vyb" "sim rez" "visual hours";
}
.gh-about { grid-area: about; } .gh-rez { grid-area: rez; } .gh-sim { grid-area: sim; }
.gh-vyb { grid-area: vyb; } .gh-visual { grid-area: visual; } .gh-hours { grid-area: hours; }
.gh-cell { padding: 44px; min-width: 0; }
.gh-rez, .gh-vyb, .gh-hours { border-left: 1px solid var(--border); }
.golf-home .gh-rez { border-radius: 0; border-right: 0; border-bottom: 0; border-left-width: 1px; margin: 0; padding: 44px; }
.golf-home .gh-vyb { border-top: 0; }   /* první řádek — nahoře žádná linka */
.gh-rez { display: flex; flex-direction: column; justify-content: center; }   /* obsah rezervace na střed výšky řádku */
.gh-rez .service-icon { top: 30px; right: 34px; }
.gh-table { display: flex; flex-direction: column; padding-bottom: 0; border-top: 1px solid var(--border); }
.gh-head { margin-bottom: 26px; }
.gh-head h2 { margin: 0; }
/* tabulka vyplní buňku až dolů, řádky se rovnoměrně natáhnou → obě tabulky končí stejně */
.gh-table .golf-features { flex: 1 1 auto; grid-auto-rows: 1fr; }
.gh-hours {
    background: var(--brand-light); color: var(--white); text-align: center; padding: 34px 24px;
    display: flex; flex-direction: column; justify-content: center;
}
.gh-hours h3 { color: var(--white); margin: 0 0 6px; font-size: 1.5rem; }
.gh-hours p { color: rgba(255,255,255,0.95); font-size: 1rem; }
.golf-visual { display: block; position: relative; min-height: 320px; overflow: hidden; background: var(--brand-dark); text-decoration: none; }
.golf-visual img { transition: transform 0.6s ease; }
.golf-visual:hover img { transform: scale(1.04); }
.gh-more { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: #8fe39f; }
.golf-visual:hover .gh-more { color: var(--white); }
.golf-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.golf-visual .gh-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 44px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: var(--white);
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 1.05rem;
}
.golf-feature-ico { line-height: 0; }
.golf-feature-ico .ico { width: 26px; height: 26px; color: var(--brand-light); }
.golf-wide-img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.golf-cover-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.golf-rules { list-style: none; counter-reset: rule; }
.golf-rules li {
    counter-increment: rule; position: relative; padding: 10px 0 10px 44px;
    border-bottom: 1px dashed var(--border); font-size: 0.95rem; font-weight: 300; color: #4b5563;
}
.golf-rules li:last-child { border-bottom: none; }
.golf-rules li::before {
    content: counter(rule, lower-alpha); position: absolute; left: 0; top: 9px;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--white);
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1rem;
}
.golf-downloads { list-style: none; }
.golf-downloads a {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 0;
    color: var(--brand-dark); font-weight: 600; text-decoration: none;
}
.golf-downloads a:hover { color: var(--brand-light); }
.golf-downloads .ico { width: 22px; height: 22px; color: var(--brand-light); }
.golf-footer-logo { display: inline-block; align-self: flex-start; background: var(--white); padding: 8px 12px; margin-bottom: 20px; line-height: 0; }
.golf-footer-logo img { height: 40px; width: auto; }
@media (max-width: 768px) {
    .site-golf #mainNav { background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
    .site-golf #mainNav a { border-bottom-color: var(--border); }
}
@media (max-width: 900px) {
    .golf-features { margin: 0 -20px; }
    .golf-feature { padding-left: 20px; }
    .golf-home { grid-template-columns: 1fr; grid-template-areas: "about" "vyb" "rez" "sim" "visual" "hours"; }
    .golf-home .gh-vyb { border-top: 1px solid var(--border); }
    .gh-cell { padding: 32px 20px; }
    .golf-home .gh-rez { padding: 30px 20px; border-top: 1px solid var(--border); }
    .gh-rez .service-icon { top: 22px; right: 18px; }
    .gh-table { padding-bottom: 0; }
    .gh-rez, .gh-vyb, .gh-hours { border-left: none; }
    .golf-visual { min-height: 220px; }
    .golf-visual .gh-caption { padding: 32px 20px 16px; font-size: 0.95rem; }
}
@media (max-width: 576px) {
    .golf-features { grid-template-columns: 1fr; }
    .golf-feature:nth-child(2n) { border-left: none; padding-left: 20px; }
}
