/* =====================================================
   NETFORMA — cennik.css
   Mobile-first | Satoshi | #2F4F4F / #E8603C / #F6F3EE
   ===================================================== */


/* ── Reset & tokens ─────────────────────────────────── */

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

:root {
  --green:        #2F4F4F;
  --green-dark:   #1E3535;
  --orange:       #E8603C;
  --orange-deep:  #c94e2c;
  --bg:           #F6F3EE;
  --white:        #FFFFFF;
  --text:         #2C2C2A;
  --text-muted:   #5F5E5A;
  --text-light:   #9FBFBF;
  --text-dim:     #7FAFAF;
  --text-ghost:   #4A7070;
  --border:       #DDD6CA;
  --badge-bg:     #EAE6DF;
  --max-width:    1440px;

  /* aliasy */
  --cream:        var(--bg);
  --cream-dark:   var(--border);

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  --shadow-card:  0 4px 24px rgba(47,79,79,.10);
  --shadow-panel: 0 8px 48px rgba(47,79,79,.18);

  --font-display: 'Satoshi', sans-serif;
  --font-body:    'Satoshi', sans-serif;

  --max-content:  1200px;
  --max-panel:    860px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Satoshi', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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


/* ── PAGE HERO ──────────────────────────────────────── */

.page-hero {
  position: relative;
  background: var(--cream);
  padding: 8rem 1.25rem 9rem;
  overflow: hidden;
  text-align: center;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2rem;
}

.page-hero__eyebrow::before,
.page-hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 6rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 .5rem;
  max-width: 1300px;
}

.page-hero__title--accent {
  font-style: normal;
  color: var(--orange);
}

.page-hero__divider {
  width: 40px;
  height: 2px;
  background: rgba(0,0,0,.12);
  margin: 1.75rem auto;
}

.page-hero__sub {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
}

.hero-blob--1 {
  width: 300px;
  height: 300px;
  background: var(--orange);
  top: -80px;
  right: -60px;
  opacity: .12;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: var(--green);
  bottom: -140px;
  left: -80px;
  opacity: .08;
}


/* ── PRICING INCLUDES ───────────────────────────────── */

.pricing-includes {
  padding: 6.5rem 1rem 1rem;
  background: var(--white);
}

.pricing-includes__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-includes__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-includes__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}


/* ── PRICING SECTION ────────────────────────────────── */

.pricing-section {
  padding: 2rem 1.25rem 7rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ── TABS WRAPPER ───────────────────────────────────── */

.tabs-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 5rem;
  justify-content: center;
  width: 100%;
  max-width: var(--max-panel);
  padding: 0 1rem;
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 15;
  overflow-x: auto;
}

.tabs-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--cream-dark);
  z-index: 1;
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}


/* ── TAB ────────────────────────────────────────────── */

.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0.8rem 0.5rem 1rem 0.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s ease;
  overflow: visible;
  z-index: 3;
  flex-shrink: 0;
}

.tab:not(.tab--active):hover {
  color: var(--green);
}

.tab--active {
  color: var(--green);
}

.tab__icon {
  display: flex;
  flex-shrink: 0;
}

.tab__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.15rem;
  font-weight: 550;
}


/* ── TAB INDICATOR ──────────────────────────────────── */

.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  background-color: var(--orange);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}


/* ── PANELS WRAPPER ─────────────────────────────────── */

.panels-wrapper {
  width: 100%;
  max-width: var(--max-panel);
  background: var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: visible;
  padding: 2.5rem 2rem 3rem;
  position: relative;
  z-index: 10;
}


/* ── PANEL ──────────────────────────────────────────── */

.panel {
  display: none;
}

.panel--active {
  display: block;
  animation: panelIn .38s cubic-bezier(.22,1,.36,1) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}


/* ── PACKAGE CARD ───────────────────────────────────── */

.pkg-card {
  display: block;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  animation: none;
}

.pkg-card + .pkg-card {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}


/* ── BADGE ──────────────────────────────────────────── */

.pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.pkg-badge-featured { color: var(--bg); }
.pkg-badge-plain    { color: var(--green); }


/* ── PACKAGE NAME ───────────────────────────────────── */

.pkg-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.01em;
  margin-bottom: .35rem;
}


/* ── PACKAGE DESC ───────────────────────────────────── */

.pkg-desc {
  font-size: 1rem;
  color: var(--bg);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 480px;
}


/* ── PACKAGE PRICE ──────────────────────────────────── */

.pkg-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.pkg-price-hl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 725;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.pkg-price-suffix {
  font-size: 2.5rem;
  font-weight: 650;
  color: var(--bg);
  letter-spacing: -0.03em;
}

.pkg-note {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.5rem;
}


/* ── PACKAGE DIVIDER ────────────────────────────────── */

.pkg-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}


/* ── PACKAGE FEATURES ───────────────────────────────── */

.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.pkg-features li {
  font-size: 1.25rem;
  color: var(--bg);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pkg-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.pkg-features--inherited li {
  color: rgba(255,255,255,.7);
}


/* ── INHERITED DIVIDER ──────────────────────────────── */

.pkg-inherited-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0 .9rem;
}

.pkg-inherited-line {
  flex: 1;
  height: 1px;
  background: var(--orange);
}

.pkg-inherited-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}


/* ── TOOLTIP / POPOVER ──────────────────────────────── */

.tip {
  border-bottom: 1px dashed var(--orange);
  cursor: help;
  position: relative;
  display: inline;
}

.popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 260px;
  background: var(--cream);
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 200;
  text-align: left;
}

.popover__arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--cream);
  box-shadow: 2px 2px 4px rgba(0,0,0,.07);
}

.popover__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.popover__desc {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.tip:hover .popover,
.tip.is-open .popover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}


/* ── PRICING NOTE ───────────────────────────────────── */

.pricing-note {
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.pricing-more {
  color: var(--green);
  text-decoration: underline;
}


/* =====================================================
   MEDIA QUERIES
   ===================================================== */

/* max-width: 420px */
@media (max-width: 420px) {
  .pricing-includes__inner {
    grid-template-columns: 1fr;
  }
}

/* max-width: 600px */
@media (max-width: 600px) {
  .panels-wrapper {
    width: 100%;
    margin: 0 auto;
  }

  .pkg-name     { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .pkg-price-hl { font-size: clamp(2rem, 8vw, 3rem); }
}

/* max-width: 768px */
@media (max-width: 768px) {
  .page-hero__title {
    max-width: 100%;
    font-size: 2.9rem;
  }

  .tabs-wrapper {
    justify-content: flex-start;
    gap: 3rem;
    padding: 0 1.25rem;
    padding-left: calc(50% - 60px);   /* ← dodaj */
    padding-right: calc(50% - 60px);  /* ← dodaj */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: inset 0 -2px 0 0 var(--cream-dark);
  }

  /* Pseudo-element zastąpiony przez box-shadow */
  .tabs-wrapper::after {
    display: none;
  }

  .tab {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .pricing-includes__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    justify-items: start;
    align-items: start;
    padding-left: 3rem;
  }

  .pricing-includes__item {
    font-size: 1rem;
    white-space: normal;
  }
}

/* min-width: 480px */
@media (min-width: 480px) {
  .tab { font-size: .88rem; padding: .8rem 1.25rem; }
  .packages--two { flex-direction: row; flex-wrap: wrap; }
  .packages--two .package { flex: 1 1 calc(50% - .625rem); }
}

/* min-width: 768px */
@media (min-width: 768px) {
  .tab { font-size: .9rem; flex: initial; width: auto; }
  .tab__label { overflow: visible; }

  .packages { flex-direction: row; align-items: stretch; }
  .package { flex: 1; }

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

  .footer__inner { flex-direction: row; flex-wrap: wrap; gap: 3rem; }
  .footer__brand { flex: 1 1 200px; }
}

/* min-width: 1024px */
@media (min-width: 1024px) {
  .page-hero   { padding: 6rem 2rem 7rem; }
  .panel__inner { padding: 3rem 3rem; }
  .addons__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { flex-wrap: nowrap; }
}

/* min-width: 1440px */
@media (min-width: 1440px) {
  :root { --max-panel: 900px; }
  .hero-blob--1 { width: 450px; height: 450px; }
  .hero-blob--2 { width: 600px; height: 600px; }
}

/* max-width: 320px */
@media (max-width: 320px) {
  .tab__label { display: none; }
  .tab { padding: .65rem .75rem; }
  .package__amount { font-size: 1.4rem; }
}