/* ==========================================================================
   BAU-SK — smrek, breza, limetka. Bricolage Grotesque + Onest.
   ========================================================================== */

:root {
  --pine: #12352b;
  --pine-2: #18443a;
  --pine-3: #245646;
  --pine-deep: #0b241d;
  --birch: #f1f2ec;
  --birch-2: #e4e7dd;
  --white: #ffffff;
  --ink: #10201b;
  --muted: #4c5d55;
  --on-pine: #e8efe9;
  --on-pine-muted: #a9bdb2;
  --lime: #d3ec5c;
  --lime-2: #c2de3e;
  --lime-ink: #16210a;
  --line: rgba(16, 32, 27, 0.14);
  --line-pine: rgba(232, 239, 233, 0.16);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--pine-3) var(--birch-2); }
body {
  margin: 0; background: var(--birch); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.02; text-wrap: balance; font-variation-settings: "opsz" 96; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
dl, dd { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime-2); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; font-weight: 600; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }

.h2 { font-size: clamp(2.3rem, 5.2vw, 4.8rem); letter-spacing: -0.035em; font-weight: 700; font-stretch: 88%; }
.lead { font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.5; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--lime); color: var(--lime-ink); }
.btn-accent:hover { background: var(--white); }
.btn-line { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(232,239,233,0.4); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }
.btn-line-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--birch); }
.btn-line-dark:hover svg { transform: translate(3px, -3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 44px; height: auto; overflow: visible; }
.bm-bars { fill: currentColor; }
.bm-roof { fill: var(--lime); }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--white); transition: background-color .4s var(--ease-out), transform .45s var(--ease-out), box-shadow .4s; }
.site-header.is-solid { background: rgba(18, 53, 43, 0.9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-pine); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(232,239,233,0.08); box-shadow: inset 0 0 0 1px var(--line-pine); }
.nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 0.94rem; text-decoration: none; color: rgba(255,255,255,0.82); transition: color .25s, background-color .25s; }
.nav a:hover { color: var(--white); background: rgba(232,239,233,0.1); }
.nav a.is-current { background: var(--lime); color: var(--lime-ink); }
.header-call { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--white); color: var(--pine); font-weight: 600; font-size: 0.94rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .25s; }
.header-call:hover { background: var(--lime); color: var(--lime-ink); }
.header-call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--pine); color: var(--on-pine); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; left: -25vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211,236,92,0.12), rgba(211,236,92,0));
}
.hero-grid {
  min-height: calc(100svh - 190px); min-height: max(calc(100svh - 190px), 600px);
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px;
}
.hero-title { font-size: clamp(3.2rem, 7.6vw, 7.6rem); font-weight: 700; font-stretch: 85%; letter-spacing: -0.03em; line-height: 0.92; color: var(--white); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--lime); }
.hero-lead { margin-top: clamp(24px, 3.5vh, 36px); max-width: 46ch; font-size: clamp(1.04rem, 1.3vw, 1.18rem); color: var(--on-pine); opacity: .88; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; }
.hs-frame { position: relative; aspect-ratio: 4 / 3.5; border-radius: var(--r-lg); overflow: hidden; background: var(--pine-2); }
.hs-slide { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease-io); }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.hs-slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.hs-slide.is-active img { transform: scale(1); }
.hs-slide.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; }
.hs-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.hs-caption { display: grid; gap: 2px; min-height: 48px; }
.hs-caption strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.hs-caption span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--on-pine-muted); }
.hs-caption.is-swap { animation: capswap .7s var(--ease-out); }
@keyframes capswap { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hs-dots i { display: block; height: 3px; border-radius: 3px; background: rgba(232,239,233,0.22); overflow: hidden; position: relative; }
.hs-dots i::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.hs-dots button[aria-selected="true"] i::after { animation: dotfill var(--slide-ms, 5600ms) linear forwards; }
.hs-dots button.is-done i::after { transform: scaleX(1); }
@keyframes dotfill { to { transform: scaleX(1); } }

.filmstrip { padding: 8px 0 36px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fs-track { display: flex; width: max-content; animation: filmstrip 80s linear infinite; }
.filmstrip:hover .fs-track { animation-play-state: paused; }
.fs-set { display: flex; gap: 14px; padding-right: 14px; }
.fs-set img { width: clamp(150px, 15vw, 230px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); filter: saturate(0.85); opacity: .9; transition: filter .4s, opacity .4s, transform .5s var(--ease-out); }
.fs-set img:hover { filter: none; opacity: 1; transform: translateY(-4px); }
@keyframes filmstrip { to { transform: translateX(-50%); } }

/* Hero intro motion */
.js .hero-title .line > span { transform: translateY(115%); }
.js .hero-lead, .js .hero-actions, .js .hs-bar { opacity: 0; transform: translateY(18px); }
.js .hs-frame { clip-path: inset(0 0 100% 0 round var(--r-lg)); }
.js .filmstrip { opacity: 0; transform: translateY(24px); }
.is-ready .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .18s; }
.is-ready .hero-lead { opacity: .88; transform: none; transition: opacity .9s .45s var(--ease-out), transform .9s .45s var(--ease-out); }
.is-ready .hero-actions { opacity: 1; transform: none; transition: opacity .9s .55s var(--ease-out), transform .9s .55s var(--ease-out); }
.is-ready .hs-frame { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1.4s .15s var(--ease-io); }
.is-ready .hs-bar { opacity: 1; transform: none; transition: opacity .8s .9s var(--ease-out), transform .8s .9s var(--ease-out); }
.is-ready .filmstrip { opacity: 1; transform: none; transition: opacity 1.2s .8s var(--ease-out), transform 1.2s .8s var(--ease-out); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-md)); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-md)); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-head .h2 { max-width: 16ch; }
.about-body { padding-top: 12px; }
.about-body p + p { margin-top: 18px; }
.about-body p:not(.lead) { color: var(--muted); }
.about-body p.about-intro { color: var(--ink); font-size: clamp(1.1rem, 1.35vw, 1.24rem); line-height: 1.55; font-weight: 500; }
.about-grid figure { border-radius: var(--r-md); overflow: hidden; }
.about-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.ag-a { margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 4 / 3; }
.about-pair { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.ag-b, .ag-c { aspect-ratio: 3 / 4; }
.ag-c { margin-top: 22%; }

/* ---------- Services ---------- */
.about { padding-bottom: clamp(64px, 7vw, 104px); }
.services { padding-top: 0; }
.services-head { display: grid; grid-template-columns: 1fr; gap: 24px; }
.services-head .h2 { max-width: 26ch; font-size: clamp(2.3rem, 4.6vw, 4.4rem); }
.services-head p { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.svc-hero { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--pine); color: var(--on-pine); border-radius: var(--r-lg); overflow: hidden; }
.svc-hero-body { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.svc-hero-body h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); font-stretch: 85%; letter-spacing: -0.035em; color: var(--white); }
.svc-hero-body p { margin-top: 20px; color: var(--on-pine-muted); max-width: 50ch; }
.svc-hero-media { position: relative; min-height: 440px; border-radius: 0; }
.js .svc-hero-media[data-reveal="clip"] { clip-path: inset(0 0 0 100%); }
.js .svc-hero-media[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.svc-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(232,239,233,0.08); box-shadow: inset 0 0 0 1px var(--line-pine); font-size: 0.88rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips li:hover { background: var(--lime); color: var(--lime-ink); box-shadow: none; }

.service-list { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.srv { position: relative; display: grid; grid-template-columns: 1fr 34px; gap: 8px 20px; padding: 28px 0; border-top: 1px solid var(--line); cursor: default; }
.srv::after {
  content: ""; grid-column: 2; grid-row: 1; width: 34px; height: 34px; border-radius: 50%;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"), var(--birch-2);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.srv:hover::after { transform: rotate(45deg); background-color: var(--lime); }
.srv h3 { grid-column: 1; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; transition: transform .45s var(--ease-out); }
.srv:hover h3 { transform: translateX(8px); }
.srv p { grid-column: 1; color: var(--muted); font-size: 0.97rem; max-width: 52ch; }
.srv-thumb { display: none; }
.srv-preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; width: 280px; aspect-ratio: 4 / 3;
  border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(11,36,29,0.55);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.85) rotate(-3deg);
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-out);
}
.srv-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(-2deg); }
.srv-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process { background: var(--pine); color: var(--on-pine); }
.process .h2 { color: var(--white); }
.process-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.process-head .h2 { max-width: 14ch; }
.process-head p { color: var(--on-pine-muted); max-width: 48ch; }
.steps { position: relative; margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 44px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-pine); }
.steps::after { background: var(--lime); transform-origin: left; transform: scaleX(var(--progress)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -51px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--pine); border: 2px solid rgba(232,239,233,0.3); transition: border-color .4s, background-color .4s, transform .4s var(--ease-out); }
.step.is-passed::before { border-color: var(--lime); background: var(--lime); transform: scale(1.15); }
.step-no { font-family: var(--f-mono); font-size: 0.82rem; color: var(--lime); }
.step h3 { margin-top: 10px; font-size: clamp(1.2rem, 1.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.step p { margin-top: 10px; font-size: 0.94rem; color: var(--on-pine-muted); }

/* ---------- Projects / register ---------- */
.projects-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.projects-head .h2 { font-size: clamp(3rem, 8vw, 7.5rem); font-stretch: 80%; letter-spacing: -0.04em; }
.projects-head p { color: var(--muted); max-width: 52ch; }
.filters { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--birch-2); color: var(--ink); font-weight: 500; font-size: 0.94rem; transition: background-color .25s, color .25s; }
.filter:hover { background: #d7dccd; }
.filter.is-active { background: var(--pine); color: var(--white); }
.filter .count { font-family: var(--f-mono); font-size: 0.76rem; opacity: .65; }

.register { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.reg-list { border-top: 1.5px solid var(--ink); }
.reg-item { border-bottom: 1px solid var(--line); }
.reg-item.is-hiding { opacity: 0; transform: translateX(-12px); transition: opacity .25s, transform .25s; }
.reg-item.is-entering { animation: regin .6s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes regin { from { opacity: 0; transform: translateY(14px); } }
.reg-btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center;
  padding: 20px 8px 20px 0; border: 0; background: none; text-align: left; position: relative;
  transition: padding .45s var(--ease-out), background-color .3s;
}
.reg-btn::before { content: ""; position: absolute; inset: 0 -12px; border-radius: var(--r-sm); background: var(--white); opacity: 0; z-index: -1; transition: opacity .3s; }
.reg-item.is-current .reg-btn { padding-left: 12px; }
.reg-item.is-current .reg-btn::before { opacity: 1; }
.reg-title { grid-column: 1; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.38rem); letter-spacing: -0.02em; line-height: 1.2; }
.reg-sub { grid-column: 1; font-size: 0.88rem; color: var(--muted); }
.reg-meta { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.reg-tag { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 999px; background: var(--birch-2); color: var(--muted); white-space: nowrap; }
.reg-item.is-current .reg-tag { background: var(--lime); color: var(--lime-ink); }
.reg-count { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.reg-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reg-thumb { display: none; }
.reg-more { margin-top: 28px; }
.reg-viewer { position: sticky; top: calc(var(--header-h) + 24px); }
.rv-frame { position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--r-lg); overflow: hidden; background: var(--birch-2); }
.rv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-frame img.is-top { animation: rvin .8s var(--ease-io) both; }
@keyframes rvin { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
.rv-hint { margin-top: 12px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Why ---------- */
.why { background: var(--lime); color: var(--lime-ink); }
.why .h2 { font-size: clamp(3rem, 8vw, 7.5rem); font-stretch: 80%; letter-spacing: -0.04em; }
.why-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--lime-ink); }
.why-grid li { padding: 32px 28px 36px 0; border-bottom: 1px solid rgba(22,33,10,0.2); }
.why-grid li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid rgba(22,33,10,0.2); }
.why-grid svg { width: 30px; height: 30px; fill: none; stroke: var(--lime-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.why-grid li:hover svg { transform: translateY(-4px) rotate(-6deg); }
.why-grid h3 { margin-top: 22px; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 650; letter-spacing: -0.03em; }
.why-grid p { margin-top: 10px; color: #364318; max-width: 40ch; }

/* ---------- Contact ---------- */
.contact { background: var(--pine); color: var(--on-pine); }
.contact .h2 { color: var(--white); font-size: clamp(3rem, 8vw, 7.5rem); font-stretch: 80%; letter-spacing: -0.04em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-info > p { margin-top: 22px; color: var(--on-pine-muted); max-width: 44ch; }
.contact-lines { margin-top: 40px; border-top: 1px solid var(--line-pine); }
.contact-lines li { border-bottom: 1px solid var(--line-pine); }
.contact-lines a { display: grid; gap: 2px; padding: 18px 0; text-decoration: none; }
.cl-label { font-family: var(--f-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-pine-muted); }
.cl-value { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--white); letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; transition: color .25s; }
.contact-lines a:hover .cl-value { color: var(--lime); }
.company { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.company dt { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-pine-muted); }
.company dd { margin-top: 2px; font-size: 0.95rem; color: var(--on-pine); }
.company div:last-child { grid-column: 1 / -1; }

.contact-form { background: var(--birch); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); }
.hp { position: absolute; left: -9999px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid #c5ccbf; background: var(--white); transition: border-color .2s, box-shadow .2s; caret-color: var(--pine);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #5c6b63; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #93a097; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(211,236,92,0.55); }
.field.has-error input, .field.has-error textarea { border-color: #b4382a; background: #fdf3f2; }
.err { font-size: 0.82rem; color: #a3352a; }
.err:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 6px; }
.form-foot .btn-accent { background: var(--pine); color: var(--white); }
.form-foot .btn-accent:hover { background: var(--pine-3); }
.form-note { font-size: 0.82rem; color: var(--muted); max-width: 32ch; }
.form-status:not(:empty) { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: #e6f3dc; color: #24561f; font-weight: 500; }
.form-status.is-error { background: #fdf3f2; color: #a3352a; }
.contact-form.is-sending button { pointer-events: none; opacity: 0.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: var(--on-pine-muted); padding: 40px 0 28px; font-size: 0.95rem; overflow: hidden; }
.footer-big { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(5rem, 31vw, 29rem); letter-spacing: -0.04em; line-height: 0.8; color: var(--pine-2); margin: 0 0 48px -0.04em; white-space: nowrap; user-select: none; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h4 { font-family: var(--f-mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-pine); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 26, 21, 0.94); backdrop-filter: blur(8px); animation: fadein .35s var(--ease-out); }
.lb-panel { position: relative; width: min(1240px, 100%); max-height: 100svh; display: flex; flex-direction: column; gap: 14px; padding: 20px var(--gutter); color: var(--white); animation: lbin .5s var(--ease-out); }
.lightbox.is-closing .lb-backdrop { animation: fadeout .3s var(--ease-out) forwards; }
.lightbox.is-closing .lb-panel { animation: lbout .3s var(--ease-out) forwards; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes lbin { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes lbout { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
.lb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lb-place { font-family: var(--f-mono); font-size: 0.8rem; color: var(--lime); }
.lb-place a { color: inherit; }
.lb-top h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-top: 4px; }
.lb-close, .lb-nav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background-color .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--lime); color: var(--lime-ink); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 290px); border-radius: var(--r-md); object-fit: contain; transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.lb-stage img.is-swapping { opacity: 0; transform: scale(0.985); }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.lb-desc { color: rgba(255,255,255,0.8); max-width: 80ch; font-size: 0.95rem; }
.lb-desc a { color: var(--lime); }
.lb-count { font-family: var(--f-mono); color: rgba(255,255,255,0.6); white-space: nowrap; font-size: 0.85rem; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 88px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: 0.5; background: none; transition: opacity .2s, border-color .2s; }
.lb-thumbs button.is-active, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs button.is-active { border-color: var(--lime); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 12px; }
  .header-call span { display: none; }
  .header-call { padding: 11px 12px; }
}
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; padding-top: 0; }
  .steps::before, .steps::after, .step::before { display: none; }
  .step { border-top: 2px solid var(--line-pine); padding-top: 18px; transition: border-color .4s; }
  .step.is-passed { border-top-color: var(--lime); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .why-grid li:nth-child(2n) { padding-left: 28px; border-left: 1px solid rgba(22,33,10,0.2); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav, .header-call { display: none; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(232,239,233,0.12); }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white); transition: transform .35s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--pine); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; animation: fadein .3s var(--ease-out); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-pine); font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 2.2rem; letter-spacing: -0.035em; text-decoration: none; }
  .mobile-menu .btn { justify-content: center; }
  .site-header.menu-open { background: var(--pine); }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header-h) + 32px); gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-body { padding-top: 0; }
  .services-head, .process-head, .projects-head, .contact-grid { grid-template-columns: 1fr; }
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero-media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .service-list { grid-template-columns: 1fr; }
  .srv { grid-template-columns: 88px 1fr; gap: 4px 16px; padding: 20px 0; }
  .srv::after { display: none; }
  .srv-thumb { display: block; grid-column: 1; grid-row: 1 / span 2; width: 88px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
  .srv h3, .srv p { grid-column: 2; }
  .srv:hover h3 { transform: none; }
  .srv-preview { display: none; }

  .register { grid-template-columns: 1fr; }
  .reg-viewer { display: none; }
  .reg-btn { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; align-items: center; }
  .reg-title { align-self: end; }
  .reg-sub { align-self: start; }
  .reg-thumb { display: block; grid-column: 1; grid-row: 1 / span 2; width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
  .reg-title { grid-column: 2; }
  .reg-sub { grid-column: 1; }
  .reg-meta { display: none; }
  .reg-item.is-current .reg-btn { padding-left: 0; }
  .reg-item.is-current .reg-btn::before { opacity: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hs-frame { aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid li, .why-grid li:nth-child(2n) { padding: 26px 0; border-left: 0; }
  .company { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
    .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-bottom { flex-direction: column; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@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; }
}

/* ---------- Subpages (ďakujeme, ochrana údajov) ---------- */
.sub-header { position: absolute; inset: 0 0 auto 0; z-index: 10; height: var(--header-h); color: var(--white); }
.sub-header .header-inner { justify-content: space-between; }
.sub-back { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(232,239,233,0.1); box-shadow: inset 0 0 0 1px var(--line-pine); color: var(--white); font-weight: 500; font-size: 0.94rem; text-decoration: none; transition: background-color .25s, color .25s; }
.sub-back:hover { background: var(--lime); color: var(--lime-ink); }
.sub-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.thanks { min-height: 100svh; display: grid; align-items: center; background: var(--pine); color: var(--on-pine); position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 56px; }
.thanks::before { content: ""; position: absolute; z-index: -1; width: 80vw; height: 80vw; right: -30vw; bottom: -40vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(211,236,92,0.14), rgba(211,236,92,0)); }
.thanks-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.check { width: 88px; height: 88px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-bottom: 36px; animation: pop .7s var(--ease-out) both; }
.check svg { width: 44px; height: 44px; fill: none; stroke: var(--lime-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .45s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); font-stretch: 85%; letter-spacing: -0.03em; line-height: 0.92; color: var(--white); }
.thanks h1 em { font-style: normal; color: var(--lime); }
.thanks h1 .line { display: block; overflow: hidden; padding-top: 0.12em; padding-bottom: 0.08em; margin-top: -0.12em; }
.thanks h1 .line > span { display: inline-block; animation: lineup 1s var(--ease-out) both; }
.thanks h1 .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes lineup { from { transform: translateY(140%); } }
.thanks-lead { margin-top: 28px; max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); animation: fadeup .9s .4s var(--ease-out) both; }
.thanks-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; animation: fadeup .9s .55s var(--ease-out) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
.thanks-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; animation: photoin 1.4s .2s var(--ease-io) both; }
.thanks-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes photoin { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
.thanks-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-pine); display: flex; flex-wrap: wrap; gap: 12px 40px; animation: fadeup .9s .7s var(--ease-out) both; }
.thanks-contact a { text-decoration: none; color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; transition: color .2s; }
.thanks-contact a:hover { color: var(--lime); }
.thanks-contact span { display: block; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-pine-muted); margin-bottom: 2px; }

.doc-hero { background: var(--pine); color: var(--white); padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px); }
.doc-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); font-stretch: 85%; letter-spacing: -0.03em; max-width: 14ch; }
.doc-hero p { margin-top: 18px; color: var(--on-pine-muted); font-family: var(--f-mono); font-size: 0.82rem; }
.doc { padding: clamp(56px, 7vw, 96px) 0 var(--section); }
.doc-body { max-width: 72ch; }
.doc-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 650; letter-spacing: -0.025em; margin-top: 48px; margin-bottom: 14px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: #33433c; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul { margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.doc-body li + li { margin-top: 6px; }
.doc-body li::marker { color: var(--pine-3); }
.doc-body a { color: var(--pine); text-decoration-color: var(--lime-2); text-decoration-thickness: 2px; }
.doc-card { margin-top: 14px; padding: 22px 24px; border-radius: var(--r-md); background: var(--white); }
.doc-card p { color: var(--ink); }

@media (max-width: 900px) {
  .thanks-grid { grid-template-columns: 1fr; }
  .thanks-photo { display: none; }
  .check { margin-bottom: 24px; width: 72px; height: 72px; }
  .sub-back span { display: none; }
}
