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

/* ============================================================
   📄 LAYOUT (stejné jako poptávka)
   ============================================================ */
.poptavka-page{
  position: relative;
  z-index: 5;
  max-width: 1680px;
  margin: 0 auto;
  padding: 22px clamp(12px, 3vw, 60px) 48px;
}

@media (min-width: 1700px){
  .poptavka-page{ max-width: 1820px; }
}
@media (max-width: 600px){
  .poptavka-page{ padding: 18px 10px 32px; }
}

.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: 740px;
}

.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;
}

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

.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;
}

/* 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í souboru */
.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: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Switch */
.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__btn.is-active{
  color: #0b2e4e;
}

.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: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* ============================================================
   🔧 DOPLŇKY PRO KALKULAČKU (navíc)
   ============================================================ */
.k-info{ padding-top: 6px; }
.k-lead{
  margin: 0 0 14px;
  color: #333;
  line-height: 1.7;
  font-weight: 600;
}

.k-bullets{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.k-bullet{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(0,153,255,0.12);
}

.k-dot{
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 6px;
  background: rgba(0,153,255,0.55);
  box-shadow: 0 0 0 4px rgba(0,153,255,0.10);
  flex: 0 0 auto;
}

.k-muted{ color: #4b5563; font-size: .95rem; margin-top: 2px; }

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

.k-actions{ margin-top: 4px; }

.k-result{
  margin-top: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(0,153,255,0.14);
  overflow: hidden;
}

.k-result__head{
  padding: 14px 14px 0;
}

.k-result__title{
  font-weight: 900;
  color: #111;
}

.k-result__sub{
  margin-top: 6px;
  color: #4b5563;
  font-weight: 600;
  font-size: .95rem;
}

.k-pre{
  margin: 12px 14px 14px;
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,153,255,0.12);
  max-height: 340px;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.45;
}
