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

/* HERO */
.hero {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 8px;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 8px;
  font-weight: 800;
}

.hero p {
  margin: 0;
  color: #6b7280;
}

.resino {
  color: #0099ff;
}

/* CONTAINER */
.contact-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 5% 120px;
}

/* TOP CARDS */
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  max-width: 1200px;
  margin: 28px auto 0;
}

.contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px 34px;
  border: 1px solid rgba(0,153,255,0.16);
  box-shadow: 0 24px 60px rgba(0,153,255,0.08);
  width: 45%;
  max-width: 560px;
  min-width: 260px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative;
}

/* NAME + BIG BADGE */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.card-header h3 {
  margin: 0;
  font-size: 20px;
}

.role {
  display: inline-block;
  background: linear-gradient(180deg, rgba(0,153,255,0.12), rgba(0,153,255,0.08));
  color: #006ecf;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(3,102,214,0.06);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* variantní styl pro techničtější look */
.role-tech {
  background: linear-gradient(180deg, rgba(0,140,200,0.10), rgba(0,140,200,0.06));
  color: #005bb5;
}

/* contact text */
.contact-card p {
  margin: 8px 0;
  color: #333;
  font-size: 15px;
}

.contact-card .phone {
  color: #0099ff;
}

/* hover effect */
.card-elev {
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform, box-shadow;
}

.card-elev:hover {
  transform: translateY(-10px);
  box-shadow:
    0 48px 90px rgba(3,102,214,0.12),
    0 12px 40px rgba(3,102,214,0.08);
}

/* BOTTOM CARD */
.big-card {
  max-width: 1200px;
  margin: 48px auto 80px;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(37,99,235,0.08);
  box-shadow: 0 36px 70px rgba(0,120,200,0.06), 0 12px 36px rgba(16,24,40,0.05);
  overflow: visible;
  position: relative;
}

.card-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 34px;
  padding-right: 34px;
  box-sizing: border-box;
}

.big-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.muted {
  color: #6b7280;
  font-weight: 600;
  margin-left: 6px;
}

.contact-note {
  color: #374151;
  margin-bottom: 12px;
}

/* FORM */
.input-phone {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,153,255,0.13);
  font-size: 15px;
  margin-bottom: 6px;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.hint {
  font-size: 12px;
  color: #6b7280;
  margin-left: 8px;
  display: inline-block;
}

/* focus */
.input-phone:focus {
  outline: none;
  border-color: #0099ff;
  box-shadow: 0 10px 30px rgba(0,153,255,0.08);
}

/* layout */
.form-row {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 12px 0 18px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.options-inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.radio {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: #111827;
}

.select-time {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,153,255,0.12);
}

/* INLINE SUCCESS (keď zůstává form) */
.inline-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg,#1eae50,#0f9a44);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
  box-shadow: 0 8px 28px rgba(15,81,50,0.08);
}

.inline-success .check-inline {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

/* ACTIONS - buttons right-aligned */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-actions-right {
  justify-content: flex-end;
  width: 100%;
  display: flex;
}

/* buttons */
.btn {
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-weight: 700;
}

.btn-primary {
  background: #0099ff;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,153,255,0.12);
}

.btn-primary:hover {
  background: #0071d6;
  transform: translateY(-3px);
}

.btn-ghost {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  color: #374151;
  padding: 10px 14px;
}

/* status text */
.cb-status {
  margin-top: 10px;
  color: #0a7d0a;
  font-weight: 600;
}

/* TOAST */
.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  background: #0f5132;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  z-index: 120;
  display: none;
  opacity: 0;
  transition: opacity 220ms ease;
  font-weight: 700;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .contact-row {
    max-width: 100%;
    padding: 0 20px;
    gap: 20px;
    justify-content: center;
  }

  .contact-card {
    width: calc(50% - 10px);
    min-width: 220px;
  }

  .big-card {
    max-width: 100%;
    margin: 32px auto;
    padding: 22px;
    border-radius: 14px;
  }

  .card-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .form-actions {
    justify-content: flex-start;
  }
}

/* mobile: badge pod jménem a větší text */
@media (max-width: 720px) {
  .header-inner {
    padding: 12px 5%;
  }

  .logo {
    width: 100px;
  }

  .nav {
    display: none;
  }

  .contact-row {
    flex-direction: column;
    gap: 18px;
  }

  .contact-card {
    width: 100%;
    min-width: unset;
  }

  .hero h1 {
    font-size: 26px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .role {
    margin-left: 0;
    font-size: 13px;
    padding: 6px 10px;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .form-actions-right {
    justify-content: flex-start;
  }
}

/* z-index pro obsah nad pozadím */
.site-header,
.contact-main,
.big-card {
  position: relative;
  z-index: 10;
}



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