/* ============================================================
   fitness24-7.cz — statický web (onepage + /dokumenty/)
   Vlastní vizuál Fitness 24/7 dle původního webu: oranžová,
   tmavě modrá z loga, serifové nadpisy.
   ============================================================ */

/* ---------- Font (lokální Open Sans pro text; nadpisy Georgia) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Proměnné (paleta Fitness 24/7) ---------- */
:root {
  --oranzova: #FF7336;         /* přesná z brand podkladů */
  --oranzova-tmava: #E55E20;
  --hneda: #9A5331;          /* teplý tón duotone overlay */
  --navy: #171A33;           /* tmavě modrá z brand podkladů */
  --cerna: #212121;          /* spodní lišta */
  --bila: #fff;
  --pozadi: #FCFCFC;
  --seda-pole: #EFEFEF;
  --text: #333;
  --text-sekundarni: #6b6b6b;
  --serif: Georgia, "Times New Roman", serif;
  --radius: 8px;
  --stin: 0 4px 18px rgba(0, 0, 0, .12);
  --stin-velky: 0 12px 34px rgba(0, 0, 0, .2);
  --prechod: .22s ease;
  --header-vyska: 84px;
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-vyska) + 14px); }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--pozadi);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-vyska);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oranzova-tmava); }
a:hover { color: var(--oranzova); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 34px); text-align: center; }
h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--oranzova); margin: .5em auto 0; }
p { margin: 0 0 1em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.obsah-uzsi { max-width: 900px; margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: var(--bila); padding: 10px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Tlačítka ---------- */
.tlacitko {
  display: inline-block; padding: 14px 30px;
  border-radius: var(--radius); border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; text-align: center; letter-spacing: .03em;
  transition: background var(--prechod), color var(--prechod), transform var(--prechod);
}
.tlacitko-oranzove { background: var(--oranzova); color: var(--bila); box-shadow: var(--stin); }
.tlacitko-oranzove:hover { background: var(--oranzova-tmava); color: var(--bila); transform: translateY(-2px); }
.tlacitko-navy { background: var(--navy); color: var(--bila); }
.tlacitko-navy:hover { background: #262a4d; color: var(--bila); }

/* ---------- Hlavička (oranžová) ---------- */
.hlavicka { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-vyska); background: var(--oranzova); transition: box-shadow var(--prechod); }
.hlavicka.odscrollovano { box-shadow: var(--stin-velky); }
.hlavicka-vnitrek { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.hlavicka-logo img { width: 150px; height: auto; }

.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 3px; border-radius: 2px; background: var(--navy); transition: transform var(--prechod), opacity var(--prechod); }
.menu-otevrene .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-otevrene .burger span:nth-child(2) { opacity: 0; }
.menu-otevrene .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.menu-odkaz { display: block; padding: 10px 14px; border-radius: 999px; font-family: var(--serif); font-size: 17px; color: var(--navy); text-decoration: none; transition: background var(--prechod), color var(--prechod); }
.menu-odkaz:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu-odkaz.aktivni { background: var(--navy); color: var(--bila); }

@media (max-width: 860px) {
  .menu { position: fixed; top: var(--header-vyska); left: 0; right: 0; background: var(--oranzova); box-shadow: var(--stin-velky); padding: 10px 20px 18px; display: none; }
  .menu-otevrene .menu { display: block; }
  .menu ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .menu-odkaz { padding: 13px 14px; }
}
@media (min-width: 861px) { .burger { display: none; } }

/* ---------- Hero (duotone oranžová) ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(154, 83, 49, .82), rgba(255, 115, 54, .65)); }
.hero-obsah { position: relative; z-index: 1; }
.hero h1 {
  color: var(--bila); font-size: clamp(38px, 6.5vw, 62px); margin: 0 auto;
  max-width: 820px; padding: .45em 0;
  border-top: 1px solid rgba(255, 255, 255, .75); border-bottom: 1px solid rgba(255, 255, 255, .75);
}
.hero-spodek { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: center; margin-top: 44px; }
.hero-claim { background: var(--oranzova); color: var(--bila); padding: 18px 24px; max-width: 430px; text-align: left; box-shadow: var(--stin); }
.hero-claim p { margin: 0; }

/* ---------- Tři pilíře ---------- */
.pilire { background: var(--bila); padding: 60px 0 48px; }
.pilire-mrizka { display: grid; gap: 36px; }
@media (min-width: 820px) { .pilire-mrizka { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.pilir h2 { text-align: left; }
.pilir h2::after { margin: .4em 0 0; }
.pilir-uvod { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.pilir-ikona { color: var(--oranzova); width: 64px; height: 64px; }
.pilir-ikona svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pilir-uvod p { margin: 0; font-weight: 700; }
.pilir details { border: 1px solid rgba(30, 30, 60, .14); border-radius: var(--radius); overflow: hidden; }
.pilir summary {
  list-style: none; cursor: pointer; padding: 13px 16px;
  background: var(--seda-pole); font-family: var(--serif); font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
}
.pilir summary::-webkit-details-marker { display: none; }
.pilir summary::after { content: "+"; font-size: 20px; color: var(--text-sekundarni); }
.pilir details[open] summary::after { content: "–"; }
.pilir details > div { padding: 14px 16px; }
.pilir details p:last-child { margin-bottom: 0; }

/* ---------- Jak to funguje + ceník (na fotce) ---------- */
.funguje { position: relative; overflow: hidden; padding: 64px 0; }
.funguje-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.funguje::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .18); }
.funguje-mrizka { position: relative; z-index: 1; display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .funguje-mrizka { grid-template-columns: 1fr 1fr; gap: 44px; } }
.karta { background: var(--bila); padding: 30px 28px; box-shadow: var(--stin-velky); }
.karta h2 { text-align: left; font-size: 22px; }
.karta h2::after { display: none; }
.sipky { list-style: none; padding: 0; margin: 0; }
.sipky > li { position: relative; padding-left: 24px; margin-bottom: .9em; }
.sipky > li::before { content: ""; position: absolute; left: 2px; top: .5em; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--oranzova); }
.sipky > li:last-child { margin-bottom: 0; }

.cenik { text-align: center; }
.cenik-badge { display: inline-block; background: var(--oranzova); color: var(--bila); font-size: 14px; font-weight: 700; padding: 6px 22px; border-radius: 4px; margin: -46px auto 26px; position: relative; }
.cenik-minut { color: var(--text-sekundarni); margin-bottom: .1em; }
.cenik-cena { font-family: var(--serif); font-size: clamp(40px, 6vw, 54px); font-weight: 700; color: var(--navy); margin: 0 0 .5em; }
.cenik-oddelovac { width: 100%; height: 2px; background: var(--oranzova); border: 0; margin: 0 0 1.4em; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--bila); padding: 64px 0; }
.kontakt-mrizka { display: grid; gap: 40px; }
@media (min-width: 860px) { .kontakt-mrizka { grid-template-columns: 1fr 1fr; gap: 56px; } }
.kontakt h2 { text-align: left; }
.kontakt h2::after { margin: .5em 0 0; }
.kontakt ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.kontakt h3 { font-size: 19px; margin-top: 1.2em; }
.mailova-karta { background: var(--pozadi); border: 1px solid rgba(30, 30, 60, .12); border-radius: var(--radius); padding: 24px 22px; text-align: center; }
.mailova-karta .tlacitko { width: 100%; margin-top: 6px; overflow-wrap: anywhere; }
.mailova-karta p:first-child { margin-top: 0; }

/* ---------- Mozaika ---------- */
.mozaika { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .mozaika { grid-template-columns: repeat(4, 1fr); } }
.galerie-polozka { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--navy); transition: opacity var(--prechod); }
.galerie-polozka:hover { opacity: .85; }
.mozaika .galerie-polozka img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Reference (slider) ---------- */
.reference { padding: 64px 0 56px; }
.reference-karta {
  background: var(--bila); border: 1px solid rgba(30, 30, 60, .1); border-radius: var(--radius);
  box-shadow: var(--stin); max-width: 900px; margin: 40px auto 0; padding: 30px 34px; text-align: center;
}
.reference-slider .reference-karta { display: none; }
.reference-slider .reference-karta.aktivni { display: block; animation: reference-fade .5s ease; }
@keyframes reference-fade { from { opacity: 0; } to { opacity: 1; } }
.reference-tecky { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.reference-tecky button {
  width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(23, 26, 51, .25); transition: background .22s ease;
}
.reference-tecky button.aktivni { background: var(--oranzova); }
@media (prefers-reduced-motion: reduce) { .reference-slider .reference-karta.aktivni { animation: none; } }
.reference-jmeno { font-weight: 700; color: var(--navy); text-align: center; margin: 1.2em 0 0; }
.reference-role { color: var(--text-sekundarni); text-align: center; font-size: 15px; margin: 0; }

/* ---------- Velké logo ---------- */
.velke-logo { padding: 30px 0 64px; }
.velke-logo img { margin: 0 auto; width: min(320px, 70%); }

/* ---------- Oranžová patička ---------- */
.paticka { background: var(--oranzova); color: var(--bila); padding: 52px 0 44px; }
.paticka-mrizka { display: grid; gap: 34px; }
@media (min-width: 860px) { .paticka-mrizka { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.paticka h2 { font-size: 24px; color: var(--bila); text-align: left; letter-spacing: .05em; }
.paticka h2::after { display: none; }
.paticka ul { list-style: none; margin: 0; padding: 0; }
.paticka li { margin-bottom: .5em; }
.paticka a { color: var(--bila); }
.paticka a:hover { color: var(--navy); }
.paticka .paticka-odkazy a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.paticka p { margin: 0 0 .8em; }
.paticka strong { display: block; margin-bottom: .2em; }

/* ---------- Spodní lišta ---------- */
.spodni-lista { background: var(--cerna); color: rgba(255, 255, 255, .6); padding: 20px 0; }
.spodni-lista-vnitrek { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.spodni-lista p { margin: 0; font-size: 14.5px; }
.paticka-cookie { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 14.5px; color: rgba(255, 255, 255, .6); text-decoration: underline; }
.paticka-cookie:hover { color: var(--bila); }

/* ---------- Dokumenty (provozní řád) ---------- */
.dokument { background: var(--bila); padding: 56px 0 40px; }
.dokument h3 { font-size: 20px; margin-top: 1.6em; }
.dokument-zpet { text-align: center; padding: 10px 0 56px; background: var(--bila); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 20, 30, .92); display: flex; align-items: center; justify-content: center; padding: 4vmin; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.lightbox-zavrit { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--bila); font-size: 26px; line-height: 1; cursor: pointer; transition: background var(--prechod); }
.lightbox-zavrit:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Cookie lišta ---------- */
.cookie-pozadi { position: fixed; inset: 0; z-index: 400; background: rgba(20, 20, 30, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-okno { background: var(--bila); color: var(--text); max-width: 460px; width: 100%; padding: 26px 26px 22px; border-radius: 14px; box-shadow: var(--stin-velky); text-align: center; }
.cookie-okno h2 { font-size: 21px; margin: 0 0 .5em; }
.cookie-okno h2::after { display: none; }
.cookie-okno p { font-size: 15px; color: var(--text-sekundarni); margin-bottom: 1.2em; }
.cookie-tlacitka { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-tlacitka .tlacitko { flex: 1 1 140px; padding: 12px 16px; font-size: 15px; }
.tlacitko-obrys { background: var(--bila); color: var(--text-sekundarni); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .16); }
.tlacitko-obrys:hover { color: var(--navy); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .34); }

/* ---------- E-mailové adresy: nezalamovat uprostřed ---------- */
a[href^="mailto:"]:not(.tlacitko) { white-space: nowrap; }
.nezalomit { white-space: nowrap; }

/* ---------- Redukce pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
