/**
 * WDS — redesign podstron ofertowych (/oferta/*)
 * Paleta i układ z mockupu Pencil (fiolet/cyan na #07080D).
 */

body.wds-page-oferta-sub {
  --wds-off-bg: #07080d;
  --wds-off-surface: #0c0e16;
  --wds-off-card: #10131c;
  --wds-off-border: #1e2433;
  --wds-off-text: #f2f4f8;
  --wds-off-muted: #9aa6b8;
  --wds-off-cyan: #3ee6e0;
  --wds-off-violet: #7c5cff;
  --wds-off-ink: #0a0c12;
  --wds-off-grad: linear-gradient(102deg, #7c5cff 14%, #3ee6e0 86%);
  --wds-off-font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --wds-off-font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

body.wds-page-oferta-sub .content-wrap,
body.wds-page-oferta-sub .entry-content-wrap,
body.wds-page-oferta-sub .entry-content,
body.wds-page-oferta .content-wrap,
body.wds-page-oferta .entry-content-wrap,
body.wds-page-oferta .entry-content,
body.wds-page-o-mnie .content-wrap,
body.wds-page-o-mnie .entry-content,
body.wds-page-kontakt .content-wrap,
body.wds-page-kontakt .entry-content,
body.wds-page-portfolio .content-wrap,
body.wds-page-portfolio .entry-content,
body.wds-page-case-studies .content-wrap,
body.wds-page-case-studies .entry-content,
body.wds-page-referencje .content-wrap,
body.wds-page-referencje .entry-content {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

body.wds-page-oferta-sub .entry-hero,
body.wds-page-oferta-sub .entry-header,
body.wds-page-oferta-sub .entry-title-wrap {
  display: none !important;
}

.wds-offer-rd {
  background: var(--wds-off-bg);
  color: var(--wds-off-muted);
  font-family: var(--wds-off-font-body);
  overflow-x: clip;
  overflow-y: visible;
}

.wds-offer-rd *,
.wds-offer-rd *::before,
.wds-offer-rd *::after {
  box-sizing: border-box;
}

.wds-offer-rd__inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.wds-offer-rd h1,
.wds-offer-rd h2,
.wds-offer-rd h3,
.wds-offer-rd .wds-offer-rd__display {
  font-family: var(--wds-off-font-display);
  color: var(--wds-off-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.wds-offer-rd a {
  color: inherit;
  text-decoration: none;
}

/* —— Hero —— */
.wds-offer-rd__hero {
  position: relative;
  padding: 56px 0 40px;
}

.wds-offer-rd__hero::before {
  content: "";
  position: absolute;
  inset: -15% -5% auto -5%;
  width: auto;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 70% at 18% 35%, rgba(124, 92, 255, 0.32), transparent 68%),
    radial-gradient(ellipse 50% 65% at 78% 28%, rgba(62, 230, 224, 0.2), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wds-offer-rd__crumb {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #b0bac9;
}

.wds-offer-rd__crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wds-offer-rd__crumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #b0bac9;
}

.wds-offer-rd__crumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: #6b7689;
  font-weight: 400;
  speak: none;
}

.wds-offer-rd__crumb a {
  color: #c5cedb !important;
  -webkit-text-fill-color: #c5cedb !important;
  text-decoration: none;
  font-weight: 500;
}

.wds-offer-rd__crumb a:hover {
  color: var(--wds-off-cyan) !important;
  -webkit-text-fill-color: var(--wds-off-cyan) !important;
}

.wds-offer-rd__crumb [aria-current="page"] {
  color: #f2f4f8 !important;
  -webkit-text-fill-color: #f2f4f8 !important;
  font-weight: 600;
}

.wds-offer-rd__hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.wds-offer-rd__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(62, 230, 224, 0.35);
  background: rgba(62, 230, 224, 0.06);
  box-shadow: 0 0 24px rgba(62, 230, 224, 0.12);
  margin: 0 0 18px;
}

.wds-offer-rd__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wds-off-cyan);
  box-shadow: 0 0 10px var(--wds-off-cyan);
}

.wds-offer-rd__badge-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wds-off-cyan);
}

.wds-offer-rd__h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
  margin: 0 0 18px;
}

.wds-offer-rd__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--wds-off-muted);
  margin: 0 0 28px;
  max-width: 540px;
}

.wds-offer-rd__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
}

.wds-offer-rd__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  font-family: var(--wds-off-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.wds-offer-rd__btn--primary {
  background: var(--wds-off-grad) !important;
  background-color: #3ee6e0 !important;
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.28);
}

.wds-offer-rd__btn--primary:hover,
.wds-offer-rd__btn--primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(62, 230, 224, 0.28);
  color: #0a0c12 !important;
  -webkit-text-fill-color: #0a0c12 !important;
}

.wds-offer-rd__btn--ghost {
  background: transparent !important;
  color: #f2f4f8 !important;
  -webkit-text-fill-color: #f2f4f8 !important;
  border: 1px solid #2a3347 !important;
}

.wds-offer-rd__btn--ghost:hover,
.wds-offer-rd__btn--ghost:focus {
  border-color: var(--wds-off-cyan) !important;
  color: #f2f4f8 !important;
  -webkit-text-fill-color: #f2f4f8 !important;
}

.wds-offer-rd__visual {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0c14;
  border: 1px solid var(--wds-off-border);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.wds-offer-rd__visual::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 70% 30%, rgba(124, 92, 255, 0.45), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(62, 230, 224, 0.25), transparent 40%);
  animation: wds-offer-glow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.wds-offer-rd__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

.wds-offer-rd__visual--form {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.wds-offer-rd__visual--form::before {
  display: none;
}

.wds-offer-rd__visual--form .wds-hero-form,
.wds-offer-rd__visual--form > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

.wds-offer-rd--home .wds-offer-rd__hero {
  padding-top: 40px;
}

.wds-offer-rd__hero--center {
  text-align: center;
}

.wds-offer-rd__hero--center .wds-offer-rd__badge {
  margin-left: auto;
  margin-right: auto;
}

.wds-offer-rd__hero--center .wds-offer-rd__h1 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.wds-offer-rd__hero--center .wds-offer-rd__lead {
  margin-left: auto;
  margin-right: auto;
}

.wds-offer-rd__hero--center .wds-offer-rd__cta-row {
  justify-content: center;
}

.wds-offer-rd__hero--center .wds-offer-rd__crumb ol {
  justify-content: center;
}

body.home .entry-hero,
body.home .entry-header,
body.front-page .entry-hero,
body.front-page .entry-header {
  display: none !important;
}

body.home .content-wrap,
body.home .entry-content-wrap,
body.home .entry-content,
body.front-page .content-wrap,
body.front-page .entry-content-wrap,
body.front-page .entry-content {
  max-width: none !important;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@keyframes wds-offer-glow {
  from { transform: scale(1) translate(0, 0); opacity: 0.85; }
  to { transform: scale(1.08) translate(-2%, 3%); opacity: 1; }
}

.wds-offer-rd__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding: 22px 0 0;
  border-top: 1px solid var(--wds-off-border);
}

.wds-offer-rd__stat-value {
  display: block;
  font-family: var(--wds-off-font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--wds-off-cyan);
  line-height: 1.1;
  margin-bottom: 4px;
}

.wds-offer-rd__stat-label {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--wds-off-muted);
}

/* —— Section chrome —— */
.wds-offer-rd__section {
  padding: 72px 0;
}

.wds-offer-rd__section--alt {
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.55), transparent);
}

.wds-offer-rd__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wds-off-violet);
}

.wds-offer-rd__h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.wds-offer-rd__intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 36px;
}

.wds-offer-rd__section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 36px;
}

.wds-offer-rd__section-head .wds-offer-rd__intro {
  margin: 0;
  max-width: 400px;
}

/* —— Service cards —— */
.wds-offer-rd__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wds-offer-rd__card {
  background: var(--wds-off-card);
  border: 1px solid var(--wds-off-border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wds-offer-rd__card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.wds-offer-rd__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(62, 230, 224, 0.18));
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--wds-off-cyan);
}

.wds-offer-rd__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wds-offer-rd__card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.wds-offer-rd__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wds-off-muted);
}

/* —— Process —— */
.wds-offer-rd__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.wds-offer-rd__step {
  padding: 8px 4px;
}

.wds-offer-rd__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(62, 230, 224, 0.1);
  border: 1px solid rgba(62, 230, 224, 0.35);
  color: var(--wds-off-cyan);
  font-family: var(--wds-off-font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.wds-offer-rd__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wds-offer-rd__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

/* —— SEO / content + sidebar —— */
.wds-offer-rd__seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.wds-offer-rd__prose p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.wds-offer-rd__prose h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.wds-offer-rd__checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.wds-offer-rd__checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}

.wds-offer-rd__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  margin-top: 1px;
}

.wds-offer-rd__check svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.wds-offer-rd__quote {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(62, 230, 224, 0.06));
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.12);
}

.wds-offer-rd__quote p {
  margin: 0;
  font-family: var(--wds-off-font-display);
  font-size: 17px;
  line-height: 1.5;
  font-style: italic;
  color: var(--wds-off-text);
}

.wds-offer-rd__side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.wds-offer-rd__toc,
.wds-offer-rd__side-cta,
.wds-offer-rd__contact-mini {
  background: var(--wds-off-card);
  border: 1px solid var(--wds-off-border);
  border-radius: 16px;
  padding: 20px;
}

.wds-offer-rd__toc h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}

.wds-offer-rd__toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--wds-off-border);
  font-size: 14px;
  color: var(--wds-off-text);
  transition: color 0.15s ease;
}

.wds-offer-rd__toc a:first-of-type {
  border-top: none;
  padding-top: 0;
}

.wds-offer-rd__toc a:hover {
  color: var(--wds-off-cyan);
}

.wds-offer-rd__side-cta {
  background: linear-gradient(160deg, #141828 0%, #0c1020 55%, #10182a 100%);
  border-color: rgba(124, 92, 255, 0.35);
}

.wds-offer-rd__side-cta h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wds-offer-rd__side-cta p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.wds-offer-rd__side-cta .wds-offer-rd__btn {
  width: 100%;
}

.wds-offer-rd__contact-mini {
  display: grid;
  gap: 12px;
}

.wds-offer-rd__contact-mini a,
.wds-offer-rd__contact-mini span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--wds-off-muted);
}

.wds-offer-rd__contact-mini a:hover {
  color: var(--wds-off-cyan);
}

.wds-offer-rd__contact-mini svg {
  width: 16px;
  height: 16px;
  stroke: var(--wds-off-cyan);
  fill: none;
  stroke-width: 1.75;
  flex-shrink: 0;
}

/* —— FAQ —— */
.wds-offer-rd__faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wds-offer-rd__faq {
  background: var(--wds-off-card);
  border: 1px solid var(--wds-off-border);
  border-radius: 14px;
  padding: 4px 18px 14px;
}

.wds-offer-rd__faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 8px;
  font-family: var(--wds-off-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--wds-off-text);
  line-height: 1.35;
}

.wds-offer-rd__faq summary::-webkit-details-marker {
  display: none;
}

.wds-offer-rd__faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--wds-off-muted);
  border-bottom: 2px solid var(--wds-off-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.wds-offer-rd__faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.wds-offer-rd__faq p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--wds-off-muted);
}

/* —— Final CTA —— */
.wds-offer-rd__final {
  padding: 24px 0 88px;
}

.wds-offer-rd__final-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 48px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(62, 230, 224, 0.12), transparent 40%),
    #0c0f1a;
}

.wds-offer-rd__final-box h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 12px;
}

.wds-offer-rd__final-box > p {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
}

.wds-offer-rd__final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.wds-offer-rd__back {
  text-align: center;
  margin: 28px 0 0;
  font-size: 15px;
}

.wds-offer-rd__back a {
  color: var(--wds-off-cyan);
  font-weight: 600;
}

.wds-offer-rd__back a:hover {
  text-decoration: underline;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .wds-offer-rd__hero-grid,
  .wds-offer-rd__seo-grid {
    grid-template-columns: 1fr;
  }

  .wds-offer-rd__visual {
    order: 0;
    max-width: 560px;
    width: 100%;
  }

  .wds-offer-rd__side {
    position: static;
  }

  .wds-offer-rd__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wds-offer-rd__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wds-offer-rd__inner {
    width: calc(100% - 32px);
  }

  .wds-offer-rd__hero {
    padding-top: 28px;
  }

  .wds-offer-rd__stats,
  .wds-offer-rd__cards,
  .wds-offer-rd__steps,
  .wds-offer-rd__faq-grid {
    grid-template-columns: 1fr;
  }

  .wds-offer-rd__section {
    padding: 52px 0;
  }

  .wds-offer-rd__final-box {
    padding: 36px 20px;
  }

  .wds-offer-rd__cta-row .wds-offer-rd__btn {
    width: 100%;
    white-space: normal;
  }

  .wds-offer-rd__crumb {
    font-size: 12px;
  }

  .wds-offer-rd__crumb li + li::before {
    margin: 0 6px;
  }
}
