/* Palacinke Zvezda - Kraft eco design system */
@font-face { font-family: initial; src: local(initial); }
:root {
  --forest: #2f4a35;
  --forest-dark: #1d2f22;
  --bone: #f3ebd8;
  --kraft: #e4d3b2;
  --kraft-dark: #c9ad7c;
  --brass: #a9772f;
  --brass-light: #c99a4e;
  --ink: #241f16;
  --white: #fffaf0;
  --danger: #8a3324;
  --radius: 14px;
  --shadow-paper: 0 10px 24px -12px rgba(36,31,22,.45), 0 2px 4px rgba(36,31,22,.18);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "Consolas", "SF Mono", Menlo, monospace;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-image:
    repeating-linear-gradient(0deg, rgba(36,31,22,.025) 0 1px, transparent 1px 3px);
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--forest-dark); line-height: 1.12; margin: 0 0 .5em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--white); padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- grain / texture overlay ---------- */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bone); border-bottom: 3px solid var(--forest); box-shadow: var(--shadow-paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-dark); }
.logo-mark { flex-shrink: 0; color: var(--forest); }
.logo-word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .01em; }
.logo-word em { display: block; font-style: normal; font-size: .62em; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 12px; min-height: 44px; display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { color: var(--forest-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--forest-dark); text-decoration: none; }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--brass); color: var(--white); font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; color: var(--forest-dark); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(82vw, 320px); background: var(--bone); border-left: 3px solid var(--forest); padding: 90px 20px 20px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; z-index: 90; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { padding: 12px 14px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate; }
.btn-brass { background: var(--brass); color: var(--white); border-color: var(--brass); }
.btn-brass::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--forest); z-index: -1; transition: left .3s ease; }
.btn-brass:hover::before, .btn-brass:focus-visible::before { left: 0; }
.btn-outline { background: transparent; color: var(--forest-dark); border-color: var(--forest-dark); }
.btn-outline:hover { background: var(--forest-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- hero marquee ---------- */
.hero { position: relative; padding: 48px 0 70px; overflow: hidden; }
.hero-marquee { background: var(--forest-dark); color: var(--bone); overflow: hidden; white-space: nowrap; padding: 10px 0; border-top: 2px solid var(--brass); border-bottom: 2px solid var(--brass); }
.hero-marquee-track { display: inline-flex; gap: 2.5rem; animation: marquee 22s linear infinite; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; }
.hero-marquee-track span { display: flex; align-items: center; gap: 2.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-marquee-track { animation: none; } }

/* ---------- display headline ---------- */
.display-title { font-size: clamp(2.3rem, 6vw, 4.6rem); margin: 0 0 .3em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 42ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); }
.reveal-clip.in-view { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ---------- stamp / seal ---------- */
.stamp { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); border: 2px solid var(--forest); border-radius: 999px; padding: 4px 14px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-3deg); }

/* ---------- section dividers & patterns ---------- */
.divider { width: 100%; height: 28px; color: var(--brass); }
.divider svg { width: 100%; height: 100%; }
.section { padding: 64px 0; position: relative; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--forest-dark); color: var(--bone); }
.section-dark h2, .section-dark h3 { color: var(--bone); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: .4em; }

/* ---------- timeline / route layout ---------- */
.route { position: relative; padding: 20px 0; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; color: var(--brass); opacity: .55; }
.route-steps { position: relative; z-index: 1; display: grid; gap: 40px; }
.route-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.route-step-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--bone); border: 2px solid var(--forest); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--forest-dark); }
.route-step:nth-child(even) { grid-template-columns: 56px 1fr; }
@media (min-width: 720px) {
  .route-step:nth-child(odd) { margin-right: 18%; }
  .route-step:nth-child(even) { margin-left: 18%; }
}

/* ---------- cards ---------- */
.card { background: var(--bone); border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -14px rgba(36,31,22,.5); }
.product-card .media { aspect-ratio: 4/3; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .media img { transform: scale(1.08); }
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .price { font-weight: 800; color: var(--brass); font-size: 1.1rem; margin-top: auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }

/* ---------- stacker (signature feature) ---------- */
.stacker { background: var(--bone); border: 2px dashed var(--brass); border-radius: var(--radius); padding: 28px; display: grid; gap: 28px; }
@media (min-width: 760px) { .stacker { grid-template-columns: 1fr 320px; } }
.stacker-form { display: grid; gap: 18px; }
.stacker-group { border: none; margin: 0; padding: 0; }
.stacker-group legend { font-weight: 700; color: var(--forest-dark); margin-bottom: 8px; padding: 0; }
.stacker-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--kraft-dark); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: var(--white); }
.stacker-choice:has(input:checked) { border-color: var(--brass); background: #fff7e6; }
.stacker-choice input { accent-color: var(--brass); margin-right: 8px; }
.stacker-price { color: var(--brass); font-weight: 700; font-size: .85rem; }
.stacker-result { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--white); border-radius: var(--radius); padding: 20px; }
.stacker-plate { color: var(--brass); }
.stacker-name { font-weight: 600; min-height: 2.6em; }
.stacker-total { font-family: var(--font-display); font-size: 2rem; color: var(--forest-dark); margin: 0; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--forest-dark); color: var(--bone); padding: 52px 0 40px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); }
.breadcrumbs { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--kraft-dark); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--kraft-dark); }
.breadcrumbs a { color: var(--bone); }

/* ---------- prose / legal text ---------- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--bone); border: 1px solid var(--kraft-dark); border-radius: var(--radius); padding: 18px 22px; max-width: var(--measure); margin: 0 auto 32px; }
.legal-toc h2 { font-size: 1.1rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- notice ---------- */
.notice { border-radius: 10px; padding: 14px 18px; border: 1px solid; margin: 1.2em 0; }
.notice-info { background: #eef3ee; border-color: var(--forest); color: var(--forest-dark); }
.notice-warning { background: #fbf1df; border-color: var(--brass); color: #5c3c0d; }
.notice-error { background: #fbe9e5; border-color: var(--danger); color: var(--danger); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 760px; }
.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 { min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--kraft-dark); border-radius: 8px; background: var(--white); font: inherit; accent-color: var(--brass); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field-error { color: var(--danger); font-size: .82rem; min-height: 1.2em; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1; min-width: 160px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-size: .9rem; }
.form-msg-ok { color: var(--forest); }
.form-msg-error { color: var(--danger); }

/* ---------- faq ---------- */
.faq { max-width: var(--measure); margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bone); border: 1px solid var(--kraft-dark); border-radius: 10px; padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brass); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* ---------- product detail ---------- */
.product-detail { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .product-detail { grid-template-columns: 1fr 1fr; 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.8rem; color: var(--brass); font-weight: 800; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--kraft-dark); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; border: none; background: var(--bone); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-stepper input { width: 44px; text-align: center; border: none; height: 40px; font: inherit; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--kraft-dark); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-row-main { display: flex; gap: 12px; align-items: center; }
.cart-summary { background: var(--bone); border: 1px solid var(--kraft-dark); border-radius: var(--radius); padding: 22px; max-width: 360px; margin-left: auto; display: grid; gap: 10px; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .total { font-weight: 800; font-size: 1.2rem; border-top: 1px dashed var(--kraft-dark); padding-top: 10px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--forest-dark); }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-layout { grid-template-columns: 1fr 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 { color: var(--brass); flex-shrink: 0; margin-top: 2px; }

/* ---------- utilities ---------- */
.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(220px, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1em; } .mt-2 { margin-top: 2em; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1em; } .mb-2 { margin-bottom: 2em; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-dark); color: var(--kraft); padding: 56px 0 20px; margin-top: 60px; }
.footer-inner { display: grid; gap: 40px; grid-template-columns: 1.2fr 2fr 1.2fr; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { margin: 10px 0; color: var(--bone); }
.footer-brand span { color: var(--kraft-dark); font-size: .88rem; }
.footer-mail { color: var(--bone); display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-links h3 { color: var(--bone); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--kraft); text-decoration: none; }
.footer-links a:hover { color: var(--bone); text-decoration: underline; }
.newsletter-form h3 { color: var(--bone); }
.newsletter-form input { min-height: 44px; border-radius: 8px; border: 1.5px solid var(--kraft-dark); padding: 0 12px; background: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 18px; font-size: .85rem; color: var(--kraft-dark); }

/* ---------- cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; margin: 0 auto; background: var(--forest-dark); color: var(--bone); border: 2px solid var(--brass); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-paper); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner a { color: var(--bone); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .display-title { font-size: clamp(3rem, 10vw, 7rem); }

/* COMPONENTS:
.site-header - sticky site header with logo, nav, cart, mobile toggle
.main-nav - primary navigation, becomes off-canvas drawer below 860px
.cart-link / .cart-count - header cart icon and animated count badge
.btn / .btn-brass / .btn-outline / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.hero / .hero-marquee / .hero-marquee-track - homepage hero and scrolling brand-word strip
.display-title / .lead - oversized fluid headline and intro paragraph
.reveal / .reveal-clip / .in-view - scroll-reveal animation hooks (IntersectionObserver)
.stamp - rotated rubber-stamp style badge
.divider - full-width decorative SVG section divider
.section / .section-tight / .section-dark / .section-title / .eyebrow - section scaffolding
.route / .route-svg / .route-steps / .route-step / .route-step-badge - winding timeline/route layout
.card - generic paper card surface
.product-card / .product-grid / .product-strip - catalog card and layouts (grid + scroll-snap strip)
.stacker / .stacker-form / .stacker-group / .stacker-choice / .stacker-result - Zvezdna Nalagalnica builder
.page-hero - inner page hero band
.breadcrumbs - breadcrumb trail list
.prose - long-form legal/article text with readable measure
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-warning / .notice-error - callout boxes
.form-grid / .field / .field-error / .field-row / .hp-field / .form-msg - form layout and states
.faq / .faq-item - accordion built on details/summary
.product-detail / .qty-stepper - single product page layout and quantity control
.cart-table / .cart-summary / .cart-empty - cart/checkout table and summary panel
.contact-layout / .contact-info - two-column contact page layout
.grid / .grid-2 / .grid-3 - utility grid layouts
.mt-*, .mb-*, .gap-*, .flex, .text-center - spacing/layout utilities
.site-footer / .footer-inner / .footer-links / .newsletter-form - global footer
.cookie-banner / .cookie-actions - GDPR cookie consent banner
.error-page - 404 page layout
*/

/* wg-contrast-autofix */
#homeProducts a.product-card.card div.body h3 { color: #111111 !important; }
