/*
Theme Name: APE Theme
Author: APE
Version: 1.0
Description: Custom theme built 1:1 from Figma
*/

:root {
  --bg: #fff;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.45);
  --line: rgba(0, 0, 0, 0.18);

  --accent: #f6a623;
  --accent-soft: #ffe39a;

  --pad: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3; /* 130% */
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

/* --- Full-width WP wrappers --- */
#page,
.site,
.site-content,
.content-area,
.entry-content,
.wp-site-blocks {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* --- Generic container (if used anywhere) --- */
.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  padding: 25px 0 25px;
}
.header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  height: 20px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav a {
  padding: 2px 0;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 999;
}

.drawer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px var(--pad);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-links {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.ape-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px var(--pad);
}

/* =========================================================
   HOME — SECTION 1 HERO (background 12x6 grid + 12 blocks)
   ========================================================= */
.ape-hero {
  padding-top: 10px;
}

.ape-small-title {
  margin: 18px 0 12px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.35);
  max-width: 560px;
}

/* line under section 1 */
.ape-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0 0;
}

/* PARENT GRID = your .parent (12 cols x 6 rows) */
.ape-hero-mosaic {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 120px); /* tweak row height */
  grid-column-gap: 0;
  grid-row-gap: 0;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* link itself has no box – children become grid items */
.ape-hero-tile {
  display: contents;
}

/* IMAGE + TEXT generic styles */
.ape-tile-img,
.ape-tile-text {
  position: relative;
}

.ape-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ape-tile-text {
  background: #fff;
  padding: 12px 12px 10px;
}

.ape-tile-label {
  display: block;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 6px;
}

.ape-tile-meta {
  display: flex;
  gap: 8px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* =========================================================
   EXACT GRID LAYOUT (in-depth mapping)
   ========================================================= */

/* project 1 */
.ape-hero-img-1 {
  grid-area: 1 / 1 / 5 / 3;
} /* image */
.ape-hero-text-1 {
  grid-area: 4 / 1 / 5 / 3;
} /* h2,p */

/* project 2 */
.ape-hero-img-2 {
  grid-area: 1 / 3 / 3 / 5;
}
.ape-hero-text-2 {
  grid-area: 1 / 5 / 3 / 7;
}

/* project 3 */
.ape-hero-img-3 {
  grid-area: 3 / 3 / 6 / 5;
}
.ape-hero-text-3 {
  grid-area: 6 / 3 / 7 / 5;
}

/* project 4 */
.ape-hero-img-4 {
  grid-area: 1 / 11 / 3 / 13;
}
.ape-hero-text-4 {
  grid-area: 1 / 9 / 3 / 11;
}

/* project 5 */
.ape-hero-img-5 {
  grid-area: 5 / 11 / 7 / 13;
}
.ape-hero-text-5 {
  grid-area: 5 / 9 / 7 / 11;
}

/* project 6 */
.ape-hero-img-6 {
  grid-area: 4 / 7 / 7 / 9;
}
.ape-hero-text-6 {
  grid-area: 3 / 7 / 4 / 9;
}

/* =========================================================
   TEXT BLOCK UNDER MOSAIC
   ========================================================= */
.ape-hero-below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 22px;
  padding-bottom: 6px;
  align-items: end;
}

.ape-lead {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.35);
  max-width: 520px;
}

.ape-big-title {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 32px; /* Header 1 */
  line-height: 1.09;
  letter-spacing: -0.02em;
  text-align: right;
  padding: 20px 0 50px 0;
}

/* =========================================================
   HOME — SECTION 2 Favourite projects mosaic (6x8 grid)
   ========================================================= */
.ape-featured {
  padding-top: 40px;
}

/* PARENT GRID = your .parent (6 cols x 8 rows) */
.ape-featured-grid {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(
    8,
    120px
  ); /* adjust 120px to make it taller/shorter */
  grid-column-gap: 0;
  grid-row-gap: 0;
}

/* each card link – no box, inner spans become grid items */
.ape-featured-card {
  display: contents;
}

/* generic image + text styling */
.ape-featured-img,
.ape-featured-text {
  position: relative;
}

.ape-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ape-featured-text {
  padding: 10px 12px 8px;
}

.ape-featured-title {
  display: block;
  margin: 0 0 4px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px; /* Header 3 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.8);
  margin: 15px 15px 5px;
}

.ape-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 15px 15px 5px;
}

/* -------------------------
   EXACT GRID LAYOUT (your .div1..div8)
   We use 5 featured projects, each with img+text.
   ------------------------- */

/* PROJECT 1 – big left image + small label to the right */
.ape-featured-img-1 {
  grid-area: 1 / 1 / 4 / 3;
}
.ape-featured-text-1 {
  grid-area: 1 / 3 / 2 / 4;
}

/* PROJECT 2 – top-right small image + caption below */
.ape-featured-img-2 {
  grid-area: 1 / 5 / 3 / 6;
  margin-right: 5px;
}
.ape-featured-text-2 {
  grid-area: 3 / 5 / 4 / 6;
  margin-right: 5px;
}

/* PROJECT 3 – top-far-right small image + caption below */
.ape-featured-img-3 {
  grid-area: 1 / 6 / 3 / 7;
  margin-left: 5px;
}
.ape-featured-text-3 {
  grid-area: 3 / 6 / 4 / 7;
  margin-left: 5px;
}

/* PROJECT 4 – big bottom-right image + text to its left */
.ape-featured-img-4 {
  grid-area: 5 / 5 / 8 / 7;
}
.ape-featured-text-4 {
  grid-area: 5 / 4 / 6 / 5;
}

/* PROJECT 5 – bottom-left: div9 (img) + div10 (text) */
.ape-featured-img-5 {
  grid-area: 6 / 2 / 7 / 3;
} /* div9 */
.ape-featured-text-5 {
  grid-area: 7 / 2 / 8 / 3;
} /* div10 */

/* MOBILE: fall back to simple stacked cards */
@media (max-width: 860px) {
  .ape-featured-grid {
    display: block;
  }

  .ape-featured-card {
    display: block;
    margin-bottom: 20px;
  }

  .ape-featured-img,
  .ape-featured-text {
    grid-area: auto;
    width: 100%;
  }

  .ape-featured-text {
    margin-bottom: 12px;
  }
}

/* =========================================================
   HOME — SECTION 3: USLUGE MOSAIC (4 x 8 grid)
   ========================================================= */

.ape-usluge {
  padding-top: 40px;
  margin-bottom: 100px;
}

.ape-usluge-title {
  margin: 0;
  margin-bottom: 70px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.ape-usluge-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, 120px); /* adjust 120px to change height */
  grid-column-gap: 0;
  grid-row-gap: 0;
}

/* image tiles */
.ape-usl-img {
  position: relative;
  overflow: hidden;
}
.ape-usl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* grey text cards (NOT full width of cell) */
.ape-usl-card {
  position: relative;
  align-self: start;
  justify-self: start;
  background: rgba(120, 120, 120, 0.96);
  color: #fff;
  padding: 10px 16px 14px;
  width: 80%;
  box-sizing: border-box;
}

.ape-usl-card-title {
  margin: 0 0 40px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px; /* Header 3 */
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ape-usl-card-meta {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
}
.ape-usl-card-1 .ape-usl-card-title {
  margin-bottom: 100px;
}

/* --- GRID AREAS (your .div1..div14 mapping) --- */

/* Service 1 */
.ape-usl-img-1 {
  grid-area: 1 / 1 / 5 / 3;
}
.ape-usl-card-1 {
  grid-area: 1 / 1 / 3 / 2;
}

/* Service 2 */
.ape-usl-img-2 {
  grid-area: 1 / 3 / 3 / 5;
}
.ape-usl-card-2 {
  grid-area: 1 / 3 / 2 / 4;
}

/* Service 3 */
.ape-usl-img-3 {
  grid-area: 3 / 3 / 5 / 4;
}
.ape-usl-card-3 {
  grid-area: 3 / 3 / 4 / 4;
}

/* Service 4 */
.ape-usl-img-4 {
  grid-area: 3 / 4 / 5 / 5;
}
.ape-usl-card-4 {
  grid-area: 3 / 4 / 4 / 5;
}

/* Service 5 */
.ape-usl-img-5 {
  grid-area: 5 / 1 / 7 / 3;
}
.ape-usl-card-5 {
  grid-area: 5 / 1 / 6 / 2;
}

/* Service 6 */
.ape-usl-img-6 {
  grid-area: 5 / 3 / 7 / 5;
}
.ape-usl-card-6 {
  grid-area: 5 / 3 / 6 / 4;
}

/* Service 7 */
.ape-usl-img-7 {
  grid-area: 7 / 1 / 9 / 5;
}
.ape-usl-card-7 {
  grid-area: 7 / 1 / 8 / 2;
}

/* Mobile: stack them normally */
@media (max-width: 860px) {
  .ape-usluge-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ape-usl-img,
  .ape-usl-card {
    grid-area: auto;
    max-width: none;
  }

  .ape-usl-card {
    margin-bottom: 16px;
  }
}

/* =========================================================
   TEAM SECTION
   ========================================================= */

.ape-team {
  padding: 36px 0 32px;
}

.ape-team-grid {
  display: grid;
  grid-template-columns: 150px auto minmax(0 1fr);
  column-gap: 40px;
  align-items: flex-start;
}

.ad-hr {
  display: none;
}

/* left label */
.ape-team-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

/* intro paragraph (middle column) */
.ape-team-intro {
  grid-column: 2;
  grid-row: 1;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.7);
}

/* right column – whole team block */
.ape-team-list {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

/* first row with 2 main members */
.ape-team-main-row,
.ape-team-rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 18px;
}

/* separator line between main row and the rest
   (only under the team list, not under intro) */
.ape-team-inner-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0 14px;
}

/* individual member card */
.ape-team-member {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ape-team-photo img {
  display: block;
  width: 140px;
  height: auto;
}

.ape-team-text {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ape-team-name {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px; /* Header 3 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.ape-team-role {
  color: rgba(0, 0, 0, 0.6);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
}

.ape-team-email {
  display: inline-block;
  margin-top: 2px;
  text-decoration: none;
  color: var(--accent);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
}

.ape-team-email:hover {
  text-decoration: underline;
}

/* responsive – stack columns */
@media (max-width: 900px) {
  .ape-team-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .ape-team-title {
    grid-column: 1;
    grid-row: 1;
  }

  .ape-team-intro {
    grid-column: 1;
    grid-row: 2;
  }

  .ape-team-list {
    grid-column: 1;
    grid-row: 3;
  }

  .ape-team-main-row,
  .ape-team-rest {
    grid-template-columns: 1fr;
  }

  .ape-team-photo img {
    width: 120px;
  }
}

/* =========================================================
   HOME — CTA (legacy)
   ========================================================= */

.ape-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  background: #939598;
  color: #fff;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* =========================================================
   BOTTOM CTA SECTIONS
   ========================================================= */

.ape-cta-cover {
  margin-top: 40px;
}

.ape-cta-cover-inner {
  position: relative;
  margin-bottom: 100px;
}

.ape-cta-cover-inner img {
  width: 100%;
  display: block;
}

/* big orange box on the Croatia image */
.ape-cta-cover-box {
  position: absolute;
  top: 0;
  left: -28px;

  width: 325px;
  min-height: 220px;

  padding: 22px 24px 20px;

  background: var(--accent);
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* top paragraph in the box */
.ape-cta-cover-top {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* bottom paragraph in the box */
.ape-cta-cover-bottom {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ape-cta-cover-box h5 {
  margin: 0 0 6px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px; /* Header 3 (close enough for box heading) */
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* middle strip */
.ape-cta-strip {
  padding: 32px 0 56px;
}

.ape-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ape-cta-strip-title {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 32px; /* Header 1 */
  line-height: 1.09;
  letter-spacing: -0.02em;
}

.ape-cta-strip-link {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.55);
}

.ape-cta-strip-link:hover {
  color: var(--accent);
}

/* bottom note */
.ape-cta-bottom {
  padding: 18px 0 40px;
}

/* CHANGED: stack text + button vertically */
.ape-cta-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ape-cta-bottom-text {
  margin: 0;
  max-width: 520px;
  color: rgba(0, 0, 0, 0.5);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* smaller kontakt button */
.ape-btn-sm {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding: 6px 16px;
}

/* mobile adjustments */
@media (max-width: 860px) {
  .ape-cta-cover-box {
    position: static;
    max-width: none;
    margin: 12px 0 0;
  }

  .ape-cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   USLUGE PAGE
   ========================================================= */
.page-usluge .page-title {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 32px; /* Header 1 */
  line-height: 1.09;
  letter-spacing: -0.02em;
  margin: 40px 0 30px;
}

.page-usluge .usluge-section {
  padding: 60px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-usluge .usluge-hero,
.page-usluge .usluge-hero-placeholder {
  width: 100%;
  display: block;
  margin: 0 0 22px;
}

.page-usluge .usluge-hero-placeholder {
  aspect-ratio: 16/6;
  background: #eee;
}

.page-usluge .usluge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.page-usluge .usluge-title {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 32px; /* Header 2 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 50px;
}

.usluge-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px 34px;
  justify-content: end;
  margin: -46px 0 40px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.45);
}

.usluge-nav a {
  color: inherit;
  white-space: nowrap;
}
.usluge-nav a:hover {
  color: var(--accent);
}

.page-usluge .usluge-text {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 1 */
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
}

.page-usluge .usluge-right {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 18px 0 22px;
  margin-top: 85px;
}

.page-usluge .usluge-ref-label {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin: 0 0 12px;
  text-align: right;
  padding-top: 6px;
}

.page-usluge .usluge-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-usluge .project-mini img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.page-usluge .project-mini__meta {
  padding-top: 8px;
  color: rgba(0, 0, 0, 0.55);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px; /* Paragraph 3 */
  line-height: 1;
  letter-spacing: -0.01em;
}

.usluge-backtop-wrap {
  display: flex;
  justify-content: center;
  margin: 60px 0 20px;
}

.usluge-backtop {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px; /* Caption 1 */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  background: #fff;
}

.usluge-backtop:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   KONTAKT PAGE
   ========================================================= */

/* If any global rule causes tiny horizontal scroll, keep this */
.page-kontakt{
  overflow-x: hidden;
}

/* MAP – clean, centered, no overflow */
.kontakt-map{
  width: 100%;
  margin: 0;               /* remove the 5px test margin */
  padding: 0;
  overflow: hidden;        /* hard stop for any iframe quirks */
}

.kontakt-map-embed{
  width: 100%;
  margin: 0;
}

/* IMPORTANT: iframe must stay 100% and never receive calc/margins */
.kontakt-map-embed iframe{
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 420px;
  border: 0;
  margin: 0 !important;
}

/* Placeholder */
.kontakt-map-placeholder{
  width: 100%;
  height: 420px;
  background: #eee;
}

/* Separator */
.kontakt-sep{
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  margin: 50px 0 0;
}

/* Top grid */
.kontakt-top{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 26px;
  padding: 22px 0 75px;
}

.kontakt-top__cell p{
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.kontakt-top__cell--muted{ color: rgba(0,0,0,.45); }
.kontakt-top__cell--accent{ color: var(--accent); }
.kontakt-top__cell--right{ text-align: left; }

/* Yellow section */
.kontakt-yellow{
  background: var(--accent-soft);
  padding: 34px 0 40px;
  width: 100%;
}

.kontakt-yellow__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 26px;
}

.kontakt-yellow__col p{
  margin: 0 0 10px;
  color: #939598;
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.kontakt-yellow__col p:last-child{ margin-bottom: 0; }




/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--accent);
  color: #fff;
  padding: 56px 0 26px;
}

/* TOP AREA: APE logo left, 3×2 grid right */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 220px;
}

/* left main logo – fixed-ish small column */
.footer-brand {
  flex: 0 0 auto;
}

.footer-logo-main {
  height: 27.62px;
  width: auto;
  display: block;
}

/* right side grid – hugs right edge, doesn’t stretch */
.footer-right-grid {
  flex: 0 1 auto; /* this column shrinks before the left one */
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-auto-rows: auto;
  column-gap: 40px;
  row-gap: 16px;
  align-items: start;
  justify-content: end; /* push whole block to the right */
}

/* two logos per column */
.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* logo heights: 31px, last one 28px */
.footer-logo {
  height: 31px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo--small {
  height: 28px;
}

/* contact text stays as before */
.footer-contact {
  text-align: right;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.footer-contact-line {
  margin-bottom: 30px;
}
.footer-contact-line:last-child {
  margin-bottom: 0;
}
.footer-contact a {
  color: #fff;
}
.footer-contact a:hover {
  opacity: 0.85;
}

/* bottom strip */
.footer-bottom {
  margin-top: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.9;
}

.footer-in {
  color: #fff;
  font-weight: 500;
}

.footer-copy {
  text-align: right;
}

/* =========================================================
   SINGLE PROJECT (ape_project) — CLEAN FULL SECTION CSS
   ========================================================= */

.ape-project-page {
  padding-top: 32px;
  padding-bottom: 0;
}

/* -------------------------
   Header
   ------------------------- */
.ape-project-header {
  margin-bottom: 34px;
}

.ape-breadcrumb {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}

.ape-breadcrumb a {
  color: inherit;
}

.ape-breadcrumb a:hover {
  color: var(--accent);
}

.ape-project-title {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.09;
  letter-spacing: -0.02em;
}

/* -------------------------
   Main layout
   ------------------------- */
.ape-project-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

/* -------------------------
   Left — Gallery label
   ------------------------- */
.ape-project-gallery-label {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

/* =========================================================
   FIGMA-LIKE LEFT GALLERY STRUCTURE
   - Hero (big image + meta)
   - Row (rail + 2 cards)
   - Feature (text + wide image)
   - Remaining cards grid
   ========================================================= */

/* HERO */
.ape-proj-hero {
  display: grid;
  grid-template-columns: minmax(0, 538px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.ape-proj-hero-media {
  margin: 0;
  width: 100%;
}

.ape-proj-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.ape-proj-hero-meta {
  padding-top: 4px;
  min-width: 0;
}

.ape-proj-hero-title {
  margin: 0 0 8px;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.09;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
}

.ape-proj-hero-sub,
.ape-proj-hero-year {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.ape-proj-hero-notes {
  margin-top: 14px;
}

.ape-proj-hero-note {
  margin: 0 0 8px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.55);
}

.ape-proj-hero-note:last-child {
  margin-bottom: 0;
}

/* ROW (rail + 2 cards) */
.ape-proj-row {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 268px);
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}

/* CARD (shared) */
.ape-proj-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ape-proj-card-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.ape-proj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ape-proj-card-title {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
}

.ape-proj-card-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* FEATURE (text + wide image) */
.ape-proj-feature {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}

.ape-proj-feature-title {
  margin: 0 0 10px;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.09;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
}

.ape-proj-feature-sub,
.ape-proj-feature-year {
  margin: 0;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.ape-proj-feature-media {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: none;
}

.ape-proj-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remaining cards grid */
.ape-proj-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 268px));
  justify-content: start;
  gap: 22px 18px;
}

/* -------------------------
   Right — Meta (unchanged styles, cleaned)
   ------------------------- */
.ape-project-right {
  color: rgba(0, 0, 0, 0.75);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ape-project-rc-block {
  margin-bottom: 24px;
}

.ape-project-rc-title {
  margin: 0 0 4px;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ape-project-rc-subtitle {
  margin: 0 0 12px;
  color: var(--accent);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ape-project-basic-meta {
  color: rgba(0, 0, 0, 0.6);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ape-project-basic-line {
  margin-bottom: 2px;
}

.ape-project-meta-block {
  margin-bottom: 16px;
}

.ape-project-meta-label {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}

.ape-project-meta-block p {
  margin: 0;
}

.ape-project-download a {
  color: var(--accent);
  text-decoration: none;
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ape-project-download a:hover {
  text-decoration: underline;
}

/* Bottom yellow text block */
.ape-project-bottom {
  margin-top: 70px;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding: 30px var(--pad) 34px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Similar projects */
.ape-project-similar {
  margin-top: 40px;
}

.ape-project-similar-label {
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}

.ape-project-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ape-project-similar-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ape-project-similar-title {
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.65);
  font-family:
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}


/* =========================================================
   HERO title scaling (desktop)
   ========================================================= */
.ape-proj-hero-title {
  /* desktop baseline (keeps your look but already a bit safer) */
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.06;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* =========================================================
   HERO stacks earlier (tablet) — best solution
   ========================================================= */

/* Choose the breakpoint where it should stack */
@media (max-width: 1100px) {
  .ape-proj-hero {
    grid-template-columns: 1fr; /* stack */
    gap: 14px;
  }

  .ape-proj-hero-meta {
    padding-top: 0;
    min-width: 0;
  }

  /* Scale title down a bit on tablet */
  .ape-proj-hero-title {
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* Keep hero image visually dominant */
  .ape-proj-hero-media {
    max-width: 538px; /* keeps your design language */
  }

  .ape-proj-hero-media img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Featured (last) image max width on desktop/tablet */
.ape-proj-feature-media {
  max-width: 500px;
  width: 100%;
  justify-self: start; /* prevents stretching in grid */
}

.ape-proj-feature-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.ape-project-right-hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 0 18px;
}

/* Similar projects – limit image width */
.ape-project-similar-item img{
  max-width: 201px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* keep items aligned nicely in the grid */
.ape-project-similar-item{
  justify-self: start;
}

.ape-project-similar-item{
  max-width: 201px;
}


/* =========================================================
   FEATURE (last image) — keep it big, never tiny
   ========================================================= */

/* Desktop/tablet: give more space to the image column */
.ape-proj-feature {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Make the media visually dominant */
.ape-proj-feature-media {
  aspect-ratio: 16 / 9;
  min-height: 380px; /* key: prevents tiny featured image */
  width: 100%;
}

/* Tablet: still keep it big */
@media (max-width: 1100px) {
  .ape-proj-feature {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 16px;
  }

  .ape-proj-feature-media {
    min-height: 340px;
  }
}

/* Small screens: stack, but keep good height */
@media (max-width: 760px) {
  .ape-proj-feature {
    grid-template-columns: 1fr;
  }

  .ape-proj-feature-media {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }
}

/* =========================================================
   MOBILE SLIDER (hero + 2 row images + featured)
   ========================================================= */

/* hidden by default (desktop/tablet) */
.ape-proj-mobile-slider {
  display: none;
}

@media (max-width: 760px) {
  /* show slider */
  .ape-proj-mobile-slider {
    display: block;
    margin-bottom: 18px;
  }

  /* hide desktop gallery blocks on mobile */
  .ape-proj-hero,
  .ape-proj-row,
  .ape-proj-feature,
  .ape-proj-cards-grid {
    display: none !important;
  }

  .ape-proj-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;

    scrollbar-width: none; /* firefox */
  }

  .ape-proj-slider-track::-webkit-scrollbar {
    display: none; /* chrome/safari */
  }

  .ape-proj-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .ape-proj-slide-media {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
  }

  .ape-proj-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ape-proj-slide-meta {
    margin-top: 10px;
  }

  .ape-proj-slide-title {
    margin: 0 0 8px;
    font-family:
      "Geist",
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.55);
  }

  .ape-proj-slide-sub,
  .ape-proj-slide-year {
    margin: 0;
    font-family:
      "Geist",
      system-ui,
      -apple-system,
      "Segoe UI",
      sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--accent);
  }

  /* Dots */
  .ape-proj-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .ape-proj-dot {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.15);
    padding: 0;
    cursor: pointer;
  }

  .ape-proj-dot.is-active {
    background: var(--accent);
  }
}
/* Mobile: right column goes below left */
@media (max-width: 760px) {
  .ape-project-main {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .ape-project-right {
    order: 2;
  }

  .ape-project-left {
    order: 1;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------- tablet-ish ---------- */
@media (max-width: 980px) {
  .page-usluge .usluge-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-usluge .usluge-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kontakt-map-embed iframe,
  .kontakt-map-placeholder {
    height: 320px !important;
  }

  .kontakt-top,
  .kontakt-yellow__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kontakt-top,
  .kontakt-yellow__grid{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}



/* ---------- main mobile layout (matches PNG) ---------- */
@media (max-width: 860px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 14px; /* Paragraph 1 stays */
  }

  .site-header {
    padding: 18px 0 0;
  }

  .header-row {
    align-items: center;
  }

  /* keep nav simple on mobile, hamburger only if you want later */
  .nav {
    font-size: 12px; /* Caption 1 */
  }

  .ape-page {
    padding: 32px var(--pad) 40px;
    padding-bottom: 0;
  }

  /* ---------- HERO ---------- */

  .ape-small-title {
    margin: 14px 0 10px;
    font-size: 12px; /* Caption 1 */
  }

  /* HERO MOSAIC: 2×6 grid, only first 2 projects */
  .ape-hero-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 120px);
    grid-column-gap: 0;
    grid-row-gap: 0;
    height: auto;
  }

  /* children act as grid items */
  .ape-hero-tile {
    display: contents;
  }

  /* hide all hero tiles except first two projects */
  .ape-hero-mosaic .ape-hero-tile:nth-of-type(n + 3) {
    display: none;
  }

  .ape-tile-img,
  .ape-tile-text {
    width: 100%;
    grid-area: auto;
  }

  .ape-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ape-tile-text {
    padding: 8px 10px 6px;
    margin: 0;
  }

  /* MOBILE GRID POSITIONS */
  .ape-hero-img-1 {
    grid-area: 1 / 1 / 4 / 2;
  }
  .ape-hero-text-1 {
    grid-area: 4 / 1 / 5 / 2;
  }
  .ape-hero-img-2 {
    grid-area: 3 / 2 / 6 / 3;
  }
  .ape-hero-text-2 {
    grid-area: 6 / 2 / 7 / 3;
  }

  .ape-hero-below {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .ape-lead {
    font-size: 16px; /* Paragraph 1 */
    max-width: none;
  }

  .ape-big-title {
    text-align: left;
    font-size: 64px; /* Header 1 */
    line-height: 1.09;
    padding: 12px 0 20px;
  }

  .ape-hr {
    margin-top: 12px;
  }

  /* ---------- FEATURED PROJECTS ---------- */

  .ape-featured {
    padding-top: 32px;
  }

  .ape-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ape-featured-card {
    display: block;
  }

  .ape-featured-img {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .ape-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ape-featured-text {
    padding: 8px 12px 10px;
    margin: 0;
  }

  .ape-featured-img-2,
  .ape-featured-img-3,
  .ape-featured-text-2,
  .ape-featured-text-3,
  .ape-featured-text-4,
  .ape-featured-img-5,
  .ape-featured-text-5 {
    margin-left: 0;
    margin-right: 0;
  }

  /* ---------- USLUGE MOSAIC ---------- */

  .ape-usluge-grid {
    display: block;
  }

  .ape-usl-img {
    position: relative;
    height: 260px;
    overflow: hidden;
    margin: 0;
  }

  .ape-usl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .ape-usl-card {
    position: relative;
    width: 90%;
    max-width: none;
    top: -260px;
    margin-bottom: -115px;
    padding: 16px 18px 14px;
    background: rgba(120, 120, 120, 0.96);
    box-sizing: border-box;
  }
  .ape-usl-card-1 .ape-usl-card-title {
    margin-bottom: 40px;
  }

  /* ---------- TEAM ---------- */

  .ape-team {
    padding: 28px 0 24px;
  }

  .ape-team-grid {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .ape-team-title {
    grid-column: 1;
    grid-row: 1;
  }

  .ape-team-intro {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px; /* Paragraph 1 */
  }

  .ape-team-list {
    grid-column: 1;
    grid-row: 3;
  }

  .ape-team-main-row,
  .ape-team-rest {
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
  }

  .ape-team-photo img {
    width: 120px;
    height: auto;
  }

  .ape-team-inner-separator {
    margin: 16px 0 12px;
  }

  /* ---------- CTA (map + strips) ---------- */

  .ape-cta-cover {
    margin-top: 32px;
  }

  .ape-cta-cover-inner {
    margin-bottom: 36px;
  }

  .ape-cta-cover-box {
    position: static;
    width: calc(100% + 2 * var(--pad));
    max-width: none;
    margin-top: 10px;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    min-height: 100px;
    padding: 18px var(--pad) 16px;
  }

  .ape-cta-cover-box h5 {
    font-size: 16px; /* Header 3 */
  }

  .ape-cta-strip {
    padding: 20px 0 32px;
  }

  .ape-cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ape-cta-strip-title {
    font-size: 32px; /* Header 1 */
  }

  .ape-cta-strip-link {
    font-size: 12px; /* Caption 1 */
  }

  .ape-cta-bottom {
    padding: 16px 0 30px;
  }

  .ape-cta-bottom-inner {
    align-items: flex-start;
    gap: 12px;
  }

  .ape-cta-bottom-text {
    font-size: 14px; /* Paragraph 1 */
  }

  .ape-btn-sm {
    font-size: 12px; /* Caption 1 */
    padding: 6px 16px;
  }

  /* ---------- KONTAKT PAGE -Mobile--------- */

  .page-kontakt {
    padding-top: 18px;
  }

  .kontakt-top,
  .kontakt-yellow__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kontakt-top__cell p {
    font-size: 14px; /* Paragraph 1 */
  }

  /* ---------- FOOTER MOBILE ---------- */

  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }

  .footer-brand {
    margin-bottom: 100px; /* bigger gap from main logo (like your image) */
  }

  .footer-right-grid {
    justify-self: start;
    width: 100%;
    grid-template-columns: 1fr; /* stack columns */
    row-gap: 34px; /* spacing between blocks */
    column-gap: 0;
    justify-items: start;
  }

  .footer-logo-col {
    gap: 34px; /* different gap on mobile inside logo columns */
    align-items: flex-start; /* left aligned */
  }

  .footer-logo-col:nth-child(2) {
    gap: 100px;
  }

  .footer-contact {
    text-align: left;
  }
  .footer-bottom {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.9;
  }

  /* ---------- USLUGE NAV ---------- */
  .usluge-nav {
    grid-template-columns: 1fr;
    justify-content: flex-start;
    margin: 20px 0 30px;
  }
}

@media (max-width: 640px){
  .kontakt-top,
  .kontakt-yellow__grid{
    grid-template-columns: 1fr;
  }

  .kontakt-map-embed iframe,
  .kontakt-map-placeholder{
    height: 360px;
  }
}

/* ---------- small phones ---------- */
@media (max-width: 620px) {
  .kontakt-top,
  .kontakt-yellow__grid {
    grid-template-columns: 1fr;
  }

  .kontakt-sep {
    margin-top: 14px;
  }

  .footer-top {
    padding-bottom: 100px;
  }

  .ape-team-inner-separator {
    display: none;
  }
  .ape-team-main-row {
    margin-bottom: 18px;
  }

  .ad-hr {
    display: block;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 18px 0 14px;
  }
}

/* =========================================
   FULL-BLEED IMAGES (ignore page padding)
   ========================================= */

/* Home hero mosaic */
.ape-hero-mosaic {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}

/* Featured projects grid */
.ape-featured-grid {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}

/* Usluge mosaic images */
.ape-usluge-grid {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}

/* Kontakt page map */
.kontakt-map-embed iframe,
.kontakt-map-placeholder {
  width: calc(100% + 2 * var(--pad)) !important;
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}

/* Project hero image on single project */
.ape-project-hero img {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}

/* Bottom CTA map/image */
.ape-cta-cover-inner img {
  width: calc(100% + 2 * var(--pad));
  max-width: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
}
