/* ============================================
   base.css — reset, design tokeny, typografie
   ============================================ */

/* --- Fonty (self-hostovane, zadne externi requesty) ---
   Kazdy rez ma dva soubory: `latin` (zakladni znaky) a `latin-ext`
   (ceska diakritika). Diky unicode-range si prohlizec stahne latin-ext
   jen kdyz ho stranka opravdu potrebuje. */

/* Montserrat 400 */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  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: 'Montserrat';
  src: url('/assets/fonts/montserrat-400-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  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;
}

/* Montserrat 500 */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  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: 'Montserrat';
  src: url('/assets/fonts/montserrat-500-latin-ext.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  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;
}

/* Montserrat 600 */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  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: 'Montserrat';
  src: url('/assets/fonts/montserrat-600-latin-ext.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  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;
}

/* Open Sans 700 - nadpisy a navigace */
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/opensans-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  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';
  src: url('/assets/fonts/opensans-700-latin-ext.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  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;
}

/* --- Design tokeny ---
   Barvy prevzaty z globalni palety puvodniho webu, zjisteno pri extrakci
   v Tasku 3 - nejsou to odhady. */
:root {
  --color-yellow: #ffff01;  /* velke plochy sekci */
  --color-green: #73f07c;   /* CTA tlacitka, akcent */
  --color-blue: #9fe0f2;    /* karta MY */
  --color-black: #030303;
  --color-white: #ffffff;
  --color-text: #020202;
  --color-muted: #6e6e6e;   /* skutecna seda z puvodniho webu */

  /* typografie: Montserrat = text, Open Sans 700 = nadpisy a navigace */
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 3.5rem;                     /* titulky karet MY/VY - zmereno na originalu: 56px */
  --fs-section: 2.5rem;                 /* nadpisy sekci (CO TE CEKA, ZAZIJTE OHUB) - zmereno: 40px */
  --fs-hero: 8rem;                      /* original: pevnych 128px na desktopu i tabletu, nefluidni */

  /* rozestupy */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* layout */
  --container-max: 1200px;
  --radius: 0;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

/* <picture> je jen obal pro vyber formatu (AVIF/WebP/fallback) - nesmi
   sam delat box. Bez display:contents by se pri obaleni obrazku stal
   flexovou/mrizkovou polozkou misto <img> a rozbil by rozlozeni tam, kde
   ma trida na obrazku vlastni sirku nebo margin (napr. .intro__art). */
picture {
  display: contents;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typografie ---
   Zmereno na rendrovanem originalu: hero titulek a navigace pouzivaji
   Open Sans, ale nadpisy sekci (h2/h3 - CO TE CEKA, ZAZIJTE OHUB, MY/VY)
   jsou vsechny Montserrat. Neplati tedy jeden font pro cele h1-h4. */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h2, h3, h4 { font-family: var(--font-body); }

h2 { font-size: var(--fs-section); }
h3 { font-size: var(--fs-lg); }

/* H1 podstranek (vsechny stranky krome homepage) - zmereno na rendrovanem
   originalu: Montserrat (ne Open Sans), 56px, tucne, VELKA PISMENA, barva
   #333. Na rozdil od .card__title (MY/VY) se toto H1 na zlomech 1024px a
   767px NEZMENSUJE - zustava pevnych 56px pri vsech sirkach (overeno primo
   na originalu az do 400px). Homepage hero titulek ma vlastni tridu
   .hero__title, ktera nize tato pravidla prebiji - zustava 128px Open Sans
   beze zmeny. */
h1 {
  font-family: var(--font-body);
  font-size: var(--fs-2xl);
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  text-transform: none;
  color: inherit;
}

p { text-wrap: pretty; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Respektovat uzivatelovo nastaveni omezeni animaci */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
