.ebph-section,
.ebph-section * {
  box-sizing: border-box;
}

.ebph-section {
  --ebph-primary: #3A35F4;
  --ebph-yellow: #F6EA51;
  --ebph-heading: #18214D;
  --ebph-text: #4B567C;
  --ebph-soft: #F7F8FD;
  --ebph-card: #FFFFFF;
  --ebph-line: #D9DEED;
  --ebph-shadow: 0 25px 60px rgba(24, 33, 77, 0.10);
  --ebph-radius: 30px;
  position: relative;
  width: 100%;
  padding: 64px 0 44px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ebph-soft) 100%);
  overflow: hidden;
  color: var(--ebph-text);
  isolation: isolate;
}

.ebph-section svg {
  display: block;
  max-width: 100%;
}

.ebph-container {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ebph-heading,
.ebph-pricing-row,
.ebph-button-wrap {
  position: relative;
  z-index: 3;
}

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

.ebph-title {
  margin: 0;
  color: var(--ebph-heading);
  font-size: clamp(48px, 5.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.ebph-title p {
  margin: 0;
}

.ebph-title span {
  position: relative;
  display: inline-block;
}

.ebph-title span::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 44%;
  width: 32px;
  height: 16px;
  border-top: 5px solid var(--ebph-yellow);
  border-right: 5px solid var(--ebph-yellow);
  border-radius: 2px 10px 0 0;
  transform: rotate(16deg);
}

.ebph-subtitle {
  margin: 24px auto 0;
  max-width: 940px;
  font-size: clamp(18px, 1.75vw, 25px);
  line-height: 1.45;
  color: var(--ebph-text);
}

.ebph-pricing-row {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ebph-offer-card {
  position: relative;
  min-width: 0;
  min-height: 166px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(58,53,244,.07);
  border-radius: var(--ebph-radius);
  box-shadow: var(--ebph-shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .28s ease, box-shadow .28s ease;
}

.ebph-offer-card:hover {
  box-shadow: 0 30px 70px rgba(24,33,77,.14);
}

.ebph-icon-wrap {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ebph-heading);
  position: relative;
  z-index: 2;
}

.ebph-icon-wrap--blue {
  background: linear-gradient(180deg, #eef1ff 0%, #e7ebff 100%);
}

.ebph-icon-wrap--yellow {
  background: linear-gradient(180deg, #fff9d5 0%, #fff2ad 100%);
}

.ebph-icon-wrap svg {
  width: 40px !important;
  height: 40px !important;
}

.ebph-offer-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.ebph-offer-content h3 {
  margin: 0 0 8px;
  color: var(--ebph-heading);
  font-size: clamp(25px, 2.1vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.ebph-offer-content p {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--ebph-text);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.35;
}

.ebph-offer-content strong {
  color: var(--ebph-primary);
  font-size: 1.42em;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.ebph-card-accent {
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 190px;
  height: 150px;
  border-radius: 50%;
  z-index: 0;
}

.ebph-card-accent--left {
  background: radial-gradient(circle, rgba(58,53,244,.16) 0%, rgba(58,53,244,0) 72%);
}

.ebph-card-accent--right {
  background: radial-gradient(circle, rgba(246,234,81,.42) 0%, rgba(246,234,81,0) 72%);
}

.ebph-separator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ebph-separator-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--ebph-line), transparent);
}

.ebph-separator-label {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(58,53,244,.07);
  box-shadow: 0 10px 26px rgba(24,33,77,.07);
  color: var(--ebph-heading);
  font-size: 18px;
  font-weight: 700;
}

.ebph-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.ebph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 44px;
  min-width: 320px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5578ff 0%, var(--ebph-primary) 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(58,53,244,.27);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.ebph-button:hover,
.ebph-button:focus {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(58,53,244,.34);
  filter: saturate(1.05);
}

.ebph-button-arrow,
.ebph-button-arrow svg {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px;
}

/* Dekoracje tylko na szerokich ekranach. Są za treścią i nie mogą jej zasłaniać. */
.ebph-decoration {
  position: absolute;
  top: 52px;
  width: 280px;
  height: 250px;
  z-index: 0;
  pointer-events: none;
  opacity: .82;
}

.ebph-decoration--left { left: -58px; }
.ebph-decoration--right { right: -58px; }

.ebph-circle {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,53,244,.09), rgba(58,53,244,0) 70%);
}

.ebph-card-illus {
  position: absolute;
  left: 22px;
  top: 44px;
  width: 220px;
  height: 138px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 38px rgba(24,33,77,.08);
  transform: rotate(-6deg);
  animation: ebph-float-left 7s ease-in-out infinite;
}

.ebph-dot {
  position: absolute;
  top: 16px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.ebph-dot--red { left: 16px; background: #ff6b6b; }
.ebph-dot--yellow { left: 34px; background: #f2c94c; }
.ebph-dot--green { left: 52px; background: #78cf72; }

.ebph-cart-icon {
  position: absolute;
  left: 24px;
  top: 58px;
  width: 48px;
  height: 48px;
  color: #6f87ff;
}
.ebph-cart-icon svg { width: 48px !important; height: 48px !important; }

.ebph-lines {
  position: absolute;
  left: 92px;
  right: 20px;
  top: 52px;
  display: grid;
  gap: 11px;
}
.ebph-lines span { height: 8px; border-radius: 999px; background: #e4e9fb; }
.ebph-lines span:nth-child(2) { width: 84%; }
.ebph-lines span:nth-child(3) { width: 70%; }

.ebph-dashed-line {
  position: absolute;
  left: 118px;
  top: 126px;
  width: 150px !important;
  height: 120px !important;
}
.ebph-dashed-line path {
  fill: none;
  stroke: #7a91ff;
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: ebph-dash 9s linear infinite;
}

.ebph-tag-illus {
  position: absolute;
  right: 18px;
  top: 34px;
  width: 220px;
  height: 170px;
}

.ebph-bag {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 150px;
  height: 135px;
  border-radius: 26px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 38px rgba(24,33,77,.08);
  color: #7a91ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  animation: ebph-float-right 7.4s ease-in-out infinite;
}
.ebph-bag svg { width: 72px !important; height: 72px !important; }

.ebph-tag {
  position: absolute;
  right: -2px;
  top: 58px;
  width: 66px;
  height: 82px;
  border-radius: 16px;
  background: var(--ebph-yellow);
  box-shadow: 0 12px 24px rgba(246,234,81,.28);
  color: var(--ebph-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(9deg);
}
.ebph-tag::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.ebph-tag svg { width: 32px !important; height: 32px !important; margin-top: 10px; }

.ebph-rays {
  position: absolute;
  left: 0;
  top: 70px;
  width: 80px;
  height: 60px;
}
.ebph-rays span {
  position: absolute;
  width: 5px;
  height: 30px;
  border-radius: 5px;
  background: #6d86ff;
}
.ebph-rays span:nth-child(1) { left: 8px; top: 18px; transform: rotate(-58deg); }
.ebph-rays span:nth-child(2) { left: 32px; top: 2px; transform: rotate(-18deg); }
.ebph-rays span:nth-child(3) { left: 56px; top: 17px; transform: rotate(24deg); }

.ebph-animate {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.ebph-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.elementor-editor-active .ebph-animate,
.elementor-editor-preview .ebph-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@keyframes ebph-float-left {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}
@keyframes ebph-float-right {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}
@keyframes ebph-dash { to { stroke-dashoffset: -96; } }

@media (max-width: 1450px) {
  .ebph-decoration { display: none; }
}

@media (max-width: 1180px) {
  .ebph-section { padding-top: 52px; }
  .ebph-pricing-row {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
  .ebph-separator { flex-direction: row; gap: 12px; }
  .ebph-separator-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ebph-line), transparent);
  }
}

@media (max-width: 768px) {
  .ebph-section { padding: 42px 0 34px; }
  .ebph-container { padding: 0 16px; }
  .ebph-title { font-size: clamp(38px, 10vw, 58px); }
  .ebph-subtitle { margin-top: 18px; font-size: 18px; }
  .ebph-pricing-row { margin-top: 30px; }
  .ebph-offer-card { min-height: 0; padding: 22px; gap: 18px; }
  .ebph-icon-wrap { width: 76px; height: 76px; min-width: 76px; }
  .ebph-icon-wrap svg { width: 34px !important; height: 34px !important; }
  .ebph-offer-content h3 { font-size: 26px; }
  .ebph-offer-content p { font-size: 18px; }
  .ebph-button-wrap { margin-top: 26px; }
  .ebph-button { min-width: 0; width: min(100%, 380px); padding: 18px 28px; font-size: 21px; }
}

@media (max-width: 520px) {
  .ebph-title { font-size: 36px; line-height: 1.05; }
  .ebph-title span::after { right: -16px; width: 20px; height: 10px; border-width: 3px; }
  .ebph-subtitle { font-size: 17px; }
  .ebph-offer-card { align-items: flex-start; padding: 20px 18px; }
  .ebph-icon-wrap { width: 66px; height: 66px; min-width: 66px; }
  .ebph-offer-content h3 { font-size: 22px; }
  .ebph-offer-content p { font-size: 16px; gap: 5px; }
  .ebph-separator-label { width: 46px; height: 46px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ebph-section *,
  .ebph-section *::before,
  .ebph-section *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ebph-animate { opacity: 1 !important; transform: none !important; }
}
