:root {
  --zelena: #00ab4e; --tmave-zelena: #007236; --svetle-zelena: #e8f3e8; --zluta: #fff4c2;
  --text: #231f20; --seda: #5c5f5d; --linka: #dfe8dd; --bila: #fff; --pozadi: #f6f8f4;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--pozadi); color: var(--text); font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.55; }
a { color: var(--tmave-zelena); }
img { max-width: 100%; display: block; }
h1 { font-weight: 300; font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
h1 strong, h2 strong { font-weight: 600; }
h2 { font-weight: 400; font-size: 22px; margin: 34px 0 14px; }
h3 { font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.ukazka-pruh { background: var(--zluta); color: #5a4a00; text-align: center; font-size: 14px; padding: 7px 12px; font-weight: 400; }

/* horní lišta */
.lista { background: linear-gradient(90deg, var(--tmave-zelena), var(--zelena)); color: var(--bila); }
.lista .vnitrek { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 18px; }
.logo { text-decoration: none; line-height: .95; font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.logo span { display: block; } .logo .l1 { color: var(--bila); } .logo .l2 { color: #b9f3c9; }
.portal-nazev { border-left: 1px solid rgba(255,255,255,.4); padding-left: 18px; font-size: 15px; line-height: 1.25; }
.portal-nazev b { display: block; font-size: 18px; font-weight: 600; }
.uzivatel { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bila); color: var(--tmave-zelena); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.uzivatel a { color: var(--bila); }

/* rozložení */
.rozlozeni { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; display: grid; grid-template-columns: 250px 1fr; gap: 32px; }
.menu { position: sticky; top: 16px; align-self: start; background: var(--bila); border-radius: 18px; padding: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: var(--text); padding: 9px 12px; border-radius: 10px; font-size: 15.5px; font-weight: 400; }
.menu a:hover { background: var(--svetle-zelena); }
.menu a.aktivni { background: var(--zelena); color: var(--bila); }
.menu .skupina { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--seda); padding: 14px 12px 4px; }
.obsah { min-width: 0; }
.podtitul { color: var(--seda); margin: 0 0 24px; }

/* prvky */
.mrizka { display: grid; gap: 18px; }
.m2 { grid-template-columns: repeat(2, 1fr); } .m3 { grid-template-columns: repeat(3, 1fr); } .m4 { grid-template-columns: repeat(4, 1fr); }
.karta { background: var(--bila); border-radius: 18px; padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.karta p { margin: 0 0 8px; } .karta p:last-child { margin-bottom: 0; }
.karta.zelena { background: linear-gradient(135deg, var(--zelena), var(--tmave-zelena)); color: var(--bila); }
.karta.zelena a { color: var(--bila); }
.cislo-velke { font-size: 38px; font-weight: 300; line-height: 1; margin-bottom: 4px; }
.datum { color: var(--zelena); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.stitek { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--svetle-zelena); color: var(--tmave-zelena); vertical-align: middle; }
.stitek.faze2 { background: #fde7c8; color: #8a4b00; }
.stitek.novy { background: var(--zelena); color: var(--bila); }
.uvodni-obr { border-radius: 22px; height: 190px; background: url("obrazky/jezero.jpg") center 45% / cover; position: relative; overflow: hidden; margin-bottom: 26px; }
.uvodni-obr div { position: absolute; left: 28px; bottom: 22px; color: var(--bila); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.uvodni-obr .ozdobny { font-family: "Bodoni Moda", Didot, Georgia, serif; letter-spacing: .3em; text-transform: uppercase; font-size: 34px; }
.faze2-info { background: #fff8ec; border: 1px dashed #e7b36a; border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; font-size: 15.5px; }

/* seznamy dokumentů a akcí */
.seznam { background: var(--bila); border-radius: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.05); overflow: hidden; }
.radek { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--linka); }
.radek:last-child { border-bottom: 0; }
.ikona { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--svetle-zelena); color: var(--tmave-zelena); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.radek .text { flex: 1; min-width: 0; } .radek .text small { display: block; color: var(--seda); font-size: 14px; }
.tlacitko { display: inline-block; background: var(--zelena); color: var(--bila); text-decoration: none; border: 0; padding: 9px 18px; border-radius: 30px; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.tlacitko.obrys { background: transparent; color: var(--tmave-zelena); border: 1.5px solid var(--zelena); }
.kalendar-den { flex: 0 0 64px; text-align: center; background: var(--svetle-zelena); border-radius: 12px; padding: 6px 0; color: var(--tmave-zelena); }
.kalendar-den b { display: block; font-size: 24px; line-height: 1.1; }
.kalendar-den span { font-size: 12.5px; text-transform: uppercase; }

/* tabulky */
.tabulka { width: 100%; border-collapse: collapse; background: var(--bila); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.05); font-size: 15.5px; }
.tabulka th { text-align: left; background: var(--svetle-zelena); font-weight: 600; padding: 12px 14px; }
.tabulka td { padding: 12px 14px; border-top: 1px solid var(--linka); }
.stav { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.stav.s1 { background: #e6eefc; color: #23468c; } .stav.s2 { background: #fff1d6; color: #8a5a00; } .stav.s3 { background: #dff3e4; color: #0b6b33; } .stav.s4 { background: #eee; color: #555; }
.obal-tabulky { overflow-x: auto; }

/* formulář */
.formular { background: var(--bila); border-radius: 18px; padding: 24px; box-shadow: 0 4px 18px rgba(0,0,0,.05); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.formular label { display: block; font-size: 14.5px; font-weight: 400; margin-bottom: 4px; }
.formular input, .formular select, .formular textarea { width: 100%; padding: 10px 12px; border: 1px solid #cdd9cb; border-radius: 10px; font: inherit; font-size: 16px; background: #fcfdfb; }
.formular .cela { grid-column: 1 / -1; }
.hlaska { display: none; grid-column: 1 / -1; background: var(--svetle-zelena); padding: 12px 16px; border-radius: 10px; }

/* přístroje */
.pristroj img { height: 130px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.pristroj { text-align: center; }
.pristroj p { font-size: 15px; color: var(--seda); }
.video { aspect-ratio: 16/9; border-radius: 14px; background: linear-gradient(135deg, #2c5e3c, #0f3a22) center/cover; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; position: relative; overflow: hidden; }
.video::after { content: "▶"; color: var(--bila); font-size: 34px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.video .delka { position: absolute; right: 10px; bottom: 8px; color: var(--bila); font-size: 13px; background: rgba(0,0,0,.45); padding: 1px 7px; border-radius: 6px; }

/* přihlášení a rozcestník */
.prihlaseni-pozadi { min-height: 100vh; background: url("obrazky/jezero.jpg") center / cover; display: flex; align-items: center; justify-content: center; padding: 20px; }
.prihlaseni { background: rgba(255,255,255,.96); border-radius: 24px; padding: 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.prihlaseni .logo .l1 { color: var(--tmave-zelena); } .prihlaseni .logo .l2 { color: var(--zelena); }
.prihlaseni input { width: 100%; padding: 12px; border: 1px solid #cdd9cb; border-radius: 10px; font: inherit; margin: 6px 0 14px; }
.prihlaseni .tlacitko { width: 100%; text-align: center; padding: 12px; }
.rozcestnik { max-width: 1000px; margin: 0 auto; padding: 40px 24px 70px; }

@media (max-width: 960px) {
  .rozlozeni { grid-template-columns: 1fr; padding: 16px 16px 50px; gap: 18px; }
  .menu { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-radius: 14px; }
  .menu a { white-space: nowrap; } .menu .skupina { display: none; }
  .m2, .m3, .formular { grid-template-columns: 1fr; }
  .m4 { grid-template-columns: 1fr 1fr; }
  .cislo-velke { font-size: 28px; }
  .uvodni-obr .ozdobny { font-size: 21px; letter-spacing: .18em; }
  .uvodni-obr { height: 150px; }
  .portal-nazev, .uzivatel span { display: none; }
  .lista .vnitrek { padding: 12px 16px; }
  .radek { flex-wrap: wrap; }
  h1 { font-size: 26px; }
}
