@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   Elipron v2 – Responsive layout refinements
   - Consistent from mobile to 4K (3840×2160)
   - Preserves existing mobile behaviour (v2.css handles the mobile grid)
   ========================================================= */

/* 1) Design tokens */
:root{
  --v2-max: 1200px;
  --v2-gutter: 16px;
  --v2-prose: 78ch;
  --v2-section-pad: clamp(18px, 2.2vw, 40px);
}

@media (min-width: 1200px){ :root{ --v2-max: 1320px; --v2-gutter: 22px; } }
@media (min-width: 1600px){ :root{ --v2-max: 1560px; --v2-gutter: 30px; } }
@media (min-width: 2000px){ :root{ --v2-max: 1760px; --v2-gutter: 40px; } }
@media (min-width: 2400px){ :root{ --v2-max: 2000px; --v2-gutter: 52px; } }
@media (min-width: 3200px){ :root{ --v2-max: 2200px; --v2-gutter: 64px; } }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(16px, calc(0.30vw + 14px), 21px);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, video, iframe{ max-width: 100%; height: auto; }

/* 2) Shared layout containers
   Keep header full width, but cap content sections for comfortable reading.
*/
body.v2 .container,
body.v2 #sequence,
body.v2 .v2-subtitle-container,
body.v2 .v2-services-container,
body.v2 .v2-site-footer-inner,
body.v2 .bodySection-centered{
  width: min(calc(100vw - (2 * var(--v2-gutter))), var(--v2-max)) !important;
  max-width: min(calc(100vw - (2 * var(--v2-gutter))), var(--v2-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* 3) Header: full width + consistent controls */
body.v2 .v2-header-inner.container{
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 3vw, 72px) !important;
  padding-right: clamp(16px, 3vw, 72px) !important;
  box-sizing: border-box;
}

body.v2 .v2-brand-row{
  min-height: clamp(92px, 6vw, 156px) !important;
  gap: clamp(12px, 2.6vw, 56px) !important;
}

body.v2 .v2-brand img.v2-elipron{ width: clamp(150px, 18vw, 420px) !important; }
body.v2 .v2-vavcer{ width: clamp(150px, 18vw, 420px) !important; height: auto !important; }

body.v2 .v2-nav-row{
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

/* Re-order the controls so the language toggle always sits on the far right */
body.v2 .v2-nav{ order: 1; flex: 1 1 auto !important; min-width: 0; }
body.v2 .v2-nav-toggle{ order: 2; }
body.v2 #lang-toggle{
  order: 3;
  margin-left: auto;
  position: static !important;
  z-index: auto !important;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(106,167,255,.95), rgba(139,240,210,.85));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  padding: clamp(8px, 0.35vw + 6px, 12px) clamp(12px, 0.5vw + 10px, 18px);
  font-size: clamp(13px, 0.20vw + 12px, 17px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

body.v2 #lang-toggle:hover{ filter: brightness(1.03); transform: translateY(-1px); }

/* Navigation: avoid "space-between" gaps on ultra-wide */
body.v2 .v2-nav-list{
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(8px, 1vw, 14px) !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.v2 .v2-nav-list > li > a{
  display: inline-block;
  font-size: clamp(14px, 0.22vw + 12px, 18px) !important;
  padding: clamp(8px, 0.35vw + 6px, 14px) clamp(10px, 0.45vw + 8px, 18px) !important;
  border-radius: clamp(10px, 0.5vw + 8px, 18px) !important;
}

@media (min-width: 900px){
  body.v2 .v2-nav-list{
    flex-wrap: nowrap !important;
    /* IMPORTANT: keep dropdown menus visible (overflow hidden clips them) */
    overflow: visible !important;
  }
}

/* Ensure dropdown menus are never clipped by parent containers */
body.v2 .v2-nav-row,
body.v2 .v2-nav,
body.v2 .v2-nav-list{overflow: visible !important;}

/* On small screens the menu becomes a vertical list (keep the classic alignment) */
@media (max-width: 980px){
  body.v2 .v2-nav-list{justify-content: flex-start !important;}
}

/* 4) Content sections */
body.v2 .bodySection-centered{
  padding-top: 0 !important;
  padding-bottom: var(--v2-section-pad);
}

body.v2 .well.well-small{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(18px, 2vw, 32px) !important;
  background: rgba(15,26,51,.75);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border-radius: clamp(12px, 1.1vw, 18px);
  box-sizing: border-box;
}

/* Keep text readable even when the card gets wider */
body.v2 .well.well-small > h1,
body.v2 .well.well-small > h2,
body.v2 .well.well-small > h3,
body.v2 .well.well-small > h4,
body.v2 .well.well-small > p,
body.v2 .well.well-small > ul,
body.v2 .well.well-small > ol,
body.v2 .well.well-small > table,
body.v2 .well.well-small > div{
  max-width: var(--v2-prose);
  margin-left: auto;
  margin-right: auto;
}

body.v2 .well.well-small h3{
  margin: 0 0 14px 0;
  font-size: clamp(20px, 0.65vw + 18px, 30px);
  letter-spacing: 0.2px;
}

body.v2 .well.well-small p,
body.v2 .well.well-small li{
  font-size: clamp(14px, 0.22vw + 13px, 18px);
  line-height: 1.7;
}

body.v2 .well.well-small p{ margin: 0 0 0.95em 0; }
body.v2 .well.well-small p:last-child{ margin-bottom: 0; }

/* 5) Index hero (Sequence) readability on wide screens */
body.v2 #sequence .subtitle1{
  max-width: var(--v2-prose);
}

body.v2 #sequence .sequence-canvas{
  padding: clamp(16px, 1.6vw, 30px) clamp(14px, 1.4vw, 26px) !important;
}

@media (min-width: 1600px){
  body.v2 #sequence .sequence-canvas > li{ gap: clamp(22px, 2vw, 44px); }
}

/* Footer: allow wrapping nicely, especially on mobile */
body.v2 .v2-site-footer-inner{
  line-height: 1.8;
  padding: 14px 0;
}

@media (max-width: 640px){
  body.v2 .v2-site-footer-inner{ text-align: center; }
}

/* 6) Optional background pattern (pages with .bg-squares) */
body.v2.bg-squares{
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(106,167,255,.20), transparent 62%),
    radial-gradient(900px 540px at 85% 0%, rgba(139,240,210,.14), transparent 55%),
    repeating-linear-gradient(0deg, rgba(106,167,255,0.06) 0px, rgba(106,167,255,0.06) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(106,167,255,0.06) 0px, rgba(106,167,255,0.06) 1px, transparent 1px, transparent 60px),
    linear-gradient(180deg, #03040a 0%, var(--v2-bg) 45%, #02030a 100%) !important;
  background-attachment: fixed;
}



/* =========================================================
   Home hero
   Inspired by modern industrial/automation layouts (clean hero, clear CTA)
   ========================================================= */
body.v2 .v2-hero{
  padding: clamp(24px, 3vw, 64px) 0;
}
body.v2 .v2-hero-inner{
  width: min(calc(100vw - (2 * var(--v2-gutter))), var(--v2-max));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(16px, 2.4vw, 48px);
  align-items:center;
}
body.v2 .v2-hero-copy{
  background: linear-gradient(180deg, rgba(15,26,51,.70), rgba(11,18,36,.70));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: clamp(14px, 1.2vw, 22px);
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  padding: clamp(18px, 2.2vw, 36px);
}
body.v2 .v2-hero-title{
  margin:0 0 10px 0;
  font-size: clamp(26px, 1.6vw + 18px, 46px);
  line-height: 1.12;
  letter-spacing: .2px;
}
body.v2 .v2-hero-lead{
  margin:0 0 14px 0;
  color: rgba(232,238,252,.86);
  font-size: clamp(15px, 0.40vw + 14px, 20px);
  line-height: 1.6;
  max-width: 70ch;
}
body.v2 .v2-hero-bullets{
  margin:0 0 18px 0;
  padding-left: 18px;
  color: rgba(232,238,252,.82);
}
body.v2 .v2-hero-bullets li{ margin: 0 0 8px 0; }
body.v2 .v2-hero-cta{ display:flex; flex-wrap:wrap; gap: 12px; align-items:center; }

body.v2 .v2-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.14);
  text-decoration:none;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
body.v2 .v2-btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
body.v2 .v2-btn-primary{
  background: linear-gradient(135deg, rgba(106,167,255,.95), rgba(139,240,210,.85));
  color: #fff;
}
body.v2 .v2-btn-ghost{
  background: rgba(15,26,51,.55);
  color: rgba(232,238,252,.92);
}

body.v2 .v2-hero-media{
  /* Frame should hug the image (no forced min-height) and add a clean padding. */
  border-radius: clamp(14px, 1.2vw, 22px);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.36);
  position:relative;
  background: rgba(15,26,51,.40);
  padding: 20px;
}

body.v2 .v2-hero-image{
  width: 100%;
  height: auto;
  object-fit: contain;
  display:block;
  opacity: .95;
  transform: none;
}

@media (max-width: 900px){
  body.v2 .v2-hero-inner{ grid-template-columns: 1fr; }
  body.v2 .v2-hero-media{ order: -1; min-height: 220px; }
}

/* =========================================================
   Services section header
   ========================================================= */
body.v2 .v2-services-header{
  width: min(calc(100vw - (2 * var(--v2-gutter))), var(--v2-max));
  margin: 0 auto 14px auto;
}
body.v2 .v2-section-title{
  margin: 0 0 6px 0;
  font-size: clamp(20px, 0.9vw + 18px, 32px);
  letter-spacing: .2px;
}
body.v2 .v2-section-lead{
  margin: 0;
  color: rgba(232,238,252,.80);
  max-width: 78ch;
}
/* 7) Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   v3 refinements (requested changes)
   - dropdown reliability
   - wide-page layouts (desktop-friendly, mobile preserved)
   - partner cards, careers page, etc.
   ========================================================= */

/* Prevent grid items from stretching the .well background height */
body.v2 .well.well-small{align-self: start;}

/* Dropdown (Produkti) – force consistent open/close behaviour */
body.v2 .v2-nav-list li.dropdown{position:relative;}
body.v2 ul.v2-dropdown{
  display:none !important;
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  min-width:260px;
  padding:10px;
  margin:0;
  border-radius:14px;
  border:1px solid rgba(232,238,252,.14);
  background:linear-gradient(180deg, rgba(15,26,51,.96), rgba(11,18,36,.96));
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  z-index:1200;
}
body.v2 li.dropdown.open > ul.v2-dropdown,
body.v2 li.dropdown:hover > ul.v2-dropdown,
body.v2 li.dropdown:focus-within > ul.v2-dropdown{
  display:block !important;
}
body.v2 a.v2-dropdown-toggle{cursor:pointer;}

@media (max-width: 980px){
  body.v2 ul.v2-dropdown{
    position:static !important;
    min-width:unset !important;
    padding:8px 0 0 12px !important;
    margin:0 !important;
    border-radius:0 !important;
    border:none !important;
    border-left:2px solid rgba(106,167,255,.35) !important;
    background:transparent !important;
    box-shadow:none !important;
  }
}

/* Wide pages (desktop-friendly). Add .v3-wide on the .well to remove narrow prose constraints. */
body.v2 .well.well-small.v3-wide > h1,
body.v2 .well.well-small.v3-wide > h2,
body.v2 .well.well-small.v3-wide > h3,
body.v2 .well.well-small.v3-wide > h4,
body.v2 .well.well-small.v3-wide > p,
body.v2 .well.well-small.v3-wide > ul,
body.v2 .well.well-small.v3-wide > ol,
body.v2 .well.well-small.v3-wide > table,
body.v2 .well.well-small.v3-wide > div{
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* v2.css centers .well.well-small; wide pages should be left-aligned for readability */
body.v2 .well.well-small.v3-wide{ text-align: left !important; }

/* A flexible hero grid used on several pages */
body.v2 .v3-hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(14px, 2.2vw, 34px);
  align-items:center;
  margin-top: 14px;
}
body.v2 .v3-hero-copy{display:flex; flex-direction:column; gap:12px;}
body.v2 .v3-hero-media{
  border-radius: clamp(14px, 1.2vw, 22px);
  overflow:hidden;
  border:1px solid rgba(232,238,252,.14);
  background:rgba(10,18,28,.35);
  box-shadow:0 18px 55px rgba(0,0,0,.40);
}
/* Only style direct hero images (avoid affecting nested images like gallery) */
body.v2 .v3-hero-media > img{
  width:100%;
  height:100%;
  min-height: clamp(260px, 22vw, 520px);
  object-fit:cover;
  display:block;
}

/* Two-column prose on large screens (keeps mobile intact) */
body.v2 .v3-prose-columns{
  column-count: 2;
  column-gap: clamp(22px, 2.4vw, 44px);
}
body.v2 .v3-prose-columns p,
body.v2 .v3-prose-columns ul,
body.v2 .v3-prose-columns ol{
  break-inside: avoid;
}

@media (max-width: 900px){
  body.v2 .v3-hero-grid{grid-template-columns:1fr;}
  body.v2 .v3-prose-columns{column-count: 1;}
}

/* Full-width media strip */
body.v2 .v3-media-strip{margin-top: clamp(14px, 2vw, 28px);}
body.v2 .v3-media-strip .v3-media-card{border-radius:22px; overflow:hidden; border:1px solid rgba(232,238,252,.14); background:rgba(10,18,28,.35); box-shadow:0 18px 60px rgba(0,0,0,.42);} 
body.v2 .v3-media-strip img{width:100%; height: clamp(260px, 28vw, 560px); object-fit:cover; display:block;}

/* Partnerstva – modern partner cards with alternating layouts */
body.v2 .v3-partner-list{display:flex; flex-direction:column; gap: clamp(14px, 2vw, 24px); margin-top: 14px;}
body.v2 .v3-partner-card{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(14px, 2vw, 26px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  border:1px solid rgba(232,238,252,.14);
  background: linear-gradient(180deg, rgba(15,26,51,.72), rgba(11,18,36,.72));
  box-shadow:0 18px 60px rgba(0,0,0,.38);
}
body.v2 .v3-partner-card.v3-reverse{grid-template-columns: 1.1fr 0.9fr;}
body.v2 .v3-partner-card.v3-reverse .v3-partner-media{order: 2;}
body.v2 .v3-partner-media{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(106,167,255,.22);
  background:rgba(10,18,28,.35);
}
body.v2 .v3-partner-media img{width:100%; height: clamp(220px, 20vw, 380px); object-fit:cover; display:block;}
body.v2 .v3-partner-body h3{margin-top:0;}
body.v2 .v3-partner-body p{color: rgba(232,238,252,.84);} 
body.v2 .v3-taglist{display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px;}
body.v2 .v3-tag{
  font-size: 0.92em;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(232,238,252,.14);
  background: rgba(106,167,255,.10);
  color: rgba(232,238,252,.92);
}
@media (max-width: 900px){
  body.v2 .v3-partner-card,
  body.v2 .v3-partner-card.v3-reverse{grid-template-columns:1fr;}
  body.v2 .v3-partner-card.v3-reverse .v3-partner-media{order: 0;}
}

/* Vizitka – make certificates/banners feel like a gallery */
body.v2 .v2-company-certs{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
body.v2 .v2-cert-item{
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border:1px solid rgba(232,238,252,.14);
  background: rgba(10,18,28,.35);
  box-shadow:0 18px 55px rgba(0,0,0,.32);
}
body.v2 .v2-cert-item img{object-fit: contain; padding: 8px;}

/* Careers page blocks */
body.v2 .v3-cards{display:grid; grid-template-columns:repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: 14px;}
body.v2 .v3-card{
  border-radius: 18px;
  border:1px solid rgba(232,238,252,.14);
  background: rgba(10,18,28,.30);
  padding: 16px 16px;
  box-shadow:0 18px 55px rgba(0,0,0,.32);
}
body.v2 .v3-card h4{margin:0 0 10px 0;}
body.v2 .v3-card ul{margin:0; padding-left:18px;}
@media (max-width: 980px){
  body.v2 .v3-cards{grid-template-columns:1fr;}
}

/* Service modal polish */
body.v2 .v2-service-modal{
  background: rgba(6, 10, 18, .72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.v2 .v2-service-modal-content{
  background: linear-gradient(180deg, rgba(15,26,51,.96), rgba(11,18,36,.96)) !important;
  border: 1px solid rgba(232,238,252,.16) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.65) !important;
  transform: translateY(10px) scale(.985);
  transition: transform .18s ease, box-shadow .18s ease;
}
body.v2 .v2-service-modal.active .v2-service-modal-content{
  transform: translateY(0) scale(1);
}

/* Lists used on redesigned pages */
body.v2 .v3-bullets{list-style:none; padding-left:0; margin: 10px 0 0 0;}
body.v2 .v3-bullets li{position:relative; padding-left:22px; margin: 8px 0; color: rgba(232,238,252,.86);}
body.v2 .v3-bullets li:before{content:"✓"; position:absolute; left:0; top:0; color: var(--v2-accent); font-weight: 900;}

/* =========================
   v4.1 tweaks (per feedback)
   ========================= */

/* v3-wide pages: let text use the available width (desktop) */
body.v2 .well.well-small.v3-wide p,
body.v2 .well.well-small.v3-wide ul,
body.v2 .well.well-small.v3-wide ol{
  max-width: none !important;
}

/* Dropdown: make sure open state wins even if other CSS interferes */
body.v2 li.dropdown.open > ul.v2-dropdown,
body.v2 li.dropdown:focus-within > ul.v2-dropdown,
body.v2 li.dropdown:hover > ul.v2-dropdown{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateY(0) !important;
}

/* Services gallery: remove frame border + avoid image being cropped by min-height */
body.v2 #gallery .v3-gallery-frame{margin:0 auto 10px auto !important; border:none !important; box-shadow:0 18px 50px rgba(0,0,0,.35) !important;}
body.v2 #gallery-image{min-height:0 !important;}

/* Elipron hero image: fully visible (contain) */
body.v2 .v3-hero-media.v3-contain > img{
  object-fit:contain !important;
  background: rgba(255,255,255,.02);
}

/* Reference page: remove top padding + keep the table column visually contained */
body.v2 .v3-no-top-pad{padding-top:0 !important;}
body.v2 .well.well-small.v3-fit-table{
  /* Desktop: let the card shrink to the table width */
  width: fit-content !important;
  max-width: 100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.v2 .well.well-small.v3-fit-table > h3,
body.v2 .well.well-small.v3-fit-table > table,
body.v2 .well.well-small.v3-fit-table > div{max-width:none !important;}
body.v2 .well.well-small.v3-fit-table table{width:auto !important;}
@media (max-width: 767px){
  body.v2 .well.well-small.v3-fit-table{width:100% !important;}
  body.v2 .well.well-small.v3-fit-table table{width:100% !important;}
}

/* Wide prose blocks: use the full available width (used on EU-skladi + selected pages) */
body.v2 .well.well-small.v3-prose-wide > *{
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* Vizitka: page-specific split + larger images that remain fully visible */
body.v2.vizitka-page .v3-vizitka-split{display:grid; grid-template-columns: 1.35fr 0.65fr; gap:18px; align-items:start;}
@media (max-width: 980px){body.v2.vizitka-page .v3-vizitka-split{grid-template-columns:1fr;}}
body.v2.vizitka-page .v3-vizitka-left{display:grid; gap:14px;}
body.v2.vizitka-page .v3-vizitka-right{position:sticky; top:18px;}
@media (max-width: 980px){body.v2.vizitka-page .v3-vizitka-right{position:static;}}
body.v2.vizitka-page .v3-card h4{margin:0 0 10px 0; font-size: clamp(15px, 0.22vw + 14px, 18px);}
body.v2.vizitka-page .v3-list{list-style:none; padding:0; margin:0; display:grid; gap:6px;}
body.v2.vizitka-page .v3-list li{margin:0;}
body.v2.vizitka-page .v3-cert-grid-big{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;}
@media (max-width: 980px){body.v2.vizitka-page .v3-cert-grid-big{grid-template-columns:1fr;}}
body.v2.vizitka-page .v3-cert-grid-big .v2-cert-item{aspect-ratio: 16/10; padding:12px !important;}
body.v2.vizitka-page .v3-cert-grid-big img{width:100% !important; height:100% !important; object-fit:contain !important; padding:0 !important;}

/* Careers: consistent equal-height cards */
body.v2 .v3-careers-grid{display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch;}
@media (max-width: 980px){body.v2 .v3-careers-grid{grid-template-columns:1fr;}}
body.v2 .v3-careers-grid .v3-card{height:100%;}

/* Partnerstva: show images fully */
body.v2.partnerstva-page .v3-partner-media img{
  object-fit:contain !important;
  background: rgba(255,255,255,.02);
}
body.v2 .well.well-small.v3-no-top-padding{padding-top:0 !important;}

/* Page title block used on selected pages (outside .well) */
body.v2 .v3-page-title{
  width: min(1180px, 96vw);
  margin: 0 auto 14px auto;
  padding: 0 clamp(12px, 2vw, 22px);
}
body.v2 .v3-page-title h1{
  margin: 0;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

/* =========================================================
   v7 tweaks (2026-02-02)
   - page-specific layout refinements + mobile nav full-width
   ========================================================= */

/* Default: keep cards readable, but do NOT force centered text */
body.v2 .well.well-small{ text-align:left !important; }

/* Utility: left aligned content (explicit) */
body.v2 .v3-left{ text-align:left !important; }

/* Utility: compact paragraphs/lists for better scanability */
body.v2 .v3-compact p,
body.v2 .v3-compact li{ line-height:1.55 !important; }
body.v2 .v3-compact p{ margin-bottom:0.65em !important; }
body.v2 .v3-compact li{ margin-bottom:0.35em !important; }

/* Dash list (replace bullets with "-") */
body.v2 ul.v3-dashlist{ list-style:none !important; padding-left:0 !important; margin-left:0 !important; }
body.v2 ul.v3-dashlist > li{ position:relative; padding-left:16px; }
body.v2 ul.v3-dashlist > li::before{ content:"-"; position:absolute; left:0; top:0; opacity:.9; }

/* Full-width title frames inside .well */
body.v2 .v3-fullwidth-title{ width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; }

/* Instavbe carousel: slightly smaller on desktop */
body.v2 #carousel-container{ width:min(100%, 920px) !important; margin-left:auto !important; margin-right:auto !important; }

/* Image pair (side-by-side, equal size, framed) */
body.v2 .v3-image-pair{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
@media (max-width: 980px){ body.v2 .v3-image-pair{ grid-template-columns:1fr; } }
body.v2 .v3-image-frame{ aspect-ratio: 4 / 3; border-radius:18px; overflow:hidden; border:1px solid rgba(232,238,252,.14); background:rgba(10,18,28,.35); box-shadow:0 16px 40px rgba(0,0,0,.35); }
body.v2 .v3-image-frame img{ width:100%; height:100%; object-fit:contain; display:block; }

/* Telemetrija: split layout text + visuals */
body.v2 .v3-tele-split{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:18px; align-items:start; }
@media (max-width: 980px){ body.v2 .v3-tele-split{ grid-template-columns:1fr; } }
body.v2 .v3-tele-visuals{ display:grid; gap:14px; }

/* Services gallery: make frame taller (avoid "half image" feeling) */
body.v2.services-page #gallery .v3-gallery-frame{ aspect-ratio: 4 / 3 !important; height: clamp(240px, 34vw, 460px); }
body.v2.services-page #gallery-image{ border:0 !important; outline:0 !important; }

/* Mobile nav: full-width items + left aligned text */
@media (max-width: 980px){
  body.v2 .v2-nav-list{
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  body.v2 .v2-nav-list > li{ width: 100% !important; }
  body.v2 .v2-nav-list > li > a{
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* Dropdown: final override (fix Produkty toggle in all cases) */
body.v2 li.dropdown.open > ul.v2-dropdown{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateY(0) !important;
}

/* EU-skladi: vavcer logo sizing */
body.v2 .v3-vavcer-inline{width:100%; max-width:min(520px, 100%); height:auto; display:block; margin:18px auto 18px auto;}

/* Vizitka: larger certificate frames + neutral headings */
body.v2.vizitka-page .v3-vizitka-split{grid-template-columns: 1.05fr 0.95fr !important;}
@media (max-width: 980px){body.v2.vizitka-page .v3-vizitka-split{grid-template-columns:1fr !important;}}
body.v2.vizitka-page .v3-cert-grid-big .v2-cert-item{aspect-ratio: 4 / 3 !important; padding:14px !important;}
body.v2.vizitka-page h3, body.v2.vizitka-page h4{background:transparent !important;}

/* Zaposlitev: headings match card background (neutral/transparent) */
body.v2.zaposlitev-page h3{background:transparent !important;}

/* Dropdown: CSS fallback (in case JS is blocked) */
body.v2 li.dropdown:hover > ul.v2-dropdown,
body.v2 li.dropdown:focus-within > ul.v2-dropdown{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:translateY(0) !important;
}
body.v2 a.v2-dropdown-toggle{cursor:pointer;}

/* Media cards: show the full image (no cropping) when requested */
body.v2 .v3-media-card.v3-contain img{object-fit:contain !important; background:rgba(10,18,28,.35);}

/* Tight framed images: 5px padding around the image, frame fits the image */
body.v2 .v3-image-frame.v3-pad5{
  aspect-ratio: auto !important;
  display:inline-block;
  width:auto;
  max-width:100%;
  padding:5px !important;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(232,238,252,.14);
  background:rgba(10,18,28,.35);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}
body.v2 .v3-image-frame.v3-pad5 img{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  display:block;
}

/* Telemetrija: images below text, centered + larger */
body.v2.telemetrija-page .v3-tele-images{
  display:grid;
  gap:16px;
  justify-items:center;
  margin-top:18px;
}
body.v2.telemetrija-page .v3-tele-img{
  display:block;
}
body.v2.telemetrija-page .v3-tele-img-large{width:min(920px, 100%);}
body.v2.telemetrija-page .v3-tele-img-small{width:min(680px, 100%); opacity:.98;}

/* Vizitka: prevent card overlap + nicer responsive flow */
body.v2.vizitka-page .v3-vizitka-split{
  display:grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(14px, 2vw, 22px);
  align-items:start;
}
@media (max-width: 980px){
  body.v2.vizitka-page .v3-vizitka-split{grid-template-columns:1fr;}
}
body.v2.vizitka-page .v3-vizitka-left{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items:stretch;
}
body.v2.vizitka-page .v3-vizitka-right{position:static !important; top:auto !important;}
body.v2.vizitka-page .v3-card{height:auto;}

/* Zaposlitev: neutral headings (h4) */
body.v2.zaposlitev-page h4{background:transparent !important;}
@media (min-width: 1200px){
  body.v2 .v3-tele-visuals{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Vizitka: make cards flow nicer on wide screens */
@media (min-width: 1200px){
  body.v2.vizitka-page .v3-vizitka-left{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  body.v2.vizitka-page .v3-vizitka-left .v3-card{height:100%;}
}
/* Bigger certificate frames */
body.v2.vizitka-page .v3-cert-grid-big{ grid-template-columns: 1fr !important; }
body.v2.vizitka-page .v3-cert-grid-big .v2-cert-item{ aspect-ratio: 16 / 10 !important; padding:16px !important; }

/* GLOBAL: remove top padding for bodySection-centered (requested) */
body.v2 .bodySection-centered{padding-top:0 !important;}


/* =========================================================
   v10 tweaks (2026-02-02)
   - dropdown visibility on wide screens
   - telemetrija: text left, images right (desktop) + clean dashes
   - vizitka: 2+2 column layout without overlaps
   - zaposlitev: h4 headings transparent + grid safety
   ========================================================= */

/* Dropdown: allow menu to escape the nav row (desktop) */
@media (min-width: 981px){
  body.v2 .v2-nav,
  body.v2 .v2-nav-list{
    overflow: visible !important;
  }
  body.v2 .v2-nav-list{ white-space: normal !important; }
  body.v2 li.dropdown{ position: relative !important; }
  body.v2 ul.v2-dropdown{
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 6px) !important;
    z-index: 9999 !important;
  }
}

/* Telemetrija: split layout (desktop) */
body.v2.telemetrija-page .v3-tele-split{
  display:grid !important;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(14px, 2vw, 22px);
  align-items:start;
}
body.v2.telemetrija-page .v3-tele-visuals{
  display:flex !important;
  flex-direction:column;
  gap: 16px;
  align-items:flex-end;
}
body.v2.telemetrija-page .v3-tele-frame{ box-shadow:0 16px 40px rgba(0,0,0,.35); }
body.v2.telemetrija-page .v3-tele-img-large{
  width: min(420px, 100%) !important;
  height: auto !important;
}
body.v2.telemetrija-page .v3-tele-img-small{
  width: min(320px, 100%) !important;
  height: auto !important;
  border: 1px solid rgba(232,238,252,.22) !important;
  border-radius: 12px !important;
}
@media (max-width: 980px){
  body.v2.telemetrija-page .v3-tele-split{ grid-template-columns: 1fr !important; }
  body.v2.telemetrija-page .v3-tele-visuals{ align-items:center; }
  body.v2.telemetrija-page .v3-tele-img-large{ width: min(920px, 100%) !important; }
  body.v2.telemetrija-page .v3-tele-img-small{ width: min(680px, 100%) !important; }
}

/* Vizitka: left = cards in 2 columns, right = certs in 2 columns (desktop) */
body.v2.vizitka-page .v3-vizitka-split{
  display:grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: clamp(14px, 2vw, 24px) !important;
  align-items:start !important;
}
body.v2.vizitka-page .v3-vizitka-left{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.6vw, 18px) !important;
  align-items:stretch !important;
}
body.v2.vizitka-page .v3-vizitka-right{ position:static !important; }
body.v2.vizitka-page .v3-card{
  height:auto !important;
  min-width:0 !important;
}
body.v2.vizitka-page .v3-vizitka-right .v2-company-certs{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.6vw, 18px) !important;
}
body.v2.vizitka-page .v3-vizitka-right .v2-cert-item{
  aspect-ratio: 4 / 3 !important;
  padding: 16px !important;
}
body.v2.vizitka-page .v3-vizitka-right .v2-cert-item img{
  width:100% !important;
  height:100% !important;
  object-fit: contain !important;
  padding: 0 !important;
}
@media (max-width: 980px){
  body.v2.vizitka-page .v3-vizitka-split{ grid-template-columns:1fr !important; }
  body.v2.vizitka-page .v3-vizitka-left{ grid-template-columns:1fr !important; }
  body.v2.vizitka-page .v3-vizitka-right .v2-company-certs{ grid-template-columns:1fr !important; }
}

/* Zaposlitev: prevent any overlap and keep headings neutral */
body.v2.zaposlitev-page .v3-careers-grid{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items:stretch !important;
}
body.v2.zaposlitev-page .v3-careers-grid .v3-card{min-width:0 !important;}
body.v2.zaposlitev-page .v3-card h4{
  background: transparent !important;
  padding: 0 !important;
  margin-top: 0 !important;
}
@media (max-width: 980px){
  body.v2.zaposlitev-page .v3-careers-grid{ grid-template-columns:1fr !important; }
}

/* =========================================================
   v13 tweaks (2026-02-03)
   - vizitka redesign (no overlap, wider text column)
   ========================================================= */

body.v2.vizitka-page .v4-vizitka-layout{
  display:grid;
  /* Allocate more width to certificates so they are readable on desktop. */
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(14px, 2vw, 26px);
  align-items:start;
}

@media (max-width: 980px){
  body.v2.vizitka-page .v4-vizitka-layout{ grid-template-columns: 1fr; }
}

body.v2.vizitka-page .v4-vizitka-info-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items:stretch;
}

@media (max-width: 980px){
  body.v2.vizitka-page .v4-vizitka-info-grid{ grid-template-columns: 1fr; }
}

body.v2.vizitka-page .v4-vizitka-certs .v3-card{ height:auto; }

body.v2.vizitka-page .v4-cert-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
@media (max-width: 980px){
  body.v2.vizitka-page .v4-cert-grid{ grid-template-columns: 1fr; }
}

body.v2.vizitka-page .v4-cert-item{
  /* Bigger tile so certificate images are clearly legible. */
  min-height: clamp(220px, 18vw, 340px);
  border-radius: 18px;
  border: 1px solid rgba(232,238,252,.14);
  background: rgba(10,18,28,.35);
  box-shadow: 0 18px 55px rgba(0,0,0,.32);
  overflow:hidden;
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.v2.vizitka-page .v4-cert-item img{
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display:block;
}

/* Ensure no accidental overlap from legacy vizitka selectors */
body.v2.vizitka-page .v3-vizitka-split,
body.v2.vizitka-page .v3-vizitka-left,
body.v2.vizitka-page .v3-vizitka-right{
  all: unset;
}


/* =========================
   v15 tweaks (vizitka + zaposlitev)
   ========================= */

/* Vizitka: make certificate section span full width of the well and show 2x2 grid with large readable images */
body.v2.vizitka-page .v4-vizitka-layout{
  display:grid;
  grid-template-columns: 1fr; /* full width stack */
  gap: clamp(14px, 2vw, 26px);
}
body.v2.vizitka-page .v4-vizitka-certs{
  width:100%;
}
body.v2.vizitka-page .v4-vizitka-layout .v3-card{
  width:100%;
  margin:0;
}
body.v2.vizitka-page .v4-vizitka-certs .v3-card{
  padding: clamp(16px, 1.8vw, 22px);
}
body.v2.vizitka-page .v4-cert-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
body.v2.vizitka-page .v4-cert-item{
  min-height: clamp(260px, 22vw, 420px);
  padding: clamp(12px, 1.4vw, 18px);
}
body.v2.vizitka-page .v4-cert-item img{
  width:100%;
  height:auto;
  max-height: 100%;
  object-fit: contain;
}

/* Zaposlitev: prevent visual overlap between card frames/shadows */
body.v2 .v3-careers-grid{
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}
body.v2 .v3-careers-grid .v3-card{
  height:auto;
  position:relative;
  z-index:0;
}



/* =========================
   v16 tweaks (2026-02-03)
   - index hero media: frame hugs image with 5px padding
   - vizitka: prevent any accidental overlap in grids
   ========================= */
body.v2.vizitka-page .v4-vizitka-layout,
body.v2.vizitka-page .v4-vizitka-layout *{
  box-sizing: border-box;
}
body.v2.vizitka-page .v4-vizitka-info-grid,
body.v2.vizitka-page .v4-cert-grid{
  align-content: start;
}
body.v2.vizitka-page .v4-vizitka-info-grid .v3-card,
body.v2.vizitka-page .v4-vizitka-certs .v3-card{
  position: relative;
  z-index: 0;
  min-width: 0;
}

/* =========================
   v17 tweaks (2026-02-03)
   - vizitka: narrower well; title spans full width
   - index: hero media padding increased
   ========================= */
body.v2.vizitka-page #bodySection .well.well-small{
  /* Make the card notably narrower on desktop, while remaining fluid on mobile. */
  width: min(92vw, 980px);
  margin-left: auto;
  margin-right: auto;
}
body.v2.vizitka-page #bodySection .well.well-small > h3[data-translate="pages.vizitka.companyName"]{
  display:block;
  width:100%;
  margin-left: 0;
  margin-right: 0;
}
