:root {
  --nav-bg: #ffffff;
  --nav-link: #555;
  --fz-body: clamp(14px, 1vw + 10px, 18px);
}

body{
  margin: 0px; 
  padding: 0px;
  background-color:#F8F8F8;
  font-family: sans-serif;
  font-size: var(--fz-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p,
li {
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ul-text{
  margin: 0px 0px 18px 0px;
}

.bullet{
  margin: 10px 0px 0px 0px;
}

.first{
  margin-top: 10px;
  padding: 0px 0px 9px 0px;
  color: #758694;
  font-size: 1rem;
}

.page-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: white
}

.paragrap-header{
  color: black;
  padding: 0;
  box-sizing: border-box;
  font-size: clamp(20px, 4.5vw, 36px);
  line-height: 1.2;
  word-break: break-word;
}

/* NAVIGATE BAR */
#navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
}

#navigation-bar-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* IMAGE OF LOGO DEFENDER */
a > img{
    width: 198px;
    height: 52px;
}

/* BUTTONS OF NAVIGATION BAR */
.nav-links{
    list-style-type: none;
    padding: 0px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

ul li{
  color:#758694;
  font-size: 1rem;
}

nav ul li a{
    text-decoration: none;
    color: grey;
    font-size: 1.3rem;
}

nav ul li a:hover {
    border-bottom: 2px solid #A6A6A6;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    }


/* LANGUAGE SWITCHER */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.selected-language {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* MAIN FLAG */
.selected-language .fi {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

/* DROPDOWN */
.language-dropdown {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  min-width: 100px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  display: block;
}

/* ITEMS */
.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  text-decoration: none; 
  color: black; 
}

.language-option:hover {
  background: #f4f4f4;
}

/* FLAGS IN MENU */
.language-option .fi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

/* IMAGE OF BUILDING */
.image-container{
    position: relative;
    text-align: center;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.image-container img{
    width: 100%;
    height: 270px;
    filter: brightness(0.7);
    object-fit: cover;
}

.image-container.changing-img {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.text-image{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
  color: white;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* FIRST SECTION */
.card-flex{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:#F8F8F8;
}

.card-grid-first{
    display: grid;
    width: 90%;
    background-color: white;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr fr;
    box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.1);
    margin: 35px 20px 0px 20px;
}

.first-img-card{
    grid-area: 1/1/3/2;
    padding: 35px 50px;  /*70px 50px; */
}

.first-img-card img{
    width: 100%;
}

.first-text-div{
    grid-area:1/2/2/2;
    padding: 35px 30px 0px 10px;
    text-align: justify;
}

.changing-img{
    grid-area: 2/2/2/2;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.changing-img img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; 
}

.contact_odkaz{
  text-decoration: none;
  color: black;
}

.contact{
  margin-bottom: 0px;
}

.contact_odkaz:hover {
    border-bottom: 2px solid black;
}

/* SECOND SECTION */
.card-grid-second{
    display: grid;
    width: 90%;
    background-color: white;
    grid-template-columns: 1fr 1.5fr;
    /* grid-template-rows: 1fr 0.5fr; */
    box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.1);
    margin: 35px 20px 0px 20px;
}

.second-text-card{
    grid-area: 1/1/1/1;
    text-align: justify;
    padding: 35px 50px;  /*70px 50px; */
}

.second-img-card{
    grid-area: 1/2/3/3;
    padding: 35px 30px 30px 10px;
}

.second-img-card img{
    max-width: 100%;
}

/* THIRD SECTION */
.card-grid-third{
    display: grid;
    width: 90%;
    background-color: white;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 0.7fr 1fr;
    box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.1);
    margin: 35px 20px 0px 20px;
}
.third-text-card{
    grid-area: 1/1/2/2;
    text-align: justify;
    padding: 35px 50px; /*70px 50px; */
}

.third-img-card{
    grid-area: 2/1/3/2;
    padding: 0px 35px 35px 35px;
}

.third-img-card img{
    width: 100%;
}

.second-changing-img{
    grid-area: 1 / 2 / 3 / 3;
    padding: 35px 30px;
    height: 710px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white
}

.second-changing-img .slideshow{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-changing-img .slideshow img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    
}

/* FORTH SECTION */
.card-grid-forth{
    display: grid;
    width: 90%;
    background-color: white;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    box-shadow: 0 0.5rem 1.5625rem rgba(0,0,0,.1);
    margin: 35px 20px 35px 20px;
}

.forth-img-card-first{
    padding: 10px 60px;
    grid-area: 1/1/2/2;
    
}

.forth-img-card-second{
    grid-area: 2/1/3/2;
    padding: 10px 60px;
}

.forth-text-card{
    grid-area: 1/2/3/3;
    padding: 0px 60px;
}

.forth-img-card-first img{
    width: 100%;
}

.forth-img-card-second img{
    width: 100%;
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  display: inline-block;
}

.slideshow img {
  width: 100%;
  display: block;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.6rem;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slide-btn:hover {
  background: #fff;
}

.slide-btn.prev {
  left: 8px;
}

.slide-btn.next {
  right: 8px;
}

/* FOOTER */
.footer-wrapper {
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-left {
  display: flex;
  text-align: left;
}

.footer-text{
  color: black;
  font-size: 1.7rem;
  margin: 0
}

.socials {
  display: flex;
  gap: 15px;
  font-size: 24px;
}

.socials i {
  font-size: 30px;
  color: black;
}

.socials a:hover {
  color: #0077ff;
  transform: scale(1.2);
}

/* ===== Global image behavior ===== */
img,
.image-container img,
iframe {
  max-width: 100%;
}

.third-img-card img{
    width: 100% !important;
}

.second-changing-img img{
    width: 100% !important;
}

img,
.image-container img {
  display: block;
  height: auto;
}

/* Prevent overflow from editor-generated inline image sizes */
.wnd-image-container img {
  width: 100% !important;
  height: auto !important;
  position: static !important;
}

/* ===== Content containment ===== */
.card-grid,
.card-grid-first,
.card-grid-second,
.card-grid-third,
.card-grid-forth,
.container-grid,
.card-flex,
section {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.card-grid > *,
.card-grid-first > *,
.card-grid-second > *,
.card-grid-third > *,
.card-grid-forth > *,
.container-grid > *,
.card-flex > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Text inside cards */
.card-grid p,
.card-grid h1,
.card-grid h2,
.card-grid h3,
.card-grid li {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

/* Images inside grid/card sections */
.card-grid img,
.card-grid-first img,
.card-grid-second img,
.card-grid-third img,
.card-grid-forth img,
.container-grid img,
.card-flex img,
section img,
.image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== Specific image tweaks ===== */
.third-img-card {
  padding: 0 30px 0 50px;
}

#dily-prodej-img {
  max-width: 420px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== Hero / image overlay text ===== */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container .text-image {
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: clamp(20px, 4.5vw, 36px);
  line-height: 1.2;
  word-break: break-word;
}

.image-container .text-image {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

/* ===== Special section image alignment ===== */
.second-img-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.first-img-card img,
.second-img-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.item{
    display: flex;
    /*align-items: center;*/
    justify-content: center;
}

.image-container{
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

#lista {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.second-changing-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Tablet / smaller desktop ===== */
@media (max-width: 1145px) {
  #navigation-bar {
    padding: 0.75rem 1rem;
  }

  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(140px, 25vw, 200px);
    height: auto;
  }

  nav ul.nav-links {
    position: absolute;
    top: 64px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--nav-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  nav ul.nav-links.active {
    display: flex;
  }

  nav ul li a {
    font-size: 1rem;
    color: var(--nav-link);
  }

  .hamburger {
    display: block;
    font-size: 3rem;
  }

  /* Stack main content blocks vertically */
  .card-grid,
  .card-grid-first,
  .card-grid-second,
  .card-grid-third,
  .card-grid-forth,
  .container-grid,
  .row,
  .columns,
  .cards,
  .section-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .card-grid > *,
  .card-grid-first > *,
  .card-grid-second > *,
  .card-grid-third > *,
  .card-grid-forth > *,
  .container-grid > *,
  .row > *,
  .columns > *,
  .cards > *,
  .section-row > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Neutralize old float/column systems */
  .left,
  .right,
  .column,
  .col,
  [class*="col-"] {
    float: none !important;
    width: 100% !important;
  }

  /* Comfortable padding for text/image blocks */
  .first-text-card,
  .second-text-card,
  .third-text-card,
  .forth-text-card,
  .first-text-div,
  .second-text-div,
  .first-img-card,
  .second-img-card {
    padding: 16px !important;
  }

  .first-img-card img,
  .second-img-card img {
    width: 100% !important;
  }

  .forth-img-card-first,
  .forth-img-card-second {
    padding: 10px 30px;
  }
  
  #dily-prodej-img {
    width: 100%;
  }

  .second-changing-img{
    grid-area: 1/2/3/3;
    padding: 70px 30px 30px 30px;
}

.text-image {
    text-align: center;
    transform: translateY(-60%) !important;
  }

.image-container.changing-img {
  height: 200px;
}

.third-img-card {
  padding: 0 30px 0 30px;
}

.second-changing-img{
    padding: 10px 30px 20px 30px;
}
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(110px, 33vw, 160px);
    height: auto;
  }

  .paragrap-header {
    font-size: 1.4rem !important;
  }

  p,
  li {
    font-size: 0.8rem !important;
  }

  .header-text {
    font-size: 1.4rem !important;
  }

  .slide-btn {
    font-size: 1.2rem;
    padding: 0.28rem 0.5rem;
    top: 48%;
  }

  #dily-prodej-img {
    max-width: 320px;
    width: 90%;
  }
}

/* ===== Small spacing adjustments ===== */
@media (max-width: 768px) {
  section {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .first-text-card,
  .second-text-card,
  .third-text-card,
  .forth-text-card,
  .first-text-div {
    padding: 12px;
  }

.text-image {
    text-align: center;
    transform: translateY(-60%) !important;
  }

  .image-container {
  height: 100px;
}

  .image-container.changing-img {
  height: 100px;
}

.second-changing-img{
    height: 500px;
}
}