/* ============ Kolesa Lipa — design system ============ */
:root {
  --ink: #1c1b19;
  --ivory: #f3ece0;
  --ivory-dim: #e9dfcf;
  --paper: #faf6ee;
  --saffron: #e09a35;
  --saffron-dark: #b4432c;
  --line: #d8cdb8;
  --charcoal-60: rgba(28,27,25,.6);
  --radius: 2px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif", serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --measure: 68ch;
  --container: 1240px;
  --ease: cubic-bezier(.22,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -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); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: var(--ink); color: var(--ivory); padding: .5em 1em; z-index: 999; }
:focus-visible { outline: 2px solid var(--saffron-dark); outline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; accent-color: var(--saffron-dark); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.u-mt-xl { margin-top: clamp(3rem, 8vw, 6rem); }
.u-mt-l { margin-top: clamp(2rem, 5vw, 3.5rem); }
.u-flow > * + * { margin-top: 1em; }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.vertical-accent {
  writing-mode: vertical-rl; letter-spacing: .25em; text-transform: uppercase;
  font-size: .72rem; color: var(--charcoal-60); font-family: var(--font-mono);
}

/* ---- Buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); font-size: .92rem; letter-spacing: .03em;
  overflow: hidden; z-index: 0; min-height: 44px; transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--ink); z-index: -1; transition: left .35s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--ivory); }
.btn-accent { background: var(--saffron-dark); border-color: var(--saffron-dark); color: var(--ivory); }
.btn-accent::before { background: var(--ink); }
.btn-accent:hover, .btn-accent:focus-visible { color: var(--ivory); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost.on-dark { border-color: rgba(243,236,224,.5); color: var(--ivory); }
.btn-ghost.on-dark::before { background: rgba(243,236,224,.18); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--container); margin-inline: auto; padding: .8rem clamp(1.1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.logo-mark { color: var(--ink); flex-shrink: 0; }
.logo-word { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.logo-word-top { font-size: 1.15rem; letter-spacing: .02em; }
.logo-word-bottom { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--saffron-dark); }
.nav-toggle { background: none; border: none; display: flex; padding: .4rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
@media (min-width: 880px) { .nav-toggle { display: none; } }
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: .92rem; letter-spacing: .02em; position: relative; padding-bottom: .2em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--saffron-dark); transition: right .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--saffron-dark); }
.cart-link { position: relative; display: inline-flex; padding: .4rem; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--saffron-dark); color: var(--ivory); font-size: .65rem; min-width: 1.3em; height: 1.3em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.5)} 100%{transform:scale(1)} }
.nav-close { display: none; background: none; border: none; align-self: flex-end; }

@media (max-width: 879px) {
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--ink); color: var(--ivory);
    display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem; transform: translateX(100%);
    visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.4rem; }
  .site-nav a { color: var(--ivory); }
  .nav-close { display: flex; color: var(--ivory); min-width: 44px; min-height: 44px; }
  .cart-link { color: var(--ivory); }
}
body.nav-locked { overflow: hidden; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-frame {
  position: relative; border: 10px solid var(--ink); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr; min-height: 60vh; overflow: hidden; background: var(--ink);
}
@media (min-width: 880px) { .hero-frame { grid-template-columns: 1.1fr .9fr; min-height: 72vh; } }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05) saturate(1.05); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,25,0) 40%, rgba(28,27,25,.55)); }
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.hero-copy { position: relative; color: var(--ivory); padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.hero-eyebrow { font-family: var(--font-mono); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--saffron); }
.hero-title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); color: var(--ivory); }
.hero-lede { max-width: 32ch; color: rgba(243,236,224,.85); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-seal { position: absolute; right: clamp(1rem,3vw,2.5rem); top: clamp(1rem,3vw,2.5rem); width: clamp(64px,8vw,92px); height: clamp(64px,8vw,92px); color: var(--saffron-dark); }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(1.6rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero .lede { max-width: var(--measure); color: var(--charcoal-60); font-size: 1.05rem; margin-top: .6rem; }
.breadcrumbs { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; color: var(--charcoal-60); margin-bottom: .8rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Sections / dividers ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-eyebrow { font-family: var(--font-mono); letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; color: var(--saffron-dark); display: block; margin-bottom: .5rem; }
.divider { width: 100%; height: 32px; color: var(--line); }
.seal-stamp { color: var(--saffron-dark); }

/* ---- Cards ---- */
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px -16px rgba(28,27,25,.35); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--charcoal-60); }
.card-title { font-size: 1.2rem; margin-top: .3rem; }
.card-price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--saffron-dark); margin-top: .5rem; }
.card-actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }

.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
@media (min-width: 880px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); overflow: visible; } .product-strip .card { flex: initial; } }

/* ---- Route Advisor (signature feature) ---- */
.route-advisor { background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: clamp(1.6rem,4vw,3rem); position: relative; overflow: hidden; }
.route-advisor h2 { color: var(--ivory); }
.route-advisor-grid { display: grid; gap: 1.6rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .route-advisor-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.ra-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.ra-field label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); }
.ra-field select { background: var(--ivory); border: none; border-radius: var(--radius); padding: .7em .9em; min-height: 44px; }
.ra-field input[type="range"] { width: 100%; }
.route-advisor-result { background: rgba(243,236,224,.08); border: 1px solid rgba(243,236,224,.25); border-radius: var(--radius); padding: 1.2rem 1.4rem; min-height: 90px; }
.route-advisor-pick { font-size: 1.1rem; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in-view { transition: none; opacity: 1; transform: none; clip-path: none; } }

/* ---- Prose / legal ---- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: #2c2a26; }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; max-width: var(--measure); }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; font-size: .92rem; }

/* ---- Notices ---- */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--saffron-dark); background: var(--ivory); padding: 1rem 1.2rem; border-radius: var(--radius); }
.notice-info { border-left-color: #4a6a7a; }
.notice-success { border-left-color: #4c7a4a; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .75em .9em; background: var(--paper); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--saffron-dark); }
.field-error { color: var(--saffron-dark); font-size: .8rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--saffron-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; min-height: 1.3em; }
.form-msg-ok { color: #3f6b3f; }
.form-msg-error { color: var(--saffron-dark); }

.newsletter-row { display: flex; gap: .5rem; }
.newsletter-row input { flex: 1; min-width: 0; border-radius: var(--radius); border: 1px solid var(--line); padding: .6em .8em; min-height: 44px; }

/* ---- Contact layout ---- */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .8rem; }
.contact-info li { display: flex; gap: .7em; align-items: flex-start; }

/* ---- FAQ ---- */
.faq { max-width: var(--measure); display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: .2rem 0; }
.faq-item summary { padding: 1em 1.2em; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1em; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3em; color: var(--saffron-dark); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.2em 1.1em; color: #2c2a26; }

/* ---- Product detail ---- */
.product-detail { display: grid; gap: clamp(1.6rem,4vw,3rem); }
@media (min-width: 880px) { .product-detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-detail-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--saffron-dark); }
.product-detail-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; margin: 1.2rem 0; }
.product-detail-features li { display: flex; gap: .6em; align-items: center; }
.qty-row { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; }
.qty-row button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--ivory); border-radius: var(--radius); }

/* ---- Cart ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9em .6em; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; max-width: 24rem; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; padding: .4em 0; }
.cart-summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .5em; padding-top: .7em; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--charcoal-60); }

/* ---- Cookie banner ---- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); max-width: 640px; margin-inline: auto; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--ivory); }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--ivory); margin-top: clamp(3rem,6vw,5rem); position: relative; }
.footer-divider { width: 100%; height: 30px; color: var(--saffron); display: block; }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: 1rem clamp(1.1rem,4vw,2.5rem) 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo .logo-word-top, .footer-logo .logo-word-bottom { color: var(--ivory); }
.footer-logo .logo-word-bottom { color: var(--saffron); }
.footer-tagline { color: rgba(243,236,224,.7); font-size: .92rem; max-width: 28ch; }
.footer-col h3 { color: var(--ivory); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; font-family: var(--font-mono); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(243,236,224,.8); }
.footer-col a:hover { color: var(--saffron); }
.footer-contact p { color: rgba(243,236,224,.8); display: flex; gap: .5em; align-items: center; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(243,236,224,.15); padding: 1rem clamp(1.1rem,4vw,2.5rem); display: flex; justify-content: space-between; font-size: .82rem; color: rgba(243,236,224,.6); max-width: var(--container); margin-inline: auto; }

/* ---- 404 ---- */
.page-404 { text-align: center; padding: clamp(4rem,10vw,7rem) 1rem; }
.page-404 .code { font-family: var(--font-mono); font-size: clamp(4rem,14vw,8rem); color: var(--saffron-dark); line-height: 1; }

@media (max-width: 480px) {
  .hero-frame { border-width: 6px; }
}

/* COMPONENTS:
.container - centered max-width wrapper with responsive padding
.grid / .grid-2 / .grid-3 - responsive CSS grid helpers
.vertical-accent - vertical rotated mono label text
.btn / .btn-accent / .btn-ghost / .btn-sm / .btn-block - button variants with fill-sweep hover
.site-header / .header-inner - sticky site header
.logo / .logo-mark / .logo-word - SVG logo + wordmark
.nav-toggle / .nav-close / .site-nav - mobile off-canvas navigation
.cart-link / .cart-count - header cart icon + animated badge (.bump)
.hero / .hero-frame / .hero-media / .hero-grain / .hero-copy / .hero-eyebrow / .hero-title / .hero-lede / .hero-actions / .hero-seal - home hero composition
.page-hero - inner page hero/title band
.breadcrumbs - small breadcrumb trail
.section / .section-head / .section-eyebrow - generic content section
.divider / .seal-stamp - decorative SVG divider and seal
.card / .card-media / .card-body / .card-cat / .card-title / .card-price / .card-actions - product/service card
.product-strip - horizontal scroll-snap card strip on mobile, grid on desktop
.route-advisor / .route-advisor-grid / .ra-field / .route-advisor-result / .route-advisor-pick - signature Route Advisor feature
.reveal / .in-view / .reveal-delay-1/2/3 - scroll-reveal animation hooks
.prose - readable long-form legal/article text
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-success - callout boxes
.form-grid / .field / .field-error / .hp-field / .form-msg - form layout and validation
.newsletter-row - inline email + submit row
.contact-layout / .contact-info - two-column contact page layout
.faq / .faq-item - accordion FAQ using details/summary
.product-detail / .product-detail-media / .product-detail-info / .product-detail-features / .qty-row - product detail template
.cart-table / .cart-summary / .cart-summary-row / .cart-empty - cart & checkout layout
.cookie-banner / .cookie-actions - cookie consent banner
.site-footer / .footer-inner / .footer-col / .footer-contact / .footer-bottom - site footer
.page-404 - 404 page layout
*/

/* ---- Missing component styles ---- */
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seal {
  font-size: 0.8rem;
  color: rgba(243,236,224,.6);
}

.qty-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5em 0.6em;
  background: var(--paper);
  min-height: 44px;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

/* wg-contrast-autofix */
footer.site-footer div.footer-inner div.footer-brand p.vertical-accent { color: #ffffff !important; }
#cookie-decline { color: #ffffff !important; }
