/* ============================================
   nowyKSM.pl — Stylesheet v2.1
   Kolory: grafit #1F1F1F, malina #C44A6B, złoto #E3B23C
   ============================================ */

:root {
  --bg-dark:       #1F1F1F;
  --bg-mid:        #2a2a2a;
  --bg-light:      #333333;
  --text-main:     #e0e0e0;
  --text-muted:    #bbbbbb;
  --border:        #383838;
  --malina:        #C44A6B;
  --malina-dark:   #a33558;
  --gold:          #E3B23C;
  --gold-gradient: linear-gradient(90deg, #c49020 0%, #e3b23c 30%, #f5d06a 50%, #d4a030 70%, #a07010 100%);
  --bg-content:    #F5F1EA;
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   NAWIGACJA
   ============================================ */
.ksm-nav {
  background: var(--bg-dark);
  padding: 12px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}
.ksm-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ksm-logo-text span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ksm-logo-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ksm-logo-sub .ksm-flip-wrap,
.ksm-nav-brand .ksm-flip-wrap {
  min-width: 68px;
  display: inline-block;
  overflow: hidden;
}
.ksm-footer .ksm-flip-wrap {
  min-width: 68px;
}
.ksm-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ksm-nav-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.ksm-nav-menu {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ccc;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.ksm-hero {
  min-height: 55vh;
  border-bottom: none;
  background-image: url('https://projekt.nowyksm.pl/wp-content/uploads/2026/05/tlo_ksm2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.ksm-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #9b2318);
  pointer-events: none;
}
.ksm-hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 55vh;
}
.ksm-hero-text {
  flex: 1;
  padding: 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to right, rgba(10,5,5,0.65) 0%, rgba(10,5,5,0.45) 60%, rgba(10,5,5,0.05) 100%);
}
.ksm-hero-tag {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 30px;
  align-self: flex-start;
}
.ksm-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.15;
  font-weight: 900;
  color: #f0e8d8;
  margin-bottom: 8px;
  -webkit-text-fill-color: #f0e8d8;
  overflow: visible;
}
.ksm-hero-title .ksm-flip-word {
  color: #E3B23C;
  -webkit-text-fill-color: #E3B23C;
}
.ksm-hero-gold {
  color: #f0e8d8;
  -webkit-text-fill-color: #f0e8d8;
}
.ksm-hero-claim {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E3B23C;
  -webkit-text-fill-color: #E3B23C;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 20px;
  margin-top: 0;
  display: inline-block;
  white-space: nowrap;
}
.ksm-hero-kalend {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ksm-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.8;
}
.ksm-flip-wrap {
  display: inline-block;
  perspective: 600px;
  min-width: 6.5em;
  text-align: left;
}
.ksm-flip-word {
  display: inline;
  color: #E3B23C;
  transition: opacity 0.4s ease;
}
.ksm-flip-word.flipping {
  opacity: 0;
}

/* ============================================
   PRZYCISKI — NADPISANIE HELLO ELEMENTOR
   Wszystkie reguły z !important żeby pokonać reset.css
   ============================================ */
button.ksm-btn-gold,
button.ksm-btn-gold:not(:disabled) {
  display: inline-block !important;
  padding: 14px 28px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  align-self: flex-start !important;
  transition: 0.3s !important;
  cursor: pointer !important;
  font-family: 'Space Grotesk', sans-serif !important;
  background: transparent !important;
  border-radius: 0 !important;
}
button.ksm-btn-gold:hover,
button.ksm-btn-gold:focus {
  background: var(--gold) !important;
  color: #111 !important;
  border-color: var(--gold) !important;
}

button.ksm-read-more,
button.ksm-read-more:not(:disabled) {
  background: transparent !important;
  border: 1px solid #bbb !important;
  color: #777 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  font-family: 'Space Grotesk', sans-serif !important;
  transition: 0.25s !important;
  border-radius: 0 !important;
}
button.ksm-read-more:hover,
button.ksm-read-more:focus {
  background-color: transparent !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
button.ksm-read-more.open {
  border-color: #111 !important;
  color: #111 !important;
}

button.ksm-subpage-back,
button.ksm-subpage-back:not(:disabled) {
  background: none !important;
  border: none !important;
  color: #888 !important;
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-bottom: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: color 0.2s !important;
  padding: 0 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  border-radius: 0 !important;
}
button.ksm-subpage-back:hover,
button.ksm-subpage-back:focus {
  background-color: transparent !important;
  color: var(--malina) !important;
}

button.ksm-vote-btn,
button.ksm-vote-btn:not(:disabled) {
  width: 100% !important;
  background: transparent !important;
  border: 1px solid #444 !important;
  color: #ccc !important;
  padding: 11px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  font-family: 'Space Grotesk', sans-serif !important;
  transition: 0.2s !important;
  margin-bottom: 8px !important;
  display: block !important;
  border-radius: 0 !important;
}
button.ksm-vote-btn:hover,
button.ksm-vote-btn:focus {
  background-color: transparent !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

button.ksm-modal-btn,
button.ksm-modal-btn:not(:disabled) {
  background: var(--malina) !important;
  border: none !important;
  color: #fff !important;
  padding: 16px 24px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  width: 100% !important;
  border-radius: 0 !important;
}
button.ksm-modal-btn:hover,
button.ksm-modal-btn:focus {
  background: var(--malina-dark) !important;
  color: #fff !important;
}

button.ksm-modal-close,
button.ksm-modal-close:not(:disabled) {
  position: absolute !important;
  top: 20px !important;
  right: 24px !important;
  background: none !important;
  border: none !important;
  color: #555 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  transition: color 0.2s !important;
  border-radius: 0 !important;
}
button.ksm-modal-close:hover,
button.ksm-modal-close:focus {
  background: none !important;
  color: #fff !important;
}

button.ksm-glos-btn,
button.ksm-glos-btn:not(:disabled) {
  background: var(--malina) !important;
  border: none !important;
  color: #fff !important;
  padding: 15px 32px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  align-self: flex-start !important;
  border-radius: 0 !important;
}
button.ksm-glos-btn:hover,
button.ksm-glos-btn:focus {
  background: var(--malina-dark) !important;
  color: #fff !important;
}

button.ksm-post-full-close,
button.ksm-post-full-close:not(:disabled) {
  display: inline-block !important;
  margin-top: 24px !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #888 !important;
  cursor: pointer !important;
  border: none !important;
  background: none !important;
  font-family: 'Space Grotesk', sans-serif !important;
  padding: 0 !important;
  transition: color 0.2s !important;
  border-radius: 0 !important;
}
button.ksm-post-full-close:hover,
button.ksm-post-full-close:focus {
  color: #111 !important;
  background: none !important;
}

/* Hero Cover — cytaty */
.ksm-hero-cover {
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 80px;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
.ksm-hero-quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.ksm-quotes-label {
  display: none;
}
.ksm-quotes-wrap {
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ksm-quotes-mark {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  line-height: 0.4;
  display: block;
  margin-bottom: 24px;
  color: #f0e0b0;
  opacity: 0.35;
}
.ksm-quotes-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.8vw, 42px);
  line-height: 1.6;
  color: #f5edd8;
  text-align: center;
  letter-spacing: 0.01em;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.98), 0 0 28px rgba(0,0,0,0.9), 2px 2px 0 rgba(0,0,0,0.95);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  width: 100%;
  box-sizing: border-box;
}
.ksm-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #f0e0b0;
  margin-left: 2px;
  vertical-align: middle;
  animation: ksm-blink 0.6s step-end infinite;
}
@keyframes ksm-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.ksm-quotes-author {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #f5edd8;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 2px 6px rgba(0,0,0,0.98), 0 0 20px rgba(0,0,0,0.9);
  text-align: center;
}
.ksm-quotes-author.visible {
  opacity: 1;
}
.ksm-quotes-dots {
  display: flex;
  gap: 7px;
  margin-top: 28px;
}
.ksm-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0e0b0;
  opacity: 0.25;
  transition: opacity 0.3s;
}
.ksm-dot.active {
  opacity: 0.85;
}


/* ============================================
   BLOKI 01–05
   ============================================ */
.ksm-blocks-wrap {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ksm-block {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.25s;
  min-height: 200px;
  background: var(--bg-dark);
}
.ksm-block:nth-child(even) {
  border-right: none;
}
.ksm-subpage {
  grid-column: span 2;
}
.ksm-block:hover { background: var(--bg-mid); }
.ksm-block-num { width: 60px; min-width: 60px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; letter-spacing: 0.1em; writing-mode: vertical-rl; text-transform: uppercase; user-select: none; }

.ksm-block-1 .ksm-block-num { background: linear-gradient(180deg, #8B1A1A 0%, #b82020 50%, #6a0808 100%); }
.ksm-block-2 .ksm-block-num { background: linear-gradient(180deg, #0e7a6e 0%, #1ab5a0 50%, #0a5c52 100%); }
.ksm-block-3 .ksm-block-num { background: linear-gradient(180deg, #1e2d6b 0%, #3d56c4 50%, #162050 100%); }
.ksm-block-4 .ksm-block-num { background: linear-gradient(180deg, #c49020 0%, #e3b23c 50%, #a07010 100%); }
.ksm-block-5 .ksm-block-num { background: linear-gradient(180deg, #8a2040 0%, #C44A6B 50%, #6a1830 100%); }
.ksm-block-6 .ksm-block-num { background: linear-gradient(180deg, #5a1a6a 0%, #9b3ab5 50%, #3a0a4a 100%); }
.ksm-block-body { flex: 1; padding: 40px 48px; display: flex; align-items: center; gap: 40px; }
.ksm-block-info { flex: 1; }
.ksm-block-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.ksm-block-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.ksm-block-desc { font-size: 16px; color: var(--text-muted); max-width: 520px; line-height: 1.7; }
.ksm-block-cta { min-width: 150px; text-align: center; padding: 13px 20px; border: 1px solid #444; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #ccc; transition: 0.3s; white-space: nowrap; flex-shrink: 0; }
.ksm-block:hover .ksm-block-cta { border-color: var(--gold); color: var(--gold); }

/* ============================================
   SUBSTRONY
   ============================================ */
.ksm-subpage { display: none; padding: 64px 80px 80px; border-bottom: 1px solid var(--border); background: var(--bg-content); animation: ksmFadeIn 0.35s ease; color: #2a1a1f; }
.ksm-subpage.open { display: block; }
@keyframes ksmFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.ksm-subpage h2 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 900; color: #111; margin-bottom: 40px; line-height: 1; max-width: 760px; margin-left: auto; margin-right: auto; }
.ksm-subpage > p { font-size: 17px; color: #333; max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 22px; line-height: 1.9; }

/* ============================================
   LISTA WPISÓW
   ============================================ */
.ksm-posts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; }
.ksm-post-card { padding: 40px 48px 40px 0; border-bottom: 1px solid #d8d0c8; border-right: 1px solid #d8d0c8; }
.ksm-post-card:nth-child(even) { padding: 40px 0 40px 48px; border-right: none; }
.ksm-post-card:nth-last-child(-n+2) { border-bottom: none; }
.ksm-post-num { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; color: #999; }
.ksm-subpage-zurnalik  .ksm-post-num { color: #c0392b; }
.ksm-subpage-nostalgia .ksm-post-num { color: #3d56c4; }
.ksm-subpage-glosy     .ksm-post-num { color: var(--malina); }
.ksm-subpage-liscik    .ksm-post-num { color: var(--gold); }
.ksm-post-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: #111; margin-bottom: 12px; line-height: 1.25; }
.ksm-post-excerpt { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.ksm-post-full { grid-column: 1 / -1; padding: 40px 0; border-top: 2px solid #111; margin-top: 8px; animation: ksmFadeIn 0.3s ease; }
.ksm-post-full p { font-size: 17px; color: #333; line-height: 1.9; margin-bottom: 22px; max-width: 760px; }
.ksm-post-full h2, .ksm-post-full h3 { font-family: 'Playfair Display', serif; color: #111; margin-bottom: 16px; }
.ksm-no-posts { font-size: 14px; color: #888; font-style: italic; padding: 20px 0; }

/* ============================================
   SKLEP
   ============================================ */
.ksm-sklep-banner { background: #111; padding: 72px 48px; text-align: center; margin-bottom: 48px; }
.ksm-sklep-badge { display: inline-block; background: var(--gold-gradient); padding: 7px 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #111; margin-bottom: 28px; }
.ksm-sklep-title { font-family: 'Playfair Display', serif; font-size: clamp(36px, 6vw, 64px); font-weight: 900; color: #fff; -webkit-text-fill-color: #fff; line-height: 1.1; margin-bottom: 24px; }
.ksm-sklep-title em { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }

/* ============================================
   FOOTER
   ============================================ */
.ksm-footer { background: var(--bg-dark); padding: 36px 80px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; }
.ksm-footer-brand { display: flex; align-items: center; gap: 14px; }
.ksm-footer-logo { width: 52px; height: 52px; object-fit: contain; }
.ksm-footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.ksm-footer a:hover { color: var(--gold); }
.ksm-footer-links { display: flex; gap: 28px; }

/* ============================================
   MODAL
   ============================================ */
.ksm-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.ksm-modal.open { display: flex; }
.ksm-modal-backdrop { position: absolute; inset: 0; background: rgba(10,5,8,0.88); backdrop-filter: blur(4px); }
.ksm-modal-box { position: relative; background: #1F1F1F; border: 1px solid #383838; padding: 56px 60px; max-width: 520px; width: 90%; animation: ksmFadeIn 0.3s ease; }
.ksm-modal-label { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--malina); font-weight: 700; margin-bottom: 14px; }
.ksm-modal-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 16px; }
.ksm-modal-sub { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.ksm-modal-form { display: flex; flex-direction: column; gap: 12px; }
.ksm-modal-input { background: transparent; border: 1px solid #444; padding: 15px 18px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 15px; outline: none; transition: border-color 0.3s; width: 100%; }
.ksm-modal-input:focus { border-color: var(--malina); }
.ksm-modal-input::placeholder { color: #555; }
.ksm-modal-success { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; line-height: 1.5; padding: 8px 0; }
.ksm-modal-error { font-size: 13px; color: #e07070; margin-bottom: 12px; }

/* ============================================
   FORMULARZ TWÓJ GŁOS
   ============================================ */
.ksm-glos-formularz { margin-top: 48px; padding: 48px; border: 1px solid var(--malina); background: rgba(196,74,107,0.04); max-width: 760px; margin-left: auto; margin-right: auto; }
.ksm-glos-form-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: #111; margin-bottom: 12px; line-height: 1.1; }
.ksm-glos-form-sub { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 32px; }
.ksm-glos-form { display: flex; flex-direction: column; gap: 14px; }
.ksm-glos-row { display: flex; gap: 14px; }
.ksm-glos-input, .ksm-glos-textarea { background: #fff; border: 1px solid #d0c8c0; padding: 14px 18px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: #111; outline: none; transition: border-color 0.3s; width: 100%; }
.ksm-glos-input:focus, .ksm-glos-textarea:focus { border-color: var(--malina); }
.ksm-glos-textarea { resize: vertical; min-height: 140px; }
.ksm-glos-success { font-family: 'Playfair Display', serif; font-size: 22px; color: #111; line-height: 1.5; padding: 8px 0; }
.ksm-glos-error { font-size: 13px; color: #c0392b; margin-bottom: 12px; padding: 12px 16px; background: rgba(192,57,43,0.08); border-left: 3px solid #c0392b; }

/* ============================================
   RESPONSIVE
   ============================================ */
.ksm-hero-claim { display: none; }
@media (max-width: 900px) {
  .ksm-nav { padding: 16px 24px; }
  .ksm-hero-claim { display: inline-block; }
  .ksm-hero-inner { flex-direction: column; }
  .ksm-hero-text { border-right: none; background: linear-gradient(to bottom, rgba(10,5,5,0.68) 0%, rgba(10,5,5,0.45) 70%, rgba(10,5,5,0.0) 100%); padding: 56px 24px 32px; }
  .ksm-hero-cover { padding: 20px 28px 20px; background: transparent; }
  .ksm-hero-sub { margin-bottom: 24px; }
  .ksm-hero-quotes { max-width: 75%; margin: 0 auto; }
  .ksm-quotes-text { font-size: 18px; }
  .ksm-quotes-text { font-size: 20px; line-height: 1.5; }
  .ksm-hero-quotes { max-width: 100%; }
  .ksm-blocks-wrap { grid-template-columns: 1fr; }
  .ksm-block { border-right: none; }
  .ksm-subpage { grid-column: span 1; }
  .ksm-block-body { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .ksm-nav-logo { width: 36px !important; height: 36px !important; }
  .ksm-footer-logo { width: 36px !important; height: 36px !important; }
  .ksm-block-cta { width: 100%; text-align: center; }
  .ksm-subpage { padding: 40px 20px 48px; }
  .ksm-subpage h2 { font-size: 32px; }
  .ksm-posts-list { grid-template-columns: 1fr; }
  .ksm-post-card, .ksm-post-card:nth-child(even) { padding: 32px 0; border-right: none; border-bottom: 1px solid #d8d0c8; }
  .ksm-post-card:last-child { border-bottom: none; }
  .ksm-footer { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .ksm-footer-links { text-align: left; }
  .ksm-quotes-text { font-size: 22px; line-height: 1.6; text-wrap: balance; }
  .ksm-hero-quotes { max-width: 80%; margin: 0 auto; }
  .ksm-footer-links { flex-wrap: wrap; justify-content: center; }
  .ksm-modal-box { padding: 40px 28px; }
  .ksm-modal-title { font-size: 32px; }
  .ksm-glos-formularz { padding: 28px 20px; }
  .ksm-glos-row { flex-direction: column; }
  button.ksm-glos-btn { width: 100% !important; }
  button.ksm-btn-gold { align-self: stretch !important; text-align: center !important; }
  .ksm-hero-inner { flex-direction: column; }
  .ksm-hero-text {
    background: linear-gradient(to bottom, rgba(10,5,5,0.68) 0%, rgba(10,5,5,0.45) 70%, rgba(10,5,5,0.0) 100%);
    padding: 48px 24px 60px;
  }
  .ksm-hero-cover { 
    padding: 0 24px 40px;
    background: transparent;
    margin-top: 0;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .ksm-hero-quotes { width: 100%; max-width: 100%; box-sizing: border-box; }
  .ksm-quotes-wrap { width: 100%; box-sizing: border-box; overflow: hidden; }
  .ksm-quotes-text { font-size: 20px; line-height: 1.6; }
}

/* ============================================
   TWÓJ GŁOS — TESTIMONIALE
   ============================================ */
.ksm-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.ksm-testimonial {
  margin: 0;
  padding: 32px 36px;
  background: rgba(196,74,107,0.04);
  border-left: 3px solid var(--malina);
  position: relative;
}

.ksm-testimonial:first-child {
  grid-column: 1 / -1;
  border-left-color: var(--gold);
  background: rgba(227,178,60,0.05);
}

.ksm-testimonial-content p {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #222;
  margin-bottom: 16px;
  max-width: 100%;
}

/* Nazwisko autora (ostatni <p> w treści) */
.ksm-testimonial-content p:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .ksm-testimonials {
    grid-template-columns: 1fr;
  }
  .ksm-testimonial:first-child {
    grid-column: span 1;
  }
  .ksm-testimonial {
    padding: 24px 20px;
  }
}
a.ksm-btn-gold,
a.ksm-btn-gold:link,
a.ksm-btn-gold:visited {
  display: inline-block !important;
  width: auto !important;
  align-self: flex-start !important;
  padding: 14px 28px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  font-family: 'Space Grotesk', sans-serif !important;
  transition: 0.3s !important;
}
a.ksm-btn-gold:hover,
a.ksm-btn-gold:focus {
  background: var(--gold) !important;
  color: #111 !important;
  border-color: var(--gold) !important;
}
/* ============================================
   nowyKSM — Banner cookies (RODO)
   Dopisać na końcu pliku nowyksm.css
   ============================================ */

.ksm-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg-dark);
  border-top: 1px solid var(--gold);
  padding: 28px 48px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
.ksm-cookie-banner.ksm-cookie-visible {
  transform: translateY(0);
}

.ksm-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ksm-cookie-text {
  flex: 1;
  min-width: 0;
}
.ksm-cookie-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.ksm-cookie-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}
.ksm-cookie-desc a {
  color: var(--gold);
  text-decoration: underline;
}

.ksm-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ksm-cookie-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  transition: 0.25s;
  white-space: nowrap;
}
.ksm-cookie-btn:hover {
  background: rgba(227,178,60,0.12);
  color: var(--gold);
}

.ksm-cookie-btn-accept {
  background: var(--gold-gradient);
  color: #111;
  border: none;
}
.ksm-cookie-btn-accept:hover {
  filter: brightness(1.08);
  color: #111;
}

.ksm-cookie-btn-settings {
  border-color: var(--gold);
  color: var(--gold);
}
.ksm-cookie-btn-settings:hover {
  background: rgba(227,178,60,0.12);
  color: var(--gold);
}

/* ============================================
   MODAL — ustawienia szczegółowe
   ============================================ */
.ksm-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ksm-cookie-modal-overlay.ksm-cookie-modal-open {
  display: flex;
}
.ksm-cookie-modal {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
}
.ksm-cookie-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}
.ksm-cookie-category {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.ksm-cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ksm-cookie-category-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.ksm-cookie-category-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* przełącznik */
.ksm-cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.ksm-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.ksm-cookie-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
}
.ksm-cookie-switch-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  transition: 0.2s;
}
.ksm-cookie-switch input:checked + .ksm-cookie-switch-track {
  border-color: var(--gold);
}
.ksm-cookie-switch input:checked + .ksm-cookie-switch-track::after {
  transform: translateX(18px);
  background: var(--gold);
}
.ksm-cookie-switch input:disabled + .ksm-cookie-switch-track {
  opacity: 0.5;
  cursor: not-allowed;
}
.ksm-cookie-switch input:disabled + .ksm-cookie-switch-track::after {
  background: var(--gold);
  transform: translateX(18px);
}

.ksm-cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.ksm-cookie-modal-actions .ksm-cookie-btn {
  flex: 1;
  text-align: center;
}

/* ============================================
   MIĘDZY NAMI — SINGLE POST
   ============================================ */
.single-miedzy_nami .page-content {
  background: var(--bg-content);
  color: #1a1a1a;
  padding: 48px 64px;
  max-width: 860px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
}

.single-miedzy_nami .page-content h1,
.single-miedzy_nami .page-content h2,
.single-miedzy_nami .page-content h3 {
  font-family: 'Playfair Display', serif;
  color: #111;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.single-miedzy_nami .page-content p {
  color: #222;
  margin-bottom: 20px;
}

.single-miedzy_nami .page-content a {
  color: var(--malina);
  text-decoration: underline;
}

.single-miedzy_nami .page-content strong {
  color: #111;
}

@media (max-width: 768px) {
  .single-miedzy_nami .page-content {
    padding: 32px 24px;
    font-size: 16px;
  }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .ksm-cookie-banner {
    padding: 22px 24px;
  }
  .ksm-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .ksm-cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ksm-cookie-btn {
    width: 100%;
    text-align: center;
  }
  .ksm-cookie-modal {
    padding: 24px;
  }
}



