/* ==========================================================================
   Japa Expo s.r.o. — veletržní expozice
   Převedeno z Figma návrhu (WireFrame_JaPaExperience_Home_page, node 41:250)
   Mobile-first: základ = mobil, ≥768px tablet, ≥1100px desktop (věrně 1440px návrhu)
   ========================================================================== */

/* ---------- Fonty (self-hosted: GDPR + výkon) ---------- */
@font-face {
  font-family: "Goldman";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/goldman-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Goldman";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/goldman-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Goldman";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/goldman-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Goldman";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/goldman-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokeny (z Figmy) ---------- */
:root {
  --c-ink: #464452;          /* hlavní tmavá / nadpisy na světlé */
  --c-deep: #2c2830;         /* tmavší karty, sekce kvality */
  --c-night: #121013;        /* patička */
  --c-paper: #f3f1ef;        /* světlé sekce, text na tmavé */
  --c-teal: #4d8585;         /* akcent */
  --c-teal-70: rgba(77, 133, 133, 0.7);
  --c-teal-90: rgba(77, 133, 133, 0.9);
  --c-teal-ink: #3a6868;     /* teal pro malý text na světlé (kontrast AA) */
  --c-label: #5d4c42;        /* popisky formuláře */
  --c-field: #d9d9d9;        /* pole formuláře */
  --c-hero-sub: #dcdbde;
  --c-hero-lead: #dbd9dc;
  --c-nav: #dad9dc;
  --c-chip: #f0f0f0;
  --c-chip-text: #242424;
  --c-error: #c62828;
  --c-required: #e00000;

  --f-display: "Goldman", "Arial Black", sans-serif;
  --f-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --container: 1280px;
  --header-h: 64px;
  --radius: 15px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --z-header: 300;           /* nad mobilním menu, aby šlo menu zavřít */
  --z-menu: 200;
  --z-actionbar: 90;
  --z-lightbox: 1000;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-weight: 700;              /* návrh používá Roboto Bold pro texty */
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* <picture> jen jako obal pro WebP zdroj – neovlivňuje layout */
picture:not([class]) { display: contents; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

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

:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.mobile-menu :focus-visible,
.site-footer :focus-visible { outline-color: #9fd3d3; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: calc(var(--z-menu) + 1);
  padding: 12px 18px;
  background: var(--c-teal);
  color: #fff;
  font-family: var(--f-display);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Typografie ---------- */
.h-section {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 8.6vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: var(--c-ink);
  text-wrap: balance;
}
.on-dark .h-section { color: var(--c-paper); }

.text-body {
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Tlačítka ---------- */
.btn {
  --btn-bg: var(--c-teal);
  --btn-fg: #fff;
  --btn-shine: rgba(255, 255, 255, 0.28);
  --btn-lift: 0 18px 36px -16px rgba(18, 16, 19, 0.6);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 18px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
  touch-action: manipulation;
  /* jemný horní odlesk = tlačítko není placka */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px -2px rgba(18, 16, 19, 0.25);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 160ms var(--ease-out), translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
/* šikmý lesk přes tlačítko při hoveru – úhel podle zkosení loga */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--btn-shine), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn:active { transform: scale(0.98); }
.btn--glass {
  --btn-bg: var(--c-teal-70);
  -webkit-backdrop-filter: blur(10.55px);
  backdrop-filter: blur(10.55px);
}
.btn--glass:hover { --btn-bg: rgba(77, 133, 133, 0.92); }
.btn--solid { --btn-lift: 0 20px 38px -16px rgba(44, 80, 80, 0.75); }
.btn--solid:hover { --btn-bg: #3f7272; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-shine: rgba(77, 133, 133, 0.22); }
.btn--white:hover { --btn-bg: var(--c-paper); }
.btn--outline { --btn-bg: transparent; border-color: #fff; box-shadow: none; }
.btn--outline:hover { --btn-bg: rgba(255, 255, 255, 0.12); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Ikona zaškrtnutí (Check_fill z Figmy) */
.check {
  flex: none;
  width: 35px;
  height: 35px;
}

/* ==========================================================================
   HLAVIČKA
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--c-nav);
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(18, 16, 19, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header-inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }

.main-nav, .header-actions { display: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-link[aria-current="true"] { color: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out);
}
.chip--teal { background: var(--c-teal-70); color: #fff; }
.chip--teal:hover { background: var(--c-teal); }
.chip--light { background: var(--c-chip); color: var(--c-chip-text); }
.chip--light:hover { background: #fff; }

/* Hamburger */
.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  display: grid;
  place-items: center;
  color: #fff;
  touch-action: manipulation;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease-out), opacity 200ms;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -8px; }
.menu-toggle__bars::after { top: 8px; width: 18px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { width: 26px; transform: translateY(-8px) rotate(-45deg); }

/* Mobilní menu (samostatně navržené) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(18, 16, 19, 0.94), rgba(18, 16, 19, 0.98)),
    url("../img/pattern-kvalita.png") repeat 0 0 / 200px 398px,
    var(--c-night);
  color: var(--c-paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease-out), visibility 0s linear 260ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms var(--ease-out), visibility 0s;
}
.mobile-menu__list { counter-reset: mm; }
.mobile-menu__list li {
  counter-increment: mm;
  border-bottom: 1px solid rgba(243, 241, 239, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: 160ms; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.mobile-menu__list a::before {
  content: "0" counter(mm);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-teal);
  letter-spacing: 0.1em;
  min-width: 22px;
}
.mobile-menu__list a[aria-current="true"] { color: #9fd3d3; }
.mobile-menu__footer {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 12px;
}
.mobile-menu__footer .btn { width: 100%; }
.mobile-menu__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}
.mobile-menu__meta a:not(.chip) { padding: 12px 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: max(100svh, 620px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 32px) 0 40px;
  color: #fff;
  overflow: hidden;
  background: var(--c-night);
}
.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__bg img {
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.04);
  animation: hero-zoom 1600ms var(--ease-out) both;
}
/* Místo plošného 70% závoje gradient: tma pod textem, nasvícený stánek vynikne.
   Mobil: text je dole → tmavne se odspodu. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 9, 11, 0.55) 0%, transparent 22%),
    linear-gradient(0deg, rgba(10, 9, 11, 0.92) 0%, rgba(10, 9, 11, 0.62) 50%, rgba(10, 9, 11, 0.45) 100%);
}
.hero__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.hero-title { font-family: var(--f-display); font-weight: 700; }
.hero-title__main {
  display: block;
  /* EXPOZICE vyplní šířku obrazovky na mobilu */
  font-size: calc((100vw - 2 * var(--gutter)) / 6.5);
  line-height: 0.8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* 1. vrstva = šikmý odlesk (přejede jednou po načtení), 2. = kovový gradient z Figmy */
  background-image:
    linear-gradient(110deg, transparent 45%, rgba(255, 255, 255, 0.7) 48.5%, #fff 50%, rgba(255, 255, 255, 0.7) 51.5%, transparent 55%),
    linear-gradient(0.5deg, #6b6772 9.97%, #ffffff 111.43%);
  background-size: 250% 100%, 100% 100%;
  background-position: 0% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.04em;
}
.hero-title__sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(15px, 4.6vw, 20px);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-hero-sub);
}
.hero-title__sub em { font-style: normal; color: var(--c-teal); }
.hero__lead {
  margin-top: 28px;
  max-width: 738px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-hero-lead);
}
.hero__cta { margin-top: 28px; width: 100%; }

/* Úvodní animace (jen s JS; respektuje reduced-motion níže) */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 800ms var(--ease-out) forwards;
}
.js .hero [data-hero="2"] { animation-delay: 120ms; }
.js .hero [data-hero="3"] { animation-delay: 240ms; }
.js .hero [data-hero="4"] { animation-delay: 360ms; }
.hero-title__main { animation: hero-shine 1900ms cubic-bezier(0.45, 0, 0.25, 1) 900ms both; }
.js .hero .hero-title__main {
  animation: rise 800ms var(--ease-out) forwards, hero-shine 1900ms cubic-bezier(0.45, 0, 0.25, 1) 900ms both;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
/* odlesk: 100 % = mimo text vlevo, 0 % = mimo text vpravo */
@keyframes hero-shine {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}

/* Parallax pozadí + jemné odplutí obsahu při scrollu (scroll-driven, bez JS) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    .hero__inner {
      animation: hero-content-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
  }
}
@keyframes hero-parallax { to { translate: 0 30vh; } }
@keyframes hero-content-out { to { translate: 0 -60px; opacity: 0.4; } }

/* ==========================================================================
   O NÁS
   ========================================================================== */
.about {
  background: var(--c-paper);
  padding: 64px 0 72px;
}
.about__grid { display: grid; gap: 40px; }
.about__text p { margin-top: 24px; color: var(--c-ink); }
.values {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.values li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--c-ink);
}
.about__media {
  --px-amp: 22px;               /* rozkmit parallaxu malé fotky */
  position: relative;
  isolation: isolate;
  padding-bottom: 22%;
}
/* tečkovaný rastr za rohem hlavní fotky – další vrstva hloubky */
.about__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14px;
  right: -8px;
  width: 42%;
  height: 46%;
  background: radial-gradient(circle, rgba(77, 133, 133, 0.55) 1.6px, transparent 2px) 0 0 / 14px 14px;
  pointer-events: none;
}
.about__img-main {
  width: 88%;
  margin-left: auto;
  aspect-ratio: 464 / 348;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 16, 19, 0.5), 0 12px 24px -18px rgba(18, 16, 19, 0.3);
}
.about__img-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 225 / 300;
  border: 10px solid var(--c-paper);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-paper);
  /* blíž k divákovi → výraznější stín */
  box-shadow: 0 40px 70px -26px rgba(18, 16, 19, 0.55), 0 14px 28px -14px rgba(18, 16, 19, 0.3);
}
.about__img-main img,
.about__img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__img-small img { border-radius: 6px; }

/* ==========================================================================
   SLUŽBY
   ========================================================================== */
.services {
  background: var(--c-ink);
  padding: 64px 0 72px;
}
.services__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
}
/* Karty: světlo pod kurzorem (souřadnice --x/--y nastavuje main.js) */
@property --glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.services__grid, .furniture__cards { counter-reset: card; }
.is-lit { --glow: 1; }
.card {
  --x: 50%;
  --y: 50%;
  /* ★ SÍLA A VELIKOST SVĚTLA POD KURZOREM – zde si upravuj ★ */
  --spot: 77 133 133;
  --spot-a: 0.16;          /* průhlednost záře (0 = vypnuto, 0.3 = původně) */
  --spot-size: 140px;      /* velikost záře (původně 440px) */
  --ring-size: 140px;      /* velikost rozsvíceného okraje (původně 260px) */
  --ring-a: 0.6;           /* jas okraje (0–1, původně 0.95) */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 26px 20px 28px;
  border: 1px solid var(--c-teal);
  margin-top: -1px;               /* sjednocení dvojitých okrajů */
  background-color: var(--c-ink);
  background-image: radial-gradient(var(--spot-size) circle at var(--x) var(--y), rgb(var(--spot) / calc(var(--glow) * var(--spot-a))), transparent 65%);
  color: #fff;
  counter-increment: card;
  transition: background-color var(--dur) var(--ease-out), --glow 450ms var(--ease-out);
}
.card--deep { background-color: var(--c-deep); }
.card--teal { background-color: var(--c-teal); --spot: 255 255 255; --spot-a: 0.16; }
/* rozsvícení okraje v blízkosti kurzoru (prstenec 1px uvnitř rámečku) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  background: radial-gradient(var(--ring-size) circle at var(--x) var(--y), rgb(159 211 211 / calc(var(--glow) * var(--ring-a))), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* velká obrysová číslice jako vodoznak */
.card__title::after {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  z-index: -1;
  right: 12px;
  bottom: -0.2em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 78px;
  line-height: 1;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 239, 0.12);
  pointer-events: none;
  transition: -webkit-text-stroke-color 400ms var(--ease-out), translate 600ms var(--ease-out);
}
.card--teal .card__title::after { -webkit-text-stroke-color: rgba(255, 255, 255, 0.28); }
.card--r1b .card__title::after { content: none; }  /* místo zabírá ilustrace stánku */
.card__title {
  display: flex;
  gap: 0.45em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.05em;
}
.card__num { flex: none; }
.card__text {
  margin-top: 16px;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.5;
}
.card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
  transition: transform 700ms var(--ease-out);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.card__illu {
  /* mobil: ilustrace pod textem, zarovnaná vpravo */
  display: block;
  width: 190px;
  height: auto;
  margin: 18px -8px -14px auto;
  pointer-events: none;
}
.card::before {
  /* jemná teal linka při hoveru */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms var(--ease-out);
}
.card--teal::before { background: #fff; }
.services__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.services__cta .btn { width: 100%; }

/* ==========================================================================
   REALIZACE — galerie
   ========================================================================== */
.work {
  background: var(--c-paper);
  padding: 64px 0 72px;
}
.gallery {
  --gap-x: 8px;
  --gap-y: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--gap-y) var(--gap-x);
}
.gallery + .gallery { margin-top: var(--gap-y); }
.work .gallery:first-of-type { margin-top: 32px; }
.tile-li { min-width: 0; }
.tile-li.tile--wide { grid-column: span 2; }
.tile-li.tile--tall { grid-row: span 2; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 310 / 299;
  background: #ddd9d5;
  touch-action: manipulation;
}
.tile.tile--wide { aspect-ratio: 633 / 299; }
.tile.tile--tall { aspect-ratio: auto; height: 100%; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 400ms var(--ease-out), scale 1300ms var(--ease-out) var(--d, 0ms);
}
/* Postupné odhalení galerie: fotka „vyjede“ zespodu jako odhalovaná expozice.
   .is-armed přidá až main.js → bez JS (nebo při chybě) je galerie normálně vidět.
   Ořez je na vnitřní .tile, ne na sledovaném <li> – IntersectionObserver
   by plně ořezaný prvek nikdy nevyhodnotil jako viditelný. */
.gallery.is-armed .tile-li .tile {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 950ms var(--ease-out) var(--d, 0ms);
}
.gallery.is-armed .tile-li.is-in .tile { clip-path: inset(0 0 0 0); }
.gallery.is-armed .tile-li .tile img { scale: 1.18; }
.gallery.is-armed .tile-li.is-in .tile img { scale: 1; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(18, 16, 19, 0.55)),
    rgba(77, 133, 133, 0);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.tile__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--c-teal-70);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.tile__zoom svg { width: 18px; height: 18px; }
/* Ořezy obrázků dle Figmy */
.pos-a9 { object-position: 50% 74%; }
.pos-bottom { object-position: 50% 100%; }
.pos-right { object-position: 100% 50%; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 9, 11, 0.94);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 9, 11, 0.94); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in 220ms var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 20px;
  padding-top: max(8px, env(safe-area-inset-top));
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 12px;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
}
.lightbox__img {
  /* fotka se vždy vejde celá do okna */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0 12px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  animation: fade-in 260ms var(--ease-out);
}
.lightbox__caption {
  padding: 12px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: var(--c-hero-lead);
  min-height: 52px;
}
.icon-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 24px; height: 24px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-teal-70);
}
.lightbox__nav:hover { background: var(--c-teal); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ==========================================================================
   KVALITA / ZÁZEMÍ
   ========================================================================== */
.quality {
  position: relative;
  isolation: isolate;
  padding: 64px 0 72px;
  color: var(--c-paper);
  background:
    url("../img/pattern-kvalita-dots.png") 0 0 / 12px 12px,
    url("../img/pattern-kvalita.png") 0 0 / 200px 398px,
    var(--c-deep);
}
.quality::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
}
.quality__grid { display: grid; gap: 36px; }
.quality__media { position: relative; isolation: isolate; }
/* teal záře za fotkou – odlepí ji od tmavého pozadí */
.quality__media::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -6% 0 10%;
  background: radial-gradient(closest-side, rgba(77, 133, 133, 0.38), transparent);
  pointer-events: none;
}
.quality__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: 0 34px 64px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* posunutý obrysový rám – stejný motiv jako u fotky v kontaktu */
.quality__img::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 2px solid var(--c-teal);
  border-radius: var(--radius);
  transform: translate(10px, -10px);
  opacity: 0.85;
  pointer-events: none;
}
.quality__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 90% 50%;
  border-radius: inherit;
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin: -32px 16px 0;
  position: relative;
  padding: 14px 16px;
  background: var(--c-teal-70);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-align: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}
.checklist { display: grid; gap: 14px; margin-top: 32px; }
.values .check { width: 28px; height: 28px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.3;
}
.checklist .check { width: 30px; height: 30px; }

/* ==========================================================================
   EVROPA
   ========================================================================== */
.europe {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 64px 0 56px;
  overflow: hidden;
}
.europe__grid { display: grid; gap: 28px; margin-top: 32px; }
.europe__map {
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 696 / 464;
}
.europe__map img { width: 100%; height: 100%; object-fit: cover; }

/* Animace mapy: světelné impulsy z ČR po linkách v obrázku + „ping“ v cíli.
   SVG má stejný viewBox jako PNG, takže sedí přesně na nakreslené linky.
   Běží jen když je mapa vidět (třída .is-playing z main.js). */
.europe__map { position: relative; }
.map-fx {
  --map-dur: 4.8s;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(140, 235, 235, 0.9));
}
.map-fx line {
  fill: none;
  stroke: #e4fdfd;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 110;       /* délky v jednotkách pathLength=100 */
  stroke-dashoffset: 14;
  animation: map-comet var(--map-dur) linear var(--d, 0s) infinite both;
}
.map-fx circle {
  fill: none;
  stroke: #9fe9e9;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.map-fx__route circle { animation: map-ping var(--map-dur) linear var(--d, 0s) infinite both; }
.map-fx__hub circle { stroke-width: 2.5; animation: map-hub 2.4s var(--ease-out) infinite both; }
.map-fx__hub circle + circle { animation-delay: 1.2s; }
.europe__map:not(.is-playing) .map-fx * { animation-play-state: paused; }
/* rozházené pořadí startů – impulsy nevystřelují dokola jako ručička */
.map-fx__route:nth-child(1)  { --d: 0s; }
.map-fx__route:nth-child(2)  { --d: 2.1s; }
.map-fx__route:nth-child(3)  { --d: 3.6s; }
.map-fx__route:nth-child(4)  { --d: 0.9s; }
.map-fx__route:nth-child(5)  { --d: 2.7s; }
.map-fx__route:nth-child(6)  { --d: 4.2s; }
.map-fx__route:nth-child(7)  { --d: 0.3s; }
.map-fx__route:nth-child(8)  { --d: 3s; }
.map-fx__route:nth-child(9)  { --d: 1.5s; }
.map-fx__route:nth-child(10) { --d: 4.5s; }
.map-fx__route:nth-child(11) { --d: 0.6s; }
.map-fx__route:nth-child(12) { --d: 2.4s; }
.map-fx__route:nth-child(13) { --d: 3.9s; }
.map-fx__route:nth-child(14) { --d: 1.2s; }
.map-fx__route:nth-child(15) { --d: 3.3s; }
.map-fx__route:nth-child(16) { --d: 1.8s; }
@keyframes map-comet {
  0%   { stroke-dashoffset: 14; opacity: 0; }
  6%   { opacity: 1; }
  50%  { stroke-dashoffset: -112; opacity: 1; }
  100% { stroke-dashoffset: -112; opacity: 0; }
}
@keyframes map-ping {               /* impuls dorazí do cíle cca ve 41 % */
  0%, 39% { opacity: 0; transform: scale(0.4); }
  43%     { opacity: 1; transform: scale(0.8); }
  72%, 100% { opacity: 0; transform: scale(2.6); }
}
@keyframes map-hub {
  0%   { opacity: 0; transform: scale(0.6); }
  10%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(3.4); }
}
.features { display: grid; gap: 28px; }
.feature__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.feature__title .check { width: 30px; height: 30px; }
.feature p {
  margin-top: 6px;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(243, 241, 239, 0.92);
}

/* ==========================================================================
   NÁBYTEK NA MÍRU
   ========================================================================== */
.furniture {
  background: var(--c-paper);
  padding: 64px 0 72px;
}
.furniture__grid { display: grid; gap: 40px; margin-top: 28px; }
.furniture__text .text-body { color: var(--c-ink); }
.checklist--compact { margin-top: 28px; gap: 12px; color: var(--c-ink); }
.checklist.checklist--compact li { font-size: 17px; line-height: 1.35; }
.checklist--compact .check { width: 28px; height: 28px; }
.furniture__cta { margin-top: 36px; }
.furniture__cta .btn { width: 100%; }
.furniture__cards { display: grid; grid-template-columns: 1fr; }

/* ==========================================================================
   CTA PÁS — poptávka
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  padding: 56px 0;
  color: var(--c-paper);
  overflow: hidden;
  background: var(--c-teal);
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 0 30%; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-teal-90);
}
.cta-band__grid { display: grid; gap: 32px; }
.cta-band p.text-body { margin-top: 20px; }
.cta-band__actions { display: grid; gap: 14px; }
.cta-band__actions .btn { width: 100%; }
.cta-band__actions .btn--outline { font-size: 18px; }

/* ==========================================================================
   KONTAKT + FORMULÁŘ
   ========================================================================== */
.contact {
  background: var(--c-paper);
  padding: 64px 0 80px;
}
.contact__rule {
  margin: 28px 0 28px;
  height: 1px;
  border: 0;
  background: #000;
}
.contact-info {
  display: grid;
  gap: 18px;
}
.contact-info dt {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--c-label);
}
.contact-info dd {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-ink);
}
.contact-info a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease-out), color var(--dur);
}
.contact-info a:hover { color: var(--c-teal-ink); text-decoration-color: currentColor; }

.form { margin-top: 40px; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 30px;
}
.field { display: grid; gap: 4px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label,
.field .label {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--c-label);
}
.req { color: var(--c-required); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--c-field);
  border: 1px solid var(--c-teal);
  border-radius: 0;
  box-shadow: 0 4px 4px rgba(70, 68, 82, 0.15);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;               /* ≥16px: bez auto-zoomu na iOS */
  color: var(--c-ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
.input:hover { background-color: #e1e1e1; }
.input:focus {
  outline: none;
  background-color: #e6e6e6;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 3px rgba(77, 133, 133, 0.35), 0 4px 4px rgba(70, 68, 82, 0.15);
}
.input[aria-invalid="true"] {
  border-color: var(--c-error);
  box-shadow: 0 0 0 1px var(--c-error), 0 4px 4px rgba(70, 68, 82, 0.15);
}
textarea.input { min-height: 200px; resize: vertical; }
select.input {
  padding-right: 48px;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px 24px;
  box-shadow: 0 4px 2px rgba(70, 68, 82, 0.25);
  cursor: pointer;
}
select.input:invalid { color: #5e6366; font-weight: 400; }
select.input option { color: var(--c-ink); }
input[type="date"].input { position: relative; }
input[type="date"].input::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  padding: 0;
  background: url("../icons/calendar.svg") center / 20px 21px no-repeat;
  color: transparent;
  cursor: pointer;
}
.field__error {
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-error);
}
.field__error:empty { display: none; }

.consent {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  background: var(--c-field);
  border: 1px solid var(--c-teal);
  box-shadow: 0 4px 4px rgba(70, 68, 82, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 12px;
  height: 7px;
  border: solid #fff;
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 160ms var(--ease-out);
}
.consent input:checked { background: var(--c-teal); }
.consent input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
.consent label {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-label);
  cursor: pointer;
}
.consent a { color: var(--c-teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent .field__error { grid-column: 2; }

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

.form__submit { margin-top: 28px; }
.form__submit .btn { width: 100%; }
.form__note {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-label);
}
.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--c-teal);
  background: rgba(77, 133, 133, 0.12);
  font-size: 15px;
  color: var(--c-ink);
}
.form__status:empty { display: none; }
.form__status.is-error { border-color: var(--c-error); background: rgba(198, 40, 40, 0.08); }
.form__status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   PATIČKA
   ========================================================================== */
.site-footer {
  background: var(--c-night);
  color: var(--c-paper);
  padding: 56px 0 24px;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.footer__grid { display: grid; gap: 40px; }
.footer__logo { width: 220px; height: auto; }
.footer__about { margin-top: 24px; max-width: 300px; line-height: 1.5; }
.footer__about p + p { margin-top: 21px; }
.footer__heading {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--c-teal);
}
.footer__nav { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer__nav a, .footer__contact a { transition: color var(--dur); }
.footer__nav a { display: inline-block; padding: 10px 0; }
.footer__nav a:hover, .footer__contact a:hover, .footer__bottom a:hover { color: #9fd3d3; }
.footer__contact { margin-top: 14px; display: grid; gap: 4px; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
}
.footer__contact img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.footer__contact a { padding: 8px 0; }
.footer__privacy {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.footer__bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-paper);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   MOBILNÍ AKČNÍ LIŠTA (jen mobil)
   ========================================================================== */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-actionbar);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(18, 16, 19, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 52px; padding: 12px; font-size: 16px; }
.action-bar svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   SCROLL REVEAL (jen s JS)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 80ms; }
.js [data-reveal-delay="2"] { transition-delay: 160ms; }
.js [data-reveal-delay="3"] { transition-delay: 240ms; }

/* Parallax fotek v „O nás“ – čisté CSS (scroll-driven animations).
   Prohlížeče bez podpory ho prostě nezobrazí; vypnuto při omezení pohybu. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__media { view-timeline: --about-media block; }
    .about__img-small,
    .about__img-main {
      animation: parallax-small linear both;
      animation-timeline: --about-media;
      animation-range: cover;
    }
    .about__img-main { animation-name: parallax-main; }
  }
}
@keyframes parallax-small {
  from { translate: 0 var(--px-amp); }
  to { translate: 0 calc(var(--px-amp) * -1); }
}
@keyframes parallax-main {
  from { translate: 0 calc(var(--px-amp) * -0.3); }
  to { translate: 0 calc(var(--px-amp) * 0.3); }
}

/* ==========================================================================
   HOVER jen pro zařízení s myší
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .card:hover::before { transform: scaleY(1); }
  .card:hover .card__media img { transform: scale(1.05); }
  .card:not(.card--teal):not(.card--image):hover { background-color: #514f5e; }
  .card--deep:hover { background-color: #35303a !important; }
  .card:hover .card__title::after { -webkit-text-stroke-color: rgba(159, 211, 211, 0.45); translate: 0 -6px; }
  .card--teal:hover .card__title::after { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }
  /* tlačítka: zvednutí + stín + přejezd lesku */
  .btn:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--btn-lift); }
  .btn--outline:hover { box-shadow: var(--btn-lift); }
  .btn:hover::after { transform: skewX(-20deg) translateX(480%); transition: transform 750ms var(--ease-out); }
  .btn:active { translate: 0 0; }
  .tile:hover img { transform: scale(1.05); }
  .tile:hover::after { opacity: 1; }
  .tile:hover .tile__zoom { opacity: 1; transform: none; }
}
.tile:focus-visible .tile__zoom { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: -3px; }

/* ==========================================================================
   TABLET ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 80px; }
  .brand img { width: 170px; }

  .h-section { font-size: clamp(44px, 6vw, 72px); line-height: 0.8; }
  .text-body { font-size: 19px; }

  .btn { min-height: 76px; font-size: 26px; padding: 22px 36px; }

  .hero { align-items: center; padding-bottom: 72px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 9, 11, 0.55) 0%, transparent 22%),
      linear-gradient(0deg, rgba(10, 9, 11, 0.55) 0%, transparent 38%),
      linear-gradient(90deg, rgba(10, 9, 11, 0.88) 0%, rgba(10, 9, 11, 0.66) 42%, rgba(10, 9, 11, 0.32) 100%);
  }
  .hero-title__main { font-size: calc((100vw - 2 * var(--gutter)) / 6.5); }
  .hero-title__sub { font-size: clamp(20px, 3vw, 32px); line-height: 0.95; margin-top: 4px; }
  .hero__lead { font-size: 21px; margin-top: 56px; }
  .hero__cta { width: auto; min-width: 460px; margin-top: 40px; }

  .about, .services, .work, .quality, .contact { padding: 88px 0 96px; }
  .europe { padding: 88px 0 72px; }
  .values li { font-size: 18px; }
  .about__media { max-width: 600px; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { margin-left: -1px; padding: 40px 24px 36px; }
  .card__title { font-size: 26px; }
  .card__text { font-size: 18px; }
  .card--span-2 { grid-column: span 2; }
  .card__title::after { font-size: 116px; right: 16px; }
  .card__illu { position: absolute; z-index: -1; margin: 0; width: 220px; right: 0; bottom: 0; opacity: 0.6; }
  .services__cta .btn { width: auto; min-width: 460px; }

  .gallery { --gap-x: 13px; --gap-y: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work .gallery:first-of-type { margin-top: 56px; }

  .quality__media { max-width: 640px; }
  .badge { font-size: 24px; margin: -43px 32px 0; min-height: 86px; }
  .checklist li { font-size: 24px; }
  .checklist .check, .feature__title .check { width: 35px; height: 35px; }
  .feature__title { font-size: 26px; }
  .feature p { font-size: 19px; padding-left: 45px; }

  .furniture { padding: 88px 0 96px; }
  .furniture__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist.checklist--compact li { font-size: 20px; }
  .checklist--compact .check { width: 35px; height: 35px; }
  .furniture__cta .btn { width: auto; min-width: 460px; }

  .cta-band { padding: 88px 0; }
  .cta-band__actions { max-width: 540px; }
  .cta-band__actions .btn--outline { font-size: 24px; }

  .contact-info { grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 48px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__submit .btn { width: auto; min-width: 460px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .action-bar { display: none; }

  /* Lightbox: místo pro šipky po stranách */
  .lightbox__img { padding: 16px 88px; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}

/* ==========================================================================
   DESKTOP ≥ 1100px — věrně podle 1440px návrhu
   ========================================================================== */
@media (min-width: 1100px) {
  :root { --gutter: 80px; --header-h: 112px; }

  .site-header { height: var(--header-h); }
  .site-header.is-scrolled { height: 84px; }
  .brand img { width: 215px; height: 57px; transition: width 300ms var(--ease-out), height 300ms var(--ease-out); }
  .site-header.is-scrolled .brand img { width: 170px; height: 45px; }
  .header-inner { width: min(100% - 2 * 78px, 1440px - 2 * 78px); position: relative; }

  .h-section { font-size: clamp(56px, 5vw, 72px); text-wrap: wrap; }
  .text-body { font-size: 20px; }

  .btn { min-height: 86px; font-size: 32px; padding: 26px 40px; width: 539px; max-width: 100%; }

  /* --- HERO --- */
  .hero {
    min-height: 0;
    height: clamp(720px, 56vw, 860px);
    align-items: stretch;
    padding: 0;
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    padding-top: clamp(170px, 13.8vw, 199px);
    padding-bottom: clamp(70px, 6.2vw, 89px);
  }
  .hero-title__main { font-size: clamp(120px, 11.4vw, 164px); }
  .hero-title__sub { font-size: 32px; line-height: 0.8; margin-top: 0; padding-left: 0.3em; }
  .hero__lead { font-size: 24px; margin-top: auto; padding-left: 9px; }
  .hero__cta { margin-top: 60px; margin-left: 9px; min-width: 0; }

  /* --- O NÁS (626px) --- */
  .about { padding: 90px 0 0; min-height: 626px; }
  .about__grid { grid-template-columns: minmax(0, 675px) minmax(0, 561px); justify-content: space-between; gap: 40px; }
  .about__text .h-section { max-width: 666px; }
  .about__text p { margin-top: 82px; font-size: 20px; }
  .values { margin-top: 32px; gap: 10px 20px; }
  .values .check { width: 35px; height: 35px; }
  .values li { font-size: 18px; }
  .about__media { max-width: none; width: 561px; height: 420px; padding: 0; margin-top: 16px; --px-amp: 34px; }
  .about__media::before { top: -28px; right: -28px; }
  .about__img-main { position: absolute; top: 0; right: 0; width: 464px; height: 348px; }
  .about__img-small { width: 225px; height: 300px; border-width: 15px; left: 0; bottom: 0; transform: translate(-15px, 15px); box-sizing: content-box; }

  /* --- SLUŽBY (1366px) --- */
  .services { padding: 84px 0 80px; }
  .services .h-section { font-size: 72px; }
  .services__grid {
    margin-top: 101px;
    grid-template-columns: 36.875fr 2.97fr 27.89fr 32.27fr;
    grid-auto-rows: 200px;
  }
  .card { padding: 50px 20px 20px; margin: 0 0 -1px -1px; border-width: 1px; }
  .card__title { font-size: 28px; line-height: 0.8; }
  .card__text { margin-top: 22px; font-size: 20px; line-height: 1.5; }
  .card--r1a { grid-column: 1 / 3; }
  .card--r1b { grid-column: 3 / 5; padding-left: 26px; }
  .card--c1 { grid-column: 1 / 2; }
  .card--c2 { grid-column: 2 / 4; }
  .card--c3 { grid-column: 4 / 5; }
  .card--r4a { grid-column: 1 / 2; }
  .card--r4b { grid-column: 2 / 5; padding-left: 30px; }
  .card--r1b .card__text { max-width: 453px; }
  .card--r4b .card__text { max-width: 678px; }
  .card__illu { width: 279px; height: 199px; right: 27px; bottom: 0; top: 0; opacity: 1; object-fit: contain; }
  .services__cta { margin-top: 100px; }
  .services__cta .btn { width: 539px; min-width: 0; }

  /* --- REALIZACE (2303px) --- */
  .work { padding: 100px 0 100px; }
  .work .h-section { max-width: 1180px; }
  .work .gallery:first-of-type { margin-top: 101px; }

  /* --- KVALITA (796px) --- */
  .quality { padding: 100px 0 61px; min-height: 796px; }
  .quality__grid { grid-template-columns: minmax(0, 1fr) 530px; gap: 40px; align-items: start; }
  .quality .h-section { max-width: 652px; font-size: 72px; }
  .checklist { margin-top: 69px; gap: 25px; }
  .checklist li { font-size: 28px; line-height: 30px; }
  .quality__media { max-width: none; }
  .quality__img { width: 530px; height: 500px; aspect-ratio: auto; }
  .quality__img::before { transform: translate(18px, -18px); }
  /* badge přesahuje spodní hranu fotky → skleněný blur je konečně vidět */
  .badge { width: auto; margin: -43px 24px 0; min-height: 86px; font-size: 26px; padding: 12px 16px; white-space: nowrap; }

  /* --- EVROPA (708px) --- */
  .europe { padding: 90px 0 0; min-height: 708px; }
  .europe .h-section { font-size: 72px; }
  .europe__grid { position: relative; grid-template-columns: minmax(0, 1fr) 696px; gap: 0; margin-top: 0; }
  .features { margin-top: 95px; gap: 50px; align-content: start; }
  .feature__title { font-size: 28px; line-height: 30px; }
  .feature p { margin-top: 6px; font-size: 20px; max-width: 586px; }
  .europe__map { margin: 30px 0 0; width: 696px; height: 464px; aspect-ratio: auto; }

  /* --- NÁBYTEK --- */
  .furniture { padding: 100px 0 100px; }
  .furniture .h-section { max-width: 900px; }
  .furniture__grid {
    margin-top: 72px;
    grid-template-columns: minmax(0, 560px) minmax(0, 640px);
    justify-content: space-between;
    align-items: start;
    gap: 40px;
  }
  .furniture__text .text-body { font-size: 20px; }
  .checklist--compact { margin-top: 40px; gap: 20px; }
  .checklist.checklist--compact li { font-size: 20px; line-height: 30px; }
  .furniture__cta { margin-top: 56px; }
  .furniture__cta .btn { width: 539px; min-width: 0; }
  .furniture__cards { grid-auto-rows: minmax(230px, auto); }
  .furniture__cards .card__text { font-size: 18px; }
  .furniture__cards .card__title { font-size: 24px; line-height: 1.05; }

  /* --- CTA PÁS (396px) --- */
  .cta-band { padding: 98px 0 60px; min-height: 396px; }
  .cta-band__grid { grid-template-columns: minmax(0, 675px) 539px; justify-content: space-between; align-items: start; gap: 40px; }
  .cta-band .h-section { font-size: 72px; }
  .cta-band p.text-body { margin-top: 60px; font-size: 20px; }
  .cta-band__actions { margin-top: 15px; gap: 31px; max-width: none; }
  .cta-band__actions .btn--outline { font-size: 28px; }

  /* --- KONTAKT (1300px) --- */
  .contact { padding: 75px 0 99px; }
  .contact .h-section { font-size: 72px; }
  .contact__rule { margin: 30px 0 51px; }
  .contact-info { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 96px; }
  .form { margin-top: 79px; }
  .form__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 30px; }
  .field label, .field .label { line-height: 21px; }
  .field .input { width: 100%; }
  .consent { margin-top: 24px; }
  .consent label { font-size: 12px; }
  .form__submit { margin: 39px 0 0; }
  .form__submit .btn { width: 539px; min-width: 0; }
  .form__note { margin-top: 0; }

  /* --- PATIČKA (449px) --- */
  .site-footer { padding: 77px 0 12px; }
  .footer__grid { grid-template-columns: 641px 334px 1fr; gap: 0; }
  .footer__brand { grid-column: auto; }
  .footer__logo { width: 302px; height: 80px; object-fit: contain; object-position: 20px 0; }
  .footer__about { margin: 30px 0 0 20px; max-width: 282px; }
  .footer__heading { margin-top: 4px; letter-spacing: 1px; }
  .footer__nav { grid-template-columns: 1fr; margin-top: 12px; }
  .footer__nav a { padding: 4px 0; line-height: 1.5; }
  .footer__contact { margin-top: 12px; gap: 9px; }
  .footer__contact li { min-height: 21px; }
  .footer__contact a { padding: 0; }
  .footer__legal { display: grid; grid-template-columns: 641px 334px 1fr; margin-top: 26px; }
  .footer__privacy { grid-column: 3; margin: 0; padding: 0; }
  .footer__bottom { margin-top: 8px; padding-top: 9px; }
}

/* Hlavička: plná navigace až od 1200px, níže hamburger */
@media (min-width: 1200px) {
  .main-nav { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .main-nav ul { display: flex; gap: clamp(28px, 3.33vw, 48px); }
  .nav-link { font-size: clamp(20px, 1.67vw, 24px); }
  .header-actions { display: flex; gap: 24px; align-items: center; }
  .menu-toggle { display: none; }
}

/* Jemné přizpůsobení mezi 1100–1360px (desktop menší než návrh) */
@media (min-width: 1100px) and (max-width: 1360px) {
  .services .h-section,
  .quality .h-section,
  .europe .h-section,
  .cta-band .h-section,
  .contact .h-section { font-size: clamp(56px, 5.2vw, 72px); }
  .quality__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .quality__img { width: 100%; height: auto; aspect-ratio: 530 / 500; }
  .badge { font-size: 22px; margin-inline: 16px; }
  .europe__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .europe__map { width: 100%; height: auto; aspect-ratio: 696 / 464; }
  .cta-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .cta-band__actions .btn { width: 100%; font-size: 26px; }
  .cta-band__actions .btn--outline { font-size: 23px; }
  .footer__grid, .footer__legal { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .furniture__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .furniture__cta .btn { width: 100%; font-size: 28px; }
  .about__grid { grid-template-columns: minmax(0, 1fr) 500px; }
  .about__media { width: 500px; }
  .about__img-main { width: 420px; height: 315px; }
  .about__img-small { width: 200px; height: 267px; }
}

/* ==========================================================================
   PŘÍSTUPNOST — omezení pohybu
   ========================================================================== */
@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: 0ms !important;
  }
  .js [data-reveal], .js .hero [data-hero] { opacity: 1; transform: none; }
  .hero__bg img { transform: none; }
  .btn::after { display: none; }
  .btn:hover, .card:hover .card__title::after { translate: none; }
  .map-fx { display: none; }
}

/* ==========================================================================
   Stránka Ochrana osobních údajů
   ========================================================================== */
.legal {
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: var(--c-paper);
}
.legal .container { max-width: 820px; }
.legal h2 {
  margin-top: 40px;
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.04em;
}
.legal p, .legal ul { margin-top: 14px; font-weight: 500; font-size: 17px; line-height: 1.65; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--c-teal-ink); text-decoration: underline; }
.site-header--solid { background: var(--c-night); }

/* ==========================================================================
   Stránka 404 (404.html, en/404.html)
   ========================================================================== */
.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(100svh, 560px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 64px;
  background: var(--c-night);
  color: #fff;
}
.notfound__bg,
.notfound__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.notfound__bg img { object-fit: cover; object-position: 62% 50%; }
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 9, 11, 0.94) 0%, rgba(10, 9, 11, 0.8) 55%, rgba(10, 9, 11, 0.55) 100%);
}
.notfound__code {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(110px, 34vw, 260px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(159, 211, 211, 0.55);
}
.notfound__title { margin-top: 20px; color: var(--c-paper); }
.notfound__lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-hero-lead);
}
.notfound__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.notfound__cta .btn { flex: 1 1 240px; }
.notfound__alt { margin-top: 28px; font-size: 16px; color: var(--c-hero-lead); }
.notfound__alt a { color: #9fd3d3; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) {
  .notfound__cta .btn { flex: 0 0 auto; }
  .notfound__lead { font-size: 21px; max-width: 680px; margin-top: 28px; }
}

/* Tisk: zobrazit i sekce, ke kterým návštěvník ještě nedoscrolloval */
@media print {
  .js [data-reveal], .js .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .gallery.is-armed .tile-li .tile { clip-path: none !important; }
  .gallery.is-armed .tile-li .tile img { scale: 1 !important; }
  .hero__bg, .hero__inner { animation: none !important; translate: none !important; opacity: 1 !important; }
  .site-header, .action-bar, .lightbox { display: none !important; }
}
