﻿/* ==========================================================================
   VlastniNasivky.cz — hlavní styl
   --------------------------------------------------------------------------
   Obsah:
   01  Tokeny (barvy, typografie, prostor)
   02  Reset a základ
   03  Typografie a utility
   04  Stehová linka (signature prvek)
   05  Header + mobilní spodní lišta
   06  Hero
   07  Trust bar
   08  Kalkulačka
   09  Galerie + lightbox
   10  Dílna (videa)
   11  Typy nášivek
   12  Postup, reference, FAQ, kontakt, patička
   13  Modal poptávky
   14  Cookie lišta
   15  Responzivita
   ========================================================================== */

/* ==========================================================================
   01  TOKENY
   ========================================================================== */

:root {
  /* Paleta — litina stroje a vzorník nití */
  --steel-900: #1B1F24;   /* tmavé sekce, hero, patička */
  --steel-700: #2E353D;
  --steel-050: #EEF1F4;   /* chladná světlá — hlavní pozadí */
  --paper:     #FFFFFF;

  --thread-red:  #E03127; /* primární akcent — CTA, cena */
  --thread-gold: #C9A227; /* badge "od 1 ks", metalická nit */
  --thread-teal: #0F7B6C; /* potvrzení, úspora, success */
  --stitch:      #8B94A0; /* hairline linky, dekorace, disabled */

  /* Ztmavené varianty pro TEXT na světlém pozadí — kontrast ≥ 4.5:1.
     --stitch (#8B94A0) má na --steel-050 jen 2.6:1, na text se nesmí použít. */
  --stitch-ink: #5A626D;  /* 5.45:1 na --steel-050 */
  --red-ink:    #C22119;  /* 5.25:1 na --steel-050 */

  /* Typografie */
  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Type scale — 13 / 15 / 17 / 21 / 28 / 40 / 64 */
  --t-13: 0.8125rem;
  --t-15: 0.9375rem;
  --t-17: 1.0625rem;
  --t-21: 1.3125rem;
  --t-28: 1.75rem;
  --t-40: 2.5rem;
  --t-64: 4rem;

  /* Prostor */
  --gap: 1.5rem;
  --pad-section: 5rem;
  --wrap: 1280px;
  --rail: 4.5rem;         /* šířka levého pruhu pro stehovou linku */

  /* Detaily */
  --r-input: 4px;
  --r-card: 2px;
  --r-badge: 999px;
  --shadow: 0 1px 3px rgba(27, 31, 36, .08);

  /* Stehový hairline — přerušovaná linka ve stylu stehu */
  --hairline: repeating-linear-gradient(90deg,
              var(--stitch) 0 6px, transparent 6px 11px);
  --hairline-v: repeating-linear-gradient(180deg,
                var(--stitch) 0 6px, transparent 6px 11px);
}

/* ==========================================================================
   02  RESET A ZÁKLAD
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* aby kotva neskončila pod stickym headerem */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--steel-050);
  color: var(--steel-900);
  font-family: var(--font-body);
  font-size: var(--t-17);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Focus — viditelný všude, bez výjimky */
:focus-visible {
  outline: 2px solid var(--thread-red);
  outline-offset: 2px;
}
/* Na tmavém pozadí je červená proti #1B1F24 slabá — přidáme světlý lem */
.is-dark :focus-visible {
  outline-color: var(--thread-red);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}

::selection { background: var(--thread-red); color: #fff; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--thread-red);
  color: #fff;
  padding: .75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ==========================================================================
   03  TYPOGRAFIE A UTILITY
   ========================================================================== */

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 6.5vw, var(--t-64)); }
h2 { font-size: clamp(1.75rem, 4.2vw, var(--t-40)); }
h3 { font-size: var(--t-21); line-height: 1.25; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--pad-section);
  position: relative;
}

.is-dark {
  background: var(--steel-900);
  color: var(--steel-050);
}
.is-dark .eyebrow { color: var(--stitch); }
.is-dark .lead { color: #C7CDD5; }

/* Eyebrow — mono štítek nad nadpisem sekce */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stitch-ink);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Krátký steh odbočující ze stehové linky k nadpisu sekce */
.eyebrow::before {
  content: '';
  width: 0;
  height: 2px;
  flex: none;
  background: var(--hairline);
  background-size: 11px 2px;
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
.eyebrow.is-sewn::before { width: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { width: 2.5rem; transition: none; }
}

.lead {
  font-size: var(--t-21);
  line-height: 1.5;
  color: var(--stitch-ink);
  max-width: 58ch;
}

.section-head { margin-bottom: 2.5rem; max-width: 62ch; }

/* Stehový oddělovač */
.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
  opacity: .9;
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-input);
  font-family: var(--font-body);
  font-size: var(--t-15);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--thread-red);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: #C22119; }

.btn-ghost {
  background: transparent;
  border-color: var(--stitch);
  color: inherit;
}
.btn-ghost:hover { border-color: currentColor; }

.btn-block { width: 100%; }

.btn-lg { padding: 1.0625rem 1.75rem; font-size: var(--t-17); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .625rem;
  border-radius: var(--r-badge);
  font-family: var(--font-mono);
  font-size: var(--t-13);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-gold { background: var(--thread-gold); color: var(--steel-900); }
.badge-teal { background: var(--thread-teal); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   04  STEHOVÁ LINKA — signature prvek
   --------------------------------------------------------------------------
   Fixed SVG vlevo. Satinový steh = podkladová nit + hustý dash přes ni.
   stroke-dashoffset řídí JS podle scroll pozice (main.js).
   Pod 768 px se nezobrazuje vůbec.
   ========================================================================== */

.stitchline {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.25rem;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

@media (min-width: 768px) {
  .stitchline { width: var(--rail); }
}

.sl-guide {
  stroke: var(--stitch);
  stroke-width: 1;
  stroke-dasharray: 1 6;
  opacity: .2;
}

.sl-thread {
  stroke: var(--thread-gold);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}

.sl-needle-body {
  fill: #C8D0DA;
  stroke: #9BA4AF;
  stroke-width: .8;
  filter: drop-shadow(0 1px 3px rgba(27,31,36,.35));
}

.sl-needle-eye {
  fill: var(--steel-900);
}

.sl-tail {
  stroke: var(--thread-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
}

.stitchline.on-dark .sl-guide { stroke: #5A6270; opacity: .35; }
.stitchline.on-dark .sl-needle-body { fill: #E8EDF2; stroke: #B0BAC4; }
.stitchline.on-dark .sl-needle-eye { fill: #1B2026; }

/* ==========================================================================
   05  HEADER + MOBILNÍ SPODNÍ LIŠTA
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(238, 241, 244, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.header.is-stuck {
  border-bottom-color: rgba(139, 148, 160, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-17);
  letter-spacing: -.02em;
  margin-right: auto;
  white-space: nowrap;
}
.logo__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  display: block;
}
.logo__tld { color: var(--stitch-ink); font-weight: 700; }

.nav { display: none; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  font-size: var(--t-15);
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease;
}
.nav a:hover, .nav a.is-active { border-bottom-color: var(--thread-red); }

.header__phone {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--t-15);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--red-ink); }

.header__cta { display: none; }

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 .625rem;
  background: transparent;
  border: 1px solid var(--stitch);
  border-radius: var(--r-input);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--steel-900);
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobilní panel navigace */
.mobilenav {
  display: none;
  border-top: 1px solid rgba(139, 148, 160, .4);
  background: var(--steel-050);
  padding: .5rem 0 1.25rem;
}
.mobilenav.is-open { display: block; }
.mobilenav a {
  display: block;
  padding: .875rem .25rem;
  text-decoration: none;
  font-size: var(--t-17);
  font-weight: 500;
  border-bottom: 1px solid rgba(139, 148, 160, .25);
}
.mobilenav .btn { margin-top: 1rem; }

/* Spodní sticky lišta na mobilu — cena + CTA */
.dockbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem calc(.625rem + env(safe-area-inset-bottom));
  background: var(--steel-900);
  color: var(--steel-050);
  transform: translateY(110%);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.dockbar.is-visible { transform: translateY(0); }
.dockbar__price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-right: auto;
}
.dockbar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stitch);
}
.dockbar__value {
  font-family: var(--font-mono);
  font-size: var(--t-17);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.dockbar .btn { padding: .75rem 1.125rem; }

@media (min-width: 1024px) {
  .dockbar { display: none; }
}

/* ==========================================================================
   06  HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--steel-900);
  color: var(--steel-050);
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-block: 5rem 3.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(27, 31, 36, .55), rgba(27, 31, 36, .85));
}

.hero__inner { max-width: 46rem; }

.hero h1 { margin-bottom: 1rem; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  color: var(--thread-gold);
}

.hero__lead {
  font-size: var(--t-21);
  line-height: 1.5;
  color: #D4DAE1;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.hero__meta {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .04em;
  color: var(--stitch);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
}
.hero__meta .dot { color: var(--thread-red); }

.hero__badge { margin-bottom: 1.5rem; }

/* ==========================================================================
   07  TRUST BAR
   ========================================================================== */

.trust {
  background: var(--paper);
  border-bottom: 1px solid rgba(139, 148, 160, .3);
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: 1.125rem .5rem;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.3;
  position: relative;
}
/* Hairline oddělení mezi položkami — stehový styl */
.trust__item + .trust__item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--hairline-v);
  background-size: 1px 11px;
}
.trust__item:nth-child(3)::before { content: none; }
.trust__item svg { flex: none; color: var(--thread-red); }

@media (min-width: 768px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item:nth-child(3)::before { content: ''; }
}

/* ==========================================================================
   08  KALKULAČKA
   ========================================================================== */

.calc { background: var(--steel-050); }

.calc__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* --- Ovládání --- */
.calc__controls { display: grid; gap: 1.25rem; }

.field {
  background: var(--paper);
  border: 1px solid rgba(139, 148, 160, .35);
  border-radius: var(--r-card);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.field__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .875rem;
}

.field__num {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch-ink);
  background: var(--steel-050);
  border-radius: var(--r-card);
  padding: .125rem .375rem;
  flex: none;
}

.field__label {
  font-weight: 600;
  font-size: var(--t-15);
  margin: 0;
  flex: 1;
}

/* Tooltip „?“ */
.hint { position: relative; flex: none; }
.hint__btn {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: var(--r-badge);
  border: 1px solid var(--stitch);
  background: transparent;
  color: var(--stitch-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.hint__btn:hover { border-color: var(--steel-900); color: var(--steel-900); }
.hint__bubble {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 20;
  width: min(19rem, 70vw);
  background: var(--steel-900);
  color: var(--steel-050);
  padding: .75rem .875rem;
  border-radius: var(--r-input);
  font-size: var(--t-13);
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(27, 31, 36, .08);
}
.hint__bubble[hidden] { display: none; }

/* Rozměry */
.dims {
  display: flex;
  align-items: flex-end;
  gap: .625rem;
  flex-wrap: wrap;
}
.dims__group { display: flex; flex-direction: column; gap: .3125rem; }
.dims__group label {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch-ink);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dims__x {
  font-family: var(--font-mono);
  color: var(--stitch-ink);
  padding-bottom: .625rem;
}
.dims__area {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch-ink);
  padding-bottom: .625rem;
  white-space: nowrap;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: .625rem .75rem;
  background: var(--paper);
  border: 1px solid var(--stitch);
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: var(--t-17);
  font-variant-numeric: tabular-nums;
  transition: border-color .16s ease;
}
input[type="number"] { width: 6rem; }
input:hover, textarea:hover { border-color: var(--steel-700); }
input:focus, textarea:focus { border-color: var(--thread-red); }

/* Rychlé volby (chipy) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .875rem;
}
.chip {
  padding: .4375rem .75rem;
  background: transparent;
  border: 1px solid rgba(139, 148, 160, .7);
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch-ink);
  cursor: pointer;
  transition: all .14s ease;
}
.chip:hover { border-color: var(--steel-900); color: var(--steel-900); }
.chip[aria-pressed="true"] {
  background: var(--steel-900);
  border-color: var(--steel-900);
  color: #fff;
}

/* Slider množství */
.qty { display: flex; align-items: center; gap: 1rem; }
.qty input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 2rem;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.qty input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--thread-red) var(--fill, 0%), rgba(139,148,160,.5) var(--fill, 0%));
  border-radius: 2px;
}
.qty input[type="range"]::-moz-range-track {
  height: 3px;
  background: rgba(139, 148, 160, .5);
  border-radius: 2px;
}
.qty input[type="range"]::-moz-range-progress {
  height: 3px;
  background: var(--thread-red);
  border-radius: 2px;
}
.qty input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -.5625rem;
  border-radius: var(--r-badge);
  background: var(--steel-900);
  border: 3px solid var(--paper);
  box-shadow: 0 1px 3px rgba(27, 31, 36, .28);
}
.qty input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--r-badge);
  background: var(--steel-900);
  border: 3px solid var(--paper);
  box-shadow: 0 1px 3px rgba(27, 31, 36, .28);
}

/* Karty voleb (složitost, typ, okraj, rub) */
.opts {
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}
.opts--3 { grid-template-columns: 1fr; }
.opts--4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 480px) {
  .opts--3 { grid-template-columns: repeat(3, 1fr); }
  .opts--2 { grid-template-columns: repeat(2, 1fr); }
}

.opt { position: relative; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.opt__body {
  display: block;
  height: 100%;
  padding: .75rem;
  border: 1px solid rgba(139, 148, 160, .7);
  border-radius: var(--r-card);
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.opt__body:hover { border-color: var(--steel-700); }
.opt input:checked + .opt__body {
  border-color: var(--steel-900);
  background: var(--steel-050);
  box-shadow: inset 0 0 0 1px var(--steel-900);
}
.opt input:focus-visible + .opt__body {
  outline: 2px solid var(--thread-red);
  outline-offset: 2px;
}
.opt__title {
  display: block;
  font-size: var(--t-15);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .1875rem;
}
.opt__desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--stitch-ink);
}

.opt__note {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--stitch-ink);
  margin-top: .375rem;
  padding-top: .375rem;
  border-top: 1px dashed rgba(139, 148, 160, .5);
}

/* Miniatura motivu u složitosti — ukazuje míru detailu, ne jen počet barev */
.opt__body--vis { display: flex; flex-direction: column; }
.motif {
  display: block;
  margin-bottom: .625rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--steel-900);
  aspect-ratio: 1 / 1;
}
.motif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Pojistka proti špatnému odhadu složitosti */
.safety {
  margin-top: .875rem;
  padding: .75rem .875rem;
  font-size: var(--t-13);
  line-height: 1.55;
  color: var(--stitch-ink);
  background: rgba(201, 162, 39, .07);
  border-left: 2px solid var(--thread-gold);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.safety strong { color: var(--steel-900); }

/* Přepínače ano/ne */
.toggles { display: grid; gap: .5rem; }
.toggle {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--paper);
  border: 1px solid rgba(139, 148, 160, .35);
  border-radius: var(--r-card);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.toggle:hover { border-color: var(--stitch); }
.toggle input { margin: .1875rem 0 0; accent-color: var(--thread-red); width: 1.125rem; height: 1.125rem; flex: none; cursor: pointer; }
.toggle__text { flex: 1; }
.toggle__title { display: block; font-size: var(--t-15); font-weight: 600; }
.toggle__desc { display: block; font-size: var(--t-13); color: var(--stitch-ink); line-height: 1.45; }
.toggle__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stitch-ink);
  white-space: nowrap;
}

/* --- Živý náhled --- */
.preview {
  background: var(--steel-900);
  border-radius: var(--r-card);
  padding: 1.25rem;
  color: var(--steel-050);
}
.preview__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .875rem;
}
.preview__title {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stitch);
  margin: 0;
}
.preview__scale {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stitch);
}
.preview__stage {
  background: #14171B;
  border-radius: var(--r-card);
  overflow: hidden;
}
.preview__stage svg { width: 100%; height: auto; }

/* --- Štítky pod náhledem: co přesně je naklikané --- */
.preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .75rem;
}
.ptag {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: .5rem .625rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(139, 148, 160, .22);
  border-radius: var(--r-card);
}
.ptag__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stitch);
}
.ptag__value {
  font-size: var(--t-13);
  font-weight: 500;
  line-height: 1.25;
  color: var(--steel-050);
}
.ptag__marks { display: flex; align-items: center; gap: 3px; }
.ptag__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--r-badge);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.ptag__dot--lg { width: 13px; height: 13px; border-radius: 2px; }

/* Vzorek povrchu — každý typ nášivky vypadá jinak i v štítku */
.ptag__surface {
  display: block;
  width: 22px;
  height: 10px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.ptag__surface--vysivana {
  background: repeating-linear-gradient(48deg, #404955 0 2px, #2B323B 2px 4px);
}
.ptag__surface--sublimacni {
  background: linear-gradient(115deg, #2F3A44, #3A4048 55%, #5A4448);
}
.ptag__surface--puff {
  background: linear-gradient(180deg, #59626E, #333B45 55%, #1B2026);
}

.preview__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .375rem 1rem;
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stitch);
}
/* První řádek popisuje zvolené provedení, druhý je jen tichá nápověda */
.preview__hintline { opacity: .7; }

/* --- Cenový panel --- */
.panel {
  background: var(--paper);
  border: 1px solid rgba(139, 148, 160, .45);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__top {
  padding: 1.25rem;
  background: var(--steel-900);
  color: var(--steel-050);
}
.panel__badgerow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.panel__unit {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch);
}
.panel__pricelabel {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stitch);
  margin-bottom: .25rem;
}
.panel__price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 7vw, var(--t-40));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .375rem;
}
.panel__price .cur { font-size: var(--t-21); color: var(--stitch); }
.panel__sub {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--stitch);
  margin-top: .375rem;
}

/* Rozpad ceny */
.breakdown { padding: 1rem 1.25rem; }
.breakdown__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  position: relative;
}
.breakdown__row + .breakdown__row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  background-size: 11px 1px;
  opacity: .55;
}
.breakdown__row dt { color: var(--stitch-ink); }
.breakdown__row dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown__row--free dd { color: var(--thread-teal); font-weight: 500; }
.breakdown__row--free .strike { color: var(--stitch); text-decoration: line-through; margin-right: .375rem; font-weight: 400; }
.breakdown__row--total {
  padding-top: .875rem;
  margin-top: .25rem;
  font-size: var(--t-17);
  font-weight: 500;
}
.breakdown__row--total::before { opacity: 1 !important; height: 2px !important; }
.breakdown__row--total dt { color: var(--steel-900); font-weight: 500; }

/* Ukazatel dalšího pásma */
.tier {
  margin: 0 1.25rem 1.25rem;
  padding: .875rem;
  background: rgba(15, 123, 108, .07);
  border: 1px solid rgba(15, 123, 108, .3);
  border-radius: var(--r-card);
}
.tier[hidden] { display: none; }
.tier__text {
  font-size: var(--t-13);
  line-height: 1.5;
  color: var(--steel-900);
  margin-bottom: .625rem;
}
.tier__text strong { color: var(--thread-teal); }
.tier__bar {
  height: 3px;
  background: rgba(15, 123, 108, .2);
  border-radius: 2px;
  overflow: hidden;
}
.tier__fill {
  height: 100%;
  background: var(--thread-teal);
  width: 0;
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}

/* Pobídka k programu zdarma */
.nudge {
  margin: 0 1.25rem 1.25rem;
  font-size: var(--t-13);
  line-height: 1.5;
  color: var(--stitch-ink);
  padding-left: .75rem;
  border-left: 2px solid var(--thread-gold);
}
.nudge[hidden] { display: none; }
.nudge b { color: var(--steel-900); font-weight: 600; }

.panel__cta { padding: 0 1.25rem 1rem; }
.panel__note {
  padding: 0 1.25rem 1.25rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--stitch-ink);
}

/* Statický ceník pro vypnutý JS */
.noscript-price {
  background: var(--paper);
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.noscript-price table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--t-15); }
.noscript-price th, .noscript-price td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid rgba(139,148,160,.35); }
.noscript-price td:last-child, .noscript-price th:last-child { text-align: right; padding-right: 0; }

/* ==========================================================================
   09  GALERIE + LIGHTBOX
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: 1.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}

.tile {
  position: relative;
  margin: 0;
  background: var(--steel-700);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.tile:hover, .tile:focus-visible { transform: translateY(-2px); }

.tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }

.tile img, .tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem .75rem .625rem;
  background: linear-gradient(180deg, transparent, rgba(27, 31, 36, .92));
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.tile:hover .tile__cap,
.tile:focus-visible .tile__cap { opacity: 1; transform: translateY(0); }

.tile__name { display: block; font-size: var(--t-15); font-weight: 600; line-height: 1.25; }
.tile__spec {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #B9C1CA;
  margin-top: .1875rem;
}

.tile__video-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  background: rgba(27, 31, 36, .8);
  color: #fff;
  padding: .1875rem .4375rem;
  border-radius: var(--r-card);
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile__cap { transition: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(27, 31, 36, .95);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: flex-end; }
.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
}
.lightbox__stage img, .lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-card);
}
.lightbox__info {
  text-align: center;
  color: #C7CDD5;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  padding: 1rem 0 .5rem;
}
.lightbox__info b { display: block; font-family: var(--font-body); font-size: var(--t-17); color: #fff; margin-bottom: .25rem; }

.iconbtn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-input);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.iconbtn:hover { background: rgba(255, 255, 255, .2); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* ==========================================================================
   10  DÍLNA — videa
   ========================================================================== */

.shop__hero {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: .5rem;
  background: #14171B;
}
.shop__hero video, .shop__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.clip {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #14171B;
}
.clip video, .clip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.shop__hero .clip-label, .clip .clip-label {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  right: 3.75rem;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  letter-spacing: .04em;
}
.clip__sound {
  position: absolute;
  right: .625rem;
  bottom: .625rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-input);
  background: rgba(27, 31, 36, .7);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.clip__sound:hover { background: rgba(27, 31, 36, .95); }

/* ==========================================================================
   11  TYPY NÁŠIVEK
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(139, 148, 160, .35);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-700); }
.card__body { padding: 1.125rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .375rem; font-size: var(--t-17); }
.card__body p { font-size: var(--t-15); color: var(--stitch-ink); line-height: 1.55; }
.card__when {
  margin-top: auto;
  padding-top: .875rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-900);
  line-height: 1.5;
}
.card__when::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--hairline);
  background-size: 11px 1px;
  margin-bottom: .75rem;
}

.backs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .75rem;
}
.back {
  background: var(--paper);
  border: 1px solid rgba(139, 148, 160, .35);
  border-radius: var(--r-card);
  padding: 1rem;
}
.back img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); margin-bottom: .75rem; background: var(--steel-700); }
.back h4 { font-size: var(--t-15); margin-bottom: .25rem; }
.back p { font-size: var(--t-13); color: var(--stitch-ink); line-height: 1.5; }
.back__price {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-ink);
  margin-top: .5rem;
}

/* ==========================================================================
   12  FAQ, KONTAKT, PATIČKA
   ========================================================================== */

/* FAQ */
.faq { max-width: 52rem; }
.faq details {
  border-top: 1px solid transparent;
  position: relative;
}
.faq details::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  background-size: 11px 1px;
}
.faq details:last-of-type { border-bottom: 1px solid transparent; }
.faq details:last-of-type::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  background-size: 11px 1px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 2.5rem 1.125rem 0;
  font-size: var(--t-17);
  font-weight: 600;
  line-height: 1.4;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: .5rem;
  top: 1.5rem;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--thread-red);
  border-bottom: 1.5px solid var(--thread-red);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq details > div {
  padding: 0 1rem 1.375rem 0;
  font-size: var(--t-15);
  line-height: 1.65;
  color: var(--stitch-ink);
  max-width: 62ch;
}
.faq details > div a { color: var(--red-ink); }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.contact__list { display: grid; gap: 1.25rem; }
.contact__item dt {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stitch);
  margin-bottom: .25rem;
}
.contact__item dd { margin: 0; font-size: var(--t-17); }
.contact__item dd a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact__item dd a:hover { border-bottom-color: var(--thread-red); }
.contact__item .mono { font-size: var(--t-17); }

.map {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .18);
}
.map img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-700); }
.map__pin {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .875rem 1rem;
  background: rgba(27, 31, 36, .9);
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Patička */
.footer {
  background: var(--steel-900);
  color: var(--stitch);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(139, 148, 160, .2);
}
.footer__grid {
  display: grid;
  gap: 1.5rem;
  font-size: var(--t-13);
}
.footer a { color: var(--steel-050); text-decoration: none; }
.footer a:hover { color: var(--thread-gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer__legal { font-family: var(--font-mono); line-height: 1.7; }

/* ==========================================================================
   13  MODAL POPTÁVKY
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(27, 31, 36, .7);
  backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }

.modal__box {
  width: min(46rem, 100%);
  background: var(--steel-050);
  border-radius: var(--r-card);
  margin-block: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(27, 31, 36, .08);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--steel-900);
  color: var(--steel-050);
}
.modal__head h2 { font-size: var(--t-21); margin: 0 0 .25rem; }
.modal__head p { font-size: var(--t-13); color: var(--stitch); margin: 0; }
.modal__close {
  margin-left: auto;
  flex: none;
  width: 2.25rem; height: 2.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-input);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0;
}
.modal__close:hover { background: rgba(255,255,255,.12); }

.recap {
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid rgba(139, 148, 160, .35);
}
.recap__title {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stitch-ink);
  margin: 0 0 .625rem;
}
.recap__list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3125rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--t-13);
}
.recap__list dt { color: var(--stitch-ink); }
.recap__list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.recap__total { font-weight: 500; font-size: var(--t-15); }
.recap__total dd { color: var(--red-ink); }

.form { padding: 1.25rem; display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.f { display: block; }
.f > label {
  display: block;
  font-size: var(--t-13);
  font-weight: 600;
  margin-bottom: .3125rem;
}
.f .req { color: var(--red-ink); }
.f input, .f textarea {
  font-family: var(--font-body);
  font-size: var(--t-15);
}
.f textarea {
  font-family: var(--font-mono);
  font-size: var(--t-13);
  line-height: 1.55;
  resize: vertical;
  min-height: 17rem;
}
.f__err {
  display: none;
  font-size: var(--t-13);
  color: var(--red-ink);
  margin-top: .3125rem;
  line-height: 1.4;
}
.f.is-invalid input, .f.is-invalid textarea { border-color: var(--thread-red); }
.f.is-invalid .f__err { display: block; }

/* Drag & drop zóna */
.drop {
  border: 1.5px dashed var(--stitch);
  border-radius: var(--r-input);
  padding: 1.25rem;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.drop:hover, .drop.is-over { border-color: var(--thread-red); background: rgba(224, 49, 39, .04); }
.drop__main { font-size: var(--t-15); font-weight: 500; display: block; }
.drop__hint { font-family: var(--font-mono); font-size: 12px; color: var(--stitch-ink); display: block; margin-top: .25rem; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__file {
  display: none;
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: var(--t-13);
  color: var(--thread-teal);
}
.drop.has-file .drop__file { display: block; }

/* Souhlas */
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--t-13); line-height: 1.5; }
.consent input { margin: .1875rem 0 0; accent-color: var(--thread-red); width: 1.125rem; height: 1.125rem; flex: none; }
.consent a { color: var(--red-ink); }
.consent.is-invalid { color: var(--red-ink); }

/* Honeypot — mimo obrazovku, ne display:none (boti display:none ignorují) */
.botcheck {
  position: absolute !important;
  left: -5000px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: var(--t-13);
  line-height: 1.5;
  color: var(--red-ink);
  min-height: 1px;
}
.form__status[hidden] { display: none; }

/* Potvrzovací obrazovka */
.done { padding: 3rem 1.5rem; text-align: center; }
.done__check { margin: 0 auto 1.5rem; }
.done h2 { font-size: var(--t-28); margin-bottom: .5rem; }
.done p { color: var(--stitch-ink); max-width: 34rem; margin-inline: auto; }
.done__id {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--t-15);
  background: var(--paper);
  border: 1px solid var(--stitch);
  border-radius: var(--r-input);
  padding: .5rem .875rem;
  letter-spacing: .04em;
}

/* Animace stehového checku */
.done__check path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sew .6s cubic-bezier(.65, 0, .35, 1) .1s forwards;
}
@keyframes sew { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .done__check path { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   14  COOKIE LIŠTA
   ========================================================================== */

.cookies {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 110;
  background: var(--steel-900);
  color: var(--steel-050);
  border-radius: var(--r-card);
  padding: 1.125rem;
  max-width: 30rem;
  box-shadow: 0 1px 3px rgba(27, 31, 36, .08);
}
.cookies[hidden] { display: none; }
.cookies p { font-size: var(--t-13); line-height: 1.55; color: #C7CDD5; }
.cookies a { color: var(--thread-gold); }
.cookies__actions { display: flex; gap: .5rem; margin-top: 1rem; }
/* Odmítnutí musí být stejně viditelné jako souhlas — žádný dark pattern */
.cookies__actions .btn { flex: 1; padding: .75rem 1rem; }
.cookies__actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* Když je viditelná spodní lišta na mobilu, posuň cookies nad ni */
body.has-dock .cookies { bottom: 5rem; }

/* ==========================================================================
   15  RESPONZIVITA
   ========================================================================== */

@media (min-width: 480px) {
  .grid { gap: .625rem; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --pad-section: 6.5rem; }

  /* Obsah odsazený od stehové linky. Sekce zůstávají fullbleed —
     tmavé pozadí jde až k okraji viewportu, jen text je odsazený.
     Musí být totožné s kritickým CSS v <head>, jinak vznikne CLS. */
  .wrap { width: min(100% - 3rem - var(--rail), var(--wrap)); margin-left: max(calc(var(--rail) + 1.5rem), calc((100% - var(--wrap) + var(--rail)) / 2)); margin-right: max(1.5rem, calc((100% - var(--wrap) - var(--rail)) / 2)); }

  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile--wide { grid-column: span 2; }

  .shop__grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .backs { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
  .opts--4 { grid-template-columns: repeat(4, 1fr); }

  .calc__controls { grid-template-columns: 1fr 1fr; }
  .field--full, .preview, .field--dims { grid-column: 1 / -1; }

  .modal__box { margin-block: 2.5rem; }
  .form { padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__phone { display: inline-block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .mobilenav { display: none !important; }

  .calc__layout { grid-template-columns: minmax(0, 1fr) 24rem; gap: 2rem; }
  .calc__aside { position: sticky; top: 5.5rem; }
  .calc__controls { grid-template-columns: 1fr 1fr; }

  .grid { grid-template-columns: repeat(4, 1fr); }

  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1440px) {
  :root { --wrap: 1360px; --rail: 6rem; }
  .calc__layout { grid-template-columns: minmax(0, 1fr) 26rem; gap: 2.5rem; }
  .grid { gap: .75rem; }
}

/* Tisk — ceník a rozpad se musí dát vytisknout */
@media print {
  .header, .dockbar, .stitchline, .cookies, .hero__media, .filters, .modal, .lightbox { display: none !important; }
  body { background: #fff; }
  .panel { break-inside: avoid; }
}
