/* ============ DESIGN TOKENS ============ */
:root {
  /* Pastele — minimalnie cieplejsze i bardziej brzoskwiniowe */
  --mint: #bce9d4;
  --peach: #ffcdac;
  --lavender: #d6c5ff;
  --lemon: #ffe98a;
  --sky: #b9dbff;
  --rose: #ffbfd2;

  /* Neonowe kontrasty */
  --neon: #ff2d1f;            /* neonowa czerwień */
  --neon-orange: #ff6a13;     /* neonowy pomarańcz */
  --ink: #0a0a0f;             /* prawie czarny */
  --ink-soft: #4a4452;

  /* Kremowo-pomarańczowe tła */
  --bg: #f5e9d7;              /* ciemniejszy kremowy z pomarańczowym podtonem */
  --bg-alt: #ead8c0;          /* jeszcze cieplejszy */
  --surface: #fff7ec;         /* karty */
  --white: #ffffff;

  --border-soft: rgba(10, 10, 15, 0.1);

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(10, 10, 15, 0.25);
  --shadow-lg: 0 25px 60px -20px rgba(255, 45, 31, 0.45);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ============ DARK MODE ============ */
:root[data-theme="dark"] {
  --mint: #1f4a3a;
  --peach: #5a2e16;
  --lavender: #3a2a5e;
  --lemon: #5a4a14;
  --sky: #1f3a5a;
  --rose: #5a2438;

  --neon: #ff3d2e;
  --neon-orange: #ff7a26;
  --ink: #f5e9d7;             /* jasny tekst */
  --ink-soft: #b8a896;

  --bg: #0d0a08;              /* głęboka czerń z ciepłym podtonem */
  --bg-alt: #15110d;
  --surface: #1a1612;
  --white: #1a1612;

  --border-soft: rgba(245, 233, 215, 0.12);

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 25px 60px -20px rgba(255, 45, 31, 0.55);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* usunięto przejścia background/color z body — uruchamiały nieskomponowane animacje (CLS/INP) */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(255, 45, 31, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(from var(--bg) h s l / 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.3s, background 0.4s;
}
.nav.scrolled {
  box-shadow: 0 4px 30px -10px rgba(10, 10, 15, 0.18);
  background: hsl(from var(--bg) h s l / 0.95);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.nav__logo-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-orange));
  display: inline-block;
  box-shadow: 0 0 12px var(--neon);
}
.nav__links { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--neon); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); border-color: var(--neon); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle--mobile { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn--small { padding: 10px 18px; font-size: 0.88rem; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-orange) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -20px rgba(255, 45, 31, 0.65);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px -8px rgba(10, 10, 15, 0.25);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  text-align: center;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 850px; margin: 0 auto; }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-soft); margin: 24px auto 36px; max-width: 620px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
  margin-top: 70px; padding-top: 40px;
  border-top: 1px dashed var(--border-soft);
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--neon); }
.hero__stats span { font-size: 0.85rem; color: var(--ink-soft); }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; z-index: 1; animation: float 14s ease-in-out infinite; will-change: transform; transform: translateZ(0); contain: layout paint; }
.hero__blob--1 { width: 380px; height: 380px; background: var(--peach); top: -80px; left: -100px; }
.hero__blob--2 { width: 320px; height: 320px; background: var(--neon-orange); top: 100px; right: -80px; animation-delay: -4s; opacity: 0.35; }
.hero__blob--3 { width: 280px; height: 280px; background: var(--lemon); bottom: -100px; left: 40%; animation-delay: -8s; }
:root[data-theme="dark"] .hero__blob { opacity: 0.4; }
:root[data-theme="dark"] .hero__blob--2 { opacity: 0.5; }
/* Na telefonach: zmniejsz blur i wyłącz animację dla lepszego LCP/CLS */
@media (max-width: 700px) {
  .hero__blob { filter: blur(40px); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(30px, -30px, 0) scale(1.05); }
  66% { transform: translate3d(-20px, 20px, 0) scale(0.95); }
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============ CARDS (KORZYŚCI) ============ */
.card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 1.6rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card--mint .card__icon { background: var(--mint); }
.card--peach .card__icon { background: var(--peach); }
.card--lavender .card__icon { background: var(--lavender); }
.card--lemon .card__icon { background: var(--lemon); }
.card--sky .card__icon { background: var(--sky); }
.card--rose .card__icon { background: var(--rose); }

/* ============ PORTFOLIO ============ */
.portfolio > a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.portfolio > a:focus-visible { outline: 2px solid var(--neon, #ff7a00); outline-offset: 4px; border-radius: var(--radius); }
.project {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio > a:hover .project { transform: translateY(-6px); box-shadow: var(--shadow); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__visual {
  height: 220px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project__visual--1 { background: linear-gradient(135deg, var(--mint), var(--sky)); }
.project__visual--2 { background: linear-gradient(135deg, var(--peach), var(--rose)); }
.project__visual--3 { background: linear-gradient(135deg, var(--lavender), var(--lemon)); }

.mock {
  width: 78%; background: #fff; border-radius: 12px; padding: 14px;
  box-shadow: 0 20px 40px -15px rgba(10, 10, 15, 0.35);
  transform: translateY(8px);
}
.mock__bar { display: flex; gap: 5px; margin-bottom: 14px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: #e8e8ef; }
.mock__bar span:first-child { background: #ff8181; }
.mock__bar span:nth-child(2) { background: #ffd66b; }
.mock__bar span:nth-child(3) { background: #6bd49a; }
.mock__hero { font-size: 2.6rem; text-align: center; margin: 12px 0 16px; }
.mock__line { height: 8px; border-radius: 4px; background: #f0eef5; margin-bottom: 8px; }
.mock__line--short { width: 60%; }

.project__body { padding: 24px 26px 28px; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tag--mint { background: var(--mint); color: var(--ink); }
.tag--peach { background: var(--peach); color: var(--ink); }
.tag--lavender { background: var(--lavender); color: var(--ink); }
.project h3 { margin-bottom: 8px; }
.project p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ PRICING ============ */
.pricing { align-items: stretch; }
.plan {
  background: var(--surface); border-radius: var(--radius); padding: 36px 30px;
  display: flex; flex-direction: column; position: relative;
  border: 2px solid var(--border-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--neon);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.plan--featured h3,
.plan--featured .plan__price strong { color: var(--bg); }
.plan--featured .plan__desc,
.plan--featured .plan__price span,
.plan--featured li { color: rgba(245, 233, 215, 0.75); }
.plan--featured .plan__price { border-bottom-color: rgba(245, 233, 215, 0.2); }
.plan--featured:hover { transform: scale(1.03) translateY(-4px); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--neon), var(--neon-orange));
  color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  box-shadow: 0 8px 24px -6px rgba(255, 45, 31, 0.55);
}
.plan h3 { font-size: 1.5rem; margin-bottom: 6px; }
.plan__desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px dashed var(--border-soft); }
.plan__price span { color: var(--ink-soft); font-size: 0.9rem; }
.plan__price strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex-grow: 1; }
.plan li { font-size: 0.93rem; color: var(--ink-soft); padding-left: 26px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.plan--featured li::before { background: var(--neon); color: #fff; }

/* edit ceny*/

.plan--featured {
  background: #0b0907; /* stałe ciemne */
  color: #f5e9d7;
}
.plan--featured h3,
.plan--featured .plan__price strong {
  color: #fff;
}

.plan--featured .plan__desc,
.plan--featured .plan__price span {
  color: rgba(255,255,255,0.75);
}

.plan--featured li {
  color: rgba(255,255,255,0.85);
}
.plan--featured li::before {
  background: var(--neon);
  color: #fff;
}
.plan--featured {
  border: 2px solid var(--neon);
}

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact__info h2 { margin-top: 14px; margin-bottom: 18px; }
.contact__info p { color: var(--ink-soft); margin-bottom: 30px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__list span {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(10, 10, 15, 0.25);
  border: 1px solid var(--border-soft);
}

.contact__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.contact-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 18px -10px rgba(10, 10, 15, 0.25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  min-width: 0;
}
.contact-btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  box-shadow: 0 18px 36px -18px rgba(255, 45, 31, 0.45);
}
.contact-btn__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-orange) 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(255, 45, 31, 0.7);
}
.contact-btn__text {
  display: flex; flex-direction: column; min-width: 0; line-height: 1.25;
}
.contact-btn__text small {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);
}
.contact-btn__text strong {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact__location {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 6px 16px -10px rgba(10, 10, 15, 0.2);
}
.contact__location span { font-size: 1.05rem; }
@media (max-width: 600px) {
  .contact__buttons { grid-template-columns: 1fr; }
}

.contact__form {
  background: var(--surface); padding: 40px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}
.contact__form label { display: flex; flex-direction: column; gap: 6px; }
.contact__form span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: inherit; font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--neon);
  background: var(--surface);
}
.contact__success {
  display: none;
  padding: 14px;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
}
.contact__success.show { display: block; }

/* ============ FOOTER ============ */
.footer {
  padding: 80px 0 30px;
  background: var(--ink);
  color: rgba(245, 233, 215, 0.7);
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon-orange), var(--neon));
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer__brand .nav__logo { color: var(--bg); margin-bottom: 16px; }
.footer__brand p {
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 22px;
}
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245, 233, 215, 0.08);
  border: 1px solid rgba(245, 233, 215, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: 0.25s;
}
.footer__socials a:hover {
  background: var(--neon);
  border-color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(255, 45, 31, 0.6);
}
.footer__col h4 {
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.92rem;
  color: rgba(245, 233, 215, 0.65);
  transition: color 0.2s, padding-left 0.2s;
}
.footer__col a:hover {
  color: var(--neon-orange);
  padding-left: 4px;
}
.footer__col li { font-size: 0.92rem; }
.footer__cta { margin-top: 18px; }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(245, 233, 215, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer__copy { font-size: 0.85rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a {
  font-size: 0.85rem;
  color: rgba(245, 233, 215, 0.55);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--neon-orange); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-4px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav__inner { padding: 16px 20px; gap: 10px; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; justify-content: flex-start;
    background: var(--surface); padding: 24px; gap: 18px;
    box-shadow: 0 20px 40px -10px rgba(10, 10, 15, 0.2);
    border-top: 1px solid var(--border-soft);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: 0.3s;
    flex: none;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  /* Logo po lewej, hamburger po prawej, dark mode wyśrodkowany pomiędzy nimi */
  .nav__inner { justify-content: space-between; }
  .nav__logo { margin-right: auto; }
  .nav__links .theme-toggle--mobile { display: none !important; }
  .nav > .container > .theme-toggle,
  .nav__inner > .theme-toggle {
    display: inline-flex !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .nav__inner { position: relative; }
  .nav__burger { display: flex; margin-left: auto; }
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 90px; }
  .hero__stats { gap: 30px; margin-top: 50px; }
  .contact__form { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* =========================
   ✅ FIX DARK MODE FOOTER
   ========================= */

/* Nowe zmienne dla footer */
:root {
  --footer-bg: #0a0a0f;
  --footer-text: rgba(245, 233, 215, 0.7);
  --footer-border: rgba(245, 233, 215, 0.1);
}

:root[data-theme="dark"] {
  --footer-bg: #0b0907; /* głęboka czerń */
  --footer-text: rgba(245, 233, 215, 0.7);
  --footer-border: rgba(245, 233, 215, 0.1);
}

/* Nadpisanie footer */
.footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
}

/* Linki w footer */
.footer__col a,
.footer__legal a {
  color: var(--footer-text);
}

.footer__col a:hover,
.footer__legal a:hover {
  color: var(--neon-orange);
}

.footer__col h4 {
  color: var(--footer-text);
}

.footer__brand .nav__logo {
  color: var(--footer-text);
}

/* Border na dole */
.footer__bottom {
  border-top: 1px solid var(--footer-border);
}

/* =========================
   ✅ FIX PAKIETU BIZNES W DARK MODE
   ========================= */

/* 1. Resetujemy ciemne tło w Dark Mode, aby karta była kremowa jak reszta */
:root[data-theme="dark"] .plan--featured {
  background: var(--surface) !important; /* Wymuszamy kremowy kolor karty */
  color: var(--ink) !important;          /* Wymuszamy ciemny tekst */
  border: 2px solid var(--neon);         /* Zostawiamy neonową ramkę dla wyróżnienia */
}

/* 2. Naprawiamy kolory tekstu wewnątrz wyróżnionej karty (nagłówek, cena, opis) */
:root[data-theme="dark"] .plan--featured h3,
:root[data-theme="dark"] .plan--featured .plan__price strong,
:root[data-theme="dark"] .plan--featured .plan__desc,
:root[data-theme="dark"] .plan--featured .plan__price span,
:root[data-theme="dark"] .plan--featured li {
  color: var(--ink) !important;
}

/* 3. Naprawiamy przycisk wewnątrz wyróżnionej karty w Dark Mode */
:root[data-theme="dark"] .plan--featured .btn--primary {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-orange) 100%) !important;
  color: #ffffff !important;
}

/* 4. Naprawiamy "fajki" (checkmarks) przy liście */
:root[data-theme="dark"] .plan--featured li::before {
  background: var(--neon) !important;
  color: #ffffff !important;
}
/* ============ Portfolio image override ============ */
.project__visual { position: relative; overflow: hidden; }
.project__visual img.project__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--card, #fff);
  color: var(--text, #1b1b22);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: none;
  z-index: 9999;
  font-size: .95rem;
  line-height: 1.5;
}
.cookie-banner.show { display: block; animation: cookieIn .35s ease; }
.cookie-banner h4 { margin: 0 0 6px; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 12px; opacity: .85; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { padding: 10px 18px; font-size: .9rem; }
.cookie-banner a { color: inherit; text-decoration: underline; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============ Form consents — nowoczesne checkboxy ============ */
.form-consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .88rem; line-height: 1.5;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: hsl(from var(--surface) h s l / 0.5);
  transition: border-color .25s ease, background .25s ease, transform .15s ease;
}
.form-consent:hover {
  border-color: var(--neon-orange);
  background: hsl(from var(--surface) h s l / 0.85);
}
.form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px; height: 24px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 2px solid var(--ink-soft);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.form-consent input[type="checkbox"]:hover {
  border-color: var(--neon);
  transform: scale(1.05);
}
.form-consent input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--neon), var(--neon-orange));
  border-color: var(--neon);
  box-shadow: 0 4px 14px -4px rgba(255, 45, 31, 0.6);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>"),
    linear-gradient(135deg, var(--neon), var(--neon-orange));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70% 70%, 100% 100%;
}
.form-consent input[type="checkbox"]:checked::after {
  content: none;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--neon-orange);
  outline-offset: 3px;
}
@keyframes checkPop {
  0% { transform: rotate(45deg) scale(0); opacity: 0; }
  100% { transform: rotate(45deg) scale(1); opacity: 1; }
}
.form-consent a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.form-consent a:hover { color: var(--neon-orange); }
.form-error {
  color: #d23a3a; font-size: .85rem; margin: 4px 0 0;
  display: none;
}
.form-error.show { display: block; }

/* ============ Legal page ============ */
.legal {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px;
  line-height: 1.7;
}
.legal h1 { font-family: 'Fraunces', serif; font-size: 2.4rem; margin-bottom: 8px; }
.legal h2 { font-family: 'Fraunces', serif; margin-top: 32px; font-size: 1.5rem; }
.legal p, .legal li { font-size: 1rem; opacity: .9; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0 18px; }
.legal__meta { font-size: .85rem; opacity: .6; margin-bottom: 20px; }

/* ============ Nowoczesny przycisk powrotu ============ */
.legal .legal__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 12px 22px 12px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px -10px rgba(10,10,15,0.2);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.legal .legal__back::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--neon), var(--neon-orange));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}
.legal .legal__back > * { position: relative; z-index: 1; transition: color .3s ease, transform .3s ease; }
.legal .legal__back .back-arrow {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-orange));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px; /* optyczne wycentrowanie znaku ← */
}
.legal .legal__back:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 45, 31, 0.55);
}
.legal .legal__back:hover::before { opacity: 1; }
.legal .legal__back:hover .back-arrow {
  background: rgba(255,255,255,0.25);
  transform: translateX(-3px);
}
.legal .legal__back:hover .back-arrow,
.legal .legal__back:hover .back-label { color: #fff; }
.legal .legal__back:active { transform: translateY(0); }

/* Theme toggle widoczny też na podstronach legal */
.legal-page .nav__inner .theme-toggle { margin-left: auto; }
