/* Sport Radost — design system. Vintage travel-poster style: lavender / graphite / mint. */
:root {
  --lavender: #8d87c4;
  --lavender-deep: #5f589a;
  --graphite: #312d45;
  --graphite-soft: #403a58;
  --mint: #bdf3dd;
  --mint-deep: #6fcfa8;
  --paper: #f4f1ea;
  --cream: #fbf8f1;
  --ink: #241f33;
  --accent: #e8a05a;
  --radius: 18px;
  --shadow-paper: 0 18px 40px -20px rgba(36, 31, 51, 0.45);
  --font-display: "Palatino Linotype", "Georgia", "Iowan Old Style", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; color: var(--lavender-deep); display: inline-block; margin-bottom: 10px;
}

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-1 { transition-delay: .05s; } .reveal-2 { transition-delay: .15s; } .reveal-3 { transition-delay: .25s; } .reveal-4 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; } }

.grain-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: multiply; opacity: .5; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(49,45,69,.1); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { flex: 0 0 auto; }
.logo-mark { width: 150px; height: 32px; aspect-ratio: 210/44; }
.logo-word { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; fill: var(--graphite); }
.logo-word--accent { fill: var(--lavender-deep); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--mint-deep); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: inline-flex; padding: 6px; color: var(--graphite); }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: var(--ink); font-size: .68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--graphite); }
.nav-close { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(36,31,51,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 60; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--graphite); color: var(--cream); flex-direction: column; padding: 90px 28px 28px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease; z-index: 61; gap: 22px;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--cream); font-size: 1.1rem; }
  .nav-close { display: inline-flex; position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--cream); cursor: pointer; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; min-height: 44px; transition: transform .2s ease; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn-fill { background: var(--graphite); color: var(--cream); }
.btn-fill::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--lavender-deep); transition: left .35s ease; z-index: 0; }
.btn-fill:hover::before { left: 0; }
.btn-fill span, .btn-fill { z-index: 1; }
.btn-outline { background: transparent; border-color: var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--cream); }
.btn-ghost { background: transparent; border-color: rgba(244,241,234,.5); color: var(--cream); }
.btn-ghost:hover { background: rgba(244,241,234,.15); }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 36px; }
.btn-accent { background: var(--accent); color: var(--ink); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px,10vw,120px) 0 80px; }
.hero-blob { position: absolute; top: -10%; right: -10%; width: 60%; max-width: 640px; z-index: 0; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 0%,100% { border-radius: 42% 58% 60% 40% / 48% 42% 58% 52%; } 50% { border-radius: 60% 40% 42% 58% / 54% 60% 40% 46%; } }
@media (prefers-reduced-motion: reduce) { .hero-blob { animation: none; } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-blob { width: 90%; right: -20%; } }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--graphite); }
.hero-lead { font-size: 1.15rem; max-width: 46ch; color: var(--graphite-soft); }
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-paper); }
.hero-orbit { position: absolute; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 4px solid var(--cream); box-shadow: var(--shadow-paper); }
.hero-orbit img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- landscape divider svg ---------- */
.landscape-divider { width: 100%; height: auto; display: block; }
.footer-divider { width: 100%; height: 60px; display: block; margin-top: -1px; }

/* ---------- product cards / strip ---------- */
.product-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .product-strip { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: unset; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .product-strip > * { scroll-snap-align: start; } }
.card-product { background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.card-product:hover { transform: translateY(-6px); }
.card-product-media { aspect-ratio: 4/3; overflow: hidden; }
.card-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-product:hover .card-product-media img { transform: scale(1.08); }
.card-product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-product-cat { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lavender-deep); }
.card-product-name { font-size: 1.1rem; margin: 0; }
.card-product-price { font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.card-product-price .old { text-decoration: line-through; color: #9a93a8; font-weight: 400; margin-right: 8px; font-size: .9rem; }
.badge { position: absolute; margin: 12px; background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }

/* ---------- Výbavník kit builder (signature feature) ---------- */
.kit-builder { background: var(--graphite); color: var(--cream); border-radius: 28px; padding: clamp(28px,5vw,52px); position: relative; overflow: hidden; }
.kit-builder h2 { color: var(--mint); }
.kit-sports { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.kit-sport-btn { background: rgba(244,241,234,.08); border: 2px solid rgba(244,241,234,.25); color: var(--cream); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; min-height: 44px; }
.kit-sport-btn.is-active { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.kit-result { display: grid; gap: 10px; margin-top: 18px; }
.kit-line { display: flex; justify-content: space-between; background: rgba(244,241,234,.06); border-radius: 12px; padding: 12px 16px; }
.kit-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; border-top: 1px dashed rgba(244,241,234,.3); padding-top: 14px; margin-top: 6px; }

/* ---------- section dividers / ornaments ---------- */
.ornament { display: block; margin: 40px auto; width: 120px; height: 36px; }

/* ---------- page-hero (inner pages) ---------- */
.page-hero { padding: clamp(50px,8vw,90px) 0 50px; background: linear-gradient(160deg, var(--lavender) 0%, var(--graphite) 100%); color: var(--cream); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); font-size: clamp(2.2rem,5vw,3.4rem); }
.page-hero p { max-width: 56ch; color: rgba(244,241,234,.85); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: .8rem; display: flex; gap: 8px; align-items: center; opacity: .85; margin-bottom: 14px; }
.breadcrumbs a { text-decoration: underline; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--graphite-soft); }
.prose ul { padding-left: 1.2em; }
.legal-toc { background: var(--cream); border-radius: var(--radius); padding: 22px 26px; margin: 0 auto 40px; max-width: 70ch; }
.legal-toc ol { padding-left: 1.2em; margin: 0; }
.legal-toc a { color: var(--lavender-deep); font-weight: 600; }

/* ---------- notices ---------- */
.notice { border-radius: 14px; padding: 16px 20px; background: rgba(189,243,221,.4); border: 1px solid var(--mint-deep); margin: 20px 0; }
.notice-warn { background: rgba(232,160,90,.15); border-color: var(--accent); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(49,45,69,.25); background: var(--cream); accent-color: var(--lavender-deep);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--mint-deep); outline-offset: 1px; border-color: var(--lavender-deep); }
.field-error { color: #b6453f; font-size: .82rem; min-height: 1.1em; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg--ok { color: var(--mint-deep); }
.form-msg--error { color: #b6453f; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(49,45,69,.15); padding: 18px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--lavender-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--graphite-soft); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4/3; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(49,45,69,.25); border-radius: 999px; }
.qty-stepper button { background: none; border: none; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 40px; text-align: center; border: none; background: none; font: inherit; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid rgba(49,45,69,.1); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-summary { background: var(--cream); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-paper); display: grid; gap: 12px; }
.cart-summary-row { display: flex; justify-content: space-between; }
.cart-summary-total { font-size: 1.3rem; font-weight: 700; border-top: 1px dashed rgba(49,45,69,.25); padding-top: 12px; }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info-item svg { flex-shrink: 0; margin-top: 2px; color: var(--lavender-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--cream); margin-top: 60px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 10px 24px 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--mint); font-size: 1.05rem; }
.footer-logo { width: 150px; height: auto; aspect-ratio: 160/36; margin-bottom: 10px; }
.footer-logo .logo-word { fill: var(--cream); font-size: 13px; }
.footer-brand p { color: rgba(244,241,234,.75); max-width: 32ch; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--mint); }
.footer-mail { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: rgba(244,241,234,.8); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border-radius: 999px; border: none; font: inherit; }
.footer-bottom { text-align: center; padding: 16px 0; border-top: 1px solid rgba(244,241,234,.12); font-size: .85rem; color: rgba(244,241,234,.6); }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; margin: 0 auto; background: var(--graphite); color: var(--cream); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-paper); z-index: 100; transform: translateY(140%); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0 0 14px; font-size: .9rem; color: rgba(244,241,234,.9); }
.cookie-banner a { text-decoration: underline; color: var(--mint); }
.cookie-actions { display: flex; gap: 12px; }

/* ---------- toast ---------- */
.sr-toast { position: fixed; bottom: 24px; right: 24px; background: var(--graphite); color: var(--cream); padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-paper); z-index: 120; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.sr-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(60px,10vw,120px) 0; }
.error-page .hero-title { font-size: clamp(4rem, 14vw, 9rem); }

/* COMPONENTS: .wrap - page max-width container
COMPONENTS: .section - vertical section padding
COMPONENTS: .grid/.grid-2/.grid-3/.grid-4 - responsive grid utilities
COMPONENTS: .stack - vertical flex gap
COMPONENTS: .eyebrow - small uppercase label above headings
COMPONENTS: .reveal/.reveal-1..4 - scroll-reveal animation + stagger
COMPONENTS: .grain-overlay - full-viewport SVG grain texture
COMPONENTS: .site-header/.header-inner/.main-nav/.nav-toggle/.nav-close/.nav-backdrop - header & mobile nav
COMPONENTS: .cart-link/.cart-count - header cart badge
COMPONENTS: .btn/.btn-fill/.btn-outline/.btn-ghost/.btn-accent/.btn-sm - button variants
COMPONENTS: .hero/.hero-blob/.hero-inner/.hero-title/.hero-lead/.hero-visual/.hero-orbit/.hero-cta - home hero
COMPONENTS: .landscape-divider/.footer-divider/.ornament - decorative SVG dividers
COMPONENTS: .product-strip/.card-product/.card-product-media/.card-product-body/.card-product-cat/.card-product-name/.card-product-price/.badge - product cards
COMPONENTS: .kit-builder/.kit-sports/.kit-sport-btn/.kit-result/.kit-line/.kit-total - Výbavník signature feature
COMPONENTS: .page-hero - inner page hero band
COMPONENTS: .breadcrumbs - breadcrumb trail
COMPONENTS: .prose/.legal-toc - long-form legal text layout
COMPONENTS: .notice/.notice-warn - callout boxes
COMPONENTS: .form-grid/.field/.field-error/.form-msg/.hp - form layout & validation
COMPONENTS: .faq/.faq-item - FAQ accordion (details/summary)
COMPONENTS: .product-detail/.product-detail-media/.qty-stepper - product page layout
COMPONENTS: .cart-table/.cart-summary - cart & checkout layout
COMPONENTS: .contact-layout/.contact-info/.contact-info-item - contact page layout
COMPONENTS: .site-footer/.footer-inner/.footer-col/.footer-links/.newsletter-form/.footer-bottom - footer
COMPONENTS: .cookie-banner/.cookie-actions - cookie consent banner
COMPONENTS: .sr-toast - transient toast message
COMPONENTS: .error-page - 404 page layout
*/

/* ---------- footer ---------- */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- product detail page ---------- */
.product-price-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--lavender);
  border-bottom: 1px solid var(--lavender);
}

.product-price {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--lavender);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
}

.qty-btn:hover {
  border-color: var(--lavender-deep);
  background: var(--mint);
}

.qty-btn:active {
  transform: scale(0.92);
}
