/* =============================================================
   CRITICAL CSS — načítat synchronně (inline nebo první <link>)
   Pokrývá: font, reset, navbar, header, cookie popup
   Vše ostatní načítat async přes rel="preload"
   ============================================================= */

/* --- Fonty (nutné okamžitě, body je používá přímo) --- */
@font-face {
  font-family: "FKG-regular";
  src: url('/ftgrotesk/FKGrotesk-Regular.otf');
  font-display: swap;
}
@font-face {
  font-family: "FKG-bold";
  src: url('/ftgrotesk/FKGrotesk-Bold.otf');
  font-display: swap;
}

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

/* --- Base --- */
html, body {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "FKG-regular", serif;
}

/* --- Bootstrap pozicování (navbar potřebuje okamžitě) --- */
.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}
.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* --- Bootstrap navbar skeleton --- */
.navbar {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
.navbar-expand-lg {
  -ms-flex-flow: row nowrap;
  flex-flow: row nowrap;
  -ms-flex-pack: start;
  justify-content: flex-start;
}
.navbar-light {
  background-color: transparent;
}
.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}
.navbar-brand img {
  display: block;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center center;
  background-size: 100% 100%;
}
.navbar-collapse {
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-flex-align: center;
  align-items: center;
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}
.collapse:not(.show) {
  display: none;
}

/* --- Bootstrap container/grid skeleton (pro navbar a cookie popup) --- */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.container-fluid, .container-full {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
[class^="col-"], [class*=" col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 768px) {
  .col-md-4 { -ms-flex: 0 0 33.333%; flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-8 { -ms-flex: 0 0 66.667%; flex: 0 0 66.667%; max-width: 66.667%; }
  .col-md-12 { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; }
}

/* --- Site header --- */
.header-absolute {
  position: absolute;
  z-index: 1041;
  color: white;
  width: 100%;
}
.header {
  right: 0;
  z-index: 1000;
  width: 100%;
  background-color: #2B2F33;
}
.header2 {
  background-image: url(/images/pozadi-top.png);
  background-repeat: repeat-x;
}
.nav-height {
  height: 70px;
}

/* --- Custom navbar toggler --- */
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.custom-toggler.navbar-toggler {
  border-color: rgb(255,255,255);
  border-radius: 0;
}

/* --- Barvy webu (používány v navbaru a cookie popupu) --- */
.red-k, h1, h2, h3, h4, h5 {
  color: #FF4D4D;
}
.red-k-bg {
  background-color: #FF4D4D;
}
.color-white {
  color: white;
}

/* --- GDPR cookie popup (zobrazí se ihned při prvním načtení) --- */
body { position: relative; }

#cookie_consent_popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: white;
  padding: 20px;
  z-index: 2;
  box-shadow: 0 -2px 15px 0 rgba(0,0,0,0.25), 0 3px 10px 5px rgba(0,0,0,0.05);
}
@media screen and (max-width: 1000px) {
  #cookie_consent_popup { height: auto; }
}
@media screen and (min-width: 1300px) and (max-width: 1400px) {
  #cookie_consent_popup { height: 33%; }
}

/* --- Bootstrap utility minimum (potřeba v cookie popupu) --- */
.text-left   { text-align: left !important; }
.text-center { text-align: center !important; }
.text-white  { color: white !important; }
.w-100       { width: 100% !important; }
.p-0         { padding: 0 !important; }
.p-2         { padding: 0.5rem !important; }
.mt-0        { margin-top: 0 !important; }

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  background-color: transparent;
}
.btn-rounded { border-radius: 10em; }

/* MDB shadow-5 (cookie popup) */
.shadow-5 {
  box-shadow: 0 16px 38px -12px rgba(0,0,0,0.56),
              0 4px 25px 0 rgba(0,0,0,0.12),
              0 8px 10px -5px rgba(0,0,0,0.2) !important;
}
