/* ==========================================================
   MP FULL SERVICE — REALIZACIE
   MASTER REFERENCE DESIGN
   ========================================================== */

#realizacie{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 52%,rgba(230,28,36,.075),transparent 25%),
    radial-gradient(circle at 78% 75%,rgba(230,28,36,.035),transparent 24%),
    linear-gradient(135deg,#0b0e10 0%,#090b0d 48%,#07090a 100%);
}

#realizacie::before{
  content:"REALIZÁCIE";
  position:absolute;
  z-index:0;
  top:92px;
  right:3%;
  color:rgba(255,255,255,.025);
  font-size:clamp(80px,10vw,165px);
  line-height:.8;
  font-weight:950;
  letter-spacing:-.06em;
  pointer-events:none;
  white-space:nowrap;
}

#realizacie::after{
  content:"";
  position:absolute;
  left:-160px;
  bottom:80px;
  width:520px;
  height:520px;
  border-radius:50%;
  background:rgba(230,28,36,.07);
  filter:blur(110px);
  pointer-events:none;
}

#realizacie .container{
  position:relative;
  z-index:2;
}


/* ==========================================================
   HEADER
   ========================================================== */

#realizacie .section-head{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:70px;
  align-items:end;
  padding-bottom:26px;
  border:0;
}

#realizacie .section-head::after{
  content:"KVALITA, KTORÁ JE VIDIEŤ.";
  position:absolute;
  top:5px;
  right:0;
  padding-left:145px;
  color:#7f858b;
  font-size:11px;
  font-weight:800;
  letter-spacing:.22em;
  white-space:nowrap;
}

#realizacie .section-head::before{
  content:"";
  position:absolute;
  top:10px;
  right:220px;
  width:115px;
  height:4px;
  border-radius:99px;
  background:#ed1c24;
  box-shadow:0 0 18px rgba(237,28,36,.22);
}

#realizacie .section-head .eyebrow{
  margin-bottom:10px;
  color:#ed252d;
  font-size:11px;
  font-weight:900;
  letter-spacing:.24em;
}

#realizacie .section-head h2{
  margin:0;
  color:#fff;
  font-size:clamp(48px,5vw,72px);
  line-height:.95;
  font-weight:950;
  letter-spacing:-.045em;
  text-transform:none;
}

#realizacie .section-head > p{
  max-width:620px;
  margin:0;
  padding-top:42px;
  color:#a6abb0;
  font-size:16px;
  line-height:1.55;
}


/* ==========================================================
   FILTERS
   ========================================================== */

#realizacie .project-gallery-v2{
  margin-top:4px;
}

#realizacie .project-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 28px;
}

#realizacie .project-filter{
  appearance:none;
  min-height:48px;
  padding:0 27px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent),
    rgba(11,13,15,.78);
  color:#b9bdc1;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

#realizacie .project-filter:hover{
  transform:translateY(-1px);
  color:#fff;
  border-color:rgba(237,28,36,.48);
}

#realizacie .project-filter.active{
  color:#fff;
  border-color:#ed1c24;
  background:#ed1c24;
  box-shadow:
    0 0 28px rgba(237,28,36,.34),
    0 10px 30px rgba(0,0,0,.30);
}


/* ==========================================================
   THREE-CARD SHOWCASE
   ========================================================== */

#dynamicGallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

#dynamicGallery .project-card-v2{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  min-height:510px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:20px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.025),transparent 36%),
    #101315;
  color:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 22px 55px rgba(0,0,0,.25);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

#dynamicGallery .project-card-v2:hover{
  transform:translateY(-5px);
  border-color:rgba(237,28,36,.40);
  box-shadow:0 30px 70px rgba(0,0,0,.38);
}


/* ==========================================================
   FEATURED MUSTANG
   ========================================================== */

#dynamicGallery .project-card-v2.is-featured{
  border:2px solid #ed1c24;
  background:
    radial-gradient(circle at 50% 80%,rgba(237,28,36,.16),transparent 46%),
    linear-gradient(145deg,#171315,#0b0d0f 72%);
  box-shadow:
    0 0 0 1px rgba(237,28,36,.13),
    0 0 26px rgba(237,28,36,.30),
    0 24px 65px rgba(0,0,0,.44);
}

#dynamicGallery .project-card-v2.is-featured::after{
  content:"";
  position:absolute;
  z-index:0;
  left:8%;
  right:8%;
  bottom:-35px;
  height:100px;
  border-radius:50%;
  background:rgba(237,28,36,.32);
  filter:blur(50px);
  pointer-events:none;
}

#dynamicGallery .project-card-v2.is-featured > *{
  position:relative;
  z-index:1;
}


/* ==========================================================
   PROJECT IMAGES
   ========================================================== */

#dynamicGallery .project-card-media{
  position:relative;
  flex:0 0 auto;
  width:100%;
  height:245px;
  overflow:hidden;
  background:#080a0b;
}

#dynamicGallery .project-card-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
}

#dynamicGallery .project-card-v2:hover .project-card-media img{
  transform:scale(1.025);
}

#dynamicGallery .project-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top,rgba(4,5,6,.30),transparent 38%);
  pointer-events:none;
}


/* ==========================================================
   BADGES
   ========================================================== */

#dynamicGallery .project-featured{
  position:absolute;
  z-index:5;
  top:14px;
  left:14px;
  bottom:auto;
  right:auto;
  width:auto;
  height:auto;
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:#ed1c24;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    0 0 18px rgba(237,28,36,.24);
}

#dynamicGallery .project-featured::before{
  content:"☆";
  margin-right:7px;
  font-size:18px;
  line-height:0;
}

#dynamicGallery .project-photo-count{
  position:absolute;
  z-index:5;
  top:14px !important;
  right:14px !important;
  bottom:auto !important;
  left:auto !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(7,9,10,.84);
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 22px rgba(0,0,0,.30);
}


/* ==========================================================
   PROJECT CONTENT
   ========================================================== */

#dynamicGallery .project-card-info-v2{
  position:relative;
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:stretch;
  padding:20px 24px 22px;
}

#dynamicGallery .project-category{
  display:block;
  margin:0 0 7px;
  color:#ed2931;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#dynamicGallery .project-card-title,
#dynamicGallery .project-card-info-v2 > strong{
  display:block;
  margin:0;
  color:#fff;
  font-size:24px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.035em;
}

#dynamicGallery .project-card-info-v2 > p{
  margin:9px 0 0;
  color:#b0b4b8;
  font-size:14px;
  line-height:1.55;
}

#dynamicGallery .project-more{
  position:relative;
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  margin-top:auto;
  padding-top:24px;
  padding-bottom:9px;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

#dynamicGallery .project-more::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:34px;
  height:3px;
  border-radius:99px;
  background:#ed1c24;
  box-shadow:0 0 10px rgba(237,28,36,.25);
}


/* ==========================================================
   FEATURED CTA
   ========================================================== */

#dynamicGallery .featured-project-cta{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:14px;
  align-items:center;
  margin-top:auto;
  padding:15px 16px 14px;
  border:1px solid rgba(237,28,36,.72);
  border-radius:15px;
  background:
    linear-gradient(110deg,rgba(237,28,36,.18),rgba(237,28,36,.05) 65%),
    rgba(16,8,10,.82);
  box-shadow:
    inset 0 0 24px rgba(237,28,36,.06),
    0 0 20px rgba(237,28,36,.08);
}

#dynamicGallery .featured-project-cta-icon{
  display:flex;
  width:54px;
  height:54px;
  align-items:center;
  justify-content:center;
  grid-row:1 / span 2;
  color:#fff;
  border:0;
  border-radius:12px;
  background:transparent;
  filter:drop-shadow(0 0 7px rgba(237,28,36,.75));
}

#dynamicGallery .featured-project-cta-copy{
  display:block;
  min-width:0;
}

#dynamicGallery .featured-project-cta-copy strong{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
}

#dynamicGallery .featured-project-cta-copy small{
  display:block;
  margin-top:4px;
  color:#c0c3c6;
  font-size:11px;
  line-height:1.35;
}

#dynamicGallery .featured-project-cta-button{
  display:inline-flex;
  width:max-content;
  min-height:39px;
  align-items:center;
  justify-content:center;
  margin-top:9px;
  padding:0 17px;
  border:1px solid #ed1c24;
  border-radius:999px;
  background:#ed1c24;
  color:#fff;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  box-shadow:
    0 0 22px rgba(237,28,36,.35),
    0 8px 20px rgba(0,0,0,.20);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:1000px){

  #realizacie .section-head{
    grid-template-columns:1fr;
    gap:10px;
  }

  #realizacie .section-head::before,
  #realizacie .section-head::after{
    display:none;
  }

  #realizacie .section-head > p{
    max-width:650px;
    padding-top:0;
  }

  #dynamicGallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #dynamicGallery .project-card-v2.is-featured{
    grid-column:1 / -1;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:650px){

  #realizacie::before{
    display:none;
  }

  #realizacie .section-head h2{
    font-size:46px;
  }

  #realizacie .section-head > p{
    font-size:14px;
  }

  #realizacie .project-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:7px;
    scrollbar-width:none;
  }

  #realizacie .project-filters::-webkit-scrollbar{
    display:none;
  }

  #realizacie .project-filter{
    flex:0 0 auto;
    min-height:43px;
    padding:0 20px;
    font-size:12px;
  }

  #dynamicGallery{
    grid-template-columns:1fr;
    gap:16px;
  }

  #dynamicGallery .project-card-v2,
  #dynamicGallery .project-card-v2.is-featured{
    grid-column:auto;
    min-height:0;
  }

  #dynamicGallery .project-card-media{
    height:220px;
  }

  #dynamicGallery .project-card-info-v2{
    padding:18px;
  }

  #dynamicGallery .project-card-title,
  #dynamicGallery .project-card-info-v2 > strong{
    font-size:22px;
  }

  #dynamicGallery .featured-project-cta{
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
    padding:13px;
  }

  #dynamicGallery .featured-project-cta-icon{
    width:44px;
    height:44px;
  }

  #dynamicGallery .featured-project-cta-button{
    grid-column:1 / -1;
    width:100%;
  }
}

/* ==========================================================
   BENEFITS / CONTACT STRIP
   ========================================================== */

#realizacie .realizacie-benefits{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1.65fr;
  align-items:center;
  margin-top:32px;
  padding:24px 28px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.025),transparent 45%),
    rgba(14,17,19,.88);
  box-shadow:
    inset 0 1px rgba(255,255,255,.025),
    0 20px 55px rgba(0,0,0,.24);
}

#realizacie .realizacie-benefit{
  display:flex;
  min-width:0;
  align-items:center;
  gap:14px;
  padding:3px 22px;
  border-right:1px solid rgba(255,255,255,.10);
}

#realizacie .realizacie-benefit:first-child{
  padding-left:4px;
}

#realizacie .realizacie-benefit:last-child{
  padding-right:0;
  border-right:0;
}

#realizacie .realizacie-benefit-icon{
  display:flex;
  flex:0 0 42px;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  color:#ed1c24;
  filter:drop-shadow(0 0 8px rgba(237,28,36,.20));
}

#realizacie .realizacie-benefit-icon svg{
  display:block;
  width:36px;
  height:36px;
}

#realizacie .realizacie-benefit strong{
  display:block;
  color:#fff;
  font-size:12px;
  line-height:1.25;
  font-weight:900;
}

#realizacie .realizacie-benefit small{
  display:block;
  margin-top:4px;
  color:#858b90;
  font-size:10px;
  line-height:1.3;
}

#realizacie .realizacie-benefit-contact{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:14px;
}

#realizacie .realizacie-contact-button{
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 25px;
  border-radius:999px;
  background:#ed1c24;
  color:#fff;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:
    0 0 28px rgba(237,28,36,.32),
    0 10px 25px rgba(0,0,0,.22);
  transition:transform .2s ease, background .2s ease;
}

#realizacie .realizacie-contact-button:hover{
  transform:translateY(-2px);
  background:#ff2830;
}

@media(max-width:1000px){
  #realizacie .realizacie-benefits{
    grid-template-columns:1fr 1fr;
    gap:22px 0;
  }

  #realizacie .realizacie-benefit:nth-child(2){
    border-right:0;
  }

  #realizacie .realizacie-benefit-contact{
    border-right:0;
  }
}

@media(max-width:650px){
  #realizacie .realizacie-benefits{
    grid-template-columns:1fr;
    padding:18px;
  }

  #realizacie .realizacie-benefit{
    padding:12px 0;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  #realizacie .realizacie-benefit:last-child{
    border-bottom:0;
  }

  #realizacie .realizacie-benefit-contact{
    grid-template-columns:42px minmax(0,1fr);
  }

  #realizacie .realizacie-contact-button{
    grid-column:1 / -1;
    width:100%;
  }
}

/* Referenčný dizajn: videá nie sú súčasťou showcase */
#realizacie .video-grid{
  display:none;
}

/* CTA — presná ikona z referenčného PNG */
#dynamicGallery .featured-project-cta-icon{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  background:transparent;
  filter:none;
}

#dynamicGallery .featured-project-cta-icon .cta-car-reference{
  display:block;
  width:52px;
  height:52px;
  object-fit:cover;
  border-radius:8px;
  mix-blend-mode:screen;
  filter:
    contrast(1.12)
    brightness(1.08)
    drop-shadow(0 0 7px rgba(237,28,36,.65));
}

/* ==========================================================
   FEATURED PROJECT — PRED / PO
   ========================================================== */

#dynamicGallery .project-card-v2 .project-before-after{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  width:100%;
  margin:14px 0 12px;
}

#dynamicGallery .project-card-v2 .project-compare-item{
  position:relative;
  height:92px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11px;
  background:#090b0c;
}

#dynamicGallery .project-card-v2 .project-compare-item img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

#dynamicGallery .project-card-v2 .project-compare-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.40),
    transparent 55%
  );
  pointer-events:none;
}

#dynamicGallery .project-card-v2 .project-compare-label{
  position:absolute;
  z-index:2;
  left:8px;
  bottom:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:24px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(7,9,10,.86);
  color:#fff;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

#dynamicGallery .project-card-v2.is-featured
.project-compare-item.is-after .project-compare-label{
  background:#ed1c24;
  box-shadow:0 0 12px rgba(237,28,36,.38);
}

@media(max-width:650px){
  #dynamicGallery .project-card-v2 .project-compare-item{
    height:105px;
  }
}


/* CTA CAR — CLEAN FINAL ASSET */
#dynamicGallery .featured-project-cta-icon{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  background:transparent;
  filter:none;
}

#dynamicGallery .featured-project-cta-icon .cta-car-reference{
  display:block;
  width:50px;
  height:auto;
  object-fit:contain;
  border-radius:0;
  mix-blend-mode:normal;
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,.20))
    drop-shadow(0 0 9px rgba(237,28,36,.75));
}

/* CTA CAR — remove rectangular raster glow */
#dynamicGallery .featured-project-cta-icon{
  position:relative;
  background:transparent !important;
  filter:none !important;
}

#dynamicGallery .featured-project-cta-icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:38px;
  height:38px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:rgba(237,28,36,.32);
  filter:blur(12px);
  pointer-events:none;
}

#dynamicGallery .featured-project-cta-icon .cta-car-reference{
  position:relative;
  z-index:1;
  width:50px;
  height:auto;
  border-radius:0 !important;
  background:transparent !important;
  mix-blend-mode:normal !important;
  filter:none !important;
  box-shadow:none !important;
}

/* CTA CAR — FINAL VECTOR */
#dynamicGallery .featured-project-cta-icon::before{
  display:none !important;
}

#dynamicGallery .featured-project-cta-icon{
  width:58px !important;
  height:58px !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
}

#dynamicGallery .featured-project-cta-icon .cta-car-reference{
  display:block !important;
  width:48px !important;
  height:40px !important;
  color:#fff !important;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,.18))
    drop-shadow(0 0 8px rgba(237,28,36,.85)) !important;
}

/* ==========================================================
   STANDARD PROJECT — EXTRA PHOTOS
   Iba pre realizácie, ktoré NIE SÚ featured
   ========================================================== */

#dynamicGallery .project-card-v2:not(.is-featured) .project-extra-gallery{
  width:100%;
  margin-top:18px;
}

#dynamicGallery .project-card-v2:not(.is-featured) .project-extra-label{
  display:block;
  margin-bottom:9px;
  color:rgba(255,255,255,.58);
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#dynamicGallery .project-card-v2:not(.is-featured) .project-extra-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  width:100%;
}

#dynamicGallery .project-card-v2:not(.is-featured) .project-extra-item{
  position:relative;
  height:92px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:#090b0c;
}

#dynamicGallery .project-card-v2:not(.is-featured) .project-extra-item img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

#dynamicGallery .project-card-v2:not(.is-featured):hover .project-extra-item img{
  transform:scale(1.035);
}

@media(max-width:650px){
  #dynamicGallery .project-card-v2:not(.is-featured) .project-extra-item{
    height:82px;
  }
}
