/* ============================================
   Kateřina Mlsnová — base styles
   ============================================ */

:root {
  /* Logo Kit — raw palette */
  --color-raspberry-dark: #7A1840;
  --color-raspberry-light: #B83066;
  --color-ink: #1A1714;
  --color-deep-black: #0F0E0C;
  --color-white: #FFFFFF;
  --color-cream: #F7F4EE;

  /* Typography */
  --font-display: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Semantic tokens — LIGHT mode (default) */
  --bg: var(--color-white);
  --bg-elevated: var(--color-cream);
  --text: var(--color-ink);
  --text-muted: rgba(26, 23, 20, 0.7);
  --accent: var(--color-raspberry-dark);
  --accent-hover: var(--color-raspberry-light);
  --border: rgba(26, 23, 20, 0.12);
}

/* DARK mode — auto via system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--color-deep-black);
    --bg-elevated: var(--color-ink);
    --text: var(--color-cream);
    --text-muted: rgba(247, 244, 238, 0.7);
    --accent: var(--color-raspberry-light);
    --accent-hover: var(--color-raspberry-dark);
    --border: rgba(247, 244, 238, 0.12);
  }
}

/* DARK mode — manual override */
[data-theme="dark"] {
  --bg: var(--color-deep-black);
  --bg-elevated: var(--color-ink);
  --text: var(--color-white);
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent: var(--color-raspberry-light);
  --accent-hover: var(--color-raspberry-dark);
  --border: rgba(247, 244, 238, 0.12);
}

[data-theme="light"] {
  --bg: var(--color-white);
  --bg-elevated: var(--color-cream);
  --text: var(--color-ink);
  --text-muted: rgba(26, 23, 20, 0.7);
  --accent: var(--color-raspberry-dark);
  --accent-hover: var(--color-raspberry-light);
  --border: rgba(26, 23, 20, 0.12);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background-color: var(--bg);
  border-bottom-color: var(--border);
}

.nav__brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__brand-cursor {
  animation: blink 1s steps(1, end) infinite;
  margin-left: 0.05em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

.nav__burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transition: background-color 0.2s ease;
}

/* ============================================
   Mobile menu (full-screen overlay)
   ============================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu__links a:hover,
.mobile-menu__links a:focus-visible {
  color: var(--accent);
}

/* ============================================
   Theme toggle
   ============================================ */

.theme-toggle {
  flex-shrink: 0;
  margin-left: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.theme-toggle__icon {
  display: inline-block;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Hero story (terminal → heading → mascot) */
.hero-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  max-width: 80rem;
}

.logo-wrap {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.hero-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: left;
}

/* Levý sloupec — dominantní logo */
.hero-col--left .logo { align-items: flex-start; gap: 0.4rem; }
.hero-col--left .logo__first {
  padding-left: 0;
  font-size: clamp(1.3rem, 3.5vw, 3.1rem);
  letter-spacing: 0.55em;
  color: #999;
  font-weight: 500;
}
.hero-col--left .logo__last {
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-col--left .logo__cursor {
  font-size: 0.7em;
  margin-left: 0.05em;
}
.hero-col--left .tagline {
  text-align: justify;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 55ch;
}

.hero-cta--empty {
  min-height: 1rem;
}

/* Pravý sloupec — terminál + pitch + subtext, posunutý dolů pod MLSNOVÁ */
.hero-col--right {
  gap: 0.9rem;
  align-self: start;
  margin-top: clamp(9rem, 19vw, 18rem);
}

.hero-col--right .win-terminal {
  margin: 0;
  max-width: 100%;
  width: 100%;
}
.hero-col--right .win-terminal-header { padding: 6px 10px; }
.hero-col--right .win-terminal-title { font-size: 0.65rem; }
.hero-col--right .win-terminal-body {
  padding: 12px 14px;
  min-height: 50px;
}
.hero-col--right #hero-terminal { font-size: 0.75rem; }

/* Pitch text v pravém sloupci — stejný styl jako tagline vlevo */
#hero-pitch {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
  margin: 0;
  max-width: 100%;
}

/* Subtext pod pitch v pravém sloupci */
#hero-subtext {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  margin: 0;
  text-align: left;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
#hero-subtext.visible-element { opacity: 0.55; }

/* Maskot — absolutně pod písmenem O ve slově MLSNOVÁ */
.hero #hero-mascot-container {
  position: absolute;
  left: 73%;
  top: 100%;
  transform: translate(-50%, 0) translateY(20px) scale(0.9);
  width: 65px;
  height: 72px;
  margin: 6rem 0 0;
  z-index: 2;
}
.hero #hero-mascot-container.visible-element {
  transform: translate(-50%, 0) translateY(0) scale(1);
}
.hero .doodle-mascot { width: 65px; }
.hero #mascot-eyes-container {
  top: 28px;
  gap: 7px;
}
.hero .eye {
  width: 11px;
  height: 11px;
  border-width: 1.5px;
}
.hero .pupil {
  width: 5px;
  height: 5px;
}

/* Hero — pouze mobil: skrýt terminál a šipku, zobrazit doodle "klikni!", jemně animovat malinu */
.hero-mascot-hint {
  display: none;
}

@media (max-width: 768px) {
  .hero .win-terminal,
  .hero-col--right .win-terminal,
  #hero-malina-arrow {
    display: none !important;
  }

  #hero-mascot-container {
    position: relative;
  }

  .hero-mascot-hint {
    display: inline-block;
    position: absolute;
    top: -0.6rem;
    right: -2.2rem;
    font-family: var(--font-handwritten, "Caveat", cursive);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--accent);
    transform: rotate(-10deg);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
  }

  @keyframes hero-mascot-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
  }

  .hero #hero-mascot-container.visible-element #hero-malina-mascot {
    animation: hero-mascot-wobble 2.6s ease-in-out infinite;
    transform-origin: 50% 90%;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero #hero-mascot-container.visible-element #hero-malina-mascot {
      animation: none;
    }
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-col--left,
  .hero-col--right {
    align-items: center;
    text-align: center;
  }
  .hero-col--left .logo { align-items: center; }
  .hero-col--left .logo__first { padding-left: 0.3em; }
  .hero-col--left .tagline { text-align: center; }
  .hero-col--right {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
    align-items: center;
  }
  #hero-pitch,
  #hero-subtext { text-align: center; }
  .hero #hero-mascot-container {
    position: static;
    transform: translateY(20px) scale(0.9);
    margin: 1.5rem auto 0;
  }
  .hero #hero-mascot-container.visible-element {
    transform: translateY(0) scale(1);
  }
}

/* Windows-style terminál */
.win-terminal {
  background-color: #0c0c0c;
  border: 1px solid #444;
  border-radius: 4px;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: left;
}
.win-terminal-header {
  background-color: #1f1f1f;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}
.win-terminal-title {
  color: #ccc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.win-terminal-buttons {
  display: flex;
  gap: 4px;
}
.win-btn {
  color: #aaa;
  font-size: 0.75rem;
  padding: 0 6px;
  cursor: default;
}
.win-btn:hover { color: #fff; }
.win-btn-close:hover {
  background-color: #e81123;
  color: #fff;
  border-radius: 2px;
}
.win-terminal-body {
  padding: 20px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.terminal-text {
  font-family: var(--font-mono);
  word-break: break-word;
  text-align: left;
}

#hero-terminal {
  color: #f5f0e8;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  margin: 0;
}

@media (max-width: 600px) {
  #hero-terminal { font-size: 0.9rem; }
  .win-terminal-body { padding: 16px; min-height: 70px; }
  .win-terminal-title { font-size: 0.7rem; }
}

.blinking-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: hero-blink 1s step-end infinite;
}

@keyframes hero-blink { 50% { opacity: 0; } }

.hidden-element {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.visible-element {
  opacity: 1;
  visibility: visible;
}

#hero-main-heading h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.mascot-pop {
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-pop.visible-element {
  transform: translateY(0) scale(1);
}

#hero-mascot-container {
  position: relative;
  margin-top: 2.5rem;
  cursor: pointer;
  width: 120px;
  height: 132px;
  outline: none;
}

#hero-mascot-container:focus-visible {
  filter: drop-shadow(0 0 0 3px var(--accent));
}

.doodle-mascot {
  width: 120px;
  height: auto;
  display: block;
  pointer-events: none;
}

#mascot-eyes-container {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: none;
}

.eye {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  position: relative;
}

.pupil {
  width: 7px;
  height: 7px;
  background: #1a1a1a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .terminal-text {
    font-size: 0.95rem;
  }
  #hero-mascot-container {
    width: 96px;
    height: 106px;
  }
  .doodle-mascot { width: 96px; }
  #mascot-eyes-container {
    top: 42px;
    gap: 9px;
  }
  .eye { width: 14px; height: 14px; border-width: 2px; }
  .pupil { width: 6px; height: 6px; }
}

/* Egg hunt — počítadlo / toast */
.egg-counter-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(163, 31, 79, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.egg-counter-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  line-height: 1;
}

.logo__first {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.3em;
  /* zarovnání optického těžiště — tracking přidá prostor vpravo */
  padding-left: 0.3em;
  color: var(--text);
}

.logo__last {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}

.logo__cursor {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.05em;
}

.logo__cursor.is-blinking {
  animation: blink 1s steps(1, end) infinite;
}

.logo__cursor.is-paused {
  opacity: 1;
  animation: none;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Tagline */
.tagline {
  margin-top: 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.tagline.is-visible {
  opacity: 1;
}

/* ============================================
   Sections — shared
   ============================================ */

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-title--underlined {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.section-title__text {
  display: inline-block;
}

.section-title__underline {
  display: block;
  width: min(420px, 80%);
  height: 14px;
  overflow: visible;
}

.section-title__underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 0.9s ease;
  vector-effect: non-scaling-stroke;
}

.section-title.is-underlined .section-title__underline path {
  stroke-dashoffset: 0;
}

/* ============================================
   Skills section
   ============================================ */

.skills {
  padding: 6rem 1.5rem 8rem;
}

.skills__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  background-color: var(--card-bg);
  border-radius: 14px;
  transition: transform 0.3s ease;
  color: var(--text);
}

/* Card bg: white in light, #1A1714 in dark — splývá se sekcí */
:root {
  --card-bg: var(--color-white);
}
[data-theme="dark"] {
  --card-bg: var(--color-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --card-bg: var(--color-ink);
  }
}

/* Hand-drawn frame — SVG rect with feTurbulence filter */
.skill-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.skill-card__frame rect {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.skill-card:hover {
  transform: translateY(-4px);
}

.skill-card__doodle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: block;
  color: var(--text);
}

.skill-card__doodle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card__doodle svg circle {
  fill: none;
}

.skill-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.skill-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.skill-card__doodle--big {
  width: 88px;
  height: 88px;
  margin: 0.5rem auto 1.75rem;
}

.skill-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  background-color: rgba(184, 48, 102, 0.08);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  align-self: flex-start;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease, background-color 0.2s ease;
}

.skill-card:hover .skill-card__cta,
.skill-card:focus-within .skill-card__cta {
  opacity: 1;
  max-height: 3rem;
}

.skill-card__cta:hover,
.skill-card__cta:focus-visible {
  background-color: rgba(184, 48, 102, 0.16);
  outline: none;
}

@media (hover: none) {
  .skill-card__cta {
    opacity: 1;
    max-height: 3rem;
  }
}

.skill-card__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.skill-card__cta:hover .skill-card__cta-arrow,
.skill-card__cta:focus-visible .skill-card__cta-arrow {
  transform: translateX(4px);
}

/* ============================================
   Works section ("Ukázky")
   ============================================ */

.works {
  padding: 6rem 1.5rem 8rem;
}

.works__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.works__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  margin: -2rem auto 3rem;
  max-width: 44rem;
}

.works__subtitle-heart {
  display: inline-flex;
  width: 2.4rem;
  height: 2.1rem;
  flex-shrink: 0;
  flex-basis: 100%;
  justify-content: center;
  margin: 0 auto;
}

.works__subtitle-heart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.works__subtitle-heart svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works__stage {
  position: relative;
  width: 100%;
}

.works__carousel {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 0 auto;
}

.works__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--accent);
  z-index: 10;
  transition: transform 0.2s ease, color 0.2s ease;
  border-radius: 999px;
}

.works__nav svg {
  width: 56px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#rough);
}

.works__nav--prev {
  left: 1rem;
}

.works__nav--next {
  right: 1rem;
}

.works__nav:hover,
.works__nav:focus-visible {
  transform: translateY(-50%) scale(1.15);
  color: var(--accent-hover);
  outline: none;
}

@media (max-width: 700px) {
  .works__stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
  .works__carousel {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .works__nav {
    position: static;
    transform: none;
    width: 52px;
    height: 44px;
    grid-row: 2;
    margin-top: 0.5rem;
  }
  .works__nav--prev {
    grid-column: 1;
    justify-self: end;
  }
  .works__nav--next {
    grid-column: 2;
    justify-self: start;
  }
  .works__nav:hover,
  .works__nav:focus-visible {
    transform: scale(1.15);
  }
}

.work-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  cursor: pointer;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.work-card.is-center {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}

.work-card.is-left {
  transform: translate(calc(-50% - 220px), -50%) scale(0.8);
  opacity: 0.7;
  z-index: 3;
}

.work-card.is-right {
  transform: translate(calc(-50% + 220px), -50%) scale(0.8);
  opacity: 0.7;
  z-index: 3;
}

.work-card.is-far-left {
  transform: translate(calc(-50% - 400px), -50%) scale(0.62);
  opacity: 0.4;
  z-index: 1;
}

.work-card.is-far-right {
  transform: translate(calc(-50% + 400px), -50%) scale(0.62);
  opacity: 0.4;
  z-index: 1;
}

.work-card.is-center:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.work-card.is-center:hover .work-card__frame rect,
.work-card.is-center:focus-visible .work-card__frame rect {
  stroke: var(--accent);
  stroke-width: 2.2;
}

.work-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.work-card__frame rect {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.work-card__media {
  position: relative;
  width: 100%;
  padding: 1rem 1rem 0;
  background-color: transparent;
}

.work-card__media img {
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
  display: block;
  background-color: var(--color-cream);
  border-radius: 8px;
}

.work-card__body {
  padding: 0.9rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.work-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  border: 1.4px solid var(--accent);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  margin: 0;
}

.work-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.work-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.work-card__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.work-card__cta:hover .work-card__cta-arrow,
.work-card__cta:focus-visible .work-card__cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .work-card.is-far-left,
  .work-card.is-far-right {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .work-card.is-left {
    transform: translate(calc(-50% - 180px), -50%) scale(0.74);
  }
  .work-card.is-right {
    transform: translate(calc(-50% + 180px), -50%) scale(0.74);
  }
}

@media (max-width: 600px) {
  .works__carousel {
    height: 460px;
  }
  .work-card {
    width: 270px;
  }
  .work-card.is-left,
  .work-card.is-right {
    opacity: 0;
  }
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 14, 12, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  color: var(--text);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.is-open .lightbox__panel {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--accent);
  background-color: rgba(184, 48, 102, 0.08);
  outline: none;
}

.lightbox__media {
  width: 100%;
  margin-bottom: 1.5rem;
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background-color: var(--color-cream);
  border-radius: 10px;
}

.lightbox__body {
  display: flex;
  flex-direction: column;
}

.lightbox__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
  border: 1.4px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
}

.lightbox__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.lightbox__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.lightbox__cta {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 0.75rem;
  }
  .lightbox__panel {
    padding: 1.5rem 1.25rem;
    max-height: 95vh;
  }
  .lightbox__title {
    font-size: 1.25rem;
  }
  .lightbox__image {
    max-height: 240px;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.checklist-preview {
  aspect-ratio: 16 / 9;
  overflow-y: auto;
  overflow-x: hidden;
}

.checklist-preview__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .checklist-preview {
    aspect-ratio: 4 / 3;
  }
}

.lightbox__media {
  position: relative;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1.6px solid var(--accent);
  background: var(--card-bg);
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: var(--accent);
  color: var(--card-bg);
  outline: none;
}

.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

.lightbox__counter {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 2;
}

.lightbox--wide .lightbox__panel {
  width: min(1200px, 100%);
}

.lightbox--wide .lightbox__image {
  max-height: none;
  height: auto;
  object-fit: initial;
}

/* ============================================
   Pricing section ("Ceny")
   ============================================ */

.pricing {
  padding: 6rem 1.5rem 8rem;
}

.price-calc-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='4'%3E%3Cpath d='M0 3 Q25 1 50 3 Q75 5 100%25 3' stroke='%237A1840' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  padding-bottom: 4px;
}

.pricing__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.pricing__intro {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background-color: rgba(184, 48, 102, 0.06);
  border-radius: 14px;
}

[data-theme="dark"] .pricing__intro {
  background-color: rgba(184, 48, 102, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pricing__intro {
    background-color: rgba(184, 48, 102, 0.12);
  }
}

.pricing__intro-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.pricing__intro-frame rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 8 6;
  stroke-linejoin: round;
}

.pricing__intro-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.pricing__intro-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.pricing__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 64rem;
  margin: 0 auto;
}

.pricing-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:hover {
  background-color: rgba(184, 48, 102, 0.04);
}

[data-theme="dark"] .pricing-row:hover {
  background-color: rgba(184, 48, 102, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pricing-row:hover {
    background-color: rgba(184, 48, 102, 0.08);
  }
}

.pricing-row__doodle {
  width: 56px;
  height: 56px;
  color: var(--text);
}


.doodle-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.doodle-underline__svg {
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.5em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  pointer-events: none;
}

.pricing-row__doodle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-row__doodle svg circle {
  fill: none;
}

.pricing-row__main {
  min-width: 0;
}

.pricing-row__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.pricing-row__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.pricing-row__note {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.pricing-row__note > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  padding: 0.2rem 0;
}

.pricing-row__note > summary::-webkit-details-marker {
  display: none;
}

.pricing-row__note-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.pricing-row__note[open] .pricing-row__note-arrow {
  transform: rotate(180deg);
}

.pricing-row__note > p {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.9rem;
  background-color: rgba(184, 48, 102, 0.06);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

[data-theme="dark"] .pricing-row__note > p {
  background-color: rgba(184, 48, 102, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pricing-row__note > p {
    background-color: rgba(184, 48, 102, 0.12);
  }
}

.pricing-row__note-accent {
  color: var(--accent);
  font-weight: 500;
}

.pricing-row__price-wrap {
  position: relative;
  min-width: 12rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.pricing-row__price {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--accent);
  white-space: nowrap;
}

.pricing__price-alt {
  font-family: var(--font-body);
  font-weight: bold;
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

.pricing-row__cta-btn {
  display: block;
  width: fit-content;
  background-color: #a31f4f;
  color: #f5f0e8;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: bold;
  padding: 12px 24px;
  margin: 15px auto 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.pricing-row__cta-btn:hover {
  transform: scale(1.02) rotate(-1deg);
  background-color: #8a1942;
}

.pricing-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  background-color: rgba(184, 48, 102, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.pricing-row__cta:hover,
.pricing-row__cta:focus-visible {
  background-color: rgba(184, 48, 102, 0.18);
  outline: none;
}

.pricing-row__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.pricing-row__cta:hover .pricing-row__cta-arrow,
.pricing-row__cta:focus-visible .pricing-row__cta-arrow {
  transform: translateX(4px);
}

.pricing__note {
  max-width: 56rem;
  margin: 2.5rem auto 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.pricing__note-accent {
  color: var(--accent);
}

@media (max-width: 700px) {
  .pricing-row {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.25rem 0.25rem;
  }
  .pricing-row__doodle {
    width: 44px;
    height: 44px;
  }
  .pricing-row__price-wrap {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    margin-top: 0.25rem;
    padding-left: calc(48px + 1rem);
  }
}

/* ============================================
   About section ("O mně")
   ============================================ */

.about {
  padding: 6rem 1.5rem 8rem;
}

.about__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
}

.about__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 320px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about__media.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.about__photo {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
}

.about__frame {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  overflow: visible;
}

.about__frame path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 1.2s ease;
}

.about__media.is-drawn .about__frame path {
  stroke-dashoffset: 0;
}

.about__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 42ch;
}

.about__text p + p {
  margin-top: 1.1rem;
}

.about__highlight {
  position: relative;
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 500;
}

.about__highlight-line {
  display: inline;
}

.about__highlight-underline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.25rem;
  overflow: visible;
}

.about__highlight-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 0.9s ease;
  vector-effect: non-scaling-stroke;
}

.about__highlight.is-underlined .about__highlight-underline path {
  stroke-dashoffset: 0;
}

.about__highlight-heart {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.25em;
  vertical-align: -0.45em;
  opacity: 0;
  transform: scale(0.3) rotate(-18deg);
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about__highlight-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about__highlight-heart svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__highlight.is-hearted .about__highlight-heart {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.section-title--left {
  text-align: left;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-title--left {
    text-align: center;
  }
}

/* ============================================
   Process section ("Jak to probíhá")
   ============================================ */

.process {
  padding: 6rem 1.5rem 8rem;
}

.process__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.process__steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: 0;
}

.process__step {
  flex: 1 1 0;
  max-width: 16rem;
  text-align: left;
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.process__step.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.process__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.process__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.process__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #666;
}

[data-theme="dark"] .process__desc {
  color: #999;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .process__desc {
    color: #999;
  }
}

.process__arrow {
  flex-shrink: 0;
  width: 4rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.process__arrow.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.process__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   Contact section ("Kontakt")
   ============================================ */

.contact {
  padding: 6rem 1.5rem 8rem;
}

.contact__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.contact__lead {
  max-width: 540px;
  margin: -1.5rem auto 3rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-field__label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.contact-field__wrap {
  position: relative;
}

.contact-field__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.contact-field__frame rect {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0.45;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.contact-field__wrap:focus-within .contact-field__frame rect {
  stroke: var(--accent);
  stroke-width: 2.2;
  opacity: 1;
}

.contact-field__input {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  border-radius: 10px;
}

.contact-field__input::placeholder {
  color: var(--text-muted);
}

.contact-field__input--textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.55;
  font-family: var(--font-body);
}

.contact__error {
  margin: 0;
  padding: 0.75rem 1rem;
  background-color: rgba(184, 48, 102, 0.08);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-align: center;
}

.contact__submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: var(--accent);
  color: var(--color-cream);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact__submit:hover,
.contact__submit:focus-visible {
  background-color: var(--accent-hover);
  outline: none;
  transform: translateY(-2px);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact__submit-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.contact__submit:hover .contact__submit-arrow,
.contact__submit:focus-visible .contact__submit-arrow {
  transform: translateX(4px);
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-10px);
  animation: contact-success-in 0.55s ease forwards;
}

.contact__success[hidden] {
  display: none;
}

@keyframes contact-success-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__success-heart {
  display: inline-flex;
  width: 48px;
  height: 42px;
  animation: contact-heart-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.15s;
  transform: scale(0);
}

.contact__success-heart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.contact__success-heart svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes contact-heart-pop {
  0% {
    transform: scale(0) rotate(-12deg);
  }
  60% {
    transform: scale(1.15) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.contact__success-title {
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.contact__success-underline {
  display: block;
  width: min(220px, 80%);
  height: 12px;
  overflow: visible;
}

.contact__success-underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: contact-underline-draw 0.9s ease forwards;
  animation-delay: 0.5s;
  vector-effect: non-scaling-stroke;
}

@keyframes contact-underline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.contact__success-sub {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
}

.contact__divider {
  margin: 3rem auto 1.5rem;
  width: 100%;
  max-width: 28rem;
  height: 16px;
  color: var(--accent);
  opacity: 0.6;
}

.contact__divider svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.contact__divider svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__alt {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact__email-wrap {
  position: relative;
  display: inline-block;
}

.contact__email-hint {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  pointer-events: none;
}

.contact__email-hint-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text);
  transform: rotate(-5deg);
  white-space: nowrap;
}

.contact__email-hint-arrow {
  width: 56px;
  height: 32px;
  flex-shrink: 0;
  overflow: visible;
}

.contact__email-hint-arrow path {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .contact__email-hint {
    display: none;
  }
}

.contact__email {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  background-color: rgba(184, 48, 102, 0.08);
  transition: background-color 0.2s ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  background-color: rgba(184, 48, 102, 0.18);
  outline: none;
}

.contact__email.is-revealed {
  cursor: text;
  user-select: text;
}

.contact__email.is-revealed:hover {
  background-color: rgba(184, 48, 102, 0.08);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .process__steps {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .process__step {
    max-width: 24rem;
    width: 100%;
    text-align: center;
  }

  .process__arrow {
    transform: rotate(90deg) translateX(-16px);
    margin: 0;
    width: 3rem;
  }

  .process__arrow.is-visible {
    transform: rotate(90deg) translateX(0);
  }
}

@media (max-width: 600px) {
  .logo__last {
    font-size: 2.75rem;
  }

  .logo__first {
    font-size: 0.85rem;
  }

  .tagline {
    font-size: 1rem;
  }
}

/* ============================================
   Game — Skákající malina
   ============================================ */

.game-section {
  padding: 6rem 1.5rem 8rem;
}

.game-section__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.game-section__subtitle {
  text-align: center;
  font-family: var(--font-body);
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.game-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--bg-elevated);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-wrapper__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  overflow: visible;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 220px;
  background-color: #ffffff;
  touch-action: manipulation;
}

[data-theme="dark"] #gameCanvas {
  background-color: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #gameCanvas {
    background-color: #000000;
  }
}

#game-ui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#game-start-screen,
#game-over-screen {
  text-align: center;
  font-family: var(--font-body);
  color: var(--text);
  padding: 1rem 1.5rem;
}

#game-start-screen .game-hint {
  font-size: 1rem;
  opacity: 0.85;
}

#game-start-screen kbd {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 2px 8px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  margin: 0 2px;
}

#game-over-screen {
  pointer-events: all;
}

#game-message {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

#game-score-display,
#game-highscore-display {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0.2rem 0;
}

#game-restart-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#game-restart-btn:hover,
#game-restart-btn:focus-visible {
  background-color: var(--accent);
  color: var(--color-cream);
  border-color: var(--accent);
  outline: none;
}

#game-hud {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.65;
  display: flex;
  gap: 1rem;
  pointer-events: none;
}

.game-wrapper .hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .game-section {
    padding: 4rem 1rem 5rem;
  }
  #gameCanvas {
    height: 220px;
  }
  #game-message {
    font-size: 1.1rem;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 0;
}

.footer-divider {
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.4;
}

.footer-divider svg {
  width: 100%;
  height: 16px;
  display: block;
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer-col {
  text-align: left;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-legal {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-location {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-col-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-links-list a:hover,
.footer-links-list a:focus-visible {
  color: #6b3fa0;
  border-bottom-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .footer-links-list a:hover,
[data-theme="dark"] .footer-links-list a:focus-visible {
  color: #b18cdb;
  border-bottom-color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-links-list a:hover,
  :root:not([data-theme="light"]) .footer-links-list a:focus-visible {
    color: #b18cdb;
    border-bottom-color: #b18cdb;
  }
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-address-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-address-trigger:hover,
.footer-address-trigger:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  outline: none;
}

.footer-address {
  font: inherit;
  color: inherit;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-credit {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-credit-berry {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.15em;
  margin-left: 0.15em;
}

.footer-credit-berry svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#rough);
}

/* ============================================
   Legal page (privacy policy)
   ============================================ */

.nav--simple .nav__back {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.2s ease;
}

.nav--simple .nav__back:hover,
.nav--simple .nav__back:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav--simple .theme-toggle {
  margin-left: 1.5rem;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}

.legal__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.legal__title-text {
  display: inline;
}

.legal__title-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4em;
  width: 100%;
  height: 0.5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.legal__lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal__divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 2.5rem 0;
}

.legal__section {
  margin-bottom: 0;
}

.legal__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legal__heading-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.7;
}

.legal__section p,
.legal__section .legal__contact {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__contact strong {
  font-weight: 500;
  color: var(--accent);
}

.legal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legal__list li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.legal__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.legal__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.legal__link:hover,
.legal__link:focus-visible {
  color: #6b3fa0;
  border-bottom-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .legal__link:hover,
[data-theme="dark"] .legal__link:focus-visible {
  color: #b18cdb;
  border-bottom-color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal__link:hover,
  :root:not([data-theme="light"]) .legal__link:focus-visible {
    color: #b18cdb;
    border-bottom-color: #b18cdb;
  }
}

.legal__table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.legal__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.legal__table th,
.legal__table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.legal__table th {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9rem;
  border-bottom: 1.5px solid var(--border);
}

.legal__table td {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal__table tbody tr:last-child td {
  border-bottom: none;
}

.legal__footnote {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.protected-email {
  display: inline;
}

.email-reveal-btn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.email-reveal-btn:hover,
.email-reveal-btn:focus-visible {
  color: var(--accent);
  outline: none;
}

.email-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.email-link:hover,
.email-link:focus-visible {
  color: #6b3fa0;
  border-bottom-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .email-link:hover,
[data-theme="dark"] .email-link:focus-visible {
  color: #b18cdb;
  border-bottom-color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .email-link:hover,
  :root:not([data-theme="light"]) .email-link:focus-visible {
    color: #b18cdb;
    border-bottom-color: #b18cdb;
  }
}

.footer-cookie-manage {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-cookie-manage:hover,
.footer-cookie-manage:focus-visible {
  color: #6b3fa0;
  border-bottom-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .footer-cookie-manage:hover,
[data-theme="dark"] .footer-cookie-manage:focus-visible {
  color: #b18cdb;
  border-bottom-color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-cookie-manage:hover,
  :root:not([data-theme="light"]) .footer-cookie-manage:focus-visible {
    color: #b18cdb;
    border-bottom-color: #b18cdb;
  }
}

/* ============================================
   Cookie consent banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--bg);
  border-top: 2px solid var(--accent);
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
  min-width: 260px;
  margin: 0;
}

.cookie-banner-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-banner-link:hover,
.cookie-banner-link:focus-visible {
  color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .cookie-banner-link:hover,
[data-theme="dark"] .cookie-banner-link:focus-visible {
  color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cookie-banner-link:hover,
  :root:not([data-theme="light"]) .cookie-banner-link:focus-visible {
    color: #b18cdb;
  }
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 2px solid var(--accent);
  line-height: 1.2;
}

.cookie-btn-accept {
  background-color: var(--accent);
  color: var(--color-white);
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
  background-color: #6b3fa0;
  border-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .cookie-btn-accept,
[data-theme="dark"] .cookie-btn-accept {
  color: var(--color-deep-black);
}

[data-theme="dark"] .cookie-btn-accept:hover,
[data-theme="dark"] .cookie-btn-accept:focus-visible {
  background-color: #b18cdb;
  border-color: #b18cdb;
  color: var(--color-deep-black);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cookie-btn-accept {
    color: var(--color-deep-black);
  }
  :root:not([data-theme="light"]) .cookie-btn-accept:hover,
  :root:not([data-theme="light"]) .cookie-btn-accept:focus-visible {
    background-color: #b18cdb;
    border-color: #b18cdb;
    color: var(--color-deep-black);
  }
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--accent);
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus-visible {
  color: #6b3fa0;
  border-color: #6b3fa0;
  outline: none;
}

[data-theme="dark"] .cookie-btn-reject:hover,
[data-theme="dark"] .cookie-btn-reject:focus-visible {
  color: #b18cdb;
  border-color: #b18cdb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cookie-btn-reject:hover,
  :root:not([data-theme="light"]) .cookie-btn-reject:focus-visible {
    color: #b18cdb;
    border-color: #b18cdb;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 16px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

.footer-links-current {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .nav--simple .nav__back {
    display: none;
  }

  .legal-page {
    padding: 6rem 1.25rem 3rem;
  }

  .legal__heading {
    font-size: 1.2rem;
  }
}

/* ============================================
   Doodle layer + hero gift + egg hunt
   ============================================ */

.hero, .skills, .works, .about, .pricing, .process, .game-section, .contact {
  position: relative;
  overflow: hidden;
}

.hero__inner, .skills__inner, .works__inner, .about__inner,
.pricing__inner, .process__inner, .game-section__inner, .contact__inner {
  position: relative;
  z-index: 1;
}

.doodle {
  position: absolute;
  pointer-events: none;
  width: 80px;
  height: auto;
  z-index: 0;
  display: block;
  --doodle-progress: 0;
  --doodle-target: 1;
  opacity: calc(var(--doodle-progress) * var(--doodle-target));
}

.doodle--lg { width: 110px; }
.doodle--sm { width: 60px; }

[data-theme="dark"] .doodle--neutral { --doodle-target: 0.5; }
[data-theme="dark"] .doodle--asset { --doodle-target: 0.55; }
[data-theme="dark"] .doodle--raspberry { --doodle-target: 0.65; }

[data-theme="dark"] .doodle--neutral path[stroke="black"],
[data-theme="dark"] .doodle--neutral circle[stroke="black"],
[data-theme="dark"] .doodle--neutral rect[stroke="black"] { stroke: white; }

[data-theme="dark"] .doodle--neutral path[fill="white"],
[data-theme="dark"] .doodle--neutral circle[fill="white"],
[data-theme="dark"] .doodle--neutral rect[fill="white"] { fill: var(--color-deep-black); }

[data-theme="dark"] .doodle--asset { filter: invert(1) hue-rotate(180deg); }

@media (max-width: 1024px) {
  .doodle { display: none; }
}

/* Egg hunt raspberries */
.egg-raspberry {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 1;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 0;
}

.egg-raspberry:hover { opacity: 1; transform: scale(1.15); }
.egg-raspberry:focus-visible {
  opacity: 0.7;
  outline: 2px dashed var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
}
.egg-raspberry svg,
.egg-raspberry img { width: 100%; height: 100%; display: block; pointer-events: none; }

.egg-raspberry.is-found {
  animation: egg-pulse 0.7s ease forwards;
  pointer-events: none;
}
.egg-raspberry.is-found:hover { opacity: 0.15; }

@keyframes egg-pulse {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  35% { transform: scale(1.7) rotate(18deg); opacity: 1; }
  65% { transform: scale(0.95) rotate(-6deg); opacity: 0.6; }
  100% { transform: scale(1) rotate(0); opacity: 0.15; }
}

/* Specific egg positions */
.egg-slot--ukazky {
  position: relative;
  height: 0;
  margin: 0;
}
.egg-raspberry--cta {
  top: -18px;
  right: 16px;
  left: auto;
  bottom: auto;
  z-index: 10;
  opacity: 1 !important;
  animation: none !important;
  pointer-events: auto !important;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.egg-raspberry--cta:hover { opacity: 1; }
.egg-raspberry--book {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0.35;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.egg-raspberry--book:hover { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
.egg-raspberry--book.is-found { opacity: 0.15; }
@media (max-width: 800px) {
  .egg-raspberry--book { top: calc(50% - 18px); }
}
.egg-raspberry--pssst { display: inline-block; position: relative; opacity: 1 !important; vertical-align: middle; margin-left: 0.4rem; top: 0; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); animation: none !important; pointer-events: auto !important; }
.egg-raspberry--submit {
  position: absolute;
  top: 50%;
  left: 4%;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 1 !important;
  animation: none !important;
  pointer-events: auto !important;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.egg-raspberry--submit:hover { transform: translateY(-50%) scale(1.15); opacity: 1; }

@keyframes egg-pulse-translated-y {
  0%   { transform: translateY(-50%) scale(1) rotate(0); opacity: 1; }
  35%  { transform: translateY(-50%) scale(1.7) rotate(18deg); opacity: 1; }
  65%  { transform: translateY(-50%) scale(0.95) rotate(-6deg); opacity: 0.6; }
  100% { transform: translateY(-50%) scale(1) rotate(0); opacity: 0.15; }
}

/* Dark mode — univerzální halo pro všechny maliny (kromě --pssst, ta je inline v textu) */
[data-theme="dark"] .egg-raspberry:not(.is-found):not(.egg-raspberry--pssst) {
  opacity: 0.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .egg-raspberry:not(.is-found):not(.egg-raspberry--pssst) {
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  }
}

@keyframes egg-pulse-translated {
  0% { transform: translateX(-50%) scale(1) rotate(0); }
  35% { transform: translateX(-50%) scale(1.7) rotate(18deg); }
  65% { transform: translateX(-50%) scale(0.95) rotate(-6deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0); }
}

.contact__form { position: relative; }

/* Pssst easter egg text */
.pricing__easter-egg {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
  text-align: center;
}

/* Hero malina — doodle šipka ukazující na malinu */
.malina-arrow {
  position: absolute;
  left: 82%;
  top: 100%;
  margin-top: 6rem;
  width: 72px;
  height: 72px;
  color: #222;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}
[data-theme="dark"] .malina-arrow {
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .malina-arrow {
    color: #fff;
  }
}
.malina-arrow.is-blinking {
  opacity: 0.55;
}
.malina-arrow.is-hidden {
  animation: none !important;
  opacity: 0 !important;
  display: none;
}
@keyframes maliaArrowBlink {
  0%   { opacity: 0; }
  13%  { opacity: 0.55; }
  63%  { opacity: 0.55; }
  77%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Hero malina modal — celostránkový dialog s gratulací (vždy světlý) */
.hero-malina-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.hero-malina-modal.is-open { display: flex; }
.hero-malina-modal__panel {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 2rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.hero-malina-modal__img {
  display: block;
  height: 90px;
  width: auto;
  margin: 0 auto 1rem;
}
.hero-malina-modal__title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: #000;
  line-height: 1.3;
}
.hero-malina-modal__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 1.5rem;
}
.hero-malina-modal__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: #a31f4f;
  color: #fff;
  transition: background 0.2s ease;
}
.hero-malina-modal__btn:hover { background: #8a1942; }

/* Egg modal */
.egg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.egg-modal.is-open { display: flex; }

.egg-modal__panel {
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.egg-modal__title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: #000;
  line-height: 1.3;
}

.egg-modal__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 1rem;
}

.egg-modal__code {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 18px;
  color: #a31f4f;
  background: transparent;
  border: 2px dashed #a31f4f;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
}

.egg-modal__discount {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #999;
  margin: 0 0 1.5rem;
}

.egg-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.egg-modal__btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: #a31f4f;
  color: #fff;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.egg-modal__btn:hover {
  transform: scale(1.02) rotate(-1deg);
  background: #8a1942;
}
.egg-modal__btn--primary { background: #a31f4f; color: #fff; }
.egg-modal__btn--primary:hover { background: #8a1942; }

/* Featured game embed (sekce Ukázky — interaktivní hra nad carouselem) */
.featured-game {
  position: relative;
  margin: 0 auto 3rem;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-game__lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

.featured-game__note-row {
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
}

.featured-game__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
}

.featured-game__cta {
  margin: 0 !important;
  flex-shrink: 0;
}

.featured-game__open {
  align-self: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.featured-game__open:hover,
.featured-game__open:focus-visible {
  color: var(--accent-hover);
}

.featured-game__rotate {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  text-align: left;
}

.featured-game__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  border-radius: 14px;
  overflow: hidden;
}

.featured-game__iframe {
  position: absolute;
  top: 0;
  left: 0;
  /* iframe se renderuje na 100/0.667 ≈ 150 % rozměrů kontejneru,
     pak se transformem vizuálně zmenší zpět — hra uvnitř si pak
     myslí, že má původní (větší) viewport a vykreslí se správně */
  width: 150%;
  height: 150%;
  border: 0;
  display: block;
  transform: scale(0.667);
  transform-origin: 0 0;
}

.featured-game__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.featured-game__frame rect {
  fill: none;
  stroke: #a31f4f;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .featured-game__frame rect { opacity: 0.85; }
}

[data-theme="dark"] .featured-game__frame rect { opacity: 0.85; }

.featured-game__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.featured-game__placeholder[data-state="ready"] {
  opacity: 0;
  pointer-events: none;
}

.featured-game__placeholder[data-state="error"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.featured-game__placeholder[data-state="error"] a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .featured-game__rotate { display: flex; }
  .featured-game { max-width: 100%; }
}

/* Live showcase — interaktivní slider prezentace v sekci Ukázky */
.showcase-grid-2col {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  align-items: start;
}

.showcase-grid-2col .live-showcase-item {
  margin: 0;
  max-width: none;
}

@media (max-width: 800px) {
  .showcase-grid-2col {
    grid-template-columns: 1fr;
  }
}

.live-showcase-item {
  margin: 48px auto;
  max-width: 64rem;
}

.showcase-header {
  margin-bottom: 20px;
}

.showcase-header .service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.showcase-header h3 {
  font-family: var(--font-display);
  margin: 8px 0;
  color: var(--text);
}

.featured-game .showcase-header h3 {
  text-align: center;
}

.showcase-header p {
  font-family: var(--font-body);
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

.presentation-slider-container {
  position: relative;
  width: 100%;
  background-color: var(--bg);
  border: 3px solid var(--text);
  border-radius: 2px 255px 3px 225px / 255px 5px 225px 3px;
  overflow: hidden;
  box-shadow: -8px 8px 0px rgba(163, 31, 79, 0.2);
  display: flex;
  flex-direction: column;
}

.slider-images {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg);
}

.slider-images .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slider-images .slide.active {
  opacity: 1;
  z-index: 2;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background-color: var(--bg);
  border-top: 2px dashed var(--accent);
}

.slide-counter-text {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--text);
  min-width: 60px;
  text-align: center;
}

.doodle-btn-small {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.doodle-btn-small:hover {
  background-color: var(--accent);
  color: var(--bg);
  transform: scale(1.1) rotate(2deg);
}

.doodle-btn-small:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .slider-images {
    aspect-ratio: 4 / 3;
  }
  .slider-controls {
    padding: 12px;
    gap: 14px;
  }
  .doodle-btn-small {
    font-size: 1rem;
    padding: 4px 12px;
  }
}

/* ============================================
   Cenová kalkulačka — sekce Ceny
   ============================================ */
.calculator-wrapper {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  padding: 2rem 1.75rem;
  margin: 0.5rem auto 0;
  max-width: 820px;
  font-family: var(--font-body);
  scroll-margin-top: 90px;
}
.calculator-wrapper > *:not(.calculator-wrapper__frame):not(.calculator-wrapper__deco) {
  position: relative;
  z-index: 1;
}
.calculator-wrapper__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.calculator-wrapper__frame rect {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calculator-wrapper__frame-outer { stroke-width: 3.6; }
.calculator-wrapper__frame-inner { stroke-width: 1.4; opacity: 0.6; }

.calculator-wrapper__deco {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  pointer-events: none;
  filter: url(#rough);
}
.calculator-wrapper__deco--tl { top: -14px; left: -14px; }
.calculator-wrapper__deco--tr { top: -14px; right: -14px; }
.calculator-wrapper__deco--bl { bottom: -14px; left: -14px; }
.calculator-wrapper__deco--br { bottom: -14px; right: -14px; }

.calc-header { margin-bottom: 1.5rem; text-align: center; }
.calc-header h2 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.6rem;
  text-align: center;
}
.calc-note { text-align: center; }
.calc-note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.calc-section { margin-bottom: 2rem; }
.calc-section h3 {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 1.4rem;
  font-family: "Caveat", cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.calc-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  position: relative;
}
.calc-option input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  left: 0;
  top: 4px;
  margin: 0;
  cursor: pointer;
}
.calc-option span {
  position: relative;
  padding-left: 36px;
  line-height: 1.4;
  flex: 1;
  font-family: var(--font-body);
}
.calc-option span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 2.4px solid var(--accent);
  background: transparent;
  filter: url(#rough);
  transition: background 0.15s ease;
  box-sizing: border-box;
  border-radius: 2px;
}
.calc-option input:checked + span::before {
  background: var(--accent);
}
.calc-option input:focus-visible + span::before {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.calc-option strong {
  font-family: var(--font-body);
  font-weight: 700;
}
.calc-option small {
  display: block;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.calc-receipt {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  padding: 1.5rem 1.4rem;
  height: fit-content;
  top: 20px;
  font-family: var(--font-body);
}
@media (min-width: 769px) {
  .calc-receipt { position: sticky; }
}
.calc-receipt > *:not(.calc-receipt__frame) {
  position: relative;
  z-index: 1;
}
.calc-receipt__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.calc-receipt__frame rect {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calc-receipt__frame-outer { stroke-width: 2.4; opacity: 0.85; }

.calc-receipt__corner {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
  filter: url(#rough);
}
.calc-receipt__corner--tl { top: -8px; left: -8px; }
.calc-receipt__corner--tr { top: -8px; right: -8px; }
.calc-receipt__corner--bl { bottom: -8px; left: -8px; }
.calc-receipt__corner--br { bottom: -8px; right: -8px; }

.calc-receipt__sparkle {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 0.5rem;
  color: var(--accent);
  z-index: 1;
  position: relative;
}
.calc-receipt__sparkle path {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linejoin: round;
}
.calc-receipt h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  color: var(--text);
  font-weight: 800;
}
.receipt-total {
  font-size: 2.1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}
.receipt-empty {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}
.receipt-empty p { margin: 0 0 0.6rem; }
.receipt-items ul { list-style: none; padding: 0; margin-top: 10px; }
.receipt-items li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
}
.receipt-items li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.calc-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
}
.calc-footer {
  margin-top: 2.5rem;
  padding-top: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.calc-footer__divider {
  display: block;
  width: 45%;
  height: 8px;
  margin: 0 auto 1.5rem;
  fill: none;
  stroke: var(--border);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.calc-footer p { margin: 0 0 0.75rem; }
.calc-footer p:last-child { margin-bottom: 0; }

.calc-reset-btn {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.6;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding: 4px 8px;
}

.calc-reset-btn:hover,
.calc-reset-btn:focus-visible {
  opacity: 1;
  color: var(--accent);
  outline: none;
}

/* ============================================
   FAQ — "Možná vás zajímá"
   ============================================ */
.faq {
  padding: 80px 0;
  position: relative;
}

.faq__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.faq__header {
  margin-bottom: 48px;
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.faq__illustration {
  position: sticky;
  top: 120px;
  width: 160px;
  opacity: 0.18;
  pointer-events: none;
}

.faq__illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.faq__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1.5px solid var(--border);
  border-radius: 2px 20px 2px 20px / 20px 2px 20px 2px;
  overflow: hidden;
  background: transparent;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.faq__question:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translateX(3px);
}

.faq__cursor {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: faq-cursor-blink 1.2s step-end infinite;
}

.faq__item.is-open .faq__cursor {
  transform: rotate(90deg);
  animation: none;
}

@keyframes faq-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.faq__answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
}

.faq__answer[hidden] {
  display: block;
}

.faq__answer p {
  margin: 0;
}

.faq__item.is-open .faq__answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq__footer-note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  text-align: center;
  font-family: var(--font-body);
}

.faq__footer-note a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq__layout {
    grid-template-columns: 1fr;
  }
  .faq__illustration {
    display: none;
  }
}

/* --- 404 ERROR PAGE --- */
.page-404 {
  min-height: 100vh;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow-x: hidden;
}

.page-404__brand {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.5rem;
  margin-bottom: 2.5rem;
}

.page-404__brand-cursor {
  animation: page-404-blink 1s steps(1, end) infinite;
  margin-left: 0.05em;
}

@keyframes page-404-blink {
  50% { opacity: 0; }
}

.page-404__main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  position: relative;
}

.page-404__terminal {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.page-404__body {
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1.75rem 1.75rem;
  min-height: 0;
  gap: 0.5rem;
}

.page-404__line {
  font-family: var(--font-mono);
  color: #f5f0e8;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-404__line--cmd {
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.page-404__line--end {
  margin-top: 1.25rem;
  opacity: 0.85;
}

.page-404__prompt {
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

.page-404__hl {
  color: var(--accent);
}

.page-404__cursor {
  display: inline-block;
  animation: page-404-blink 1s step-end infinite;
}

.page-404__code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(4rem, 15vw, 7rem);
  color: #ffffff;
  margin: 0.25rem 0 0.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
}

.page-404__headline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.45;
  font-weight: 600;
}

.page-404__sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #f5f0e8;
  opacity: 0.78;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.page-404__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #f5f0e8;
  background-color: transparent;
  border: 1px solid #444;
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.page-404__btn:hover,
.page-404__btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.page-404__btn--primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.page-404__btn--primary:hover,
.page-404__btn--primary:focus-visible {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* Malina easter egg */
.page-404__berry {
  position: absolute;
  bottom: -1.5rem;
  right: -0.5rem;
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-404__berry img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transform-origin: 50% 80%;
  transition: transform 0.3s ease;
}

.page-404__berry:hover,
.page-404__berry:focus-visible {
  opacity: 1;
  outline: none;
}

.page-404__berry:hover img,
.page-404__berry:focus-visible img {
  transform: rotate(-8deg) scale(1.05);
}

.page-404__berry.is-found img {
  animation: page-404-berry-bounce 0.6s ease;
}

@keyframes page-404-berry-bounce {
  0%   { transform: translateY(0) rotate(-8deg) scale(1.05); }
  30%  { transform: translateY(-12px) rotate(6deg) scale(1.1); }
  60%  { transform: translateY(0) rotate(-4deg) scale(1.05); }
  100% { transform: translateY(0) rotate(-8deg) scale(1.05); }
}

.page-404__berry-msg {
  position: absolute;
  bottom: 100%;
  right: 50%;
  transform: translate(50%, 4px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background-color: var(--bg-elevated);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-404__berry.is-found .page-404__berry-msg {
  opacity: 1;
  transform: translate(50%, -4px);
}

@media (max-width: 600px) {
  .page-404__body {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .page-404__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .page-404__btn {
    justify-content: center;
  }
  .page-404__berry {
    bottom: -1rem;
    right: 0;
    width: 48px;
    height: 48px;
  }
}

/* ── Hero CTA ── */
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-cta__btn {
  display: inline-block;
  padding: 0.65em 1.4em;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.hero-cta__btn:hover {
  opacity: 0.85;
}

.hero-cta__btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.hero-cta__btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.hero-cta__microcopy {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  max-width: 28ch;
  line-height: 1.5;
}

/* ── Kalkulačka — final note pod výsledkem ── */
.receipt-finalnote {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 1.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

/* ── Calculator note ── */
.calculator-note {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--accent);
  margin: 3rem auto 0.25rem;
  max-width: 680px;
  text-align: center;
  line-height: 1.6;
}

/* ── Fit section ── */
.fit {
  padding: 4rem 1.5rem;
  position: relative;
}

.fit__inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  padding: 2rem 2.5rem;
}

.fit__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.fit__frame rect {
  fill: transparent;
  stroke: var(--border);
  stroke-width: 2.2;
}

.fit__col {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .fit__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.fit__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.fit__title--yes {
  color: var(--accent);
}

.fit__title--no {
  color: var(--text-muted);
}

.fit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.fit__list li::before {
  margin-right: 0.5em;
}

.fit__list--yes li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.fit__list--no li::before {
  content: "✗";
  color: var(--text-muted);
}

/* ── Why section ── */
.why {
  padding: 3rem 1.5rem 4rem;
  position: relative;
}

.why__inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.why__title {
  margin-bottom: 2rem;
}

.why__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 1.25rem;
  max-width: 64ch;
}

.why__text:last-child {
  margin-bottom: 0;
}

.why__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.why__cta {
  display: inline-block;
  padding: 0.7em 1.6em;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.why__cta:hover,
.why__cta:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
  outline: none;
}

/* ── Hero bio CTA ── pod taglinem, drobná & nenápadná tlačítka */
.hero-bio-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  max-width: 55ch;
}

.hero-bio-cta__btn {
  display: inline-block;
  padding: 0.45em 1em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-bio-cta__btn:hover,
.hero-bio-cta__btn:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.hero-bio-cta__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.15em 0;
}

.hero-bio-cta__link:hover,
.hero-bio-cta__link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.hero-bio-cta__link:hover .hero-bio-cta__arrow,
.hero-bio-cta__link:focus-visible .hero-bio-cta__arrow {
  transform: translateX(3px);
}

.hero-bio-cta__arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Egg touch targets ── */
.egg-raspberry {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6em 1.2em;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Screen reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
