/* Portfolio Richarda Kozáka — styly podle vzoru haoqi.design (přepsané Tailwind třídy). */

/* Písma: hlavní SF Pro (systémové písmo Apple, mimo Apple náhrada Inter). Všechna písma jsou uložená
   ve vendor/fonts (licence OFL), nic se nestahuje z cizích serverů. */
@font-face { font-family: "Inter"; src: url("vendor/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("vendor/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("vendor/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "tronica-mono"; src: url("vendor/fonts/DepartureMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --label: 0, 0, 0;
  --label-d: 54, 54, 48;
  --background-deep: 251, 250, 244;
  --label-1: rgba(var(--label), 1);
  --label-2: rgba(var(--label-d), 0.6);
  --label-3: rgba(var(--label-d), 0.32);
  --label-4: rgba(var(--label-d), 0.18);
  --line: rgba(var(--label-d), 0.1);
  --background-1: rgb(var(--background-deep));
  --background-elevated: #efede7;
  --cubic-66: cubic-bezier(0.66, 0, 0.01, 1);
  --selection-bg: #c0fe04;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: "Geist Mono", monospace;
  --font-mono-2: "tronica-mono", monospace;
  --px: 16px;   /* px-4 / lg:px-14 */
  --py: 72px;   /* py-18 / lg:py-24 */
}
.dark {
  color-scheme: dark;
  --label: 255, 255, 255;
  --label-d: 230, 232, 232;
  --background-deep: 15, 17, 17;
  --label-4: rgba(var(--label-d), 0.16);
  --line: rgba(var(--label-d), 0.08);
  --background-elevated: #191b1b;
}
@media (min-width: 1024px) { :root { --px: 56px; --py: 96px; } }

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-sans);
  line-height: 1.5;
  background-color: var(--background-1);
  color: var(--label-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: inherit; }
button { font: inherit; color: inherit; background: none; cursor: pointer; text-align: inherit; }
::selection { background-color: var(--selection-bg); color: #000; }
[hidden] { display: none !important; }

.wdth { font-variation-settings: "wdth" 120; }
.show-lg { display: none; }
@media (min-width: 1024px) { .show-lg { display: block; } .hide-lg { display: none !important; } }

/* Tečkovaný rámeček při najetí (DOTTED_BORDER_BASE) */
.dotted { position: relative; }
.dotted::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 2px dotted transparent; transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
  .dotted:hover::before { border-color: var(--label-1); }
  .arrow-full #hdr .dotted:hover::before { border-color: #fff; }
}
.dotted:active::before { border-color: var(--label-1); }

#gl-wrap { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100vh; height: 100dvh; }
@media (min-width: 1024px) { #gl-wrap { height: 100vh; } }
#gl { display: block; width: 100%; height: 100%; }

#grid { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: difference; }
#grid svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
#grid path { fill: none; stroke-width: 1; }
#grid .g-v, #grid .g-h { stroke: rgba(255, 255, 255, 0.1); }
#grid .g-x { stroke: #fff; opacity: 0.4; }

/* Hlavička */
#hdr {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--font-mono-2); pointer-events: none; color: var(--label-1);
  transition: color 300ms ease-out;
}
.arrow-full #hdr { color: #fff; }
.hdr-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--px); font-size: 16px; line-height: 24px; }
.hdr-bottom { display: flex; justify-content: space-between; padding: 16px var(--px); font-size: 16px; line-height: 24px; }
@media (min-width: 1024px) { .hdr-top, .hdr-bottom { padding-top: 28px; padding-bottom: 28px; } }
.logo { padding: 8px; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; pointer-events: auto; }
.hdr-nav { display: none; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 12px; row-gap: 8px; pointer-events: auto; flex-basis: 50%; }
@media (min-width: 1024px) { .hdr-nav { display: flex; } }
@media (min-width: 1280px) { .hdr-nav { flex-basis: 33.333333%; } }
.hdr-nav > * { padding: 8px; text-transform: uppercase; cursor: pointer; }
.burger { position: relative; width: 24px; height: 24px; margin: 8px; pointer-events: auto; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger i { position: absolute; right: 0; height: 2px; background: currentColor; transition: all 1200ms var(--cubic-66); }
.burger .b1 { top: 6px; width: 24px; }
.burger .b2 { bottom: 6px; width: 24px; transition-delay: 150ms; }
.burger .b3 { top: 11px; width: 0; opacity: 0; transform: rotate(45deg); }
.burger .b4 { bottom: 11px; width: 0; opacity: 0; transform: rotate(-45deg); transition-delay: 150ms; }
.menu-open .burger .b1 { width: 0; opacity: 0; transition-delay: 150ms; }
.menu-open .burger .b2 { width: 0; opacity: 0; transition-delay: 0ms; }
.menu-open .burger .b3 { width: 24px; opacity: 1; transition-delay: 150ms; }
.menu-open .burger .b4 { width: 24px; opacity: 1; transition-delay: 0ms; }
.hb-item { padding: 8px; text-transform: uppercase; }
#coords { cursor: pointer; pointer-events: auto; }
@media (min-width: 1024px) { #coords { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); } }
.globe { padding: 8px; flex-shrink: 0; transition: opacity 300ms ease 600ms; }
.globe svg { display: block; }
.menu-toggles { display: none; gap: 12px; }
.menu-open .menu-toggles { display: flex; }
@media (min-width: 1024px) { .menu-open .menu-toggles { display: none; } }
.menu-toggles > * { padding: 8px; text-transform: uppercase; cursor: pointer; pointer-events: auto; color: var(--label-1); }

#scrollbar {
  position: fixed; top: 50%; right: 0; z-index: 30; width: 56px; height: 200px; padding: 0 12px;
  transform: translateY(-50%); pointer-events: auto; display: none; opacity: 0; transition: opacity 500ms;
}
@media (min-width: 1024px) { #scrollbar { display: block; } }
#scrollbar.visible { opacity: 1; }
#scrollbar svg { display: block; cursor: pointer; }
#scrollbar .thumb { cursor: grab; }

#totop-m { position: fixed; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; align-items: center; padding: 24px; pointer-events: auto; color: var(--label-1); cursor: pointer; }
@media (min-width: 1024px) { #totop-m { display: none; } }
#totop-m svg { transform: scale(0.5); transition: all 0.66s var(--cubic-66); pointer-events: none; }
#totop-m.scrolled svg { transform: scale(1); }
#totop-m circle { stroke-linejoin: round; stroke-linecap: round; stroke-width: 8; transition: stroke-opacity 0.66s var(--cubic-66), stroke-width 0.66s var(--cubic-66); }
#totop-m.scrolled circle { stroke-width: 4; }
#totop-m.scrolled .ring-bg { stroke-opacity: 0.2; }

#hint {
  position: fixed; top: 96px; left: 0; right: 0; z-index: 50; display: none; flex-direction: row-reverse;
  padding: 0 var(--px); width: 100%; pointer-events: none; opacity: 0; transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (min-width: 1024px) { #hint { display: flex; } }
#hint.visible { opacity: 1; }
.hint-box { display: flex; flex-direction: column; background: var(--background-elevated); padding: 8px; font-family: var(--font-mono-2); color: var(--label-1); flex-basis: 50%; line-height: 24px; }
@media (min-width: 1280px) { .hint-box { flex-basis: 33.333333%; } }
.hint-row { display: flex; justify-content: space-between; }

#menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 24px; font-family: var(--font-mono-2); font-size: 10svw; line-height: 1.5; color: var(--label-1); background: var(--background-1);
}
#menu > * { text-transform: uppercase; }
@media (min-width: 1024px) { #menu { display: none !important; } }

/* Úvod */
.banner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  padding: var(--py) var(--px); width: 100%; height: 100vh; height: 100dvh;
}
@media (min-width: 1024px) { .banner { height: 100vh; } }
.hero-meta { display: flex; flex-direction: column; order: 2; grid-column: span 12 / span 12; font-family: var(--font-mono); font-size: 16px; line-height: 24px; }
@media (min-width: 1024px) { .hero-meta { order: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.hero-title { padding: 8px; font-family: var(--font-sans); font-weight: 500; font-size: 4svw; line-height: 1.25; }
@media (min-width: 640px) { .hero-title { font-size: 24px; } }
@media (min-width: 1024px) { .hero-title { grid-column: 1 / span 3; font-size: 30px; } }
@media (min-width: 1280px) { .hero-title { grid-column: 1 / span 2; } }
.hero-tag { padding: 8px; text-wrap: balance; }
@media (min-width: 1024px) { .hero-tag { grid-column: 4 / span 3; } }
@media (min-width: 1280px) { .hero-tag { grid-column: 5 / span 2; } }
.hero-intro { padding: 8px; margin-top: auto; grid-column: span 12 / span 12; }
@media (min-width: 1024px) { .hero-intro { margin-top: 0; grid-column: 7 / span 6; } }
@media (min-width: 1280px) { .hero-intro { grid-column: 9 / span 4; } }
.slot-ch { display: inline-block; min-width: 0.62em; text-align: center; font-variant-numeric: tabular-nums; }
.slot { display: inline-flex; align-items: baseline; gap: 0.12em; margin: 0 0.06em; }

.hero-big, .hs-big, .c-row {
  font-weight: 700; text-transform: uppercase; line-height: 1;
  font-size: 7.2svw;
}
.hero-big { display: flex; flex-direction: column; align-self: end; order: 1; grid-column: span 12 / span 12; padding: 0 8px; }
@media (min-width: 1024px) { .hero-big { order: 2; font-size: 6svw; } .c-row { font-size: 6svw; } }
@media (min-width: 1280px) { .hero-big, .c-row { font-size: 5.6svw; } }
@media (min-width: 1536px) { .hero-big, .c-row { font-size: 5svw; } }

/* O mně */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: var(--py) var(--px); width: 100%; }
@media (min-width: 1024px) { .about { padding-bottom: 112px; } }
.about-label { grid-column: span 12 / span 12; padding: 8px; }
@media (min-width: 640px) { .about-label { grid-column: span 4 / span 4; } }
@media (min-width: 1024px) { .about-label { grid-column: span 3 / span 3; } }
.sign { position: absolute; top: -3.125%; left: -8.333333%; width: 75%; pointer-events: none; z-index: 1; overflow: visible; }
.sign-path { opacity: 0; fill: none; stroke-linecap: butt; }
.sign.is-drawing .sign-path {
  animation: sign-show 0s linear var(--path-delay) forwards, sign-draw var(--path-dur) cubic-bezier(0.65, 0, 0.35, 1) var(--path-delay) forwards;
}
@keyframes sign-draw { to { stroke-dashoffset: 0; } }
@keyframes sign-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign.is-drawing .sign-path { animation: none; stroke-dashoffset: 0; opacity: 1; } }
.about-text {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 24px;
  grid-column: span 12 / span 12; font-size: 16px; line-height: 1;
}
@media (min-width: 640px) { .about-text { grid-column: 6 / span 7; } }
@media (min-width: 1024px) { .about-text { grid-column: 5 / span 8; font-size: 20px; } }
.about-text p { padding: 8px; width: 100%; font-family: var(--font-sans); font-size: 20px; line-height: 1.3; user-select: text; }
@media (min-width: 768px) { .about-text p { font-size: 4.2svw; line-height: 1; } }
.about-text .l1 { color: var(--label-1); }
.about-text .l2 { color: var(--label-2); }
.about-text a {
  display: inline; color: var(--label-1); text-decoration: underline; text-underline-offset: 0.08em; text-decoration-style: solid;
  text-decoration-color: var(--label-3); transition: text-decoration-color 150ms ease-out;
}
@media (min-width: 1024px) and (hover: hover) { .about-text a:hover { text-decoration-color: var(--label-1); } }

/* Vybrané práce */
.work { padding: var(--py) var(--px); width: 100%; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; }
.work-item { grid-column: var(--col); }
@media (min-width: 1024px) { .work-item { grid-column: var(--col-lg, var(--col)); } }
@media (min-width: 1280px) { .work-item { grid-column: var(--col-xl, var(--col-lg, var(--col))); } }
.work-link { display: block; padding: 8px; }
.work-link > * + * { margin-top: 12px; }
.work-media { position: relative; width: 100%; pointer-events: none; user-select: none; }
.work-tag {
  position: absolute; top: 0; right: 0; z-index: 10; background: var(--selection-bg); padding: 0 4px;
  font-family: var(--font-mono-2); color: #000; font-size: 12px; line-height: 16px; text-transform: uppercase; pointer-events: none; user-select: none;
}
.work-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; font-size: 12px; line-height: 16px; text-transform: uppercase; }
@media (min-width: 1024px) { .work-cap { font-size: 14px; line-height: 20px; } }
.work-name { flex: 1 1 0%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono-2); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
@media (min-width: 640px) { .work-meta { gap: 12px; } }
.work-type { display: none; align-items: center; gap: 4px; }
/* Nadpis sekce, čtvercové dlaždice, krátký popis, celá dlaždice je odkaz na formulář */
.work-label { padding: 0 8px 24px; font-size: inherit; font-weight: inherit; }
.work-media { aspect-ratio: 1 / 1; }
.work-name { font-size: inherit; font-weight: inherit; line-height: inherit; }
.work-desc { font-size: 16px; line-height: 1.35; color: var(--label-2); text-transform: none; text-wrap: pretty; }
@media (min-width: 1024px) { .work-desc { font-size: 18px; } }
.work-link { cursor: pointer; border-radius: 2px; }
.work-link:focus-visible { outline: 2px solid var(--selection-bg); outline-offset: 4px; }
@media (hover: hover) { .work-link:hover .work-name { text-decoration: underline; text-underline-offset: 0.2em; } }
/* Na telefonu jedna dlaždice na řádek (2 × 2 byly moc malé a popisky se ořezávaly) */
@media (max-width: 767px) { .work-item { grid-column: 1 / -1 !important; } }
@media (min-width: 1024px) { .work-type { display: inline-flex; } }

/* Hyperprostor */
.hyper { position: relative; color: var(--label-1); transition: color 300ms ease-out; }
.arrow-full .hyper { color: #fff; }
.hyper-sticky {
  position: sticky; top: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  padding: var(--py) var(--px); width: 100%;
}
.hs-big { display: flex; flex-direction: column; justify-content: center; align-items: center; grid-column: span 12 / span 12; grid-row: span 6 / span 6; text-align: center; }
@media (min-width: 1024px) { .hs-big { font-size: 6.8svw; } }
.hs-block { padding: 8px; font-weight: 500; font-size: 4.6svw; line-height: 1.3; grid-column: var(--c); grid-row-start: var(--r);
  /* telefon: bez podkladu, čitelnost jen stínem písma */
  position: relative; z-index: 1; align-self: start; justify-self: start; max-width: 100%;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.9); }
/* počítač: jemný tmavý podklad, aby se text četl na pruzích hyperprostoru */
@media (min-width: 1024px) { .hs-block { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 4px; padding: 10px 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } }
.hs-block-a { color: #C0FE04; font-weight: 700; }
@media (min-width: 1024px) { .hs-block { font-size: 30px; grid-column: var(--c-lg); grid-row-start: var(--r-lg, var(--r)); } }
.hs-ring { position: absolute; top: 50%; left: 50%; z-index: 0; width: 344px; height: 344px; transform: translate(-50%, -50%); overflow: hidden; pointer-events: none; contain: layout paint style; }
.hs-ring svg { width: 100%; height: 100%; }
.hsst-char { display: inline-block; }
.hsst-word { white-space: nowrap; }
@keyframes hsstFadeIn { 0% { opacity: 0; } 32% { opacity: 0.22; } 62% { opacity: 0.55; } to { opacity: 1; } }
@keyframes hsstFadeOut { 0% { opacity: 1; } 38% { opacity: 0.62; } 72% { opacity: 0.28; } to { opacity: 0; } }

/* Kontakt */
.contact {
  position: relative; z-index: 10; display: flex; flex-direction: column; justify-content: center;
  padding: 24px; width: 100%; height: 100vh; height: 100dvh; pointer-events: none;
}
@media (min-width: 1024px) { .contact { padding: 64px; height: 100vh; } }
.c-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.c-row > span { pointer-events: auto; }
.c-lets { grid-column: span 6 / span 6; text-align: left; }
.c-create { grid-column: span 6 / span 6; text-align: right; }
.c-some { grid-column: span 12 / span 12; text-align: left; }
.c-extra { grid-column: span 12 / span 12; text-align: right; }
@media (min-width: 768px) {
  .c-lets { grid-column: 2 / span 5; }
  .c-create { grid-column: span 5 / span 5; }
  .c-some { grid-column-start: 2; }
  .c-extra { grid-column-end: 12; }
}
@media (min-width: 1280px) {
  .c-lets { grid-column: 3 / span 4; }
  .c-create { grid-column: span 4 / span 4; }
  .c-some { grid-column-start: 3; }
  .c-extra { grid-column-end: 11; }
}
.c-links {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--py) var(--px); font-family: var(--font-mono-2); font-size: 14px; line-height: 20px;
}
@media (min-width: 1024px) { .c-links { font-size: 16px; line-height: 24px; } }
.c-links-row { display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
@media (min-width: 1024px) { .c-links-row { flex-direction: row; } }
.c-links a, .c-links .todo { display: block; padding: 8px; text-transform: uppercase; cursor: pointer; pointer-events: auto; }
.c-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
@media (min-width: 1024px) { .c-direct { gap: 0 16px; } }
.c-social { display: flex; flex-direction: row; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .c-social { gap: 16px; } }

/* Údaje, které zatím chybí (e-mail, sítě) */
.c-links .todo { opacity: 0.5; cursor: help; }

/* Kontaktní formulář */
.form-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 40px; padding: var(--py) var(--px); width: 100%; }
@media (min-width: 1024px) { .form-sec { padding-top: 160px; padding-bottom: 160px; } }
.form-intro { grid-column: span 12 / span 12; padding: 8px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
@media (min-width: 1024px) { .form-intro { grid-column: 1 / span 5; position: sticky; top: 120px; } }
.form-label, .f-label { font-family: var(--font-mono-2); font-size: 14px; line-height: 20px; text-transform: uppercase; color: var(--label-2); }
.form-title { font-weight: 700; text-transform: uppercase; line-height: 1; font-size: 12svw; }
@media (min-width: 1024px) { .form-title { font-size: 6svw; } }
@media (min-width: 1536px) { .form-title { font-size: 5svw; } }
.form-lead { font-size: 20px; line-height: 1.3; color: var(--label-2); max-width: 28ch; }
.cform { grid-column: span 12 / span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 8px; }
@media (min-width: 1024px) { .cform { grid-column: 7 / span 6; } }
.f-topics { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border: 0; min-width: 0; }
.f-topics legend { margin-bottom: 12px; padding: 0; }
.f-chip { cursor: pointer; font-family: var(--font-mono-2); font-size: 14px; text-transform: uppercase; }
.f-chip input { position: absolute; opacity: 0; pointer-events: none; }
.f-chip span { display: block; padding: 6px 12px; border: 1px solid var(--label-3); transition: background-color 150ms, color 150ms, border-color 150ms; }
.f-chip input:checked + span { background: var(--selection-bg); color: #000; border-color: var(--selection-bg); }
.f-chip input:focus-visible + span { outline: 2px dotted var(--label-1); outline-offset: 2px; }
.f-field { display: flex; flex-direction: column; gap: 8px; grid-column: span 2 / span 2; }
@media (min-width: 640px) { .f-field { grid-column: span 1 / span 1; } .f-field.f-wide { grid-column: 1 / -1; } }
.f-field input, .f-field textarea {
  width: 100%; background: transparent; color: var(--label-1); border: 0; border-bottom: 1px solid var(--label-3); border-radius: 0;
  padding: 8px 0; font-family: var(--font-mono); font-size: 16px; line-height: 24px; outline: none; transition: border-color 150ms;
}
.f-field textarea { resize: vertical; min-height: 140px; }
.f-field input:focus, .f-field textarea:focus { border-bottom-color: var(--label-1); }
.f-field.invalid input, .f-field.invalid textarea { border-bottom-color: #ff5a2c; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.f-note { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--label-2); }
.f-submit {
  position: relative; display: inline-flex; gap: 12px; align-items: center; padding: 12px 20px; background: var(--selection-bg); color: #000;
  font-family: var(--font-mono-2); font-size: 16px; text-transform: uppercase; cursor: pointer; transition: transform 200ms var(--cubic-66);
}
.f-submit:hover { transform: translateY(-2px); }
.f-submit:disabled { opacity: 0.5; cursor: wait; transform: none; }
.f-status { grid-column: 1 / -1; min-height: 24px; font-family: var(--font-mono-2); font-size: 14px; text-transform: uppercase; }
.f-status.ok { color: var(--label-1); }
.f-status.err { color: #ff5a2c; }

/* Padající nálepky (stickers.js): za obsahem, nad 3D plátnem */
#stickers { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: opacity 0.2s linear; }
#stickers img { position: absolute; left: 0; top: 0; will-change: transform; user-select: none; -webkit-user-drag: none; }

/* Stránky s dokumenty (obchodní podmínky, ochrana osobních údajů): bez 3D, jen čitelný text */
.legal-body { min-height: 100svh; display: flex; flex-direction: column; }
.legal-hdr { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px var(--px); font-size: 14px; text-transform: uppercase; }
.legal-logo { font-weight: 700; font-variation-settings: 'wght' 700, 'wdth' 120; }
.legal-back, .legal-foot a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--label-3); }
.legal-back:hover, .legal-foot a:hover { text-decoration-color: var(--label-1); }
.legal { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px var(--px) 96px; font-size: 17px; line-height: 1.6; }
@media (min-width: 1024px) { .legal { padding-top: 72px; max-width: 820px; } }
.legal-title { font-weight: 700; text-transform: uppercase; line-height: 1; font-size: clamp(36px, 7vw, 72px); margin: 12px 0 8px; text-wrap: balance; }
.legal-meta { color: var(--label-2); margin-bottom: 40px; font-family: var(--font-mono); font-size: 14px; }
.legal h2 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 40px 0 12px; text-wrap: balance; }
.legal p, .legal li { margin: 0 0 12px; text-wrap: pretty; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--label-3); overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: var(--label-1); }
.legal-box { border: 1px dashed var(--label-3); border-radius: 4px; padding: 20px 20px 8px; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px var(--px); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--label-2); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Právní řádek pod formulářem na hlavní stránce */
.f-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px 8px 0; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--label-2); }
.f-legal a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--label-3); }
.f-legal a:hover { text-decoration-color: var(--label-1); }
.f-note a { text-decoration: underline; text-underline-offset: 0.2em; }

/* Časté otázky: rozbalovací seznam (details/summary, funguje i bez JavaScriptu) */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: var(--py) var(--px); width: 100%; }
.faq-label { grid-column: span 12 / span 12; padding: 8px; font-size: inherit; font-weight: inherit; }
@media (min-width: 640px) { .faq-label { grid-column: span 4 / span 4; } }
@media (min-width: 1024px) { .faq-label { grid-column: span 3 / span 3; } }
.faq-list { grid-column: span 12 / span 12; border-top: 1px solid var(--label-4); }
@media (min-width: 640px) { .faq-list { grid-column: 6 / span 7; } }
@media (min-width: 1024px) { .faq-list { grid-column: 5 / span 8; } }
.faq-item { border-bottom: 1px solid var(--label-4); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 8px; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q h3 { font-size: 20px; line-height: 1.25; font-weight: 500; text-wrap: balance; }
@media (min-width: 1024px) { .faq-q h3 { font-size: 26px; } }
.faq-q:focus-visible { outline: 2px solid var(--selection-bg); outline-offset: 2px; }
.faq-ico { position: relative; flex: none; width: 18px; height: 18px; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; transition: transform 200ms ease-out; }
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico::after { transform: rotate(0deg); }
.faq-a { padding: 0 8px 24px; max-width: 46em; }
.faq-a p { font-size: 17px; line-height: 1.55; color: var(--label-2); text-wrap: pretty; }
@media (min-width: 1024px) { .faq-a p { font-size: 19px; } }
.faq-a a { color: var(--label-1); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--label-3); }
.faq-a a:hover { text-decoration-color: var(--label-1); }
@media (hover: hover) { .faq-q:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--label-3); } }
