/* =========================================================
   Kola Radost — design system (Aurora mesh)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

:root {
  --ink: #0b1437;
  --ink-2: #111d4f;
  --silver: #c7ccd9;
  --silver-dim: #8e94ab;
  --ice: #bfe3ff;
  --ice-2: #e8f4ff;
  --lilac: #e8c8ff;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ok: #3fae7a;
  --error: #d85c6b;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, monospace;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11,20,55,.06), 0 10px 30px -12px rgba(11,20,55,.25);
  --shadow-2: 0 20px 60px -20px rgba(11,20,55,.45);
  --maxw: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2.5px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- layout utilities ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 9vw, 110px) 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: clamp(24px, 5vw, 56px); }
.eyebrow { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--silver-dim); margin: 0 0 .6em; }
.center { text-align: center; }

/* ---------- aurora mesh backdrop ---------- */
.aurora-bg {
  position: relative;
  background: radial-gradient(900px 500px at 15% -10%, rgba(191,227,255,.5), transparent 60%),
              radial-gradient(800px 500px at 100% 0%, rgba(232,200,255,.4), transparent 55%),
              linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 55%, #0a1030 100%);
  color: var(--white);
}
.aurora-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,20,55,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo__mark { color: var(--ice); flex-shrink: 0; }
.logo__word { color: var(--white); width: 150px; height: 26px; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-close { display: none; }

.primary-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.primary-nav__main { display: flex; gap: 22px; }
.primary-nav__main a, .primary-nav__sub a { color: var(--silver); font-size: .95rem; transition: color .2s; position: relative; }
.primary-nav__main a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:1.5px; background:var(--ice); transition:width .25s; }
.primary-nav__main a:hover, .primary-nav__main a.is-active { color: var(--white); }
.primary-nav__main a:hover::after, .primary-nav__main a.is-active::after { width: 100%; }
.primary-nav__sub { display: none; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white) !important; }
.cart-badge { background: var(--lilac); color: var(--ink); font-size: .75rem; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; transition: transform .25s; }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.45)} 100%{transform:scale(1)} }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--ink);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 28px 24px; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-close { display: flex; background: none; border: none; color: var(--white); margin-left: auto; margin-bottom: 18px; width: 40px; height: 40px; align-items:center; justify-content:center; }
  .primary-nav__main, .primary-nav__sub { flex-direction: column; gap: 16px; display: flex; }
  .primary-nav__sub { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .primary-nav__main a::after { display: none; }
  .cart-link { margin-top: 24px; justify-content: center; }
}
@media (min-width: 881px) { .primary-nav__sub { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 999px; padding: .85em 1.6em; font-weight: 600; font-size: .95rem; min-height: 44px; position: relative; overflow: hidden; isolation: isolate; transition: transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-sweep { background: var(--ice); color: var(--ink); }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--lilac); z-index: -1; transition: left .35s ease; }
.btn-sweep:hover::before { left: 0; }
.btn-sweep:hover { box-shadow: var(--shadow-1); }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-nav { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.btn-ghost-dark { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.15); }
.btn-icon { background: none; border: none; color: var(--silver-dim); font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; }
.btn-icon:hover { background: var(--paper); color: var(--error); }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 48px) 0 100px; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--white); margin-bottom: .4em; }
.hero__title em { font-style: normal; color: var(--ice); }
.hero__lede { font-size: 1.15rem; color: var(--silver); max-width: 46ch; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.badge-rotate { position: absolute; top: -10px; right: -10px; width: 130px; height: 130px; animation: spin 22s linear infinite; color: var(--ice); }
@media (prefers-reduced-motion: reduce) { .badge-rotate { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4/3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__art { order: -1; max-width: 320px; margin: 0 auto; } }

/* ---------- card stack (home composition) ---------- */
.stack { position: relative; display: grid; gap: 22px; }
.stack .reveal:nth-child(1) { transform: rotate(-2deg); }
.stack .reveal:nth-child(2) { transform: rotate(1.4deg) translateY(6px); }
.stack .reveal:nth-child(3) { transform: rotate(-1deg) translateY(-4px); }
.stack .reveal.in-view:nth-child(1) { transform: rotate(-2.5deg) translateY(0); }
.stack .reveal.in-view:nth-child(2) { transform: rotate(1.8deg) translateY(10px); }
.stack .reveal.in-view:nth-child(3) { transform: rotate(-1.4deg) translateY(-6px); }
@media (min-width: 760px) { .stack { grid-template-columns: repeat(3, 1fr); } }

/* ---------- reveal ---------- */
.reveal { opacity: 1; }
.reveal.reveal-ready { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; clip-path: inset(0 0 0 0); }
.reveal.reveal-ready.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal.reveal-ready { opacity: 1; transform: none; transition: none; } }

/* ---------- sections / dividers ---------- */
.divider { display: block; width: 100%; height: 48px; color: var(--ice); opacity: .6; }
.seal { color: var(--ink); }

/* ---------- route compass (signature feature) ---------- */
.compass { background: var(--white); border-radius: var(--radius); padding: clamp(24px,4vw,44px); box-shadow: var(--shadow-1); border: 1px solid rgba(11,20,55,.06); }
.compass__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; align-items: end; }
.compass__checkbox { display: flex; align-items: center; gap: 8px; height: 44px; }
.route-results { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.route-card { background: var(--paper); border-radius: var(--radius-sm); padding: 20px; border: 1px solid rgba(11,20,55,.07); }
.route-card__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--silver-dim); text-transform: uppercase; letter-spacing: .04em; }
.route-card__bike { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ice); }

/* ---------- product cards / grid / strip ---------- */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid rgba(11,20,55,.06); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.product-card__link { display: block; color: inherit; }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 18px 20px 6px; }
.product-card__name { font-size: 1.15rem; margin-bottom: .3em; }
.product-card__short { color: var(--silver-dim); font-size: .92rem; }
.product-card__price { font-weight: 700; color: var(--ink-2); }
.product-card__cta { margin: 10px 20px 20px; }

.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 760px) { .product-strip { display: contents; } }

/* ---------- inner-page components (used by secondary writer) ---------- */
.page-hero { background: linear-gradient(165deg, var(--ink), var(--ink-2)); color: var(--white); padding: calc(var(--header-h) + 40px) 0 60px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { color: var(--silver); max-width: 60ch; }

.breadcrumbs { font-size: .85rem; color: var(--silver-dim); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1em; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: var(--ice); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1em 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-decoration-color: var(--ice); }

.legal-toc { background: var(--paper); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 2em; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6em; }
.legal-toc ol { margin-left: 1.2em; }
.legal-toc a { text-decoration: underline; text-decoration-color: var(--ice); }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid rgba(11,20,55,.08); font-size: .92rem; }
.notice--ok { background: #e9f8f0; border-color: #bfe8d4; color: #1f6b47; }
.notice--error { background: #fdebec; border-color: #f3c7cb; color: #9c2b38; }

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field input, .field textarea, .field select { border: 1.5px solid #d7dbe6; border-radius: var(--radius-sm); padding: .75em .9em; accent-color: var(--ink-2); background: var(--white); }
.field input:focus, .field textarea:focus { border-color: var(--ice-2); }
.field-full { grid-column: 1 / -1; }
.field-error { color: var(--error); font-size: .8rem; min-height: 1.1em; }
.field-inline { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.qty-input { width: 84px; border: 1.5px solid #d7dbe6; border-radius: var(--radius-sm); padding: .6em; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.faq-item { border-bottom: 1px solid rgba(11,20,55,.1); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--ice-2); transform: translateY(-2px); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .8em; color: var(--silver-dim); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.3rem; font-weight: 700; color: var(--ink-2); }
.product-detail__features { margin: 1em 0; display: grid; gap: 8px; }
.product-detail__features li { padding-left: 1.4em; position: relative; }
.product-detail__features li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.product-detail__buy { display: flex; gap: 14px; align-items: end; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(11,20,55,.08); vertical-align: middle; }
.cart-table__prod { display: flex; align-items: center; gap: 12px; }
.cart-table__prod img { width: 60px; height: 45px; object-fit: cover; border-radius: 8px; }
.cart-summary { margin-top: 24px; padding: 20px 24px; background: var(--paper); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-summary strong { font-size: 1.25rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info svg { color: var(--ice-2); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--silver); overflow: hidden; }
.site-footer__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.site-footer__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 32px; display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: .8em; font-family: var(--font-body); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-col--brand p { color: var(--silver); }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); }
.newsletter-form__row { display: flex; gap: 10px; }
.newsletter-form__row input { flex: 1; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); padding: .7em 1em; }
.newsletter-form__row input::placeholder { color: var(--silver-dim); }
.site-footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; text-align: center; font-size: .85rem; color: var(--silver-dim); }
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-2); display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--silver); flex: 1 1 220px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   COMPONENTS:
   .container - centered max-width content wrapper
   .section - standard vertical section padding
   .grid / .grid-2 / .grid-3 - responsive auto-fit grids
   .eyebrow - small uppercase label above headings
   .aurora-bg - dark gradient-mesh background with grain overlay
   .site-header / .primary-nav / .nav-toggle - sticky header & off-canvas mobile nav
   .btn / .btn-sweep / .btn-outline / .btn-ghost-nav / .btn-ghost-dark / .btn-icon - button variants
   .hero / .hero__title / .hero__art / .badge-rotate - home hero with rotating badge
   .stack - card-stack-that-fans-out component
   .reveal / .reveal-ready / .in-view - scroll reveal animation states
   .divider / .seal - decorative SVG dividers and seals
   .compass / .compass__form / .route-results / .route-card - Trasový kompas feature
   .product-card / .product-strip - catalog product card and mobile scroll-snap strip
   .page-hero - inner page hero banner
   .breadcrumbs - breadcrumb trail
   .prose - long-form legal/text content measure
   .legal-toc - table of contents box for legal pages
   .notice / .notice--ok / .notice--error - inline message boxes
   .form-grid / .field / .field-error / .field-inline / .qty-input / .hp-field - form layout & inputs
   .faq / .faq-item - FAQ accordion (details/summary)
   .product-detail - product page two-column layout
   .cart-table / .cart-summary - cart page table and totals box
   .contact-layout / .contact-info - contact page two-column layout
   .site-footer / .footer-col / .newsletter-form - footer layout
   .cookie-banner - cookie consent banner
   ========================================================= */
