:root{
  --navy: #0b2a43;
  --green: #2e8b2d;
  --text: #13212b;
  --muted: #5f6e79;
  --bg: #f4f7f9;
  --border: #dbe4ea;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(11,42,67,0.08);
}

:root {
  --g-navy: #0b2a43;
  --g-navy-light: #1a3d5c;
  --g-green: #2e8b2d;
  --g-green-glow: #3aaf39;
  --g-bg: #eef2f5;
  --g-card: #ffffff;
  --g-border: #d6dce3;
  --g-text: #0b2a43;
  --g-text-muted: #5e7287;
  --g-radius: 1rem;
  --g-shadow: 0 8px 24px rgba(11, 42, 67, 0.08);
}

.gallery-section {
  padding: 4rem 1rem;
  background: var(--g-bg);
  font-family: 'DM Sans', system-ui, sans-serif;
}

.gallery-container {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--g-navy);
  margin: 0 0 0.5rem;
}

.gallery-subtitle {
  color: var(--g-text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* === Carousel === */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--g-radius);
  overflow: hidden;
  background: var(--g-card);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  cursor: pointer;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.carousel-image.fade-out {
  opacity: 0;
  transform: scale(1.03);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(11, 42, 67, 0.7), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--g-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 2;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carousel-btn-left { left: 0.75rem; }
.carousel-btn-right { right: 0.75rem; }

/* Dots */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.carousel-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: none;
  background: var(--g-border);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--g-green);
  width: 1.75rem;
}

/* Thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.carousel-thumb {
  width: 4rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
}

.carousel-thumb.active {
  border-color: var(--g-green);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(46, 139, 45, 0.25);
}

.carousel-thumb:hover {
  opacity: 1;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 42, 67, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-height: 82vh;
  max-width: 90vw;
  border-radius: var(--g-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: var(--g-card);
  color: var(--g-navy);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: rgba(255,255,255,0.9);
  color: var(--g-navy);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn-left { left: 1rem; }
.lightbox-btn-right { right: 1rem; }
*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
}

.container{
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,247,249,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(219,228,234,0.9);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  position: relative;
}

.header-bg-logo{
  position: absolute;
  top: 400%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 55vw);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.logo{
  height: 74px;
  width: auto;
}

.nav{
  position: relative;
  z-index: 1;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a{
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
}

.nav a:not(.btn):hover{
  color: var(--green);
}

/* =========================================================
   BUTTONS / CARD
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 24px rgba(46,139,45,0.22);
}

.btn:hover{
  background: #267c27;
  transform: translateY(-1px);
}

.btn--ghost{
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
  box-shadow: none;
}

.btn--small{
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* =========================================================
   HERO
========================================================= */
.hero{
  padding: 48px 0 22px;
  background:
    radial-gradient(700px 420px at 10% 0%, rgba(11,42,67,0.10), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(46,139,45,0.10), transparent 55%);
}

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.hero-copy{
  min-width: 0;
}

.pill{
  display: inline-block;
  padding: 6px 10px;
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero h1{
  margin: 0 0 12px;
  line-height: 1.05;
  font-size: clamp(28px, 5vw, 54px);
  color: var(--navy);
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-metrics{
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.metric{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.metric-number{
  font-weight: 1000;
  color: var(--navy);
}

.metric-label{
  color: var(--muted);
  font-size: 14px;
}

.bank-banner{
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-card h2{
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
}

.hero-note{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   SPLOŠNE SEKCIJE
========================================================= */
.section{
  padding: 48px 0;
}

.section--alt{
  background: #fff;
}

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

.section-head h2{
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 28px;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.muted{
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   CHECKLIST / BULLETS
========================================================= */
.checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checklist li{
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.checklist li::before{
  content: "-";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.mini-list{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.mini-list li{
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.mini-list li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

/* =========================================================
   STORITVE
========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card h3{
  margin: 0 0 8px;
}

.text-link{
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover{
  text-decoration: underline;
}

.services-cta{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================================================
   PROCES
========================================================= */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step{
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.step-body h3{
  margin: 0 0 6px;
  color: var(--navy);
}

.step-body p{
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   GALERIJA
========================================================= */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin-inline: auto;
}

.gallery-item{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform .25s ease;
  cursor: pointer;
}

.gallery-item:hover img{
  transform: scale(1.04);
}

.gallery-item figcaption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(11,42,67,0.75), rgba(11,42,67,0));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  pointer-events: none;
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{
  display: block;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,42,67,0.65);
}

.lightbox-dialog{
  position: relative;
  width: min(100% - 24px, 980px);
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}

.lightbox-figure{
  margin: 0;
  padding: 14px;
}

.lightbox-img{
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev{
  left: 12px;
}

.lightbox-next{
  right: 12px;
}

/* =========================================================
   KONTAKT
========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.contact-card h3,
.form-card h3{
  margin-top: 0;
  color: var(--navy);
}

.contact-row{
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.contact-label{
  color: var(--muted);
  font-size: 14px;
}

.contact-value{
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.contact-value:hover{
  color: var(--green);
}

.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.field{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span{
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(46,139,45,0.7);
  box-shadow: 0 0 0 4px rgba(46,139,45,0.12);
}

.form-note{
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form-note.is-success{
  color: var(--green);
  font-weight: 800;
}

.form-note.is-error{
  color: #b42318;
  font-weight: 800;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  padding: 24px 0 40px;
  background: #fff;
}

.site-footer p{
  margin: 0;
}

/* =========================================================
   SERVICE MODALS
========================================================= */
.service-more-btn{
  margin-top: 6px;
}

.service-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}

.service-modal.is-open{
  display: block;
}

.service-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,42,67,0.72);
}

.service-modal-dialog{
  position: relative;
  width: min(100% - 24px, 1100px);
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 1;
}

.service-modal-dialog.service-modal-dialog--wide{
  width: min(100% - 24px, 1240px);
}

.service-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
}

.service-modal-body{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}

.service-modal-body--stack{
  display: block;
}

.service-modal-copy--full{
  max-width: 100%;
}

.service-modal-copy h2{
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
}

.service-modal-copy p{
  margin: 0 0 16px;
  color: var(--muted);
}

.service-modal-actions{
  margin-top: 18px;
}

.service-modal-gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.service-modal-gallery img{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}

.service-modal-gallery-komarnik{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.service-modal-gallery-komarnik img{
  height: 80%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 10 / 16;
  object-fit: contain;
  background: #fff;
}
/* =========================================================
   WINDOW PROFILES
========================================================= */
.window-profiles-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.window-profile-card{
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.window-profile-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11,42,67,0.12);
}

.window-profile-card-image{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  min-height: 190px;
}

.window-profile-card-image img{
  width: 100%;
  max-width: 180px;
  height: 150px;
  object-fit: contain;
}

.window-profile-card-body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.window-profile-card-body h3{
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
}

.window-profile-card-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.window-profile-card .mini-list{
  margin-top: 4px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px){
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-metrics{
    max-width: 100%;
  }

  .services-grid{
    grid-template-columns: 1fr;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .services-cta{
    flex-direction: column;
    align-items: flex-start;
  }

  .service-modal-body{
    grid-template-columns: 1fr;
  }

  .window-profile-card{
    grid-template-columns: 280px 1fr;
    gap: 18px;
  }

  .window-profile-card-image{
    min-height: 220px;
  }

  .window-profile-card-image img{
    height: 190px;
  }
}

@media (max-width: 768px){
  .container{
    width: min(100% - 24px, 1100px);
  }

  .site-header{
    padding: 10px 0;
  }

  .header-bg-logo{
    display: none;
  }

  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand{
    width: 100%;
  }

  .nav{
    width: 100%;
  }

  .nav-links{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .logo{
    height: 68px;
  }

  .section{
    padding: 40px 0;
  }

  .hero{
    padding: 40px 0 18px;
  }

  .lightbox-nav{
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 700px){
  .window-profile-card{
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

  .window-profile-card-image{
    min-height: 140px;
  }

  .window-profile-card-image img{
    max-width: 120px;
    height: 100px;
  }
}

@media (max-width: 600px){
  .gallery{
    grid-template-columns: 1fr;
  }

  .lightbox-dialog{
    margin: 18px auto;
  }

  .lightbox-prev,
  .lightbox-next{
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .lightbox-close{
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .service-modal{
    padding: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .service-modal-dialog,
  .service-modal-dialog.service-modal-dialog--wide{
    width: 100%;
    margin: 0;
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .service-modal-body{
    padding: 18px 16px 16px;
    max-height: calc(100dvh - 16px);
    gap: 16px;
  }

  .service-modal-body:not(.service-modal-body--stack){
    grid-template-columns: 1fr;
  }

  .service-modal-copy h2{
    font-size: 28px;
    line-height: 1.15;
    padding-right: 44px;
  }

  .service-modal-copy p,
  .service-modal-copy li,
  .window-profile-card-body p,
  .window-profile-card-body li{
    font-size: 15px;
    line-height: 1.55;
  }

  .service-modal-close{
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .service-modal-gallery img,
  .service-modal-gallery-komarnik img{
    aspect-ratio: auto;
    max-height: 42vh;
    height: auto;
    object-fit: contain;
  }

  .window-profile-card{
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .window-profile-card-image{
    min-height: 180px;
    padding: 16px;
  }

  .window-profile-card-image img{
    max-width: 160px;
    height: 140px;
  }

  .window-profile-card-body h3{
    font-size: 22px;
  }
}


@media (max-width: 380px){
  .service-modal{
    padding: 4px;
  }

  .service-modal-dialog,
  .service-modal-dialog.service-modal-dialog--wide{
    max-height: calc(100dvh - 8px);
    border-radius: 14px;
  }

  .service-modal-body{
    padding: 16px 14px 14px;
    max-height: calc(100dvh - 8px);
  }

  .service-modal-copy h2{
    font-size: 24px;
  }

  .window-profile-card-image{
    min-height: 160px;
  }

  .window-profile-card-image img{
    max-width: 140px;
    height: 120px;
  }
}



/* =========================================================
   OKNA MODAL - ROBUST MOBILE FIX
========================================================= */
.service-modal-body--okna{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-modal-hero{
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.service-modal-hero-media{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbfc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  min-height: 300px;
}

.service-modal-hero-media img{
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

@media (max-width: 900px){
  .service-modal-body--okna{
    gap: 18px;
  }

  .service-modal-hero{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-modal-hero-media{
    min-height: 220px;
  }
}

@media (max-width: 600px){
  #modalOkna{
    padding: 8px;
  }

  #modalOkna .service-modal-dialog,
  #modalOkna .service-modal-dialog.service-modal-dialog--wide{
    width: 100%;
    max-width: none;
    margin: 0;
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  #modalOkna .service-modal-body,
  #modalOkna .service-modal-body.service-modal-body--okna{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #modalOkna .service-modal-hero{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  #modalOkna .service-modal-hero-media{
    order: -1;
    min-height: 180px;
    padding: 14px;
  }

  #modalOkna .service-modal-hero-media img{
    width: 100%;
    max-width: 180px;
    max-height: 180px;
    margin: 0 auto;
  }

  #modalOkna .service-modal-copy,
  #modalOkna .service-modal-copy--hero,
  #modalOkna .service-modal-copy--full{
    width: 100%;
    max-width: 100%;
  }

  #modalOkna .service-modal-copy h2{
    font-size: 26px;
    line-height: 1.15;
  }

  #modalOkna .service-modal-copy p,
  #modalOkna .window-profile-card-body p,
  #modalOkna .window-profile-card-body li{
    font-size: 15px;
    line-height: 1.55;
  }

  #modalOkna .window-profiles-grid{
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }

  #modalOkna .window-profile-card{
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
  }

  #modalOkna .window-profile-card-image{
    min-height: 120px;
    padding: 12px;
  }

  #modalOkna .window-profile-card-image img{
    width: auto;
    max-width: 120px;
    height: auto;
    max-height: 100px;
  }

  #modalOkna .window-profile-card-body{
    gap: 10px;
  }

  #modalOkna .window-profile-card-body h3{
    font-size: 20px;
  }

  #modalOkna .service-modal-close{
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 380px){
  #modalOkna{
    padding: 4px;
  }

  #modalOkna .service-modal-dialog,
  #modalOkna .service-modal-dialog.service-modal-dialog--wide{
    max-height: calc(100dvh - 8px);
    border-radius: 16px;
  }

  #modalOkna .service-modal-body,
  #modalOkna .service-modal-body.service-modal-body--okna{
    padding: 12px;
    max-height: calc(100dvh - 8px);
  }

  #modalOkna .service-modal-hero-media img{
    max-width: 150px;
    max-height: 150px;
  }
}
