/* ============================================================
   Trdlokafe - design tokens
   Zdroj: Trdlokafe Brand Styleguide 2025 (design system 2787bc96)
   ============================================================ */
:root {
  /* Brand paleta */
  --tk-yellow: #FAD84C;
  --tk-yellow-bright: #FFEB5A;
  --tk-yellow-soft: #FFEC94;
  --tk-yellow-pale: #FFEDA8;
  --tk-blue: #D3E5F8;
  --tk-pink: #FBDFEF;
  --tk-brown: #A96F50;
  --tk-cream: #FDF9E5;
  --tk-black: #000000;
  --tk-white: #FFFFFF;

  /* Neutralni rada */
  --tk-ink-900: #000000;
  --tk-ink-800: #1a1a17;
  --tk-ink-700: #33322c;
  --tk-ink-500: #6b6a60;
  --tk-ink-300: #c9c7ba;
  --tk-ink-200: #e7e4d6;
  --tk-ink-100: #f3f0e3;

  /* Gradienty */
  --tk-grad-sunrise: linear-gradient(180deg, var(--tk-yellow-bright) 0%, var(--tk-pink) 100%);
  --tk-grad-daylight: linear-gradient(180deg, var(--tk-yellow-bright) 0%, var(--tk-blue) 100%);

  /* Semanticke aliasy */
  --color-brand: var(--tk-yellow);
  --color-brand-hover: #f2cb32;
  --color-bg: var(--tk-cream);
  --color-surface: var(--tk-white);
  --color-surface-sunk: var(--tk-ink-100);
  --color-surface-invert: var(--tk-black);
  --color-text: var(--tk-black);
  --color-text-muted: var(--tk-ink-500);
  --color-text-subtle: var(--tk-ink-300);
  --color-text-invert: var(--tk-white);
  --color-text-on-brand: var(--tk-black);
  --color-border: var(--tk-ink-200);
  --color-border-strong: var(--tk-black);
  --color-accent-soft: var(--tk-pink);
  --color-danger: #c9453b;
  --color-danger-text: #a3322a;   /* tmavsi odstin pro text na kremove */

  /* Typografie */
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --ls-tight: -0.03em;
  --ls-snug: -0.015em;
  --ls-wide: 0.04em;
  --ls-caps: 0.08em;

  /* Rozestupy a rozmery */
  --space-2: 0.5rem;
  --container-max: 1200px;
  --control-sm: 34px;
  --control-md: 44px;
  --control-lg: 54px;

  /* Radiusy */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Stiny */
  --shadow-sm: 0 2px 6px rgba(40, 30, 0, 0.08);
  --shadow-md: 0 6px 18px rgba(40, 30, 0, 0.10);
  --shadow-lg: 0 16px 40px rgba(40, 30, 0, 0.14);
  --shadow-brand: 0 10px 30px rgba(250, 215, 77, 0.45);
  --shadow-focus: 0 0 0 3px rgba(0, 0, 0, 0.85);

  /* Pohyb */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   Zaklad
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* Atribut hidden musi prebit i pravidla s display: flex/grid. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--fw-regular) var(--fs-md)/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  /* Musi byt clip, ne hidden: hidden dela z body scroll kontejner a plynule
     rolovani na kotvy (#pobocky a spol.) pak nema kam skocit. */
  overflow-x: clip;
}

a { color: #000000; }
a:hover { color: var(--tk-brown); }
/* height: auto zabrani tomu, aby atribut height u <img> prebil CSS rozvrzeni.
   Pravidla nize, ktera vysku nastavuji zamerne, jsou specifictejsi a vyhraji. */
img { max-width: 100%; height: auto; }
::selection { background: var(--tk-yellow); color: #000; }

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Sticky hlavicka je ~73 px vysoka, aby kotvy nekoncily pod ni. */
:target, [id] { scroll-margin-top: 92px; }

.section { padding: 104px 0; }
.section--tight { padding: 80px 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Komponenty design systemu
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 22px;
  font: var(--fw-semibold) var(--fs-md)/1 var(--font-sans);
  letter-spacing: var(--ls-snug);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-bounce),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn--sm { height: var(--control-sm); padding: 0 16px; font-size: var(--fs-sm); }
.btn--lg { height: var(--control-lg); padding: 0 30px; font-size: var(--fs-lg); }
.btn--full { width: 100%; }
.btn:active { transform: scale(0.96); }

.btn--primary { background: var(--color-brand); color: var(--color-text-on-brand); }
.btn--primary:hover { background: var(--color-brand-hover); box-shadow: var(--shadow-brand); color: var(--color-text-on-brand); }

.btn--secondary { background: var(--color-surface-invert); color: var(--color-text-invert); border-color: var(--color-surface-invert); }
.btn--secondary:hover { background: var(--tk-ink-800); color: var(--color-text-invert); }

.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn--outline:hover { background: var(--color-surface-sunk); color: var(--color-text); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-md);
  height: var(--control-md);
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--color-surface-sunk);
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) var(--ease-out);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--brand { background: var(--color-brand); color: var(--color-text-on-brand); }
.icon-btn--brand:hover { background: var(--color-brand-hover); }
.icon-btn--outline { background: transparent; border-color: var(--color-border-strong); }
.icon-btn--outline:hover { background: var(--color-border); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font: var(--fw-bold) var(--fs-xs)/1 var(--font-sans);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--sm { padding: 3px 9px; font-size: var(--fs-2xs); }
.badge--brand { background: var(--color-brand); color: #000; }
.badge--black { background: #000; color: #fff; }

.field { width: 100%; }
.field__label {
  display: block;
  font: var(--fw-semibold) var(--fs-sm)/1.2 var(--font-sans);
  margin-bottom: var(--space-2);
}
.field__box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 14px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field__box:focus-within { border-color: var(--color-border-strong); box-shadow: var(--shadow-focus); }
.field__box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: var(--fw-regular) var(--fs-md)/1 var(--font-sans);
  color: var(--color-text);
}
.field--error .field__box { border-color: var(--color-danger); box-shadow: none; }
.field__error {
  font: var(--fw-regular) var(--fs-sm)/1.5 var(--font-sans);
  margin-top: var(--space-2);
  color: var(--color-danger-text);
}

/* ============================================================
   Hlavicka
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 229, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 34px; width: auto; display: block; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: var(--fw-semibold);
  font-size: 15px;
}
.nav-desktop a { text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions--mobile { display: none; }

.nav-mobile {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 10px 20px 22px;
  display: flex;
  flex-direction: column;
}
.nav-mobile a.nav-mobile__link {
  padding: 14px 6px;
  font-weight: var(--fw-bold);
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile__actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--tk-grad-sunrise);
  overflow: hidden;
}
.hero__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(52px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: var(--fw-medium);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__gallery { display: flex; gap: 24px; margin-top: 32px; align-items: flex-end; }
.hero__gallery img {
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid #000000;
  box-shadow: var(--shadow-lg);
  background: var(--tk-cream);
  animation: tk-float 6.5s ease-in-out infinite;
}
.hero__gallery img:nth-child(1) { width: 300px; height: 240px; transform: rotate(-4deg); --float-rot: -4deg; animation-duration: 7.2s; }
.hero__gallery img:nth-child(2) { width: 260px; height: 280px; transform: rotate(2deg); --float-rot: 2deg; animation-delay: 0.9s; }
.hero__gallery img:nth-child(3) { width: 260px; height: 230px; transform: rotate(-2deg); --float-rot: -2deg; animation-delay: 1.7s; animation-duration: 6.1s; }

/* ============================================================
   Press pas
   ============================================================ */
.press { background: #000000; }
.press__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 44px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.press__label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--tk-yellow);
}
.press__link {
  display: inline-flex;
  opacity: 0.45;
  transition: opacity var(--dur-base) var(--ease-out);
}
.press__link:hover { opacity: 1; }
.press__link img {
  /* Sjednocena opticka vyska, aby pas drzel jednu linku. */
  width: auto;
  height: 22px;
  filter: grayscale(1);
}
.press__link:hover img { filter: none; }

/* ============================================================
   Statistiky
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}
.stats__value {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(44px, 4.5vw, 64px);
  letter-spacing: var(--ls-tight);
}
.stats__label { margin-top: 6px; font-weight: var(--fw-semibold); color: var(--color-text-muted); }

/* ============================================================
   Nadpisy sekci
   ============================================================ */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.section-head--center { align-items: center; text-align: center; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.section-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--color-text-muted); }

/* ============================================================
   Pribeh
   ============================================================ */
.story { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.story__lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--tk-ink-700); max-width: 520px; }

.timeline { display: flex; flex-direction: column; margin-top: 40px; }
.timeline__item { display: grid; grid-template-columns: 20px 1fr; gap: 18px; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tk-yellow); border: 2px solid #000000; flex-shrink: 0;
}
.timeline__item:last-child .timeline__dot { background: #000000; }
.timeline__line { width: 2px; flex: 1; background: var(--color-border); }
.timeline__body { padding-bottom: 26px; }
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__body strong { font-size: 17px; }
.timeline__body p { margin: 4px 0 0; color: var(--color-text-muted); line-height: 1.55; }
.timeline__year {
  display: inline-block;
  background: var(--tk-yellow);
  border: 2px solid #000;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-right: 6px;
  font-weight: var(--fw-black);
  font-size: 13.5px;
  letter-spacing: 0;
}

/* Kresleni casove osy pri scrollu - jen jako vylepseni, kde to prohlizec umi. */
@supports (animation-timeline: view()) {
  .timeline__line {
    transform-origin: top center;
    animation: tl-draw linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .timeline__dot {
    animation: tl-pop linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes tl-draw {
  from { transform: scaleY(0); }
}
@keyframes tl-pop {
  from { transform: scale(0); opacity: 0; }
}

.story__media { display: flex; flex-direction: column; gap: 24px; }
.story__photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  background: var(--tk-cream);
  display: block;
}
.quote {
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 2px solid #000000;
}
.quote p {
  margin: 0;
  font-size: 21px;
  font-weight: var(--fw-semibold);
  line-height: 1.45;
  letter-spacing: var(--ls-snug);
}
.quote__author { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-weight: var(--fw-bold); }
.quote__author img { height: 28px; width: auto; }

/* ============================================================
   Produkty
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.product {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 14px 14px 24px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-slow) var(--ease-bounce),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.product:hover { transform: translateY(-8px) rotate(-1deg); border-color: #000000; box-shadow: var(--shadow-lg); }
.product:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
.product__badge { position: absolute; top: 26px; left: 26px; z-index: 2; }
.product img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  background: var(--tk-cream);
}
.product__body { padding: 20px 10px 0; display: flex; flex-direction: column; gap: 8px; }
.product__body h3 { margin: 0; font-weight: var(--fw-black); font-size: 22px; letter-spacing: var(--ls-snug); }
.product__body p { margin: 0; color: var(--color-text-muted); line-height: 1.5; }
.product__price { font-weight: var(--fw-black); font-size: 17px; }

/* ============================================================
   Pobocky
   ============================================================ */
.locations { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.locations__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.locations__map {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  overflow: hidden;
}
/* Na desktopu mapa drzi krok se scrollem panelu vedle sebe. */
@media (min-width: 901px) {
  .locations__map { position: sticky; top: 92px; }
}
.locations__side { display: flex; flex-direction: column; gap: 28px; }
.chips__title {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chips__hint { font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none;
  font-family: inherit;
  color: inherit;
  background: var(--tk-yellow);
  border: 2px solid #000000;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: var(--fw-bold);
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-base) var(--ease-out);
}
.chip:hover,
.chip:focus-visible,
.chip[aria-pressed="true"] { transform: translateY(-2px); background: var(--tk-yellow-bright); }

/* Po vyberu mesta zustane jen aktivni chip, ostatni se sbali pod "+ N dalsich mest"
   a vyskoci pri najeti/fokusu. */
.chips--collapsed .chip { display: none; }
.chips--collapsed .chip[aria-pressed="true"] { display: inline-block; order: -1; }
.chips--collapsed.chips--peek .chip { display: inline-block; animation: chip-in var(--dur-base) var(--ease-out) both; }
.chips-more {
  display: none; appearance: none; cursor: pointer;
  font-family: inherit; color: var(--color-text-muted);
  background: transparent; border: 2px dashed var(--tk-ink-300);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-weight: var(--fw-bold); font-size: 13.5px; order: 99;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chips--collapsed .chips-more { display: inline-block; }
.chips-more:hover, .chips-more:focus-visible { color: var(--color-text); border-color: var(--tk-black); }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-card { background: #000000; color: var(--color-text-invert); border-radius: var(--radius-lg); padding: 32px; }
.cta-card h3 { margin: 0 0 8px; font-weight: var(--fw-black); font-size: 24px; letter-spacing: var(--ls-snug); color: var(--tk-yellow); }
.cta-card p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.75); line-height: 1.55; }

/* Prohlizec pobocek (mapa + chipy + karty) */
branch-map { display: block; height: 600px; background: var(--color-bg); }

/* Odznak zeme (uvodni odzoomovany pohled az na Tenerife). */
.map-country {
  appearance: none; cursor: pointer; border: none;
  background: var(--tk-black); color: var(--tk-white);
  font: var(--fw-black) 14px/1 var(--font-sans);
  padding: 10px 18px; border-radius: var(--radius-pill); white-space: nowrap;
  box-shadow: 0 0 0 3px var(--tk-yellow), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.map-country:hover, .map-country:focus-visible { transform: scale(1.08); }
.map-country:focus-visible { outline: 2px solid var(--tk-black); outline-offset: 4px; }

/* City odznak: pocet pobocek; jmeno mesta dodava sama mapa, pill jen pri najeti. */
.map-city {
  appearance: none; border: none; cursor: pointer; position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--tk-black); color: var(--tk-white);
  font: var(--fw-black) 15px/1 var(--font-sans);
  box-shadow: 0 0 0 3px var(--tk-yellow), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.map-city:hover, .map-city:focus-visible { transform: scale(1.12); }
.map-city:focus-visible { outline: 2px solid var(--tk-black); outline-offset: 4px; }
.map-city__label {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%);
  background: var(--tk-black); color: var(--tk-white);
  font: var(--fw-bold) 12.5px/1 var(--font-sans);
  padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out);
}
.map-city:hover .map-city__label, .map-city:focus-visible .map-city__label { opacity: 1; }

/* Pin pobocky: trdelnikovy krouzek (zluty prstenec s dirou). */
.map-pin {
  appearance: none; cursor: pointer; position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tk-yellow); border: 3px solid var(--tk-black);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.map-pin::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 8px; height: 8px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--tk-cream); border: 2px solid var(--tk-black);
}
.map-pin:hover, .map-pin:focus-visible { transform: scale(1.22); z-index: 3; }
.map-pin:focus-visible { outline: 2px solid var(--tk-black); outline-offset: 4px; }
.map-pin--closed { background: var(--tk-ink-300); border-color: var(--tk-ink-500); }
.map-pin--closed::after { border-color: var(--tk-ink-500); }
.map-pin__label {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  background: var(--tk-black); color: var(--tk-white);
  font: var(--fw-bold) 12.5px/1 var(--font-sans);
  padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-out);
}
.map-pin--closed .map-pin__label { background: var(--tk-ink-500); }
.map-pin:hover .map-pin__label, .map-pin:focus-visible .map-pin__label { opacity: 1; }

/* Inset odznak Tenerife: samostatny ostrov mimo hlavni vyrez, drzi se v rohu mapy. */
.map-inset {
  position: absolute;
  left: 14px;
  bottom: 36px;
  z-index: 5;
  appearance: none;
  cursor: pointer;
  border: none;
  text-align: left;
  background: var(--tk-black);
  color: var(--tk-white);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 0 0 3px var(--tk-yellow), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-fast) var(--ease-bounce);
}
.map-inset:hover, .map-inset:focus-visible { transform: scale(1.06); }
.map-inset:focus-visible { outline: 2px solid var(--tk-black); outline-offset: 4px; }
.map-inset__title { display: block; font: var(--fw-black) 14px/1.2 var(--font-sans); }
.map-inset__sub { display: block; margin-top: 2px; font: var(--fw-semibold) 11.5px/1.3 var(--font-sans); color: rgba(255, 255, 255, 0.7); }

/* MapLibre chrome sladeny s brandem */
branch-map .maplibregl-ctrl-group {
  border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--tk-black); overflow: hidden;
}
branch-map .maplibregl-ctrl-group button { background: var(--tk-cream); width: 34px; height: 34px; }
branch-map .maplibregl-ctrl-group button:hover { background: var(--tk-yellow-bright); }
branch-map .maplibregl-ctrl-attrib {
  font: 10.5px/1.4 var(--font-sans); background: rgba(253, 249, 229, 0.85);
  border-radius: 10px 0 0 0;
}
branch-map .maplibregl-ctrl-attrib a { color: var(--tk-ink-500); }
.map-fallback { padding: 24px; font: var(--fw-semibold) 14px/1.5 var(--font-sans); color: var(--color-text-muted); }
.locations__browser { display: flex; flex-direction: column; }
.branch-panel { margin-top: 18px; display: none; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.branch-panel.is-open { display: block; animation: panel-in 0.4s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.branch-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.branch-panel__bar span { font-size: 14px; color: var(--color-text); }
.branch-panel__bar strong { font-weight: var(--fw-black); }
.branch-panel__back {
  appearance: none; border: 2px solid #000; background: var(--color-surface);
  border-radius: var(--radius-pill); padding: 5px 14px; font: var(--fw-bold) 12.5px/1 var(--font-sans);
  cursor: pointer; color: inherit; flex: none;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-bounce);
}
.branch-panel__back:hover, .branch-panel__back:focus-visible { background: var(--tk-yellow-bright); transform: translateY(-1px); }

.branch-card {
  border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 15px 18px; margin-bottom: 12px; background: var(--color-surface);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.branch-card:last-child { margin-bottom: 0; }
.branch-card.is-hi { border-color: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.branch-card--closed { background: var(--color-surface-sunk); }
.branch-card__head { display: flex; align-items: center; gap: 9px; }
.branch-card__head h4 { margin: 0; font-size: 16px; font-weight: var(--fw-black); letter-spacing: var(--ls-snug); }
.branch-card__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--tk-yellow); border: 2px solid #000; }
.branch-card__dot--closed { background: var(--tk-ink-300); border-color: var(--tk-ink-300); }
.branch-card__addr { margin: 8px 0 0; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.45; }
.branch-card__hours { margin: 6px 0 0; font-size: 13.5px; font-weight: var(--fw-semibold); }
.branch-card__hours--closed { color: var(--color-text-muted); font-weight: var(--fw-bold); }
/* Otevreno zustava vychozi cerne (pusobi aktivne), zavreno zesedne. */
.branch-card__hours.is-closed-now { color: var(--color-text-muted); }
.branch-card__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.branch-card__nav a {
  font-size: 12.5px; font-weight: var(--fw-bold); text-decoration: none;
  padding: 6px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-border-strong);
  color: var(--color-text); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.branch-card__nav a:first-child { background: var(--tk-yellow); }
.branch-card__nav a:hover, .branch-card__nav a:focus-visible { background: #000; color: #fff; }

/* ============================================================
   Fransiza
   ============================================================ */
.franchise { background: #000000; color: var(--color-text-invert); }
.franchise .section-title { color: var(--color-text-invert); max-width: 760px; }
.franchise__lead { margin: 0; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); max-width: 620px; }
.franchise__lead strong { color: var(--tk-yellow); }
.franchise__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.franchise__col { display: flex; flex-direction: column; gap: 48px; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tk-yellow); color: #000000;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.perk strong { font-size: 17px; display: block; margin-bottom: 4px; }
.perk span.perk__text { color: rgba(255, 255, 255, 0.65); line-height: 1.5; display: block; }

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.step:last-child { border-bottom: none; }
.step__num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 32px;
  color: var(--tk-yellow);
  letter-spacing: var(--ls-tight);
}
.step__body { padding-top: 6px; }
.step__body strong { font-size: 17px; }
.step__body span { color: rgba(255, 255, 255, 0.65); display: block; line-height: 1.5; }

.form-card {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-xl);
  padding: 30px 32px 32px;
  box-shadow: var(--shadow-brand);
}
.form-card h3 { margin: 0; font-weight: var(--fw-black); font-size: 26px; letter-spacing: var(--ls-snug); }
.form-card form { display: flex; flex-direction: column; gap: 15px; }
.form-card__note { margin: 0; font-size: 13px; color: var(--color-text-muted); text-align: center; }
.form-status {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px; padding: 24px 0;
}
.form-status__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tk-yellow); border: 2px solid #000000;
  display: inline-flex; align-items: center; justify-content: center;
}
.form-status h3 { margin: 0; }
.form-status p { margin: 0; color: var(--color-text-muted); line-height: 1.55; }
.form-error { margin: 0; font-size: 14px; color: var(--color-danger); text-align: center; font-weight: var(--fw-semibold); }

/* ============================================================
   Instagram
   ============================================================ */
.instagram { background: var(--color-accent-soft); border-bottom: 1px solid var(--color-border); }
.instagram__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}
.instagram__head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(34px, 3.8vw, 52px);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
}
.instagram__head p { margin: 0; font-size: 18px; font-weight: var(--fw-semibold); }
/* Pevnych 6 sloupcu, aby vsech sest dlazdic drzelo jednu radu (auto-fit je pri
   sirce kontejneru rozhazoval na 5 + 1). Sest se navic deli beze zbytku i tremi
   a dvema sloupci na uzsich displejich. */
.instagram__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.instagram__grid a:nth-child(6) img { transform: rotate(1deg); }
.instagram__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #000000;
  border-radius: 20px;
  display: block;
  background: var(--tk-cream);
}
.instagram__grid a:nth-child(1) img { transform: rotate(-2deg); }
.instagram__grid a:nth-child(2) img { transform: rotate(1.5deg); }
.instagram__grid a:nth-child(3) img { transform: rotate(-1deg); }
.instagram__grid a:nth-child(4) img { transform: rotate(2deg); }
.instagram__grid a:nth-child(5) img { transform: rotate(-1.5deg); }

/* ============================================================
   Paticka
   ============================================================ */
.site-footer { background: #000000; color: var(--color-text-invert); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand img {
  height: 38px;
  width: auto;
  /* Ve flex sloupci by se polozka jinak roztahla na sirku kontejneru. */
  align-self: flex-start;
}
.site-footer__brand p { margin: 0; color: rgba(255, 255, 255, 0.6); line-height: 1.6; max-width: 280px; }
.site-footer h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--tk-yellow);
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; color: rgba(255, 255, 255, 0.75); }
.site-footer__links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer__links a:hover { color: var(--tk-yellow); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer__bottom div {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Animace
   ============================================================ */
@keyframes tk-float {
  0%, 100% { transform: rotate(var(--float-rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--float-rot, 0deg)) translateY(-10px); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responzivita
   ============================================================ */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-actions--desktop { display: none; }
  .header-actions--mobile { display: flex; }
  .story__grid,
  .locations__grid,
  .franchise__grid,
  .perks { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section, .section--tight { padding: 68px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  .hero__inner { padding-left: 20px; padding-right: 20px; }
  .hero__gallery { flex-wrap: wrap; justify-content: center; }
  .hero__gallery img { width: min(280px, 100%) !important; }
  .franchise__grid { gap: 48px; }
  .story__grid { gap: 48px; }
  /* Sest sloupcu by na tabletu bylo prilis nahustene, tri drzi ctverce peknych. */
  .instagram__grid { grid-template-columns: repeat(3, 1fr); }
  branch-map { height: 440px; }
  /* At odznak Tenerife nekoliduje s atribuci mapy dole. */
  .map-inset { bottom: 30px; }
}

@media (max-width: 720px) {
  /* Na uzkych displejich je z pasu mrizka pod popiskem, ne rozsypana rada.
     Pate logo se roztahne pres oba sloupce, aby nezustalo osamocene vlevo. */
  .press__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; justify-items: center; }
  .press__label { grid-column: 1 / -1; }
  .press__link:last-child { grid-column: 1 / -1; }
  .press__link img { height: 20px; }

  /* Bez tohoto by se sest ctvercovych dlazdic na 390 px vyskladalo do jednoho
     sloupce a sekce by byla vysoka pres pet obrazovek. */
  .instagram__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .section, .section--tight { padding: 56px 0; }
  .hero__inner { padding-top: 44px; padding-bottom: 52px; }
  .form-card { padding: 28px 22px; }
  .quote { padding: 26px 24px; }
  .cta-card { padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  /* Scroll-driven animace ignoruji vyse uvedeny kill pres animation-duration,
     proto explicitne vypnout - staticky stav = plne vykreslena linka. */
  .timeline__line, .timeline__dot { animation: none; }
}
