/* ==========================================================================
   lu8ino.sk — osobná stránka Ing. Ľubomíra Tkáča
   Dizajn „Bento – krém a kobalt“: krémové pozadie, kobaltová modrá z podpisu
   lu8ino, marhuľovo-koralové akcenty, obsah v dlaždiciach. Svetlý aj tmavý
   režim (prefers-color-scheme + ručný prepínač cez [data-theme]).
   ========================================================================== */

/* --- Písma (self-hosted, OFL) --- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  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";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  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: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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;
}

/* --- Farby --- */
:root {
  color-scheme: light;
  --bg: #F6F0E4;
  --bg-dot: rgba(35, 73, 196, 0.07);
  --surface: #FFFBF3;
  --surface-2: #FBF5EA;
  --ink: #1B1F3B;
  --ink-soft: #4A4F6E;
  --ink-mute: #767A93;
  --line: rgba(27, 31, 59, 0.10);
  --cobalt: #2349C4;
  --cobalt-deep: #10399B;
  --on-cobalt: #FFFBF3;
  --sky: #DCE5FF;
  --on-sky: #1B2A6B;
  --apricot: #F6A56F;
  --on-apricot: #3A1E0B;
  --coral: #EC6A5C;
  --on-coral: #2A0E0A;
  --butter: #F8E3A8;
  --on-butter: #3D3110;
  --sage: #D7E6D3;
  --on-sage: #22351F;
  --focus: #EC6A5C;
  --shadow: 0 1px 2px rgba(27, 31, 59, 0.06), 0 8px 24px -12px rgba(27, 31, 59, 0.18);
  --shadow-lift: 0 2px 4px rgba(27, 31, 59, 0.08), 0 18px 36px -16px rgba(27, 31, 59, 0.30);
  --ok: #1E7A46;
  --err: #B3261E;

  --radius: 24px;
  --radius-sm: 14px;
  --gap: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1428;
    --bg-dot: rgba(134, 163, 255, 0.07);
    --surface: #182041;
    --surface-2: #1D2650;
    --ink: #EEF0FA;
    --ink-soft: #B9BFDC;
    --ink-mute: #8A90B2;
    --line: rgba(238, 240, 250, 0.10);
    --cobalt: #86A3FF;
    --cobalt-deep: #2B4FC9;
    --on-cobalt: #0F1428;
    --sky: #23305F;
    --on-sky: #DCE5FF;
    --apricot: #FFB487;
    --on-apricot: #2A1607;
    --coral: #FF8A7A;
    --on-coral: #2A0E0A;
    --butter: #3A3420;
    --on-butter: #F8E3A8;
    --sage: #22352A;
    --on-sage: #D7E6D3;
    --focus: #FFB487;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 36px -16px rgba(0, 0, 0, 0.75);
    --ok: #6FD39A;
    --err: #FF8A80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1428;
  --bg-dot: rgba(134, 163, 255, 0.07);
  --surface: #182041;
  --surface-2: #1D2650;
  --ink: #EEF0FA;
  --ink-soft: #B9BFDC;
  --ink-mute: #8A90B2;
  --line: rgba(238, 240, 250, 0.10);
  --cobalt: #86A3FF;
  --cobalt-deep: #2B4FC9;
  --on-cobalt: #0F1428;
  --sky: #23305F;
  --on-sky: #DCE5FF;
  --apricot: #FFB487;
  --on-apricot: #2A1607;
  --coral: #FF8A7A;
  --on-coral: #2A0E0A;
  --butter: #3A3420;
  --on-butter: #F8E3A8;
  --sage: #22352A;
  --on-sage: #D7E6D3;
  --focus: #FFB487;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 36px -16px rgba(0, 0, 0, 0.75);
  --ok: #6FD39A;
  --err: #FF8A80;
}

/* --- Základ --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cobalt); color: var(--on-cobalt); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* --- Hlavička --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 72px; }
.logo {
  display: block; width: 118px; height: 41px; flex: none;
  background-color: var(--cobalt);
  -webkit-mask: url("../img/logo.svg") no-repeat center / contain;
  mask: url("../img/logo.svg") no-repeat center / contain;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.pill-btn, .lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 14px/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.pill-btn:hover, .lang-switch a:hover { border-color: var(--cobalt); }
.pill-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: 72px;
    flex-direction: column; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* --- Sekcie --- */
section { padding: 28px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin: 24px 0 20px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 46px); }
.section-head p { color: var(--ink-soft); max-width: 560px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--coral); }

/* --- Bento mriežka --- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.tile h3 { font-size: 22px; }
.tile p { color: inherit; opacity: .86; }
.tile .tile-kicker { font: 800 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
a.tile { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile .tile-arrow {
  position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .22); transition: transform .2s;
}
.tile .tile-arrow svg { width: 18px; height: 18px; }
a.tile:hover .tile-arrow { transform: rotate(-45deg); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: 1 / -1; }
.row-2 { grid-row: span 2; }

.t-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.t-sky { background: var(--sky); color: var(--on-sky); }
.t-apricot { background: var(--apricot); color: var(--on-apricot); }
.t-coral { background: var(--coral); color: var(--on-coral); }
.t-butter { background: var(--butter); color: var(--on-butter); }
.t-sage { background: var(--sage); color: var(--on-sage); }
.t-sky .tile-arrow, .t-butter .tile-arrow, .t-sage .tile-arrow, .t-apricot .tile-arrow { background: rgba(27, 31, 59, .08); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .row-2 { grid-row: auto; }
  .tile { padding: 20px; }
}

/* --- Hero --- */
.hero { padding-top: 20px; }
.t-hero { padding: 34px; justify-content: space-between; min-height: 380px; }
.t-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; letter-spacing: -0.02em; }
.t-hero h1 em { font-style: italic; font-weight: 500; color: var(--cobalt); }
.t-hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 560px; opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font-body); text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 10px 22px -12px var(--cobalt); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--cobalt); }
.t-hero .hello {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.t-hero .hello .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--apricot); display: grid; place-items: center; font-size: 14px; }

.big-number { font-family: var(--font-display); font-size: clamp(54px, 6vw, 76px); font-weight: 600; line-height: .95; letter-spacing: -0.03em; }
.t-eight { justify-content: flex-end; min-height: 200px; }
.t-eight::before {
  content: "8"; position: absolute; right: -14px; top: -46px;
  font: italic 700 240px/1 var(--font-display); opacity: .16; pointer-events: none;
}
.t-photo { padding: 0; min-height: 220px; color: #fff; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.t-photo:hover img { transform: scale(1.04); }
.t-photo .photo-cap {
  position: relative; margin-top: auto; padding: 60px 22px 20px;
  background: linear-gradient(to top, rgba(10, 14, 30, .85), rgba(10, 14, 30, 0));
}
.t-photo .photo-cap h3 { font-size: 21px; }
.t-photo .photo-cap p { font-size: 14px; opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}

/* --- Weby --- */
.site-group { padding: 22px; }
.site-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.site-group-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.site-group-icon svg { width: 22px; height: 22px; }
.site-group-head h3 { font-size: 22px; }
.site-group-head .count { font: 700 13px var(--font-body); color: var(--ink-mute); margin-left: 4px; }
.site-group > p { color: var(--ink-soft); font-size: 15px; margin-bottom: 6px; }
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 12px;
  padding: 12px 12px; margin: 0 -12px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background .15s;
}
.site:hover { background: var(--surface-2); }
.site-name { font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.site-name svg { width: 14px; height: 14px; color: var(--ink-mute); transition: transform .15s, color .15s; }
.site:hover .site-name svg { transform: translate(2px, -2px); color: var(--coral); }
.site-desc { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.site-aka { grid-column: 1 / -1; font-size: 13px; color: var(--ink-mute); }
.site-aka a { color: var(--ink-mute); }
.site-aka a:hover { color: var(--cobalt); }
.roles { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.role { font: 800 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.role-ceo { background: var(--sky); color: var(--on-sky); }
.role-design { background: var(--butter); color: var(--on-butter); }
.role-owner { background: var(--sage); color: var(--on-sage); }
.ic-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.ic-apricot { background: var(--apricot); color: var(--on-apricot); }
.ic-coral { background: var(--coral); color: var(--on-coral); }
.ic-sky { background: var(--sky); color: var(--on-sky); }
.ic-butter { background: var(--butter); color: var(--on-butter); }
.ic-sage { background: var(--sage); color: var(--on-sage); }

/* --- Nábytok (teaser na hlavnej stránke) --- */
.furniture-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.furniture-mosaic a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.furniture-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.furniture-mosaic a:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .furniture-mosaic { grid-template-columns: repeat(2, 1fr); } }

/* --- Denník --- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { font: 800 13px/1.6 var(--font-body); color: var(--cobalt); letter-spacing: .04em; }
.timeline .new { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--coral); color: var(--on-coral); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* --- Kontakt --- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list span.ci {
  display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; word-break: break-word;
}
.contact-list .ci-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: none; }
.contact-list .ci-icon svg { width: 19px; height: 19px; }
.contact-list small { display: block; font-weight: 600; opacity: .75; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  width: 100%; font: 500 16px/1.5 var(--font-body); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--cobalt); background: var(--surface); }
.form-row .field-error { display: none; font-size: 13px; color: var(--err); font-weight: 600; }
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--err); }
.form-row.has-error .field-error { display: block; }
.form-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.form-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.form-consent.has-error { color: var(--err); }
.form-consent a { color: var(--cobalt); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { display: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 12px; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.form-status.is-error { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Pätička --- */
.footer { padding: 40px 0 48px; color: var(--ink-mute); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--cobalt); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer .logo { width: 90px; height: 31px; opacity: .85; }

/* --- Galéria nábytku --- */
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 60px); }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--cobalt); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.filter {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: 700 14.5px/1 var(--font-body); display: inline-flex; align-items: center; gap: 8px;
}
.filter .n { font-size: 12px; color: var(--ink-mute); }
.filter:hover { border-color: var(--cobalt); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.filter[aria-pressed="true"] .n { color: inherit; opacity: .8; }
.projects { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 380px) { .projects { grid-template-columns: 1fr; } }
.project { padding: 0; gap: 0; }
.project-cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; cursor: zoom-in; background: var(--surface-2); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project-cover:hover img { transform: scale(1.04); }
.project-cover .badge {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  font: 800 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface); color: var(--ink);
}
.project-cover .badge.only3d { background: var(--butter); color: var(--on-butter); }
.project-cover .count { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 14, 30, .7); color: #fff; font: 700 12px/1 var(--font-body); }
.project-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.project-meta { font: 800 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.project-body h3 { font-size: 21px; }
.project-body p { color: var(--ink-soft); font-size: 15px; opacity: 1; }
.project-facts { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-mute); }
.project-facts b { color: var(--ink-soft); font-weight: 700; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.thumbs button { width: 52px; height: 52px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); position: relative; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-plan::after { content: "3D"; position: absolute; right: 3px; bottom: 3px; font: 800 9px/1 var(--font-body); background: var(--butter); color: var(--on-butter); padding: 2px 4px; border-radius: 4px; }
.thumbs .more { display: grid; place-items: center; font: 800 13px var(--font-body); color: var(--ink-soft); }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(8, 10, 22, .94); color: #fff; }
.lightbox::backdrop { background: rgba(8, 10, 22, .94); }
.lb-stage { position: absolute; inset: 64px 16px 84px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.lb-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.lb-title .lb-kind { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 999px; background: #F8E3A8; color: #3D3110; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.lb-title .lb-kind.photo { background: #DCE5FF; color: #1B2A6B; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; flex: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- Textové stránky (ochrana údajov, 404) --- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--cobalt); }

/* --- Animácie --- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Aliasy domén pod položkou (sú mimo odkazu .site, preto vlastný odstup) */
.site-list li > .site-aka { display: block; margin: -8px 0 6px; }

/* Skupiny webov – stĺpce (masonry), aby rôzne vysoké dlaždice nenechávali diery */
.sites { columns: 2 360px; column-gap: var(--gap); }
.sites .site-group { break-inside: avoid; margin-bottom: var(--gap); display: flex; }
.role { line-height: 1.25; }
.furniture-tile { justify-content: center; }

/* [hidden] musí vyhrať nad display:flex dlaždíc (filtre galérie) */
[hidden] { display: none !important; }
.tile.prose { display: block; }
