/* =========================
   ZMIENNE
========================= */

:root {
  --black: #000;
  --dark: #050505;
  --card: #090909;
  --white: #fff;
  --gray: #aaa;

  --red: #ff1f1f;
  --red-hover: #d60000;

  --border: #222;
}

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik";
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

a {
  color: white;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

img,
svg {
  max-width: 100%;
}

/* =========================
   NAVBAR
========================= */

nav {
  position: sticky;

  top: 0;

  z-index: 10000;

  line-height: normal;

  background: rgba(0, 0, 0, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 2px solid #ff1f1f;
}

.pionowa-linia {
  border-left: 1.5px solid #ff1f1f;
  height: 32px;
  margin: 0 24px;
}

.center-info {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.center-info:hover {
  color: #ff1f1f;
}

.nav-container {
  width: 100%;

  display: flex;

  justify-content: flex-start;

  align-items: center;

  padding: 16px 2.5%;
}
.logo {
  font-size: 28px;

  font-weight: 800;

  letter-spacing: 1px;
}

.nav-right {
  display: flex;

  align-items: center;

  gap: 20px;

  margin-left: 24px;
  padding-left: 24px;
  border-left: 1.5px solid var(--red);
}

/* MENU */

.dropdown {
  position: relative;
}

.menu-btn {
  background: #111;

  color: white;

  border: 1px solid #333;

  padding: 12px 20px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.menu-btn:hover {
  border-color: #ff1f1f;
}

.dropdown-content {
  display: none;

  position: absolute;

  right: 0;

  top: 120%;

  width: 240px;

  background: #080808;

  border: 1px solid #222;

  border-radius: 15px;

  overflow: hidden;

  z-index: 10001;
}

.dropdown-content a {
  display: block;

  padding: 15px 20px;

  color: white;

  text-decoration: none;
}

.dropdown-content a:hover {
  background: #ff1f1f;
}

.dropdown.active .dropdown-content {
  display: block;
}

/* =========================
   KOSZYK
========================= */

.menu-cart {
  color: white;
  font-size: 1rem;
  font-weight: 500;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  background: none;
  border: none;

  transition: 0.3s;
}

.menu-cart:hover {
  color: var(--red);
}

#cart-count {
  background: var(--red);

  color: white;

  font-size: 0.75rem;

  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/* =========================
   MENU ROZWIJANE
========================= */

.nav-right {
  display: flex;

  align-items: center;

  gap: 15px;
}

.dropdown {
  position: relative;
}

.menu-btn {
  background: #111;

  color: white;

  border: 1px solid #333;

  padding: 12px 18px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.menu-btn:hover {
  border-color: #ff1f1f;
}

.dropdown-content {
  position: absolute;

  top: 110%;

  right: 0;

  min-width: 250px;

  background: #080808;

  border: 1px solid #222;

  border-radius: 15px;

  overflow: hidden;

  display: none;

  z-index: 10001;
}

.dropdown-content a {
  display: block;

  padding: 15px 20px;

  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.dropdown-content a:hover {
  background: #111;

  color: #ff1f1f;
}

.dropdown-content .mobile-nav-link {
  display: none;
}

.dropdown.active .dropdown-content {
  display: block;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 60vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=2000");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  position: relative;

  font-size: clamp(2.8rem, 7vw, 5rem);

  margin-bottom: 20px;
}

.hero p {
  position: relative;

  color: var(--gray);

  font-size: 1.2rem;
}

/* =========================
   PLANY
========================= */

.plans {
  padding: 100px 8%;
}

.plans-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 35px;
}

.plan-card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 25px;

  padding: 40px;

  text-align: center;

  transition: 0.35s;

  position: relative;

  overflow: hidden;
}

.plan-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(120deg, rgba(255, 0, 0, 0.12), transparent);

  opacity: 0;

  transition: 0.35s;
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card:hover {
  transform: translateY(-12px);

  border-color: var(--red);

  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.2);
}

.price {
  color: var(--red);

  font-size: 3rem;

  font-weight: 800;

  margin: 25px 0;
}

.plan-description {
  color: var(--gray);

  margin-bottom: 30px;
}

/* =========================
   PORÓWNANIA I PAKIETY
========================= */

.comparison-section,
.package-section {
  padding: 100px 8%;
  background: #050505;
}

.package-section {
  background: var(--black);
  scroll-margin-top: 86px;
}

.package-card[id] {
  scroll-margin-top: 100px;
}

.comparison-heading {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.comparison-heading span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-heading h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.comparison-heading p {
  margin-top: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.comparison-table-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080808;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--white);
  background: #0f0f0f;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.comparison-table td {
  color: #cfcfcf;
  line-height: 1.55;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  width: 220px;
  color: var(--white);
  font-weight: 900;
}

.package-grid {
  width: min(1180px, 100%);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080808;
}

.package-card.is-featured {
  border-color: rgba(255, 31, 31, 0.7);
  box-shadow: 0 20px 60px rgba(255, 31, 31, 0.18);
  transform: translateY(-10px);
}

.package-card h3 {
  font-size: 2rem;
}

.package-price {
  margin: 18px 0;
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
}

.package-card p {
  color: var(--gray);
  line-height: 1.65;
}

.package-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 24px;
  color: #d8d8d8;
  line-height: 1.45;
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.package-card .btn {
  margin-top: auto;
}

/* =========================
   BUTTONY
========================= */

.btn {
  display: inline-block;

  width: 100%;

  padding: 16px;

  border: none;

  cursor: pointer;

  background: var(--red);

  color: white;

  border-radius: 12px;

  font-weight: 700;

  transition: 0.3s;
}

.btn:hover {
  background: var(--red-hover);

  transform: scale(1.03);
}

/* =========================
   FAQ
========================= */

#faq {
  padding: 100px 8%;
}

#faq h2,
#contact h2 {
  text-align: center;

  font-size: 3rem;

  margin-bottom: 50px;
}

.faq-item {
  border-bottom: 1px solid var(--border);

  padding: 25px 0;
}

.question {
  display: flex;

  justify-content: space-between;

  font-weight: 700;

  cursor: pointer;
}

.question span:last-child {
  color: var(--red);
}

.answer {
  margin-top: 15px;

  color: var(--gray);
}

/* =========================
   KONTAKT
========================= */

#contact {
  padding: 100px 8%;
}

form {
  max-width: 600px;

  margin: auto;

  display: flex;

  flex-direction: column;

  gap: 15px;
}

input,
textarea {
  background: #111;

  border: 1px solid var(--border);

  padding: 18px;

  color: white;

  border-radius: 10px;
}

input:focus,
textarea:focus {
  outline: none;

  border-color: var(--red);
}

/* =========================
   KOSZYK
========================= */

.cart-page {
  padding: 100px 8%;
}

.cart-page h1 {
  text-align: center;

  font-size: 3rem;

  margin-bottom: 50px;
}

.cart-item {
  background: var(--card);

  border: 1px solid var(--border);

  padding: 25px;

  border-radius: 20px;

  display: flex;

  justify-content: space-between;

  margin-bottom: 20px;
}

.cart-item p {
  color: var(--red);

  font-weight: 700;
}

/* =========================
   STOPKA
========================= */

footer {
  padding: 40px;

  text-align: center;

  color: #777;

  border-top: 1px solid var(--border);

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 16px;

  flex-wrap: wrap;
}

.footer-instagram,
.footer-facebook {
  width: 38px;

  height: 38px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border: 1px solid #333;

  border-radius: 50%;

  color: white;

  transition: 0.3s;
}

.footer-instagram:hover,
.footer-facebook:hover {
  border-color: var(--red);

  color: var(--red);

  transform: translateY(-2px);
}

.footer-instagram svg,
.footer-facebook svg {
  width: 20px;

  height: 20px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;
}

.footer-facebook svg {
  fill: currentColor;

  stroke: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  nav {
    flex-direction: column;

    gap: 15px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  #faq h2,
  #contact h2 {
    font-size: 2rem;
  }

  .cart-item {
    flex-direction: column;

    gap: 15px;

    text-align: center;
  }
}

/* =========================
   NAPRAWA KLIKALNOŚCI
========================= */

button,
.btn,
.add-cart {
  position: relative;

  z-index: 20;

  cursor: pointer;

  pointer-events: auto;
}

.plan-card,
.plans,
.plans-grid {
  position: relative;

  z-index: 5;
}

.hero::before {
  pointer-events: none;
}

.remove-btn {
  background: #1a1a1a;

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 10px;

  cursor: pointer;

  transition: 0.3s;
}

.remove-btn:hover {
  background: #ff1f1f;
}

.cart-total {
  margin-top: 40px;

  text-align: right;
}

.cart-toast {
  position: fixed;

  bottom: 98px;

  right: 24px;

  width: max-content;

  max-width: calc(100vw - 48px);

  background: #ff1f1f;

  color: white;

  padding: 15px 25px;

  border-radius: 10px;

  z-index: 2147483100;

  font-weight: 600;
}

@media (max-width: 600px) {
  .cart-toast {
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
  }
}

.cart-info h3 {
  margin-bottom: 8px;
}

.cart-info p {
  color: #ff1f1f;
}

/* =========================
   SELECT - FORMULARZ PROWADZENIA
========================= */

select {
  width: 100%;

  background: #111;

  color: white;

  border: 1px solid #222;

  padding: 18px;

  border-radius: 12px;

  font-size: 16px;

  cursor: pointer;

  transition: 0.3s;

  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #ff1f1f 50%),
    linear-gradient(135deg, #ff1f1f 50%, transparent 50%);

  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px;

  background-size:
    7px 7px,
    7px 7px;

  background-repeat: no-repeat;
}

select:hover {
  border-color: #ff1f1f;
}

select:focus {
  outline: none;

  border-color: #ff1f1f;

  box-shadow: 0 0 20px rgba(255, 31, 31, 0.25);
}

select option {
  background: #050505;

  color: white;

  padding: 15px;
}

/* formularz PROWANIEDZIA premium */

#order-form {
  max-width: 700px;

  margin: auto;

  background: #080808;

  padding: 40px;

  border-radius: 25px;

  border: 1px solid #222;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#order-form input,
#order-form textarea,
#order-form select {
  margin-bottom: 5px;
}

#order-form textarea {
  min-height: 140px;

  resize: none;
}

#order-form input::placeholder,
#order-form textarea::placeholder {
  color: #777;
}

/* =========================
   KOSZYK PREMIUM
========================= */

.cart-page {
  min-height: calc(100vh - 84px);
  padding: 90px 8% 110px;
  background:
    linear-gradient(135deg, rgba(255, 31, 31, 0.08), transparent 34%),
    linear-gradient(180deg, #000 0%, #050505 55%, #000 100%);
}

.cart-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cart-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.cart-eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-heading h1 {
  margin-top: 10px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.cart-heading p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 28px;
  align-items: start;
}

.cart-panel,
.summary-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.cart-panel {
  padding: 28px;
  border-radius: 24px;
}

.cart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.cart-panel-head h2 {
  display: block;
  font-size: 1.5rem;
}

.cart-panel-head h2::after {
  display: none;
}

.cart-panel-head p {
  margin-top: 6px;
  color: var(--gray);
  font-size: 0.95rem;
}

.clear-cart-btn,
.remove-btn,
.quantity-btn {
  border: 1px solid var(--border);
  background: #111;
  color: var(--white);
  cursor: pointer;
  transition: 0.25s;
}

.clear-cart-btn {
  flex: 0 0 auto;
  min-width: 142px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.clear-cart-btn:hover,
.remove-btn:hover,
.quantity-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.is-hidden {
  display: none !important;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 126px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, #0d0d0d 0%, #070707 100%);
  transition: 0.25s;
}

.cart-item:hover {
  border-color: rgba(255, 31, 31, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(255, 31, 31, 0.12);
}

.cart-product-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 31, 31, 0.48);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #140606;
  color: var(--red);
  font-weight: 900;
}

.cart-info h3 {
  margin: 5px 0 8px;
  font-size: 1.22rem;
}

.cart-info p {
  color: var(--gray);
  font-weight: 600;
}

.cart-item-type {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-controls {
  display: grid;
  grid-template-columns: auto minmax(96px, auto) auto;
  gap: 14px;
  align-items: center;
}

.quantity-control {
  display: grid;
  grid-template-columns: 40px 44px 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #050505;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 900;
}

.quantity-value {
  min-width: 44px;
  text-align: center;
  font-weight: 900;
}

.cart-line-total {
  min-width: 96px;
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 900;
  text-align: right;
}

.remove-btn {
  min-width: 76px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.summary-box {
  position: sticky;
  top: 108px;
  padding: 28px;
  border-radius: 24px;
}

.summary-label {
  color: var(--gray);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-price {
  margin-top: 10px;
  color: var(--red);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--gray);
}

.summary-row strong {
  color: var(--white);
}

.summary-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--border);
}

.summary-total {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.summary-total strong {
  color: var(--red);
}

.summary-btn {
  margin-top: 26px;
  text-align: center;
}

.summary-link {
  display: block;
  margin-top: 16px;
  color: var(--gray);
  font-weight: 800;
  text-align: center;
  transition: 0.25s;
}

.summary-link:hover {
  color: var(--red);
}

body.checkout-modal-open {
  overflow: hidden;
}

body.checkout-modal-open .pc-assistant {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.checkout-modal.is-open {
  display: flex;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.checkout-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #101010;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 680px;
}

.checkout-offer-panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 31, 31, 0.2), transparent 30%),
    linear-gradient(135deg, #030303 0%, #090909 52%, #151008 100%);
}

.checkout-offer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}

.checkout-offer-eyebrow,
.checkout-offer-intro,
.checkout-price-card,
.checkout-benefits,
.checkout-trust-strip {
  position: relative;
  z-index: 1;
}

.checkout-offer-eyebrow {
  margin: 0 0 18px;
  color: #ff3f3f;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.checkout-dialog h2 {
  display: block;
  padding-right: 46px;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 0.98;
}

.checkout-dialog h2::after {
  display: none;
}

.checkout-offer-intro {
  max-width: 520px;
  margin: 18px 0 28px;
  color: #d7d7d7;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.55;
}

.checkout-price-card {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(255, 31, 31, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.checkout-price-card span,
.checkout-price-card small {
  color: #aaa;
  font-weight: 800;
}

.checkout-price-card strong {
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
}

.checkout-benefits {
  display: grid;
  gap: 14px;
}

.checkout-benefits p {
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 1000;
}

.checkout-benefits ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-benefits li {
  position: relative;
  padding-left: 30px;
  color: #e7e7e7;
  font-weight: 800;
  line-height: 1.35;
}

.checkout-benefits li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(77, 255, 144, 0.18);
  color: #75ffad;
  font-size: 0.82rem;
  font-weight: 1000;
}

.checkout-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.checkout-trust-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8d8d8;
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-payment-panel {
  padding: 48px;
  background: #151518;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-payment-panel h3 {
  margin: 0;
  padding-right: 46px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.2;
}

.checkout-kicker {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

.checkout-close:hover {
  border-color: var(--red);
  color: var(--red);
}

.checkout-products {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.checkout-product {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.checkout-product-quantity {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.checkout-product-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkout-product-details strong {
  color: var(--white);
  line-height: 1.3;
}

.checkout-product-details span {
  color: var(--gray);
  font-size: 0.88rem;
}

.checkout-product-price {
  color: var(--white);
  white-space: nowrap;
}

.checkout-total-box {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--border);
}

.checkout-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #101010;
}

.checkout-total-box span {
  color: var(--gray);
}

.checkout-total-box strong {
  color: var(--white);
}

.checkout-form {
  max-width: none;
  margin-top: 22px;
  gap: 18px;
}

.checkout-name-grid {
  display: grid;
  gap: 18px;
}

.checkout-field {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--white);
  font-weight: 800;
}

.checkout-field b,
.checkout-consent-row b {
  color: var(--red);
}

.checkout-field input {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
}

.checkout-newsletter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ddd;
  line-height: 1.45;
}

.checkout-newsletter input,
.checkout-consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--red);
}

.checkout-pay-btn {
  margin-top: 0;
}

.checkout-consents {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.checkout-consent-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checkout-consent-row strong {
  color: var(--white);
  line-height: 1.35;
}

.checkout-consent-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ddd;
  line-height: 1.45;
}

.checkout-consent-row a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 31, 31, 0.62);
  text-underline-offset: 3px;
}

.checkout-status {
  min-height: 22px;
  color: #8cffb5;
  font-weight: 800;
  line-height: 1.5;
}

.checkout-status.is-error {
  color: #ff9d9d;
}

.checkout-return-message {
  position: fixed;
  top: 90px;
  left: 50%;
  z-index: 19000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  width: min(560px, calc(100% - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 196, 87, 0.45);
  border-radius: 12px;
  background: #15120b;
  color: #fff1cc;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.checkout-return-message strong,
.checkout-return-message span {
  grid-column: 1;
}

.checkout-return-message span {
  color: #cfbf9c;
  font-size: 0.86rem;
}

.checkout-return-message button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.empty-cart {
  display: grid;
  justify-items: center;
  min-height: 360px;
  padding: 54px 24px;
  border: 1px dashed rgba(255, 31, 31, 0.42);
  border-radius: 18px;
  background: #070707;
  text-align: center;
}

.empty-cart-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 31, 31, 0.5);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
  background: #120505;
}

.empty-cart h2 {
  display: block;
  margin-top: 22px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.empty-cart h2::after {
  display: none;
}

.empty-cart p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.empty-cart-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.empty-cart-actions .btn {
  width: auto;
  min-width: 180px;
}

.empty-link {
  color: var(--gray);
  font-weight: 800;
  transition: 0.25s;
}

.empty-link:hover {
  color: var(--red);
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }
}

@media (max-width: 720px) {
  .cart-page {
    padding: 64px 5% 80px;
  }

  .cart-panel,
  .summary-box {
    padding: 20px;
    border-radius: 18px;
  }

  .cart-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .clear-cart-btn {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    min-height: auto;
    padding: 18px;
  }

  .cart-product-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .cart-controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }

  .quantity-btn {
    width: 44px;
  }

  .cart-line-total {
    min-width: 0;
    text-align: left;
  }

  .remove-btn {
    width: 100%;
  }

  .empty-cart-actions {
    width: 100%;
    flex-direction: column;
  }

  .empty-cart-actions .btn,
  .empty-link {
    width: 100%;
    text-align: center;
  }

  .checkout-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .checkout-dialog {
    max-height: calc(100vh - 28px);
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .checkout-offer-panel,
  .checkout-payment-panel {
    padding: 28px;
  }

  .checkout-payment-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .checkout-product {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .checkout-product-price {
    grid-column: 2;
    text-align: left;
  }

  .checkout-field,
  .checkout-consent-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card.is-featured {
    transform: none;
  }
}

/* =========================
   FINALNY SZLIF PODSTRON
========================= */

.plan-card,
.cart-panel,
.summary-box,
.cart-item,
.empty-cart,
#order-form {
  border-radius: 8px;
}

.plan-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card:hover {
  border-radius: 8px;
}

.plan-card::before {
  border-radius: 8px;
}

.hero h1,
.cart-heading h1 {
  letter-spacing: 0;
}

.section-title {
  display: block;
  margin-bottom: 38px;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

footer {
  background: #000;
}

form .btn,
#order-form .btn {
  margin-top: 8px;
}

textarea {
  resize: vertical;
}

@media (max-width: 560px) {
  .nav-container {
    gap: 14px;
    flex-direction: column;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-content {
    right: auto;
    left: 0;
    width: min(88vw, 290px);
  }

  .plans {
    padding: 72px 5%;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
    padding: 28px;
  }

  .price {
    font-size: 2.45rem;
  }

  .comparison-section,
  .package-section {
    padding: 72px 5%;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px;
  }

  .package-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .package-card.is-featured {
    transform: none;
  }
}

/* =========================
   DIETA — KONTAKT I ANKIETA PRYWATNA
========================= */

.diet-contact-section {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(76px, 9vw, 118px) 0;
}

.diet-contact-copy {
  max-width: 550px;
}

.diet-contact-eyebrow,
.private-survey-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diet-contact-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.diet-contact-copy > p {
  margin-top: 25px;
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.75;
}

.diet-contact-points {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.diet-contact-points li {
  position: relative;
  padding-left: 28px;
  color: #e5e5e5;
  line-height: 1.5;
}

.diet-contact-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.diet-contact-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 31, 31, 0.06), transparent 38%),
    #080808;
}

.diet-contact-card-heading {
  margin-bottom: 26px;
}

.diet-contact-card-heading > span {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diet-contact-card-heading h2 {
  margin-top: 9px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.diet-contact-card-heading p {
  margin-top: 12px;
  color: #929292;
  line-height: 1.65;
}

.diet-contact-form {
  width: 100%;
  gap: 18px;
}

.diet-contact-form .survey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-form label small {
  color: #777;
  font-weight: 500;
}

.diet-contact-consent,
.private-survey-consents label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 11px !important;
  color: #bdbdbd !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.diet-contact-consent input,
.private-survey-consents input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  padding: 0 !important;
  accent-color: var(--red);
}

.diet-contact-form .btn {
  width: 100%;
  margin: 0;
}

.private-survey-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 31, 31, 0.1), transparent 26%),
    #020202;
}

.private-survey-header {
  position: static;
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.private-survey-header > span {
  color: #888;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.private-survey-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 0;
}

.private-survey-intro {
  max-width: 820px;
  margin-bottom: 48px;
}

.private-survey-intro h1 {
  max-width: 800px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.private-survey-intro > p {
  max-width: 760px;
  margin-top: 22px;
  color: #aaa;
  font-size: 1.04rem;
  line-height: 1.75;
}

.private-survey-alert {
  margin-top: 26px;
  padding: 17px 19px;
  border-left: 3px solid var(--red);
  background: rgba(255, 31, 31, 0.07);
  color: #d5d5d5;
  line-height: 1.65;
}

.private-survey-form {
  width: 100%;
  gap: 30px;
}

.private-survey-form fieldset {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 14px;
}

.private-survey-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  color: #fff;
  font-size: 1.05rem;
}

.private-survey-form legend > span {
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.private-survey-form legend small {
  color: #777;
  font-size: 0.78rem;
  font-weight: 600;
}

.private-survey-form .survey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-survey-form input,
.private-survey-form select,
.private-survey-form textarea {
  color-scheme: dark;
}

.fieldset-intro {
  max-width: 760px;
  margin-bottom: 22px;
  color: #999;
  line-height: 1.7;
}

.medical-fieldset {
  border-color: rgba(255, 74, 74, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(255, 31, 31, 0.08), transparent 42%),
    #080808 !important;
}

.survey-file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.survey-file {
  min-height: 150px;
  align-content: center;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #050505;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.survey-file:hover {
  border-color: rgba(255, 31, 31, 0.58);
  background: rgba(255, 31, 31, 0.045);
}

.survey-file strong {
  color: #fff;
}

.survey-file > span {
  color: #777;
  font-size: 0.78rem;
  font-weight: 500;
}

.survey-file input {
  width: 100%;
  padding: 9px;
  font-size: 0.76rem;
}

.survey-file-status {
  min-height: 22px;
  margin-top: 16px;
  color: #8d8d8d;
  font-size: 0.86rem;
  line-height: 1.5;
}

.survey-file-status.is-error {
  color: #ff9696;
}

.private-survey-consents {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.private-survey-consents a,
.private-survey-support a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 31, 31, 0.6);
  text-underline-offset: 3px;
}

.private-survey-data-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #999;
  line-height: 1.6;
}

.private-survey-submit {
  width: 100%;
  min-height: 60px;
  margin: 0;
  font-size: 1rem;
}

.private-survey-support {
  margin-top: 30px;
  color: #777;
  text-align: center;
}

.survey-admin-main {
  width: min(860px, calc(100% - 40px));
}

.survey-admin-result {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(66, 214, 125, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(66, 214, 125, 0.08), transparent 44%),
    #080808;
}

.survey-admin-result[hidden] {
  display: none;
}

.survey-admin-result h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.survey-admin-result label {
  display: grid;
  gap: 8px;
  color: #ddd;
  font-size: 0.84rem;
  font-weight: 800;
}

.survey-admin-result textarea {
  width: 100%;
  min-height: 130px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #030303;
  color: #fff;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.survey-admin-result p {
  margin: 0;
  color: #999;
  line-height: 1.6;
}

.survey-admin-result .btn {
  width: 100%;
  margin: 0;
}

.survey-complete-main {
  display: grid;
  min-height: calc(100vh - 110px);
  place-items: center;
}

.survey-complete-card {
  width: min(680px, 100%);
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #080808;
  text-align: center;
}

.survey-complete-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.survey-complete-card p {
  max-width: 560px;
  margin: 24px auto 30px;
  color: #aaa;
  font-size: 1rem;
  line-height: 1.7;
}

.survey-complete-card .btn {
  margin: 0;
}

.survey-complete-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(66, 214, 125, 0.55);
  border-radius: 50%;
  background: rgba(66, 214, 125, 0.1);
  color: #5be392;
  font-size: 1.7rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .diet-contact-section {
    grid-template-columns: 1fr;
  }

  .diet-contact-copy {
    max-width: 720px;
  }

  .survey-file-grid {
    grid-template-columns: 1fr;
  }

  .survey-file {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .diet-contact-section,
  .private-survey-header,
  .private-survey-main {
    width: min(100% - 28px, 1180px);
  }

  .diet-contact-section {
    padding: 58px 0 72px;
  }

  .diet-contact-copy h1,
  .private-survey-intro h1 {
    letter-spacing: -0.045em;
  }

  .diet-contact-card {
    padding: 24px 18px;
  }

  .diet-contact-form .survey-grid,
  .private-survey-form .survey-grid {
    grid-template-columns: 1fr;
  }

  .private-survey-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .private-survey-form fieldset {
    padding: 24px 17px;
  }

  .private-survey-form legend {
    max-width: calc(100vw - 64px);
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

/* =========================
   DOKUMENTY PRAWNE
========================= */

.legal-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 8vw, 110px) 0;
}

.legal-hero {
  max-width: 850px;
  margin-bottom: 54px;
}

.legal-hero > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin-top: 12px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.legal-hero p {
  max-width: 700px;
  margin-top: 21px;
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-hero small {
  display: block;
  margin-top: 17px;
  color: #666;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #080808;
}

.legal-toc strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-toc a {
  color: #858585;
  font-size: 0.84rem;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--red);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  padding: 0 0 42px;
  scroll-margin-top: 120px;
}

.legal-content section + section {
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.legal-content p,
.legal-content li {
  color: #b3b3b3;
  line-height: 1.78;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content p + ol,
.legal-content ul + p,
.legal-content ol + p {
  margin-top: 14px;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 10px;
  padding-left: 23px;
}

.legal-content strong {
  color: #fff;
}

.legal-content a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 31, 31, 0.6);
  text-underline-offset: 3px;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: #101010;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-table td {
  color: #aaa;
}

.withdrawal-page {
  width: min(860px, calc(100% - 40px));
}

.withdrawal-card {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: #080808;
}

.withdrawal-card h2 {
  margin: 40px 0 22px;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.withdrawal-card p {
  color: #b4b4b4;
  line-height: 1.75;
}

.withdrawal-line {
  height: 38px;
  margin-bottom: 12px;
  border-bottom: 1px solid #555;
}

.withdrawal-signatures {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  margin-top: 38px;
}

.withdrawal-note {
  margin-top: 36px;
  padding: 15px 17px;
  border-left: 3px solid var(--red);
  background: rgba(255, 31, 31, 0.06);
}

.withdrawal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.withdrawal-actions .btn {
  margin: 0;
}

.withdrawal-actions > a {
  color: #aaa;
  font-weight: 800;
}

@media (max-width: 760px) {
  .legal-page,
  .withdrawal-page {
    width: min(100% - 28px, 1180px);
    padding-top: 54px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .withdrawal-signatures {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .withdrawal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .withdrawal-actions .btn,
  .withdrawal-actions > a {
    width: 100%;
    text-align: center;
  }
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .print-hidden {
    display: none !important;
  }

  .legal-page,
  .withdrawal-page {
    width: 100%;
    padding: 0;
  }

  .legal-hero {
    margin-bottom: 28px;
  }

  .legal-hero > span {
    color: #000;
  }

  .legal-hero h1 {
    color: #000;
    font-size: 34pt;
  }

  .legal-hero p,
  .withdrawal-card p {
    color: #222;
  }

  .withdrawal-card {
    padding: 0;
    border: 0;
    background: #fff;
  }
}

/* =========================
   KALKULATORY I WARIANTY
========================= */

.calculator-section {
  padding: 90px 8%;
  background: #050505;
}

.calculator-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.calculator-heading span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calculator-heading h2 {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.calculator-heading h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.calculator-heading p {
  margin-top: 28px;
  color: var(--gray);
  line-height: 1.7;
}

.calculator-card {
  width: min(980px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080808;
  gap: 20px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
}

.calculator-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: #ddd;
  font-size: 0.9rem;
  font-weight: 800;
}

.calculator-grid input,
.calculator-grid select {
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}

.calculator-grid input {
  appearance: textfield;
}

.calculator-grid input::-webkit-inner-spin-button,
.calculator-grid input::-webkit-outer-spin-button {
  margin: 0;
}

.calculator-result {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #080808;
  color: var(--gray);
}

.activity-guide {
  max-width: 980px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.activity-guide article {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: #080808;
}

.activity-guide h3 {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1rem;
}

.activity-guide p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.55;
}

.activity-heading {
  max-width: 980px;
  margin: 32px auto 18px;
  text-align: center;
}

.activity-heading h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.activity-heading p {
  margin-top: 8px;
  color: var(--gray);
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.result-grid div {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #050505;
}

.result-grid span {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 1.7rem;
}

.result-grid p {
  margin-top: 8px;
  color: var(--gray);
}

.calculator-warning {
  margin-top: 16px;
  color: #ffb3b3;
  font-weight: 700;
}

.calculator-next {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.calculator-next h3 {
  color: var(--white);
  font-size: 1.35rem;
}

.calculator-next p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--gray);
  line-height: 1.6;
}

.calculator-cta {
  width: auto;
  margin-top: 20px;
}

.diet-note .calculator-cta {
  display: block;
  width: min(320px, 100%);
  margin: 0 auto;
  text-align: center;
}

.diet-card .plan-description {
  min-height: 78px;
}

.compact-diet-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.diet-card {
  min-height: 300px;
  padding: 26px;
}

.diet-card .price {
  font-size: 2.25rem;
}

/* Smaller menu */
.menu-btn {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
}

.dropdown-content a {
  font-size: 0.88rem;
  padding: 12px 16px;
}

.menu-cart {
  font-size: 0.9rem;
}

/* Diet survey */
.survey-section {
  padding: 100px 8%;
  background: var(--black);
}

.survey-heading {
  max-width: 860px;
  margin: 0 auto 36px;
  text-align: center;
}

.survey-heading span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.survey-heading h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.survey-heading p {
  margin-top: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.survey-form {
  width: min(1100px, 100%);
  max-width: none;
  display: grid;
  gap: 22px;
}

.survey-form fieldset {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  background: #080808;
}

.survey-form legend {
  padding: 0 10px;
  color: var(--red);
  font-weight: 900;
}

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

.survey-form label,
.full-label {
  display: grid;
  gap: 8px;
  color: #ddd;
  font-size: 0.9rem;
  font-weight: 800;
}

.survey-form textarea {
  min-height: 120px;
  resize: vertical;
}

.full-label {
  margin-top: 18px;
}

.survey-questions {
  display: grid;
  gap: 14px;
}

.conditional-question {
  border: 1px solid #171717;
  border-radius: 8px;
  padding: 16px;
  background: #050505;
}

.question-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.question-row span {
  color: #eee;
  font-weight: 800;
}

.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-row label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--gray);
}

.radio-row input {
  width: auto;
  padding: 0;
  accent-color: var(--red);
}

.conditional-field {
  display: none;
  width: 100%;
  margin-top: 14px;
}

.conditional-field.is-visible {
  display: block;
}

.survey-status {
  min-height: 24px;
  color: #ffb3b3;
  font-weight: 800;
  line-height: 1.5;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #ffb3b3;
  font-weight: 800;
  line-height: 1.5;
}

.form-status.is-success {
  color: #8cffb5;
}

.form-status.is-error {
  color: #ffb3b3;
}

.form-privacy-note {
  margin: 0;
  color: #777;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
}

.form-privacy-note a {
  color: #aaa;
  text-decoration: underline;
  text-decoration-color: rgba(255, 31, 31, 0.55);
  text-underline-offset: 3px;
}

.form-honey {
  display: none !important;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.survey-disclaimers {
  width: min(1100px, 100%);
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid rgba(255, 31, 31, 0.35);
  border-radius: 8px;
  background: #080808;
}

.survey-disclaimers h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.25rem;
}

.survey-disclaimers details {
  border-top: 1px solid var(--border);
}

.survey-disclaimers details:first-of-type {
  border-top: none;
}

.survey-disclaimers summary {
  padding: 16px 0;
  color: #f2f2f2;
  font-weight: 900;
  cursor: pointer;
}

.survey-disclaimers summary::marker {
  color: var(--red);
}

.survey-disclaimers p {
  padding: 0 0 16px 20px;
  color: var(--gray);
  line-height: 1.65;
}

@media (max-width: 820px) {
  .calculator-grid,
  .result-grid,
  .activity-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-grid {
    grid-template-columns: 1fr;
  }

  .question-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .calculator-section {
    padding: 72px 5%;
  }

  .calculator-grid,
  .result-grid,
  .activity-guide {
    grid-template-columns: 1fr;
  }

  .calculator-card,
  .calculator-result {
    padding: 20px;
  }

  .calculator-cta {
    width: 100%;
    text-align: center;
  }

  .survey-section {
    padding: 72px 5%;
  }

  .survey-form fieldset {
    padding: 20px;
  }

  .survey-disclaimers {
    padding: 20px;
  }

  .survey-disclaimers p {
    padding-left: 0;
  }
}

/* =========================
   RESPONSYWNOŚĆ TABLET + TELEFON
========================= */

input,
textarea,
select,
button {
  max-width: 100%;
}

.comparison-table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1180px) {
  .nav-container {
    gap: 16px;
    padding: 14px 4%;
  }

  .center-info,
  .pionowa-linia {
    display: none;
  }

  .dropdown-content .mobile-nav-link {
    display: block;
  }

  .logo {
    flex: 0 0 auto;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    white-space: nowrap;
  }

  .nav-right {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: clamp(420px, 58vh, 620px);
    padding: 72px 5%;
  }

  .plans,
  .comparison-section,
  .package-section,
  #faq,
  #contact,
  .calculator-section,
  .survey-section {
    padding: 76px 5%;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .plan-card,
  .package-card {
    padding: 28px;
  }

  #order-form {
    width: min(700px, 100%);
    padding: 30px;
  }

  footer {
    padding-inline: 5%;
  }
}

@media (max-width: 620px) {
  .container {
    width: 92%;
  }

  .nav-container {
    width: 100%;
    min-height: 64px;
    flex-direction: row;
    gap: 8px;
    padding: 10px 4%;
  }

  .logo {
    font-size: clamp(1.12rem, 5vw, 1.35rem);
    letter-spacing: 0.02em;
  }

  .nav-right {
    width: auto;
    gap: 8px;
    justify-content: flex-end;
  }

  .menu-btn {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .menu-cart {
    gap: 4px;
    font-size: 0.8rem;
  }

  #cart-count {
    width: 19px;
    height: 19px;
    font-size: 0.7rem;
  }

  .dropdown-content {
    right: 0;
    left: auto;
    width: min(88vw, 290px);
  }

  .hero {
    min-height: 380px;
    padding: 64px 5%;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 11vw, 2.75rem);
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .plans,
  .comparison-section,
  .package-section,
  #faq,
  #contact,
  .calculator-section,
  .survey-section {
    padding: 64px 4%;
  }

  .plans-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .plan-card,
  .package-card {
    min-height: auto;
    padding: 24px;
  }

  .package-card h3 {
    font-size: 1.65rem;
  }

  .price {
    font-size: 2.35rem;
  }

  .section-title,
  #faq h2,
  #contact h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .comparison-heading h2,
  .survey-heading h2,
  .calculator-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px;
    font-size: 0.88rem;
  }

  #order-form,
  .calculator-card,
  .calculator-result,
  .survey-form fieldset,
  .survey-disclaimers {
    padding: 20px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .btn {
    min-height: 48px;
    padding: 14px 18px;
    text-align: center;
  }

  .question {
    gap: 16px;
  }

  .question-row {
    gap: 12px;
  }

  .radio-row {
    gap: 10px 16px;
  }

  .cart-heading h1 {
    font-size: clamp(2.3rem, 12vw, 3.35rem);
  }

  .checkout-modal {
    padding: 8px;
  }

  .checkout-dialog {
    max-height: calc(100dvh - 16px);
  }

  .checkout-offer-panel,
  .checkout-payment-panel {
    padding: 22px 18px;
  }

  .checkout-dialog h2 {
    padding-right: 36px;
  }

  .checkout-payment-panel h3 {
    padding-right: 38px;
  }

  .checkout-close {
    top: 12px;
    right: 12px;
  }

  footer {
    padding: 32px 5%;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.02rem;
  }

  .menu-btn {
    padding-inline: 9px;
  }

  .menu-cart {
    font-size: 0;
  }

  .menu-cart::before {
    content: "🛒";
    font-size: 1rem;
  }

  #cart-count {
    font-size: 0.7rem;
  }
}

@media (hover: none) {
  .card:hover,
  .plan-card:hover,
  .package-card.is-featured,
  .cart-item:hover,
  .btn:hover {
    transform: none;
  }
}

/* =========================
   SUBTELNY SYSTEM ANIMACJI
========================= */

:root {
  --smooth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .reveal-on-scroll {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.68s var(--smooth-ease) var(--reveal-delay, 0ms),
    translate 0.68s var(--smooth-ease) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.motion-enabled .reveal-on-scroll.is-revealed {
  opacity: 1;
  translate: 0 0;
}

.btn,
.menu-btn,
.menu-cart,
.dropdown-content a,
.footer-instagram,
.footer-facebook,
.quantity-btn,
.remove-btn,
.clear-cart-btn,
.checkout-close,
input,
textarea,
select {
  transition-duration: 0.25s;
  transition-timing-function: var(--smooth-ease);
}

button:active,
.btn:active,
.menu-cart:active,
.quantity-btn:active {
  scale: 0.98;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 31, 31, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 31, 31, 0.1);
}

@media (hover: hover) {
  .btn:hover,
  .menu-btn:hover,
  .quantity-btn:hover,
  .checkout-close:hover {
    box-shadow: 0 10px 28px rgba(255, 31, 31, 0.16);
  }

  .menu-cart:hover,
  .dropdown-content a:hover {
    translate: 0 -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-enabled .reveal-on-scroll {
    opacity: 1;
    translate: none;
  }

}

/* =========================
   WSPÓLNY WYGLĄD PODSTRON
========================= */

:root {
  --subpage-surface: #080808;
  --subpage-surface-light: #101010;
  --subpage-border: rgba(255, 255, 255, 0.11);
  --subpage-muted: #b7b7b7;
}

body {
  background: #030303;
}

.hero {
  isolation: isolate;
  min-height: clamp(500px, 68svh, 700px);
  justify-content: flex-start;
  padding: clamp(88px, 10vw, 132px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--subpage-border);
  background:
    radial-gradient(circle at 79% 30%, rgba(255, 31, 31, 0.19), transparent 27%),
    radial-gradient(circle at 16% 84%, rgba(255, 31, 31, 0.08), transparent 24%),
    #030303;
  text-align: left;
}

.hero::before {
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  background-position: center;
  mask-image: linear-gradient(to right, black, transparent 76%);
}

.hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding-right: clamp(320px, 35vw, 470px);
}

.hero > div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: min(34vw, 420px);
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 31, 31, 0.1), transparent 45%),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 61px,
      rgba(255, 255, 255, 0.07) 62px,
      transparent 63px
    ),
    #090909;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    44px 18px 90px rgba(255, 31, 31, 0.13);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.3vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  color: #c8c8c8;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.plans,
.comparison-section,
.package-section,
#faq,
#contact,
.calculator-section,
.survey-section {
  padding-top: clamp(88px, 9vw, 118px);
  padding-bottom: clamp(88px, 9vw, 118px);
  border-top: 1px solid var(--subpage-border);
}

.plans,
.calculator-section,
#faq {
  background: #050505;
}

.package-section,
.comparison-section,
.survey-section,
#contact {
  background: #030303;
}

.plans-grid,
.package-grid {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
  gap: 20px;
  align-items: stretch;
}

.comparison-heading,
.calculator-heading,
.survey-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.comparison-heading span,
.calculator-heading span,
.survey-heading span {
  letter-spacing: 0.14em;
}

.comparison-heading h2,
.calculator-heading h2,
.survey-heading h2,
.section-title,
#faq h2,
#contact h2 {
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.comparison-heading p,
.calculator-heading p,
.survey-heading p {
  color: var(--subpage-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.plan-card,
.package-card,
.calculator-card,
.calculator-result,
.activity-guide article,
.survey-form fieldset,
.survey-disclaimers,
.cart-panel,
.summary-box,
.cart-item,
.empty-cart,
#order-form {
  border: 1px solid var(--subpage-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #0b0b0b, #050505);
}

.plan-card,
.package-card {
  padding: 34px;
  text-align: left;
}

.plan-card {
  height: 100%;
}

.plans > .plan-card {
  width: min(820px, 100%);
  min-height: auto;
  margin: 0 auto;
}

.package-card {
  transition:
    translate 0.25s var(--smooth-ease, ease),
    border-color 0.25s var(--smooth-ease, ease);
}

.plan-card:hover,
.package-card:hover {
  transform: none;
  translate: 0 -6px;
  border-color: rgba(255, 31, 31, 0.5);
  box-shadow: none;
}

.plan-card::before {
  border-radius: 14px;
}

.package-card.is-featured {
  border-color: rgba(255, 31, 31, 0.48);
  background:
    linear-gradient(150deg, rgba(255, 31, 31, 0.11), transparent 48%),
    #080808;
  box-shadow: none;
}

.plan-description,
.package-card p,
.package-card li {
  color: var(--subpage-muted);
  line-height: 1.7;
}

.btn {
  min-height: 52px;
  border-radius: 8px;
  padding: 15px 22px;
}

.btn:hover {
  transform: translateY(-2px);
}

.comparison-table-wrap {
  border-color: var(--subpage-border);
  border-radius: 14px;
  background: var(--subpage-surface);
}

.comparison-table th {
  background: var(--subpage-surface-light);
}

.calculator-card,
.calculator-result,
.survey-form fieldset,
.survey-disclaimers,
#order-form {
  padding: 30px;
}

.calculator-grid input,
.calculator-grid select,
.survey-form input,
.survey-form textarea,
.survey-form select,
#order-form input,
#order-form textarea,
#order-form select {
  border-color: var(--subpage-border);
  border-radius: 8px;
  background: var(--subpage-surface-light);
}

.conditional-question,
.result-grid div {
  border-color: var(--subpage-border);
  border-radius: 10px;
  background: #070707;
}

#faq > * {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--subpage-border);
  border-bottom: 1px solid var(--subpage-border);
  border-radius: 12px;
  background: var(--subpage-surface);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.cart-page {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 31, 31, 0.15), transparent 27%),
    linear-gradient(180deg, #030303 0%, #050505 58%, #030303 100%);
}

.cart-heading h1 {
  letter-spacing: -0.05em;
}

.cart-panel,
.summary-box {
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42);
}

@media (max-width: 900px) {
  .hero {
    min-height: 480px;
    padding: 96px 0;
    text-align: center;
  }

  .hero > div {
    padding-right: 0;
  }

  .hero > div::after {
    display: none;
  }

  .hero h1,
  .hero p {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 410px;
    padding: 82px 0;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .plans,
  .comparison-section,
  .package-section,
  #faq,
  #contact,
  .calculator-section,
  .survey-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .comparison-heading,
  .calculator-heading,
  .survey-heading {
    margin-bottom: 40px;
  }

  .plan-card,
  .package-card,
  .calculator-card,
  .calculator-result,
  .survey-form fieldset,
  .survey-disclaimers,
  #order-form {
    padding: 22px;
  }

  .faq-item {
    padding: 20px;
  }
}

/* Pakiety planów — plan jednorazowy i prowadzenie okresowe */

.package-card {
  overflow: visible;
}

.package-card--silver {
  --package-accent: #b8c0cd;
  --package-accent-rgb: 184 192 205;
  --package-button-text: #090a0c;
}

.package-card--gold {
  --package-accent: #d7a532;
  --package-accent-rgb: 215 165 50;
  --package-button-text: #0b0903;
}

.package-card--platinum {
  --package-accent: #e1d5b6;
  --package-accent-rgb: 225 213 182;
  --package-button-text: #0a0906;
}

.package-card.package-card--silver,
.package-card.package-card--gold,
.package-card.package-card--platinum {
  border-color: rgb(var(--package-accent-rgb) / 0.42);
  background:
    linear-gradient(
      145deg,
      rgb(var(--package-accent-rgb) / 0.1),
      transparent 48%
    ),
    #080808;
  box-shadow: 0 20px 56px rgb(var(--package-accent-rgb) / 0.06);
}

.package-card.package-card--silver:hover,
.package-card.package-card--gold:hover,
.package-card.package-card--platinum:hover {
  border-color: rgb(var(--package-accent-rgb) / 0.68);
}

.package-tier {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
  color: #818181;
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.package-card .package-tier strong {
  color: var(--package-accent);
}

.package-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  letter-spacing: -0.035em;
}

.package-card .package-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 16px 0 22px;
}

.package-card .package-price strong {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.package-card .package-price-amount {
  display: inline-block;
  font-size: clamp(3.05rem, 4.8vw, 4.35rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.package-card .package-price-currency {
  display: inline-block;
  padding-bottom: 0.12em;
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.package-card .package-price-value::before {
  content: attr(data-monthly-price) " zł";
}

.package-card .package-price small {
  color: #8c8c8c;
  padding-bottom: 0.27em;
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  font-weight: 800;
  line-height: 1.15;
}

.package-card .package-price-value::before {
  content: none !important;
}

.package-card .package-intro {
  min-height: 82px;
  margin: 0;
}

.package-duration {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 24px 0 4px;
  padding: 4px;
  border: 1px solid #292929;
  border-radius: 10px;
  background: #050505;
}

.package-duration .duration-option {
  position: relative;
  min-width: 0;
  min-height: 42px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #969696;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.package-duration .duration-option span {
  display: block;
  margin-top: 3px;
  color: var(--package-accent);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.package-duration .duration-option:hover {
  color: var(--white);
}

.package-duration .duration-option.is-active {
  border-color: rgb(var(--package-accent-rgb) / 0.72);
  background: rgb(var(--package-accent-rgb) / 0.14);
  color: var(--package-accent);
}

.package-duration .duration-option:focus-visible {
  outline: 2px solid var(--package-accent);
  outline-offset: 2px;
}

.package-purchase-mode {
  display: flex;
  min-height: 52px;
  align-items: center;
  margin: 24px 0 4px;
  padding: 0 16px;
  border: 1px solid #292929;
  border-radius: 10px;
  color: #b5b5b5;
  background: #050505;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-card--silver .package-purchase-mode {
  border-color: rgb(var(--package-accent-rgb) / 0.3);
  color: var(--package-accent);
  background: rgb(var(--package-accent-rgb) / 0.035);
}

.package-period-benefit {
  display: flex;
  min-height: 26px;
  align-items: center;
  margin: 14px 0 0;
  color: var(--package-accent);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.package-period-benefit::before {
  content: none;
}

.package-card .package-benefits {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}

.package-card .package-benefits li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-items: start;
  padding: 0;
  border: 0;
  line-height: 1.5;
}

.package-card .package-benefits li:first-child {
  border: 0;
}

.package-card .package-benefits li::before {
  content: "✓";
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-top: 0.03em;
  color: var(--package-accent);
  background: none;
  font-size: 0.98rem;
  font-weight: 900;
}

.package-card-footer {
  margin-top: auto;
  padding-top: 8px;
}

.package-saving {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 2px;
  padding: 6px 10px;
  border: 1px solid rgb(var(--package-accent-rgb) / 0.45);
  border-radius: 999px;
  background: rgb(var(--package-accent-rgb) / 0.1);
  color: var(--package-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.package-saving[hidden] {
  display: none;
}

.package-total {
  display: flex;
  min-height: 72px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 18px;
  border: 0;
}

.package-total > span {
  max-width: 150px;
  color: #9a9a9a;
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  font-weight: 800;
  line-height: 1.35;
}

.package-total strong {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--package-accent);
  font-size: clamp(2.25rem, 2.75vw, 2.95rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
  white-space: nowrap;
}

.package-total strong span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.package-total s {
  color: #777;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.package-total s[hidden] {
  display: none;
}

.package-card .package-card-footer .btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--package-accent);
  color: var(--package-button-text);
}

.package-card .package-card-footer .btn:hover {
  background: var(--package-accent);
  filter: brightness(1.08);
}

@media (max-width: 1120px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    width: min(760px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .package-card.is-featured {
    transform: none;
  }
}

@media (max-width: 420px) {
  .package-card .package-intro {
    min-height: auto;
  }
}

/* FAQ jak na stronie głównej */

#faq {
  background: #050505;
}

#faq > * {
  width: min(900px, 100%);
}

#faq .faq-item {
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid #222;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

#faq .faq-item + .faq-item {
  margin-top: 0;
}

#faq .question {
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

#faq .question span:last-child {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 1.3rem;
}

#faq .answer {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #aaa;
  transition: max-height 0.4s var(--smooth-ease, ease);
}

#faq .answer p {
  padding-top: 15px;
  line-height: 1.7;
}

/* Dostępne FAQ na podstronach */

#faq .faq-heading {
  text-align: center;
}

#faq .faq-heading > span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#faq .faq-heading h2 {
  margin: 0 0 16px;
}

#faq .faq-heading p {
  max-width: 650px;
  margin: 0 auto 48px;
  color: #aaa;
  line-height: 1.7;
}

#faq .faq-list details {
  border-bottom: 1px solid #222;
}

#faq .faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

#faq .faq-list summary::-webkit-details-marker {
  display: none;
}

#faq .faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--red);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

#faq .faq-list details[open] summary::after {
  content: "−";
}

#faq .faq-list summary:focus-visible {
  outline: 2px solid rgba(255, 31, 31, 0.85);
  outline-offset: 5px;
}

#faq .faq-list details p {
  max-width: 780px;
  padding: 0 0 25px;
  color: #aaa;
  line-height: 1.7;
}

.cart-heading h1 {
  text-align: left;
}

@media (max-width: 560px) {
  #faq .faq-heading p {
    margin-bottom: 36px;
  }

  #faq .faq-list summary {
    padding: 22px 40px 22px 0;
  }
}

/* =========================
   STRIPE CHECKOUT
========================= */

.payment-message {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 196, 87, 0.34);
  border-radius: 10px;
  background: rgba(255, 196, 87, 0.08);
  color: #ffe0a6;
  line-height: 1.5;
}

.checkout-pay-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-stripe-note {
  margin-top: -8px;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.payment-result-main {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 72px 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 31, 31, 0.12), transparent 32%),
    #030303;
}

.payment-result-card {
  width: min(620px, 100%);
  padding: clamp(34px, 7vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #080808;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.payment-result-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.payment-result-icon span {
  width: 18px;
  height: 18px;
  border: 2px solid #777;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}

.payment-result-card.is-success .payment-result-icon {
  border-color: rgba(75, 226, 132, 0.42);
  background: rgba(75, 226, 132, 0.09);
}

.payment-result-card.is-success .payment-result-icon span {
  width: 24px;
  height: 13px;
  border: 0;
  border-left: 3px solid #67e89a;
  border-bottom: 3px solid #67e89a;
  border-radius: 0;
  animation: none;
  transform: translateY(-3px) rotate(-45deg);
}

.payment-result-card.is-error .payment-result-icon {
  border-color: rgba(255, 82, 82, 0.42);
  background: rgba(255, 82, 82, 0.09);
}

.payment-result-card.is-error .payment-result-icon span {
  width: 22px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: #ff6666;
  animation: none;
  transform: rotate(45deg);
}

.payment-result-card.is-error .payment-result-icon span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #ff6666;
  transform: rotate(90deg);
}

.payment-result-eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-result-card h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.payment-result-text {
  max-width: 470px;
  margin: 18px auto 0;
  color: #aaa;
  line-height: 1.65;
}

.payment-result-details {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
}

.payment-result-details[hidden] {
  display: none;
}

.payment-result-details div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  background: #0d0d0d;
  text-align: left;
}

.payment-result-details dt {
  color: #888;
}

.payment-result-details dd {
  max-width: 70%;
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.payment-diet-survey {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 31, 31, 0.42);
  border-radius: 12px;
  background: rgba(255, 31, 31, 0.07);
  text-align: left;
}

.payment-diet-survey[hidden] {
  display: none;
}

.payment-diet-survey > span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-diet-survey > strong {
  font-size: 1.2rem;
}

.payment-diet-survey > p {
  margin: 0;
  color: #aaa;
  line-height: 1.55;
}

.payment-diet-survey .btn {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
}

.payment-result-actions {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.payment-result-link {
  color: #999;
  font-weight: 800;
}

.payment-result-link:hover {
  color: #fff;
}

.payment-result-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding-top: 4px;
  font-size: 0.78rem;
}

.payment-result-legal a {
  color: #777;
}

.payment-result-legal a:hover {
  color: #fff;
}

@keyframes payment-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .payment-message {
    width: min(100% - 28px, 1180px);
  }

  .payment-result-main {
    padding: 40px 14px;
  }

  .payment-result-card {
    padding: 34px 20px;
  }

  .payment-result-details div {
    display: grid;
    gap: 6px;
  }

  .payment-result-details dd {
    max-width: none;
    text-align: left;
  }
}

/* =========================
   WSPÓLNA SIATKA NAVBARU
========================= */

.nav-container {
  width: 90%;
  max-width: 1200px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
}

.logo,
.center-info,
.pionowa-linia,
.nav-right {
  flex: 0 0 auto;
}

.pionowa-linia {
  margin-inline: clamp(14px, 1.75vw, 24px);
}

.nav-right {
  margin-left: auto;
  padding-left: clamp(14px, 1.75vw, 24px);
  gap: 12px;
}

.nav-container--full {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: clamp(18px, 2.5vw, 32px);
}

.nav-links {
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.nav-links .center-info {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding-inline: clamp(12px, 1.5vw, 22px);
  border-left: 1.5px solid var(--red);
  text-align: center;
  line-height: 1.25;
}

.nav-links .center-info:last-child {
  border-right: 1.5px solid var(--red);
}

.nav-container--full .nav-right {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 1180px) {
  .nav-container {
    width: 90%;
    min-height: 64px;
    padding: 0;
  }

  .nav-right {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .nav-container--full {
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 16px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-container {
    width: 90%;
    min-height: 64px;
    padding: 0;
  }
}
