/* --------------------------------------------------------------- písmo --
   Archivo hostujeme u sebe, ne z Google Fonts. Načítání z cizí CDN posílá
   IP adresu každého návštěvníka Googlu, což je v EU problém, a navíc to
   stojí jedno DNS spojení navíc. Variabilní řez, osy šířka a tloušťka.   */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Bike Unit - Blansko
   Design system: tmavá stránka, jeden akcent, jedna rodina písma (Archivo).
   Radius: 4px na všem (karty, obrázky, tlačítka, inputy). Bez výjimek.
   ========================================================================== */

:root {
  /* Povrchy */
  --ink:        #0b0c0d;
  --ink-2:      #131517;
  --ink-3:      #1b1e21;

  /* Text */
  --paper:      #f2f2f0;
  --paper-dim:  #a3a7aa;

  /* Akcent - jediný na celé stránce */
  --accent:     #c2501f;
  --accent-ink: #0b0c0d;

  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.06);

  --radius:     4px;
  --shell:      1280px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section:    clamp(5rem, 11vw, 9.5rem);

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------- typografie -- */

h1, h2, h3, .display {
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.35rem + 4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--paper-dim);
  max-width: 56ch;
  line-height: 1.55;
}
.lede__accent {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--paper);
}

.body-dim { color: var(--paper-dim); max-width: 62ch; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

/* ------------------------------------------------------------- rozvrh --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* Střídání dvou odstínů drží rytmus stránky, aby scroll nesplýval.
   Pořadí: nabídka ink, čísla ink-2, foto pás, o nás ink, galerie ink-2,
   výzva akcent, dotazy ink, kontakt ink-2. */
.section--alt { background: var(--ink-2); }

/* pro úzké pásy, kde by plné odsazení sekce nechalo pod obsahem díru */
.section--tight { padding-block: clamp(3rem, 6vw, 4.75rem); }

/* ------------------------------------------------------------ tlačítka -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Světlá linka nahoře a tmavý stín pod tlačítkem dělají hranu hmatatelnou.
   Není to záře, jen fyzická elevace. */
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 22px -12px rgba(0, 0, 0, 0.95);
}
.btn--primary:hover {
  background: #f4682f;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 16px 30px -14px rgba(226, 87, 31, 0.5);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.09); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(11, 12, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

/* Logo jako obrázek, vodorovně. Zdrojové PNG má tenké linky - při malé výšce
   se rozpadají do šedé kaše, tak logo drží aspoň ~30px výšky v hlavičce. */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand img { display: block; height: 30px; width: auto; }

.site-header__nav-cta {
  padding: 0.8rem 1.4rem;
  font-size: 0.86rem;
  gap: 0.5rem;
  margin-left: 0.4rem;
}

/* oddělovač mezi podstránkami a kotvami v menu */
.nav__sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
}
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .nav__sep { display: none; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-top: 72px !important;
  #object-position: center 50%;
}
/* Domovská hero fotka je na výšku (skupina stojí nahoře, dole jen pěšina),
   takže potřebuje jiný svislý ořez než foto na podstránkách. */
.hero:not(.hero--page) .hero__media img {
  object-position: center 8%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 12, 13, 0.96) 4%, rgba(11, 12, 13, 0.55) 42%, rgba(11, 12, 13, 0.35) 70%),
    linear-gradient(to right, rgba(11, 12, 13, 0.7), rgba(11, 12, 13, 0.1) 65%);
}

.hero__inner { padding-block: 8rem 5.5rem; width: 100%; }
.hero__copy { max-width: 54rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { max-width: 40ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

/* kompaktní hero na podstránkách */
.hero--page { min-height: 76vh; }
.hero--page .hero__inner { padding-block: 7rem 4rem; }

.crumbs {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 1.25rem;
}
.crumbs a { text-decoration: none; color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------- nabídka (bento 1+2) -- */

.offer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.offer > a:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 34rem; }
.offer > a:nth-child(2),
.offer > a:nth-child(3) { grid-column: span 5; min-height: 16.4rem; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}
.tile:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-4px); }

.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.85);
}
.tile:hover img { transform: scale(1.05); filter: saturate(1); }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 12, 13, 0.94) 8%, rgba(11, 12, 13, 0.5) 48%, rgba(11, 12, 13, 0.18));
}

.tile__meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.tile h3 { margin-bottom: 0.65rem; }
.tile p { color: var(--paper-dim); max-width: 34ch; font-size: 0.98rem; }

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tile__more .arrow { transition: transform 0.3s var(--ease); }
.tile:hover .tile__more .arrow { transform: translateX(4px); }

/* dvojice odkazů na konci detailních stránek */
.offer--pair { margin-top: 0; }
.offer--pair > a:nth-child(1),
.offer--pair > a:nth-child(2) { grid-column: span 6; grid-row: auto; min-height: 19rem; }

@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
  .offer > a:nth-child(1) { grid-column: 1 / -1; grid-row: auto; min-height: 24rem; }
  .offer > a:nth-child(2),
  .offer > a:nth-child(3) { grid-column: 1 / -1; min-height: 19rem; }
  .offer--pair > a:nth-child(1) { min-height: 19rem; }
}

/* -------------------------------------------------------------- fakta -- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.facts > div {
  padding-right: 1.5rem;
  border-right: 1px solid var(--line-soft);
}
.facts > div:last-child { border-right: 0; }

.facts dt {
  font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.facts dd {
  margin: 0.85rem 0 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
  max-width: 18ch;
}

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .facts > div:nth-child(2n) { border-right: 0; }
}

/* ------------------------------------------------- recenze rodičů ----- */
/* Sekce je zatím zakomentovaná v index.html. Odkomentovat, až budou
   k dispozici skutečné reakce rodičů. Styl počítá se dvěma až třemi. */

.quotes {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
  align-items: start;
}
.quotes figure:nth-child(2) { margin-top: clamp(1rem, 3vw, 2.5rem); }

.quotes figure {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.quotes blockquote {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
}
.quotes figcaption {
  margin-top: 1.25rem;
  color: var(--paper-dim);
  font-size: 0.9rem;
}
.quotes figcaption strong { display: block; color: var(--paper); font-weight: 600; }

@media (max-width: 780px) {
  .quotes { grid-template-columns: 1fr; }
  .quotes figure:nth-child(2) { margin-top: 0; }
}

/* --------------------------------------------------- výzva k akci ----- */
/* Jediné místo na stránce, kde akcent dostane celou plochu. Zároveň
   rozbíjí dlouhý scroll mezi galerií a dotazy. */

.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.cta-band h2 {
  color: var(--accent-ink);
  max-width: 22ch;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem);
}
.cta-band p {
  color: rgba(11, 12, 13, 0.78);
  margin-top: 0.9rem;
  max-width: 44ch;
  font-weight: 500;
}
.cta-band .btn {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.9);
}
.cta-band .btn:hover { background: #1d2124; transform: translateY(-1px); }

@media (max-width: 720px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------- drobné údaje u sekce o nás */

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.about-facts dt {
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  color: var(--accent);
  line-height: 1;
}
.about-facts dd { margin: 0.45rem 0 0; color: var(--paper-dim); font-size: 0.88rem; }

@media (max-width: 560px) {
  .about-facts { grid-template-columns: repeat(2, auto); gap: 1.5rem 2rem; }
}

/* ----------------------------------------------------- bezpečnost band -- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.band img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(11, 12, 13, 0.95) 20%, rgba(11, 12, 13, 0.7) 55%, rgba(11, 12, 13, 0.5));
}
.band__copy { max-width: 40rem; }
.band h2 { margin-bottom: 1.5rem; }

/* na úzkých displejích leží text přes celou fotku, potřebuje plný scrim */
@media (max-width: 900px) {
  .band::after {
    background: linear-gradient(to top, rgba(11, 12, 13, 0.97) 25%, rgba(11, 12, 13, 0.9) 65%, rgba(11, 12, 13, 0.82));
  }
}

.checks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}
.checks li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--paper-dim);
}
.checks svg { margin-top: 0.42rem; color: var(--accent); flex: none; }

/* -------------------------------------------------------------- o nás -- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 1.75rem; }
.split p + p { margin-top: 1.1rem; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.25rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ig-link:hover { border-color: var(--accent); background: rgba(226, 87, 31, 0.1); }
.ig-link svg { color: var(--accent); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; aspect-ratio: 3 / 2; }
}

/* ------------------------------------------------------------ galerie -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 12.5rem;
  grid-auto-flow: dense;
  gap: 0.85rem;
  margin-top: 3.25rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery figure:hover img { transform: scale(1.06); }

/* 12 fotek: velká 2x2 plus jedna dvojšířka dá přesně 16 buněk, tedy
   4 plné řady bez děr. Při změně počtu fotek to přepočítat. */
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(7) { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; }
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(7) { grid-column: span 2; }
}

/* ------------------------------------------------------------ kontakt -- */

.contact { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.contact h2 { margin-bottom: 1.25rem; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}

.contact__list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.contact__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.contact__list a:hover { color: var(--accent); }
.contact__list svg { color: var(--accent); flex: none; }
.contact__list li.plain {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--paper-dim);
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------------------------------------------------- úspěchy týmu ---- */

/* záměrně nestejné sloupce i poměry stran, ať to není řada tří shodných dlaždic */
.wins {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.85fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 3rem;
  align-items: start;
}
.wins figure { margin: 0; }
.wins .frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
.wins figure:nth-child(1) .frame { aspect-ratio: 4 / 3; }
.wins figure:nth-child(2) .frame { aspect-ratio: 3 / 2; }
.wins figure:nth-child(3) .frame { aspect-ratio: 3 / 4; }
.wins figure:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.25rem); }
.wins figure:nth-child(3) { margin-top: clamp(0.5rem, 1.5vw, 1.25rem); }
.wins img { width: 100%; height: 100%; object-fit: cover; }
/* Popisky nesou nejsilnější tvrzení na webu, tak ať se čtou jako tvrzení. */
.wins figcaption { margin-top: 1.1rem; color: var(--paper-dim); font-size: 0.95rem; }
.wins figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--paper);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .wins { grid-template-columns: 1fr; gap: 2rem; }
  .wins figure:nth-child(n) { margin-top: 0; }
  .wins figure:nth-child(n) .frame { aspect-ratio: 3 / 2; }
}

/* ------------------------------------------------------------ dotazy -- */

.faq { max-width: 56rem; margin-top: 3rem; border-top: 1px solid var(--line); }

.faq details {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.3s var(--ease);
}
.faq details:hover { background: rgba(255, 255, 255, 0.025); }
.faq details[open] { background: rgba(255, 255, 255, 0.035); }

/* otevřená otázka dostane akcentní pruh, který vyjede shora dolů */
.faq details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.faq details[open]::before { transform: scaleY(1); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { color: var(--paper); }

.faq summary .sign {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-dim);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.faq summary:hover .sign { border-color: var(--accent); color: var(--accent); }
.faq details[open] .sign {
  border-color: var(--accent);
  background: rgba(226, 87, 31, 0.14);
  color: var(--accent);
}

.faq summary .sign::before,
.faq summary .sign::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq summary .sign::after { transform: rotate(90deg); }
.faq details[open] .sign::after { transform: rotate(0deg); }

.faq details > div {
  padding: 0 clamp(1rem, 2vw, 1.5rem) 1.75rem;
  color: var(--paper-dim);
  max-width: 62ch;
}
.faq details > div p + p { margin-top: 0.8rem; }

/* plynulé rozbalení tam, kde to prohlížeč umí, jinde se prostě otevře */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }

  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
    transition-behavior: allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------------------------------------------------------- lightbox -- */

.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 13, 0.94);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(11, 12, 13, 0.9); }

.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 5vw, 4rem);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 12, 13, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lightbox button:hover { border-color: var(--paper); background: rgba(11, 12, 13, 0.9); }

.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

.gallery figure { cursor: zoom-in; }

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 620px) {
  .lightbox__prev { left: 1rem; top: auto; bottom: 1rem; transform: none; }
  .lightbox__next { right: 1rem; top: auto; bottom: 1rem; transform: none; }
}

/* ------------------------------------------------------- footer ------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.site-footer .brand img { height: 22px; opacity: 0.88; }
.site-footer p { color: var(--paper-dim); font-size: 0.85rem; }

.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper-dim);
  font-size: 0.85rem;
  transition: color 0.25s var(--ease);
}
/* Monogram má natvrdo tmavé pozadí, ne průhledné. Contrast srazí to pozadí
   na čistou černou a lighten pak černou proti patičce zahodí, takže zůstane
   jen samotné PH bez čtverce okolo. */
.credit img {
  height: 36px;
  width: auto;
  filter: contrast(1.45) brightness(1.08);
  mix-blend-mode: lighten;
  opacity: 0.92;
  transition: opacity 0.25s var(--ease);
}
.credit b { font-weight: 600; color: var(--paper); }
.credit:hover { color: var(--paper); }
.credit:hover b { text-decoration: underline; text-underline-offset: 3px; }
.credit:hover img { opacity: 1; }

/* ================================================== stránky detailů ==== */

.detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 940px) { .detail { grid-template-columns: 1fr; } }

.prose h2 { margin-bottom: 1.35rem; }
.prose h3 { margin: 3rem 0 1rem; }
.prose p { color: var(--paper-dim); max-width: 62ch; }
.prose p + p { margin-top: 1.05rem; }

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: 1.05rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 2.35rem;
  display: grid;
  place-items: center;
}
.steps strong { display: block; margin-bottom: 0.2rem; }
.steps span { color: var(--paper-dim); }

.kit {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}
.kit li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--paper-dim);
}
.kit svg { margin-top: 0.4rem; color: var(--accent); }
@media (max-width: 560px) { .kit { grid-template-columns: 1fr; } }

/* postranní panel s cenou a přihláškou */

.aside {
  position: sticky;
  top: 6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 1.85rem;
}
@media (max-width: 940px) { .aside { position: static; } }

.aside__price {
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.aside__note { color: var(--paper-dim); font-size: 0.95rem; margin-top: 0.6rem; }

.aside dl {
  margin: 1.85rem 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.9rem;
  font-size: 0.95rem;
}
.aside dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.aside dt { color: var(--paper-dim); }
.aside dd { margin: 0; font-weight: 600; text-align: right; }

.aside .btn { width: 100%; justify-content: center; }
.aside__fine { color: var(--paper-dim); font-size: 0.85rem; margin-top: 1rem; text-align: center; }

/* platba */

/* Nese to nejdůležitější na stránce, takže akcentní hrana a víc plochy. */
.pay {
  position: relative;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  margin-top: 1.75rem;
  max-width: none;
}
.pay dd { font-size: 1.02rem; }
.pay dl { margin: 0; display: grid; gap: 1.1rem; }
.pay dl > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.pay dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pay dt { color: var(--paper-dim); font-size: 0.95rem; }
.pay dd { margin: 0; font-weight: 600; }
@media (max-width: 620px) { .pay dl > div { grid-template-columns: 1fr; gap: 0.25rem; } }

.pay__qr {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.pay__qr img {
  width: 6.5rem;
  height: 6.5rem;
  flex-shrink: 0;
  border-radius: calc(var(--radius) - 4px);
  background: var(--paper);
  padding: 0.4rem;
}
.pay__qr p { color: var(--paper-dim); font-size: 0.88rem; line-height: 1.5; margin: 0; }
@media (max-width: 460px) { .pay__qr { flex-direction: column; align-items: flex-start; } }

.pay__form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.pay__form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  text-decoration: none;
}
.pay__form-label .arrow { transition: transform 0.3s var(--ease); }
.pay__form-label:hover .arrow { transform: translateX(4px); }
.pay__form iframe { display: block; width: 100%; max-width: 640px; border-radius: calc(var(--radius) - 4px); background: var(--paper); }

/* --------------------------------------------------- hmatová odezva -- */
/* Až za hover pravidly, jinak by je hover přebil. Stisk musí být cítit
   na všem, na co jde kliknout, ne jen na tlačítkách. */

.btn--primary:active { transform: translateY(1px); }
.tile:active { transform: translateY(-1px) scale(0.995); }
.gallery figure:active img { transform: scale(1.02); }
.faq summary:active { opacity: 0.72; }

.ig-link:active,
.credit:active,
.nav-toggle:active,
.lightbox__close:active { transform: translateY(1px); }

.lightbox__prev:active,
.lightbox__next:active { transform: translateY(calc(-50% + 1px)); }

@media (max-width: 620px) {
  .lightbox__prev:active,
  .lightbox__next:active { transform: translateY(1px); }
}

/* ------------------------------------------------------------ animace -- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* parallax hero - scroll-driven, bez scroll listeneru */
  @supports (animation-timeline: view()) {
    .hero__media {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes hero-drift {
      from { transform: translate3d(0, -3%, 0); }
      to   { transform: translate3d(0, 7%, 0); }
    }
  }

  /* pomalé přiblížení úvodní fotky po načtení, ať scéna nestojí */
  .hero__media img {
    animation: hero-zoom 20s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  @keyframes hero-zoom {
    from { transform: scale(1.09); }
    to   { transform: scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
