html:has(body.mp-inner) {
  background: #edf2f7;
}
body.mp-inner {
  background: #f3f6fa;
  color: var(--ink);
  font: 1rem/1.62 "Segoe UI", Arial, sans-serif;
}
.mp-inner *, .mp-inner *::before, .mp-inner *::after { box-sizing: border-box; }
.mp-inner > header { background: #fff; }
.mp-inner > header a, .mp-inner .mp-footer a { color: inherit; }
.mp-inner .mp-nav a:hover, .mp-inner .mp-nav [aria-current] { color: var(--red); }
.mp-inner .mp-utility a { color: white; }
.mp-inner :is(header,footer,.mp-page-heading) p { padding: 0; }
.mp-inner > .mp-skip { color: var(--ink); }
.mp-page-heading {
  color: white;
  background: linear-gradient(90deg, #101419bf 0%, #10141994 37%, #10141938 72%, #10141913 100%), url("../slike/pogon-breznicki-hum.webp") center 50% / cover;
  border-bottom: 3px solid var(--red);
  padding-block: clamp(1.6rem, 4.2vw, 3.8rem);
}
.mp-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: #d7e7f7; font-size: .9rem; }
.mp-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.mp-page-heading h1 {
  display: block;
  color: white;
  margin: .6rem 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  line-height: 1.12;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.mp-page-layout {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
  padding-block: clamp(1.25rem, 3.1vw, 3rem);
}
.mp-page-layout.mp-has-sidebar { grid-template-columns: minmax(210px, 265px) minmax(0, 1fr); }
.mp-inner .mp-content,
.mp-sidebar { min-width: 0; background: white; border: 1px solid #dce5ee; border-radius: 9px; }
.mp-inner .mp-content {
  padding: clamp(1.05rem, 3vw, 2.6rem);
  width: 100%;
  height: auto;
  margin: 0;
  float: none;
  overflow-wrap: anywhere;
  display: flow-root;
  color: var(--ink);
  line-height: 1.62;
}
.mp-content > :first-child { margin-top: 0; }
.mp-content :is(h2,h3,h4,h5,h6) {
  padding: 0;
  margin: 1.45em 0 .55em;
  text-transform: none;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.022em;
}
.mp-content h2 { font-size: clamp(1.35rem,2.35vw,1.85rem); }
.mp-content h3 { font-size: 1.3rem; }
.mp-content h4 { font-size: 1.15rem; }
.mp-content :is(h5,h6) { font-size: 1rem; }
.mp-content p { margin: 0 0 1em; padding: 0; }
.mp-content a { color: #174c80; text-decoration: underline; text-underline-offset: .18em; }
.mp-content a:hover { color: #a4122c; }
.mp-content :is(ul,ol) { margin: .4em 0 1em; padding-inline: 1.35em 0; }
.mp-content :is(ul.tekst,ul.tekst1,ul.tekst2) { list-style-position: outside; }
.mp-content img { max-width: 100%; height: auto; border: 0; border-radius: 4px; }
.mp-content :is(iframe, object, embed, video, .video-js) { max-width: 100%; }
.mp-content .video-js { width: min(100%, 840px); height: auto; aspect-ratio: 16 / 9; margin-inline: auto; }
.mp-content iframe[src*="youtube"] { width: min(100%, 840px); height: auto; aspect-ratio: 16 / 9; }
.mp-content :is(center,blockquote) { max-width: 100%; }
.mp-content hr { clear: both; height: 1px; border: 0; background: #dce5ee; margin-block: 1.4rem; }
.mp-sidebar details > summary {
  cursor: pointer;
  padding: .85rem 1rem;
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  background: #e9f1f8;
}
.mp-inner #left.mp-sidebar-body { width: auto; height: auto; margin: 0; padding: .55rem .65rem .8rem; float: none; overflow-wrap: anywhere; }
.mp-sidebar-body :is(ul,p,h2,h3,h4,h5,h6) { margin: 0; padding: .25rem; }
.mp-sidebar-body :is(ul,li) { list-style: none; }
.mp-sidebar-body li { margin: 0; padding: .18rem .3rem; line-height: 1.4; color: var(--quiet); font-size: .94rem; }
.mp-sidebar-body a { display: inline-block; padding-block: .32rem; color: #174c80; text-decoration: underline; text-underline-offset: .16em; }
.mp-sidebar-body a[aria-current] { color: #a4122c; font-weight: 750; }
.mp-sidebar-body img { max-width: 100%; height: auto; }
.mp-sidebar-body .mp-extra-links { border-top: 1px solid #dce5ee; margin-top: .5rem; padding-top: .5rem; }
.mp-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.mp-content .mp-table-scroll table { width: 100%; max-width: none; margin: 0; float: none; border-collapse: collapse; color: var(--ink); font-size: .94rem !important; }
.mp-table-scroll :is(th,td) { border-bottom: 1px solid #dce5ee; padding: .62rem .75rem; vertical-align: top; }
.mp-table-scroll th { background: #e9f1f8; text-align: left; }
.mp-table-scroll tr:nth-child(even) > td { background: #f5f8fc; }
.mp-content .mp-table-scroll :is(p,h3,h4,h5,h6) { margin: 0 0 .35em; }
.mp-overview-grid, .mp-catalogue-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: .8rem; }
.mp-overview-card, .mp-content .mp-catalogue-card {
  border: 1px solid #dce5ee;
  border-top: 3px solid #174c80;
  border-radius: 7px;
  padding: clamp(.8rem, 2vw, 1.4rem);
  background: #f8fbfe;
}
.mp-overview-card :is(h2,h3), .mp-content .mp-catalogue-card h2 { margin: 0 0 .65rem; font-size: 1.18rem; }
.mp-overview-card > :last-child { margin-bottom: 0; }
.mp-content .mp-catalogue-card {
  display: grid;
  justify-items: start;
  align-content: start;
  text-decoration: none;
}
.mp-content .mp-catalogue-card:hover { border-color: #174c80; background: #edf4fb; }
.mp-catalogue-card img { display: block; object-fit: contain; width: auto; height: 8.5rem; margin: 0 0 .9rem; box-shadow: 0 3px 9px #132b4540; }
.mp-catalogue-card span { text-decoration: underline; font-weight: 700; }
@media (min-width: 1250px) { .mp-catalogue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.mp-content .my-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: .7rem; width: auto; float: none; margin-block: .8rem 1.8rem; }
.mp-content .my-gallery figure { float: none; width: auto; display: block; margin: 0; }
.mp-content .my-gallery a { display: block; }
.mp-content .my-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mp-content .mp-map { display: inline-block; margin: 0 .5rem .6rem 0; }
.mp-content .mp-map a { display: block; padding: .55rem .7rem; border-radius: 5px; background: #e9f1f8; }
.mp-inner .mp-footer a:hover { color: white; }
@media (max-width: 850px) {
  .mp-page-layout.mp-has-sidebar { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 580px) {
  .mp-overview-grid,.mp-catalogue-grid { grid-template-columns: minmax(0,1fr); }
  .mp-content :is(#uprava,#nabava,#prodaja) td { display: inline-block; padding: .6rem .45rem; min-width: min(100%, 11rem); }
}
/* Legacy content IDs still target several fixed-width rules in style.css. */
.mp-inner :is(#main,#main1).mp-content {
  width: 100%;
  height: auto;
  float: none;
  margin: 0;
}
.mp-inner .mp-content :is(.mp-table-scroll table,#uprava,#nabava,#prodaja) {
  width: 100%;
  float: none;
}

.mp-page-heading :is(h1,.mp-crumbs) { text-shadow: 0 1px 4px #101419bd; }
.mp-certificates { margin: 0 0 2rem; }
.mp-certificates h2 { margin-top: 0; }
.mp-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.mp-content .mp-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .75rem .35rem;
  border: 1px solid #dce5ee;
  border-radius: 7px;
  background: #f5f8fb;
  text-align: center;
  font-weight: 650;
}
.mp-cert-card:hover { border-color: var(--blue); }
.mp-cert-image { display: grid; place-items: center; padding: .35rem; width: 100%; height: clamp(5rem, 12vw, 9.25rem); }
.mp-cert-image img { width: auto; height: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 400px) {
  .mp-cert-grid { gap: .4rem; }
  .mp-content .mp-cert-card { font-size: .83rem; }
}

.mp-page-heading.mp-technology-photo {
  background-image: linear-gradient(90deg, #101419d9 0%, #101419a0 33%, #10141931 64%, #1014190a 100%), var(--technology-photo);
  background-position: center, center var(--technology-focus, 50%);
  min-height: clamp(12rem, 24vw, 23rem);
  display: grid;
  align-items: end;
}
.mp-technology-photo .mp-wrap { grid-area: 1 / 1; }
.mp-technology-photo h1 { max-width: 18ch; }
.mp-technology-photo[data-technology="strojna"] {
  --technology-photo: url("../slike/tehnologija/strojna.webp");
  --technology-focus: 47%;
}
.mp-technology-photo[data-technology="presanje"] {
  --technology-photo: url("../slike/tehnologija/presanje.webp");
}
.mp-technology-photo[data-technology="ljevaonica"] {
  --technology-photo: url("../slike/tehnologija/ljevaonica.webp");
  --technology-focus: 46%;
}
.mp-technology-photo[data-technology="alatnica"] {
  --technology-photo: url("../slike/tehnologija/alatnica.webp");
}
.mp-technology-photo[data-technology="zavarivanje"] {
  --technology-photo: url("../slike/tehnologija/zavarivanje.webp");
  --technology-focus: 55%;
}
.mp-technology-photo[data-technology="lab"] {
  --technology-photo: url("../slike/tehnologija/lab.webp");
  --technology-focus: 44%;
}
@media (max-width: 650px) {
  .mp-page-heading.mp-technology-photo {
    background-image: linear-gradient(0deg, #101419cc, #10141940 70%, #1014190a), var(--technology-photo);
    min-height: 14rem;
  }
}

.mp-company-intro { margin-bottom: 2rem; }

.mp-company-intro { margin-top: 1.75rem; }
