/* ==========================================================================
   Gregor Primik s.p. — krovstvo, kleparstvo, sanacije, višinska dela
   ========================================================================== */

/* ---------- Pisave (lokalno gostovane, Archivo Variable: wght 100–900, wdth 62–125) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* metrično prilagojen nadomestni font -- zmanjša premik vsebine ob nalaganju */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 86%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ---------- Tokeni ---------- */
:root {
  --ink: #0f1011;
  --ink-2: #141618;
  --graphite: #191b1e;
  --steel: #2a2d31;
  --light: #f3f2ef;
  --paper: #eae8e3;
  --white: #ffffff;

  --text: #141516;
  --muted: #5b5f64;
  --muted-dark: #a3a7ac;
  --line: rgba(20, 21, 22, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);

  --accent: #c8732f;        /* baker */
  --accent-hover: #dc8746;
  --accent-deep: #94501c;   /* baker za drobno besedilo na svetli podlagi (AA) */
  --danger: #b3261e;

  --font: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 767px) {
  :root { --header-h: 66px; }
}

/* ---------- Osnova ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* Jasno označen placeholder za manjkajoče podatke stranke (glej config/config.php) */
.is-placeholder {
  outline: 1px dashed #e8590c !important;
  outline-offset: 4px;
  color: #e8590c !important;
}

/* ---------- Tipografija ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-deep);
}
.eyebrow--light .eyebrow__num,
.section--dark .eyebrow__num,
.section--graphite .eyebrow__num { color: var(--accent); }
.eyebrow__num::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2.15rem, 4.6vw, 4.1rem);
  font-weight: 760;
  font-stretch: 104%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Gumbi ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--sm { --btn-h: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn--lg { --btn-h: 58px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.38); color: var(--white); background: rgba(15, 16, 17, 0.12); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--ghost:hover .icon { transform: none; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--accent); color: var(--ink); }

.btn:active { transform: translateY(1px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  /* nežna senca za berljivost nad hero fotografijo */
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.55), rgba(10, 11, 12, 0));
  pointer-events: none;
  transition: opacity 0.35s;
}
.site-header.is-scrolled,
.site-header.is-solid,
body.menu-open .site-header {
  background: rgba(15, 16, 17, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.site-header.is-scrolled::before,
.site-header.is-solid::before,
body.menu-open .site-header::before { opacity: 0; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
}
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.08rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.main-nav__list { display: flex; align-items: center; gap: 0.25rem; }
.main-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.94rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav__link:hover,
.main-nav__link.is-active { color: var(--white); }
.main-nav__link:hover::after,
.main-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: 0;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 19px; }
.nav-toggle__bar:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header__inner { gap: 1rem; }
}
@media (max-width: 599px) {
  .site-header__cta { display: none; }
  .brand__name { font-size: 0.98rem; }
}

/* ---------- Mobilni meni ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }

.mobile-menu__list { border-top: 1px solid var(--line-dark); }
.mobile-menu__list li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 750;
  font-stretch: 104%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.2s;
}
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) .mobile-menu__link { transition-delay: 0.04s; }
.mobile-menu.is-open li:nth-child(3) .mobile-menu__link { transition-delay: 0.08s; }
.mobile-menu.is-open li:nth-child(4) .mobile-menu__link { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(5) .mobile-menu__link { transition-delay: 0.16s; }
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__num {
  font-size: 0.78rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mobile-menu__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 1.5rem; }
.mobile-menu__contact { display: grid; gap: 0.75rem; }
.mobile-menu__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
}
.mobile-menu__contact-link .icon { color: var(--accent); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
@media (min-height: 1100px) {
  .hero { min-height: 92svh; }
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.js .hero__img { animation: heroZoom 1.8s var(--ease) both; }
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, 0.95) 0%, rgba(10, 11, 12, 0.86) 34%, rgba(10, 11, 12, 0.45) 64%, rgba(10, 11, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(10, 11, 12, 0.85) 0%, rgba(10, 11, 12, 0) 38%);
}

.hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4rem));
  padding-bottom: clamp(7rem, 14vh, 9.5rem);
}
.hero__content { max-width: 800px; }

.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  font-weight: 780;
  font-stretch: 102%;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: 1.6rem;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}
.hero__subtitle::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--accent);
  transform: translateY(-2px);
}
.hero__text {
  margin-top: 1rem;
  max-width: 50ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(255, 255, 255, 0.74);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.4rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; }

.hero__bar {
  position: absolute;
  inset: auto 0 0 0;
  border-top: 1px solid var(--line-dark);
  background: rgba(15, 16, 17, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__bar-inner { display: flex; align-items: stretch; }
.hero__services { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.hero__services li + li { border-left: 1px solid var(--line-dark); }
.hero__services a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 22px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.25s, color 0.25s;
}
.hero__services li:first-child a { padding-left: 0; }
.hero__services span {
  font-size: 0.74rem;
  font-stretch: 118%;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.hero__services a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.hero__scroll {
  display: grid;
  place-items: center;
  width: 68px;
  border-left: 1px solid var(--line-dark);
  color: var(--white);
  transition: color 0.25s;
}
.hero__scroll .icon { width: 20px; height: 20px; }
.hero__scroll:hover { color: var(--accent); }
.hero__scroll:hover .icon { animation: nudge 0.9s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* vstopna animacija hero vsebine -- čisti CSS, brez čakanja na JS (ne zamika LCP) */
.hero-anim { animation: heroIn 0.8s var(--ease) both; }
.hero__content > .hero-anim:nth-child(2) { animation-delay: 0.06s; }
.hero__content > .hero-anim:nth-child(3) { animation-delay: 0.14s; }
.hero__content > .hero-anim:nth-child(4) { animation-delay: 0.2s; }
.hero__content > .hero-anim:nth-child(5) { animation-delay: 0.26s; }
.hero__content > .hero-anim:nth-child(6) { animation-delay: 0.32s; }
@keyframes heroIn {
  from { opacity: 0.01; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(10, 11, 12, 0.7) 0%, rgba(10, 11, 12, 0.72) 40%, rgba(10, 11, 12, 0.93) 100%);
  }
  .hero__img { object-position: 70% 30%; }
  .hero__bar { display: none; }
  .hero__inner { align-items: flex-end; padding-bottom: clamp(3rem, 8vh, 5rem); }
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
  .hero__trust { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   SEKCIJE
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); color: var(--text); }
.section--paper { background: var(--paper); color: var(--text); }
.section--dark { background: var(--ink); color: var(--white); }
.section--graphite { background: var(--graphite); color: var(--white); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head__lead {
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.section--dark .section-head__lead { color: var(--muted-dark); }

@media (max-width: 899px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Storitve ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(300px, auto);
  gap: 16px;
}
.service {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}
.service--1 { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 640px; }
.service--2 { grid-column: 8 / 13; grid-row: 1; }
.service--3 { grid-column: 8 / 13; grid-row: 2; }
.service--4 { grid-column: 1 / 8; grid-row: 3; min-height: 460px; }
.service--5 { grid-column: 8 / 13; grid-row: 3; min-height: 460px; }

.service__media { position: absolute; inset: 0; z-index: -1; }
.service__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.08) 0%, rgba(10, 11, 12, 0.3) 40%, rgba(10, 11, 12, 0.92) 100%);
  transition: background-color 0.4s;
}
.service--4 .service__img { object-position: 50% 62%; }
.service--5 .service__img { object-position: 50% 30%; }
.service::before {
  /* bakrena linija ob hoverju */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  z-index: 2;
}
.service:hover::before,
.service:focus-within::before { transform: scaleX(1); }
.service:hover .service__img { transform: scale(1.05); }

.service__body {
  position: relative;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.service__num {
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
}
.service__num::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.service__title {
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
  font-weight: 760;
  font-stretch: 104%;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.service--1 .service__title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.service__text {
  max-width: 42ch;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.service__link .icon { width: 18px; height: 18px; color: var(--accent); transition: transform 0.3s var(--ease); }
.service__link:hover .icon { transform: translateX(5px); }
.service__link:hover { color: var(--accent-hover); }

@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--1 { grid-column: 1 / -1; grid-row: auto; min-height: 520px; }
  .service--2, .service--3, .service--4, .service--5 { grid-column: auto; grid-row: auto; min-height: 420px; }
}
@media (max-width: 639px) {
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service--1, .service--2, .service--3, .service--4, .service--5 { grid-column: 1; min-height: 440px; }
}

/* ---------- Filtri ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}
.filters__btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters__btn:hover { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.filters__btn.is-active { background: var(--white); border-color: var(--white); color: var(--ink); }
.filters--dark .filters__btn { border-color: var(--line); color: var(--muted); }
.filters--dark .filters__btn:hover { border-color: var(--text); color: var(--text); }
.filters--dark .filters__btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

@media (max-width: 639px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__btn { flex: none; }
}

/* ---------- Galerija referenc ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(130px, 12.5vw, 185px);
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item { grid-column: span 4; grid-row: span 2; }
.gallery__item--wide { grid-column: span 8; }
.gallery__item--tall { grid-row: span 4; }
.gallery__item--large { grid-column: span 8; grid-row: span 4; }
.gallery.is-filtered .gallery__item { grid-column: span 4; grid-row: span 2; }
.gallery__item.is-hidden { display: none; }

.gallery__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--steel);
}
.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: clamp(1rem, 2vw, 1.6rem);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 11, 12, 0) 40%, rgba(10, 11, 12, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__type {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  transform: translateY(10px);
  transition: transform 0.45s var(--ease);
}
.gallery__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  transform: translateY(10px);
  transition: transform 0.45s var(--ease) 0.03s;
}
.gallery__loc .icon { width: 15px; height: 15px; }
.gallery__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.76rem;
  font-weight: 650;
  font-stretch: 114%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transform: translateY(10px);
  transition: transform 0.45s var(--ease) 0.06s;
}
.gallery__cta .icon { width: 16px; height: 16px; }
.gallery__link:hover .gallery__overlay,
.gallery__link:focus-visible .gallery__overlay { opacity: 1; }
.gallery__link:hover .gallery__overlay > *,
.gallery__link:focus-visible .gallery__overlay > * { transform: none; }
.gallery__link:hover .gallery__img { transform: scale(1.045); }
.gallery__link:focus-visible { outline-offset: -3px; }

/* na napravah brez hoverja je vrsta projekta vedno vidna */
@media (hover: none) {
  .gallery__overlay { opacity: 1; background: linear-gradient(180deg, rgba(10, 11, 12, 0) 55%, rgba(10, 11, 12, 0.8) 100%); }
  .gallery__overlay > * { transform: none; }
  .gallery__cta { display: none; }
  .gallery__type { font-size: 1rem; }
}

@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 20vw, 190px); }
  .gallery__item, .gallery.is-filtered .gallery__item { grid-column: span 3; grid-row: span 2; }
  .gallery__item--wide, .gallery__item--large { grid-column: span 6; }
  .gallery__item--large { grid-row: span 3; }
}
@media (max-width: 639px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .gallery__item, .gallery.is-filtered .gallery__item { grid-column: span 1; grid-row: span 1; }
  .gallery__item--wide, .gallery__item--large { grid-column: span 2; }
  .gallery__item--large { grid-row: span 2; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(8, 9, 10, 0.96);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(var(--gutter), env(safe-area-inset-left));
}
.lightbox__counter {
  font-size: 0.82rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  padding: 0 clamp(1rem, 7vw, 6rem) clamp(1rem, 4vh, 2.5rem);
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100svh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s;
  touch-action: pan-y;
}
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__caption { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); text-align: center; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(15, 16, 17, 0.6);
  color: var(--white);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev { left: max(12px, env(safe-area-inset-left)); }
.lightbox__next { right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 639px) {
  .lightbox__nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox__figure { padding-bottom: 84px; }
  .lightbox__img { max-height: calc(100svh - 190px); }
}

/* ---------- Zakaj mi ---------- */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.why__head { position: sticky; top: calc(var(--header-h) + 3rem); }
.why__lead { max-width: 40ch; margin: 1.4rem 0 2rem; font-size: 1.08rem; color: var(--muted); }

.reasons { border-top: 1px solid var(--line); counter-reset: none; }
.reason {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.reason::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.reason:hover::before { transform: scaleX(1); }
.reason__num {
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}
.reason__title {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 720;
  font-stretch: 104%;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.reason__text { max-width: 48ch; margin-top: 0.5rem; color: var(--muted); }
.reason__icon { color: #8d9196; padding-top: 0.25rem; transition: color 0.3s; }
.reason__icon .icon { width: 30px; height: 30px; }
.reason:hover .reason__icon { color: var(--accent-deep); }

@media (max-width: 899px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__head { position: static; }
}
@media (max-width: 479px) {
  .reason { grid-template-columns: 44px minmax(0, 1fr); }
  .reason__icon { display: none; }
}

/* ---------- O nas ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0 18px 18px 0;
}
.about__media::before {
  /* bakren okvir, zamaknjen za fotografijo */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent);
  opacity: 0.7;
}
.about__img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.about__tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about__text { display: grid; gap: 1.1rem; margin-top: 1.8rem; max-width: 56ch; color: var(--muted-dark); font-size: 1.08rem; }
.about__text p:first-child { color: var(--white); font-size: 1.2rem; line-height: 1.5; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.process li {
  display: grid;
  gap: 6px;
  padding: 1.25rem 1rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}
.process li + li { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
.process span {
  font-size: 0.74rem;
  font-stretch: 118%;
  letter-spacing: 0.12em;
  color: var(--accent);
}

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3.4; max-width: 640px; }
}
@media (max-width: 519px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li { padding: 1.1rem 0.75rem 1.1rem 0; }
  .process li + li { padding-left: 0; border-left: 0; }
  .process li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
  .process li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Prej / potem ---------- */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--steel);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba__after,
.ba__before { position: absolute; inset: 0; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__label {
  position: absolute;
  top: 18px;
  padding: 8px 14px;
  background: rgba(15, 16, 17, 0.78);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__label--before { left: 18px; }
.ba__label--after { right: 18px; background: var(--accent); color: var(--ink); }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  background: var(--accent);
  color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.ba__knob .icon { width: 22px; height: 22px; stroke-width: 2; }
.ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.js .ba__range { pointer-events: none; }
.ba:focus-within .ba__knob { outline: 2px solid var(--white); outline-offset: 3px; }
@media (max-width: 767px) {
  .ba { aspect-ratio: 4 / 3.3; }
  .ba__knob { width: 46px; height: 46px; }
}

/* prej / potem -- fotografiji druga ob drugi (različna zorna kota) */
.ba-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-split__item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.ba-split__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ba-split__item:hover .ba-split__img { transform: scale(1.03); }
.ba-split .ba__label { left: 18px; right: auto; }
@media (max-width: 639px) { .ba-split { grid-template-columns: 1fr; gap: 8px; } }

/* priznanje omisli.si */
.about__badge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2rem;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  max-width: 460px;
}
.about__badge-img { width: 112px; height: auto; flex: none; background: #fff; padding: 6px 8px; }
.about__badge p { display: grid; gap: 2px; font-size: 0.9rem; color: var(--muted-dark); line-height: 1.4; }
.about__badge strong { color: var(--white); font-size: 1rem; font-weight: 650; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 11, 12, 0.94) 0%, rgba(10, 11, 12, 0.82) 50%, rgba(10, 11, 12, 0.55) 100%);
}
.cta__inner { position: relative; }
.cta__inner::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 2rem;
  background: var(--accent);
}
.cta__title {
  max-width: 17ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 770;
  font-stretch: 102%;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cta__text { max-width: 52ch; margin-top: 1.4rem; font-size: 1.12rem; color: rgba(255, 255, 255, 0.76); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
@media (max-width: 479px) {
  .cta__actions .btn { width: 100%; white-space: normal; }
}

/* ---------- Kontakt ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact__lead { max-width: 44ch; margin-top: 1.4rem; font-size: 1.08rem; color: var(--muted); }
.contact__list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact__list li {
  display: grid;
  gap: 4px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact__label {
  font-size: 0.74rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__value {
  justify-self: start;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
a.contact__value:hover { color: var(--accent-deep); }

.next-steps { margin-top: 2.5rem; }
.next-steps__title {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.next-steps ol { display: grid; gap: 0.7rem; counter-reset: step; }
.next-steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--muted);
  counter-increment: step;
}
.next-steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 0.1em;
  font-size: 0.8rem;
  font-weight: 650;
  font-stretch: 118%;
  color: var(--accent-deep);
}

/* ---------- Obrazec ---------- */
.contact__form-wrap { position: relative; }
.form,
.form-success {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(15, 16, 17, 0.35);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 0.9rem; font-weight: 620; }
.field__hint { font-weight: 450; color: var(--muted); }
.req { color: var(--accent-deep); }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cdcac3;
  border-radius: var(--radius);
  background: #fafaf8;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field__input::placeholder { color: #8b8f94; }
.field__input:hover { border-color: #a9a59d; }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 115, 47, 0.28);
}
.field__textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.field__select { position: relative; }
.field__select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.field__select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field.is-invalid .field__input,
.field.is-invalid .dropzone__area { border-color: var(--danger); }
.field__error { font-size: 0.86rem; color: var(--danger); }

/* nalaganje fotografij */
.dropzone__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.dropzone__area {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 1.75rem 1rem;
  border: 1.5px dashed #bdb9b1;
  border-radius: var(--radius);
  background: #fafaf8;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone__area:hover,
.dropzone.is-dragover .dropzone__area { border-color: var(--accent); background: rgba(200, 115, 47, 0.06); }
.dropzone__input:focus-visible + .dropzone__area { outline: 2px solid var(--accent); outline-offset: 3px; }
.dropzone__icon { width: 28px; height: 28px; color: var(--accent-deep); }
.dropzone__text { font-size: 0.98rem; }
.dropzone__text strong { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.dropzone__help { font-size: 0.84rem; color: var(--muted); }
@media (hover: none) { .dropzone__drag { display: none; } }

.dropzone__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.dropzone__list:not(:empty) { margin-top: 12px; }
.dz-file {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e4e1db;
  border: 1px solid var(--line);
}
.dz-file img { width: 100%; height: 100%; object-fit: cover; }
.dz-file__name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 6px;
  background: rgba(15, 16, 17, 0.72);
  color: var(--white);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dz-file__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.dz-file__remove {
  position: absolute;
  top: 4px; right: 4px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(15, 16, 17, 0.8);
  color: var(--white);
}
.dz-file__remove:hover { background: var(--danger); }
.dz-file__remove .icon { width: 16px; height: 16px; }

/* soglasje */
.field--check {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--muted);
}
.field--check label a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.field--check .field__error { grid-column: 2; }
.check {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  margin: 0;
  border: 1.5px solid #a9a59d;
  border-radius: var(--radius);
  background: #fafaf8;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.check::after {
  content: "";
  width: 6px; height: 11px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.field.is-invalid .check { border-color: var(--danger); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__submit { position: relative; }
.form__submit.is-loading { pointer-events: none; opacity: 0.85; }
.form__submit.is-loading .icon { display: none; }
.form__submit.is-loading::after {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__status:not(:empty) { margin-top: 1rem; font-size: 0.95rem; }
.form__status.is-error { color: var(--danger); }
.form__alert { margin-bottom: 1.5rem; padding: 14px 16px; border-left: 3px solid var(--danger); background: #fbeceb; font-size: 0.95rem; }

.form-success { display: grid; justify-items: start; gap: 1rem; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--accent);
  color: var(--ink);
}
.form-success__icon .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.form-success__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.form-success p { color: var(--muted); max-width: 46ch; }

@media (max-width: 1023px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .form__footer { flex-direction: column-reverse; align-items: stretch; }
  .form,
  .form-success { margin-inline: calc(var(--gutter) * -0.5); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding-top: clamp(4rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.96rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.brand--footer { color: var(--white); margin-bottom: 1.25rem; }
.site-footer__claim { max-width: 34ch; margin-bottom: 1.75rem; }
.site-footer__title {
  margin-bottom: 1.25rem;
  font-size: 0.76rem;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer__list { display: grid; gap: 0.35rem; }
.site-footer__list a,
.site-footer__list > li > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  transition: color 0.2s;
}
.site-footer__list a:hover { color: var(--white); }
.site-footer__list .icon { width: 17px; height: 17px; color: var(--accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
}
.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--white);
}
.site-footer__top-link .icon { width: 16px; height: 16px; color: var(--accent); transform: rotate(-45deg); transition: transform 0.3s var(--ease); }
.site-footer__top-link:hover .icon { transform: rotate(-45deg) translate(2px, -2px); }

@media (max-width: 899px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PODSTRANI (pravne strani, zahvala, 404)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 770;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.page-hero__lead { max-width: 56ch; margin-top: 1rem; color: var(--muted-dark); font-size: 1.1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; font-size: 0.86rem; color: var(--muted-dark); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

.prose { max-width: 76ch; }
.prose h2 { margin: 2.6rem 0 0.8rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 720; letter-spacing: -0.015em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1rem; color: #3c4045; }
.prose ul { padding-left: 1.2rem; list-style: square; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose .note { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--white); font-size: 0.95rem; }

.simple-page { min-height: 70vh; display: flex; align-items: center; }
.simple-page__code {
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.simple-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.simple-page__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 2rem; font-size: 0.95rem; }
.simple-page__links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* ==========================================================================
   ANIMACIJE (reveal ob pomiku)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .hero__bar, .lightbox, .form, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
