
/* ============================================================
   🌐 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;
  }
}
/* ============================================================
   🔘 TLAČÍTKA (ve stejném stylu)
   ============================================================ */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  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);
}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #fff;
  color: #0099ff;
  border: 1px solid rgba(0,153,255,.35);
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow .3s ease, border-color .3s ease;
}

.btn-secondary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 153, 255, 0.18);
  border-color: rgba(0,153,255,.55);
}
.main-img {
  width: 440px;
  max-width: 100%;
  height: auto;
  display: block;
  justify-self: end;
}

/* ============================================================
   🧊 KARTY (p-card jako na kalkulačce / poptávce)
   ============================================================ */
.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: 900px){
  .p-card:hover{ transform: translateY(-6px); }
}


/* ============================================================
   🏠 HOME – rozložení (držení stejného designu)
   ============================================================ */
.home-page{
  padding: 20px 5% 70px;
}

.home-hero{
  padding-top: 12px;
  padding-bottom: 28px;
}

.home-hero__grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.home-eyebrow{
  margin: 0 0 10px;
  font-size: 1.0rem;
  font-weight: 700;
  color: #111;
}

.home-h1{
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #0b2342;
}

.home-lead{
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #333;
  max-width: 60ch;
}

.home-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Right preview card */
.home-preview{
  padding: 22px;
}

.home-preview__title{
  font-weight: 800;
  color: #0b2342;
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.home-preview__box{
  border-radius: 18px;
  border: none;
  background: rgba(0,153,255,.04);
  height: 320px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.home-preview__hint{
  text-align:center;
  color:#0b2342;
  font-weight:700;
  line-height: 1.45;
}

.home-preview__meta{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,153,255,.18);
}

.home-price{
  display:flex;
  align-items: baseline;
  gap: 10px;
}

.home-price__label{
  font-weight: 800;
  color: #444;
}

.home-price__value{
  font-weight: 900;
  font-size: 1.2rem;
  color: #0b2342;
}

.home-spec{
  margin-top: 8px;
  color: #444;
  font-size: 0.95rem;
}

/* Sections */
.home-section{
  margin-top: 26px;
}


.home-head{
  margin-bottom: 14px;
}

.home-head--row{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
}

.home-h2{
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0b2342;
  display:flex;
  align-items:center;
  gap: 10px;
}

.home-accent{
  width: 6px;
  height: 22px;
  border-radius: 99px;
  background: #0099ff;
  display:inline-block;
}

.home-sub{
  margin: 8px 0 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.45;
}

.home-grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-mini h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #0b2342;
}

.home-mini p{
  margin: 0;
  color: #333;
  line-height: 1.55;
}

/* How steps */
.home-how{
  display:flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.step{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}

.step-n{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0,153,255,.12);
  border: 1px solid rgba(0,153,255,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #0099ff;
  flex: 0 0 auto;
}

.step-t{
  font-weight: 900;
  color: #0b2342;
  margin-bottom: 4px;
}

.step-d{
  color: #333;
  line-height: 1.45;
}

/* Gallery */
.home-link{
  font-weight: 800;
  color: #0099ff;
}

.home-gallery4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.home-ph{
  height: 150px;
  border-radius: 18px;
  border: 1px dashed rgba(0,153,255,.35);
  background: rgba(0,153,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0b2342;
  font-weight: 800;
}

.home-ph span{
  opacity: .65;
}

/* Action cards */
.action-card{
  display:block;
}

.action-top{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}

.action-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(0,153,255,.10);
  border: 1px solid rgba(0,153,255,.22);
  display:flex;
  align-items:center;
  justify-content:center;
}

.action-card h3{
  margin: 0;
  color: #0b2342;
  font-size: 1.05rem;
}

.action-card p{
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.action-more{
  display:inline-block;
  margin-top: 12px;
  font-weight: 900;
  color: #0b2342;
  opacity: .8;
}

/* CTA bar */
.home-ctaBar{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.home-ctaBar__t{
  font-weight: 900;
  color: #0b2342;
  margin-bottom: 6px;
}

.home-ctaBar__d{
  color: #333;
  line-height: 1.45;
}

.home-ctaBar__a{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1000px){
  .home-hero__grid{ grid-template-columns: 1fr; }
  .home-gallery4{ grid-template-columns: 1fr 1fr; }
  .home-grid3{ grid-template-columns: 1fr; }
  .home-ctaBar{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px){
  .home-page{ padding-left: 4%; padding-right: 4%; }
  .home-gallery4{ grid-template-columns: 1fr; }
  .home-preview__box{ height: 260px; }
  .btn-primary, .btn-secondary{ width: 100%; }
}
/* Airier spacing adjustments */
.home-hero{ padding-bottom: 56px; }
.home-section{ margin-top: 48px; }
.home-grid3{ gap: 30px; }
.home-gallery4{ margin-top: 26px; gap: 24px; }
.home-preview__box{ background: rgba(0,153,255,.025); }




/* ============================================================
   🧩 HOME – sekce jako velké bílé karty (stejný pattern jako jinde)
   ============================================================ */
.section-card{
  padding: 30px;
}

.section-card .home-head{
  margin-bottom: 18px;
}

.hero-card{
  padding: 30px;
  /* hero card má zůstat "pevná", bez velkého hover liftu */
  transition: none;
}
.hero-card:hover{
  transform: none;
  box-shadow: 0 20px 50px rgba(0, 153, 255, 0.10);
}

/* Vzdušnější spacing mezi sekčními kartami */
.home-section{ margin-top: 30px; }
@media (max-width: 560px){
  .section-card, .hero-card{ padding: 22px; }
}

/* Gallery box sizes inside section cards */
.home-ph{ height: 160px; }


/* ============================================================
   🧘 Větší rozestupy mezi sekčními kartami
   ============================================================ */
.home-section{
  margin-top: 48px;
}

/* ============================================================
   🎨 MINI KARTIČKY – ikona
   ============================================================ */
.mini-ico {
  font-size: 1.4rem;
  margin-bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 153, 255, 0.08);
  border: 1px solid rgba(0, 153, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   🤝 PARTNER MARQUEE – čistá verze
   ============================================================ */

/* Obálka s fade efektem na krajích */


/* Track – jeden řádek, animace */


/* Jedna karta partnera */


/* Responsive */
@media (max-width: 900px) {
  .partner-pill { min-width: 150px; height: 70px; }
  .partner-marquee::before,
  .partner-marquee::after { width: 60px; }
}

@media (max-width: 560px) {
  .partner-pill { min-width: 130px; height: 64px; padding: 0 16px; }
  .partner-marquee__track { animation-duration: 22s; }
  .partner-marquee::before,
  .partner-marquee::after { width: 40px; }
}


/* ============================================================
   🎬 SCROLL ANIMACE
   ============================================================ */

/* Výchozí stav – schovaný */
.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.anim-img {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.15s;
}

.anim-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Viditelný stav – po triggeru */
.anim-up.anim-visible,
.anim-fade.anim-visible,
.anim-img.anim-visible,
.anim-card.anim-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Uživatelé s prefers-reduced-motion – žádné pohyby */
@media (prefers-reduced-motion: reduce) {
  .anim-up, .anim-fade, .anim-img, .anim-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   📌 FLOATING CTA
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0099ff;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 28px rgba(0, 153, 255, 0.38);
  border: none;
  cursor: pointer;

  /* Schovaný by default */
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1),
              background 0.2s ease, box-shadow 0.2s ease;
}

.float-cta--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-cta--hide {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
}

.float-cta:hover {
  background: #007acc;
  box-shadow: 0 12px 36px rgba(0, 153, 255, 0.5);
  transform: translateY(-2px) scale(1.03);
}

.float-cta__ico {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 560px) {
  .float-cta {
    bottom: 80px;
    right: 16px;
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  .float-cta__text { display: none; }
  .float-cta {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .float-cta__ico { font-size: 1.2rem; }
}


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

/* ============================================================
   📱 HERO – mobilní opravy
   ============================================================ */
@media (max-width: 1000px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }
  .main-img {
    width: min(320px, 80vw);
    margin: 16px auto 0;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .home-h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .main-img {
    width: min(260px, 75vw);
    margin-top: 12px;
  }
  .hero-card {
    padding: 20px 16px;
  }
  .home-lead {
    font-size: 0.95rem;
  }
}
