.hidden {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

header {
  position: sticky;
  top: 0;
  background-color: #000;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.logo-wrapper {
transition-duration: 1s;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-5%);
  z-index: 15;
}

.logo-wrapper img {
transition-duration: 1s;
  height: clamp(60px, 9vw, 90px);
}

.scrolled .logo-wrapper {
    transition-duration: 1s;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-20%);
  z-index: 15;
}


.scrolled .logo-wrapper img {
    transition-duration: 1s;
  height: 4vw;
}


/* Navigace */
.nav-left {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(30px, 8vw, 100px); /* mezera mezi odkazy a krajem/centrem */
  max-width: 100%;
}

.nav-left a {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-left a:hover {
  color: #ffffff;
}

/* Hamburger menu */
.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-left {
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    gap: 20px;
    padding: 20px;
    z-index: 999;
  }

  .nav-left.active {
    display: flex;
  }

  .logo-wrapper img {
  height: 80px;
}

.scrolled .logo-wrapper img {
    transition-duration: 1s;
  height: 70px;
}

.scrolled .logo-wrapper {
transition-duration: 1s;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-5%);
  z-index: 15;
}

  .hamburger {
    display: block;
  }
}

/* ----------------------------------------------------------------------- */

.hero {
  width: 100%;
  height: 650px;
  background-image: url('img/banner1.png'); /* nebo jiný název, podle toho, jak uložíš */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 50px;
}

.hero-content {
  background-color: white;
  padding: 30px;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #000;
}

.hero p {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
}

.btn-yellow {
  display: inline-block;
  background-color: #FFCF05;
  color: #000;
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-yellow:hover {
  background-color: #e0b904;
}

/* ----------------------------------------------------------------------- */

.reference {
  background-color: #fff;
  padding: 80px 40px;
}

.reference h2 {
  font-size: 27pt;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 120px;
  text-align: center;
}

.reference-grid {
  display: flex;
  flex-direction: column;
}

.reference-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 200px;
  flex-wrap: wrap;
    margin-top: -40px;
}

.reference-box:nth-child(2) {
  flex-direction: row-reverse;
}

.reference-box img {
  height: 700px;
  width: 700px;
  max-width: 100%;
  object-fit: cover;
}

.reference-text {
  max-width: 350px;
  color: #1a1a1a;
}

.reference-text h3 {
  font-size: 25pt;
  font-weight: 400;
  margin-bottom: 10px;
}

.reference-text p {
  font-size: 11pt;
  line-height: 1.6;
  color: #555;
}

.reference-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.reference-link img {
  display: block;
  transition: transform 0.3s ease;
}

.reference-link .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0); /* začíná průhledný */
  color: white;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 12px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 20px;
  font-weight: 500;
}

.reference-link:hover img {
  transform: scale(1.03);
}

.reference-link:hover .overlay {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

@media (max-width: 1024px) {
  .reference-box {
    flex-direction: column !important;
    gap: 40px;
    margin-top: 40px;
  }

  .reference-box:nth-child(2) {
    flex-direction: column !important;
  }

  .reference-box img {
    width: 100%;
    height: 300px;
  }

  .reference-text {
    max-width: 100%;
    text-align: center;
    padding: 0 20px;
  }

  .reference-text h3 {
    font-size: 22pt;
  }

  .reference-text p {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------------------- */

.news-section {
  padding: 60px 5%;
  background-color: #f7f7f7;
}

.news-section h2{
  font-size: 27pt;
  font-weight: 400;
  color: #1a1a1a;
  padding-bottom: 120px;
  margin-left: 220px;
  text-align: left;
}

.news-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.news-card {
  position: relative;
  display: block;
  flex: 1 1 calc(33.333% - 30px);
  max-width: 400px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  transition: background 0.3s ease;
}

.news-card:hover img {
  filter: brightness(70%);
  transform: scale(1.05);
}

.news-card:hover .news-overlay {
  background: rgba(255, 255, 255, 1);
}

/* Zarovnání a výška */
.news-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  line-height: 1.4;
}

/* Responzivita */
@media (max-width: 1024px) {
  .news-card {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 1 1 100%;
  }

  .news-section h2{
  font-size: 27pt;
  font-weight: 400;
  color: #1a1a1a;
  padding-bottom: 120px;
  margin-left: 0;
  text-align: center;
}
}

/* ----------------------------------------------------------------------- */

.footer {
  background-color: #1c1c1c;
  color: #aaa;
  padding: 80px 20px 40px;
  position: relative;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  text-align: center;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.footer-logo img {
  height: 80px;
}

.footer-col-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-top: 10px;
  margin-bottom: 180px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  font-size: 16pt;
  margin-bottom: 12px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 18px;
  color: #aaa;
  font-size: 13px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 12px;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  margin: 0 6px;
  font-size: 12px;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-col-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .footer-logo img {
    height: 50px;
  }
}