/* Digital Media Group — vzhled převzatý z původního webu (Nette/Stampi), lehce učesaný. */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/quicksand-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: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/quicksand-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 {
  --modra: #2c5ce1;
  --modra-tmava: #1f47b8;
  --text: #384851;
  --text-svetly: #52636a;
  --svetle-pozadi: #f7f9fe;
  --linka: #d5dce6;
  --vyska-hlavicky: 5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--vyska-hlavicky);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--modra); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--modra); outline-offset: 3px; }

/* ---------- Hlavička ---------- */

.hlavicka {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(56, 72, 81, .08);
}
.hlavicka__obsah {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1500px;
  height: var(--vyska-hlavicky);
  margin: 0 auto;
  padding-inline: 1rem;
}
.hlavicka__logo img { display: block; width: 220px; height: auto; }

.menu { display: flex; gap: .5rem; }
.menu a {
  display: block;
  padding: .5rem 1rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2rem;
  transition: color .2s, background-color .2s;
}
.menu a:hover { color: var(--modra); background: var(--svetle-pozadi); }

.site { display: flex; gap: .75rem; margin-left: auto; }
.site__ikona {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform .2s;
}
.site__ikona:hover { transform: translateY(-2px); }
.site__ikona img { max-width: 16px; max-height: 18px; }
.site__ikona--facebook { background: #1877f2; }
.site__ikona--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.site__ikona--whatsapp { background: #3cb851; }
.site__ikona--twitter { background: #1da1f2; }

.hamburger {
  display: none;
  margin-left: auto;
  padding: .75rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  margin: 7px 0;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Úvod s videem ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(720px, 85vh);
  padding: calc(var(--vyska-hlavicky) + 4rem) 1rem 6rem;
  overflow: hidden;
  background: #434a73 url(img/hero.webp) center / cover;
  text-align: center;
  color: #fff;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(40, 46, 82, .25), rgba(67, 74, 115, .5));
}
/* Bílý zobáček pod úvodem, navazuje na pruh s logy (jako na původním webu). */
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  background: var(--svetle-pozadi);
  transform: translateX(-50%) rotate(45deg);
}
.hero__text { position: relative; z-index: 2; }
.hero h1,
.hero__podnadpis {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(20, 24, 50, .35);
}
.hero__podnadpis {
  margin-top: 1.25rem;
  font-size: clamp(1.6rem, 4.6vw, 3.25rem);
  font-weight: 600;
}
.hero .tlacitko { margin-top: 3.5rem; }

/* ---------- Tlačítka ---------- */

.tlacitko {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.75rem;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 2.5rem;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.tlacitko--svetle { color: #fff; }
.tlacitko--svetle:hover { background: #fff; border-color: #fff; color: var(--text); }
.tlacitko--modre { color: #fff; background: var(--modra); border-color: var(--modra); text-transform: none; }
.tlacitko--modre:hover { background: var(--modra-tmava); border-color: var(--modra-tmava); }
.tlacitko:active { transform: translateY(1px); }
.tlacitko[disabled] { opacity: .6; cursor: progress; }

/* ---------- Loga firem skupiny ---------- */

.firmy { background: var(--svetle-pozadi); }
.firmy__seznam {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
}
.firmy__seznam a { display: block; transition: transform .25s, opacity .25s; }
.firmy__seznam a:hover { transform: translateY(-3px); opacity: .85; }
.firmy__seznam img { display: block; width: auto; height: 95px; max-width: 300px; object-fit: contain; }

/* ---------- Textové sekce ---------- */

.sekce { padding: 5rem 1rem; }
.sekce--svetla { background: var(--svetle-pozadi); }
.sekce__obsah { max-width: 820px; margin: 0 auto; text-align: center; }
.sekce h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
}
.sekce h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1.1rem auto 0;
  background: var(--modra);
  border-radius: 2px;
}
.sekce p {
  margin: 0 0 1.1rem;
  font-size: 1.075rem;
  line-height: 1.8;
  color: var(--text-svetly);
}

/* ---------- Formulář ---------- */

.formular {
  max-width: 640px;
  margin: 3.5rem auto 0;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(44, 92, 225, .08);
}
.formular__mrizka {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.pole { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.pole--cele { grid-column: 1 / -1; }
.pole input,
.pole textarea {
  width: 100%;
  padding: .75rem 1.1rem;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--linka);
  border-radius: 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}
.pole textarea { resize: vertical; min-height: 8rem; border-radius: 1.1rem; }
.pole input:focus,
.pole textarea:focus {
  outline: none;
  border-color: var(--modra);
  box-shadow: 0 0 0 3px rgba(44, 92, 225, .15);
}
.pole.je-chyba input,
.pole.je-chyba textarea,
.souhlas.je-chyba input { border-color: #c0392b; outline-color: #c0392b; }
.pole__chyba { font-size: .85rem; font-weight: 500; color: #c0392b; }

.souhlas {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.5rem 0 1.75rem;
  font-size: .95rem;
  color: var(--text-svetly);
}
.souhlas input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--modra); }

.formular .tlacitko { display: flex; margin: 0 auto; }
.formular__past { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formular__hlaska {
  margin: 0 0 1.5rem;
  padding: .9rem 1.2rem;
  border-radius: .9rem;
  font-weight: 600;
  background: var(--svetle-pozadi);
}
.formular__hlaska--ok { color: #1e7a46; background: #e8f6ee; }
.formular__hlaska--chyba { color: #a5281b; background: #fcebea; }

/* ---------- Patička ---------- */

.paticka { background: var(--modra); color: #fff; }
.paticka__obsah {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 2rem 4rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  line-height: 1.9;
}
.paticka a { color: #fff; text-decoration: none; }
.paticka a:hover { text-decoration: underline; }
.paticka__kontakt a { display: inline-flex; align-items: center; gap: .9rem; }
.paticka__kontakt img { width: 16px; height: 16px; }
.paticka__logo { justify-self: end; }
.paticka__logo img { display: block; width: 175px; }

/* ---------- Tablet a menší ---------- */

@media (max-width: 1024px) {
  .hlavicka__logo img { width: 160px; }
  .hamburger { display: block; }
  .site { margin-left: auto; }
  .site + .hamburger { margin-left: 0; }

  .menu {
    position: absolute;
    top: var(--vyska-hlavicky);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .5rem 1rem 1.25rem;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 24px rgba(56, 72, 81, .08);
    text-align: center;
  }
  .menu.je-otevrene { display: flex; }
  .menu a { padding: 1rem; border-bottom: 1px solid rgba(0, 0, 0, .07); border-radius: 0; }
  .menu li:last-child a { border-bottom: 0; }

  .firmy__seznam { gap: 2.5rem 3.5rem; }
  .firmy__seznam img { height: 80px; max-width: 230px; }
}

@media (max-width: 768px) {
  .paticka__obsah { grid-template-columns: 1fr 1fr; }
  .paticka__logo { grid-column: 1 / -1; justify-self: center; }
}

/* ---------- Telefon ---------- */

@media (max-width: 600px) {
  .site { display: none; }
  .hero { min-height: 0; padding-top: calc(var(--vyska-hlavicky) + 5rem); padding-bottom: 7rem; }
  .hero::after { width: 50px; height: 50px; bottom: -35px; }
  .hero .tlacitko { margin-top: 2.5rem; }

  .firmy__seznam { flex-direction: column; gap: 2.75rem; padding-block: 4rem 3.5rem; }
  /* pevná výška: SVG Šimpanze nemá vlastní šířku a s height:auto by se ve sloupci smrsklo na nulu */
  .firmy__seznam img { height: 80px; max-width: 260px; }

  .sekce { padding-block: 3.5rem; }
  .sekce p { font-size: 1rem; line-height: 1.75; }

  .formular { padding: 1.5rem 1.1rem; margin-top: 2.5rem; border-radius: 1rem; }
  .formular__mrizka { grid-template-columns: 1fr; }

  .paticka__obsah { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .paticka__kontakt a { justify-content: center; }
}
