/*
Theme Name: Webnex DevStudio
Theme URI: https://webnex.pl
Author: Webnex DevStudio
Author URI: https://webnex.pl
Description: Classic WordPress theme for Webnex DevStudio — strony, sklepy i automatyzacja
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: webnex
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(40,20%,97%);
  --fg: hsl(220,20%,14%);
  --card: hsl(40,15%,95%);
  --card-fg: hsl(220,20%,14%);
  --primary: hsl(220,20%,14%);
  --primary-fg: hsl(40,20%,97%);
  --secondary: hsl(40,15%,92%);
  --muted: hsl(40,10%,90%);
  --muted-fg: hsl(220,10%,46%);
  --accent: hsl(36,90%,55%);
  --accent-glow: hsl(36,95%,62%);
  --accent-fg: hsl(220,20%,10%);
  --destructive: hsl(0,84%,60%);
  --border: hsl(40,15%,88%);
  --surface-dark: hsl(222,47%,11%);
  --surface-dark-fg: hsl(40,15%,90%);
  --surface-darker: hsl(220,24%,7%);
  --radius: 0.75rem;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Utility classes ── */
.section-padding { padding: 5rem 1.5rem; }
@media(min-width:768px) { .section-padding { padding: 5rem 3rem; } }
@media(min-width:1024px) { .section-padding { padding: 7rem 5rem; } }

.section-dark { background: var(--surface-dark); color: var(--surface-dark-fg); }
.section-darker { background: var(--surface-darker); color: var(--surface-dark-fg); }
.bg-card { background: var(--card); color: var(--card-fg); }

.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-fg); }
.text-destructive { color: var(--destructive); }

.accent-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
}
.text-accent-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-line {
  display: block; margin: 1rem auto 0; height: 2px; width: 3rem; border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

/* ── Grid ── */
.grid { display: grid; gap: 2rem; }
@media(min-width:640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2-md { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-32 { padding-top: 8rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.w-full { width: 100%; }
.inline-block { display: inline-block; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.shrink-0 { flex-shrink: 0; }

.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--border); }
.border-accent { border-color: var(--accent); }

.font-display { font-family: var(--font-display); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-8xl { font-size: 6rem; }
@media(min-width:768px) {
  .md-text-3xl { font-size: 1.875rem; }
  .md-text-4xl { font-size: 2.25rem; }
  .md-text-5xl { font-size: 3rem; }
  .md-text-xl { font-size: 1.25rem; }
}
@media(min-width:1024px) {
  .lg-text-6xl { font-size: 3.75rem; }
  .lg-text-4xl { font-size: 2.25rem; }
}

.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.opacity-80 { opacity: 0.8; }
.opacity-85 { opacity: 0.85; }
.opacity-40 { opacity: 0.4; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Cards ── */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
@media(min-width:768px) { .card { padding: 2rem; } }
.card:hover, .hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px hsla(36,90%,55%,0.15);
}
.card--highlight {
  border-color: hsla(36,90%,55%,0.5);
  background: hsla(36,90%,55%,0.05);
  box-shadow: 0 4px 20px -4px hsla(36,90%,55%,0.05);
}

/* ── Buttons / CTA ── */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  padding: 1rem 2rem; border-radius: var(--radius); border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s; position: relative;
  text-decoration: none;
}
.btn-cta:hover { transform: scale(1.02); box-shadow: 0 8px 24px -4px hsla(36,90%,55%,0.3); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-cta::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  opacity: 0; z-index: -1; filter: blur(12px);
  animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse { 0%,100% { opacity: 0; } 50% { opacity: 0.4; } }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  color: var(--accent); transition: gap 0.2s;
}
.btn-link:hover { gap: 0.75rem; text-decoration: underline; }
.btn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled, .navbar.subpage {
  background: hsla(220,24%,7%,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -4px hsla(0,0%,0%,0.1);
}
.navbar__inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 4rem;
}
@media(min-width:768px) { .navbar__inner { padding: 0 3rem; } }
@media(min-width:1024px) { .navbar__inner { padding: 0 5rem; } }

.navbar__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--surface-dark-fg); }
.navbar__brand span { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-glow)); background-clip: text; }

.navbar__links { display: none; align-items: center; gap: 0.25rem; }
@media(min-width:1024px) { .navbar__links { display: flex; } }

.navbar__link {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; border-radius: calc(var(--radius) - 4px);
  color: hsla(40,15%,90%,0.8); transition: all 0.3s ease-out;
}
button.navbar__link { background: none; border: none; cursor: pointer; font-family: var(--font-body); }
a.navbar__link { display: inline-flex; align-items: center; gap: 0.25rem; }
.navbar__link:hover, .navbar__link.active { color: var(--accent); }
.navbar__link.active { background: hsla(36,90%,55%,0.1); }
.navbar__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.navbar__dropdown { position: relative; }
.navbar__dropdown-menu {
  position: absolute; top: 100%; left: 0; padding-top: 0.5rem;
  min-width: 240px; opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none; z-index: 50;
}
.navbar__dropdown-menu-inner {
  border-radius: var(--radius); border: 1px solid hsla(40,15%,88%,0.2);
  background: var(--surface-darker); backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px -4px hsla(0,0%,0%,0.2); padding: 0.5rem 0;
}
.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.navbar__dropdown-item {
  display: block; padding: 0.5rem 1rem; font-size: 0.875rem;
  color: hsla(40,15%,90%,0.75); transition: background 0.2s, color 0.2s;
}
.navbar__dropdown-item:hover { background: hsla(0,0%,100%,0.05); color: var(--accent); }
.navbar__dropdown-item.active { color: var(--accent); background: hsla(36,90%,55%,0.1); }

.navbar__mobile-toggle {
  display: block; padding: 0.5rem; color: var(--surface-dark-fg);
  background: none; border: none; cursor: pointer;
}
.navbar__mobile-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media(min-width:1024px) { .navbar__mobile-toggle { display: none; } }

.navbar__mobile {
  display: none; background: hsla(220,24%,7%,0.95); backdrop-filter: blur(12px);
}
.navbar__mobile.open { display: block; }
@media(min-width:1024px) { .navbar__mobile { display: none !important; } }
.navbar__mobile ul { padding: 0.5rem 1.5rem 1.5rem; }
.navbar__mobile a {
  display: block; padding: 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: hsla(40,15%,90%,0.8); transition: color 0.2s;
}
.navbar__mobile a:hover, .navbar__mobile a.active { color: var(--accent); }
.navbar__mobile a.active { background: hsla(36,90%,55%,0.1); border-radius: calc(var(--radius) - 4px); }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; top: 25%; right: -8rem; width: 24rem; height: 24rem;
  border-radius: 9999px; opacity: 0.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  filter: blur(48px); pointer-events: none;
}

/* ── Icon boxes ── */
.icon-box {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: var(--secondary); display: flex; align-items: center; justify-content: center;
}
.icon-box--accent { background: hsla(36,90%,55%,0.1); }
.icon-box svg, .icon-box img { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* ── Step numbers ── */
.step-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.4;
}

/* ── Accordion / FAQ ── */
.faq-item {
  border: 1px solid hsla(40,15%,88%,0.2); border-radius: var(--radius);
  padding: 0 1.5rem; margin-bottom: 0.75rem; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: hsla(36,90%,55%,0.3); }
.faq-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  text-align: left; padding: 1.25rem 0; color: inherit;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.faq-trigger svg { width: 1rem; height: 1rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-trigger svg { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s; }
.faq-item.open .faq-content { max-height: 200px; padding-bottom: 1.25rem; }
.faq-content p { opacity: 0.8; }

/* ── CTA form ── */
.cta-textarea {
  width: 100%; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border); background: var(--card);
  padding: 1.25rem; color: var(--fg); font-family: var(--font-body);
  resize: none; font-size: 1rem;
}
.cta-textarea:focus { outline: none; box-shadow: 0 0 0 2px hsla(36,90%,55%,0.4); }
.cta-textarea::placeholder { color: var(--muted-fg); opacity: 0.6; }
.cta-email { margin-bottom: 0.75rem; }

/* ── Project type selector ── */
.project-type {
  flex: 1; cursor: pointer; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border); background: var(--card); padding: 1.25rem;
  text-align: left; transition: all 0.3s; min-width: 180px;
}
.project-type:focus-within { box-shadow: 0 0 0 2px hsla(36,90%,55%,0.4); }
.project-type.selected {
  border-color: var(--accent); background: hsla(36,90%,55%,0.1);
  box-shadow: 0 2px 12px -4px hsla(36,90%,55%,0.1);
}
.project-type input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── List items ── */
.list-check, .list-warn, .list-fail {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.list-check svg { color: var(--accent); width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.list-warn svg { color: var(--destructive); width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.list-fail svg { color: hsla(0,84%,60%,0.7); width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 2px; }

/* ── Bullet point ── */
.bullet { width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); flex-shrink: 0; margin-top: 10px; }

/* ── Pricing rows ── */
.pricing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; border-bottom: 1px solid hsla(40,15%,88%,0.2);
}
.pricing-row:last-child { border-bottom: none; }

/* ── Footer ── */
.footer a:hover { color: var(--accent); }
.footer__tech-badge {
  font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 9999px;
  border: 1px solid hsla(40,15%,90%,0.2); color: hsla(40,15%,90%,0.75);
}
.footer__bar {
  border-top: 1px solid hsla(40,15%,90%,0.1); padding-top: 2rem; margin-top: 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

/* ── Connector line for process steps ── */
.connector { display: none; position: absolute; top: 2rem; right: -1rem; width: 2rem; height: 1px; background: hsla(36,90%,55%,0.3); }
@media(min-width:768px) { .connector { display: block; } }

/* ── Tier card popular badge ── */
.badge-popular {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: var(--primary-fg); padding: 2px 8px; border-radius: 9999px;
}

/* ── Focus visible for all interactive ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
textarea:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 2px hsla(36,90%,55%,0.4); }

/* ── AOS overrides for smoother feel ── */

/* ══════════════════════════════════════════════
   Dark Section Contextual Overrides (v13 fix)
   Fixes readability on .section-dark / .section-darker
   ══════════════════════════════════════════════ */

/* ── Muted text on dark backgrounds — lighter for contrast ── */
.section-dark .text-muted,
.section-darker .text-muted {
  color: hsla(40,15%,90%,0.7);
}

/* ── Borders on dark sections ── */
.section-dark .border,
.section-darker .border,
.section-dark .card,
.section-darker .card {
  border-color: hsla(40,15%,90%,0.12);
}

/* ── Cards on dark sections — keep light bg + dark text ── */
.section-dark .card,
.section-darker .card {
  background: hsl(40,15%,95%);
  color: hsl(220,20%,14%);
}

/* Muted text INSIDE cards on dark sections — use standard dark muted */
.section-dark .card .text-muted,
.section-darker .card .text-muted {
  color: hsl(220,10%,46%);
}

/* Labels inside cards ("Dla kogo:", "Co zyskujesz:") — ensure dark & readable */
.section-dark .card .font-semibold,
.section-darker .card .font-semibold {
  color: hsl(220,20%,14%);
}

/* ── Highlight card on dark — accent tint visible ── */
.section-dark .card--highlight,
.section-darker .card--highlight {
  background: hsla(36,90%,55%,0.08);
  border-color: hsla(36,90%,55%,0.4);
  box-shadow: 0 4px 24px -4px hsla(36,90%,55%,0.1);
  color: hsl(40,15%,90%);
}

/* Muted text in highlight cards — lighter since bg is dark */
.section-dark .card--highlight .text-muted,
.section-darker .card--highlight .text-muted {
  color: hsla(40,15%,90%,0.65);
}

/* Labels in highlight cards — light foreground */
.section-dark .card--highlight .font-semibold,
.section-darker .card--highlight .font-semibold {
  color: hsl(40,15%,90%);
}

/* Accent text in highlight cards */
.section-dark .card--highlight .text-accent,
.section-darker .card--highlight .text-accent {
  color: var(--accent);
}

/* ── Icon boxes on dark sections ── */
.section-dark .icon-box,
.section-darker .icon-box {
  background: hsla(36,90%,55%,0.1);
}

/* Icon boxes INSIDE light cards on dark sections — keep secondary */
.section-dark .card .icon-box,
.section-darker .card .icon-box {
  background: hsl(40,15%,92%);
}

/* Icon boxes inside highlight cards — accent tint */
.section-dark .card--highlight .icon-box,
.section-darker .card--highlight .icon-box {
  background: hsla(36,90%,55%,0.15);
}

/* ── Bullet dots on dark sections ── */
.section-dark .bullet,
.section-darker .bullet {
  background: var(--accent);
}

/* ── List items on dark sections (outside cards) ── */
.section-dark .list-check span,
.section-darker .list-check span,
.section-dark .list-warn span,
.section-darker .list-warn span {
  color: hsla(40,15%,90%,0.75);
}

/* ── Pricing rows on dark sections ── */
.section-dark .pricing-row,
.section-darker .pricing-row {
  border-bottom-color: hsla(40,15%,90%,0.12);
}

/* ── FAQ items on dark sections ── */
.section-dark .faq-item {
  border-color: hsla(40,15%,90%,0.12);
}
.section-dark .faq-item.open {
  border-color: hsla(36,90%,55%,0.3);
}
.section-dark .faq-content p {
  color: hsla(40,15%,90%,0.75);
}

/* ── CTA form on dark sections ── */
.section-dark .cta-textarea,
.section-darker .cta-textarea {
  background: hsla(40,15%,90%,0.08);
  border-color: hsla(40,15%,90%,0.15);
  color: hsl(40,15%,90%);
}
.section-dark .cta-textarea::placeholder,
.section-darker .cta-textarea::placeholder {
  color: hsla(40,15%,90%,0.4);
}

/* ── Project type selector on dark sections ── */
.section-dark .project-type,
.section-darker .project-type {
  background: hsla(40,15%,90%,0.06);
  border-color: hsla(40,15%,90%,0.15);
  color: hsl(40,15%,90%);
}
.section-dark .project-type.selected,
.section-darker .project-type.selected {
  border-color: var(--accent);
  background: hsla(36,90%,55%,0.1);
}

/* ── Step numbers on dark sections — slightly brighter ── */
.section-dark .step-num,
.section-darker .step-num {
  opacity: 0.5;
}

/* ── bg-card sections inside dark parents ── */
.section-dark .bg-card,
.section-darker .bg-card {
  background: hsl(40,15%,95%);
  color: hsl(220,20%,14%);
}
[data-aos] { transition-timing-function: cubic-bezier(0.25,0.1,0.25,1) !important; }

/* ── Split Screen (Expert Column) ── */
.split-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media(min-width:768px) {
  .split-screen {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-screen__photo {
  display: flex;
  justify-content: center;
}

.split-screen__img {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--radius) + 8px);
  border: 2px solid hsla(36,90%,55%,0.2);
  box-shadow: 0 20px 60px -12px hsla(36,90%,55%,0.1);
}
@media(min-width:768px) {
  .split-screen__img {
    max-width: none;
    width: 100%;
  }
}

.split-screen__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/**
 * Blog-specific styles — dodaj do style.css motywu
 */

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--font-display);
    font-weight: 500;
    color: hsl(40 15% 90% / 0.7);
    border: 1px solid hsl(40 15% 90% / 0.15);
    transition: all 0.2s ease;
}

.page-numbers:hover {
    border-color: hsl(36 90% 55%);
    color: hsl(36 90% 55%);
}

.page-numbers.current {
    background: linear-gradient(135deg, hsl(36 90% 55%), hsl(36 95% 62%));
    color: hsl(220 20% 10%);
    border-color: transparent;
    font-weight: 600;
}

.page-numbers.dots {
    border: none;
    cursor: default;
}

/* Blog card image zoom on hover */
.blog-card:hover img {
    transform: scale(1.05);
}

/* Prose overrides for dark theme */
.prose-invert {
    --tw-prose-body: hsl(40 15% 90% / 0.85);
    --tw-prose-headings: hsl(40 15% 90%);
    --tw-prose-links: hsl(36 90% 55%);
    --tw-prose-counters: hsl(36 90% 55%);
    --tw-prose-bullets: hsl(36 90% 55%);
    --tw-prose-hr: hsl(40 15% 90% / 0.15);
    --tw-prose-quotes: hsl(40 15% 90% / 0.8);
    --tw-prose-quote-borders: hsl(36 90% 55%);
    --tw-prose-captions: hsl(40 15% 90% / 0.5);
    --tw-prose-code: hsl(36 90% 55%);
    --tw-prose-th-borders: hsl(40 15% 90% / 0.2);
    --tw-prose-td-borders: hsl(40 15% 90% / 0.1);
}
/* ══════════════════════════════════════════════════════════
   Webnex DevStudio — Cookie Consent Banner (GDPR/RODO)
   Dolny banner z animacją slide-up + fade
   ══════════════════════════════════════════════════════════ */

.ccb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25,0.1,0.25,1),
                opacity 0.4s ease,
                visibility 0.4s ease;
    pointer-events: none;
}

.ccb--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ccb__main,
.ccb__settings {
    background: hsl(222 47% 11% / 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid hsla(40, 15%, 90%, 0.1);
    padding: 1.5rem 1.5rem;
    color: hsl(40 15% 90%);
}

@media (min-width: 768px) {
    .ccb__main,
    .ccb__settings {
        padding: 1.75rem 2.5rem;
    }
}

/* ── Main view layout ── */
.ccb__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ccb__icon {
    flex-shrink: 0;
    color: hsl(36 90% 55%);
    margin-top: 2px;
}

.ccb__title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: hsl(40 15% 95%);
}

.ccb__desc {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: hsla(40, 15%, 90%, 0.7);
    margin: 0;
}

.ccb__link {
    color: hsl(36 90% 55%);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.ccb__link:hover {
    color: hsl(36 95% 62%);
}

/* ── Buttons ── */
.ccb__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ccb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.ccb__btn:focus-visible {
    outline: 2px solid hsl(36 90% 55%);
    outline-offset: 2px;
}

.ccb__btn:active {
    transform: scale(0.97);
}

/* Primary — accent gradient (Akceptuj) */
.ccb__btn--primary {
    background: linear-gradient(135deg, hsl(36 90% 55%), hsl(36 95% 62%));
    color: hsl(220 20% 10%);
}
.ccb__btn--primary:hover {
    box-shadow: 0 4px 20px hsla(36, 90%, 55%, 0.35);
}

/* Secondary — outlined, equal prominence (Odrzuć) */
.ccb__btn--secondary {
    background: transparent;
    color: hsl(40 15% 90%);
    border: 1.5px solid hsla(40, 15%, 90%, 0.35);
}
.ccb__btn--secondary:hover {
    border-color: hsla(40, 15%, 90%, 0.6);
    background: hsla(40, 15%, 90%, 0.06);
}

/* Settings link-style button */
.ccb__btn--settings {
    background: transparent;
    color: hsl(36 90% 55%);
    padding: 0.625rem 0.75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ccb__btn--settings:hover {
    color: hsl(36 95% 62%);
}

/* ── Settings view ── */
.ccb__settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ccb__close {
    background: none;
    border: none;
    color: hsla(40, 15%, 90%, 0.6);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s;
}
.ccb__close:hover {
    color: hsl(40 15% 90%);
}
.ccb__close:focus-visible {
    outline: 2px solid hsl(36 90% 55%);
    outline-offset: 2px;
}

/* ── Category rows ── */
.ccb__category {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsla(40, 15%, 90%, 0.08);
}

.ccb__category:last-of-type {
    margin-bottom: 1.25rem;
}

.ccb__label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 500;
}

.ccb__cat-name {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(40 15% 95%);
}

.ccb__cat-desc {
    font-size: 0.75rem;
    color: hsla(40, 15%, 90%, 0.55);
    margin: 0.25rem 0 0 1.75rem;
    line-height: 1.5;
}

/* ── Custom checkbox ── */
.ccb__checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid hsla(40, 15%, 90%, 0.4);
    border-radius: 0.25rem;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.ccb__checkbox:checked {
    background: hsl(36 90% 55%);
    border-color: hsl(36 90% 55%);
}

.ccb__checkbox:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.5px;
    width: 5px;
    height: 9px;
    border: solid hsl(220 20% 10%);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ccb__checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ccb__checkbox:focus-visible {
    outline: 2px solid hsl(36 90% 55%);
    outline-offset: 2px;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
    .ccb__content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .ccb__icon {
        display: none;
    }
    .ccb__actions {
        flex-direction: column;
    }
    .ccb__btn {
        width: 100%;
        text-align: center;
    }
    .ccb__btn--settings {
        order: 3;
    }
}

/* ── Footer cookie link ── */
.footer__cookie-link {
    color: hsla(40, 15%, 90%, 0.6);
    font-size: 0.75rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    font-family: inherit;
}
.footer__cookie-link:hover {
    color: hsl(36 90% 55%);
}
