/* =====================================================================
   pilkarski.biz — warstwa projektowa (nadpisuje motyw Pencil)
   Ładowana po style.css. Czarno-biała baza + jeden akcent.
   ===================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #3d4147;
  --muted: #7b8189;
  --line: #e7e7e7;
  --line-soft: #f0f0f0;
  --accent: #b3261e;
  --maxw: 1450px;
  --gap: 32px;
  --side: 320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container,
.site-content.container {
  width: 100% !important;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container::before, .container::after { display: none !important; content: none !important; }

/* ============================ HEADER ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  text-align: left;
}
.site-header::before, .site-header::after { display: none !important; content: none !important; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 84px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-branding {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  text-align: left;
}
.site-branding .custom-logo-link { display: block; line-height: 0; }
.site-branding img.custom-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: none;
}

.main-navigation {
  flex: 1 1 auto;
  float: none;
  clear: none;
  width: auto;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  position: relative;
}
.main-navigation::before, .main-navigation::after { display: none !important; content: none !important; }
.main-navigation ul { background: transparent; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
}

ul.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.primary-menu > li.menu-item {
  position: relative;
  float: none;
  padding: 0;
  margin: 0;
  background: transparent !important;
}
ul.primary-menu > li.menu-item > a {
  display: block;
  padding: 12px 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
ul.primary-menu > li.menu-item > a:hover,
ul.primary-menu > li.menu-item:hover > a,
ul.primary-menu > li.menu-item:focus-within > a {
  color: var(--accent);
  border-bottom-color: rgba(179, 38, 30, .35);
  background: transparent;
}
ul.primary-menu > li.current-menu-item > a,
ul.primary-menu > li.current-menu-ancestor > a,
ul.primary-menu > li.current_page_item > a {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: transparent !important;
}
ul.primary-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}

/* dropdown */
ul.primary-menu li > ul.sub-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 950;
  display: none;
  float: none;
  min-width: 268px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  border-radius: 0 0 4px 4px;
}
ul.primary-menu li:hover > ul.sub-menu,
ul.primary-menu li:focus-within > ul.sub-menu,
ul.primary-menu li.focus > ul.sub-menu { display: block; left: 0; }

ul.primary-menu ul.sub-menu li {
  float: none;
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent !important;
}
ul.primary-menu ul.sub-menu li > a {
  display: block;
  width: auto;
  max-width: none;
  padding: 9px 18px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
  text-decoration: none;
  border: 0;
  background: transparent;
  transition: background .12s ease, color .12s ease;
}
ul.primary-menu ul.sub-menu li > a:hover,
ul.primary-menu ul.sub-menu li.focus > a,
ul.primary-menu ul.sub-menu li:hover > a {
  background: #f6f6f6 !important;
  color: var(--ink);
}
ul.primary-menu ul.sub-menu li.current-menu-item > a {
  color: var(--accent);
  background: #fafafa !important;
}

/* header search */
.header-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 4px 0 14px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.header-search:focus-within {
  border-color: #c9c9c9;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.header-search input[type="search"] {
  width: 168px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 34px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.header-search input[type="search"]::placeholder { color: #9aa0a6; }
.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.header-search button:hover { background: var(--accent); }

/* ============================ HERO / BANNERY ============================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0d0d0d;
}
.hero__item {
  position: relative;
  display: block;
  min-height: 400px;
  overflow: hidden;
  color: #fff;
  background-color: #15181c;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.70) 78%, rgba(0,0,0,.90) 100%);
  transition: background .25s ease;
}
.hero__item:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.26) 42%, rgba(0,0,0,.76) 78%, rgba(0,0,0,.92) 100%);
}
.hero__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 34px 40px 38px;
}
.hero__kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fff;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__title {
  display: block;
  max-width: 92%;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.015em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}
.hero__title a { color: #fff; }

/* ============================ UKŁAD TREŚCI ============================ */

.site-content { padding-top: 40px; padding-bottom: 20px; }

.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 48px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2,
.section-head .section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head .section-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.section-head .section-link:hover { color: var(--accent); }

/* ============================ KARTY WPISÓW ============================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 30px;
  align-items: start;
  margin: 0;
}
.post-grid::before, .post-grid::after { display: none !important; content: none !important; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
  background: #fff;
}
.post-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eef0f2;
}
.post-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  transition: transform .45s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.035); }

.post-card__cat {
  position: relative;
  z-index: 3;
  margin: 15px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-card__cat a { color: var(--accent); }
.post-card__cat .sep { color: #c4c7cb; font-weight: 400; }

.post-card__title {
  margin: 0 0 9px;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
}
.post-card__title a { color: var(--ink); }
.post-card__title a::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
}
.post-card:hover .post-card__title { color: var(--accent); }
.post-card:hover .post-card__title a { color: var(--accent); }

.post-card__excerpt {
  margin: 0 0 14px;
  color: #5d636b;
  font-size: 14px;
  line-height: 1.58;
}
.post-card__date {
  margin-top: auto;
  color: #8c9199;
  font-size: 12.5px;
  line-height: 1.4;
}
.post-card__date time { color: inherit; }

/* kompaktowe karty (Podobne wpisy) */
.post-grid--related { gap: 26px 22px; }
.post-card--sm .post-card__title { font-size: 15px; }
.post-card--sm .post-card__cat { margin-top: 12px; font-size: 10.5px; }
.post-card--sm .post-card__date { font-size: 12px; }

/* ============================ SIDEBAR ============================ */

.sidebar { min-width: 0; }
.sidebar .widget {
  margin: 0 0 36px;
  padding: 0;
}
.sidebar .widget-title,
.widget-title {
  margin: 0 0 14px;
  padding: 0 0 11px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cat-tree { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cat-tree > li { margin: 0; padding: 0; border-bottom: 1px solid var(--line-soft); }
.cat-tree > li:last-child { border-bottom: 0; }

.cat-tree details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.cat-tree details > summary::-webkit-details-marker { display: none; }
.cat-tree details > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid #9aa0a6;
  border-bottom: 1.5px solid #9aa0a6;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.cat-tree details[open] > summary::after { transform: rotate(-135deg); }
.cat-tree details > summary:hover { color: var(--accent); }

.cat-tree details > ul {
  margin: 0;
  padding: 2px 0 12px 12px;
  list-style: none;
  border-left: 1px solid var(--line);
}
.cat-tree details > ul li { margin: 0; padding: 0; }
.cat-tree details > ul a {
  display: block;
  padding: 6px 0 6px 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.4;
}
.cat-tree details > ul a:hover { color: var(--accent); }

.cat-tree > li > a.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.cat-tree > li > a.cat-link:hover { color: var(--accent); }

.recent-list { margin: 0; padding: 0; list-style: none; }
.recent-list li {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.recent-list li:first-child { padding-top: 0; }
.recent-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-list a {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
}
.recent-list a:hover { color: var(--accent); }
.recent-list .r-date {
  display: block;
  margin-top: 5px;
  color: #8c9199;
  font-size: 11.5px;
  letter-spacing: .02em;
}

/* ============================ NAGŁÓWEK ARCHIWUM ============================ */

.archive-header {
  margin: 0 0 30px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}
.archive-header .crumb {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.archive-header .crumb a { color: var(--muted); }
.archive-header .crumb a:hover { color: var(--accent); }
.archive-header h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}
.archive-header .archive-desc {
  max-width: 820px;
  margin: 0;
  color: #5d636b;
  font-size: 15.5px;
  line-height: 1.62;
}
.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.subcat-chips a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  background: #fff;
}
.subcat-chips a:hover { border-color: var(--ink); color: var(--ink); }

/* ============================ WPIS ============================ */

.single-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 64px;
}

.entry-cat {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.entry-cat a { color: var(--accent); }
.entry-cat .sep { color: #c4c7cb; font-weight: 400; padding: 0 4px; }

.entry-title {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.025em;
  text-align: left;
  float: none;
}

.entry-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: #8c9199;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
}
.entry-date time { color: inherit; }
.entry-date .dot { width: 3px; height: 3px; border-radius: 50%; background: #c9ccd0; }

.entry-media {
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
}
.entry-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  color: #24272b;
  font-size: 18.5px;
  line-height: 1.72;
}
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 {
  margin: 1.7em 0 .55em;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
}
.entry-content h3 {
  margin: 1.5em 0 .5em;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 38, 30, .35);
  transition: border-color .15s ease, background .15s ease;
}
.entry-content a:hover {
  border-bottom-color: var(--accent);
  background: rgba(179, 38, 30, .06);
}
.entry-content img { width: 100%; height: auto; }
.entry-content table {
  width: 100%;
  max-width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15.5px;
}
.entry-content th, .entry-content td {
  padding: 11px 14px;
  border: 1px solid #dcdfe3;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.entry-content th { background: #f5f6f7; font-weight: 600; }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--ink);
  color: var(--ink-soft);
  font-size: 20px;
}

/* Podobne wpisy */
.related-posts {
  margin: 52px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}
.related-posts > h2,
.related-posts > h3 {
  margin: 0 0 22px;
  padding: 0 0 11px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================ LINKI ZEWNĘTRZNE (stopka treści) ============================ */

.outbound-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 0 24px 34px;
}
.outbound-box {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfbfb;
  color: #5d636b;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.outbound-note { margin: 0 0 9px; line-height: 1.65; text-align: left; }
.outbound-note:first-of-type { margin-top: 0; }
.outbound-note:last-of-type { margin-bottom: 0; }
.outbound-note a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 38, 30, .35);
}
.outbound-note a:hover { border-bottom-color: var(--accent); }

/* ============================ STOPKA ============================ */

.site-footer {
  width: 100%;
  margin: 0;
  padding: 54px 0 0;
  background: #0c0c0c;
  color: #c9c9c9;
  font-size: 14px;
  text-align: left;
}
.site-footer::before, .site-footer::after { display: none !important; content: none !important; }

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-brand img {
  display: block;
  width: auto;
  height: 56px;
  margin: 0 0 18px;
  filter: invert(1) grayscale(1) contrast(1.05);
  opacity: .95;
}
.footer-brand p {
  max-width: 380px;
  margin: 0;
  color: #a8a8a8;
  font-size: 13.5px;
  line-height: 1.65;
}
.footer-col h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 9px; }
.footer-col a {
  color: #b9b9b9;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-col a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.footer-col p { margin: 0 0 10px; color: #a8a8a8; font-size: 13.5px; line-height: 1.6; }
.footer-col .label { display: block; color: #6f6f6f; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding: 18px 0 22px;
  border-top: 1px solid #232323;
  color: #7e7e7e;
  font-size: 12.5px;
  line-height: 1.5;
}
.footer-bottom a { color: #a8a8a8; }
.footer-bottom a:hover { color: #fff; }

/* ============================ SZUKAJ ============================ */

.search-page { padding: 40px 0 70px; }
.search-page h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.search-page form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 26px;
}
.search-page input[type="search"] {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d6d9dd;
  border-radius: 4px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.search-page button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.search-page button:hover { background: var(--accent); }
.search-meta { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.search-hint { color: #5d636b; font-size: 15px; line-height: 1.7; }
.search-hint a { color: var(--accent); }

/* ============================ 404 / STRONY ============================ */

.page-simple { padding: 60px 0 80px; }
.page-simple h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; }
.page-simple p { color: #5d636b; font-size: 17px; line-height: 1.7; }

/* ============================ RESPONSYWNOŚĆ ============================ */

@media (max-width: 1200px) {
  :root { --side: 290px; --gap: 34px; }
  .content-row { gap: 34px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .hero__item { min-height: 340px; }
}

@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .header-search input[type="search"] { width: 120px; }
  ul.primary-menu > li.menu-item > a { padding: 12px 9px; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .content-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .sidebar .widget { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 14px 20px; row-gap: 12px; column-gap: 14px; }
  .site-branding img.custom-logo { height: 44px; }
  .menu-toggle { display: inline-block; order: 2; margin-left: auto; }
  .main-navigation { order: 4; flex: 1 0 100%; }
  .header-search { order: 3; height: 38px; padding-left: 12px; }
  .header-search input[type="search"] { width: 108px; font-size: 13px; }

  ul.primary-menu { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .nav-open ul.primary-menu { display: flex; }
  ul.primary-menu > li.menu-item > a { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  ul.primary-menu > li.current-menu-item > a { border-bottom-color: var(--line-soft); }
  ul.primary-menu > li.current-menu-item > a::before {
    content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 8px; background: var(--accent); vertical-align: -2px;
  }
  ul.primary-menu li > ul.sub-menu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 2px 0 8px 14px;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
    border-radius: 0;
  }
  ul.primary-menu ul.sub-menu li > a { padding: 8px 0 8px 10px; font-size: 13.5px; background: transparent !important; }

  .hero { grid-template-columns: 1fr; }
  .hero__item { min-height: 300px; }
  .hero__body { padding: 22px 24px 26px; }
  .hero__title { max-width: 100%; }
  .site-content { padding-top: 30px; }
  .single-wrap { padding: 26px 20px 50px; }
  .entry-content { font-size: 17px; }
}

@media (max-width: 620px) {
  .container, .site-content.container { padding-left: 18px; padding-right: 18px; }
  .post-grid { grid-template-columns: 1fr; gap: 30px; }
  .sidebar { grid-template-columns: 1fr; }
  .hero__item { min-height: 250px; }
  .hero__kicker { font-size: 10.5px; }
  .archive-header h1 { font-size: 27px; }
  .entry-title { font-size: 26px; }
  .entry-content { font-size: 16.5px; }
  .entry-content h2 { font-size: 22px; }
  .entry-content table { font-size: 13.5px; }
  .entry-content th, .entry-content td { padding: 8px 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer { padding-top: 40px; }
  .outbound-wrap { padding: 0 18px 30px; }
  .search-page form { flex-direction: column; }
}
