/* Milk Master — mobile-first. Light, milk-white site; logo blue is the only strong color. */
:root {
  --bg: #FFFFFF;
  --surface: #F2F6FB;
  --line: #DCE4EE;
  --line-strong: #B9C6D6;
  --ink: #0F1B2D;
  --muted: #4B5869;
  --accent: #2264C8;
  --accent-ink: #184FA3;
  --accent-soft: #E4EEFB;
  --ok: #17643A;
  --ok-bg: #E3F4E8;
  --soon: #1E4F9C;
  --soon-bg: #E4EEFB;
  --on-dark: #C8D3E1;
  --display: 'Barlow', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --wrap: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-weight: 800; font-size: clamp(32px, 7vw, 60px); }
h2 { font-weight: 800; font-size: clamp(26px, 4.6vw, 40px); }
h3 { font-weight: 700; font-size: 21px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section { padding-block: 44px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin-bottom: 22px; }
.crumbs { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--muted); }

/* Icons and links with arrows */
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-ink); }
.arrow-link:hover .ico { transform: translateX(3px); }
.arrow-link .ico { transition: transform .15s ease; }
.arrow-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 200px; }

/* Top bar + header */
.topbar { display: none; background: var(--ink); color: #E6EDF6; font-size: 15px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.topbar span + span { margin-left: 0; }
.topbar .tb-right { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; text-decoration: none; }
.logo span:first-child { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--accent); text-shadow: 1.5px 1.5px 0 var(--ink); white-space: nowrap; }
.logo span:last-child { height: 3px; background: var(--accent); border-radius: 2px; }
.nav { display: none; gap: 28px; font-weight: 600; font-size: 17px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.header-cta { display: none; }
.menu-btn { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-btn[aria-expanded="true"] { background: var(--surface); }
/* Mobile menu: a full panel under the sticky header; the page behind does not scroll while it is open. */
.drawer { position: fixed; left: 0; right: 0; top: var(--drawer-top, 72px); bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 27, 45, 0.08); }
.header .drawer .wrap.drawer-inner { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 22px; padding-block: 8px calc(28px + env(safe-area-inset-bottom, 0px)); }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 8px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-nav a[aria-current="page"] { color: var(--accent); }
.drawer-nav a[aria-current="page"] .arrow-dot { background: var(--accent); color: #FFFFFF; }
.drawer-contact { display: flex; flex-direction: column; gap: 10px; }
.drawer-contact .btn { width: 100%; justify-content: center; }
.drawer-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.drawer-chat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-chat a { min-height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; background: var(--surface); color: var(--ink); }
.drawer-hours { margin: 2px 0 0; color: var(--muted); font-size: 16px; text-align: center; }
html.menu-open { overflow: hidden; }
html.menu-open .actionbar { display: none; }

/* Mobile action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 27, 45, 0.08); }
.actionbar a { flex: 1; min-height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; background: var(--surface); color: var(--ink); }
.actionbar a.primary { background: var(--accent); color: #FFFFFF; }
body { padding-bottom: 80px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-soon { background: var(--soon-bg); color: var(--soon); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero-lead { font-size: 19px; color: #3E4B5C; max-width: 34em; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 6px 0 12px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 18px; min-height: 54px; background: transparent; color: var(--ink); }
.search button, .search a.go { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--ink); color: #FFFFFF; font: inherit; font-weight: 700; text-decoration: none; display: flex; align-items: center; cursor: pointer; }
.hero-art { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.hero-art figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-width: 100%; }
.hero-art figure { min-width: 0; overflow: hidden; }
.hero-art figure:first-child { grid-row: span 2; aspect-ratio: auto; position: relative; }
.hero-art figure:first-child img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-art figcaption { position: absolute; left: 10px; bottom: 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick a { border: 1px solid var(--line-strong); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }

/* Services */
.services { display: grid; gap: 12px; }
.service { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.service h3 { font-size: 26px; }
.service:hover { border-color: var(--accent); color: var(--ink); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.cat:hover { border-color: var(--accent); color: var(--ink); }
.cat .thumb { aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.cat .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cat b { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; }
.cat small { color: var(--muted); font-size: 14px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.card:hover { border-color: var(--accent); color: var(--ink); }
.card .thumb { aspect-ratio: 1 / 1; max-width: 100%; background: var(--surface); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .ref { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.card .meta { font-size: 14px; color: var(--muted); margin-top: auto; }
.card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }

/* Why */
.why { display: grid; gap: 22px; }
.why div { border-top: 3px solid var(--accent); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.why h3 { font-size: 22px; }

/* CTA band */
.cta-band { background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 28px 22px; display: grid; gap: 20px; }
.cta-band p { color: var(--on-dark); font-size: 18px; }
.cta-band .btn-ghost { background: #FFFFFF; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); font-size: 16px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 26px; padding-block: 40px; }
.footer a { color: var(--on-dark); }
.footer b { color: #FFFFFF; }
.footer .col { display: flex; flex-direction: column; gap: 6px; }
.footer .fl { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 26px; text-transform: uppercase; color: #FFFFFF; }
.footer .note { grid-column: 1 / -1; font-size: 14px; border-top: 1px solid #2B3B52; padding-top: 16px; }

/* Catalog */
.cat-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.cat-head .wrap { display: flex; flex-direction: column; gap: 14px; padding-block: 22px; }
.catalog { display: grid; gap: 18px; padding-block: 18px 48px; }
.filters { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fgroup { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fgroup > span { font-weight: 700; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chip small { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip[aria-pressed="true"] small { color: #C8D3E1; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h2 { font-size: 24px; }
.empty { background: var(--surface); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* Product page */
.pd { display: grid; gap: 22px; padding-block: 14px 36px; }
.pd-media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-stage { aspect-ratio: 1 / 1; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 22px; }
.pd-stage img { width: 100%; height: 100%; object-fit: contain; }
.tabs { display: flex; gap: 8px; }
.pd-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pd-ref b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px 12px; }
.pd-orig { font-size: 15px; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--muted); width: 44%; padding-right: 14px; }
.specs td { font-weight: 600; overflow-wrap: anywhere; }
.list-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.list-link:hover { border-color: var(--accent); color: var(--ink); }
.list-link img { width: 56px; height: 56px; object-fit: contain; background: var(--surface); border-radius: 8px; padding: 4px; flex-shrink: 0; }
.list-link .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.list-link .t b { font-family: var(--display); font-size: 18px; }
.list-link .t span { font-size: 15px; overflow-wrap: anywhere; }

/* Forms */
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fields { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--bg); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input[readonly] { background: var(--surface); font-weight: 700; }
.done { background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.done b { font-size: 20px; }

/* Steps, contact cards */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.cards3 { display: grid; gap: 12px; }
.ccard { border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--surface); color: var(--ink); }
.ccard.primary { background: var(--accent); color: #FFFFFF; }
.ccard small { font-size: 15px; font-weight: 600; opacity: 0.85; }
.ccard b { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.ccard b.mail { font-size: 22px; }
.map { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 14px; display: block; }
.form-error { background: #FDECEC; color: #9B1C1C; border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.form-error a { color: inherit; font-weight: 700; }
.form-note { font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.ph { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 15px; padding: 20px; min-height: 220px; }
.two { display: grid; gap: 24px; }

/* Tablet and up */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields .full { grid-column: 1 / -1; }
  .cards3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .name { font-size: 16px; }
  .wrap { padding-inline: 24px; }
}
/* Desktop */
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 18px; }
  .actionbar, .menu-btn, .drawer { display: none !important; }
  .topbar { display: block; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; min-height: 48px; }
  .logo span:first-child { font-size: 32px; }
  .section { padding-block: 64px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-block: 56px 64px; gap: 48px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .catalog .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr auto; padding: 44px; align-items: center; }
  .cta-band .btn-row .btn { flex: 0 0 auto; }
  .catalog { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; padding-block: 28px 72px; }
  .filters { position: sticky; top: 96px; align-self: start; }
  .filters .chips { flex-wrap: wrap; overflow: visible; }
  .filters .chips.cats-chips { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
  .cats-chips .chip { border: 0; border-radius: 10px; justify-content: space-between; width: 100%; }
  .cats-chips .chip[aria-pressed="true"] { background: var(--accent); }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 22px 56px; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Hero with the full Milk Master logo: logo on its own row on phones, wide left column on desktop. */
.hero-art figure.logo { grid-column: 1 / -1; grid-row: auto; background: transparent; border: 0; padding: 0; aspect-ratio: auto; }
.hero-art figure.logo img { position: static; width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
@media (min-width: 960px) {
  .hero-art.has-logo { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .hero-art figure.logo { grid-column: auto; grid-row: span 2; }
  .hero-art figure.logo img { max-width: none; }
}

/* Price: real price in ink, "Cena na upit" muted. */
.card .price { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); margin-top: 2px; }
.card .price.price-ask { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--muted); }
.pd-price { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--ink); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price small { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--muted); }
.pd-price.price-ask { font-size: 22px; color: var(--accent-ink); }
.pd-desc p, .pd-desc li { font-size: 17px; }
.pd-desc ul, .pd-desc ol { margin: 0; padding-left: 22px; }
.pd-desc h3 { font-size: 20px; margin-top: 6px; }

/* Blog: post cards, article, FAQ. */
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 16px; }
.post-card:hover { border-color: var(--accent); }
.post-thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; }
.post-excerpt { font-size: 16px; color: var(--muted); }
.post, .post-crumbs { max-width: 760px; }
.post { padding-block: 8px 40px; }
.post-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 6px 0 10px; }
.post-cover { margin: 18px 0 8px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.post-cover img { width: 100%; height: auto; display: block; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 34px 0 10px; line-height: 1.2; }
.prose h3 { font-size: 21px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 22px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.post-faq { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.post-faq h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 4px; }
.post-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--bg); }
.post-faq details[open] { border-color: var(--line-strong); }
/* Own +/- icon inside the box: the browser's marker sits outside it and overflows the card. */
.post-faq summary { cursor: pointer; font-weight: 700; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.35; padding: 14px 0; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%232264C8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform .2s; }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.post-faq details > div { padding-bottom: 14px; font-size: 17px; }
.post-faq details > div p { margin: 0 0 8px; }

/* Blog article blocks (Web Tonic / Octo layout): byline, key takeaways, tables, callout, sources */
.post-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); margin-top: 6px; }
.takeaways { margin: 26px 0 8px; padding: 18px 22px; background: var(--accent-soft); border-radius: 14px; }
.prose .takeaways h2 { margin: 0 0 10px; font-size: 22px; }
.prose .takeaways ul { margin: 0; }
.prose .tbl { margin: 24px 0 6px; }
.prose .tbl figcaption, .prose .tbl-cap { font-weight: 700; font-size: 16px; margin: 0 0 8px; color: inherit; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--surface); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.prose .tbl-src { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.callout { margin: 22px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.callout b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); margin-bottom: 4px; }
.prose .callout p { margin: 0; }
.post-sources { margin-top: 34px; }
.post-sources h2 { font-size: clamp(22px, 3vw, 26px); margin-bottom: 10px; }
.post-sources ol { padding-left: 22px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.post-sources a { overflow-wrap: anywhere; }

/* Article on phones: a notch smaller and tighter so long Serbian words and tables fit. */
@media (max-width: 639px) {
  .post-head h1 { font-size: 28px; }
  .prose { font-size: 17px; line-height: 1.65; }
  .prose h2 { font-size: 23px; margin-top: 30px; }
  .prose ul, .prose ol { padding-left: 20px; }
  .takeaways { padding: 14px 16px; margin-inline: -4px; }
  .prose .takeaways h2 { font-size: 20px; }
  .tbl table { font-size: 14px; min-width: 480px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .callout { padding: 12px 14px; }
  .post-faq details { padding: 0 14px; }
  .post-faq details > div { font-size: 16px; }
  .post-sources ol { padding-left: 18px; }
}
/* Tables that need sideways scrolling show a soft edge so it is obvious there is more. */
.tbl-scroll { background: linear-gradient(to right, var(--bg) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, transparent) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(15,27,45,.14), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(15,27,45,.14), transparent) right / 10px 100% no-repeat scroll; }

/* Cookie consent bar: above the phone action bar on small screens, bottom-left card on desktop. */
.consent { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 27, 45, 0.16); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.consent p { margin: 0; color: var(--ink); }
.consent-btns { display: flex; gap: 8px; }
.consent-btns .btn { flex: 1; min-height: 44px; }
@media (min-width: 960px) { .consent { left: 24px; right: auto; bottom: 24px; max-width: 420px; } }
html.menu-open .consent { display: none; }
