:root{
  --blue:#2f5fa7;
  --blue2:#3b79d7;
  --text:#2b3445;
  --muted:#5a6a85;
  --card:#ffffff;
  --bg1:#eef5ff;
  --bg2:#dfeaf8;
  --shadow:0 18px 45px rgba(0,0,0,.12);
  --shadow-soft:0 12px 30px rgba(0,0,0,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:
  radial-gradient(1200px 600px at 50% 0%, #ffffff 0%, var(--bg1) 40%, var(--bg2) 100%);
}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1180px,92vw);margin:0 auto}
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(47,95,167,.12);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.nav .brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;letter-spacing:.04em;color:var(--blue);
}
.nav .brand img{height:32px;width:auto}
.menu{display:flex;gap:18px;align-items:center}
.menu a{
  font-weight:700;color:var(--text);
  padding:8px 12px;border-radius:12px;
}
.menu a.active, .menu a:hover{background:rgba(47,95,167,.10);text-decoration:none}
.langs{display:flex;gap:8px;align-items:center}
.lang-btn{
  border:1px solid rgba(47,95,167,.35);
  background:#fff;border-radius:12px;
  padding:6px 10px;font-weight:700;cursor:pointer;
}
.lang-btn.active{background:rgba(47,95,167,.12)}
.hero{
  padding:46px 0 10px;
  text-align:center;
}
.hero-card{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(47,95,167,.10);
  box-shadow:var(--shadow-soft);
  border-radius:var(--radius);
  padding:34px 28px;
}
.logo-big{
  width:min(520px,86vw);
  height:auto;
  display:block;
  margin:0 auto 18px;
  filter: drop-shadow(0 18px 35px rgba(47,95,167,.18));
}
.pulse{
  animation:pulseGlow 2.8s ease-in-out infinite;
  transform-origin:center;
}
@keyframes pulseGlow{
  0%,100%{transform:scale(1);filter:drop-shadow(0 14px 28px rgba(47,95,167,.20))}
  50%{transform:scale(1.03);filter:drop-shadow(0 22px 42px rgba(47,95,167,.32))}
}
.h1{
  font-size:clamp(28px,3vw,40px);
  margin:10px 0 10px;
  color:var(--blue);
  letter-spacing:.01em;
}
.lead{max-width:880px;margin:0 auto;color:var(--muted);font-size:16px;line-height:1.55}
.btn-row{
  margin-top:18px;
  display:flex;justify-content:center;gap:12px;flex-wrap:wrap;
}
.btn{
  border-radius:999px;
  border:1px solid rgba(47,95,167,.25);
  padding:10px 16px;
  font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
  min-width:110px;
  background:#fff;
  box-shadow:0 10px 22px rgba(47,95,167,.10);
}
.btn.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;border-color:transparent}
.section{padding:26px 0}
.section-title{
  text-align:center;
  color:var(--blue);
  font-size:clamp(22px,2.2vw,30px);
  margin:0 0 12px;
  font-weight:900;
  letter-spacing:.02em;
}
.philo{
  margin-top:20px;
  display:flex;flex-direction:column;gap:16px;
  align-items:center;
}
.philo-item{
  width:min(860px,92vw);
  background:rgba(255,255,255,.88);
  border:1px solid rgba(47,95,167,.18);
  border-radius:18px;
  padding:18px 22px;
  box-shadow:0 16px 30px rgba(0,0,0,.06);
  text-align:center;
}
.philo-item .k{font-weight:900;color:var(--blue);letter-spacing:.08em}
.philo-item .v{color:var(--muted);margin-top:8px;line-height:1.55}
.philo-arrow{
  width:0;height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-top:12px solid rgba(47,95,167,.22);
  margin:-8px auto -2px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 620px){
  .grid{grid-template-columns:1fr}
}
.card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(47,95,167,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:18px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  height:100%;
}
.card h3{margin:10px 0 0;font-size:16px;line-height:1.25}
.brand-sub{
  margin-top:8px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  color:rgba(43,52,69,.6);
}
.card p{
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
  margin:10px 0 0;
  min-height:calc(1.55em * 3);
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.card .btn-row{margin-top:auto;padding-top:14px}

/* Product detail: avoid duplicate brand line under the H1 */
.detail-grid.product-grid .brand-sub{display:none;}

.imgbox{
  width:100%;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  background:rgba(47,95,167,.05);
  box-shadow:0 18px 40px rgba(0,0,0,.10);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 6px;
}
.imgbox img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.placeholder{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:86px;font-weight:900;color:rgba(47,95,167,.75);
}
.page-head{
  text-align:center;
  padding:28px 0 12px;
}
.page-head .h1{margin:0}
.page-head .lead{margin-top:10px}
.detail{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(47,95,167,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
}
.detail-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 980px){
  .detail-grid{grid-template-columns:1fr}
}
.detail h1{margin:0 0 10px;color:var(--blue);font-size:34px}
.detail .text{color:var(--muted);line-height:1.65;font-size:15px}
.detail .bullets{margin:14px 0 0;color:var(--text)}
.detail .actions{
  margin-top:18px;
  display:flex;justify-content:center;gap:10px;flex-wrap:wrap;
}
.detail .imgbox{max-width:520px;margin:0 auto}
.footer{
  margin-top:42px;
  background:rgba(255,255,255,.55);
  border-top:1px solid rgba(47,95,167,.14);
}
.footer .container{padding:26px 0}
.footer-grid{
  display:flex !important;
  gap:18px !important;
  align-items:flex-start !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  padding-bottom:6px;
  scrollbar-width:thin;
}
.footer-block{
  flex:0 0 260px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(47,95,167,.10);
  border-radius:18px;
  padding:16px 16px 14px;
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}
.footer-block h4{margin:0 0 10px;color:var(--blue);font-weight:900;text-align:center}
.footer-block .small{font-size:13px;line-height:1.5;color:var(--muted)}
.footer-block .small b{color:var(--text)}
.footer-block .small p{margin:6px 0}
.footer-bottom{
  text-align:center;
  color:rgba(43,52,69,.65);
  font-size:12px;
  margin-top:14px;
}
.center{display:flex;justify-content:center}


/* ===== Contact lines with icons (footer) ===== */
.footer-contact .contact-line{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
  justify-content:center;
}
.footer-contact .contact-line a{
  text-decoration:none;
  font-weight:700;
}
.ico{
  width:18px; height:18px;
  flex:0 0 18px;
  opacity:.95;
}
.ico.wa{ width:19px; height:19px; }

/* ===== Floating WhatsApp button ===== */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:72px;
  height:72px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
  z-index:9999;
  transition:transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover{ transform:translateY(-2px); box-shadow:0 18px 38px rgba(0,0,0,.22); }
.whatsapp-float img{
  width:72px;
  height:72px;
  display:block;
  border-radius:50%;
}
@media (max-width:768px){
  .whatsapp-float{
    right:16px;
    bottom:16px;
    width:64px;
    height:64px;
  }
  .whatsapp-float img{ width:64px; height:64px; }
}

/* ===== Mobile (<=768px) ===== */
@media (max-width:768px){
  .container{ padding-left:16px; padding-right:16px; }

  /* Header: center + wrap */
  .topbar .nav{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }
  .topbar .brand{
    justify-content:center;
  }
  .topbar .brand span{ display:none; } /* keep logo only on mobile */
  .topbar .brand img{ height:44px; width:auto; }
  .topbar .menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 12px;
  }
  .topbar .langs{
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }

  /* Hero big logo */
  .logo-big{
    width:min(68vw, 220px);
    height:auto;
    margin: 4px auto 10px auto;
  }
  .hero-card{ padding:18px 14px; }
  .hero .btn-row{ justify-content:center; flex-wrap:wrap; }
  .hero .btn-row .btn{ width:100%; max-width: 340px; }

  /* Footer: 2x2 grid */
  .footer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:16px;
    text-align:center;
  }
  .footer-block .small{ text-align:center; }
  .footer-bottom{ margin-top:14px; }

  /* Floating button smaller + safe area */
  .whatsapp-float{
    right:14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width:56px; height:56px;
  }
  .whatsapp-float__icon .ico{ width:28px; height:28px; }
}
@media (max-width:420px){
  .footer-grid{ grid-template-columns: 1fr; }
}


/* footer mobile single column */
@media (max-width:768px){
  .footer-grid{grid-template-columns:1fr !important; text-align:center;}
  .footer-block{width:100%;}
}

.whatsapp-float img{width:34px;height:34px;display:block}


/* ===== Footer: force clean layout (desktop 4 blocks, mobile stacked) ===== */
.site-footer .footer-grid{
  justify-content:center;
}
.site-footer .footer-block{
  flex:1 1 240px;
  max-width:280px;
}
@media (max-width:768px){
  .site-footer .footer-grid{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:16px !important;
  }
  .site-footer .footer-block{
    width:100% !important;
    max-width:520px !important;
    margin:0 auto !important;
  }
}


/* ===== FIX: Footer on mobile should stack (override any old flex-nowrap/overflow rules) ===== */
@media (max-width: 768px){
  .footer .footer-grid,
  .site-footer .footer-grid,
  .footer-grid{
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    justify-content:center !important;
    overflow-x:visible !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  .footer .footer-block,
  .site-footer .footer-block,
  .footer-block{
    width:100% !important;
    max-width:520px !important;
    margin:0 auto !important;
    padding:12px 14px !important;
    height:auto !important;
    min-height:unset !important;
  }
}




/* === Footer sizing fix (equal height on desktop, auto height on mobile) === */
.site-footer .footer-grid{ align-items: stretch !important; }
.site-footer .footer-block{
  flex: 1 1 0 !important;
  width: 100% !important;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .site-footer .footer-grid{
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .site-footer .footer-block{
    max-width: 100% !important;
    flex: 0 0 auto !important; /* let height be content-driven */
  }
}


/* ===== FINAL FOOTER LAYOUT OVERRIDE =====
   Desktop: 4 equal-height columns (match tallest)
   Mobile: stacked blocks with content-driven height
*/
@media (min-width: 769px){
  .footer-grid{
    display:grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    gap:18px !important;
    align-items:stretch !important;
    justify-items:stretch !important;
    justify-content:initial !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  .footer-block{
    width:100% !important;
    max-width:none !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
  }
}

@media (max-width: 768px){
  .footer-grid{
    display:grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap:16px !important;
    overflow:visible !important;
    padding-bottom:0 !important;
  }
  .footer-block{
    height:auto !important;
    max-width:520px !important;
    margin:0 auto !important;
  }
}



/* ===============================
   FINAL OVERRIDES (Footer + Mobile polish)
   =============================== */

/* Footer layout: 4 equal cards on desktop, stacked on mobile */
.footer {
  padding: 56px 0 28px !important;
}
.footer .footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  justify-content: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}
.footer .footer-block {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  border-radius: 22px !important;
  padding: 24px !important;
}
.footer .footer-block h4 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  text-align: center !important;
}
.footer .footer-block .footer-content {
  flex: 1 1 auto !important;
}
.footer .footer-bottom {
  margin-top: 26px !important;
  text-align: center !important;
  padding: 0 20px !important;
}

@media (max-width: 1024px) {
  .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 32px 0 22px !important;
  }
  .footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 560px !important;
  }
  .footer .footer-block {
    padding: 18px !important;
    height: auto !important; /* dynamic height on mobile */
  }
  .footer .footer-block h4 {
    margin-bottom: 10px !important;
  }
  .footer .footer-block .footer-content {
    text-align: center !important;
  }
  .footer .footer-block .footer-row {
    justify-content: center !important;
  }
  .footer .footer-block a {
    word-break: break-word !important;
  }
}

/* Mobile spacing polish */
@media (max-width: 768px) {
  .nav-links {
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .language-switch {
    justify-content: center !important;
    gap: 10px !important;
  }
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  h1 { font-size: 28px !important; line-height: 1.18 !important; }
  h2 { font-size: 22px !important; }
}

/* Reduce layout shifts for images */
img { height: auto; }


/* Footer content alignment */
.footer .footer-block ul { margin: 0; padding: 0; list-style: none; }
.footer .footer-block li { margin: 10px 0 !important; }
.footer .footer-block .footer-contact li { display:flex; gap:10px; align-items:center; justify-content:center; }
.footer .footer-block .footer-legal p { margin: 8px 0 0 0 !important; text-align:left; }
@media (max-width:768px){
  .footer .footer-block .footer-legal p { text-align:center !important; }
}


/* Product detail layout: keep image right on desktop, but show image first on mobile */
.detail-grid { display: grid; gap: 24px; align-items: start; }
.detail-grid .detail-content { min-width: 0; }
@media (min-width: 769px){
  .detail-grid { grid-template-columns: 1.15fr 0.85fr; }
  .detail-grid .detail-content { grid-column: 1; }
  .detail-grid .imgbox { grid-column: 2; }
}
@media (max-width: 768px){
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .imgbox { grid-column: auto; }
}


/* === Product detail (improved): intro next to image, content continues under image === */
.detail-grid.product-grid{
  display:grid;
  gap:22px;
  align-items:start;
}
@media (min-width: 769px){
  .detail-grid.product-grid{
    grid-template-columns:1.15fr .85fr;
    grid-template-areas:
      "copy media"
      "body body";
  }
}
@media (max-width: 768px){
  .detail-grid.product-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "media"
      "body";
  }
}
.detail-grid.product-grid .product-copy{grid-area:copy;min-width:0}
.detail-grid.product-grid .imgbox{grid-area:media}
.detail-grid.product-grid .product-body{grid-area:body;min-width:0}
.detail-grid.product-grid .product-lead p{margin-top:0}
.product-lead .lead-extra{margin-top:12px}
.product-lead .lead-extra p{margin:10px 0 6px}
.product-lead .lead-list{margin:0 0 0 18px;padding:0;line-height:1.35;font-size:.95em}
.product-lead .lead-list li{margin:0 0 4px}

