/* V9: portal buttons positioned tightly above main menu on desktop. */
.hero-portals{display:flex;align-items:center;justify-content:flex-end;gap:10px;position:relative;z-index:8;}
.hero-portals a{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;color:#e8f2ff;border:1px solid rgba(18,157,255,.50);background:rgba(6,15,28,.34);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-radius:14px;padding:9px 16px;min-height:42px;box-shadow:0 0 0 1px rgba(16,129,204,.10) inset;transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;}
.hero-portals a:hover{background:rgba(9,26,46,.52);border-color:rgba(33,177,255,.72);box-shadow:0 0 0 1px rgba(35,180,255,.16) inset,0 10px 22px rgba(0,0,0,.16);transform:translateY(-1px);}
.hero-portals__label{font-size:12px;font-weight:800;letter-spacing:.065em;line-height:1;text-transform:uppercase;white-space:nowrap;}
.hero-portals__icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;color:#24b6ff;opacity:.95;}
.hero-portals__icon svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
@media (min-width:1367px){
  .hero-portals{position:absolute;left:50%;transform:translateX(-50%);width:min(1500px,92vw);margin:0;padding:0;min-height:42px;}
}
@media (min-width:641px) and (max-width:1366px){
  .hero-portals{width:min(1500px,96vw);margin:18px auto 0;padding:0 8px;min-height:42px;gap:10px;}
  .hero-portals a{padding:9px 16px;min-height:42px;}
  .hero-portals__label{font-size:12px;}
  .pulse-menu{margin-top:10px!important;}
}
@media (max-width:640px){
  .pulse-menu{position:fixed!important;top:10px!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;z-index:1000;}
  .hero-portals{margin:82px auto 0;padding:0 8px;justify-content:center;width:calc(100% - 16px);gap:8px;}
  .hero-portals a{min-width:0;white-space:normal;text-align:center;justify-content:center;flex:1 1 0;font-size:11px;padding:9px 8px;min-height:40px;border-radius:12px;gap:7px;}
  .hero-portals__label{font-size:10.5px;line-height:1.2;letter-spacing:.05em;}
  .hero-portals__icon,.hero-portals__icon svg{width:16px;height:16px;}
  .stage{padding-top:34px!important;}
}

/* V10 – new one-word navigation destination, restrained mobile header */
@media (min-width:1101px) {
  .pulse-menu__links { gap:clamp(12px,1.7vw,30px); }
  .pulse-menu__links a { font-size:clamp(12px,.85vw,14px); }
}
@media (max-width:1100px) {
  /* The project buttons are available through the Portály section in mobile menu. */
  .hero-portals { display:none !important; }
  .pulse-menu {position:fixed !important;top:10px !important;left:50% !important;transform:translateX(-50%) !important;margin:0 !important;z-index:1000 !important;}
  .pulse-mobile-menu__panel {max-height:min(70vh,470px);overflow-y:auto;}
  .stage {padding-top:115px !important;}
}
@media (max-width:640px) {
  .pulse-menu {width:calc(100% - 16px) !important; min-height:62px !important;}
  .pulse-mobile-menu {z-index:1001;}
  .pulse-mobile-menu__panel {min-width:min(290px,calc(100vw - 32px));}
  .stage {padding-top:115px !important;}
}
#portaly { scroll-margin-top:90px; }

/* V11: two-line Projektová platforma navigation item */
.pulse-menu__links .pulse-nav-platform{
  display:inline-flex!important;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:1px;
  line-height:1.08;
  text-align:center;
  white-space:nowrap;
  min-height:46px;
}
.pulse-nav-platform span{display:block;}
@media (min-width:1101px){
  .pulse-menu__links{gap:clamp(9px,1.25vw,23px)!important;}
  .pulse-menu__links .pulse-nav-platform{font-size:clamp(10px,.78vw,13px)!important;letter-spacing:.005em;}
}
@media (max-width:1100px){
  .pulse-mobile-menu__panel .pulse-nav-platform{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    line-height:1.15;
    text-align:left;
  }
}

/* V12 — disciplined typography and spacing in the top navigation. */
@media (min-width:1101px) {
  .pulse-menu__links {
    gap:clamp(14px,1.4vw,28px)!important;
    align-items:center!important;
    justify-content:flex-end!important;
    padding:12px 10px!important;
  }
  .pulse-menu__links > a:not(.pulse-nav-platform),
  .pulse-menu__links > .pulse-nav-contact > a:first-child {
    font-size:clamp(12px,.82vw,14px)!important;
    font-weight:800!important;
    line-height:1.2!important;
    letter-spacing:.01em!important;
  }
  .pulse-menu__links > a.pulse-nav-platform {
    display:inline-flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:1px!important;
    min-height:46px!important;
    padding:0 4px!important;
    font-size:clamp(10px,.68vw,12px)!important;
    font-weight:750!important;
    line-height:1.12!important;
    letter-spacing:.025em!important;
    text-align:center!important;
    color:#dcebf5!important;
    opacity:.91;
  }
  .pulse-menu__links > a.pulse-nav-platform:hover {color:#10bdf7!important;opacity:1;}
  .pulse-menu__links > a.pulse-nav-platform span {display:block!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;white-space:nowrap!important;}
  .pulse-menu__links > .pulse-nav-contact {
    align-self:center!important;
    position:relative!important;
    flex:0 0 auto!important;
    min-height:46px!important;
    height:46px!important;
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
  }
  .pulse-menu__links > .pulse-nav-contact > a.pulse-nav-billing {
    position:absolute!important;
    top:43px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    display:block!important;
    width:max-content!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    font-size:10px!important;
    line-height:1.25!important;
    font-weight:500!important;
    letter-spacing:.01em!important;
    text-transform:none!important;
    white-space:nowrap!important;
    color:#adbfce!important;
    opacity:.78;
    text-shadow:none!important;
  }
  .pulse-menu__links > .pulse-nav-contact > a.pulse-nav-billing:hover {color:#38bdf8!important;opacity:1;}
}
@media (min-width:1101px) and (max-width:1290px) {
  .pulse-menu__logo {flex-basis:38%!important;}
  .pulse-menu__links {gap:clamp(9px,.9vw,15px)!important;}
}
@media (max-width:1100px) {
  .pulse-mobile-menu__panel a.pulse-nav-platform {display:block!important;text-align:left!important;line-height:1.45!important;}
  .pulse-mobile-menu__panel a.pulse-nav-platform span {display:inline!important;font-size:inherit!important;}
  .pulse-mobile-menu__panel a.pulse-nav-platform span + span::before {content:' ';white-space:pre;}
  .pulse-mobile-menu__panel .pulse-nav-billing {font-size:11px!important;font-weight:500!important;text-transform:none!important;opacity:.7!important;}
}

/* V15 – rollback of V14; keep logo, stage and menu layout unchanged.
   Only place the two small portal buttons relative to the actual desktop menu. */
@media(min-width:1101px){
  .hero-portals{
    position:absolute!important;
    left:0;top:0;
    transform:none!important;
    margin:0!important;
    padding:0!important;
    width:max-content!important;
    min-height:0!important;
    display:flex!important;
    justify-content:flex-start!important;
    gap:10px!important;
    z-index:10!important;
  }
  .hero-portals a{min-height:40px!important;padding:8px 14px!important;border-radius:12px!important;}
  .hero-portals__label{font-size:11.5px!important;letter-spacing:.045em!important;}
  .hero-portals__icon,.hero-portals__icon svg{width:16px!important;height:16px!important;}
}
@media(max-width:1100px){.hero-portals{display:none!important;}}

/* V16: highlight the entire right-side desktop navigation, not individual links. */
@media(min-width:1101px){
  .pulse-menu__links{
    background:linear-gradient(90deg,rgba(25,34,48,.08) 0%,rgba(44,51,64,.68) 12%,rgba(44,51,64,.72) 87%,rgba(25,34,48,.08) 100%)!important;
    border-radius:9px!important;
    box-shadow:0 1px 0 rgba(255,255,255,.06) inset!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
    padding:14px 16px 20px!important;
  }
  .stage h1{transform:translateY(var(--tp-v16-title-shift,0px))!important;}
}
@media(max-width:1100px){
  .pulse-mobile-menu__panel{background:rgba(28,37,51,.96)!important;}
  .stage h1{transform:none!important;}
}


/* V17: finer optical centering of the hero title between desktop nav and service icons. */
@media(min-width:1101px){
  .stage h1{margin-top:0!important;margin-bottom:0!important;}
}

/* V18 — balanced bilateral feathering of the blurred navigation strip.
   Keeps the text fully opaque: fade applies only to the translucent backdrop. */
@media (min-width:1101px) {
  .pulse-menu__links {
    position:relative!important;
    isolation:isolate;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .pulse-menu__links::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:rgba(43,50,62,.70);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    -webkit-mask-image:linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image:linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  }
}

/* V19 — FIX: only a narrow strip behind actual menu links, not a huge panel. */
@media (min-width:1101px) {
 .pulse-menu__links{
   position:relative!important; isolation:isolate!important;
   background:transparent!important; box-shadow:none!important;
   backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
 }
 .pulse-menu__links::before{
   content:""; position:absolute;
   top:50%!important; bottom:auto!important; left:-28px!important; right:-28px!important;
   height:58px!important; min-height:0!important; max-height:58px!important;
   transform:translateY(-50%)!important; border-radius:0!important;
   background:linear-gradient(90deg,rgba(38,45,57,0) 0%,rgba(38,45,57,.48) 17%,rgba(38,45,57,.48) 83%,rgba(38,45,57,0) 100%)!important;
   -webkit-mask-image:linear-gradient(90deg,transparent,black 17%,black 83%,transparent)!important;
   mask-image:linear-gradient(90deg,transparent,black 17%,black 83%,transparent)!important;
   backdrop-filter:blur(8px)!important; -webkit-backdrop-filter:blur(8px)!important;
   box-shadow:none!important; pointer-events:none!important; z-index:-1!important;
 }
}


/* V20 — menu backdrop only under the actual navigation buttons (DOMOV ... KONTAKT). */
@media (min-width:1101px) {
  .pulse-menu__links{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    margin-left:auto!important;
    justify-content:flex-start!important;
  }
  .pulse-menu__links::before{
    left:-18px!important;
    right:-18px!important;
    height:56px!important;
    max-height:56px!important;
    background:linear-gradient(90deg,rgba(38,45,57,0) 0%,rgba(38,45,57,.50) 15%,rgba(38,45,57,.50) 85%,rgba(38,45,57,0) 100%)!important;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,black 14%,black 86%,transparent 100%)!important;
    mask-image:linear-gradient(90deg,transparent 0%,black 14%,black 86%,transparent 100%)!important;
  }
}

/* V21: remove every old oversized background effect from the flex link container.
   The only backdrop is a separate measured, absolutely positioned element. */
@media(min-width:1101px){
 .pulse-menu__links{background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:auto!important;position:relative!important;z-index:3!important;}
 .pulse-menu__links::before,.pulse-menu__links::after{content:none!important;display:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
 .pulse-menu__logo{position:relative!important;z-index:3!important;}
 .tp-nav-backdrop{position:absolute;display:block;z-index:1;pointer-events:none;left:0;top:0;width:0;height:64px;border-radius:0;background:linear-gradient(90deg,rgba(43,51,64,0) 0%,rgba(43,51,64,.58) 14%,rgba(43,51,64,.58) 86%,rgba(43,51,64,0) 100%);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 16%,#000 84%,transparent 100%);}
}
@media(max-width:1100px){.tp-nav-backdrop{display:none!important;}}


/* V22: fade starts only outside the first and last menu labels. */
@media(min-width:1101px){
  .tp-nav-backdrop{
    height:64px!important;
    --tp-fade-edge:46px;
    background:linear-gradient(90deg,
      rgba(43,51,64,0) 0px,
      rgba(43,51,64,.58) var(--tp-fade-edge),
      rgba(43,51,64,.58) calc(100% - var(--tp-fade-edge)),
      rgba(43,51,64,0) 100%)!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
  }
}

/* V23: identical fade-out past KONTAKT and fade-in before DOMOV.
   Width is measured in JS; neither edge is clipped to the menu container. */
@media (min-width:1101px) {
 .pulse-menu { overflow:visible!important; }
 .tp-nav-backdrop {
   --tp-feather: 60px;
   background:linear-gradient(to right,
      rgba(43,51,64,0) 0,
      rgba(43,51,64,.56) var(--tp-feather),
      rgba(43,51,64,.56) calc(100% - var(--tp-feather)),
      rgba(43,51,64,0) 100%)!important;
   -webkit-mask-image:none!important;mask-image:none!important;
   pointer-events:none!important;
 }
}

/* V24: symmetrical soft fades wholly outside DOMOV and KONTAKT labels. */
@media(min-width:1101px){
  .tp-nav-backdrop {
    --tp-feather: 44px;
    height:64px!important;
    background:linear-gradient(to right,
      rgba(43,51,64,0) 0px,
      rgba(43,51,64,.56) var(--tp-feather),
      rgba(43,51,64,.56) calc(100% - var(--tp-feather)),
      rgba(43,51,64,0) 100%)!important;
    -webkit-mask-image:none!important;
    mask-image:none!important;
  }
}

/* V25: explicitly measured 46px edge fades, outside ALL labels. */
@media(min-width:1101px){
 .tp-nav-backdrop{
   height:60px!important;
   --tp-feather:46px;
   background:linear-gradient(to right,
     rgba(45,54,68,0) 0px,
     rgba(45,54,68,.65) 46px,
     rgba(45,54,68,.65) calc(100% - 46px),
     rgba(45,54,68,0) 100%)!important;
   mask-image:none!important;
   -webkit-mask-image:none!important;
   border-radius:0!important;
 }
}

/* V26: single visible, properly feathered backdrop. All labels remain on full opacity. */
@media (min-width:1101px) {
  .pulse-menu__links { background:transparent!important; box-shadow:none!important;
    backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  .pulse-menu__links::before,.pulse-menu__links::after {content:none!important;display:none!important;}
  .tp-nav-backdrop {
    position:absolute!important;
    display:block!important;
    z-index:1!important;
    pointer-events:none!important;
    height:62px!important;
    border-radius:0!important;
    /* Full-opacity gray and blur in center; symmetric opacity fade at ends */
    background:rgba(55,65,80,.77)!important;
    -webkit-backdrop-filter:blur(11px)!important;
    backdrop-filter:blur(11px)!important;
    -webkit-mask-image:linear-gradient(to right,
      transparent 0px,black 78px,black calc(100% - 78px),transparent 100%)!important;
    mask-image:linear-gradient(to right,
      transparent 0px,black 78px,black calc(100% - 78px),transparent 100%)!important;
  }
}

/* V27: raise billing link directly below Kontakt, without altering navigation. */
@media (min-width:1101px){.pulse-menu__links > .pulse-nav-contact > a.pulse-nav-billing{top:34px!important;}}

/* V31 – reduce only the gap between the headline and service pictograms. */
@media (min-width:1101px) {
  .stage .services { margin-top:22px!important; }
}

/* V32: vertical positioning uses equal measured gaps between nav, headline and pictograms. */


/* V33 — smaller, more subtle project platform cards with same icons as top buttons. */
.pulse-portals{padding:58px 20px 72px!important;background:rgba(1,8,15,.58)!important;}
.pulse-portals__inner{width:min(980px,92vw)!important;}
.pulse-portals__eyebrow{font-size:11px!important;letter-spacing:.18em!important;opacity:.95;}
.pulse-portals h2{font-size:clamp(28px,3.8vw,42px)!important;margin:10px 0 12px!important;}
.pulse-portals__intro{font-size:15px!important;margin:0 0 24px!important;color:#b8c9d8!important;}
.pulse-portals__grid{grid-template-columns:repeat(2,minmax(0,380px))!important;justify-content:center!important;gap:16px!important;}
.pulse-portals__card{padding:18px 20px 16px!important;border-radius:18px!important;gap:10px!important;background:rgba(2,14,26,.48)!important;border:1px solid rgba(56,189,248,.22)!important;min-height:0!important;}
.pulse-portals__card strong{font-size:18px!important;line-height:1.25!important;}
.pulse-portals__card>span:not(.pulse-portals__icon){font-size:14px!important;line-height:1.45!important;color:#b8c9d8!important;}
.pulse-portals__card em{font-size:13.5px!important;font-weight:700!important;line-height:1.3!important;}
.pulse-portals__icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;color:#24b6ff!important;font-size:0!important;opacity:.98;}
.pulse-portals__icon svg{width:24px!important;height:24px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.pulse-portals__card:hover{border-color:rgba(56,189,248,.42)!important;background:rgba(8,35,56,.58)!important;}
@media (max-width: 900px){
  .pulse-portals__grid{grid-template-columns:1fr!important;max-width:520px;margin:0 auto!important;}
}
@media (max-width: 640px){
  .pulse-portals{padding:46px 14px 56px!important;}
  .pulse-portals h2{font-size:clamp(25px,7.4vw,34px)!important;}
  .pulse-portals__intro{font-size:14px!important;margin-bottom:20px!important;}
  .pulse-portals__card{padding:16px 16px 14px!important;border-radius:16px!important;gap:9px!important;}
  .pulse-portals__card strong{font-size:17px!important;}
}
