/* Reset & moderné premenné */
:root {
  /* --bg-color: #0D0F12; */
  --bg-color: #e0e7e8;
  --menu-bg: #8b949e;
  --accent: #ff0000;
  --accent-hover: #c70000;
  --swiper-theme-color: var(--accent);
  --text-color: #F1F1F1;
  --text-color-black: #161515;
  --subtext: #282828;
  --overlay: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(0, 0, 0, 0.4);
  --overlay-dark: rgba(0, 0, 0, 0.8);
  --star-color: #FFD60A;
  --font-sans: 'Inter', system-ui, -apple-system;
}
#preloader {
  position: fixed;
  z-index: 9999;
  background: #fff;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #3992e6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}
header { backdrop-filter: blur(10px); background: rgba(13,15,18,0.75); position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 2rem; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; cursor: pointer; margin-right: 1.5rem; z-index: 1002; }
.hamburger span { height: 3px; background: var(--text-color); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
nav ul { display: flex; list-style: none; gap: 1.5rem; margin-left: auto; align-items: center; }
nav a { color: var(--text-color); text-decoration: none; font-weight: 500; position: relative; padding: 0.25rem; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
nav a.btn {margin-left: 20vw;}
nav a.btn::after { content: none;}
nav a:hover::after { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; padding: 0.5rem 1.5rem; border-radius: 999px; font-weight: 600; transition: background 0.3s, transform 0.2s; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary { border: #fff solid 0.1em; color: #fff; padding: 0.5rem 1.5rem; border-radius: 999px; font-weight: 600; transition: background 0.3s, transform 0.2s; }
.btn-secondary:hover { background: var(--accent-hover); transform: translateY(-2px); border-color: var(--accent);}
.mobile-contact { display: none; margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; }
/* Footer sekcia */
body > footer {
  width: 100%;
  margin-top: 4rem;
  position: relative;
  background: var(--menu-bg);
  padding: 2rem 1rem;
  color: var(--text-color);
}
.black {
  color: var(--text-color-black);
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo img {
  width: 5em;
  filter: brightness(1.2);
}

.footer-logo a {
  color: white;
  text-decoration: none;
  transition: transform 200ms ease;
}
.footer-logo a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: filter 0.3s;
}
.footer-social a:hover svg {
  fill: var(--accent);
}
.footer-copy {
  flex-basis: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--subtext);
}
@media (max-width: 600px) {
  .footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "links social"
      "logo social"
      "copy copy";
    gap: 1rem;
    align-items: center;
  }
  .footer-links {
    grid-area: links;
    flex-direction: column;
    align-items: start;
  }
  .footer-social {
    grid-area: social;
    justify-self: end;
  }
  .footer-logo {
    grid-area: logo;
    justify-self: start;
  }
  .footer-copy {
    grid-area: copy;
  }
}
  .footer-logo {
    grid-area: logo;
    justify-self: start;
  }
  .footer-links {
    grid-area: links;
    flex-direction: column;
    align-items: start;
  }
  .footer-social {
    grid-area: social;
    justify-self: end;
  }
  .footer-copy {
    grid-area: copy;
  }

  .footer-links {
    grid-area: links;
    flex-direction: column;
    align-items: start;
  }
  .footer-social {
    grid-area: social;
    justify-self: end;
  }
  .footer-copy {
    grid-area: copy;
  }

  .footer-links {
    justify-content: center;
  }
section {max-width: 1200px; margin-inline: auto;}
section > h1 {margin-bottom: 0; line-height: 1em;}
.hero-text { font-size: 1.25rem; color: var(--subtext); margin-bottom: 1.5rem; }
.realizacie { padding: 4rem 2rem; }
.realizacie h2 { text-align: left; margin-bottom: 2rem; font-size: 2rem; }
.swiper-container-realizacie { width: 100%; padding-bottom: 2rem; }
.swiper-slide { position: relative; text-align: center; background: var(--menu-bg); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.show-more-overlay { position: absolute; inset: 0; background: var(--overlay-light); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.show-more-overlay a { color: #fff; background: var(--accent); padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.swiper-slide.show-more .show-more-overlay { opacity: 1; }
/* Lightbox */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-dark); display: none; align-items: center; justify-content: center; z-index: 2000; }
.lightbox-img { max-width: 90%; max-height: 90%; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: #fff; font-size: 2rem; cursor: pointer; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; }
  .mobile-contact { display: block; }
}
    /* Mobile sidebar & overlay */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 1000; }
.overlay.active { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; left: 0; width: 260px; height: 100%; background: var(--menu-bg); padding-top: 4rem; transform: translateX(-100%); box-shadow: 2px 0 12px rgba(0,0,0,0.4); border-top-right-radius: 8px; border-bottom-right-radius: 8px; z-index: 1001; }
.mobile-nav.open { transform: translateX(0); transition: transform 0.3s ease-out; }
.mobile-nav.close { transform: translateX(-100%); transition: transform 0.3s ease-in; }
.mobile-nav .close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.mobile-nav .close-btn:hover { color: var(--accent); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; padding: 0 1.5rem; }
.mobile-nav a { color: var(--text-color); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.mobile-nav a.btn-primary { display: block; text-align: center; }