/* ==========================================================================
   Lefa Solutions — statický landing page
   ========================================================================== */

/* ---------- Písma (lokálne, bez Google CDN) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  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: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
  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;
}

/* ---------- Tokeny ---------- */
:root {
  --ink: #1d1b1a;          /* čierna z loga (#231f20) */
  --ink-2: #4a4542;
  --muted: #7a726c;
  --bronze: #997b59;       /* bronzová z loga */
  --bronze-d: #7d6245;
  --bronze-l: #c9b193;
  --stone: #f4f1ec;
  --stone-2: #ebe5dc;
  --paper: #fbfaf7;
  --night: #141312;
  --night-2: #1f1d1b;
  --line: rgba(29, 27, 26, .12);
  --line-l: rgba(255, 255, 255, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 12vw, 160px);
  --r: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--bronze); color: #fff; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow b { font-weight: 700; color: var(--ink-2); letter-spacing: .1em; }
.on-dark .eyebrow b { color: rgba(255,255,255,.55); }

.h-display {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.h-sec {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 22px 0 26px;
}
.h-display em, .h-sec em { font-style: italic; color: var(--bronze); font-weight: 300; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); line-height: 1.75; }
.on-dark { color: #fff; }
.on-dark .lead, .on-dark p { color: rgba(255,255,255,.72); }

/* ---------- Tlačidlá ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: .95rem; font-weight: 650; letter-spacing: .01em;
  transition: color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(153,123,89,.6); }
.btn .ic { transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px transparent, 0 14px 30px -12px rgba(153,123,89,.6); }
.btn--bronze { --bg: var(--bronze); }
.btn--bronze::before { background: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--bronze); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hlavička ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(251, 250, 247, .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.logo { display: block; width: 138px; transition: width .5s var(--ease); }
.logo img { width: 100%; height: auto; transition: filter .5s var(--ease); }
.header:not(.is-scrolled) .logo img { filter: brightness(0) invert(1); }
.header.is-scrolled .logo { width: 118px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.85);
  transition: color .3s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__list a:hover { color: #fff; }
.header.is-scrolled .nav__list a { color: var(--ink-2); }
.header.is-scrolled .nav__list a:hover, .header.is-scrolled .nav__list a.is-active { color: var(--ink); }

.header .btn { padding: 12px 20px; font-size: .88rem; }
.header:not(.is-scrolled) .btn { --bg: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.burger .ic { width: 22px; height: 22px; }
.header.is-scrolled .burger { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Mobilné menu */
.mnav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--night); color: #fff;
  display: flex; flex-direction: column; padding: 24px var(--gut) 40px;
  clip-path: circle(0 at calc(100% - 44px) 42px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.mnav.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; transition: clip-path .7s var(--ease); }
.mnav__top { display: flex; justify-content: space-between; align-items: center; }
.mnav__top img { width: 118px; filter: brightness(0) invert(1); }
.mnav__close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-l); }
.mnav__close .ic { width: 22px; height: 22px; }
.mnav ul { list-style: none; margin: auto 0; padding: 0; }
.mnav li { overflow: hidden; }
.mnav li a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.35; font-weight: 350;
  transform: translateY(110%); transition: transform .7s var(--ease), color .3s;
}
.mnav li a span { font-family: var(--sans); font-size: .8rem; color: var(--bronze); letter-spacing: .1em; }
.mnav li a:hover { color: var(--bronze-l); }
.mnav.is-open li a { transform: none; }
.mnav.is-open li:nth-child(1) a { transition-delay: .18s; }
.mnav.is-open li:nth-child(2) a { transition-delay: .23s; }
.mnav.is-open li:nth-child(3) a { transition-delay: .28s; }
.mnav.is-open li:nth-child(4) a { transition-delay: .33s; }
.mnav.is-open li:nth-child(5) a { transition-delay: .38s; }
.mnav.is-open li:nth-child(6) a { transition-delay: .43s; }
.mnav__contact { display: grid; gap: 8px; color: rgba(255,255,255,.7); font-size: .95rem; }
.mnav__contact a { display: inline-flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; background: var(--night); overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(36px, 6vh, 64px);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0,0,0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.1) 30%, rgba(20,19,18,.35) 60%, rgba(20,19,18,.92) 100%),
    linear-gradient(90deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,0) 60%);
}
.hero__inner { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--bronze-l); }
.hero .h-display em { color: var(--bronze-l); }
.hero h1 { max-width: 13ch; margin: 26px 0 28px; }
.hero__lead { max-width: 52ch; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.25vw, 1.15rem); margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: clamp(48px, 9vh, 96px); padding-top: 28px;
  border-top: 1px solid var(--line-l);
}
.hero__facts { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.fact strong { display: block; font-family: var(--serif); font-weight: 350; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.fact > span { font-size: .84rem; color: rgba(255,255,255,.62); }
.hero__dots { display: flex; gap: 10px; align-items: center; }
.hero__dot { width: 46px; height: 24px; position: relative; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 100%; background: rgba(255,255,255,.25); }
.hero__dot::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dotfill 6s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

.scroll-cue {
  position: absolute; right: var(--gut); top: 50%; z-index: 2;
  writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 16px;
}
.scroll-cue::after { content: ""; width: 1px; height: 70px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Nadpis rozdelený na slová */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .split .w > span, .split.is-in .w > span { transform: none; }

.hero-in { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded .hero-in { opacity: 1; transform: none; }

/* ---------- Pás s bežiacim textom ---------- */
.marquee {
  background: var(--bronze); color: #fff; overflow: hidden;
  padding: 22px 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}
.marquee__track span::after { content: ""; width: 9px; height: 9px; border: 1px solid rgba(255,255,255,.7); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcie ---------- */
.sec { padding: var(--sec) 0; position: relative; }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--night); color: #fff; }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec__head .h-sec { margin-bottom: 0; }
.sec__head .lead { margin: 0; }

/* O nás */
.about { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about__badge {
  position: absolute; right: -28px; bottom: 44px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  animation: float 6s ease-in-out infinite;
}
.about__badge strong { display: block; font-family: var(--serif); font-weight: 350; font-size: 2.6rem; line-height: 1; color: var(--bronze-l); }
.about__badge > span { font-size: .84rem; color: rgba(255,255,255,.7); }
@keyframes float { 50% { transform: translateY(-10px); } }
.about__deco {
  position: absolute; left: -26px; top: -26px; width: 130px; height: 130px;
  border: 1px solid var(--bronze); border-radius: var(--r); z-index: -1;
}

.pillars { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 44px; }
.pillar { background: var(--stone); padding: 26px 24px; box-shadow: 1px 1px 0 var(--line); transition: background .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.pillar:hover { background: var(--paper); }
.pillar .ic { width: 30px; height: 30px; color: var(--bronze); margin-bottom: 14px; transition: transform .5s var(--ease); }
.pillar:hover .ic { transform: translateY(-3px) rotate(-6deg); }
.pillar h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* Služby */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--stone); border-radius: var(--r); padding: 36px 32px 34px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), color .6s var(--ease), border-color .6s;
}
.service__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .7s var(--ease); }
.service__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease); }
.service__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.55), rgba(20,19,18,.92)); }
.service:hover { transform: translateY(-8px); color: #fff; box-shadow: 0 40px 70px -30px rgba(20,19,18,.55); border-color: transparent; }
.service:hover .service__bg { opacity: 1; }
.service:hover .service__bg img { transform: scale(1); }
.service__num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--bronze); }
.service__ic {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--bronze); margin-top: 26px;
  transition: background .6s var(--ease), color .6s;
}
.service__ic .ic { width: 30px; height: 30px; }
.service:hover .service__ic { background: var(--bronze); color: #fff; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; margin: 40px 0 14px; }
.service p { font-size: .95rem; color: var(--ink-2); margin: 0; transition: color .6s; }
.service:hover p { color: rgba(255,255,255,.78); }

/* Postup */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
.steps__line { position: absolute; left: 0; right: 0; top: 31px; height: 1px; background: var(--line-l); }
.steps__line span { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease); }
.steps.is-in .steps__line span { transform: scaleX(1); }
.step { position: relative; }
.step__dot {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); border: 1px solid var(--line-l); color: var(--bronze-l); margin-bottom: 26px;
  transition: background .5s var(--ease), color .5s, border-color .5s, transform .5s var(--ease);
}
.step__dot .ic { width: 26px; height: 26px; }
.step:hover .step__dot { background: var(--bronze); color: #fff; border-color: var(--bronze); transform: scale(1.08); }
.step small { display: block; font-size: .75rem; letter-spacing: .2em; color: var(--bronze-l); margin-bottom: 8px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 10px; }
.step p { font-size: .92rem; line-height: 1.6; margin: 0; }

/* Financovanie */
.finance { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.finance__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 6; }
.finance__media img { width: 100%; height: 100%; object-fit: cover; }
.finance__card {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  background: rgba(251,250,247,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 14px; padding: 20px 22px; display: flex; gap: 16px; align-items: center;
}
.finance__card .ic { width: 38px; height: 38px; color: var(--bronze); }
.finance__card strong { display: block; font-size: 1rem; }
.finance__card span { font-size: .86rem; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.checks .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--bronze); color: #fff; margin-top: 2px; }

/* Aktuálny projekt */
.project__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.project__title { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.project__meta { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 18px; }
.project__meta .ic { color: var(--bronze-l); }
.project__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gallery { display: grid; gap: 14px; }
.gallery__main {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: var(--night-2);
}
.gallery__main button { position: absolute; inset: 0; width: 100%; cursor: zoom-in; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.gallery__main img.is-leaving { opacity: 0; transform: scale(1.04); }
.gallery__main:hover img { transform: scale(1.03); }
.gallery__nav { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }
.gallery__nav button, .lb__btn {
  position: static; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,19,18,.55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .3s; cursor: pointer;
}
.gallery__nav button:hover, .lb__btn:hover { background: var(--bronze); }
.gallery__count { position: absolute; left: 20px; bottom: 22px; z-index: 2; font-size: .85rem; letter-spacing: .12em; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; opacity: .5; transition: opacity .4s, transform .4s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .4s; }
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--bronze-l); }

/* Lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12,11,10,.94); color: #fff; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb img { max-width: min(92vw, 1600px); max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lb__bar { position: fixed; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.lb__close { position: fixed; top: 20px; right: 20px; }
.lb__count { min-width: 64px; text-align: center; font-size: .9rem; letter-spacing: .12em; color: rgba(255,255,255,.75); }

/* Referencie */
.refs { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(180px, 22vw, 290px); gap: 16px; }
.ref { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; cursor: zoom-in; }
.ref:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.ref:nth-child(2) { grid-column: span 5; }
.ref:nth-child(3) { grid-column: span 5; }
.ref:nth-child(4) { grid-column: span 12; }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,19,18,.8)); opacity: .7; transition: opacity .5s; }
.ref:hover img { transform: scale(1.06); }
.ref:hover::after { opacity: 1; }
.ref__cap { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ref__cap strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.ref__cap .ic { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translate(8px, 8px) scale(.8); opacity: 0; transition: all .5s var(--ease); }
.ref:hover .ref__cap .ic { opacity: 1; transform: none; }

/* Dôvera */
.trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.trust__big { font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 16vw, 13rem); line-height: .9; letter-spacing: -.04em; color: var(--bronze); display: flex; align-items: flex-start; }
.trust__big sup { font-size: .4em; margin-top: .15em; }
.trust__label { font-size: 1.1rem; font-weight: 600; margin: 14px 0 26px; }
.advs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adv {
  background: var(--paper); border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.adv:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(29,27,26,.35); }
.adv .ic { width: 34px; height: 34px; color: var(--bronze); margin-bottom: 18px; }
.adv h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.adv p { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* Kontakt */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff; padding: var(--sec) 0;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; opacity: .14; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(153,123,89,.45), transparent 65%); animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-12vw, 16vw) scale(1.2); } }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact .h-display { font-size: clamp(2.6rem, 6vw, 5rem); margin: 22px 0 24px; }
.cards { display: grid; gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 16px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-l);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
.ccard:hover { background: var(--bronze); transform: translateX(6px); box-shadow: inset 0 0 0 1px transparent; }
.ccard__ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: none; }
.ccard__ic .ic { width: 24px; height: 24px; }
.ccard small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ccard:hover small { color: rgba(255,255,255,.8); }
.ccard strong { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 650; }
.ccard > .ic { margin-left: auto; width: 26px; height: 26px; opacity: .5; transition: transform .5s var(--ease), opacity .3s; }
.ccard:hover > .ic { transform: rotate(45deg); opacity: 1; }
.copy {
  margin-left: auto; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-l); color: rgba(255,255,255,.8);
  transition: background .3s, color .3s;
}
.copy:hover { background: #fff; color: var(--ink); }

/* Pätička */
.footer { background: var(--night); color: rgba(255,255,255,.6); font-size: .9rem; border-top: 1px solid var(--line-l); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 48px 0 36px; }
.footer__top img { width: 128px; filter: brightness(0) invert(1); opacity: .9; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 32px; border-top: 1px solid var(--line-l); font-size: .82rem; }

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--bronze); }
.totop .ic { transform: rotate(-90deg); }

/* ---------- Animácie pri scrolle (len keď beží JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--scale { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-clip.is-in { clip-path: inset(0 0 0 0); }

/* ---------- Responzivita ---------- */
@media (max-width: 1080px) {
  .nav__list { display: none; }
  .header .nav .btn { display: none; }
  .burger { display: grid; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__line { left: 31px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line span { transform-origin: top; transform: scaleY(0); }
  .steps.is-in .steps__line span { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 24px; padding-bottom: 36px; }
  .step__dot { grid-row: span 3; margin: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 880px) {
  .sec__head, .about, .finance, .trust, .contact__grid { grid-template-columns: 1fr; }
  .about__badge { right: 16px; }
  .about__deco { left: -12px; top: -12px; }
  .gallery__main { aspect-ratio: 16 / 10; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .thumb { border-radius: 8px; }
  .refs { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .ref:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .ref:nth-child(1), .ref:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .14em; font-size: .7rem; gap: 10px; }
  .eyebrow::before { width: 22px; }
  .project__meta { align-items: flex-start; }
  .project__meta .ic { margin-top: 3px; }
  .pillars, .advs { grid-template-columns: 1fr; }
  .refs { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .ref:nth-child(n) { grid-column: span 1; }
  .hero__facts { gap: 22px 32px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .ccard { padding: 18px; gap: 14px; }
  .ccard__ic { width: 46px; height: 46px; }
  .copy { display: none; }
  .finance__card { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-clip, .split .w > span, .hero-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
}
