/* Meblonik – system wizualny „terracotta”
   Tokeny: kolory (role), typografia (skala 1.25 + półkroki UI), odstępy (8 pt), promienie (4/8/16).
   Kontrast: tekst --ink / --ink-2 / --ink-3 na --paper ≥ 4.5:1; --paper na --clay ≥ 4.5:1; --clay-hi tylko dla tekstu ≥ 24 px. */
:root {
  /* powierzchnie */
  --paper: #F7F1E6;
  --sand: #EFE4D0;
  --card: #FFFCF7;
  --line: #E2D5C0;
  --line-2: #C9B59A;
  /* atrament */
  --ink: #1F1711;
  --ink-2: #4B3B2F;
  --ink-3: #74604F;
  /* akcent (jedyny kolor) */
  --clay: #A9512A;
  --clay-hi: #C56A3C;
  --clay-deep: #8A4120;
  --clay-tint: #F3DFCF;
  /* pasmo ciemne */
  --night: #2A1F17;
  --night-2: #382A20;
  --night-line: #4F3D30;
  --night-mute: #CDBBA6;

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-25: 25px; --fs-31: 31px; --fs-39: 39px;
  --fs-h2: clamp(36px, 4.4vw, 61px);
  --fs-h1: clamp(44px, 6.2vw, 84px);
  --fs-page: clamp(49px, 7.2vw, 95px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 4px; --r-m: 8px; --r-l: 16px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;  /* feedback */
  --t-nav: 240ms;   /* nawigacja, panele */
  --t-slow: 480ms;  /* przejścia obrazów */
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: var(--r-s); }
.theme-dark :focus-visible, .theme-dark:focus-visible { outline-color: var(--clay-hi); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-m); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.theme-dark { background: var(--night); color: var(--paper); }

/* ---------- Typografia ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
.display em { font-style: italic; color: var(--clay-hi); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay); line-height: 1.3;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.theme-dark .eyebrow { color: var(--clay-hi); }
.h2 { font-size: var(--fs-h2); }
.mono { font-family: var(--font-mono); font-size: var(--fs-13); font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
#oferta, #o-mnie { scroll-margin-top: 24px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-m);
  font-weight: 600; font-size: var(--fs-16); line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--accent { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.btn--accent:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--night-2); border-color: var(--night-2); }
.btn--paper { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--paper:hover { border-color: var(--ink); }
.btn--outline-dark, .btn--outline-light { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--outline-dark:hover, .btn--outline-light:hover { border-color: var(--ink); background: var(--card); }
.theme-dark .btn--outline-dark, .theme-dark .btn--outline-light { border-color: var(--night-line); color: var(--paper); }
.theme-dark .btn--outline-dark:hover, .theme-dark .btn--outline-light:hover { border-color: var(--paper); background: transparent; }
.theme-dark .btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-14); }

.icon-btn {
  width: 48px; height: 48px; border-radius: var(--r-m); flex-shrink: 0;
  display: grid; place-items: center; border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn--paper { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.icon-btn--paper:hover { background: var(--card); border-color: var(--ink); }
.icon-btn--accent { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.icon-btn--accent:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.theme-dark .site-header { border-bottom-color: var(--night-line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: var(--r-m); background: var(--clay);
  display: grid; place-items: center; flex-shrink: 0; color: var(--paper);
}
.brand__name { font-family: var(--font-display); font-size: var(--fs-25); line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.theme-dark .brand__name { color: var(--paper); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); font-size: var(--fs-16); font-weight: 500; }
.nav__link { color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }
.nav__cta { margin-left: var(--s-2); }
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); color: var(--ink); flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
  background: currentColor; border-radius: 1px;
  transition: transform var(--t-nav) var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s-2);
    background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-l);
    box-shadow: 0 24px 48px rgba(31, 23, 17, .14);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--t-nav) var(--ease), transform var(--t-nav) var(--ease), visibility var(--t-nav);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { display: block; padding: 14px 16px; border-radius: var(--r-m); font-size: var(--fs-18); color: var(--ink); border-bottom: 0; }
  .nav__link:hover, .nav__link[aria-current="page"] { background: var(--sand); }
  .nav__cta { margin: var(--s-2) 0 0; }
}

/* ---------- Hero (strona główna) ---------- */
.hero { padding-bottom: var(--s-9); }
.hero__top { padding-top: var(--s-8); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6) var(--s-7); }
.hero__title { flex: 1 1 560px; font-size: var(--fs-h1); line-height: .98; max-width: 17ch; overflow-wrap: anywhere; }
.hero__aside { flex: 0 1 440px; display: flex; flex-direction: column; gap: var(--s-5); padding-bottom: var(--s-2); }
.hero__lead { font-size: var(--fs-20); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Slider ---------- */
.slider {
  position: relative; margin-top: var(--s-7); border-radius: var(--r-l); overflow: hidden;
  height: clamp(380px, 48vw, 640px); background: var(--sand);
  isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.slider::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(31, 23, 17, .45), rgba(31, 23, 17, 0));
}
.slider__stage { position: absolute; inset: 0; }
.slider__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--t-slow) var(--ease);
}
.slider__img.is-active { opacity: 1; }
.slider__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider__dots { position: absolute; top: 12px; left: 20px; right: 20px; display: flex; gap: 6px; z-index: 2; }
.slider__dot { flex: 1 1 0; height: 44px; display: flex; align-items: center; min-width: 0; }
.slider__dot span { display: block; width: 100%; height: 2px; border-radius: 1px; background: rgba(247, 241, 230, .45); transition: background-color var(--t-fast); }
.slider__dot:hover span { background: rgba(247, 241, 230, .8); }
.slider__dot[aria-current="true"] span { background: var(--paper); }
.slider__foot {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4);
}
.slider__caption {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 18px 22px 20px;
  display: flex; flex-direction: column; gap: var(--s-2); max-width: 520px; min-width: 0;
}
.slider__counter { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .08em; color: var(--clay); font-variant-numeric: tabular-nums; }
.slider__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 31px); letter-spacing: -.01em; line-height: 1.1; }
.slider__tags { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin-top: 2px; }
.pill { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; }
.pill + .pill::before { content: '·'; margin-right: var(--s-2); color: var(--line-2); }
.slider__nav { display: flex; gap: var(--s-2); }

/* ---------- Sekcje ---------- */
.section { padding-block: var(--s-9); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5) var(--s-7); margin-bottom: var(--s-7); }
.sec-head__titles { display: flex; flex-direction: column; gap: var(--s-4); }
.sec-head__lead { max-width: 40ch; font-size: var(--fs-18); line-height: 1.5; color: var(--ink-2); }

/* ---------- Oferta: siatka z liniami ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
}
.tile {
  display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-6);
  background: var(--card); min-height: 220px;
  transition: background-color var(--t-fast) var(--ease);
}
.tile:hover { background: var(--sand); }
.tile__head { display: flex; justify-content: space-between; align-items: flex-start; }
.tile__icon { color: var(--clay); display: grid; place-items: center; }
.tile__icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.tile__arrow { color: var(--ink-3); transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
.tile:hover .tile__arrow { transform: translate(3px, -3px); color: var(--ink); }
.tile__body { display: flex; flex-direction: column; gap: var(--s-2); margin-top: auto; }
.tile__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-25); line-height: 1.15; }
.tile__desc { font-size: var(--fs-16); line-height: 1.5; color: var(--ink-3); }
.tile--dark { background: var(--clay); color: var(--paper); }
.tile--dark:hover { background: var(--clay-deep); }
.tile--dark .tile__icon, .tile--dark .tile__arrow, .tile--dark .tile__desc { color: var(--paper); }
.tile--dark .tile__desc { opacity: .92; }

/* ---------- O mnie ---------- */
.about { padding-bottom: var(--s-9); }
.about__grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-8); }
.about__photo { flex: 1 1 420px; min-height: 520px; border-radius: var(--r-l); background: var(--sand); position: relative; overflow: hidden; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--r-s); background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.about__body { flex: 1 1 460px; display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); min-width: 0; }
.about__title { font-size: var(--fs-h2); overflow-wrap: anywhere; }
.about__text { font-size: var(--fs-18); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.about__text + .about__text { margin-top: calc(-1 * var(--s-2)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-5); margin-top: var(--s-2); }
.stat { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-39); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-14); color: var(--ink-3); line-height: 1.4; }
.about__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

/* ---------- Jak pracuję (jedyne ciemne pasmo) ---------- */
.process { padding-bottom: var(--s-9); }
.process__card { border-radius: var(--r-l); padding: clamp(32px, 5vw, 72px); }
.process__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4) var(--s-7); margin-bottom: var(--s-7); }
.process__title { font-size: var(--fs-h2); }
.process__lead { max-width: 36ch; font-size: var(--fs-18); line-height: 1.5; color: var(--night-mute); }
.process__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--s-6); }
.step { display: flex; flex-direction: column; gap: var(--s-3); border-top: 1px solid var(--night-line); padding-top: var(--s-5); }
.step__num { font-family: var(--font-display); font-size: var(--fs-39); line-height: 1; color: var(--clay-hi); font-variant-numeric: tabular-nums; }
.step__title { font-family: var(--font-display); font-size: var(--fs-25); line-height: 1.15; margin-top: var(--s-2); }
.step__text { font-size: var(--fs-16); line-height: 1.6; color: var(--night-mute); }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__top { padding-block: var(--s-9) var(--s-8); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-6) var(--s-7); }
.footer__cta { display: flex; flex-direction: column; gap: var(--s-5); max-width: 640px; }
.footer__cta .btn { align-self: flex-start; }
.footer__title { font-size: var(--fs-h2); }
.footer__meta { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-16); color: var(--ink-2); }
.footer__meta a { font-family: var(--font-display); font-size: var(--fs-25); color: var(--ink); }
.footer__meta a:hover { color: var(--clay); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3) var(--s-6);
  padding-block: var(--s-5); border-top: 1px solid var(--line);
  font-size: var(--fs-14); color: var(--ink-3);
}
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .04em; }

/* ---------- Realizacje ---------- */
.page-hero { padding: var(--s-8) 0 var(--s-7); }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5) var(--s-7); }
.page-hero__title { font-size: var(--fs-page); line-height: .95; }
.page-hero__lead { max-width: 40ch; font-size: var(--fs-18); line-height: 1.5; color: var(--ink-2); padding-bottom: var(--s-2); }

.filters { padding-bottom: var(--s-7); }
.filters__panel { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.filter-groups { display: flex; flex-direction: column; }
.filter-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.filter-group__label { width: 160px; flex-shrink: 0; padding-top: 13px; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); flex: 1 1 400px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 10px 0 14px;
  border-radius: var(--r-m); font-size: var(--fs-14); font-weight: 500;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.chip:hover { border-color: var(--ink); background: var(--card); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-zero:not([aria-pressed="true"]) { opacity: .4; }
.chip__count { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__count { color: var(--clay-tint); }
.filters__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; }
.filters__count { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.btn--clear {
  min-height: 40px; padding: 0 14px; border-radius: var(--r-m);
  font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.btn--clear:hover { color: var(--clay); }

.works { padding-bottom: var(--s-9); }
.works__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--s-7) var(--s-5); }
.work { display: flex; flex-direction: column; gap: var(--s-4); }
.work__media {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden;
  background: var(--sand); text-align: left;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.work:hover .work__media img { transform: scale(1.03); }
.work__badge {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-s); background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.work__row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.work__info { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.work__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-25); line-height: 1.15; }
.tags { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.tag { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; }
.tag + .tag::before { content: '·'; margin-right: var(--s-2); color: var(--line-2); }
.tags--dark .tag { color: var(--night-mute); }
.tags--dark .tag + .tag::before { color: var(--night-line); }
.work__arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.work__arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: var(--s-8) var(--s-5); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-l); font-size: var(--fs-16); color: var(--ink-2); margin-bottom: var(--s-5); }

.cta-bar__row { padding-block: var(--s-8); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5) var(--s-7); }
.cta-bar__title { font-size: clamp(28px, 3.4vw, 49px); line-height: 1.05; max-width: 20ch; }

/* ---------- Lightbox ---------- */
.lightbox {
  padding: 0; border: 0; background: transparent; color: var(--paper);
  width: 100%; max-width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  overflow: visible; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(31, 23, 17, .86); }
.lightbox__inner {
  display: flex; flex-direction: column; gap: var(--s-4);
  background: var(--night); border: 1px solid var(--night-line); border-radius: var(--r-l); overflow: auto;
  max-height: calc(100vh - 32px); overscroll-behavior: contain;
}
.lightbox__media { position: relative; background: var(--night-2); aspect-ratio: 4 / 3; max-height: min(70vh, 760px); flex-shrink: 0; }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox__body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); padding: 0 var(--s-5) var(--s-5); }
.lightbox__info { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.lightbox__info .slider__counter { color: var(--clay-hi); }
.lightbox__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.1; }
.theme-dark .icon-btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body.is-locked { overflow: hidden; }

/* ---------- Kontakt ---------- */
.contact-hero { padding: var(--s-8) 0 var(--s-7); }
.contact-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5) var(--s-7); }
.contact-hero__title { flex: 1 1 560px; font-size: var(--fs-h1); line-height: .98; max-width: 17ch; overflow-wrap: anywhere; }
.contact-hero__lead { flex: 0 1 440px; font-size: var(--fs-20); line-height: 1.5; color: var(--ink-2); padding-bottom: var(--s-2); }
.contact { padding-bottom: var(--s-9); }
.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: var(--s-4); }
.ctile {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  padding: var(--s-6); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); min-height: 260px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.ctile:hover { border-color: var(--ink); }
.ctile__head { display: flex; justify-content: space-between; align-items: flex-start; }
.ctile__icon { color: var(--clay); display: grid; place-items: center; }
.ctile__icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.ctile__arrow { color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.ctile:hover .ctile__arrow { transform: translate(3px, -3px); }
.ctile__body { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.ctile__label { font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ctile__value { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-31); line-height: 1.1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ctile__note { font-size: var(--fs-14); color: var(--ink-2); line-height: 1.5; }
.ctile--accent { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.ctile--accent:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.ctile--accent .ctile__icon, .ctile--accent .ctile__arrow, .ctile--accent .ctile__label, .ctile--accent .ctile__note { color: var(--paper); }
.ctile--accent .ctile__value { font-size: var(--fs-39); }

.contact-tips { margin-top: var(--s-9); display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); align-items: flex-start; }
.contact-tips__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-tips__title { font-size: var(--fs-h2); }
.contact-tips__lead { font-size: var(--fs-18); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.tips { flex: 1 1 480px; border-top: 1px solid var(--line-2); }
.tip { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.tip__num { font-family: var(--font-display); font-size: var(--fs-25); color: var(--clay-hi); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tip__title { font-family: var(--font-display); font-size: var(--fs-25); line-height: 1.2; }
.tip__text { margin-top: var(--s-1); font-size: var(--fs-16); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }

.contact-meta {
  margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--line); font-size: var(--fs-16); color: var(--ink-2);
}
.contact-meta strong { display: block; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-1); }

/* ---------- Obrazy ---------- */
img.is-broken { opacity: 0 !important; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header { padding-block: var(--s-4); }
  .hero { padding-bottom: var(--s-8); }
  .hero__top { padding-top: var(--s-7); gap: var(--s-5); }
  .hero__title { max-width: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .slider { margin-top: var(--s-6); height: clamp(420px, 120vw, 600px); border-radius: var(--r-m); }
  .slider__dots { top: 8px; left: 12px; right: 12px; }
  .slider__foot { left: 12px; right: 12px; bottom: 12px; gap: var(--s-3); }
  .slider__caption { width: 100%; padding: 14px 16px 16px; }
  .section { padding-block: var(--s-8); }
  .sec-head { margin-bottom: var(--s-6); }
  .tiles { border-radius: var(--r-m); }
  .tile { padding: var(--s-5); min-height: 0; gap: var(--s-5); }
  .about { padding-bottom: var(--s-8); }
  .about__grid { gap: var(--s-6); }
  .about__photo { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 5; }
  .process { padding-bottom: var(--s-8); }
  .process__card { border-radius: var(--r-m); }
  .process__head { margin-bottom: var(--s-6); }
  .process__grid { gap: var(--s-5); }
  .footer__top { padding-block: var(--s-8) var(--s-7); gap: var(--s-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: var(--s-7) 0 var(--s-6); }
  .filters { padding-bottom: var(--s-6); }
  .filter-group { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .filter-group__label { width: auto; padding-top: 0; }
  .chips { flex-basis: auto; }
  .works { padding-bottom: var(--s-8); }
  .works__grid { gap: var(--s-6) var(--s-4); }
  .cta-bar__row { padding-block: var(--s-7); }
  .cta-bar__row .btn { width: 100%; }
  .lightbox__body { padding: 0 var(--s-4) var(--s-4); }
  .contact-hero { padding: var(--s-7) 0 var(--s-6); }
  .contact-hero__title { max-width: none; }
  .contact { padding-bottom: var(--s-8); }
  .ctile { padding: var(--s-5); min-height: 200px; gap: var(--s-6); }
  .ctile--accent .ctile__value { font-size: var(--fs-31); }
  .contact-tips { margin-top: var(--s-8); }
  .tip { grid-template-columns: 40px 1fr; }
  .contact-meta { margin-top: var(--s-7); flex-direction: column; gap: var(--s-4); }
}

@media (max-width: 380px) {
  .hero__title, .contact-hero__title { font-size: 40px; }
  .btn { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
