/* ============================================================
   MarkWeb  ·  subpages.css
   Nagłówek podstron + sekcje: hosting (pakiety, cechy,
   porównanie, migracja, FAQ) i portfolio (filtry, siatka,
   wyróżniona realizacja) + wspólny pas CTA.
   ============================================================ */

/* ---------- Nagłówek podstrony ---------- */

.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-hero .glow-violet { width: 520px; height: 520px; top: -220px; left: -140px; }
.page-hero .glow-blue { width: 460px; height: 460px; top: -120px; right: -160px; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
}

.page-hero .lead {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-3);
  max-width: 52ch;
}

.page-hero .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

html.js .page-hero-copy > * {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-in 0.9s var(--ease-out) forwards;
}

html.js .page-hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
html.js .page-hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
html.js .page-hero-copy > *:nth-child(4) { animation-delay: 0.34s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Wizual hero hostingu: stos usług */
.server-stack {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 420px;
  margin-left: auto;
}

html.js .server-stack {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-in 0.9s var(--ease-out) 0.3s forwards;
}

.server-slab {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-md);
}

html.js .server-slab { animation: floaty-soft 6s ease-in-out infinite; }

.server-slab:nth-child(1) { --rot: -1deg; margin-right: 2.5rem; }
.server-slab:nth-child(2) { --rot: 1deg; margin-left: 2.5rem; animation-delay: 1s; }
.server-slab:nth-child(3) { --rot: -0.5deg; margin-right: 1.5rem; animation-delay: 2s; }

.server-slab i {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.5rem;
}

.server-slab b { display: block; color: var(--ink); font-size: 1.02rem; }
.server-slab span { font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Przełącznik okresu rozliczenia (segmented control) ---------- */

.billing-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.4rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  max-width: 100%;
}

/* Przesuwana "pigułka" pod aktywną zakładką - pozycjonowana z JS */
.bt-highlight {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.4rem;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--grad-btn);
  box-shadow: 0 12px 26px -10px rgba(83, 47, 210, 0.55);
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

.bt-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72em 1.5em;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}

.bt-opt:hover { color: var(--ink); }

.bt-opt:active { transform: scale(0.96); }

.bt-opt.is-active { color: #fff; }

.bt-badge {
  padding: 0.24em 0.7em;
  border-radius: var(--r-pill);
  background: rgba(13, 138, 83, 0.14);
  color: #0b6e43;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background-color 0.35s, color 0.35s;
}

.bt-opt.is-active .bt-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ---------- Karty pakietów ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--r-card) + 4px);
  padding: 2.1rem 1.9rem 1.9rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.plan:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.plan-hot {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .plan-hot { transform: scale(1.04); }
  .plan-hot:hover { transform: scale(1.04) translateY(-7px); }
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4em 1.2em;
  border-radius: var(--r-pill);
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(83, 47, 210, 0.6);
}

.plan h3 { font-size: 1.35rem; font-weight: 800; }

.plan .plan-for {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-3);
  min-height: 2.6em;
}

.plan-price {
  margin-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.plan-price .pp-main {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan-price b {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  transition: opacity 0.2s;
}

.plan-price span { font-size: 0.95rem; color: var(--ink-3); font-weight: 600; }

.plan-price .pp-sub {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  min-height: 1.15em;
  transition: opacity 0.2s;
}

.plan-price.swap b,
.plan-price.swap span,
.plan-price.swap .pp-sub { opacity: 0; }

.plan-feats { margin-top: 1.4rem; display: grid; gap: 0.7rem; flex: 1; }

.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.96rem;
  color: var(--ink-2);
}

.plan-feats i { color: var(--violet); font-size: 1.15rem; flex: none; margin-top: 0.1em; }

.plan-feats li.muted { color: #9ca0bb; }
.plan-feats li.muted i { color: #c9ccdf; }

.plan .btn { width: 100%; margin-top: 1.8rem; }

.plans-note {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.plans-note-48m {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  margin: 0.9rem auto 0;
  padding: 0.75em 1.35em;
  border-radius: var(--r-pill);
  background: rgba(13, 138, 83, 0.09);
  color: #0b6e43;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.plans-note-48m i { font-size: 1.2rem; flex: none; }

/* Responsywność przełącznika okresu */
@media (max-width: 620px) {
  .billing-toggle { width: 100%; border-radius: 20px; }
  .bt-opt {
    flex: 1;
    justify-content: center;
    padding: 0.72em 0.5em;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .bt-badge { font-size: 0.64rem; padding: 0.2em 0.5em; }
  .plans-note-48m { align-items: flex-start; }
}

/* ---------- Cechy hostingu ---------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.6rem 1.5rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.feat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.28);
}

.feat i {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.feat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.feat p { font-size: 0.9rem; color: var(--ink-3); }

/* ---------- Porównanie pakietów ---------- */

.compare-wrap {
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.compare th, .compare td {
  padding: 0.95rem 1.4rem;
  text-align: center;
}

.compare th:first-child, .compare td:first-child {
  text-align: left;
  color: var(--ink-2);
  font-weight: 600;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--border-strong);
}

.compare thead th.hot { color: var(--violet); }

.compare .group th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.06);
  padding-block: 0.7rem;
}

.compare tbody tr:hover td { background: rgba(124, 58, 237, 0.035); }

.compare td b { color: var(--ink); font-weight: 700; }

.compare .yes { color: #0d8a53; font-size: 1.25rem; }
.compare .no { color: #c9ccdf; font-size: 1.25rem; }

/* ---------- Pas migracji ---------- */

.migrate-panel {
  position: relative;
  border-radius: calc(var(--r-card) + 8px);
  background: var(--grad-btn);
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(2.5rem, 5.5vw, 4rem);
  overflow: hidden;
}

.migrate-panel::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: -200px; right: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(80px);
}

.migrate-panel h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  max-width: 22ch;
}

.migrate-panel > p { margin-top: 1rem; max-width: 52ch; font-size: 1.05rem; }

.migrate-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.2rem;
  position: relative;
  z-index: 1;
}

.migrate-steps li {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.migrate-steps i { font-size: 1.6rem; color: #fff; display: block; margin-bottom: 0.6rem; }

.migrate-steps b { color: #fff; display: block; font-size: 1rem; margin-bottom: 0.25rem; }

.migrate-steps p { font-size: 0.88rem; }

.migrate-panel .btn { margin-top: 2.2rem; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.35s, border-color 0.35s;
}

.faq-item.open {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.faq-q i {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, color 0.3s;
}

.faq-item.open .faq-q i {
  transform: rotate(45deg) scale(1.08);
  background: var(--grad-btn);
  color: #fff;
}

.faq-a p { transition: opacity 0.4s var(--ease-out) 0.1s; }
.faq-item:not(.open) .faq-a p { opacity: 0; }
.faq-item.open .faq-a p { opacity: 1; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.faq-a p {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-3);
  font-size: 0.98rem;
  max-width: 62ch;
}

/* ---------- PORTFOLIO ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.6em 1.4em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover { border-color: rgba(124, 58, 237, 0.45); transform: translateY(-2px); }

.filter-btn:active { transform: scale(0.95); }

.filter-btn.on {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(83, 47, 210, 0.55);
}

/* Wyróżniona realizacja */
.case-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: calc(var(--r-card) + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.case-visual {
  position: relative;
  min-height: 380px;
  background: var(--p-wash, var(--bg-2));
  overflow: hidden;
}

.case-visual .pmini {
  inset: 10% 12% 0;
  border-radius: 16px 16px 0 0;
  padding: 1.4rem 1.6rem;
}

.case-visual .pmini h3 { font-size: 1.35rem; max-width: 14ch; }

.case-card:hover .case-visual .pmini { transform: translateY(-10px) scale(1.01); }

.case-body {
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
}

.case-body .cat { font-size: 0.85rem; font-weight: 800; color: var(--violet); }

.case-body h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.case-body > p {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 1.02rem;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.case-stats li {
  border-radius: 16px;
  background: var(--bg-2);
  padding: 1rem 1.1rem;
}

.case-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-stats span { font-size: 0.82rem; font-weight: 600; color: var(--ink-3); line-height: 1.3; display: block; margin-top: 0.2rem; }

.case-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }

.case-tags span {
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* Siatka projektów (dziedziczy .work-grid i .project-card z home.css) */
.portfolio-grid { margin-top: clamp(2rem, 4vw, 3rem); }

html.js .project-card.is-hidden { display: none; }

html.js .project-card.pop-in { animation: pop-in 0.55s var(--ease-out) both; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Jak mierzymy efekty */
.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.measure {
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.8rem 1.7rem;
}

.measure i {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.measure b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.measure p { font-size: 0.95rem; color: var(--ink-3); }

/* ---------- Wspólny pas CTA ---------- */

.cta-band {
  position: relative;
  text-align: center;
  border-radius: calc(var(--r-card) + 8px);
  background: var(--dark);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.4);
  filter: blur(110px);
}

.cta-band h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  position: relative;
  margin: 1.1rem auto 0;
  color: var(--on-dark-2);
  font-size: 1.08rem;
  max-width: 52ch;
}

.cta-band .btn { position: relative; margin-top: 2.2rem; }

/* ============================================================
   PODSTRONA: O NAS
   ============================================================ */

/* Wizual w nagłówku (kolaż zdjęć + odznaka liczbowa) */
.about-hero-visual {
  position: relative;
  max-width: 460px;
  margin-left: auto;
}

.abouth-photo {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 0.92;
  box-shadow: var(--shadow-lg);
}

.abouth-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }

.abouth-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.34), rgba(37, 99, 235, 0.28));
  mix-blend-mode: multiply;
}

.abouth-badge {
  position: absolute;
  bottom: -6%;
  left: -8%;
  display: flex;
  gap: 1.4rem;
  padding: 1.1rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

html.js .abouth-badge { animation: floaty-soft 6.5s ease-in-out infinite; --rot: -2deg; }

.abouth-badge div { text-align: center; }

.abouth-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.abouth-badge span { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); }

.abouth-badge .sep { width: 1px; background: var(--border); align-self: stretch; }

.abouth-tag {
  position: absolute;
  top: 7%;
  right: -6%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6em 1.05em;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  z-index: 2;
}

html.js .abouth-tag { animation: floaty-soft 5.5s ease-in-out infinite; --rot: 2deg; animation-delay: 1.2s; }

.abouth-tag i { color: #0d8a53; font-size: 1.1rem; }

/* Manifest / misja */
.manifesto {
  max-width: 980px;
}

.manifesto .kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--violet);
  margin-bottom: 1.2rem;
}

.manifesto p.big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.manifesto p.sub {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  color: var(--ink-3);
  max-width: 62ch;
}

.founder-sign {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.founder-sign .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  flex: none;
}

.founder-sign b { display: block; color: var(--ink); font-size: 1rem; }
.founder-sign span { font-size: 0.88rem; color: var(--ink-3); }

/* Wartości */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.9rem 1.7rem 1.7rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.28);
}

.value-card:hover::before { transform: scaleX(1); }

.value-card .vc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink-3);
  opacity: 0.6;
}

.value-card i {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--violet);
  font-size: 1.6rem;
  margin: 0.9rem 0 1.1rem;
  transition: transform 0.45s var(--ease-out);
}

.value-card:hover i { transform: scale(1.08) rotate(-4deg); }

.value-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

.value-card p { font-size: 0.95rem; color: var(--ink-3); }

/* Oś czasu */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124,58,237,.15), rgba(37,99,235,.5), rgba(124,58,237,.15));
}

.tl-item { position: relative; padding-top: 4.2rem; }

.tl-dot {
  position: absolute;
  top: 15px;
  left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.12);
  z-index: 1;
}

.tl-item .year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.tl-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }

.tl-item p { font-size: 0.92rem; color: var(--ink-3); }

/* Zespół */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.member-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform 0.6s var(--ease-out), filter 0.5s;
}

.member:hover .member-photo img { transform: scale(1.05); filter: grayscale(0.35); }

.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(124, 58, 237, 0.28));
  mix-blend-mode: multiply;
}

.member-body { padding: 1.2rem 1.4rem 1.4rem; }

.member-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.member-body span { font-size: 0.9rem; color: var(--violet); font-weight: 600; }

.member-body p { font-size: 0.9rem; color: var(--ink-3); margin-top: 0.6rem; }

/* ---------- Responsywność podstron ---------- */

@media (max-width: 1080px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .server-stack { margin: 0 auto; }
  .about-hero-visual { margin: 0 auto; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 320px; }
  .measure-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(124,58,237,.15), rgba(37,99,235,.5), rgba(124,58,237,.15)); }
  .tl-item { padding-top: 0; padding-left: 3rem; padding-bottom: 2.2rem; }
  .tl-dot { top: 2px; }
}

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .migrate-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .case-stats { grid-template-columns: 1fr; }
  .case-visual { min-height: 260px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

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

/* ---------- Strony prawne (Regulamin / Polityka prywatności) ---------- */

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.8fr 2.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.legal-toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 800;
  margin-bottom: 1rem;
}

.legal-toc ol {
  display: grid;
  gap: 0.55rem;
  counter-reset: toc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li { counter-increment: toc; }

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--violet);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  flex: none;
}

.legal-toc a:hover { color: var(--ink); padding-left: 4px; }

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--r-card) + 4px);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.legal-content section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
}

.legal-content h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.legal-content h2 .lc-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-btn);
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.4rem 0 0.6rem;
}

.legal-content p {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 0.99rem;
  max-width: 72ch;
}

.legal-content p:first-of-type { margin-top: 0; }

.legal-content ul,
.legal-content ol.legal-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
  padding-left: 1.3rem;
}

.legal-content ul { list-style: disc; }
.legal-content ol.legal-list { list-style: decimal; }

.legal-content li { color: var(--ink-2); font-size: 0.99rem; max-width: 70ch; }

.legal-content strong { color: var(--ink); font-weight: 700; }

.legal-content a.inline-link {
  color: var(--violet);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--r-card);
  background: var(--bg-2);
}

.legal-cta p { margin: 0; font-weight: 600; color: var(--ink); font-size: 1rem; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
