:root { 
  --main-bg: #f0f0f0;
  --main-red: #8B0000;
  --white: #fff;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --border-radius: 6px;
}

/* ZÁKLADNÍ NASTAVENÍ */
body {
  background: var(--main-bg);
  color: #212121;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

/* HEADER */
.header-bg {
  background: var(--main-bg);
  border-bottom: 6px solid var(--main-red);
  position: sticky;
  top: 0;
  z-index: 999; /* vyšší pro jistotu */
  box-shadow: 0 2px 14px rgba(139,0,0,0.74);
}

.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}
.logo img {
  height: 85px;
  width: auto;
  margin-left: -80px;
  display: block;
  margin-top: 13px;
}
.center-button {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-left: 180px;
}
.popup-btn {
  background: var(--main-red);
  color: var(--white);
  font-weight: bold;
  border: none;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 8px rgba(0,0,0,0.26);
}
.popup-btn:hover, .popup-btn:focus {
  background: #a12727;
  color: #fff;
}
.menu {
  display: flex;
  gap: 16px;
  margin-right: -80px;
}
.menu a {
  color: var(--main-red);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 7px;
  transition: background 0.17s;
}
.menu a:hover, .menu a:focus {
  background: #e7c3c3;
}

/* HLAVNÍ OBSAH */
.main-content {
  max-width: 1200px;
  margin: 36px auto 40px auto;
  padding: 0 16px;
}

/* SLIDER – NOVINKY */
.news-section { 
  margin-bottom: 44px;
}

.news-section h2 {
  color: var(--main-red);
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.news-slider {
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 410px;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

/* SLIDY */
.slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* ŠIPKY */
.news-slider button.prev,
.news-slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.news-slider button.prev:hover,
.news-slider button.next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.news-slider button.prev {
  left: 10px;
}

.news-slider button.next {
  right: 10px;
}

/* TEČKY */
.news-slider .dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.news-slider .dot {
  height: 12px;
  width: 12px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.news-slider .dot.active {
  background-color: var(--main-red);
}

/* INFO POLE – NOVÝ DESIGN */
.info-section {
  margin: 44px 0;
  margin-top: 84px;
}
.info-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.info-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  flex: 1 1 14%;
  min-width: 160px;
  max-width: 210px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 2px solid #e3e3e3;
  text-decoration: none;
  color: var(--main-red);
  transition: box-shadow 0.16s, transform 0.18s, border-color 0.18s;
  outline: none;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.info-box:hover, .info-box:focus {
  transform: translateY(-7px) scale(1.035);
  box-shadow: 0 7px 26px rgba(139,0,0,0.16);
  border-color: var(--main-red);
  color: #a12727;
}
.info-box-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  margin-bottom: 0;
}
.info-box-text {
  padding: 15px 7px 13px 7px;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--main-red);
  background: var(--white);
  flex-grow: 1;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODÁLNÍ FORMULÁŘ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 0, 0, 0.45);
  z-index: 1000;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  display: block;
}
.modal-form {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  z-index: 1010;
  padding: 38px 32px 26px 32px;
  border-radius: 18px;
  width: 600px;
  box-shadow: 0 10px 48px rgba(0,0,0,0.18);
  border: 3px solid var(--main-red);
}
.modal-form.active {
  display: block;
  animation: fadeIn 0.27s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%);}
  to   { opacity: 1; transform: translate(-50%, -50%);}
}
.modal-form h2 {
  margin-top: 0;
  color: var(--main-red);
  font-size: 1.22rem;
  margin-bottom: 16px;
  text-align: center;
}
.modal-form input, .modal-form textarea {
  width: 100%;
  border: 1.7px solid #ccc;
  padding: 8px 10px;
  margin: 7px 0 13px 0;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  transition: border 0.2s;
  outline: none;
}
.modal-form input:focus, .modal-form textarea:focus {
  border-color: var(--main-red);
}
.modal-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.modal-form button[type="submit"] {
  background: var(--main-red);
  color: var(--white);
  border: none;
  padding: 9px 24px;
  border-radius: 9px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.19s;
  font-size: 1.03rem;
}
.modal-form button[type="submit"]:hover {
  background: #b92d2d;
}
.modal-form button#closeModal {
  background: #fff;
  color: var(--main-red);
  border: 2px solid var(--main-red);
  padding: 9px 22px;
  border-radius: 9px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  font-size: 1.03rem;
}
.modal-form button#closeModal:hover {
  background: var(--main-red);
  color: #fff;
}
#form-status {
  margin-top: 14px;
  font-size: 1rem;
  text-align: center;
}

/* FOOTER */
.footer {
  background: var(--main-red);
  color: var(--white);
  padding: 72px 0 54px 0;
  border-radius: 0;
  margin-top: 64px;
  height: 50px
}

body.page-sortiment1 .footer {
  margin-top: 520px; /* nebo jakákoliv hodnota odsazení, kterou chceš */
}

.footer-inner,
.custom-footer-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  gap: 54px;
  flex-wrap: wrap;
}

.footer-btns {
  position: relative; /* DŮLEŽITÉ pro absolutní umístění potomků */
  flex: 1;
  min-width: 250px;
  max-width: 480px;
  height: 20px; /* výška kontejneru pro pozicování */
}

/* Obecné stylování buttonů */
.footer-btn {
  position: absolute; /* Umožní individuální pozicování */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
  padding: 16px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
  text-decoration: none;
  transition: background 0.2s, transform 0.16s;
  cursor: pointer;
}

/* FB ikona pozice */
.fb-btn {
  top: -30px;
  left: -350px;
}

/* MAP ikona pozice */
.map-btn {
  top: -30px;
  left: -220px;
}


/* KONTAKTY + OTEVÍRACÍ DOBA VEDLE SEBE */
.footer-contact-wrap {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  min-width: 350px;
  max-width: 480px;
  gap: 32px;
  text-align: center;
  margin-top: -20px;
  margin-right: -120px;
}

.footer-contact,
.footer-hours {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  min-width: 360px;
  max-width: 680px;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
  font-size: 1rem;
}
.footer-contact a:hover {
  color: #ffd6d6;
}

.footer-hours h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-hours table {
  font-size: 1rem;
  color: #fff;
  margin: 0 auto;
}
.footer-hours td {
  padding: 4px 4px 4px 0;
}

/* Responzivita */


@media (max-width: 1000px) {
  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px; /* vyšší výška kvůli logu */
    padding: 12px;
    gap: 8px;
    position: relative;
  }

  .logo img {
    margin-left: 0;
    margin-top: 0; /* odstraněno skákání */
    height: 80px; /* zajištěno, že nebude větší než header */
  }

  .center-button {
    margin: 0;
    justify-content: center;
    width: 100%;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    margin: 0;
    gap: 8px;
    display: none;
    width: 100%;
    background: var(--main-bg);
    position: relative;
    z-index: 150;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    display: block;
    padding: 10px 18px;
    font-size: 1.02rem;
    width: 100%;
    text-align: center;
    color: var(--main-red);
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid #ddd;
  }

  .menu a:hover, .menu a:focus {
    background: #e7c3c3;
  }

  .footer-inner,
  .custom-footer-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: var(--main-red);
    width: 100%;
    padding: 32px 16px;
    color: var(--white);
  }

  .footer-btns,
  .footer-contact-wrap {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .footer-btn {
    position: static !important;
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
  }

  .footer-contact,
  .footer-hours {
    width: 100%;
    max-width: 480px;
    margin-bottom: 0;
    margin-right: 120px; 
    text-align: center;
    color: var(--white);
  }

  .fb-btn,
  .map-btn {
    position: static;
  }

  .modal-form {
    width: 90%;
    max-width: 400px;
    padding: 28px 20px 22px 20px;
  }

  .modal-form-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .burger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: var(--main-red);
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 20px;
    user-select: none;
    z-index: 160;
  }

  /* Odsazení stránky od patičky (namísto margin-top na footeru) */
  body.page-sortiment1 {
    padding-bottom: 520px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 60px;
  }

  .popup-btn {
    width: 100%;
    text-align: center;
  }

  .info-row {
    flex-direction: column;
    gap: 14px;
  }

  .info-box {
    width: 100%;
    max-width: 100%;
  }

  .news-slider {
    min-height: 250px;
  }

  .slide img {
    height: 250px;
  }

  .footer-inner,
  .custom-footer-layout {
    background: var(--main-red);
    padding: 32px 12px;
  }

  .footer-contact,
  .footer-hours {
    color: var(--white);
  }
}

/* Základní styl pro html a body */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
  overscroll-behavior-y: auto;
}
