/* ============================================================================
   Electric Van Fam - site-only layer.

   Loads after core/base.css, kits/site.css and the template stylesheet, and is
   written ONLY in the skin's tokens (--bg, --surface, --text, --accent, ...), so
   every family in templates/site/ dresses it correctly. The vendored files are
   never edited; everything this site needs beyond the kit lives here.

   Layout follows the inspiration site's structure: a two-row centred header,
   full-bleed hero, offer cards, parallax band, offset box, grids with a
   lightbox, a giant tagline and a three-column footer.
   Breakpoints: 980 px (menu collapses), 767 px (phone), 479 px (small phone).
   ============================================================================ */

/* ---- placeholders: content the friend still has to supply ------------------
   Every TODO(owner) in the HTML wears this class, so a reviewer sees each gap. */
.todo {
  display: inline-block;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.05rem 0.45rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  font-size: 0.9em;
}
.todo-block {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text-muted);
  padding: 1.2rem;
  font-size: 0.95rem;
}

/* ---- header ----------------------------------------------------------------
   Not sticky, as on the inspiration site: it scrolls away with the page. */
.site-header {
  position: relative; z-index: 60;
  background: var(--bg);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem 0.4rem;
}
.header-top .brand { grid-column: 2; }
.header-controls { grid-column: 3; justify-self: end; margin-left: 0; display: inline-flex; gap: 0.5rem; align-items: center; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-badge { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.02; }
.brand-top { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-bottom { font-weight: 600; font-size: 1.15rem; color: var(--accent); letter-spacing: 0.01em; }

.header-nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 3.25rem;
}
.social-slot { display: inline-flex; }
.social-slot.left { justify-self: start; }
.social-slot.right { justify-self: end; }

.icon-link {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: color var(--duration-base) ease, background-color var(--duration-base) ease;
}
.icon-link:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.icon-link svg { width: 22px; height: 22px; }

/* Primary menu - inline and centred on desktop, a dropdown panel below 981 px. */
.site-nav { margin: 0; display: block; }
.site-nav > ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.3rem; align-items: center; }
.site-nav li { position: relative; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  color: var(--text-muted); font-size: 0.97rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--duration-base) ease, background-color var(--duration-base) ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); }
.has-sub > a::after {
  content: ""; width: 0.42em; height: 0.42em; margin-left: 0.15rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}
.sub {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; left: 50%; top: 100%;
  min-width: 15rem;
  background: var(--surface-3, var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease, visibility var(--duration-base);
}
.sub a { display: flex; width: 100%; padding: 0.55rem 0.8rem; }
.sub a:hover { background: var(--accent-soft); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text);
  place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; justify-self: center; grid-column: 2; grid-row: 1; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface-3, var(--bg));
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.45s var(--ease-standard), visibility 0.45s;
  }
  .site-nav.is-open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem clamp(1.1rem, 4vw, 2rem) 1rem; }
  .site-nav > ul > li { border-bottom: 1px solid var(--border); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a { width: 100%; padding: 0.8rem 0.4rem; font-size: 1.02rem; color: var(--text); }
  .has-sub > a::after { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 0 0 0.5rem 1rem;
  }
  .sub a { padding: 0.5rem 0.4rem; color: var(--text-muted); font-size: 0.95rem; }
  .header-nav-row { position: static; }
  .site-header { position: relative; }
}
@media (max-width: 767px) {
  .header-top { grid-template-columns: 1fr; justify-items: center; gap: 0.6rem; padding-top: 0.6rem; }
  .header-top .brand { grid-column: 1; grid-row: 2; }
  .header-controls { grid-column: 1; grid-row: 1; justify-self: end; }
  .brand-badge { width: 56px; height: 56px; }
  .brand-top { font-size: 1.2rem; }
  .brand-bottom { font-size: 1.02rem; }
}

/* ---- hero: full-bleed photo with a centred claim ----------------------------- */
.hero-photo {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: clamp(22rem, 56vw, 50rem);
  padding: 4rem 0;
  color: #fff;
  overflow: hidden;
}
.hero-photo > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.35) 0%, rgba(4, 12, 24, 0.45) 55%, rgba(4, 12, 24, 0.7) 100%);
}
.hero-photo .container { text-align: center; }
.hero-photo h1 {
  max-width: 18ch; margin-inline: auto;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-photo p {
  max-width: 46ch; margin: 1.1rem auto 0;
  font-size: clamp(1.02rem, 1.7vw, 1.25rem); color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-photo .schedule {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.6rem; padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius-pill);
  background: rgba(4, 12, 24, 0.35);
  font-size: 0.95rem; font-weight: 500;
}
.hero-photo .schedule svg { width: 16px; height: 16px; color: #7cc4ff; }

/* ---- section heads -------------------------------------------------------- */
.center { text-align: center; }
.center :is(h1, h2):not(.title)::after { left: 50%; transform: translateX(-50%); }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: 0.9rem; padding-bottom: 0.6rem; }
.section-head p { color: var(--text-muted); max-width: 60ch; }
.section-head.center p { margin-inline: auto; }
.section-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

/* ---- offer cards: photo on top, text box below ------------------------------- */
.offer-grid { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); grid-template-columns: repeat(3, 1fr); }
.offer {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.offer > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.offer-body { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; text-align: center; padding: 1.5rem 1.4rem 1.7rem; flex: 1; }
.offer-body h3 { font-size: 1.35rem; }
.offer-body p { color: var(--text-muted); }
.offer-body .more { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .offer-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

/* ---- parallax band: a photo with no content --------------------------------- */
.band {
  position: relative; overflow: hidden;
  height: clamp(16rem, 42vw, 38rem);
  padding: 0;
}
.band > img {
  position: absolute; left: 0; top: -15%;
  width: 100%; height: 130%; object-fit: cover;
  will-change: transform;
}

/* ---- offset box: tinted panel from 5% of the left edge to the right edge ------ */
.offset-wrap { padding-block: var(--section-pad); }
.offset-box {
  margin-left: 5vw;
  background: var(--surface-2);
  border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg);
  border: 1px solid var(--border); border-right: 0;
  padding-block: clamp(2rem, 5vw, 4rem);
}
/* The box starts 5vw from the left edge, but its content lines up with the page
   container: the side padding absorbs the difference. */
.offset-inner {
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --side: max(0px, calc((100vw - var(--maxw)) / 2));
  padding-left: max(var(--gutter), calc(var(--side) - 5vw + var(--gutter)));
  padding-right: calc(var(--side) + var(--gutter));
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center;
}
.offset-inner.text-split { grid-template-columns: 2fr 3fr; align-items: start; }
.offset-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.offset-media img.badge-art { aspect-ratio: 1; object-fit: contain; background: transparent; border-radius: 50%; max-width: 22rem; margin-inline: auto; box-shadow: var(--shadow-lg); }
.offset-text h2 { margin-bottom: 1.1rem; padding-bottom: 0.6rem; }
.offset-text p { color: var(--text-muted); }
.offset-text p + p { margin-top: 1rem; }
/* The Czech twin of a first paragraph follows its hidden English twin: no gap. */
.offset-text :not(p) + p.lang-en + p.lang-cs { margin-top: 0; }
.offset-text .btn { margin-top: 1.6rem; }
@media (max-width: 980px) {
  .offset-box { margin-left: 0; border-radius: 0; border-left: 0; }
  .offset-inner, .offset-inner.text-split { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; padding-inline: var(--gutter); }
}

/* ---- video cards ------------------------------------------------------------ */
.video-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); grid-template-columns: repeat(3, 1fr); }
.shorts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.vcard { display: flex; flex-direction: column; gap: 0.7rem; color: var(--text); }
.vcard:hover { text-decoration: none; }
.vthumb {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2);
}
.vthumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s var(--ease-standard); }
.shorts-grid .vthumb img { aspect-ratio: 9 / 16; }
.vthumb::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(4, 12, 24, 0); transition: background-color 0.3s ease;
}
.play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(4, 12, 24, 0.62); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.3s var(--ease-standard), background-color 0.3s ease;
}
.play svg { width: 1.2rem; height: 1.2rem; margin-left: 0.15rem; }
.vcard:hover .vthumb img, .vcard:focus-visible .vthumb img { transform: scale(1.04); }
.vcard:hover .vthumb::after { background: rgba(4, 12, 24, 0.18); }
.vcard:hover .play, .vcard:focus-visible .play { transform: translate(-50%, -50%) scale(1); background: var(--accent); }
.duration {
  position: absolute; right: 0.5rem; bottom: 0.5rem; z-index: 1;
  padding: 0.1rem 0.45rem; border-radius: 6px;
  background: rgba(4, 12, 24, 0.78); color: #fff;
  font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.vtitle { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmeta { display: flex; gap: 0.8rem; color: var(--text-faint); font-size: 0.86rem; }
.shorts-grid .vtitle { font-size: 0.9rem; }
@media (max-width: 980px) { .video-grid { grid-template-columns: repeat(2, 1fr); } .shorts-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .video-grid { grid-template-columns: 1fr; } .shorts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- follow block (in place of the inspiration's newsletter) ---------------- */
.follow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.follow h2 { margin-bottom: 1rem; padding-bottom: 0.6rem; }
.follow p { color: var(--text-muted); }
.follow-links { display: grid; gap: 0.9rem; }
.follow-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text);
  transition: border-color var(--duration-base) ease, transform var(--duration-base) ease;
}
.follow-link:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.follow-link svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); }
.follow-link strong { display: block; font-size: 1.05rem; }
.follow-link span.handle { display: block; color: var(--text-faint); font-size: 0.9rem; }
@media (max-width: 980px) { .follow { grid-template-columns: 1fr; } }

/* ---- giant faint tagline, the last section before the footer --------------- */
.tagline-giant {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5rem);
  text-align: center; overflow: hidden;
}
.tagline-giant p {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2.6rem, 8.5vw, 7.2rem);
  color: color-mix(in srgb, var(--text) 9%, var(--bg));
  user-select: none;
}

/* ---- footer --------------------------------------------------------------- */
.site-footer { margin-top: 0; background: var(--surface-2); padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.6rem; }
.footer-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.footer-nav { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-logo img { width: 104px; height: 104px; border-radius: 50%; }
.footer-contact { justify-self: end; display: grid; justify-items: end; gap: 0.6rem; }
.footer-contact .socials { display: flex; gap: 0.3rem; }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
  color: var(--text-faint); font-size: 0.86rem;
}
@media (max-width: 980px) {
  .footer-cols { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-nav { justify-items: center; }
  .footer-logo { order: -1; }
  .footer-contact { justify-self: center; justify-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---- title band (inner pages) ---------------------------------------------- */
.title-band {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.6rem, 6vw, 5rem);
  text-align: center;
}
.title-band h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); padding-bottom: 0.6rem; margin-bottom: 1rem; }
.title-band p { color: var(--text-muted); max-width: 58ch; margin-inline: auto; font-size: 1.08rem; }

/* ---- lightbox (site.js builds the dialog) ----------------------------------- */
.lb {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
  overflow: hidden;
}
.lb::backdrop { background: rgba(3, 6, 12, 0.88); }
.lb[open] { display: grid; place-items: center; }
.lb-stage {
  position: relative;
  display: grid; justify-items: center; gap: 0.6rem;
  max-width: calc(100vw - 7rem);
}
.lb-media img {
  max-width: calc(100vw - 7rem); max-height: calc(100vh - 7rem);
  width: auto; height: auto; border-radius: 6px; cursor: pointer;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transform-origin: top left;
}
.lb-media iframe {
  display: block; border: 0; border-radius: 6px; background: #000;
  width: min(calc(100vw - 7rem), calc((100vh - 8rem) * 16 / 9));
  aspect-ratio: 16 / 9;
}
.lb-media.is-short iframe { width: min(calc(100vw - 2rem), calc((100vh - 8rem) * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-info { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.lb-caption { max-width: 60ch; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-caption a { color: #9fd0ff; }
.lb-count { font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.lb button {
  position: fixed; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 16, 28, 0.55); color: #fff;
  transition: background-color var(--duration-base) ease;
}
.lb button:hover { background: rgba(10, 16, 28, 0.85); }
.lb button:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 2px; }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-count { display: none; }
html.lb-lock { overflow: hidden; }
@media (max-width: 767px) {
  .lb-stage, .lb-media img { max-width: calc(100vw - 12px); }
  .lb-media iframe { width: calc(100vw - 12px); }
  .lb button { width: 40px; height: 40px; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-info { padding-inline: 0.6rem; }
}

/* ---- photo grid with pagination ------------------------------------------- */
.photo-grid { display: grid; gap: clamp(0.8rem, 2vw, 1.6rem); grid-template-columns: repeat(4, 1fr); }
.photo-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s var(--ease-standard); }
.photo-grid a::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 0%, transparent);
  transition: background-color 0.3s ease;
}
.photo-grid .zoom {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  opacity: 0; transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-standard);
}
.photo-grid .zoom svg { width: 1.3rem; height: 1.3rem; }
.photo-grid a:hover::after, .photo-grid a:focus-visible::after { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.photo-grid a:hover .zoom, .photo-grid a:focus-visible .zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid [hidden] { display: none; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .photo-grid { grid-template-columns: 1fr; } }

.pager {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.pager button {
  min-width: 2.6rem; height: 2.6rem; padding: 0 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 500;
}
.pager button:hover { border-color: var(--accent); }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ---- reveal: one quiet fade the first time a block scrolls into view -------- */
.js .reveal { transform: translateY(10px); transition: opacity 0.7s ease, transform 0.7s ease; }

/* ---- reduced motion: everything that moves on its own stops ---------------- */
@media (prefers-reduced-motion: reduce) {
  .band > img { top: 0; height: 100%; transform: none !important; }
  .vthumb img, .photo-grid img { transition: none; }
  .site-nav { transition: none; }
}

/* ---- print ---------------------------------------------------------------- */
@media print {
  .site-header .header-controls, .menu-toggle, .band, .lb, .tagline-giant { display: none !important; }
}

/* ============================================================================
   Inner pages: videos, van, gallery, about, contact. Page components only, in
   the skin's tokens; one heading per page, the pieces two pages share first.
   Language pairs: a run of several paragraphs sits in a div.lang-en /
   div.lang-cs wrapper, so a `p + p` rule never spaces a hidden twin.
   ============================================================================ */

/* ---- inner pages: shared --------------------------------------------------- */
.btn > svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* CTA strip (R20): one centred accent sentence and one button. */
.cta-strip { text-align: center; }
.section + .cta-strip { padding-top: 0; }
.cta-strip .container::before {
  content: ""; display: block;
  width: var(--space-xl); height: 2px; margin: 0 auto 1.6rem;
  background: var(--accent);
}
.cta-line {
  max-width: 30ch; margin: 0 auto 1.5rem;
  font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  color: var(--accent);
  text-wrap: balance;
}

/* ---- videos page ----------------------------------------------------------- */
/* Playlist cards: 3 / 2 / 1 per row; a short last row stays centred. */
.playlist-grid {
  --pl-gap: clamp(1rem, 2.5vw, 1.8rem);
  --pl-cols: 3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pl-gap);
}
.playlist-card {
  flex: 0 0 calc((100% - (var(--pl-cols) - 1) * var(--pl-gap)) / var(--pl-cols));
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color var(--duration-base) ease, transform var(--duration-base) ease;
}
.playlist-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.pl-thumb { display: block; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pl-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s var(--ease-standard); }
.playlist-card:hover .pl-thumb img, .playlist-card:focus-visible .pl-thumb img { transform: scale(1.04); }
.pl-body { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding: 1rem 1.2rem 1.1rem; }
.pl-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.pl-count { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 980px) { .playlist-grid { --pl-cols: 2; } }
@media (max-width: 767px) { .playlist-grid { --pl-cols: 1; } }

/* ---- van page ----------------------------------------------------------------- */
/* Page hero band (R13): tinted; photo | title + intro | photo, the photos at
   staggered heights. Below 981 px the text goes first and the two photos sit
   side by side under it. */
.page-hero {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
.page-hero-inner {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center;
}
.page-hero-photo img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.page-hero-photo.up { margin-bottom: clamp(2rem, 6vw, 5rem); }
.page-hero-photo.down { margin-top: clamp(2rem, 6vw, 5rem); }
.page-hero-text h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); padding-bottom: 0.6rem; margin-bottom: 1.1rem; }
.page-hero-sub { color: var(--accent); font-weight: 600; font-size: 0.98rem; margin-bottom: 1rem; }
.page-hero-text p:not(.page-hero-sub) { color: var(--text-muted); font-size: 1.05rem; }
@media (max-width: 980px) {
  .page-hero-inner { grid-template-columns: 1fr 1fr; max-width: 40rem; margin-inline: auto; }
  .page-hero-text { grid-column: 1 / -1; order: -1; }
  .page-hero-photo.up { margin-bottom: clamp(1.5rem, 8vw, 3rem); }
  .page-hero-photo.down { margin-top: clamp(1.5rem, 8vw, 3rem); }
}

/* Build: one bordered detail box per stage (R19), text | photo. */
.build-list {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 66rem;
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
}
.detail-box {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.detail-box.has-media { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.detail-box:target { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.detail-step {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.step-no {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 0.95rem; letter-spacing: 0;
}
.detail-text h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 0.7rem; }
.detail-text p:not(.detail-step) { color: var(--text-muted); max-width: 68ch; }
.detail-total { margin-top: 0.9rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.detail-media img.pos-high { object-position: 50% 12%; }
.detail-media img.pos-upper { object-position: 50% 35%; }
.detail-media img.pos-top { object-position: 50% 0%; }
@media (max-width: 767px) {
  .detail-box.has-media { grid-template-columns: minmax(0, 1fr); }
  .detail-box.has-media .detail-media { order: -1; }
}

/* Gear and partners: brand cards, then the discount code. */
.gear-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem);
}
.gear-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.gear-card h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.gear-card p { color: var(--text-muted); font-size: 0.95rem; }
.gear-link { margin-top: auto; padding-top: 0.3rem; font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.gear-code {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem); align-items: center;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding: clamp(1.3rem, 3.5vw, 2rem);
  background: var(--accent-soft); color: var(--text);
  border-radius: var(--radius-lg);
}
.gear-code-badge {
  padding: 0.55rem 1.1rem;
  border: 2px dashed var(--accent); border-radius: var(--radius);
  background: var(--bg); color: var(--accent);
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
.gear-code-text h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.gear-code-text a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.gear-disclosure { margin-top: 0.8rem; }
@media (max-width: 980px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .gear-grid { grid-template-columns: 1fr; }
  .gear-code { grid-template-columns: minmax(0, 1fr); }
  .gear-code-badge { justify-self: start; }
}

/* FAQ (R31): independent <details> toggles in two columns. Each column stacks
   on its own, so opening one answer never moves the other column. */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(1rem, 3vw, 2rem); align-items: start; }
.faq-col { display: grid; gap: 1rem; align-content: start; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--duration-base) ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  list-style: none; cursor: pointer;
  font-weight: 600; color: var(--text);
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto;
  width: 0.55em; height: 0.55em;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform var(--duration-base) ease;
}
.faq-item[open] summary::after { transform: translateY(0.12em) rotate(-135deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 1.2rem 1.1rem; color: var(--text-muted); }
/* The answer slides open where the browser can animate to height: auto. */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height 0.45s var(--ease-standard), content-visibility 0.45s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---- gallery page ------------------------------------------------------------- */
.gallery-hint { max-width: 60ch; margin: 0 auto 1.6rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; }

/* ---- about page --------------------------------------------------------------- */
/* Two-column intro (R15): photo | title, text and a button. */
.intro-2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.intro-photo { width: 100%; max-width: 30rem; aspect-ratio: 4 / 5; margin-inline: auto; }
.intro-text h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); padding-bottom: 0.6rem; margin-bottom: 1.2rem; }
.intro-text p { color: var(--text-muted); font-size: 1.05rem; }
.intro-text p + p { margin-top: 1rem; }
.intro-text .btn { margin-top: 1.6rem; }

/* Two text columns. */
.text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.text-col h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); padding-bottom: 0.6rem; margin-bottom: 1.1rem; }
.text-col p { color: var(--text-muted); }
.text-col p + p { margin-top: 1rem; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.tick-list li { position: relative; padding-left: 1.7rem; }
.tick-list li + li { margin-top: 0.55rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.28em;
  width: 0.4rem; height: 0.75rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* Who's who: four cards, placeholders until the family sends photos. */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.todo-block.person-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem;
  padding: 0.8rem 0.8rem 1.2rem;
}
.person-photo {
  display: grid; place-items: center;
  aspect-ratio: 4 / 5; margin-bottom: 0.4rem;
  border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: var(--bg);
}
.person-name { color: var(--text); font-size: 1.05rem; }
.person-line { font-size: 0.9rem; }
@media (max-width: 980px) {
  .offset-inner.text-split { row-gap: 0.2rem; }
  .intro-2col, .text-cols { grid-template-columns: 1fr; }
  .intro-2col { max-width: 40rem; }
  .intro-photo { max-width: 24rem; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- contact page ------------------------------------------------------------- */
/* Photo | how to reach us. */
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 5vw, 4rem); align-items: center;
  max-width: 64rem;
}
.contact-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.contact-info h2 { padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.contact-role { color: var(--text-muted); }
.contact-lines { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; display: grid; gap: 0.9rem; }
.contact-lines li { display: flex; align-items: center; gap: 0.9rem; }
.contact-lines svg { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; color: var(--accent); }
.cl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.cl-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cl-body a { font-weight: 600; }
.contact-info h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-imprint { margin-top: 1.1rem; font-size: 0.9rem; }

/* The form (R33): name and e-mail side by side, the message full width. */
.form-box {
  max-width: 50rem; margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.form-box .section-head { margin-bottom: 1.6rem; }
.form-to { display: block; width: fit-content; max-width: 100%; margin: 0 auto 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form .field input, .contact-form .field textarea { width: 100%; color: var(--text); }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form ::placeholder { color: var(--text-faint); opacity: 1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 0.4rem; }
.form-actions .btn { margin-left: auto; }
.form-status { color: var(--text); font-size: 0.92rem; }
.form-status:empty { display: none; }
@media (max-width: 767px) {
  .contact-row { grid-template-columns: 1fr; max-width: 32rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- contact form: Web3Forms ------------------------------------------------ */
/* The honeypot: a field people never see and bots fill in. */
.contact-form .botcheck { display: none !important; }
.form-status { min-height: 1.4em; color: var(--text-muted); }
.form-status.is-error { color: var(--text); font-weight: 600; }

/* ---- language before (and without) JS ---------------------------------------
   The head script sets html[data-lang] before the first paint, Czech by default;
   site.js keeps it in step with lang.js. Without JS the attribute is missing and
   Czech shows. lang.js's own rules then agree with these. */
html:not([data-lang="en"]) .lang-en { display: none !important; }
html[data-lang="en"] .lang-cs { display: none !important; }
