/* =============================================
   dar al-huruf – dark theme for inner pages
   ============================================= */

/* czcionki ladowane przez <link> assets/css/fonts.css w <head> */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Spectral', Georgia, serif;
  color: #ECE3CE;
  line-height: 1.75;
  background: #070A1C;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---- TOP BAR ---- */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, #0a0f28, #0a0e22);
  border-bottom: 1px solid rgba(201,168,106,.16);
}

.topbar {
  display: block;
  border-bottom: 1px solid rgba(201,168,106,.1);
  background: rgba(5,7,19,.33);
}

.topbar-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9097b8;
  padding: 6px 0;
}

.topbar-row .topbar-bismillah {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: #C9A86A;
  text-transform: none;
  letter-spacing: 0;
}

.topbar-row .topbar-right {
  display: flex;
  align-items: center;
  gap: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #6f76a0;
}

.topbar-hijri {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: #C9A86A;
  letter-spacing: 0;
}

.topbar-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a4170;
  flex-shrink: 0;
  vertical-align: middle;
}

.topbar-greg {
  font-size: 12px;
  color: #6f76a0;
  letter-spacing: 0;
}

/* ---- HEADER ROW ---- */
.header-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 0;
}

/* ---- BRAND ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-meta strong {
  display: block;
  font-family: 'Aref Ruqaa', 'Amiri', serif;
  font-weight: 700;
  font-size: 24px;
  color: #E8C877;
  line-height: 1.25;
}

.brand-meta span {
  display: block;
  font-family: 'Spectral', serif;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7e85ab;
  margin-top: 2px;
}

/* ---- LANG SWITCH (flags) ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}

.lang-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  border: 1.5px solid rgba(201,168,106,.3);
  filter: saturate(.7) brightness(.82);
  opacity: .85;
  transition: filter .2s, opacity .2s, border-color .2s;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: #E8C877;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(201,168,106,.16), 0 0 12px rgba(232,200,119,.35);
}

.lang-pl-flag {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff 0 50%, #dc143c 50% 100%);
}

.lang-en-flag {
  display: block;
  width: 100%;
  height: 100%;
  background: url(../uk-flag.svg) center/cover;
}

/* hide old search form */
.search-form { display: none; }

/* ---- NAV ---- */
.site-nav {
  border-top: 1px solid rgba(201,168,106,.1);
  background: none;
}

.site-nav::after { display: none; }

.nav-scroll {
  display: flex;
  align-items: center;
  height: 50px;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: .02em;
  padding: 0;
}

.nav-scroll::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0;
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
  color: #cdd0e4;
  border-bottom: none;
  transition: color .2s;
}

.nav-link:hover { color: #E8C877; }

.nav-link.active {
  color: #E8C877;
  background: none;
  border-bottom: none;
}

.nav-motto {
  margin-left: auto;
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: #5d6493;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---- PAGE WRAP ---- */
.page-wrap {
  padding: clamp(2rem, 4vw, 3rem) 0 4rem;
  background: #070A1C;
  min-height: 60vh;
}

.layout {
  width: 100%;
}

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 1.4rem;
}

.page-header h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.13;
  color: #F0E7CF;
}

.page-header p {
  margin: .55rem 0 0;
  color: #9097b8;
  font-size: 16px;
}

.breadcrumb {
  margin: 0 0 .8rem;
  color: #6f76a0;
  font-size: 14px;
  letter-spacing: .04em;
}

.breadcrumb a { color: #C9A86A; }
.breadcrumb a:hover { color: #E8C877; }

/* ---- CHIPS ---- */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }

.chips a {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  padding: 3px 10px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .16em;
  color: #9c7c3e !important;
  border: 1px solid rgba(201,168,106,.3);
  background: transparent !important;
}

/* ---- SECTION HEADING ---- */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 .85rem;
  color: #F0E7CF;
}

.section-sub {
  margin: 0 0 1.4rem;
  color: #9097b8;
  font-size: 16px;
}

/* ---- POST GRID ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ---- POST CARD ---- */
.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.16);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.post-card:hover {
  border-color: rgba(201,168,106,.4);
  transform: translateY(-3px);
}

.post-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #10162f, #1a2454);
  overflow: hidden;
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb.img-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #10162f, #1a2454);
}

.badge {
  position: absolute;
  left: .8rem;
  top: .8rem;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c7c3e;
  border: 1px solid rgba(201,168,106,.3);
  border-radius: 1px;
  background: rgba(7,10,28,.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.post-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.25;
  font-size: 1.15rem;
  color: #F0E7CF;
}

.post-title a { color: #F0E7CF; }
.post-title a:hover { color: #E8C877; }

.post-excerpt {
  margin: 0;
  color: #9097b8;
  font-size: 14.5px;
  line-height: 1.65;
}

.post-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid rgba(201,168,106,.12);
  padding-top: .75rem;
}

.post-meta, .author-mini {
  color: #6f76a0;
  font-size: 12.5px;
  letter-spacing: .04em;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 13px;
  font-family: 'Cormorant Garamond', serif;
  color: #C9A86A;
  border: 1px solid rgba(201,168,106,.3);
  border-radius: 2px;
  padding: 4px 12px;
  transition: border-color .2s, color .2s;
}

.read-btn:hover { color: #E8C877; border-color: rgba(201,168,106,.6); }

/* ---- FEATURED / SPOTLIGHT ---- */
.spotlight-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.featured {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  min-height: clamp(260px, 28vw, 380px);
  border: 1px solid rgba(201,168,106,.16);
  margin-bottom: 1.2rem;
}

.featured img { width: 100%; height: 100%; object-fit: cover; }
.featured.img-fallback { background: linear-gradient(135deg, #10162f, #1a2454); }

.featured-overlay {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 3px;
  background: rgba(7,10,28,.8);
  border: 1px solid rgba(201,168,106,.2);
  color: #ECE3CE;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.featured-title {
  margin: .35rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  color: #F0E7CF;
}

.featured-title a:hover { color: #E8C877; }

.featured-meta, .archive-kicker {
  font-size: 12px;
  color: #9097b8;
}

.archive-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c7c3e;
  border: 1px solid rgba(201,168,106,.3);
  padding: 3px 9px;
  border-radius: 1px;
  margin-bottom: .65rem;
  background: transparent;
}

.highlight-stack { display: grid; gap: 16px; }

/* ---- MINI CARD ---- */
.mini-card {
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.14);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 110px;
}

.mini-thumb {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #10162f, #1a2454);
  overflow: hidden;
}

.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb.img-fallback { min-height: 100%; }

.mini-body { padding: .7rem .85rem; }

.mini-meta { color: #6f76a0; font-size: .76rem; }

.mini-body h3 {
  margin: .3rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.28;
  color: #F0E7CF;
}

.mini-body h3 a:hover { color: #E8C877; }

/* ---- CULTURE LANES ---- */
.culture-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.culture-lane {
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.16);
  border-radius: 3px;
  padding: 20px;
}

.culture-lane header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid rgba(201,168,106,.12);
  padding-bottom: .8rem;
}

.culture-lane header h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #F0E7CF;
}

.culture-lane header a { color: #C9A86A; }
.culture-lane header a:hover { color: #E8C877; }
.culture-lane header span { color: #6f76a0; font-size: .8rem; white-space: nowrap; }

.culture-lane ul {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
}

.culture-lane li {
  border-top: 1px solid rgba(201,168,106,.1);
  padding-top: .52rem;
  margin-top: .52rem;
}

.culture-lane li a { font-size: .94rem; color: #9aa0c0; line-height: 1.4; }
.culture-lane li a:hover { color: #E8C877; }

/* ---- DISCOVER GRID (category archive) ---- */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 1rem;
}

.discover-card {
  background: linear-gradient(180deg, #10162f, #0b1027);
  border: 1px solid rgba(201,168,106,.2);
  border-radius: 3px;
  padding: 28px 24px 24px;
  transition: border-color .2s, transform .2s;
}

.discover-card:hover {
  border-color: rgba(201,168,106,.45);
  transform: translateY(-3px);
}

.discover-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9c7c3e;
  border: 1px solid rgba(201,168,106,.3);
  padding: 3px 9px;
  border-radius: 1px;
  margin-bottom: .75rem;
}

.discover-card h3 {
  margin: 0 0 .5rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #F0E7CF;
}

.discover-card p { margin: 0; color: #9097b8; font-size: 14.5px; line-height: 1.6; }

.discover-count {
  display: inline-block;
  margin-top: .7rem;
  font-size: 13px;
  font-family: 'Cormorant Garamond', serif;
  color: #C9A86A;
}

/* ---- SIDEBAR ---- */
.sidebar { display: grid; gap: 20px; }

.widget {
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.16);
  border-radius: 3px;
  overflow: hidden;
}

.widget-head {
  padding: .8rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #E8C877;
  border-bottom: 1px solid rgba(201,168,106,.16);
  letter-spacing: .03em;
}

.widget-body { padding: .9rem 1rem 1rem; }

.cat-list, .footer-links, .recent-list { margin: 0; padding: 0; list-style: none; }

.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .52rem 0;
  border-bottom: 1px solid rgba(201,168,106,.1);
}
.cat-list li:last-child { border-bottom: 0; }
.cat-list a { color: #9aa0c0; font-size: 14.5px; }
.cat-list a:hover { color: #E8C877; }

.cat-pill {
  background: rgba(201,168,106,.12);
  color: #9c7c3e;
  border: 1px solid rgba(201,168,106,.2);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
}

.recent-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .65rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(201,168,106,.1);
}
.recent-item:last-child { border-bottom: 0; }

.recent-thumb {
  width: 58px;
  height: 48px;
  border-radius: 2px;
  object-fit: cover;
  background: linear-gradient(135deg, #10162f, #1a2454);
}
.recent-thumb.img-fallback { display: block; }

.recent-item a { font-size: .88rem; color: #9aa0c0; line-height: 1.34; }
.recent-item a:hover { color: #E8C877; }
.recent-meta { color: #6f76a0; font-size: .76rem; margin-top: .2rem; }

/* author box */
.author-box { text-align: center; }

.author-box img {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 3px;
  background: #10162f;
  border: 1px solid rgba(201,168,106,.2);
  padding: .25rem;
}

.author-box h4 {
  margin: .7rem 0 .2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #F0E7CF;
}

.author-box p { margin: 0; color: #9097b8; font-size: .9rem; }

/* ---- SINGLE ARTICLE ---- */
.single-card, .page-card {
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.16);
  border-radius: 3px;
  padding: 28px;
}

.single-cover {
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #10162f, #1a2454);
  margin-bottom: 1.2rem;
}

.single-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.single-cover.img-fallback { min-height: 200px; }

.single-title {
  margin: .3rem 0 .8rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: #F0E7CF;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  color: #6f76a0;
  font-size: 13px;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(201,168,106,.14);
  padding-bottom: .85rem;
  margin-bottom: 1.2rem;
}

/* ---- ARTICLE CONTENT ---- */
.article {
  font-size: 1rem;
  line-height: 1.85;
  color: #d4ccb8;
}

.article h2, .article h3, .article h4 {
  margin: 1.5rem 0 .65rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: #F0E7CF;
}

.article h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
.article h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.article p { margin: 0 0 1rem; }

.article ul, .article ol { margin: .8rem 0 1rem 1.25rem; }

.article a { color: #C9A86A; border-bottom: 1px dashed rgba(201,168,106,.4); }
.article a:hover { color: #E8C877; border-bottom-color: rgba(232,200,119,.7); }

.article blockquote {
  margin: 1.2rem 0;
  padding: .9rem 1rem;
  border-left: 3px solid rgba(201,168,106,.6);
  background: rgba(201,168,106,.08);
  border-radius: 0 3px 3px 0;
  color: #b8bdd6;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .93rem;
}

.article th, .article td {
  border: 1px solid rgba(201,168,106,.2);
  padding: .52rem .65rem;
  text-align: left;
  color: #c8c0aa;
}

.article th {
  background: rgba(201,168,106,.12);
  color: #E8C877;
  font-family: 'Cormorant Garamond', serif;
}

.article [dir="rtl"], .article .arabic {
  direction: rtl;
  text-align: right;
  font-family: 'Amiri', serif;
  font-size: 1.25em;
  color: #E8C877;
}

/* ---- ODZYSKANE TABELE (TablePress) ---- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.table-wrap table { margin: 0; min-width: 100%; }
.table-wrap td, .table-wrap th { white-space: nowrap; vertical-align: middle; }
/* komorki z arabskim: Amiri, wieksze, zloto (dir="auto" wykrywa RTL automatycznie) */
.table-wrap td[dir="auto"], .table-wrap th[dir="auto"] { unicode-bidi: plaintext; }
.table-wrap td:not(:empty) { font-size: 1.02em; }
/* audio wymowy w tabeli */
.article audio {
  height: 30px;
  max-width: 168px;
  vertical-align: middle;
  filter: sepia(.35) saturate(1.1) hue-rotate(5deg);
}
.article td:has(audio) { text-align: center; }
@media (max-width: 720px) {
  .table-wrap { font-size: .88rem; }
  .article audio { max-width: 130px; height: 28px; }
}

.notice {
  border: 1px dashed rgba(201,168,106,.3);
  background: rgba(201,168,106,.07);
  border-radius: 3px;
  padding: .7rem .9rem;
  color: #9097b8;
  font-size: .92rem;
  margin-bottom: 1rem;
}

.notice a { color: #C9A86A; }

/* ---- POST NAV ---- */
.post-nav {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,106,.14);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.post-nav a {
  border-radius: 3px;
  padding: .75rem .9rem;
  border: 1px solid rgba(201,168,106,.2);
  background: rgba(15,21,48,.6);
  transition: border-color .2s;
}

.post-nav a:hover { border-color: rgba(201,168,106,.5); }

.post-nav small {
  display: block;
  color: #6f76a0;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.post-nav span {
  display: block;
  margin-top: .25rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #C9A86A;
}

/* ---- FOOTER ---- */
.site-footer {
  margin-top: 0;
  background: #05081a;
  border-top: 1px solid rgba(201,168,106,.18);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 14px; }

.footer-brand p {
  margin: 0;
  color: #8f96bb;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-ar-quote {
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: #C9A86A;
  margin-top: 18px;
  letter-spacing: 0;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 19px;
  color: #E8C877;
  letter-spacing: .03em;
}

.footer-links li { margin: 0 0 8px; }
.footer-links a { color: #9aa0c0; font-size: 14.5px; }
.footer-links a:hover { color: #E8C877; }

.footer-bottom {
  border-top: 1px solid rgba(201,168,106,.12);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #6f76a0;
  letter-spacing: .05em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight-zone { grid-template-columns: 1fr; }
  .culture-lanes { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(1180px, calc(100% - 1.2rem)); }
  .footer-bottom { flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
  .topbar-row { flex-wrap: wrap; row-gap: 2px; }
  .header-row { flex-wrap: wrap; padding: 10px 0; gap: .6rem; }
  .brand-meta { display: none; }
  .discover-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .mini-card { grid-template-columns: 90px 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .nav-scroll { gap: 18px; font-size: 16px; }
  .featured-overlay { inset: auto .75rem .75rem; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 24px; }
  .single-card, .page-card { padding: 18px; }
}

/* ---- KL CREDIT (footer attribution) ---- */
.kl-credit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kl-credit__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #566480;
  white-space: nowrap;
}
.kl-credit__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.kl-credit__brand:hover { opacity: .8; }
.kl-credit__logo { display: block; flex: 0 0 auto; }
.kl-terminal {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
}
.kl-tp { color: #8b7bff; margin-right: .42em; }
.kl-td { color: #566480; margin-right: .42em; }
.kl-to { color: #aebbd4; }
.kl-tc {
  display: inline-block;
  width: .44em;
  height: .88em;
  margin-left: 2px;
  border-radius: 1px;
  background: #2fe6ff;
  transform: translateY(1px);
  animation: kl-blink 1.05s steps(1) infinite;
}
.kl-pc { animation: kl-blink 1.05s steps(1) infinite; }
@keyframes kl-blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kl-tc, .kl-pc { animation: none; }
}

/* =============================================
   PORTAL 2.0 – huby, filar biznesowy, animacje
   ============================================= */

/* ---- REVEAL ON SCROLL (portal.js dodaje html.js oraz .rv-in; bez JS wszystko widoczne) ---- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .rv-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---- ANIMACJE OZDOBNE ---- */
@keyframes dh-twinkle { 0%,100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes dh-glow {
  0%,100% { text-shadow: 0 0 32px rgba(232,200,119,.45), 0 0 70px rgba(201,168,106,.25); }
  50% { text-shadow: 0 0 46px rgba(232,200,119,.7), 0 0 110px rgba(201,168,106,.4); }
}
@keyframes dh-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes dh-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .hub-calli, .spin-slow, .float-slow { animation: none !important; }
}
.spin-slow { animation: dh-spin 240s linear infinite; }
.float-slow { animation: dh-float 7s ease-in-out infinite; }

/* ---- PRZYCISKI ---- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 2px;
  background: linear-gradient(180deg, #caa869, #9c7c3e);
  color: #160d04 !important; font-family: 'Cormorant Garamond', serif;
  font-size: 19px; letter-spacing: .02em; border: 0;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(201,168,106,.28); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border: 1px solid rgba(201,168,106,.4); border-radius: 2px;
  background: rgba(13,18,46,.6); color: #E8C877 !important;
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  transition: border-color .2s, transform .2s; cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(232,200,119,.75); transform: translateY(-2px); }

/* ---- NAV: wyróżnienie Biznes ---- */
.nav-biz { color: #E8C877; }
.nav-biz::before { content: '✦'; font-size: 10px; color: #C9A86A; margin-right: 7px; }

/* ---- HUB (strona kategorii) ---- */
.hub-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 7vw, 76px) 0 clamp(36px, 6vw, 60px);
  background: radial-gradient(120% 100% at 50% -20%, #1b2654 0%, #0c1234 45%, #070A1C 100%);
  border-bottom: 1px solid rgba(201,168,106,.16);
}
.hub-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background-image: url(../star-tile.svg); background-size: 130px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.hub-calli {
  font-family: 'Aref Ruqaa', 'Amiri', serif; font-weight: 700;
  font-size: clamp(56px, 9vw, 96px); line-height: 1.1;
  background: linear-gradient(180deg, #f6e4ad 0%, #E8C877 35%, #C9A86A 65%, #9c7c3e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dh-glow 6s ease-in-out infinite;
}
.hub-kicker { font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: #8f96bb; margin: 14px 0 4px; }
.hub-title {
  margin: 6px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.1; color: #F3EAD2;
}
.hub-sub { max-width: 560px; margin: 14px auto 0; color: #b8bdd6; font-size: 16.5px; line-height: 1.7; padding: 0 1rem; }
.hub-count { margin-top: 16px; font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #C9A86A; }

/* lista artykułów w hubie */
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; counter-reset: hub; }
.hub-list li { counter-increment: hub; }
.hub-list a {
  display: flex; align-items: baseline; gap: 14px; height: 100%;
  background: linear-gradient(180deg, #0f1530, #0b1026);
  border: 1px solid rgba(201,168,106,.16); border-radius: 3px;
  padding: 14px 18px; transition: border-color .2s, transform .2s;
}
.hub-list a:hover { border-color: rgba(201,168,106,.45); transform: translateY(-2px); }
.hub-list a::before {
  content: counter(hub, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #9c7c3e; flex: none;
}
.hub-list .t { font-family: 'Cormorant Garamond', serif; font-size: 18.5px; line-height: 1.3; color: #F0E7CF; }
.hub-list a:hover .t { color: #E8C877; }
@media (max-width: 720px) { .hub-list { grid-template-columns: 1fr; } }

/* przejścia między hubami */
.hub-next {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 2rem;
}
.hub-next a {
  display: block; text-align: center; padding: 22px 18px;
  border: 1px dashed rgba(201,168,106,.3); border-radius: 3px; color: #9aa0c0;
  transition: border-color .2s, color .2s;
}
.hub-next a:hover { border-color: rgba(232,200,119,.6); color: #E8C877; }
.hub-next .ar { font-family: 'Aref Ruqaa', serif; font-size: 26px; color: #C9A86A; display: block; margin-bottom: 6px; }
@media (max-width: 720px) { .hub-next { grid-template-columns: 1fr; } }

/* ---- MOSTEK BIZNESOWY POD ARTYKUŁAMI ---- */
.biz-bridge {
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid rgba(201,168,106,.28); border-left: 3px solid #C9A86A;
  background: linear-gradient(90deg, rgba(201,168,106,.1), rgba(201,168,106,.02));
  border-radius: 0 3px 3px 0;
}
.biz-bridge p { margin: 0; color: #b8bdd6; font-size: .95rem; line-height: 1.6; }
.biz-bridge strong { color: #E8C877; font-weight: 600; }
.biz-bridge .btn-ghost { flex: none; font-size: 16px; padding: 8px 16px; }

/* =============================================
   TRYB BIZNESOWY (body.theme-biz)
   ============================================= */
body.theme-biz { background: #080b1e; }
.theme-biz .page-wrap { background: #080b1e; }

/* czytelniejsza typografia treści w B2B */
.theme-biz .article {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.02rem; line-height: 1.8; color: #d9dcea;
}
.theme-biz .article h2, .theme-biz .article h3 { color: #F3EAD2; }
.theme-biz .article .lead { font-size: 1.14rem; color: #ECE3CE; line-height: 1.75; }
.theme-biz .single-card, .theme-biz .page-card {
  background: linear-gradient(180deg, #121734, #0d1128);
  border-color: rgba(201,168,106,.2);
}

/* hero sekcji biznesowej */
.biz-hero {
  position: relative; overflow: hidden;
  padding: clamp(46px, 7vw, 80px) 0 clamp(40px, 6vw, 66px);
  background: radial-gradient(130% 110% at 50% -30%, #16204a 0%, #0d1230 50%, #080b1e 100%);
  border-bottom: 1px solid rgba(201,168,106,.16);
}
.biz-hero .container { position: relative; }
.biz-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: #9c7c3e;
  border: 1px solid rgba(201,168,106,.3); padding: 5px 12px; border-radius: 2px; margin-bottom: 18px;
}
.biz-title {
  margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; color: #F3EAD2; max-width: 720px;
  text-wrap: balance;
}
.biz-lead { max-width: 640px; margin: 18px 0 0; color: #b8bdd6; font-size: 17.5px; line-height: 1.75; }
.biz-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.biz-hero-ar {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: 'Aref Ruqaa', serif; font-size: clamp(90px, 14vw, 170px); line-height: 1;
  color: rgba(232,200,119,.07); pointer-events: none; -webkit-user-select: none; user-select: none;
}

/* siatka usług */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.biz-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: linear-gradient(180deg, #121734, #0d1128);
  border: 1px solid rgba(201,168,106,.2); border-radius: 3px;
  padding: 26px 26px 24px; transition: border-color .2s, transform .2s;
}
.biz-card:hover { border-color: rgba(201,168,106,.5); transform: translateY(-3px); }
.biz-card .ar { font-family: 'Aref Ruqaa', serif; font-size: 34px; color: #C9A86A; line-height: 1; }
.biz-card h3 { margin: .4rem 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 24px; color: #F0E7CF; }
.biz-card p { margin: 0; color: #9aa3c4; font-size: 15px; line-height: 1.7; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.biz-card .more { margin-top: auto; padding-top: .8rem; font-family: 'Cormorant Garamond', serif; font-size: 17px; color: #C9A86A; }
.biz-card:hover .more { color: #E8C877; }
@media (max-width: 860px) { .biz-grid { grid-template-columns: 1fr; } }

/* sekcja "jak pracuję" – kroki */
.biz-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; counter-reset: step; }
.biz-step {
  counter-increment: step; position: relative;
  background: rgba(18,23,52,.66); border: 1px solid rgba(201,168,106,.16); border-radius: 3px;
  padding: 22px 20px 20px;
}
.biz-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #9c7c3e;
  display: block; margin-bottom: 10px;
}
.biz-step h4 { margin: 0 0 .4rem; font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #F0E7CF; }
.biz-step p { margin: 0; color: #9aa3c4; font-size: 14.5px; line-height: 1.65; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
@media (max-width: 860px) { .biz-steps { grid-template-columns: 1fr; } }

/* pas CTA */
.biz-cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(201,168,106,.25); border-radius: 3px;
  background: linear-gradient(120deg, rgba(201,168,106,.14), rgba(21,28,64,.5) 55%);
  padding: clamp(30px, 5vw, 48px) 24px;
}
.biz-cta-band h2 { margin: 0 0 .5rem; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); color: #F3EAD2; }
.biz-cta-band p { margin: 0 auto 1.4rem; max-width: 520px; color: #b8bdd6; font-size: 16px; line-height: 1.7; }

/* FAQ */
.biz-faq details {
  border: 1px solid rgba(201,168,106,.18); border-radius: 3px;
  background: rgba(18,23,52,.6); margin-bottom: 10px; overflow: hidden;
}
.biz-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 14px 18px; font-family: 'Cormorant Garamond', serif; font-size: 19px; color: #F0E7CF;
}
.biz-faq summary::-webkit-details-marker { display: none; }
.biz-faq summary::after { content: '+'; color: #C9A86A; font-size: 22px; transition: transform .2s; }
.biz-faq details[open] summary::after { transform: rotate(45deg); }
.biz-faq details > div { padding: 0 18px 16px; color: #9aa3c4; font-size: 15px; line-height: 1.7; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* formularz briefu (mailto) */
.biz-form { display: grid; gap: 14px; }
.biz-form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8f96bb; }
.biz-form input, .biz-form select, .biz-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 2px;
  border: 1px solid rgba(201,168,106,.28); background: #0c1129; color: #ECE3CE;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px;
}
.biz-form input:focus, .biz-form select:focus, .biz-form textarea:focus {
  outline: none; border-color: rgba(232,200,119,.65); box-shadow: 0 0 0 3px rgba(201,168,106,.14);
}
.biz-form textarea { min-height: 140px; resize: vertical; }
.biz-form .row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) { .biz-form .row { grid-template-columns: 1fr; } }
.form-note { color: #6f76a0; font-size: 12.5px; line-height: 1.6; }

/* wyróżniki zaufania */
.biz-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.biz-trust div { border-top: 2px solid rgba(201,168,106,.4); padding-top: 12px; }
.biz-trust strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 19px; color: #E8C877; font-weight: 600; margin-bottom: 4px; }
.biz-trust span { color: #9aa3c4; font-size: 14px; line-height: 1.6; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
@media (max-width: 720px) { .biz-trust { grid-template-columns: 1fr; } }

/* sekcje wspólne */
/* ---- O MNIE: fakty eksperckie ---- */
.author-facts {
  margin: 1.4rem 0 .5rem;
  border: 1px solid rgba(201,168,106,.2);
  border-radius: 3px;
  background: rgba(18,23,52,.5);
  padding: 22px 24px;
}
.author-photo {
  float: right; width: 140px; height: 140px; object-fit: cover;
  border-radius: 3px; border: 1px solid rgba(201,168,106,.3);
  margin: 0 0 12px 18px;
}
.author-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 28px; }
.author-cols div { border-top: 2px solid rgba(201,168,106,.35); padding-top: 8px; }
.author-cols strong {
  display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.05rem;
  color: #E8C877; margin-bottom: 3px;
}
.author-cols span { color: #9aa0c0; font-size: .92rem; line-height: 1.55; }
.author-note { margin: 16px 0 0; color: #6f76a0; font-size: .82rem; font-style: italic; }
@media (max-width: 640px) { .author-cols { grid-template-columns: 1fr; } .author-photo { width: 110px; height: 110px; } }

.section-pad { padding: clamp(40px, 6vw, 68px) 0; }
.section-head { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head .ar { font-family: 'Amiri', serif; font-size: 21px; color: #C9A86A; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(26px, 4vw, 38px); color: #F0E7CF; }
.section-head img.divider { width: 260px; margin: 14px auto 0; display: block; opacity: .8; }
.section-head p { color: #9097b8; font-size: 16px; margin: 12px auto 0; max-width: 540px; }
