/* ═══════════════════════════════════════════
   ANDREJ MEDVEĎ — REDESIGN CSS
   ═══════════════════════════════════════════ */

:root {
  --tea: #CDDFB7;
  --tea-l: #EAF2DC;
  --tea-ll: #F3F8EC;
  --slate: #2A4850;
  --slate-m: #3D5E6A;
  --slate-l: #5A7A86;
  --melon: #FAB0A0;
  --melon-l: #FDECEA;
  --bg: #F5F6F3;
  --white: #fff;
  --f: 'Plus Jakarta Sans', system-ui, sans-serif;
  --b: 0.5px solid rgba(42,72,80,.12);
  --bs: 1px solid rgba(42,72,80,.13);
  --r: 8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 0.5vw + 10px, 19px);
}

/* Offset for sticky header when jumping to anchor */
.art-content h1[id],
.art-content h2[id],
.art-content h3[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--f);
  /* background: var(--bg); */
  color: var(--slate);
  margin: 0;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.hdr {
  background: var(--slate);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.hdr-i {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 56px;
  gap: 20px;
}
.hdr-logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.hdr-logo span { color: var(--tea); }
.hnav { display: flex; gap: 2px; }
.hnav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.hnav a:hover { color: #fff; }
.hnav a.on { color: #fff; background: rgba(255,255,255,.1); }
.hdr-r { flex-grow: 1; padding-left: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* Search */
.hdr-srch {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 0 11px;
  height: 32px;
  gap: 6px;
  position: relative;
}
.hdr-srch input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--f);
  font-size: 0.875rem;
  color: #fff;
  width: 100%;
}
.hdr-srch input::placeholder { color: rgba(255,255,255,.35); }
#hdr-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: var(--bs);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(42,72,80,.12);
  z-index: 300;
  max-height: 320px;
  overflow-y: auto;
  padding: 0 12px 12px 14px;
}
#hdr-search-results.hidden { display: none; }

.hdr-mbtn {
  background: rgba(255,255,255,.08);
  border: .5px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  font-family: var(--f);
  font-size: 0.8125rem;
  font-weight: 600;
}
.hdr-mbtn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Mobile search — hidden on desktop */
.hdr-srch-mob { display: none; }

/* Tagbar */
.tagbar {
  background: var(--tea);
  padding: 7px 32px;
  text-align: center;
}
.tagbar p {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

/* ── MENU OVERLAY ── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--slate);
  z-index: 300;
  overflow-y: auto;
}
.menu-overlay.open { display: flex; flex-direction: column; }
.mo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  border-bottom: .5px solid rgba(255,255,255,.1);
}
.mo-logo { font-size: 1.0625rem; font-weight: 700; color: #fff; }
.mo-logo span { color: var(--tea); }
.mo-close {
  background: none;
  border: none;
  font-size: 1.8125rem;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  line-height: 1;
}
.mo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 40px;
}
.mo-col h3 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
  margin-top: 0;
}
.mo-link {
  display: block;
  font-size: 1.4375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  cursor: pointer;
  transition: color .15s;
  text-decoration: none;
}
.mo-link:hover { color: var(--tea); }
.mo-link.small {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.mo-link.small:hover { color: var(--tea); }
.mo-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 20px 0;
}
.mo-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(205,223,183,.15);
  color: var(--tea);
  margin-bottom: 8px;
}

/* ── BLOG PAGE LAYOUT ── */
.blog-pg {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: grid;
  grid-template-columns: 210px 1fr 250px;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1350px) {
  .blog-pg {
    padding: 24px 0px 48px;
  }
}

/* ── SIDEBAR ── */
.blog-sb {
  background: var(--white);
  border-radius: var(--r);
  border: var(--bs);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.sb-head {
  background: var(--slate);
  padding: 12px 14px;
}
.sb-head p {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tea);
  margin: 0;
}
.sb-cats { padding: 6px 0; }
.sb-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  gap: 8px;
  text-decoration: none;
  transition: background .1s;
}
.sb-cat:hover { background: var(--tea-l); }
.sb-cat.on { background: var(--tea-l); border-left-color: var(--slate); }
.sb-cat.on .sb-cat-name { color: var(--slate); font-weight: 700; }
.sb-cat-name {
  font-size: 0.8438rem;
  color: rgba(42,72,80,.65);
  font-weight: 500;
  line-height: 1.3;
}
.sb-cat-count {
  font-size: 0.6875rem;
  color: rgba(42,72,80,.3);
  font-weight: 700;
  background: rgba(42,72,80,.06);
  padding: 2px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.sb-divider { height: .5px; background: rgba(42,72,80,.08); margin: 6px 0; }

/* TOC sidebar (article detail) */
.toc-item {
  display: block;
  font-size: 0.8125rem;
  color: rgba(42,72,80,.55);
  padding: 7px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background .1s;
}
.toc-item:hover { background: var(--tea-l); color: var(--slate); }
.toc-item.h2 { font-weight: 600; color: rgba(42,72,80,.75); }
.toc-item.h3 { padding-left: 24px; font-size: 0.7813rem; }

/* ── ARTICLE LIST ── */
.art-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(42,72,80,.09);
  border: var(--bs);
  border-radius: var(--r);
  overflow: hidden;
}
.art-card {
  background: var(--white);
  display: grid;
  grid-template-columns: 110px 1fr;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s;
}
.art-card:hover { background: #fafaf8; }
.art-card-img {
  height: 96px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.art-card-body {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
}
.art-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.atag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
}
.atag-g { background: var(--tea-l); color: #3c5e35; }
.atag-m { background: var(--melon-l); color: #ae5548; }
.art-card-date { font-size: 0.75rem; color: rgba(42,72,80,.32); font-weight: 500; }
.art-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.3;
  margin-bottom: 5px;
}
.art-card-exc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(42,72,80,.48);
  margin-bottom: 8px;
  flex: 1;
}
.art-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
  align-self: flex-start;
}

/* ── TOPBAR ── */
.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.blog-topbar-title { font-size: 0.875rem; font-weight: 700; }
.blog-topbar-count { font-size: 0.8125rem; color: rgba(42,72,80,.38); }
.blog-empty {
  background: var(--white);
  padding: 36px;
  text-align: center;
  border-radius: var(--r);
  border: var(--bs);
}
.blog-empty p { font-size: 0.875rem; color: rgba(42,72,80,.4); margin: 0; }

/* ── WIDGETS (right panel) ── */
.widget {
  background: var(--white);
  border-radius: var(--r);
  border: var(--bs);
  overflow: hidden;
  margin-bottom: 16px;
}
.widget-head { background: var(--slate); padding: 11px 14px; }
.widget-head p {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--tea);
  margin: 0;
}
.widget-body { padding: 14px; }

/* Popular widget */
.pop-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: var(--b);
  align-items: flex-start;
}
.pop-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num {
  font-size: 1.3125rem;
  font-weight: 900;
  color: rgba(42,72,80,.07);
  min-width: 26px;
  line-height: 1;
  word-break: keep-all;
}
.pop-title { font-size: 0.8125rem; font-weight: 600; color: var(--slate); line-height: 1.35; }
.pop-cat   { font-size: 0.6875rem; color: rgba(42,72,80,.38); margin-top: 2px; }
.pop-views { font-size: 0.6875rem; color: rgba(42,72,80,.38); margin-top: 2px; }

/* Newsletter widget */
.nl-widget { padding: 18px; }
.nl-widget h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 5px;
  margin-top: 0;
  line-height: 1.3;
}
.nl-widget p {
  font-size: 0.8125rem;
  color: rgba(42,72,80,.5);
  margin-bottom: 12px;
  margin-top: 0;
  line-height: 1.5;
}
.nl-widget input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: var(--bs);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-family: var(--f);
  color: var(--slate);
  margin-bottom: 7px;
  outline: none;
}
.nl-widget input:focus { border-color: var(--slate); }
.btn-primary,
.nl-widget button {
  display: inline-block;
  height: 36px;
  padding: 0 18px;
  background: var(--slate);
  color: var(--tea);
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--f);
  cursor: pointer;
  transition: background .15s;
}
.nl-widget button { width: 100%; }
.btn-primary:hover,
.nl-widget button:hover { background: var(--slate-m); }
.nl-widget button:disabled { opacity: .6; cursor: not-allowed; }
.nl-msg {
  font-size: 0.8125rem;
  padding: 8px 10px;
  border-radius: 5px;
  margin-top: 8px;
  display: none;
}
.nl-msg.success { background: #e6f4ea; color: #2d6a4f; }
.nl-msg.error   { background: #fce8e6; color: #b3261e; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: var(--bs);
  background: var(--white);
  color: var(--slate);
  text-decoration: none;
  transition: background .1s;
}
.pagination a:hover { background: var(--tea-l); }
.pagination .current {
  background: var(--slate);
  color: var(--tea);
  border-color: var(--slate);
}

/* ── HERO (unified) ── */
.hero,
.art-hero,
.ref-hero,
.blog-hero { background: var(--slate); padding: 48px 32px; }
.art-hero { padding: 40px 32px; }
.hero,
.blog-hero { padding: 0 32px; }

.hero-i,
.art-hero-i,
.ref-hero-i { max-width: 1280px; margin: 0 auto; }

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.5px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.hero h1 em,
.art-hero h1 em,
.blog-hero h1 em { color: var(--tea); font-style: normal; }

.hero p,
.hero-p,
.hero-x { font-size: 0.9375rem; color: rgba(255,255,255,.5); max-width: 540px; line-height: 1.65; margin: 0; }
.hero-x { margin-bottom: 22px; }
.hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ── BLOG HERO ── */
.blog-hero-i,
.hero-i {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  /* min-height: 320px; */
}
.hero-txt,
.blog-hero-txt {
  padding: 40px 48px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-tag,
.art-hero-tag,
.htag { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.hero-dot,
.art-hero-dot,
.htag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--melon); flex-shrink: 0; }

.hero-label,
.art-hero-cat,
.htag span {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--melon);
}
.blog-hero-h {
  font-size: 1.8125rem;
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 0;
  letter-spacing: -.4px;
}
.hero-read-btn {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tea);
  text-decoration: none;
}
.hero-read-btn::after { content: ' →'; }
.hero-date { font-size: 0.75rem; color: rgba(255,255,255,.28); font-weight: 500; }
.blog-hero-img,
.hero-img {
  background: var(--slate-m);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.blog-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,72,80,.45);
}

/* ── ARTICLE DETAIL ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb a:hover { color: var(--tea); }
.breadcrumb span { font-size: 0.8125rem; color: rgba(255,255,255,.25); }

.art-hero h1 {
  font-size: 2.0625rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  margin-top: 0;
  max-width: 700px;
}
.art-hero-date,
.art-hero-author,
.art-hero-read { font-size: 0.8125rem; color: rgba(255,255,255,.4); }

/* Article 3-col layout */
.art-pg {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  display: grid;
  grid-template-columns: 210px 1fr 250px;
  gap: 20px;
  align-items: start;
}

/* Article content */
.art-content {
  background: var(--white);
  border-radius: var(--r);
  border: var(--bs);
  padding: 32px 36px;
}
.art-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: var(--b);
}
.art-content h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--slate);
  margin: 32px 0 14px;
  letter-spacing: -.3px;
  text-transform: none;
}
.art-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate);
  margin: 24px 0 10px;
  text-transform: none;
}
.art-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(42,72,80,.8);
  margin-bottom: 16px;
}
.art-content ul,
.art-content ol {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(42,72,80,.8);
  margin-bottom: 16px;
  padding-left: 24px;
}
.art-content img { max-width: 100%; border-radius: 6px; }
.art-content a { color: var(--slate); text-decoration: underline; }

.callout {
  background: var(--tea-ll);
  border-left: 3px solid var(--tea);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p { font-size: 0.9375rem; line-height: 1.65; color: var(--slate); margin: 0; font-weight: 500; }
.callout-title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-m);
  margin-bottom: 8px;
}

/* Art tags */
.art-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: var(--b);
}
.art-tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--tea-l);
  color: #3c5e35;
  cursor: pointer;
}
.art-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: var(--b);
  flex-wrap: wrap;
}
.art-share span { font-size: 0.8125rem; font-weight: 700; color: rgba(42,72,80,.5); }
.share-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: var(--bs);
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  font-family: var(--f);
  transition: background .1s;
}
.share-btn:hover { background: var(--tea-l); }

/* Related articles */
.related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: var(--b);
  align-items: flex-start;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s;
}
.related-item:last-child { border-bottom: none; }
.related-img {
  width: 52px;
  height: 44px;
  border-radius: 5px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.related-title { font-size: 0.8125rem; font-weight: 600; color: var(--slate); line-height: 1.35; }
.related-date { font-size: 0.6875rem; color: rgba(42,72,80,.38); margin-top: 2px; }

/* ── FOOTER ── */
.site-footer { background: var(--slate); padding: 40px 32px 28px; }
.site-footer-i { max-width: 1280px; margin: 0 auto; }
.sf-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.sf-brand .hdr-logo { display: block; margin-bottom: 12px; }
.sf-brand p { font-size: 0.875rem; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 220px; margin: 0; }
.sf-col h4 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
  margin-top: 0;
}
.sf-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.sf-col a:hover { color: var(--tea); }
.sf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: .5px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
  gap: 8px;
}
.sf-copy { font-size: 0.8125rem; color: rgba(255,255,255,.3); }
.sf-links { display: flex; gap: 16px; }
.sf-links a { font-size: 0.8125rem; color: rgba(255,255,255,.3); cursor: pointer; text-decoration: none; }
.sf-links a:hover { color: rgba(255,255,255,.6); }

/* ── SEARCH PAGE ── */
.search-hero .blog-hero-i,
.search-hero-i { grid-template-columns: 1fr; }
.search-hero .blog-hero-txt { padding: 36px 0; }

.search-pg {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}

.search-empty {
  background: var(--white);
  padding: 48px 36px;
  text-align: center;
  border-radius: var(--r);
  border: var(--bs);
  grid-column: 1 / -1;
}
.search-empty p { font-size: 0.9375rem; color: rgba(42,72,80,.45); margin: 0; }
.search-empty strong { color: var(--slate); }

/* OTHER PAGES */
.page {
  padding: 24px 32px 48px;
}
.page-pg {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-pg,
  .art-pg,
  .search-pg {
    grid-template-columns: 1fr;
    padding: 20px 20px 40px;
  }
  .blog-sb,
  .art-pg > aside:first-child,
  .search-pg > aside {
    position: static;
  }
  .blog-sb > div:not(.sb-head) {
    display: none;
  }
  .blog-sb.open > div:not(.sb-head) {
    display: block;
  }
  .blog-sb .sb-head {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .blog-sb .sb-head::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(205,223,183,.65);
    flex-shrink: 0;
    transition: transform .2s;
    margin-right: 2px;
  }
  .blog-sb.open .sb-head::after {
    transform: rotate(180deg);
  }
  .hero-i, .blog-hero-i { grid-template-columns: 1fr; }
  .hero-img, .blog-hero-img { min-height: 200px; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hdr { padding: 0 16px; }
  .hdr-srch { display: none; }
  .hnav { display: none; }
  .hdr-r { flex-grow: 0; padding-left: 0; }
  .hdr-srch-mob {
    display: flex;
    flex: 1;
    align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 0 11px;
    height: 32px;
    gap: 6px;
    position: relative;
  }
  .hdr-srch-mob input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--f);
    font-size: 0.875rem;
    color: #fff;
    width: 100%;
  }
  .hdr-srch-mob input::placeholder { color: rgba(255,255,255,.35); }
  #hdr-search-results-mob {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: var(--bs);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(42,72,80,.12);
    z-index: 300;
    max-height: 320px;
    overflow-y: auto;
    padding: 0 12px 12px 14px;
  }
  #hdr-search-results-mob.hidden { display: none; }
  .blog-hero { padding: 0 16px; }
  .blog-hero-txt { padding: 32px 0; }
  .blog-hero-h { font-size: 1.4375rem; }
  .art-hero { padding: 32px 16px; }
  .art-hero-h { font-size: 1.5625rem; }
  .art-pg { padding: 16px 16px 32px; }
  .art-content { padding: 20px 18px; }
  .sf-grid { grid-template-columns: 1fr; }
  .tagbar { padding: 7px 16px; }
}

@media (max-width: 550px) {
  .hdr-i {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    row-gap: 8px;
    justify-content: space-between;
  }
  .hdr-logo { order: 1; }
  .hdr-r    { order: 2; }
  .hdr-srch-mob {
    order: 3;
    flex: none;
    width: 100%;
  }
}

/* ── REFERENCIE HERO ── */
.ref-hero h1 { font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: -.5px; margin: 0 0 10px; line-height: 1.2; }
.ref-hero h1 em { color: var(--tea); font-style: normal; }

/* ── REFERENCIE STATS BAR ── */
.ref-stats-bar { background: var(--white); border-bottom: var(--bs); }
.ref-stats-i { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; }
.ref-stat { padding: 20px 28px; border-right: var(--b); text-align: center; }
.ref-stat:first-child { padding-left: 0; }
.ref-stat:last-child { border-right: none; }
.ref-stat-n { font-size: 1.625rem; font-weight: 800; color: var(--slate); letter-spacing: -.5px; line-height: 1; margin: 0; }
.ref-stat-n em { color: #7aab60; font-style: normal; }
.ref-stat-l { font-size: 0.6875rem; color: rgba(42,72,80,.45); font-weight: 500; margin-top: 4px; }

/* ── REFERENCIE DETAIL ── */
.ref-page-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-card { background: var(--white); border-radius: var(--r); border: var(--bs); padding: 24px; display: flex; flex-direction: column; }
.ref-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.ref-star { color: #7aab60; font-size: 15px; line-height: 1; }
.ref-star.empty { color: rgba(42,72,80,.15); }
.ref-quote { font-size: 14px; line-height: 1.65; color: rgba(42,72,80,.75); margin-bottom: 14px; font-style: italic; flex: 1; }
.ref-pros-cons { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.ref-pro, .ref-con { font-size: 12px; line-height: 1.5; color: rgba(42,72,80,.65); }
.ref-pro strong { color: #3c5e35; margin-right: 4px; }
.ref-con strong { color: #ae5548; margin-right: 4px; }
.ref-author { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ref-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ref-name { font-size: 13px; font-weight: 700; color: var(--slate); }
.ref-detail { font-size: 11px; color: rgba(42,72,80,.4); margin-top: 1px; }

@media (max-width: 620px) {
  .ref-page-grid { grid-template-columns: 1fr; }
}


/* ── REFERENCIE PRODUCT LIST ── */
.ref-prod-grid { max-width: 1280px; margin: 0 auto; padding: 32px 32px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-prod-card { background: var(--white); border-radius: var(--r); border: var(--bs); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: box-shadow .15s; }
.ref-prod-card:hover { box-shadow: 0 4px 20px rgba(42,72,80,.1); }
.ref-prod-img { height: 160px; overflow: hidden; }
.ref-prod-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ref-prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.ref-prod-name { font-size: 0.875rem; font-weight: 700; color: var(--slate); margin-bottom: 10px; line-height: 1.3; }
.ref-prod-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ref-prod-count { font-size: 0.6875rem; color: rgba(42,72,80,.45); font-weight: 500; }
.ref-prod-footer { border-top: var(--b); padding-top: 12px; margin-top: auto; }
.ref-prod-btn { font-size: 0.6875rem; font-weight: 700; color: var(--slate); }

@media (max-width: 700px) {
  .ref-prod-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 16px 40px; }
}
@media (max-width: 420px) {
  .ref-prod-grid { grid-template-columns: 1fr; }
}
