/* Albicom, varianta A „Noc": téměř černé pozadí, jedna oranžová, tlumená záře.
   Tvary: tlačítka a volby = pilulka, karty a panely = 18px, vstupy = 12px. */

:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --surface: #1a1714;
  --surface-2: #221e1a;
  --line: rgb(255 240 225 / 0.1);
  --line-2: rgb(255 240 225 / 0.18);
  --text: #f4efe9;
  --muted: #b3aaa1;
  --dim: #8c847c;
  --accent: #ff6a1a;
  --accent-2: #ff8a3d;
  --accent-ink: #1a0b02;
  --accent-soft: rgb(255 106 26 / 0.14);
  --error: #ff8b7a;
  --r-card: 18px;
  --r-input: 12px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Onest', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 18ch; }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; margin-top: 18px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgb(255 106 26 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 14px 50px -10px rgb(255 106 26 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgb(255 255 255 / 0.02); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn i { font-size: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(3px); }

/* ---------- navigace ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(12 11 10 / 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, #ffb27a, var(--accent) 55%, #d94f00);
  color: var(--accent-ink); font-size: 1.05rem; box-shadow: 0 0 24px -4px rgb(255 106 26 / 0.7);
}
.nav__links { display: none; gap: 30px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9375rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 420px) { .nav .btn--sm { padding: 0 14px; font-size: 0.875rem; } .logo__word { font-size: 1.05rem; } }

/* přepínač jazyka */
.nav__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang a { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }
@media (max-width: 420px) { .nav__end { gap: 8px; } .lang a { min-width: 32px; padding: 0 6px; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: 56px 0 72px; }
.hero__glow {
  position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 106 26 / 0.32), rgb(255 106 26 / 0.08) 55%, transparent 72%);
  filter: blur(10px);
}
.hero::after {
  /* jemná síť jako na výkrese, mizí do ztracena */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero__in { display: grid; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 13ch; }
.hero__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; min-height: calc(100dvh - 68px); display: grid; align-items: center; }
  .hero__in { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

/* skladba stěny */
.layers { margin: 0; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: stretch; padding: 28px; border-radius: var(--r-card); background: linear-gradient(160deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.01)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 30px 80px -40px rgb(255 106 26 / 0.45); }
.layers__stack { display: flex; height: 100%; min-height: 300px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 60px -10px rgb(255 106 26 / 0.45); }
.layer { width: 22px; }
.layer--wall { width: 54px; background: repeating-linear-gradient(0deg, #4a3d33 0 22px, #2a221c 22px 25px), #3b3029; background-size: 100% 25px; position: relative; }
.layer--wall::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 25px, transparent 25px 50px), repeating-linear-gradient(90deg, transparent 0 26px, #2a221c 26px 29px); mask: repeating-linear-gradient(0deg, #000 0 22px, transparent 22px 25px, transparent 25px 47px, transparent 47px 50px); opacity: 0.6; }
.layer--glue { width: 8px; background: #6a5a4d; }
.layer--eps { width: 58px; background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.08) 1.5px, transparent 2px) 0 0 / 9px 9px, linear-gradient(90deg, #ece6df, #d8d0c7); }
.layer--mesh { width: 12px; background: repeating-linear-gradient(45deg, #ff8a3d 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, #ff8a3d 0 2px, transparent 2px 7px), #3a2a1e; }
.layer--finish { width: 16px; background: linear-gradient(90deg, var(--accent), #ffa25f); }
.layers__legend { display: grid; align-content: space-between; gap: 10px; counter-reset: l; }
.layers__legend li { counter-increment: l; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.layers__legend li:first-child { border-top: 0; }
.layers__legend li::before { content: counter(l); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem/1 var(--display); color: var(--accent); border: 1px solid rgb(255 106 26 / 0.45); }
.layers__legend span { font-weight: 700; font-size: 0.98rem; }
.layers__legend small { color: var(--dim); font-size: 0.85rem; }
.layers__cap { grid-column: 1 / -1; color: var(--dim); font-size: 0.85rem; }
@media (max-width: 560px) {
  .layers { padding: 18px; gap: 14px 16px; }
  .layers__stack { min-height: 0; }
  .layer--wall { width: 30px; }
  .layer--glue { width: 5px; }
  .layer--eps { width: 30px; }
  .layer--mesh { width: 8px; }
  .layer--finish { width: 10px; }
  .layers__legend li { padding: 7px 0; }
  .layers__legend span { font-size: 0.92rem; }
  .layers__legend small { font-size: 0.8rem; }
}

/* ---------- o nás ---------- */
.about { padding: 72px 0; border-top: 1px solid var(--line); }
.about__statement { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.22; letter-spacing: -0.025em; font-weight: 600; max-width: 30ch; }
.facts { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts i { font-size: 1.6rem; color: var(--accent); flex: none; margin-top: 2px; }
.facts strong { display: block; font-family: var(--display); font-size: 1.125rem; font-weight: 600; }
.facts span { color: var(--muted); }
@media (min-width: 860px) {
  .about { padding: 112px 0; }
  .facts { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .facts li { flex-direction: column; border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 28px; }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- služby ---------- */
.services { padding: 72px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.services__groups { display: grid; gap: 40px; margin-top: 40px; }
.group__title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-family: var(--font); font-weight: 700; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.group__title i { color: var(--accent); font-size: 1.25rem; }
.svc-list { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 22px; transition: background-color 0.2s; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary:hover { background: rgb(255 255 255 / 0.025); }
.svc__name { font: 600 1.125rem/1.3 var(--display); letter-spacing: -0.01em; }
.svc__sum { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.svc__toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s; }
.svc[open] .svc__toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc[open] summary { background: var(--accent-soft); }
.svc__body { padding: 4px 22px 22px; }
.svc__body ul { display: grid; gap: 8px; margin-top: 10px; }
.svc__body li { position: relative; padding-left: 22px; color: var(--text); font-size: 0.97rem; }
.svc__body li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 2px; background: var(--accent); border-radius: 2px; }
.svc__note { margin-top: 14px; color: var(--dim); font-size: 0.9rem; }
.svc__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent-2); font-weight: 700; text-decoration: none; }
.svc__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 960px) {
  .services { padding: 112px 0; }
  .services__groups { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .group:nth-child(2) { margin-top: 64px; }
}

/* ---------- realizace ---------- */
.gal { padding: 72px 0; }
.gal__head { display: grid; gap: 0; }
.gal__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 700 0.93rem/1 var(--font); cursor: pointer; transition: all 0.2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gal__grid { columns: 2 150px; column-gap: 12px; margin-top: 24px; }
.gal__item { break-inside: avoid; margin-bottom: 12px; }
.gal__link { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gal__link img { width: 100%; height: auto; transition: transform 0.6s var(--ease), filter 0.4s; filter: saturate(0.92); }
.gal__cap { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: var(--text); background: linear-gradient(transparent, rgb(12 11 10 / 0.88)); }
.gal__link:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gal__link:hover { border-color: rgb(255 106 26 / 0.5); }
@media (min-width: 700px) { .gal__grid { columns: 3; column-gap: 16px; } .gal__item { margin-bottom: 16px; } }
@media (min-width: 1100px) { .gal { padding: 112px 0; } .gal__grid { columns: 4; } .gal__cap { opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease); } .gal__link:hover .gal__cap, .gal__link:focus-visible .gal__cap { opacity: 1; transform: none; } }

/* lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 64px; border: 0; background: rgb(8 7 6 / 0.94); color: var(--text); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(6px); }
.lb__fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1200px, 100%); }
.lb__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 120px -30px rgb(255 106 26 / 0.45); }
.lb__cap { color: var(--muted); font-weight: 600; text-align: center; }
.lb__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(26 23 20 / 0.85); color: var(--text); font-size: 1.25rem; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.lb__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb__count { position: fixed; top: 24px; left: 20px; margin: 0; color: var(--dim); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 12px; transform: none; } .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); } }

/* ---------- postup ---------- */
.process { padding: 72px 0; }
.steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-top: 40px; padding: 4px 16px 20px; scroll-padding-inline: 16px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.step { scroll-snap-align: start; position: relative; padding: 26px 22px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step__n { position: absolute; right: 14px; top: -14px; font: 700 6.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgb(255 106 26 / 0.35); letter-spacing: -0.05em; pointer-events: none; }
.step h3 { font-size: 1.2rem; margin-top: 54px; position: relative; }
.step p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; position: relative; }
.step:first-child { background: linear-gradient(160deg, rgb(255 106 26 / 0.22), var(--surface) 70%); border-color: rgb(255 106 26 / 0.35); }
@media (min-width: 1272px) { .steps { padding-inline: calc((100vw - 1240px) / 2); scroll-padding-inline: calc((100vw - 1240px) / 2); } }
@media (min-width: 960px) { .process { padding: 112px 0; } }

/* ---------- návaznost ---------- */
.flows { padding: 72px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.flows__grid { display: grid; gap: 16px; margin-top: 40px; }
.flow { padding: 26px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.flow h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.flow h3 i { color: var(--accent); font-size: 1.4rem; }
.flow--wide { background: radial-gradient(120% 140% at 0% 0%, rgb(255 106 26 / 0.18), transparent 55%), var(--surface); }
.chain { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: 18px; }
.chain li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; }
.chain li:not(:last-child)::after { content: ''; width: 7px; height: 7px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); margin-left: 6px; margin-right: -2px; }
.chain__end { background: var(--accent) !important; color: var(--accent-ink); border-color: var(--accent) !important; }
.flows__note { margin-top: 28px; color: var(--muted); max-width: 70ch; }
@media (min-width: 900px) {
  .flows { padding: 112px 0; }
  .flows__grid { grid-template-columns: 1fr 1fr; }
  .flow--wide { grid-column: 1 / -1; padding: 34px; }
  .flow--wide .chain li { font-size: 1rem; padding: 10px 18px; }
}

/* ---------- poptávka ---------- */
.request { position: relative; isolation: isolate; overflow: clip; padding: 72px 0 88px; }
.request__glow { position: absolute; z-index: -1; left: -10%; bottom: -30%; width: 80vw; max-width: 1000px; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(255 106 26 / 0.22), transparent 70%); }
.request__in { display: grid; gap: 40px; }
.request__intro .h2 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.6rem); max-width: 20ch; }
.request__perks { display: grid; gap: 10px; margin-top: 28px; }
.request__perks li { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.request__perks i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; }
.request__panel { border-radius: 24px; padding: 22px 18px; background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.02)), var(--bg-2); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 40px 120px -50px rgb(255 106 26 / 0.55); }
@media (min-width: 640px) { .request__panel { padding: 32px; } }
@media (min-width: 1040px) {
  .request { padding: 120px 0; }
  .request__in { grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: start; }
  .request__intro { position: sticky; top: 108px; }
}

/* ---------- dotazník (shared/poptavka.js) ---------- */
.q { display: grid; gap: 0; scroll-margin-top: 96px; }
.q-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 26px; counter-reset: none; }
.q-progress__item { display: grid; gap: 8px; }
.q-progress__item::before { content: ''; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color 0.4s var(--ease); }
.q-progress__item.is-done::before, .q-progress__item.is-current::before { background: var(--accent); }
.q-progress__item.is-current::before { box-shadow: 0 0 12px rgb(255 106 26 / 0.7); }
.q-progress__num { display: none; }
.q-progress__text { font-size: 0.78rem; font-weight: 600; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-progress__item.is-current .q-progress__text { color: var(--text); }
@media (max-width: 520px) { .q-progress__text { display: none; } .q-progress__item.is-current .q-progress__text { display: block; overflow: visible; } }

.q-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); letter-spacing: -0.025em; }
.q-title:focus { outline: none; }
.q-sub { color: var(--muted); margin-top: 8px; }
.q-step { animation: q-in 0.45s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-cards { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .q-cards { grid-template-columns: 1fr 1fr; } }
.q-card {
  position: relative; display: grid; gap: 4px; padding: 16px 48px 16px 18px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s;
}
.q-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.q-card input { position: absolute; opacity: 0; pointer-events: none; }
.q-card::after { content: ''; position: absolute; right: 16px; top: 18px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); transition: all 0.2s var(--ease); }
.q-card:has(input:checked) { border-color: var(--accent); background: linear-gradient(160deg, rgb(255 106 26 / 0.2), rgb(255 106 26 / 0.06)); box-shadow: 0 10px 40px -20px rgb(255 106 26 / 0.8); }
.q-card:has(input:checked)::after { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231a0b02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--accent); }
.q-card:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.q-card__title { font: 600 1.02rem/1.3 var(--display); }
.q-card__hint { color: var(--muted); font-size: 0.875rem; line-height: 1.4; }

.q-field { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.q-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; padding: 0; }
.q-label small { font-weight: 500; color: var(--dim); }
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-option { position: relative; cursor: pointer; }
.q-option input { position: absolute; opacity: 0; pointer-events: none; }
.q-option span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 0.93rem; font-weight: 600; color: var(--text); transition: all 0.2s var(--ease); }
.q-option:hover span { border-color: var(--accent); }
.q-option input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.q-option input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.q-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-input);
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  font: 500 1rem/1.4 var(--font); transition: border-color 0.2s, box-shadow 0.2s;
}
.q-input::placeholder { color: #8a827a; }
.q-input:hover { border-color: rgb(255 240 225 / 0.3); }
.q-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 106 26 / 0.2); }
.q-textarea { min-height: 120px; resize: vertical; }
.q-unit { position: relative; max-width: 220px; }
.q-unit .q-input { padding-right: 52px; }
.q-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

.q-detail { margin-top: 26px; padding: 22px 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.q-detail__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--accent-2); }
.q-detail__title::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.q-detail .q-field:first-of-type { margin-top: 16px; }

.q-drop { position: relative; display: grid; place-items: center; text-align: center; min-height: 120px; padding: 20px; border-radius: 16px; border: 1.5px dashed rgb(255 106 26 / 0.45); background: rgb(255 106 26 / 0.05); color: var(--muted); cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.q-drop:hover, .q-drop.is-over { background: rgb(255 106 26 / 0.12); border-color: var(--accent); color: var(--text); }
.q-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.q-drop:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.q-drop u { color: var(--accent-2); text-underline-offset: 3px; }
.q-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.q-thumbs:empty { display: none; }
.q-thumbs li { position: relative; width: 76px; height: 76px; }
.q-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.q-thumbs button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font: 700 1rem/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.q-thumbs button:hover { background: var(--accent); color: var(--accent-ink); }

.q-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .q-grid { grid-template-columns: 1fr 1fr; } .q-grid .q-field:first-child { grid-column: 1 / -1; } }

.q-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; cursor: pointer; color: var(--muted); font-size: 0.93rem; }
.q-consent input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; transition: all 0.2s; }
.q-consent input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231a0b02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--accent); }
.q-consent input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.q-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.is-invalid .q-input, .is-invalid .q-option span, .q-consent.is-invalid input { border-color: var(--error); }
.is-invalid > .q-label, .q-consent.is-invalid span { color: var(--error); }
.q-status { color: var(--error); font-weight: 600; font-size: 0.95rem; min-height: 0; margin: 0; }
.q-status:not(:empty) { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgb(255 139 122 / 0.1); border: 1px solid rgb(255 139 122 / 0.35); }

.q-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.q-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--font); cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.3s, border-color 0.2s; }
.q-btn:active { transform: translateY(1px) scale(0.98); }
.q-btn--back { background: transparent; color: var(--text); border-color: var(--line-2); }
.q-btn--back:hover { border-color: var(--text); }
.q-btn--next, .q-btn--submit { margin-left: auto; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -14px rgb(255 106 26 / 0.8); }
.q-btn--next:hover, .q-btn--submit:hover { background: var(--accent-2); }
.q-btn--next::after { content: '→'; margin-left: 10px; transition: transform 0.2s var(--ease); }
.q-btn--next:hover::after { transform: translateX(3px); }
.q-btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 480px) { .q-btn--submit { flex: 1; padding: 0 16px; white-space: normal; line-height: 1.2; min-height: 56px; } }

.q-done { text-align: left; animation: q-in 0.5s var(--ease); }
.q-done .q-title { display: flex; align-items: center; gap: 14px; }
.q-done .q-title::before { content: ''; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231a0b02' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 0 40px -6px rgb(255 106 26 / 0.8); }
.q-summary { margin: 22px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font: 500 0.9rem/1.7 var(--font); white-space: pre-wrap; word-break: break-word; }

/* ---------- patička ---------- */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 28px; }
.footer__tag { color: var(--muted); margin-top: 12px; }
.footer__contact { display: grid; gap: 10px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact i { color: var(--accent); font-size: 1.15rem; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--accent-2); }
.footer__copy { color: var(--dim); font-size: 0.875rem; }
@media (min-width: 860px) { .footer__in { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }

/* ---------- pohyb ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.js-reveal .facts .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .facts .reveal:nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: no-preference) {
  .hero__glow { animation: breathe 9s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
}
@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; }
}

/* Nižší obrazovky (notebooky, okno s lištami): nadpis i tlačítko poptávky na první obrazovce */
@media (min-width: 960px) and (max-height: 820px) {
  .hero { min-height: 0; padding: clamp(24px, 6vh, 64px) 0 clamp(32px, 7vh, 96px); }
  .layers { padding: 18px 20px; gap: 12px 20px; }
  .layers__stack { min-height: 0; }
  .layers__legend li { padding: 5px 0; }
  .layers__legend small { font-size: 0.8rem; }
}
