/* ============================================================
   🌐 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;
  }
}

/* ============================================================
   📄 POPTÁVKA – LAYOUT (malá mezera dole)
   ============================================================ */
.poptavka-page{
  position: relative;
  z-index: 5; /* nad pozadím */
  max-width: 1680px;
  margin: 0 auto;
  padding: 22px clamp(12px, 3vw, 60px) 48px; /* TADY je “drobek” místa dole */
}

/* extra široké monitory */
@media (min-width: 1700px){
  .poptavka-page{
    max-width: 1820px;
  }
}

/* mobil – malé stěny + menší spodní mezera */
@media (max-width: 600px){
  .poptavka-page{
    padding: 18px 10px 32px;
  }
}

/* HLAVIČKA POPTÁVKY – NADPIS + PODNADPIS POD SEBOU */
.poptavka-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 0 26px;
}

.poptavka-head h1{
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #111;
}

.poptavka-head p{
  margin: 0;
  font-size: 1.05rem;
  color: #444;
  max-width: 640px;
}

@media (max-width: 980px){
  .poptavka-head{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .poptavka-head h1{
    font-size: 2.4rem;
  }
}

/* Dvě karty vedle sebe */
.poptavka-wrap{
  width: 100%;
}

.poptavka-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 980px){
  .poptavka-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Karty */
.p-card{
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 153, 255, 0.10);
  border: 1px solid rgba(0, 153, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 25px 70px rgba(0, 153, 255, 0.25);
}

@media (max-width: 600px){
  .p-card{
    padding: 16px;
    border-radius: 18px;
  }

  .p-card:hover{
    transform: translateY(-6px);
  }
}

.p-card__title{
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
}

/* Form prvky */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

@media (max-width: 560px){
  .grid-2{
    grid-template-columns: 1fr;
  }
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label{
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
}

input, select, textarea{
  width: 100%;
  border: 1px solid rgba(0, 153, 255, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: #222;
}

textarea{
  min-height: 420px;
  resize: vertical;
}

@media (max-width: 600px){
  textarea{
    min-height: 300px;
  }
}

input:focus, select:focus, textarea:focus{
  border-color: #0099ff;
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.15);
}

/* Hex povinné */
.hex-req{
  width: 14px;
  height: 14px;
  display: inline-block;
  background: #0099ff;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.12);
  flex: 0 0 auto;
}

.legend{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #444;
  margin-top: 6px;
}

.hint{
  margin: 10px 0 0;
  color: #444;
  font-size: .95rem;
  line-height: 1.5;
}

/* Dropzone */
.dropzone{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 18px;
  border: 2px dashed rgba(0, 153, 255, 0.35);
  background: #f8fbff;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.dropzone:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 153, 255, 0.12);
  border-color: rgba(0, 153, 255, 0.65);
  background: #ffffff;
}

.dropzone.is-drag{
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(0, 153, 255, 0.90);
  background: #eef7ff;
}

.dropzone__main{
  font-weight: 800;
  color: #111;
}

.dropzone__sub{
  margin-top: 6px;
  color: #444;
  font-size: .95rem;
}

.dropzone__icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 153, 255, 0.20);
  display: grid;
  place-items: center;
  color: #111;
}

.dropzone__input{
  display: none;
}

/* vypsání souborů */
.filelist{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filepill{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 153, 255, 0.18);
}

.filepill__name{
  font-weight: 700;
  font-size: .95rem;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filepill__meta{
  font-size: .9rem;
  color: #444;
}

.filepill__remove{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #666;
  font-size: .75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}
.filepill__remove:hover{
  background: #ffe0e0;
  color: #c00;
}

/* Switch FDM/SLA */
.tech-row{
  display: flex;
  justify-content: center;
  margin: 14px 0 20px;
}

.seg{
  position: relative;
  width: 260px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 153, 255, 0.35);
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.seg__btn{
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  color: #111;
}

.seg__thumb{
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.18);
  border: 1px solid rgba(0, 153, 255, 0.22);
  transition: transform 220ms ease;
  z-index: 1;
}

/* Button */
.actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.btn-primary{
  background-color: #0099ff;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover{
  background-color: #007acc;
  transform: translateY(-2px);
}



/* ============================================================
   🍪 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; }
}