:root {
  --ink: #171717;
  --muted: #696969;
  --paper: #ffffff;
  --header: #1f1b1d;
  --red: #c33a3a;
  --orange: #d49326;
  --line: #d7d1d1;
  --max: 980px;
  --display-size: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 9999;
  transform: translateY(-150%); padding: 10px 14px;
  background: #fff; color: #111; border: 1px solid #111;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.section-gap { margin-top: 84px; }
.thinking.section-gap,
.services.section-gap,
.process.section-gap { margin-top: 42px; }
.trust.section-gap { margin-top: 42px; }

.site-header { background: var(--header); color: #fff; }
.header-inner {
  width: min(calc(100% - 44px), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 11px;
  min-height: 120px;
}
.brand { display: inline-flex; align-items: flex-end; text-decoration: none; flex: 0 0 auto; }
.brand-logo { display: block; height: 99px; width: auto; max-width: none; }
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 22%;
  margin-left: auto;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}
.desktop-nav a { text-decoration: none; display: inline-flex; align-items: center; }
.desktop-nav a + a::before { content: "|"; color: var(--orange); margin: 0 7px; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: #fff; }
.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-content: center; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 24px; height: 2px; background: #fff; display: block; }
.mobile-nav nav { position: absolute; right: 0; top: 42px; z-index: 50; min-width: 220px; padding: 10px; background: var(--header); border: 1px solid #4a4446; }
.mobile-nav nav a { display: block; padding: 10px 12px; text-decoration: none; color: #fff; }

.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 10px; line-height: 1.1; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 300; letter-spacing: -.03em; line-height: .98; }
h1 { margin-bottom: 18px; font-size: var(--display-size); }
h2 { margin-bottom: 16px; font-size: var(--display-size); }
h3 { margin-bottom: 4px; font-size: 17px; line-height: 1.15; font-weight: 600; }
p { margin-bottom: 13px; }
.line-keep { white-space: nowrap; }

.hero { padding-top: 32px; }
.hero-copy { width: min(78%, 830px); }
.hero-copy .lead { max-width: 760px; font-size: 15px; margin-bottom: 18px; }
.actions, .cta-row { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-actions,
.page-cta,
.single-cta { justify-content: flex-end; }
.btn {
  min-width: 158px; padding: 8px 15px; border: 1px solid #4a4a4a;
  text-decoration: none; text-align: center; font-size: 12px; line-height: 1;
  background: #fff; transition: .18s ease;
}
.btn-inline { min-width: 180px; }
.btn span[aria-hidden="true"] { display: inline-block; transition: transform .18s ease; }
.btn:hover span[aria-hidden="true"],
.btn:focus-visible span[aria-hidden="true"] { transform: translateX(5px); }
.btn:hover, .btn:focus-visible { color: #fff; background: var(--ink); }

.hero-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 20px;
  align-items: end;
  justify-content: start;
  justify-items: start;
}
.hero-book { background: transparent; padding: 0; border: 0; }
.hero-match-height {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: auto;
}
.hero-match-height img {
  display: block;
  height: clamp(190px, 24vw, 250px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .25s ease;
  transform-origin: center center;
}
.hero-gallery figure:hover img,
.hero-gallery figure:focus-within img { transform: scale(1.02); }
.bordered-art { border: 1px solid #d9c8bf; }

.wide-copy { width: min(78%, 830px); }
.wide-copy > p:not(.eyebrow) { font-size: 14px; max-width: 760px; }

.work { margin-top: 52px; }
.section-head p:not(.eyebrow) { font-size: 14px; }
.work-layout { display: grid; grid-template-columns: 145px 1fr; gap: 28px; margin-top: 27px; }
.work-labels { display: grid; grid-template-rows: repeat(3, 1fr); gap: 26px; padding-top: 3px; }
.work-labels span { display: flex; align-items: flex-end; padding-bottom: 4px; border-bottom: 1px solid var(--red); color: #777; font-size: 11px; line-height: 1.15; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work-grid figure { overflow: hidden; background: #f6f6f6; aspect-ratio: .72; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-grid figure:hover img, .work-grid figure:focus-within img { transform: scale(1.02); }
.work > .page-cta { margin-top: 18px; justify-content: flex-end; }

.services { width: min(calc(100% - 44px), var(--max)); }

.services > h2,
.services > .service-grid,
.process > .process-top,
.process > .process-gallery,
.trust > h2,
.trust > .trust-intro,
.trust > blockquote,
.trust > .client-list {
  width: min(100%, 760px);
}

.services > .page-cta,
.process > .page-cta,
.trust > .page-cta {
  width: min(100%, 760px);
}

.services > h2 { margin-bottom: 22px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 64px; }
.service-grid article { break-inside: avoid; }
.service-grid p { margin: 0; font-size: 13px; color: #3f3f3f; }

.process { width: min(calc(100% - 44px), var(--max)); }
.process-top p:not(.eyebrow) { font-size: 14px; max-width: 610px; }
.process-gallery { margin-top: 28px; display: grid; grid-template-columns: .8fr 1.38fr; grid-template-rows: repeat(3, auto); gap: 10px 18px; align-items: start; }
.process-gallery img { transition: transform .25s ease; transform-origin: center center; }
.process-gallery img:hover,
.process-gallery img:focus-visible { transform: scale(1.02); }
.process-gallery img:nth-child(1) { grid-row: 1 / span 2; grid-column: 1; align-self: center; }
.process-gallery img:nth-child(2) { grid-row: 1; grid-column: 2; }
.process-gallery img:nth-child(3) { grid-row: 2; grid-column: 2; }
.process-gallery img:nth-child(4) { grid-row: 3; grid-column: 2; }

.trust { width: min(calc(100% - 44px), var(--max)); margin-bottom: 43px; }
.trust-intro { font-size: 14px; max-width: 740px; }
blockquote { margin: 34px 0 0; padding: 0; }
blockquote > p { font-size: clamp(22px, 3vw, 31px); line-height: 1.08; letter-spacing: -.02em; font-weight: 300; }
blockquote footer { font-size: 11px; line-height: 1.3; }
.client-list { margin-top: 54px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 62px; }
.client-list article { margin-bottom: 15px; }
.client-list h3 { font-size: 17px; line-height: 1.15; margin: 0 0 4px; font-weight: 600; }
.client-list p { font-size: 10px; line-height: 1.22; color: #454545; margin: 0; }

.site-footer { border-top: 1px solid #e7e3e3; padding: 25px 0 38px; color: #595959; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  :root { --display-size: 44px; }
  .hero-copy, .wide-copy { width: min(88%, 760px); }
  .hero-gallery { gap: 20px; }
  .work-layout { grid-template-columns: 110px 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  :root { --display-size: clamp(30px, 9vw, 40px); }
  .shell, .header-inner, .services, .process, .trust { width: min(calc(100% - 32px), var(--max)); }
  .section-gap { margin-top: 64px; }
  .thinking.section-gap,
  .services.section-gap,
  .process.section-gap { margin-top: 32px; }
  .trust.section-gap { margin-top: 32px; }
  .header-inner { min-height: 102px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
  .brand-logo { height: 86px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }

  .hero { padding-top: 28px; }
  .hero-copy, .wide-copy { width: 100%; }
  .line-keep { white-space: normal; }
  .hero-copy .lead, .wide-copy > p:not(.eyebrow), .trust-intro, .process-top p:not(.eyebrow) { font-size: 15px; }
  .hero-actions, .page-cta, .single-cta { justify-content: flex-start; }
  .actions, .cta-row { gap: 10px; }
  .btn { flex: 1 1 160px; min-width: 0; padding-block: 10px; }

  .hero-gallery { margin-top: 32px; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; justify-items: center; }
  .hero-match-height img { height: auto; width: 100%; max-width: 100%; }

  .work { margin-top: 44px; }
  .work-layout { display: block; margin-top: 20px; }
  .work-labels { display: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .service-grid { grid-template-columns: 1fr; gap: 18px; }

  .process-gallery { grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; }
  .process-gallery img:nth-child(n) { grid-column: 1; grid-row: auto; }

  blockquote { margin-top: 27px; }
  blockquote > p { font-size: 25px; }
  .client-list { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .client-list h3 { font-size: 13px; }
  .client-list p { font-size: 11px; }
  .client-list article { margin-bottom: 18px; }

  .footer-inner { flex-direction: column; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .shell, .header-inner, .services, .process, .trust { width: min(calc(100% - 24px), var(--max)); }
  .hero-gallery { gap: 8px; }
  .work-grid { gap: 8px; }
}


.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 760px) {
  .services > h2,
  .services > .service-grid,
  .process > .process-top,
  .process > .process-gallery,
  .trust > h2,
  .trust > .trust-intro,
  .trust > blockquote,
  .trust > .client-list,
  .services > .page-cta,
  .process > .page-cta,
  .trust > .page-cta { width: 100%; }
}

/* v5: poravnava zbornika in temna noga */
.process-gallery img:nth-child(1) {
  align-self: start;
}

.site-footer {
  margin-top: 9px;
  padding: 0;
  border-top: 0;
  background: #171717;
  color: #f3f3f3;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(150px, .75fr) minmax(150px, .65fr);
  gap: 48px;
  padding-top: 36px;
  padding-bottom: 10px;
}

.footer-intro h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 300;
}

.footer-intro p {
  max-width: 470px;
  margin: 0;
  color: #d5d5d5;
  font-size: 15px;
  line-height: 1.42;
}

.footer-contact h3,
.footer-pages h3 {
  margin: 2px 0 12px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.footer-contact p {
  margin: 0 0 12px;
  color: #d5d5d5;
  font-size: 15px;
  line-height: 1.45;
}
.footer-contact h3 { color: var(--orange); }

.footer-contact a,
.footer-pages a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-pages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-pages a {
  font-size: 15px;
  line-height: 1.45;
}

.footer-bottom {
  padding: 12px 0 10px;
  border-top: 1px solid #4b4b4b;
}

.footer-bottom p {
  margin: 0;
  color: #c9c9c9;
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-footer { margin-top: 7px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 12px;
  }
  .footer-intro h2 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .footer-intro p,
  .footer-contact p,
  .footer-pages a { font-size: 15px; }
  .footer-bottom { padding: 12px 0 14px; }
}

/* v6: IZBRANO DELO – slike v isti levi liniji kot ostala vsebina,
   opisi kategorij v levem robu, CTA poravnan z ostalimi CTA-ji */
@media (min-width: 761px) {
  .work-layout {
    position: relative;
    display: block;
    width: min(100%, 760px);
    margin-top: 27px;
  }

  .work-grid {
    width: 100%;
  }

  .work-labels {
    position: absolute;
    top: 0;
    left: -173px;
    width: 145px;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 26px;
    padding-top: 3px;
  }

  .work > .page-cta {
    width: min(100%, 760px);
    margin-top: 22px;
    justify-content: flex-end;
  }
}

.footer-address { margin-bottom: 0; line-height: 1.35; }
.footer-contact-meta { display: block; margin-top: 18px; }
.footer-contact p:last-child { margin-bottom: 0; }

.cookie-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  background: rgba(212, 147, 38, .94);
  box-shadow: 0 3px 14px rgba(0,0,0,.08);
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}
.cookie-note p { margin: 0; }
.cookie-note button {
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 5px;
  background: rgba(255,255,255,.12);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cookie-note button:hover,
.cookie-note button:focus-visible { background: rgba(255,255,255,.22); }
@media (max-width: 760px) {
  .cookie-note {
    left: 12px;
    right: 12px;
    bottom: 10px;
    max-width: none;
  }
}




/* o-nas page */
.desktop-nav a[aria-current="page"],
.mobile-nav nav a[aria-current="page"] { color: #fff; }

.about-hero { padding-top: 30px; }
.about-copy { width: min(78%, 830px); }
.about-copy .lead { max-width: 760px; }
.about-gallery-label { margin: 0; font-size: 14px; color: #555; }
.about-legacy-band {
  margin-top: 42px;
  background: #58585b;
  padding: 18px 0 22px;
}
.about-legacy-band .about-gallery-label {
  margin-bottom: 18px;
  color: #fff;
}

.about-mosaic {
  display: grid;
  gap: 12px;
}
.about-mosaic-legacy {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}
.about-mosaic figure,
.about-recent-card,
.about-approach-card { margin: 0; overflow: hidden; background: #fff; }
.about-mosaic figure { aspect-ratio: auto; }
.about-mosaic figure.span-wide,
.about-mosaic figure.span-tall { aspect-ratio: auto; }
.about-mosaic img,
.about-recent-card img,
.about-approach-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform .25s ease;
}
.about-mosaic figure:hover img,
.about-mosaic figure:focus-within img,
.about-recent-card:hover img,
.about-recent-card:focus-within img,
.about-approach-card:hover img,
.about-approach-card:focus-within img { transform: scale(1.02); }

.about-recent-grid {
  --recent-left-fr: 0.32fr;
  --recent-right-fr: 0.68fr;
  --recent-gap: 18px;
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.about-recent-row {
  display: grid;
  align-items: start;
}
.about-recent-row-pair {
  grid-template-columns: minmax(0, var(--recent-left-fr)) minmax(0, var(--recent-right-fr));
  gap: var(--recent-gap);
}
.about-recent-row-reports-wrap {
  align-items: start;
}
.about-recent-spacer {
  min-height: 1px;
}
.about-recent-row-reports {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  gap: var(--recent-gap);
}
.about-recent-card { border: 1px solid #333; background: #fff; }
.about-recent-card.recent-left,
.about-recent-card.recent-right,
.about-recent-card.recent-report { aspect-ratio: auto; }

.about-approach-copy { margin-bottom: 34px; }
.about-approach-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.about-approach-card { background: transparent; aspect-ratio: auto; }
.about-approach-wide { grid-column: span 2; }

.about-principles h2 { margin-bottom: 28px; }
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 42px;
  width: min(100%, 760px);
}
.about-principles-grid article { max-width: 320px; }
.about-principles-grid p {
  margin-bottom: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .about-copy { width: min(88%, 760px); }
  .about-mosaic-legacy { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-approach-gallery { gap: 18px; }
}

@media (max-width: 760px) {
  .about-copy { width: 100%; }
  .about-legacy-band { margin-top: 32px; padding: 16px 0; }
  .about-mosaic-legacy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about-recent-grid,
  .about-approach-gallery,
  .about-principles-grid { grid-template-columns: 1fr; }
  .about-approach-wide { grid-column: auto; }
  .about-recent-grid { gap: 12px; }
  .about-approach-copy { margin-bottom: 24px; }
  .about-principles h2 { margin-bottom: 22px; }
  .about-principles-grid { gap: 18px; }
  .about-gallery-label { font-size: 15px; }
}


/* o-nas v26 spacing refinements */
.about-recent.section-gap { margin-top: 63px; }
.about-approach.section-gap { margin-top: 63px; }
.about-principles.section-gap { margin-top: 42px; }
.about-page + .site-footer { margin-top: 60px; }

/* V izboru novejših projektov so slike brez okvirjev. */
.about-recent-card { border: 0; }

@media (max-width: 760px) {
  .about-recent.section-gap { margin-top: 48px; }
  .about-approach.section-gap { margin-top: 48px; }
  .about-principles.section-gap { margin-top: 32px; }
  .about-page + .site-footer { margin-top: 40px; }
}


/* storitve page */
.services-page {
  padding-bottom: 60px;
}
.services-intro {
  padding-top: 30px;
}
.services-intro-copy {
  width: min(100%, 920px);
}
.services-intro h1 {
  margin-bottom: 16px;
}
.services-intro .lead {
  max-width: 880px;
}
.services-grid {
  margin-top: 34px;
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 72px;
}
.services-grid article {
  max-width: 380px;
}
.services-grid h2 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}
.services-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.services-process {
  padding-top: 18px;
}
.services-process-copy {
  width: min(100%, 880px);
}
.services-process-copy h2 {
  margin-bottom: 18px;
}
.services-process-copy p {
  max-width: 850px;
}
.services-process-gallery {
  margin-top: 36px;
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: center;
}
.services-logo-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.services-logo-stack figure,
.services-materials {
  margin: 0;
  overflow: hidden;
}
.services-logo-stack img,
.services-materials img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
}
.services-logo-stack figure:hover img,
.services-logo-stack figure:focus-within img,
.services-materials:hover img,
.services-materials:focus-within img {
  transform: scale(1.02);
}
.footer-pages a[aria-current="page"] {
  color: var(--orange);
}

@media (max-width: 900px) {
  .services-grid { gap: 28px 44px; }
  .services-process-gallery { width: min(100%, 700px); gap: 30px; }
}

@media (max-width: 760px) {
  .services-page { padding-bottom: 40px; }
  .services-grid {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .services-grid article { max-width: none; }
  .services-process { padding-top: 0; }
  .services-process-gallery {
    margin-top: 28px;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services-logo-stack {
    width: min(100%, 360px);
    gap: 20px;
  }
}

/* Storitve: manjši razmik pred sekcijo PROCES */
.services-process.section-gap { margin-top: 42px; }
@media (max-width: 760px) {
  .services-process.section-gap { margin-top: 32px; }
}

/* reference page */
.reference-page {
  padding-bottom: 60px;
}
.reference-intro {
  padding-top: 30px;
}
.reference-intro h1 {
  margin-bottom: 16px;
}
.reference-intro .lead {
  max-width: 760px;
  font-size: 15px;
  margin-bottom: 0;
}
.reference-section {
  margin-top: 56px;
}
.reference-section > h2 {
  margin: 0 0 16px;
  color: #666;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
}
.reference-section figure {
  margin: 0;
  overflow: hidden;
}
.reference-section img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
  transform-origin: center center;
}
.reference-section figure:hover img,
.reference-section figure:focus-within img {
  transform: scale(1.02);
}
.presentation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.presentation-grid .presentation-wide {
  grid-column: span 2;
}
.reference-grid {
  display: grid;
  align-items: start;
}
.reference-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.reference-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.landscape-grid figure {
  display: flex;
  align-items: center;
}
.portrait-grid figure,
.textbook-grid figure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.portrait-grid img,
.textbook-grid img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
}
.guide-grid {
  row-gap: 24px;
}
.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 54px;
  align-items: center;
}
.logos-grid figure {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logos-grid img {
  width: auto;
  max-width: 100%;
  max-height: 100px;
}
.logo-fersped-card {
  background: #fff;
  padding: 8px 12px;
}
.reference-logos {
  margin-bottom: 10px;
}
.reference-page + .site-footer {
  margin-top: 40px;
}
.desktop-nav a[aria-current="page"],
.mobile-nav nav a[aria-current="page"] {
  color: #fff;
}
.footer-pages a[aria-current="page"] {
  color: var(--orange);
}

@media (max-width: 900px) {
  .reference-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reference-grid-4 { gap: 16px; }
  .logos-grid { gap: 28px 36px; }
}

@media (max-width: 760px) {
  .reference-page { padding-bottom: 40px; }
  .reference-intro { padding-top: 28px; }
  .reference-section { margin-top: 42px; }
  .reference-section > h2 { font-size: 13px; margin-bottom: 13px; }
  .presentation-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .presentation-grid .presentation-wide { grid-column: span 2; }
  .reference-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reference-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .portrait-grid img,
  .textbook-grid img { max-height: none; width: 100%; }
  .ads-grid { grid-template-columns: 1fr; gap: 16px; }
  .logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
  .logos-grid figure { min-height: 70px; }
  .logos-grid img { max-height: 82px; }
  .reference-page + .site-footer { margin-top: 28px; }
}


/* responses page */
.responses-page { padding-bottom: 46px; }
.responses-intro { padding-top: 30px; }
.responses-intro h1 { margin-bottom: 16px; }
.responses-intro .lead { max-width: 760px; margin-bottom: 0; font-size: 15px; }
.responses-list { width: min(calc(100% - 44px), var(--max)); margin-top: 42px; }
.testimonial { position: relative; width: min(100%, 760px); padding: 30px 0 26px; }
.testimonial-first { padding-top: 0; }
.testimonial:not(.testimonial-first)::before { content: ""; position: absolute; top: 0; right: 100%; width: max(120px, calc((100vw - min(calc(100vw - 44px), var(--max))) / 2 + 70px)); height: 1px; margin-right: -72px; background: var(--orange); }
.testimonial-text { margin: 0 0 18px; font-size: 14px; line-height: 1.55; font-style: italic; color: #333; }
.testimonial-author { margin: 0; font-size: 12px; line-height: 1.45; color: #222; }
.testimonial-author strong { font-weight: 400; }
.responses-page + .site-footer { margin-top: 42px; }
@media (max-width: 760px) {
  .responses-page { padding-bottom: 34px; }
  .responses-intro { padding-top: 28px; }
  .responses-list { margin-top: 34px; }
  .testimonial { padding: 24px 0 22px; }
  .testimonial-text { font-size: 15px; line-height: 1.55; }
  .testimonial-author { font-size: 13px; }
  .testimonial:not(.testimonial-first)::before { right: auto; left: -22px; width: 150px; margin-right: 0; }
  .responses-page + .site-footer { margin-top: 30px; }
}


/* contact page */
.contact-page { padding-bottom: 46px; }
.contact-intro { padding-top: 30px; }
.contact-intro h1 { margin-bottom: 16px; }
.contact-intro .lead { max-width: 820px; margin-bottom: 0; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 78px;
  align-items: start;
  width: min(calc(100% - 44px), var(--max));
}
.contact-details h2,
.contact-form-wrap h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.12;
}
.contact-data { margin: 0; }
.contact-data > div {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.contact-data dt { font-size: 14px; font-weight: 600; }
.contact-data dd { margin: 0; font-size: 14px; line-height: 1.45; }
.contact-data a { color: inherit; text-underline-offset: 2px; }
.contact-note { max-width: 440px; margin: 34px 0 0; font-size: 14px; line-height: 1.55; color: #444; }
.contact-form { width: 100%; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  font-size: 13px;
  line-height: 1.45;
}
.form-status.is-success { border-color: #7c9b79; }
.form-status.is-error { border-color: #b98282; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.form-field label span { font-weight: 400; color: #777; }
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 154px; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--orange); }
.contact-submit { border: 0; cursor: pointer; }
.form-help { margin: 12px 0 0; max-width: 480px; color: #777; font-size: 11px; line-height: 1.45; }
.contact-page + .site-footer { margin-top: 42px; }

@media (max-width: 760px) {
  .contact-page { padding-bottom: 34px; }
  .contact-intro { padding-top: 28px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-details h2,
  .contact-form-wrap h2 { margin-bottom: 22px; }
  .contact-data > div { grid-template-columns: 110px 1fr; gap: 12px; }
  .contact-note { margin-top: 28px; }
  .contact-page + .site-footer { margin-top: 30px; }
}


/* Cloudflare Turnstile – kontaktni obrazec */
.turnstile-wrap {
  margin-top: 4px;
}
#turnstile-widget {
  min-height: 0;
  max-width: 100%;
}
.turnstile-help {
  margin: 7px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}
.contact-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* Language switch */
.desktop-nav .lang-link { margin-left: 12px; font-weight: 700; }
.mobile-nav .lang-link { font-weight: 700; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-language-switch {
  margin-left: auto;
  white-space: nowrap;
  color: #c9c9c9;
  font-size: 12px;
  line-height: 1.45;
}
.footer-language-switch a {
  color: #c9c9c9;
  text-decoration: none;
}
.footer-language-switch a:hover {
  color: #fff;
}
.footer-language-switch a.active,
.footer-language-switch a[aria-current="true"] {
  color: var(--orange);
}
@media (max-width: 760px) {
  .footer-bottom {
    align-items: flex-start;
  }
  .footer-language-switch {
    text-align: right;
  }
}
