html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}
body {
  background: #c0c9ee;
}
section {
  scroll-margin-top: 90px;
}

/* ======================== NAVBAR ======================== */
.navbar {
  background: #a2aadb;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar__container {
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  background: #a2aadb;
}
#navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px; /* mezera mezi ikonou a textem */
  text-decoration: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: bold;

  background-color: #456882;
  background-image: linear-gradient(to top, #456882 0%, #6799c0 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.navbar__logo-img {
  width: 48px; /* uprav dle potřeby */
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* text vedle loga (hlavně kvůli gradientu) */
.navbar__logo-text {
  display: inline-block;
}
.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  text-align: center;
  background: #a2aadb;
}
.navbar__item {
  height: 80px;
  padding: 0 24px;
  display: flex;
  white-space: nowrap;
  background: #a2aadb;
}
.navbar__links {
  color: #456882;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 1rem;
  height: 100%;
  background: #a2aadb;
}
.navbar__links:hover {
  color: #272727;
  transition: all 0.3s ease-out;
}
.navbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  width: 100%;
  background: #a2aadb;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #c0c9ee;
  padding: 10px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #456882;
}
.button:hover {
  background: #6090b4;
  transition: all 0.3s ease-out;
  cursor: pointer;
  color: #272727;
}

@media screen and (max-width: 960px) {
  .navbar__container {
    padding: 0;
  }
  .navbar__menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 0;
    transition: all 0.5s ease;
    height: 50vh;
    z-index: -1;
    background: #c0c9ee;
  }
  .navbar__menu.active {
    top: 100px;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 99;
    height: 50vh;
    font-size: 1.6rem;
  }
  #navbar__logo {
    padding-left: 25px;
  }
  .navbar__item {
    width: 100%;
  }

  .navbar__links {
    text-align: center;
    padding: 2rem;
    width: 100%;
    display: table;
  }
  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }
  .navbar__btn {
    padding-bottom: 2rem;
  }
  .button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 80px;
    margin: 0;
  }
  .navbar__toggle .bar {
    display: block;
    cursor: pointer;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #456882;
  }
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ======================== SDILENE LAYOUTY SEKCI ======================== */
.main {
  background-color: #c0c9ee;
}
.main__container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}
.main__content {
  padding: 0;
}
.main__content > section {
  margin: 0;
}

/* Spolecny styl pro home i vsechny hero sekce */
#home,
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 50px;
  height: 90vh;
  min-height: 600px;
  background: #c0c9ee;
  scroll-margin-top: 80px;
}

/* Spolecny flex kontejner obsahu */
.home__layout,
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  gap: 80px;
}

/* Obracene poradi pro PO sekci */
.hero-section-reverse .hero-container {
  flex-direction: row-reverse;
}

/* Obrazky */
.home__image,
.hero-image {
  flex: 1;
  max-width: 460px;
}
.home__image img,
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Textova cast */
.home__text,
.hero-content {
  flex: 1;
  max-width: 600px;
}
.home__text h1,
.hero-content h1 {
  font-size: 3.5rem;
  background-color: #456882;
  background-image: linear-gradient(to top, #456882 0%, #6799c0 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.home__text p,
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #272727;
}

/* Responsivita sekci */
@media screen and (max-width: 768px) {
  #home,
  .hero-section {
    padding: 60px 30px;
    height: auto;
    min-height: auto;
  }
  .home__layout,
  .hero-container {
    flex-direction: column !important;
    gap: 40px;
    text-align: center;
  }
  .home__image,
  .hero-image {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    flex: none;
  }
  .home__text,
  .hero-content {
    max-width: 100%;
    flex: none;
    width: 100%;
  }
  .home__text h1,
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .home__text p,
  .hero-content p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  #home,
  .hero-section {
    padding: 50px 20px;
  }
  .home__text h1,
  .hero-content h1 {
    font-size: 2rem;
  }
  .home__image,
  .hero-image {
    max-width: 260px;
  }
}

/* ======================== TLACITKO "Vice" ======================== */
.btn1 {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c0c9ee;
  padding: 12px 28px;
  border: none;
  outline: none;
  border-radius: 6px;
  background: #456882;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  letter-spacing: 0.03em;
}
.btn1:hover {
  background: #6090b4;
  color: #272727;
  transform: translateY(-2px);
}

/* ======================== MODALY ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 36, 70, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  background: #b4bde8;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 36, 70, 0.35);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 44px 44px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-track {
  background: #c0c9ee;
  border-radius: 10px;
}
.modal::-webkit-scrollbar-thumb {
  background: #7a8ec4;
  border-radius: 10px;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #a2aadb;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  color: #456882;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.modal__close:hover {
  background: #456882;
  color: #c0c9ee;
}

.modal__header {
  margin-bottom: 20px;
  padding-right: 40px;
}
.modal__header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  background-color: #456882;
  background-image: linear-gradient(to top, #456882 0%, #6799c0 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  line-height: 1.1;
}
.modal__header p {
  font-size: 1rem;
  color: #4a5580;
  margin-top: 4px;
}
.modal__header::after {
  content: "";
  display: block;
  margin-top: 16px;
  height: 2px;
  background: linear-gradient(to right, #6799c0, transparent);
  border-radius: 2px;
}
.modal__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2e3660;
  margin-bottom: 28px;
}
.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.modal__card {
  background: #a2aadb;
  border-radius: 14px;
  padding: 20px 22px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.modal__card:hover {
  background: #9099d0;
  transform: translateY(-3px);
}
.modal__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}
.modal__card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2e3660;
  margin-bottom: 6px;
}
.modal__card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a4570;
}

@media screen and (max-width: 600px) {
  .modal {
    padding: 28px 22px 32px;
  }
  .modal__header h2 {
    font-size: 1.9rem;
  }
  .modal__grid {
    grid-template-columns: 1fr;
  }
}

/* ======================== KONTAKTY ======================== */
.contacts {
  background: #c0c9ee;
  padding: 60px 0;
}
.contacts__container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.contact-card {
  background: #556e87;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.contact-card p {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.contact-card__address {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-top: 8px;
}
.contacts__intro {
  grid-column: 1 / -1; /* Toto roztáhne text přes všechny sloupce gridu */
  text-align: center; /* Vycentrování textu */
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333; /* Barva textu (uprav dle potřeby) */
  margin-bottom: 40px; /* Mezera mezi textem a kartami */
  max-width: 900px; /* Aby text nebyl na širokých monitorech moc roztažený */
  justify-self: center; /* Vycentrování samotného bloku textu v gridu */
}

@media screen and (max-width: 1024px) {
  .contacts__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .contacts__container {
    grid-template-columns: 1fr;
    padding: 80px 30px;
  }
}
@media screen and (max-width: 480px) {
  .contacts__container {
    padding: 60px 20px;
  }
}

/* ======================== DIVIDER ======================== */
.divider {
  height: 60px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(120, 120, 120, 0.5) 0 1px,
    transparent 1px 10px
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

/* ======================== FOOTER ======================== */
.footer {
  background: #a2aadb;
  color: #272727;
  padding: 25px 0;
}
.footer__container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  text-align: center;
}
.footer__copy {
  opacity: 0.8;
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .footer__container {
    padding: 0 30px;
  }
}
@media (max-width: 480px) {
  .footer__container {
    padding: 0 20px;
  }
}
.footer__news {
  margin-bottom: 30px;
}

.footer__news h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1a1a1a;
}

.footer__news p {
  max-width: 700px;
  margin: 0 auto 15px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer__fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000; /* Decentní černá místo agresivní modré */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s;
  background: rgba(255, 255, 255, 0.4); /* Jemné pozadí pro tlačítko */
  padding: 8px 16px;
  border-radius: 20px;
}

.footer__fb-link:hover {
  opacity: 0.7;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 25px auto;
  max-width: 200px;
}
