:root {
  /* Základní paleta (logomanuál) */
  --tyrkys-svetla: #76ddda;
  --tyrkys: #32bfbf;
  --smaragd: #1697a5;
  --petrol: #195d79;
  /* Akcenty */
  --zluta: #fcd575;
  --zluta-tmava: #f2c04a;
  --zelena: #7cb342;
  --zelena-tmava: #6aa036;
  --white: #ffffff;
  --tint: #f1fafa;

  --font-size-l: 16px;
  --font-size-m: 14px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;
  --font-size-xxxl: 28px;
  --font-size-xxxxl: 32px;
  --font-size-xxxxxl: 40px;
}
@font-face {
  font-family: "Pepi";
  font-weight: normal;
  src: url("fonts/Pepi-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Pepi";
  font-weight: bold;
  src: url("fonts/Pepi-Bold.otf") format("opentype");
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  color: var(--petrol);
  background-color: var(--white);
  font-family: 'Pepi', Arial, Helvetica, sans-serif;
  font-size: 14px;
  margin: 0 auto;
  overflow-y: scroll;
}
section { padding: 1rem 3rem; }
@media only screen and (max-width: 670px) {
  section { padding: 1rem 2rem !important; }
}
h1 { font-size: 40px; color: white; }
h2 { color: var(--petrol); font-size: 24px; margin-top: 0; }
h3 { font-size: 18px; margin-top: 1px; color: white; }
h4 { font-size: 20px; margin-top: 10px; margin-bottom: 0px; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- Hlavička ---------- */
.header {
  display: flex;
  align-items: center;
  align-content: space-between;
  padding: 0;
  margin: 0 auto;
  color: var(--smaragd);
  max-width: 1440px;
}
.header ul {
  margin-left: auto;
  margin-right: 3.8em;
  white-space: nowrap;
  box-sizing: border-box;
  margin-bottom: 0.35em;
  background-color: white;
}
.header li {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 3.2em;
  overflow: hidden;
  box-sizing: border-box;
}
.menu-button-container {
  display: none;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--smaragd);
  height: 18px;
  position: absolute;
  top: 2em;
  right: 2em;
}
#menu-toggle { display: none; }
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: var(--petrol);
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}
.menu-button::before { content: ''; margin-top: -8px; }
.menu-button::after { content: ''; margin-top: 8px; }
#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px; transform: rotate(405deg);
}
#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}
#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px; transform: rotate(-405deg);
}
@media only screen and (max-width: 670px) {
  .menu-button-container { display: flex; }
  .menu {
    position: absolute; top: 0; margin-top: 82px; left: 0;
    flex-direction: column; width: 100%;
    justify-content: center; align-items: center;
    z-index: 1000; padding-left: 0;
  }
  #menu-toggle ~ .menu li {
    height: 0; margin: 0; padding: 0; border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    height: 3em; padding: 1em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1em;
  }
  .menu > li {
    display: flex; justify-content: center; margin: 0;
    padding: 1em 0; width: 100%; background-color: white;
  }
}
.header .hlavni_logo { display: flex; align-items: center; }
.header .hlavni_logo a {
  display: inline-block;
  margin-left: 2.5em;
  padding: 1.1em 0;
}
.header .hlavni_logo img { width: 250px; display: block; }
@media only screen and (max-width: 670px) {
  .header .hlavni_logo a { margin-left: 1.2em; }
  .header .hlavni_logo img { width: 190px; }
}
.header a {
  color: var(--petrol);
  text-decoration: none;
  padding: 0.2em 1em;
  display: inline-block;
  font-weight: bold;
  user-select: none;
}
.header .menu a { position: relative; }
.header .menu a:hover { color: var(--smaragd); }
.header .menu .active a { color: var(--petrol); }
.header .menu .active a::after {
  content: "";
  position: absolute;
  left: 1em; right: 1em; bottom: 0.55em;
  height: 4px; border-radius: 2px;
  background: var(--zluta);
}
@media only screen and (max-width: 670px) {
  .header .menu .active a { padding-bottom: 0.2em; }
  .header .menu .active a::after { display: none; }
  .header .menu .active a {
    text-decoration: underline;
    text-decoration-color: var(--zluta);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
  }
}

/* ---------- Úvod / hero ---------- */
.uvod {
  background-color: var(--smaragd);
  position: relative;
  padding: 0;
}
.uvod .columns {
  flex-wrap: wrap; justify-content: flex-start;
  max-width: 1440px; margin: 0 auto;
}
.uvod .columns div:nth-child(1) { min-height: 356px; }
.uvod .columns div:nth-child(2) { max-height: 548px; text-align: right; }
@media only screen and (max-width: 1400px) {
  .uvod svg.hero-art { display: none; }
}
.uvod .columns div { padding: 0; flex: 1 1 738px; }
.uvod .columns div.uvod_text {
  max-width: 40em;
  margin: 7rem 0 3rem 0;
  padding: 1rem 1rem 1rem 4.3rem;
  line-height: 44px;
}
@media only screen and (max-width: 670px) {
  .uvod .columns div.uvod_text { padding: 1rem 1rem 1rem 0rem; margin: 4rem 0 3rem 0; }
}
/* Žluté tlačítko (CTA) */
.uvod_text a {
  color: var(--petrol);
  font-weight: bold;
  font-size: 18px;
  line-height: 1.2em;
  text-align: center;
  width: 12em;
  letter-spacing: 0.055em;
  text-decoration: none;
  display: block;
  background-color: var(--zluta);
  border: 3px solid var(--zluta);
  border-radius: 54px;
  padding: 1em 0.7em 0.7em 0.7em;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.uvod_text a:hover {
  background-color: var(--zluta-tmava);
  border-color: var(--zluta-tmava);
  box-shadow: 7px 9px 23px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* ---------- Šipka ---------- */
.arrow { text-align: center; height: 42px; }
.arrow svg { transition: transform .2s; }
.arrow:hover svg { transform: translateY(3px); }

/* ---------- Obecné sloupce ---------- */
.columns { display: flex; flex-wrap: wrap; }
.columns div { padding: 3rem; flex: 1 1 15em; }

/* ---------- Zpracujeme ---------- */
.zpracujeme { max-width: 1440px; margin: 0 auto; }
@media only screen and (max-width: 800px) {
  .zpracujeme { padding: 3rem 1rem; }
}
.zpracujeme .columns div {
  text-align: center; font-size: 18px; padding: 3rem 7rem;
}
@media only screen and (max-width: 600px) {
  .zpracujeme .columns div { padding: 3rem; }
}
.zpracujeme p { margin: 1em auto; line-height: 28px; }

/* ---------- Zajistíme (tmavá sekce) ---------- */
.zajistime {
  background-color: var(--petrol);
  color: white;
  padding: 3rem 5rem;
  line-height: 28px;
}
.zajistime .columns { max-width: 1440px; margin: 0 auto; }
.zajistime .columns div { padding: 3rem 7rem; }
@media only screen and (max-width: 600px) {
  .zajistime .columns div { padding: 3rem 3rem 3rem 1rem; }
}
@media only screen and (max-width: 670px) {
  .zajistime { padding: 3rem 3rem 3rem 1rem; }
}
.zajistime li {
  color: white; font-size: 18px;
  list-style: none; position: relative; padding-left: 1.6em; margin: 0.35em 0;
}
.zajistime li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--zluta);
}
.zajistime ul { padding-left: 0; margin-top: 1.2em; }
.zajistime h3 { margin-bottom: 0.25em; font-size: 24px; }
.zajistime hr {
  background-color: var(--zluta);
  border: 0; width: 6em; height: 8px;
  border-radius: 4px; margin: 0.3rem 0;
}

/* ---------- O nás / Působíme ---------- */
.pusobime { font-size: 18px; padding: 0; line-height: 28px; }
.pusobime .columns { max-width: 1440px; margin: 0 auto; }
.pusobime .columns div {
  padding: 0 3em 3em 0; text-align: left; flex: 1 1 30em;
}
.pusobime .columns div:nth-child(1) { flex: 1 1 20em; }
.pusobime .columns div:nth-child(2) { flex: 1 1 40em; }
.pusobime .columns img { width: 488px; max-width: 100%; text-align: left; border-radius: 12px; }
@media only screen and (max-width: 1330px) {
  .pusobime .columns div:nth-child(1) { display: none; }
}
.pusobime .columns { flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.pusobime p { max-width: 35em; margin: 5rem 0 5rem 0; padding-left: 4.3rem; }
@media only screen and (max-width: 670px) {
  .pusobime p { padding-left: 2rem; padding-right: 1rem; margin: 3rem 0; }
}

/* ---------- Patička ---------- */
.footer {
  background-color: var(--petrol);
  color: white;
  padding: 1rem 0;
  font-size: 16px;
}
.footer .columns {
  max-width: 1440px; margin: 0 auto;
  box-sizing: border-box; padding: 3rem 4.3rem;
  align-items: center;
}
.footer p { padding: 0; flex: 1 1 20em; margin: 0.4em 0; }
.footer a { color: white; text-decoration: none; }
.footer a:hover { color: var(--zluta); }
@media only screen and (max-width: 1200px) {
  .footer p { text-align: center !important; flex: 1 1 100%; }
}
.footer .email { text-align: center; }
.footer .tel { text-align: right; }

/* ---------- Kontakt ---------- */
.kontakt {
  max-width: 1440px; margin: 0 auto;
  box-sizing: border-box; padding: 1rem 4.3rem;
}
.kontakt h1 { color: var(--petrol); padding: 1rem 3rem 0.2rem 0; font-size: 58px; }
.kontakt .columns { column-gap: 0.1em; justify-content: space-between; padding: 0 0 3rem 0; }
.kontakt .columns div:nth-child(1) { padding: 0; flex: 0 0 25rem; }
.kontakt .columns div:nth-child(2) { padding: 0; flex: 0 0 45rem; }
.kontakt p { line-height: 28px; font-size: 18px; }
.kontakt a { color: var(--smaragd); text-decoration: none; }
.kontakt a:hover { color: var(--petrol); }
@media only screen and (max-width: 670px) {
  .kontakt { padding: 1rem 2rem; }
  .kontakt h1 { font-size: 42px; padding-right: 0; }
}
.onlymobile { display: none; }
@media only screen and (max-width: 450px) { .onlymobile { display: block; } }
.map iframe { border-radius: 0.5em; max-height: 22rem; margin: 0 auto; }
@media only screen and (max-width: 1260px) {
  .map { flex-basis: 100% !important; min-height: 22rem; }
}

/* ---------- Reference ---------- */
.reference {
  padding-right: 0; padding-left: 4.3rem;
  box-sizing: border-box; max-width: 1440px; margin: 0 auto;
}
.reference h1 { color: var(--petrol); padding: 1rem 3rem 0.2rem 0; font-size: 58px; }
@media only screen and (max-width: 670px) {
  .reference { padding-left: 2rem; }
  .reference h1 { font-size: 42px; }
}
.reference .lead {
  font-size: 18px; line-height: 28px; max-width: 46em;
  padding-right: 3rem; color: var(--petrol);
}
.reference-soon {
  margin: 1rem 3rem 4rem 0;
  padding: 2.5rem 2.5rem;
  background: var(--tint);
  border-left: 6px solid var(--zluta);
  border-radius: 12px;
  max-width: 46em;
}
.reference-soon h2 { color: var(--petrol); margin-bottom: .4rem; }
.reference-soon p { font-size: 17px; line-height: 27px; margin: 0; }

/* ---------- Reference – záložky ---------- */
.tabset > input[type="radio"] { position: absolute; left: -200vw; }
.tabset .tab-panel { display: none; }
.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6),
.tabset > input:nth-child(13):checked ~ .tab-panels > .tab-panel:nth-child(7),
.tabset > input:nth-child(15):checked ~ .tab-panels > .tab-panel:nth-child(8) {
  display: block;
}
.tabset > label {
  position: relative;
  display: inline-block;
  margin-right: 0.8em;
  margin-bottom: 0.5em;
  font-size: 2rem;
  font-weight: bold;
  color: var(--petrol);
  border: 0.3em solid transparent;
  border-width: 0 0 0.3em 0;
  line-height: 0.9em;
  cursor: pointer;
}
.tabset > label:hover,
.tabset > input:checked + label { border-color: var(--zluta); }
.reference .columns { flex-wrap: wrap; justify-content: flex-start; line-height: 20px; }
.reference .columns div { padding: 2em 4em 0 0; flex: 0 0 18rem; }
.reference .tab-panel section, .reference section { padding: 0; }
.reference .columns b { color: var(--smaragd); }
