/* J.O.C. – global styles */
:root {
  --bg: #05070b;
  --bg-alt: #10141d;
  --bg-soft: #161b26;
  --accent: #2f8fdc;
  --accent-soft: rgba(47,143,220,0.15);
  --text: #f5f7fb;
  --muted: #9ea6b8;
  --border: #262c3a;
  --card-bg: #121723;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #161b26 0, #05070b 55%);
  color: var(--text);
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: radial-gradient(circle at top left, #1b2233 0, #05070b 55%);
}

.section h2 {
  font-size: 2.1rem;
  margin: 0 0 0.75rem;
}

.section-lead {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5,7,11,0.98), rgba(5,7,11,0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo-img {
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav .old-link {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,20,30,0.8);
}

/* Burger */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

/* === HERO GRID + SLIDER – JOC === */

.hero {
  padding-top: 4rem;   /* menší offset – zarovnanie s logom a sekciou Služby */
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* na užších displejoch nech je všetko pod sebou */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-text {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: #6ea9ff;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-note span {
  color: #4ba8ff;
}

/* pravý panel s galériou */

.hero-media {
  border-radius: 32px;
  padding: 1.75rem;
  background: radial-gradient(circle at top, #1c1f30 0, #05070f 60%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}

.hero-media-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* jednotlivé snímky slidera */

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
}

.hero-media-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: #46a2f5;
}

.btn.ghost {
  border-color: var(--border);
  background: rgba(10,15,25,0.7);
  color: var(--text);
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}

.card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

/* Referencie */

.ref-files ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.ref-files li + li {
  margin-top: 0.35rem;
}

.ref-files a {
  color: var(--accent);
  text-decoration: none;
}

.ref-files a:hover {
  text-decoration: underline;
}

.ref-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.ref-item {
  margin: 0;
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.ref-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ref-item figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  color: var(--muted);
}

/* Realizácie – spodná galéria */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.gallery-item {
  margin: 0;
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.12);
}

/* Two-column sections */

.two-col {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: 2.25rem;
  align-items: center;
}

.two-col-img img {
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.bullet-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.auth-img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.auth-img-grid img {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

/* Banner */

.banner-section {
  padding-top: 0;
}

.banner-inner {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.banner-inner img {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
}

/* Kontakt */

.contact-grid {
  align-items: flex-start;
}

.contact-data {
  margin: 1.2rem 0 0;
}

.contact-data div {
  margin-bottom: 0.5rem;
}

.contact-data dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-data dd {
  margin: 0.15rem 0 0.3rem;
}

.contact-data a {
  color: var(--accent);
  text-decoration: none;
}

.contact-data a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: #05070b;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-logo {
  height: 32px;
  margin-bottom: 0.4rem;
}

.footer-right {
  display: flex;
  gap: 1.3rem;
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--accent);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 0.75rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  color: #f5f7fb;
  font-size: 0.9rem;
}

.lightbox button {
  position: absolute;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */

@media (max-width: 880px) {
  .two-col,
  .cards-grid,
  .ref-gallery,
  .gallery-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 1rem;
  }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(5,7,11,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }
  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
  }
  .cards-grid {
    gap: 1rem;
  }
  .ref-item img {
    height: 190px;
  }
}
