/* ============================================================
   🌐 ZÁKLAD
   ============================================================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #fff;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ============================================================
   🔷 POZADÍ (HEXFIELD CANVAS)
   ============================================================ */
#bgCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #f8fbff;
  pointer-events: none; /* důležité: neblokuje kliky */
}

/* ============================================================
   🧭 HLAVIČKA A NAVIGACE (NEUPRAVOVAT)
   ============================================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 55px 5%;
  background-color: #ffffff;
  height: 40px;
  
}

.logo {
  width: 200px;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 30px;
  transition: right 0.4s ease;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0099ff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background-color: #0099ff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #0099ff;
}

nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.close-btn {
  display: none;
}

nav.active .close-btn {
  display: block !important;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

nav.active .close-btn:hover {
  color: #0099ff;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: start;
    padding: 80px 20px;
    gap: 25px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active { right: 0; }

  nav a {
    font-size: 1.2rem;
    color: #111;
  }
}

/* ============================================================
   🧩 HLAVNÍ OBSAH
   ============================================================ */
.services-main {
  max-width: 1600px;
  margin: 100px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.services-header {
  text-align: center;
  max-width: 800px;
}

.services-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0b2e4e;
  margin-bottom: 10px;
}

.services-header p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   💎 SEKCE SLUŽEB
   ============================================================ */
.service-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 22px;
  padding: 50px 60px;
  box-shadow: 0 12px 40px rgba(0, 153, 255, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.15);
  width: 100%;
  max-width: 1500px;
  gap: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 45px rgba(0, 153, 255, 0.25);
}

/* === Obrázky === */
.service-image {
  flex: 0 0 auto;
}

.service-image img {
  display: block;
  height: auto;
  filter:
    drop-shadow(0 6px 18px rgba(0, 153, 255, 0.22))
    drop-shadow(0 0 22px rgba(0, 153, 255, 0.10));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-image img:hover {
  transform: scale(1.05);
  filter:
    drop-shadow(0 10px 28px rgba(0, 153, 255, 0.3))
    drop-shadow(0 0 35px rgba(0, 153, 255, 0.18));
}

.modeling-img {
  width: 260px;
}
.sla-img {
  width: 240px;
}
.fdm-img {
  width: 280px;
}

/* === TEXT === */
.service-text {
  flex: 1;
}

.service-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.service-text h2 span {
  color: #0099ff;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

/* === Zvýraznění textu === */
.highlight-sla {
  color: #8400ff;
  font-weight: 600;
}

.highlight-fdm {
  color: #ff0040;
  font-weight: 600;
}

.highlight-fil {
  color: #858585;
  font-weight: 600;
}

.highlight-3d {
  color: #0099ff;
  font-weight: 600;
  text-decoration: underline;
}

/* Obrácené pořadí (např. FDM vlevo obrázek) */
.service-section.reverse {
  flex-direction: row-reverse;
}

/* ============================================================
   🎨 TLAČÍTKA
   ============================================================ */
.service-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔹 Tlačítko posune dolů */
}

.btn-box {
  display: flex;
  justify-content: center; /* 🔹 Horizontálně doprostřed */
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 35px;
  border: 2px solid #0099ff;
  border-radius: 10px;
  color: #0099ff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0099ff;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
}

.btn.primary {
  border-color: #0099ff;
}

.btn.secondary {
  border-color: #00bfff;
  color: #00bfff;
}

.btn.secondary:hover {
  background: #00bfff;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}



/* ============================================================
   📄 SEKCE DETAILŮ
   ============================================================ */
.details-section {
  background: #f8fbff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 153, 255, 0.1);
  padding: 60px 60px;
  max-width: 1500px;
  width: 100%;
  margin-top: 40px;
}

.details-section h2 {
  color: #0099ff;
  text-align: center;
  margin-bottom: 15px;
}

.details-section p {
  text-align: center;
  color: #444;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.details-grid h3 {
  color: #0b2e4e;
  margin-bottom: 10px;
}

.details-grid ul {
  list-style: none;
  padding: 0;
  color: #333;
  line-height: 1.8;
}

.details-grid ul li::before {
  content: "• ";
  color: #0099ff;
  font-weight: bold;
}

/* ============================================================
   📱 RESPONSIVITA SEKCE SLUŽEB
   ============================================================ */
@media (max-width: 950px) {
  .service-section,
  .service-section.reverse {
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 40px 20px;
    margin: 18px 12px;
    gap: 24px;
  }

  .service-image {
    order: -1 !important;
    margin: 0 auto 10px auto;
  }

  .service-image img {
    display: block;
    margin: 0 auto;
    max-width: 70vw;
  }

  .service-text {
    order: 0 !important;
    padding: 0 12px;
    width: 100%;
  }

  .service-text h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .service-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .details-section {
    padding: 40px 20px;
  }
}

/* ============================================================
   🔹 SROVNÁNÍ MATERIÁLŮ — OPRAVA ZAROVNÁNÍ
   ============================================================ */
.materials-box {
  background: #ffffff;
  border-radius: 22px;
  padding: 50px 60px;
  box-shadow: 0 12px 40px rgba(0, 153, 255, 0.15);
  border: 1px solid rgba(0, 153, 255, 0.15);
  width: 100%;
  max-width: 1500px;
  gap: 60px;
  margin: 0 auto;               /* střed horizontálně */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;       /* zaručí, že padding se započítává do šířky */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.materials-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 153, 255, 0.25);
}

/* NADPIS */
.materials-box h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0b2e4e;
  text-align: center;
  margin-bottom: 10px;
}

.materials-box h2 span {
  color: #0099ff;
}

/* TEXT */
.materials-intro {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 850px;
  margin-bottom: 35px;
}

/* GRID KONTEJNER */
.materials-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* SLOUPCE */
.materials-col h3 {
  font-size: 1.1rem;
  color: #0099ff;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(0, 153, 255, 0.1);
  padding-bottom: 5px;
}

.material-item {
  margin-bottom: 20px;
}

.material-item strong {
  display: block;
  font-size: 1.05rem;
  color: #0b2e4e;
  margin-bottom: 4px;
}

.material-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}





/* 📱 Mobilní rozložení – pod sebe */
@media (max-width: 950px) {
  .materials-container {
    grid-template-columns: 1fr;    /* jeden sloupec */
  }

  /* zarovnání textů na mobilu */
  .materials-col h3 {
    text-align: center;
  }

  .materials-col ul {
    text-align: left;              /* nech texty zarovnané vlevo */
    padding-left: 20px;
  }
}

/* ============================================================
   🔷 POZADÍ
   ============================================================ */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #f8fbff;
}


.materials-col{width:100%;}



/* ============================================================
   🍪 COOKIE BANNER
   ============================================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid rgba(0, 153, 255, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.09);
  padding: 16px 5%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  font-family: "Segoe UI", Arial, sans-serif;
}
.cookie-text strong {
  color: #0b2342;
  font-weight: 700;
  margin-right: 4px;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--ok {
  background: #0099ff;
  color: #ffffff;
  border: 2px solid #0099ff;
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.3);
}
.cookie-btn--ok:hover { background: #007acc; border-color: #007acc; }
.cookie-btn--no {
  background: #ffffff;
  color: #0099ff;
  border: 2px solid rgba(0, 153, 255, 0.45);
}
.cookie-btn--no:hover { background: #f0f7ff; border-color: #0099ff; }
@media (max-width: 640px) {
  .cookie-banner { padding: 14px 4%; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}