/*
Theme Name: ConverterSEO
Theme URI: https://converterseo.com
Author: DESEO DESIGN sp. z o.o.
Author URI: https://converterseo.com
Description: Motyw strony sprzedażowej ConverterSEO. Bez frameworków, bez page buildera — treść w edytorze bloków, wygląd tutaj. Czcionki hostowane lokalnie, żadnych żądań do obcych serwerów.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: converterseo
*/

/* ============================================================ czcionki
   Hostowane u nas, nie w Google. Dwa powody: szybciej (jedno połączenie
   mniej) i nie wysyłamy IP odwiedzającego do Google, co w UE jest
   osobnym problemem prawnym — sąd w Monachium orzekł, że samo wczytanie
   czcionki z serwera Google to przekazanie danych bez podstawy.
   Dzięki temu strona nie potrzebuje zgody na czcionki.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/karla-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/karla-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================ tokeny */
:root {
  --cs-ink: #17110C;
  --cs-body: #5D544C;
  --cs-muted: #8C8178;
  --cs-line: #EAE2D9;
  --cs-line-2: #D6CABD;
  --cs-cream: #FBF8F5;
  --cs-white: #FFFFFF;

  --cs-accent: #C2410C;
  --cs-accent-2: #9A340A;
  --cs-accent-lt: #FF8A4C;

  --cs-ok: #2F6B3C;
  --cs-ok-bg: #EAF3EC;

  --cs-dk-card: #221A13;
  --cs-dk-line: #3A2E24;
  --cs-dk-body: #C8BEB4;
  --cs-dk-muted: #9C9084;

  --cs-disp: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --cs-text: Karla, "Helvetica Neue", Arial, sans-serif;
  --cs-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --cs-r: 6px;
  --cs-r-lg: 12px;
  --cs-pad: clamp(20px, 5vw, 64px);
  --cs-band: clamp(48px, 7vw, 76px);
  --cs-max: 1200px;
}

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

body {
  margin: 0;
  background: var(--cs-white);
  color: var(--cs-body);
  font-family: var(--cs-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .cs-disp { font-family: var(--cs-disp); color: var(--cs-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.12; }
h3 { font-size: clamp(18px, 2vw, 19px); line-height: 1.25; }
p { margin: 0; }

a { color: var(--cs-accent); text-decoration: none; }
a:hover { color: var(--cs-accent-2); text-decoration: underline; }

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

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.cs-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cs-ink); color: #fff; padding: 12px 18px;
  font-family: var(--cs-disp); font-weight: 700;
}
.cs-skip:focus { left: 8px; top: 8px; color: #fff; text-decoration: none; }

/* ============================================================ pasma */
.cs-band { padding-block: var(--cs-band); }
.cs-band--cream { background: var(--cs-cream); }
.cs-band--ink { background: var(--cs-ink); color: var(--cs-dk-body); }
.cs-band--ink h1, .cs-band--ink h2, .cs-band--ink h3, .cs-band--ink h4 { color: var(--cs-white); }
.cs-band--ink strong { color: var(--cs-white); }
.cs-band--t { border-top: 1px solid var(--cs-line); }
.cs-band--b { border-bottom: 1px solid var(--cs-line); }
.cs-band--tb { border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
.cs-band--tight { padding-block: clamp(34px, 4.5vw, 46px); }

.cs-inner { max-width: var(--cs-max); margin-inline: auto; padding-inline: var(--cs-pad); }

.cs-stack { display: flex; flex-direction: column; gap: 16px; }
.cs-stack--wide { max-width: 64ch; }
.cs-stack--mid { max-width: 56ch; }
.cs-center { align-items: center; text-align: center; margin-inline: auto; }

.cs-two { display: grid; gap: clamp(30px, 4vw, 56px); align-items: center; }
.cs-two--top { align-items: start; }
@media (min-width: 900px) {
  .cs-two { grid-template-columns: 1fr 1fr; }
  .cs-two--wide-left { grid-template-columns: 1.1fr 1fr; }
}

.cs-grid-2, .cs-grid-3, .cs-grid-4, .cs-grid-6 { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .cs-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .cs-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================ drobne role tekstu */
.cs-eyebrow {
  font-family: var(--cs-disp); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cs-accent);
}
.cs-band--ink .cs-eyebrow { color: var(--cs-accent-lt); }

.cs-lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 48ch; }
.cs-band--ink .cs-lede { max-width: 62ch; }
.cs-note { font-size: 14.5px; color: var(--cs-muted); }
.cs-band--ink .cs-note { color: var(--cs-dk-muted); }
.cs-small { font-size: 14.5px; }
.cs-mono { font-family: var(--cs-mono); font-size: 13.5px; }
.cs-band--ink .cs-mono { color: var(--cs-dk-muted); }
.cs-num { font-variant-numeric: tabular-nums; }
strong { color: var(--cs-ink); font-weight: 700; }

/* ============================================================ przyciski */
.wp-block-button__link,
.cs-btn {
  font-family: var(--cs-disp); font-weight: 700; font-size: 16px;
  line-height: 1.2; padding: 14px 26px; border-radius: var(--cs-r);
  background: var(--cs-accent); color: #fff; border: 1px solid var(--cs-accent);
  display: inline-block; transition: background .15s ease, border-color .15s ease;
}
.wp-block-button__link:hover, .cs-btn:hover {
  background: var(--cs-accent-2); border-color: var(--cs-accent-2);
  color: #fff; text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link,
.cs-btn--ghost {
  background: transparent; color: var(--cs-ink); border: 1px solid var(--cs-line-2);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.cs-btn--ghost:hover { background: var(--cs-cream); color: var(--cs-ink); border-color: var(--cs-line-2); }

.cs-band--ink .wp-block-button__link {
  background: var(--cs-accent-lt); border-color: var(--cs-accent-lt); color: #24140A;
}
.cs-band--ink .wp-block-button__link:hover { background: #FFA06E; border-color: #FFA06E; color: #24140A; }

.wp-block-buttons { gap: 12px; }
.cs-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cs-cta .wp-block-buttons { margin: 0; }

/* ============================================================ karty i panele */
.cs-card {
  border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg);
  background: var(--cs-white); padding: 22px;
}
.cs-band--cream .cs-card { background: var(--cs-white); }
.cs-band--ink .cs-card { background: var(--cs-dk-card); border-color: var(--cs-dk-line); }

.cs-panel { border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg); overflow: hidden; background: var(--cs-white); }
.cs-panel__bar {
  background: var(--cs-cream); border-bottom: 1px solid var(--cs-line);
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cs-panel__bar > :first-child { font-family: var(--cs-disp); font-weight: 700; font-size: 15px; color: var(--cs-ink); }
.cs-panel__bar > :last-child { font-size: 13px; color: var(--cs-muted); }

.cs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--cs-line);
}
.cs-row:last-child { border-bottom: 0; }
.cs-row > :first-child { font-size: 15px; color: var(--cs-ink); }
.cs-row > :last-child {
  font-family: var(--cs-disp); font-size: 20px; font-weight: 700;
  color: var(--cs-accent); font-variant-numeric: tabular-nums;
}

/* ============================================================ liczby */
.cs-stat { display: flex; flex-direction: column; gap: 4px; }
.cs-stat__n {
  font-family: var(--cs-disp); font-size: clamp(30px, 4vw, 42px); font-weight: 700;
  color: var(--cs-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05;
}
.cs-stat__n--accent { color: var(--cs-accent); }
.cs-stat > p:last-child { font-size: 14.5px; }

/* ============================================================ hero: makieta konwertera */
.cs-demo {
  border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg);
  background: var(--cs-cream); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.cs-demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-demo__head > :first-child { font-family: var(--cs-disp); font-weight: 700; font-size: 15px; color: var(--cs-ink); }
.cs-demo__head > :last-child { font-size: 13px; color: var(--cs-muted); }
.cs-file {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--cs-white); border: 1px solid var(--cs-line);
  border-radius: 8px; padding: 12px 14px;
}
.cs-file__name { font-family: var(--cs-mono); font-size: 13.5px; color: var(--cs-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-file__size { font-size: 12.5px; color: var(--cs-muted); }
.cs-file__cut {
  font-family: var(--cs-disp); font-size: 13px; font-weight: 700; white-space: nowrap;
  color: var(--cs-ok); background: var(--cs-ok-bg); padding: 5px 10px; border-radius: 5px;
}

/* ============================================================ próbka opisu */
.cs-sample { display: flex; gap: 16px; align-items: flex-start; }
.cs-sample__thumb {
  width: 92px; height: 92px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #E8DFD5, #D6CABD);
}
.cs-field { display: flex; flex-direction: column; gap: 3px; }
.cs-field > :first-child {
  font-family: var(--cs-disp); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cs-muted);
}
.cs-field > :last-child { font-size: 15px; color: var(--cs-ink); }

/* ============================================================ listy z ptaszkiem */
.cs-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-ticks li { position: relative; padding-left: 32px; }
.cs-ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: no-repeat center / 20px 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23C2410C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');
}

/* ============================================================ kroki */
.cs-step { display: flex; flex-direction: column; gap: 10px; }
.cs-step__n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--cs-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cs-disp); font-size: 15px; font-weight: 700; flex: none;
}

/* ============================================================ kafle formatów */
.cs-fmt {
  border: 1px solid var(--cs-line); background: var(--cs-white); border-radius: 8px;
  padding: 14px; text-align: center; font-size: 14px; color: var(--cs-ink);
}
.cs-grid-6 { gap: 10px; }

/* ============================================================ cennik */
.cs-plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 620px) { .cs-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cs-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-plan {
  border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
  background: var(--cs-white); position: relative;
}
.cs-plan--best { border: 2px solid var(--cs-accent); }
.cs-plan__tag {
  position: absolute; top: -11px; left: 22px; background: var(--cs-accent); color: #fff;
  font-family: var(--cs-disp); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.cs-plan__name { font-family: var(--cs-disp); font-size: 17px; font-weight: 700; color: var(--cs-ink); }
.cs-plan__price {
  font-family: var(--cs-disp); font-size: 34px; font-weight: 700; color: var(--cs-ink);
  letter-spacing: -.03em; line-height: 1;
}
.cs-plan__price span { font-family: var(--cs-text); font-size: 14px; font-weight: 400; color: var(--cs-muted); letter-spacing: 0; }
.cs-plan__list {
  list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--cs-line);
  display: flex; flex-direction: column; gap: 8px; font-size: 14.5px;
}
.cs-plan__list .cs-free { color: var(--cs-ok); }
.cs-plan .wp-block-buttons { margin-top: auto; }
.cs-plan .wp-block-button { width: 100%; }
.cs-plan .wp-block-button__link { display: block; text-align: center; font-size: 14.5px; padding: 12px; }

/* ============================================================ pytania */
.cs-faq { max-width: 780px; margin-inline: auto; }
.cs-faq .wp-block-details {
  border-bottom: 1px solid var(--cs-line); padding: 20px 0;
}
.cs-faq .wp-block-details summary {
  font-family: var(--cs-disp); font-size: 18px; font-weight: 700; color: var(--cs-ink);
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.cs-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.cs-faq .wp-block-details summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: no-repeat center / 20px 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%238C8178" stroke-width="2" stroke-linecap="round"><path d="M12 5v14"/><path d="M5 12h14"/></svg>');
  transition: transform .2s ease;
}
.cs-faq .wp-block-details[open] summary::after {
  transform: rotate(45deg);
}
.cs-faq .wp-block-details > *:not(summary) { margin-top: 10px; font-size: 15.5px; }

/* ============================================================ nagłówek strony */
.cs-head {
  position: sticky; top: 0; z-index: 50; background: var(--cs-white);
  border-bottom: 1px solid var(--cs-line);
}
.cs-head__in {
  max-width: var(--cs-max); margin-inline: auto; padding: 16px var(--cs-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cs-logo {
  font-family: var(--cs-disp); font-size: 19px; font-weight: 700;
  color: var(--cs-ink); letter-spacing: -.01em; white-space: nowrap;
}
.cs-logo:hover { color: var(--cs-ink); text-decoration: none; }
.cs-logo b { color: var(--cs-accent); font-weight: 700; }

.cs-nav { display: flex; align-items: center; gap: 28px; }
.cs-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.cs-nav a { font-size: 15px; color: var(--cs-body); }
.cs-nav a:hover { color: var(--cs-accent); text-decoration: none; }
.cs-nav .cs-btn { font-size: 14px; padding: 10px 18px; color: #fff; }

.cs-burger {
  display: none; background: none; border: 1px solid var(--cs-line-2);
  border-radius: var(--cs-r); padding: 9px 12px; cursor: pointer;
  font-family: var(--cs-disp); font-weight: 700; font-size: 14px; color: var(--cs-ink);
}
@media (max-width: 940px) {
  .cs-burger { display: block; }
  .cs-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cs-white); border-bottom: 1px solid var(--cs-line);
    padding: 8px var(--cs-pad) 20px;
  }
  .cs-nav.is-open { display: flex; }
  .cs-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .cs-nav li { border-bottom: 1px solid var(--cs-line); }
  .cs-nav ul a { display: block; padding: 14px 0; font-size: 16px; }
  .cs-nav .cs-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
  .cs-nav .cs-btn { text-align: center; }
}
.cs-actions { display: flex; align-items: center; gap: 18px; }

/* ============================================================ stopka */
.cs-foot { background: var(--cs-cream); border-top: 1px solid var(--cs-line); }
.cs-foot__in {
  max-width: var(--cs-max); margin-inline: auto; padding: 36px var(--cs-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--cs-muted);
}
.cs-foot ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; }
.cs-foot a { color: var(--cs-muted); }
.cs-foot a:hover { color: var(--cs-accent); }

/* ============================================================ przełącznik języka
   Zbudowany na <details>, żeby rozwijał się bez JavaScriptu.
   ------------------------------------------------------------ */
.cs-lang { position: relative; }

.cs-lang summary {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border: 1px solid var(--cs-line); border-radius: var(--cs-r);
  cursor: pointer; list-style: none;
  font-family: var(--cs-disp); font-weight: 700; font-size: 13px;
  color: var(--cs-ink); background: var(--cs-white);
  transition: border-color .15s ease;
}
.cs-lang summary::-webkit-details-marker { display: none; }
.cs-lang summary:hover { border-color: var(--cs-line-2); }
.cs-lang summary svg { color: var(--cs-muted); transition: transform .18s ease; }
.cs-lang[open] summary svg { transform: rotate(180deg); }

.cs-lang img {
  width: 16px; height: 11px; display: block; flex: none;
  border-radius: 1px; box-shadow: 0 0 0 1px rgba(23, 17, 12, .12);
}

.cs-lang ul {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 172px; margin: 0; padding: 6px; list-style: none;
  background: var(--cs-white); border: 1px solid var(--cs-line);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(23, 17, 12, .10);
}
.cs-lang li + li { margin-top: 2px; }
.cs-lang ul a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 6px;
  font-family: var(--cs-disp); font-weight: 700; font-size: 13px; color: var(--cs-ink);
}
.cs-lang ul a:hover { background: var(--cs-cream); color: var(--cs-ink); text-decoration: none; }
.cs-lang ul em {
  font-family: var(--cs-text); font-style: normal; font-weight: 400;
  font-size: 13.5px; color: var(--cs-muted); margin-left: auto;
}
.cs-lang li.is-current a { background: var(--cs-cream); }
.cs-lang li.is-current em { color: var(--cs-ink); }

/* Na telefonie lista rozwija się w miejscu, a nie nad treścią — pasek
   nawigacji jest wtedy sam rozwiniętym panelem i nakładanie się nie ma sensu. */
@media (max-width: 940px) {
  .cs-lang { width: 100%; }
  .cs-lang summary { justify-content: flex-start; }
  .cs-lang ul { position: static; min-width: 0; box-shadow: none; margin-top: 6px; }
}

/* ============================================================ ruch
   Wchodzi tylko, jeśli JavaScript się wykonał (klasa na <html>) — bez
   niego treść jest po prostu widoczna, a nie niewidoczna na zawsze.
   ------------------------------------------------------------ */
.js .cs-reveal { opacity: 0; transform: translateY(14px); }
.js .cs-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .cs-reveal, .js .cs-reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ dopasowania
   Rzeczy, które wychodzą dopiero, gdy treść siedzi w blokach: WordPress
   dokłada własne klasy i marginesy, a nagłówki w kaflach mają inną skalę
   niż nagłówki sekcji.
   ------------------------------------------------------------ */

/* Skok do sekcji nie może chować się pod przyklejonym paskiem. */
[id] { scroll-margin-top: 84px; }

/* Kafle „Mniej miejsca / Szybciej / …” — większy napis niż zwykły h3. */
.cs-grid-2 .cs-card h3 { font-size: clamp(22px, 2.6vw, 26px); letter-spacing: -.02em; }
.cs-grid-2 .cs-card { display: flex; flex-direction: column; gap: 6px; }

/* Nagłówki w ciemnej sekcji są mniejsze — to podpisy, nie tytuły. */
.cs-band--ink h3 { font-size: 16px; letter-spacing: -.01em; }
.cs-band--ink h2 { font-size: clamp(28px, 4vw, 38px); }

/* Kafle formatów: cały kafel jest klikalny, nie tylko napis. */
.cs-fmt { padding: 0; }
.cs-fmt a { display: block; padding: 14px; color: var(--cs-ink); }
.cs-fmt a:hover { color: var(--cs-accent); text-decoration: none; background: var(--cs-cream); border-radius: 8px; }

/* Kreska w karcie próbki opisu. */
.cs-card .wp-block-separator {
  border: 0; border-top: 1px solid var(--cs-line);
  margin: 4px 0 0; width: 100%; opacity: 1;
}

/* Pytania na kremowym tle — bloki „Szczegóły” mają własne obramowanie. */
.cs-faq .wp-block-details { background: none; border-radius: 0; }
.cs-faq .wp-block-details:last-child { border-bottom: 0; }

/* WordPress wstawia marginesy między blokami. Sekcje mają własne odstępy
   przez gap, więc te marginesy trzeba zdjąć, inaczej wszystko się dubluje.
   ⚠️ Dodając nowy kontener, DOPISZ GO TUTAJ. Pominięcie nie daje błędu —
   daje po dwadzieścia parę pikseli między każdą parą bloków w środku,
   i tak panel przykładu urósł raz z czterystu pikseli do tysiąca. */
.cs-stack > *, .cs-two > *, .cs-grid-2 > *, .cs-grid-3 > *,
.cs-grid-4 > *, .cs-grid-6 > *, .cs-plans > *, .cs-demo > *,
.cs-field > *, .cs-file > *, .cs-panel > *, .cs-step > *,
.cs-ba > *, .cs-ba__card > *, .cs-ba__foot > *,
.cs-ba__card > p,
.cs-out > *, .cs-out__bar > *, .cs-out__grid > *, .cs-js-market > *,
.cs-video > *, .cs-video__text > *, .cs-demo__head > * {
  margin-block: 0;
}
.cs-inner > * + * { margin-block-start: 0; }
.wp-block-group.cs-band { margin-block: 0; }

/* Wnętrze karty planu: lista i przycisk trzymają się dołu równo. */
.cs-plan > * { margin-block: 0; }
.cs-plan__list li::marker { content: ""; }

/* ============================================================ panel przykładu
   Przed i po obok siebie, nie jedno pod drugim.
   Panel miał ponad tysiąc pikseli wysokości i przestał się mieścić w ekranie —
   po przestawieniu na dwie kolumny i siatkę etykieta/wartość ma około czterystu.
   ------------------------------------------------------------ */

.cs-demo__label {
  font-family: var(--cs-disp); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cs-muted);
}

.cs-demo { gap: 14px; }

/* --- przed i po ---------------------------------------------------------- */
.cs-ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }

.cs-ba__card {
  border: 1px solid var(--cs-line); border-radius: 8px;
  background: var(--cs-white); padding: 10px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}

/* Strzałka między kolumnami mówi, że prawa bierze się z lewej. */
.cs-ba__arrow {
  align-self: center; flex: none;
  width: 18px; height: 18px;
  background: no-repeat center / 18px 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23C2410C" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5l7 7-7 7"/></svg>');
}

.cs-ba__name {
  font-family: var(--cs-mono); font-size: 12.5px; color: var(--cs-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-ba__size { font-size: 12.5px; color: var(--cs-muted); }
.cs-ba__dim { font-size: 11.5px; color: var(--cs-muted); opacity: .8; font-variant-numeric: tabular-nums; }
.cs-ba__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* Zdjęcie w panelu: klikalne, powiększa się w oknie na wierzchu. */
.cs-shot {
  display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #E8DFD5, #C9BBAC);
  background-size: cover; background-position: center;
  cursor: zoom-in; position: relative;
}
.cs-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-shot::after {
  content: ""; position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(255, 255, 255, .92) no-repeat center / 13px 13px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2317110C" stroke-width="2.2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/><path d="M11 8v6"/><path d="M8 11h6"/></svg>');
  box-shadow: 0 1px 4px rgba(23, 17, 12, .2);
  opacity: 0; transition: opacity .15s ease;
}
.cs-shot:hover::after, .cs-shot:focus-visible::after { opacity: 1; }

/* Bez wskazanego pliku kadr nie udaje, że da się go powiększyć. */
.cs-shot[data-src=""] { cursor: default; }
.cs-shot[data-src=""]::after { display: none; }

/* --- co wtyczka dopisuje ------------------------------------------------- */
.cs-out {
  border: 1px solid var(--cs-line); border-radius: 8px;
  background: var(--cs-white); overflow: hidden;
}
.cs-out__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 12px; flex-wrap: wrap;
  padding: 11px 13px; background: var(--cs-cream);
  border-bottom: 1px solid var(--cs-line);
}

/* Pytanie nad guzikami rynków — pomarańczowe, bo to zachęta do kliknięcia,
   a nie podpis. Sformułowanie Tomasza. */
.cs-out__ask {
  font-family: var(--cs-disp); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cs-accent);
  max-width: 30ch; line-height: 1.32;
}

/* Etykieta z lewej, treść z prawej — cztery pola zamiast ośmiu wierszy. */
.cs-out__grid {
  padding: 12px 13px;
  display: grid; grid-template-columns: 94px minmax(0, 1fr);
  gap: 9px 12px; align-items: baseline;
}
.cs-out__grid > p:nth-child(odd) {
  font-family: var(--cs-disp); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cs-muted);
  padding-top: 2px;
}
.cs-out__grid > p:nth-child(even) { font-size: 13.5px; line-height: 1.4; color: var(--cs-ink); }
.cs-out__grid > p.cs-mono { font-size: 12.5px; }

@media (max-width: 480px) {
  .cs-out__grid { grid-template-columns: 1fr; gap: 2px 0; }
  .cs-out__grid > p:nth-child(even) { margin-bottom: 8px; }
  .cs-ba { grid-template-columns: 1fr; }
  .cs-ba__arrow { transform: rotate(90deg); justify-self: center; }
}

.cs-out__note { padding: 0 13px 12px; font-size: 12px; color: var(--cs-muted); }

/* --- przełącznik rynków ------------------------------------------------- */
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chips button {
  font-family: var(--cs-disp); font-size: 12px; font-weight: 700;
  padding: 6px 11px; border-radius: 5px; cursor: pointer;
  background: var(--cs-white); color: var(--cs-body);
  border: 1px solid var(--cs-line);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cs-chips button:hover { border-color: var(--cs-line-2); color: var(--cs-ink); }
.cs-chips button[aria-pressed="true"] {
  background: var(--cs-accent); border-color: var(--cs-accent); color: #fff;
}

/* Bez JavaScriptu widoczne są wszystkie trzy rynki naraz — i tak samo
   w edytorze bloków, gdzie to jest zaletą: wszystkie teksty na wierzchu. */
.js .cs-js-market:not(.is-shown) { display: none; }

/* ============================================================ film
   Mała miniatura, nie osadzony odtwarzacz na pół ekranu.
   ------------------------------------------------------------ */

.cs-video { display: flex; align-items: center; gap: 14px; }

.cs-video__frame {
  flex: none; width: 168px; padding: 0; border: 0;
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #E8DFD5, #C9BBAC);
  position: relative; cursor: pointer;
  box-shadow: 0 1px 3px rgba(23, 17, 12, .12);
}
.cs-video__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-video__frame[data-video=""] { cursor: default; }

.cs-video__badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(194, 65, 12, .94);
  box-shadow: 0 3px 12px rgba(23, 17, 12, .32);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.cs-video__badge::after {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.cs-video__frame:hover .cs-video__badge { transform: translate(-50%, -50%) scale(1.09); background: var(--cs-accent-2); }
.cs-video__frame[data-video=""] .cs-video__badge { display: none; }

.cs-video__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-video__text h3 { font-size: 17px; letter-spacing: -.015em; }
.cs-video__text p { font-size: 13.5px; color: var(--cs-muted); }

@media (max-width: 480px) {
  .cs-video { align-items: flex-start; }
  .cs-video__frame { width: 132px; }
}

/* ============================================================ okno na wierzchu
   Jedno okno dla powiększonego zdjęcia i dla filmu.
   ------------------------------------------------------------ */

.cs-box {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 17, 12, .88);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.cs-box__stage { max-width: 100%; max-height: 100%; display: flex; }

.cs-box__image {
  max-width: 100%; max-height: 88vh;
  width: auto; height: auto; display: block;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.cs-box__video {
  width: min(1100px, 92vw); aspect-ratio: 16 / 9;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #000;
}
.cs-box__video iframe { width: 100%; height: 100%; border: 0; display: block; }

.cs-box__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  transition: background .15s ease;
}
.cs-box__close:hover { background: rgba(255, 255, 255, .26); }
.cs-box__close::before, .cs-box__close::after {
  content: ""; position: absolute; left: 11px; top: 19px;
  width: 16px; height: 2px; background: #fff; border-radius: 1px;
}
.cs-box__close::before { transform: rotate(45deg); }
.cs-box__close::after { transform: rotate(-45deg); }
