/* Servis Bijele Tehnike — shared styles */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f3f2f2;
  color: #201e1d;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: #201e1d; text-decoration: none; }
a:hover { color: #ec3013; }
input, select, textarea, button { font-family: inherit; font-size: 16px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #ec3013; outline-offset: 2px; }
::selection { background: #fbd3cb; }
.mono { font-family: 'JetBrains Mono', monospace; }
.wrap { min-height: 100vh; display: flex; flex-direction: column; background: #f3f2f2; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar { background: #201e1d; color: #f3f2f2; font-size: 13px; }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.topbar-in a { color: #f3f2f2; }
.topbar-in a:first-child, .topbar-in a.tel { font-weight: 600; }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: #f3f2f2; border-bottom: 2px solid #201e1d; }
.header-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; background: #ec3013; color: #fff; display: flex; align-items: flex-end; justify-content: flex-start; padding: 4px 5px; font-weight: 800; font-size: 13px; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.logo-text span { font-size: 12px; color: #5d5856; }
nav.main { display: flex; gap: 4px; flex: 1; height: 100%; }
nav.main a { display: flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
nav.main a.active { border-bottom-color: #ec3013; color: #ec3013; }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid #201e1d; background: transparent; color: #201e1d; white-space: nowrap; }
.btn:hover { background: #201e1d; color: #f3f2f2; }
.btn-primary { background: #ec3013; color: #fff; border-color: #ec3013; }
.btn-primary:hover { background: #c92709; color: #fff; border-color: #c92709; }
.btn-dark { background: #201e1d; color: #f3f2f2; border-color: #201e1d; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-big { height: 56px; padding: 0 24px; font-size: 17px; min-width: 240px; }
.cart-btn { position: relative; }
.cart-count { background: #ec3013; color: #fff; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px; }
.menu-toggle { display: none; }
.mobile-nav { display: none; border-top: 2px solid #201e1d; background: #f3f2f2; }
.mobile-nav a { display: block; padding: 16px 24px; border-bottom: 1px solid #d9d6d4; font-weight: 700; font-size: 18px; }
.mobile-nav a.cta { background: #ec3013; color: #fff; }
.mobile-nav.open { display: grid; }

@media (max-width: 900px) {
  nav.main { display: none; }
  .header-actions .btn-primary.desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Sections */
section.block { border-bottom: 2px solid #201e1d; }
.bg-white { background: #fff; }
.bg-dark { background: #201e1d; color: #f3f2f2; }
.bg-brand { background: #ec3013; color: #fff; }
.pad { padding: 72px 24px; }
.pad-sm { padding: 56px 24px 40px; }
.eyebrow { color: #ec3013; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.eyebrow-light { color: #ff6a4f; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
.crumb { font-size: 14px; color: #5d5856; margin-bottom: 16px; }
.crumb a { text-decoration: underline; }
.lead { font-size: 19px; line-height: 1.55; color: #4a4644; }
.hover-card:hover { background: #fff; color: #201e1d; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid-3col-border { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 2px solid #201e1d; border-left: 2px solid #201e1d; }
.cell-border { border-right: 2px solid #201e1d; border-bottom: 2px solid #201e1d; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; background: #f3f2f2; }

/* Buttons link row */
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Photo placeholder */
.photo { position: relative; overflow: hidden; background: #e4e1df; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stat strip */
.stat-strip { background: #201e1d; color: #f3f2f2; padding: 20px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-strip .num { font-size: 30px; font-weight: 800; }
.stat-strip .label { font-size: 13px; color: #c9c5c3; }

/* Cards */
.card { background: #fff; border: 2px solid #201e1d; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 4/3; position: relative; border-bottom: 2px solid #201e1d; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #a01d09; }
.card .name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.card .price { font-size: 22px; font-weight: 800; }
.card .badge { position: absolute; top: 0; left: 0; background: #ec3013; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; text-transform: uppercase; }
.card-btn { height: 46px; border: none; background: #201e1d; color: #f3f2f2; font-weight: 700; text-align: left; padding: 0 16px; cursor: pointer; }
.card-btn:hover { background: #ec3013; }

/* Forms */
label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { height: 50px; border: 2px solid #201e1d; padding: 0 12px; border-radius: 0; background: #fff; }
.field textarea { height: auto; padding: 12px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check-row input { width: 20px; height: 20px; accent-color: #ec3013; flex-shrink: 0; margin: 0; }
.check-row a { text-decoration: underline; }
.pick-btn { min-height: 44px; padding: 8px 14px; border: 2px solid #201e1d; background: #fff; color: #201e1d; font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.pick-btn.active { background: #201e1d; color: #f3f2f2; }
.submit-btn { height: 58px; border: none; background: #ec3013; color: #fff; font-weight: 800; font-size: 17px; text-align: left; padding: 0 22px; cursor: pointer; }
.submit-btn:hover { background: #c92709; }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.form-msg { margin-top: 14px; font-size: 15px; }
.form-msg.ok { color: #1a7a33; }
.form-msg.err { color: #a01d09; }

/* FAQ */
.faq-item { border-bottom: 1px solid #b9b4b1; }
.faq-q { width: 100%; min-height: 64px; background: none; border: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: left; font-weight: 700; font-size: 18px; cursor: pointer; padding: 12px 0; color: #201e1d; }
.faq-sign { color: #ec3013; font-size: 24px; flex-shrink: 0; }
.faq-a { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: #4a4644; max-width: 720px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Price list */
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d9d6d4; }
.price-row .t { font-weight: 600; font-size: 16px; }
.price-row .d { font-size: 14px; color: #5d5856; }
.price-row .p { font-weight: 800; font-size: 18px; white-space: nowrap; }

/* Footer */
footer.site { background: #201e1d; color: #c9c5c3; }
.footer-top { max-width: 1280px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col .head { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-col a, .footer-col button.link { color: #c9c5c3; }
.footer-col a:hover, .footer-col button.link:hover { color: #fff; }
button.link { background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-size: 15px; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4a4644; }
.footer-bottom-in { max-width: 1280px; margin: 0 auto; padding: 20px 24px; display: grid; gap: 10px; font-size: 12px; line-height: 1.6; color: #9a9492; }

/* Mobile sticky CTA */
.mobile-cta { display: none; position: sticky; bottom: 0; z-index: 30; grid-template-columns: 1fr 1fr; border-top: 2px solid #201e1d; }
.mobile-cta a { height: 56px; font-weight: 700; display: flex; align-items: center; padding: 0 16px; }
@media (max-width: 900px) { .mobile-cta { display: grid; } }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(32,30,29,0.5); z-index: 60; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #f3f2f2; z-index: 61; display: flex; flex-direction: column; border-left: 2px solid #201e1d; transform: translateX(100%); transition: transform .2s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { height: 72px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #201e1d; }
.cart-head strong { font-weight: 800; font-size: 22px; }
.cart-body { flex: 1; overflow: auto; }
.cart-line { padding: 16px 20px; border-bottom: 1px solid #d9d6d4; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.cart-line .thumb { width: 64px; height: 64px; border: 2px solid #201e1d; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: flex; align-items: center; }
.qty button { width: 32px; height: 32px; border: 2px solid #201e1d; background: #fff; cursor: pointer; font-weight: 700; }
.qty span { width: 36px; height: 32px; border-top: 2px solid #201e1d; border-bottom: 2px solid #201e1d; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cart-foot { border-top: 2px solid #201e1d; padding: 20px; display: grid; gap: 10px; }
.cart-empty-msg { padding: 24px 20px; margin: 0; font-size: 17px; color: #4a4644; }

/* Toast */
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 70; background: #201e1d; color: #fff; padding: 14px 18px; font-weight: 600; border-left: 6px solid #ec3013; max-width: 360px; display: none; }
.toast.show { display: block; }

/* Cookie banner */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 2px solid #201e1d; box-shadow: 0 -8px 24px rgba(32,30,29,0.12); display: none; }
.cookie-bar.show { display: block; }
.cookie-in { max-width: 1280px; margin: 0 auto; padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: center; }
.cookie-text { display: grid; gap: 6px; }
.cookie-text span { font-size: 14px; line-height: 1.55; color: #4a4644; }
.cookie-detail { display: none; gap: 8px; margin-top: 8px; font-size: 14px; }
.cookie-detail.show { display: grid; }
.cookie-detail label { display: flex; gap: 10px; align-items: center; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Utility */
.grid-gap { display: grid; gap: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
