/* CASD online – veřejný web (modernizovaný vzhled, varianta B) */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonty/montserrat-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonty/montserrat-latin.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;
}

:root {
  --zluta: #FCD21D;
  --ink: #2B2D35;
  --muted: #5F6270;
  --linka: #E8E6DF;
  --plocha: #FAFAF7;
  --zive: #D92D20;
  --plan: #FFF3B8;
  --sedy: #E4E4E7;
  --zaznam: #EDEBE4;
  --fialova: #EEE9FB;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Montserrat, Arial, Helvetica, sans-serif; font-weight: 500; color: var(--ink); background: var(--plocha);
       min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: var(--ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.obal { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.preskocit { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.preskocit:focus { left: 8px; }

/* Hlavička */
.hlavicka { background: #fff; border-bottom: 1px solid var(--linka); }
.hlavicka .obal { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.logo-znak { width: 34px; height: 34px; border-radius: 8px; background: var(--zluta); display: grid; place-items: center; }
.hlavicka nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 600; }
.hlavicka nav a { text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; color: var(--muted); }
.hlavicka nav a:hover { color: var(--ink); }
.hlavicka nav a.aktivni { border-color: var(--zluta); color: var(--ink); }

/* Žlutý pruh s datem */
.hero { background: var(--zluta); }
.hero-obal { padding-top: 48px; padding-bottom: 44px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-text { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.hero-text p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
h1 { margin: 0; font-size: 52px; line-height: 1.08; font-weight: 800; }
.souhrn { font-size: 17px; line-height: 1.5; margin-top: 6px !important; }
.prepinac { display: flex; background: rgba(43, 45, 53, .10); border-radius: 999px; padding: 4px; }
.prepinac a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.prepinac a[aria-current] { background: var(--ink); color: #fff; }

/* Obsah */
.obsah { padding-top: 32px; padding-bottom: 64px; }
.lista { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.legenda { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.legenda li { display: flex; align-items: center; gap: 8px; }
.tecka { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tecka-zive { background: var(--zive); }
.tecka-plan { background: var(--ink); }
.tecka-zadny { background: #B4B4BB; }
.tecka-zaznam { background: #A8A496; }
.razeni { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.razeni button { border: 1px solid #D4D2CA; cursor: pointer; font: inherit; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); }
.razeni button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Dlaždice */
.mrizka { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 28px 24px; }
.dlazdice { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.foto { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); background: var(--sedy); aspect-ratio: 1 / 1; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
a.dlazdice[href]:hover .foto img { transform: scale(1.03); }
.bez-fotky { display: grid; place-items: center; padding: 16px; text-align: center; font-size: 22px; font-weight: 800; text-transform: uppercase; background: var(--ink); color: #fff; }
.radek { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.cas { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stitek { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.stav-zive .foto { box-shadow: 0 0 0 3px var(--zive); }
.stav-zive .stitek { background: var(--zive); color: #fff; font-weight: 800; letter-spacing: 1px; }
.stav-zive .stitek::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulz 1.6s ease-in-out infinite; }
.stav-planovano .stitek { background: var(--plan); }
.stav-brzy .stitek { background: #fff; box-shadow: inset 0 0 0 2px var(--zive); color: #A3261B; }
.stav-zaznam .stitek { background: var(--zaznam); }
.stav-zaznam .stitek::before { content: ''; border-left: 7px solid var(--ink); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.stav-zadny .stitek, .stav-nevysila .stitek { background: var(--sedy); color: #3F3F46; }
.stav-prestavka .stitek { background: var(--fialova); color: #4B2E9C; }
.stav-zadny .foto img, .stav-nevysila .foto img, .stav-prestavka .foto img { filter: grayscale(1); opacity: .45; }
.stav-zadny .cas, .stav-nevysila .cas, .stav-prestavka .cas { color: #8A8C96; }
@keyframes pulz { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .stav-zive .stitek::before { animation: none; }
  .foto img { transition: none; }
}

/* Archiv */
.kanal { font-size: 14px; font-weight: 600; color: var(--muted); }
a.dlazdice:hover .kanal { color: var(--ink); }

/* Nápověda a patička */
.napoveda { margin-top: 56px; background: #fff; border: 1px solid var(--linka); border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.napoveda p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.napoveda .napoveda-nadpis { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tlacitko { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.tlacitko:hover { background: #000; }
.paticka { background: var(--ink); color: #D9D9DE; font-size: 14px; }
.paticka .obal { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; line-height: 1.6; }
.paticka strong { color: #fff; }
.paticka a { color: var(--zluta); }

/* Úvod */
.uvod { background: var(--zluta); }
.uvod-obal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.uvod h1 { font-size: 56px; }
.uvod h1 span { display: block; color: #fff; }
.uvod-text { display: flex; flex-direction: column; gap: 18px; }
.uvod-text p { margin: 0; font-size: 18px; line-height: 1.65; }
.uvod-foto { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: #e9c41a; }
.uvod-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.karty { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 40px; padding-bottom: 64px; }
.karta { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--linka); border-radius: 16px; padding: 24px; text-decoration: none; min-height: 150px; }
.karta:hover { border-color: var(--ink); }
.karta strong { font-size: 20px; font-weight: 800; }
.karta span { color: var(--muted); line-height: 1.5; }
.karta .sipka { margin-top: auto; color: var(--ink); font-weight: 700; }

/* 404 */
.chyba { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.chyba p { margin: 0; font-size: 18px; color: var(--muted); }

@media (max-width: 860px) {
  .uvod-obal { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .uvod h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .obal { padding-left: 16px; padding-right: 16px; }
  .hlavicka .obal { padding-top: 12px; }
  .hlavicka nav { gap: 0 20px; font-size: 14px; }
  h1 { font-size: 34px; }
  .hero-obal { padding-top: 28px; padding-bottom: 24px; }
  .souhrn { font-size: 15px; }
  .prepinac { width: 100%; }
  .prepinac a { flex: 1; justify-content: center; padding: 0 10px; }
  .razeni > span { display: none; }
  .mrizka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .cas { font-size: 16px; }
  .stitek { font-size: 11px; padding: 5px 8px; }
  .napoveda { padding: 20px; margin-top: 36px; }
  .napoveda .tlacitko { width: 100%; }
  .uvod-text p { font-size: 16px; }
}
@media (max-width: 360px) {
  .stitek { letter-spacing: 0 !important; }
}

/* Rámeček „Napište nám“ a okno s formulářem */
.napoveda-akce { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.napoveda-mail { font-size: 14px; color: var(--muted); }
.okno { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .25); }
.okno::backdrop { background: rgba(43, 45, 53, .55); }
.zadost, .dekujeme { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.okno-hlava { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.okno h2 { margin: 0; font-size: 24px; font-weight: 800; }
.okno-zavrit { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--plocha); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.okno-zavrit:hover { background: var(--linka); }
.volba-typ { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.volba-typ legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.karta-volba { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--linka); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.karta-volba:has(input:checked) { border-color: var(--zluta); background: #FFFBEA; }
.karta-volba input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.karta-volba strong { display: block; font-size: 15px; }
.karta-volba span span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.cast { display: flex; flex-direction: column; gap: 14px; }
.dve-pole { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pole { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pole label { font-size: 14px; font-weight: 700; }
.pole input, .pole select, .pole textarea { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #D4D2CA; border-radius: 10px; padding: 10px 12px; min-height: 46px; background: #fff; width: 100%; }
.pole textarea { resize: vertical; min-height: 80px; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: 3px solid var(--zluta); outline-offset: 0; border-color: var(--ink); }
.pole-napoveda { font-size: 13px; color: var(--muted); }
.pro-roboty { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.souhlas { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.souhlas input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.chyba-formulare { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FDF2F1; color: #A3261B; font-weight: 600; font-size: 14px; }
.okno-tlacitka { display: flex; flex-wrap: wrap; gap: 10px; }
.okno-tlacitka .tlacitko { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.okno-tlacitka .tlacitko:disabled { opacity: .6; cursor: progress; }
.tlacitko-obrys { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #D4D2CA; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.dekujeme { align-items: center; text-align: center; padding-top: 40px; padding-bottom: 36px; }
.dekujeme p { margin: 0; color: var(--muted); }
.dekujeme-znak { width: 56px; height: 56px; border-radius: 50%; background: var(--zluta); display: grid; place-items: center; }
.dekujeme .tlacitko { border: 0; font: inherit; font-weight: 700; cursor: pointer; margin-top: 6px; }
button.tlacitko { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
  .zadost, .dekujeme { padding: 20px 16px 24px; }
  .volba-typ, .dve-pole { grid-template-columns: 1fr; }
  .napoveda-akce { align-items: stretch; width: 100%; text-align: center; }
  .okno-tlacitka .tlacitko, .tlacitko-obrys { flex: 1; }
}
