:root {
  --ped-navy: #132948;
  --ped-navy-2: #203c62;
  --ped-gold: #c69255;
  --ped-gold-dark: #a56f35;
  --ped-cream: #f8f3ec;
  --ped-paper: #fffdf9;
  --ped-peach: #f1ddd0;
  --ped-blue: #caddef;
  --ped-sand: #ead8bf;
  --ped-ink: #172235;
  --ped-muted: #5e6672;
  --ped-line: rgba(19, 41, 72, 0.14);
  --ped-shadow: 0 24px 70px rgba(19, 41, 72, 0.12);
}

html {
  scroll-behavior: smooth;
}

body.ped-canvas {
  margin: 0;
  background: var(--ped-paper);
  color: var(--ped-ink);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

body.ped-canvas * {
  box-sizing: border-box;
}

.ped-preview-switcher {
  position: sticky;
  z-index: 99999;
  top: 0;
  display: flex;
  min-height: 62px;
  padding: 8px max(16px, calc((100vw - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(13, 31, 55, 0.96);
  color: #fff;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 10px 32px rgba(10, 26, 48, 0.18);
  backdrop-filter: blur(14px);
}

.ped-preview-switcher__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ped-preview-switcher__buttons {
  display: flex;
  padding: 4px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.ped-preview-switcher__button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 17px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ped-preview-switcher__button:hover,
.ped-preview-switcher__button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.ped-preview-switcher__button.is-active {
  background: var(--ped-gold);
  color: #102440;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

.ped-page {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 7%, rgba(198, 146, 85, 0.08), transparent 24rem),
    var(--ped-paper);
}

.ped-page a {
  color: inherit;
}

.ped-page p {
  margin: 0 0 1em;
}

.ped-page p:last-child,
.ped-page ul:last-child {
  margin-bottom: 0;
}

.ped-page h1,
.ped-page h2,
.ped-page h3 {
  margin: 0;
  color: var(--ped-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ped-page .elementor-widget-heading .elementor-heading-title {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.ped-page .elementor-widget-text-editor,
.ped-page .elementor-widget-heading,
.ped-page .elementor-widget-image,
.ped-page .elementor-widget-button {
  margin: 0;
}

.ped-page .elementor-widget-text-editor > .elementor-widget-container {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.ped-hero-title,
.ped-section-title,
.ped-card-title,
.ped-manifesto-title {
  color: var(--ped-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ped-nav,
.ped-section {
  width: min(1180px, calc(100% - 44px)) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.ped-nav {
  min-height: 176px;
  padding: 10px 2px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ped-line);
}

.ped-logo {
  width: 180px !important;
  max-width: 180px !important;
  height: 154px;
  overflow: hidden;
  flex: 0 0 180px;
}

.ped-logo .elementor-widget-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ped-logo img {
  position: absolute;
  top: -124px;
  left: -110px;
  display: block;
  width: 410px !important;
  max-width: none !important;
  height: 410px;
  object-fit: contain;
}

.ped-nav-label {
  width: auto !important;
  color: var(--ped-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.ped-section {
  padding: clamp(70px, 8vw, 120px) clamp(20px, 4vw, 64px);
}

.ped-eyebrow {
  color: var(--ped-gold-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ped-eyebrow p {
  margin: 0 0 18px;
}

.ped-section-title {
  max-width: 870px;
  font-size: clamp(38px, 5vw, 68px);
}

.ped-section-intro {
  max-width: 780px;
  margin-top: 25px !important;
  color: var(--ped-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.ped-grid {
  width: 100% !important;
  gap: 22px;
  align-items: stretch;
}

.ped-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--ped-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(19, 41, 72, 0.06);
}

.ped-card-title {
  margin-bottom: 16px !important;
  font-size: clamp(25px, 3vw, 34px);
}

.ped-card-copy {
  color: #465064;
  font-size: 16px;
  line-height: 1.68;
}

.ped-card-copy ul {
  margin: 0;
  padding-left: 1.15em;
}

.ped-card-copy li {
  margin-bottom: 8px;
}

.ped-blue {
  background: var(--ped-blue);
}

.ped-peach {
  background: var(--ped-peach);
}

.ped-cream {
  background: var(--ped-cream);
}

.ped-sand {
  background: var(--ped-sand);
}

.ped-navy {
  border-color: var(--ped-navy);
  background: var(--ped-navy);
  color: #fff;
}

.ped-navy .ped-card-title,
.ped-navy .ped-card-copy {
  color: #fff;
}

.ped-button-row {
  width: 100% !important;
  gap: 12px;
  align-items: center;
}

.ped-button {
  width: auto !important;
}

.ped-button .elementor-button {
  min-height: 52px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.ped-button .elementor-button:hover {
  transform: translateY(-2px);
}

.ped-button-primary .elementor-button {
  background: var(--ped-navy) !important;
  color: #fff !important;
}

.ped-button-gold .elementor-button {
  background: var(--ped-gold) !important;
  color: #102440 !important;
}

.ped-button-outline .elementor-button {
  border-color: rgba(19, 41, 72, 0.35) !important;
  background: transparent !important;
  color: var(--ped-navy) !important;
}

.ped-button-light .elementor-button {
  background: #fff !important;
  color: var(--ped-navy) !important;
}

.ped-button-outline-light .elementor-button {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
  color: #fff !important;
}

.ped-hero {
  min-height: 720px;
  gap: clamp(35px, 6vw, 85px);
  align-items: center;
}

.ped-hero-copy,
.ped-hero-visual {
  width: 50% !important;
  min-width: 0;
}

.ped-hero-copy {
  z-index: 2;
}

.ped-hero-title {
  max-width: 720px;
  font-size: clamp(52px, 6.4vw, 88px);
}

.ped-hero-text {
  max-width: 650px;
  margin-top: 28px !important;
  color: #4f5b6c;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
}

.ped-lead {
  color: var(--ped-navy);
  font-size: 1.17em;
}

.ped-hero-copy .ped-button-row {
  margin-top: 28px;
}

.ped-hero-visual {
  position: relative;
  align-items: center;
  justify-content: center;
}

.ped-hero-tree {
  position: absolute !important;
  z-index: 0;
  right: -9%;
  bottom: -4%;
  width: min(92%, 460px) !important;
  opacity: 0.22;
  pointer-events: none;
  filter: saturate(0.88);
  transform: rotate(1deg);
}

.ped-hero-tree img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ped-hero-visual > .ped-portrait,
.ped-hero-visual > .ped-photo-note {
  position: relative;
  z-index: 1;
}

.ped-portrait {
  width: min(100%, 470px) !important;
}

.ped-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 46% 46% 28px 28px;
  filter: sepia(0.08) contrast(1.04);
  box-shadow: var(--ped-shadow);
}

.ped-photo-note {
  width: auto !important;
  margin: -28px 16px 0 auto !important;
  padding: 15px 22px;
  border: 1px solid rgba(198, 146, 85, 0.45);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ped-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 35px rgba(19, 41, 72, 0.1);
}

.ped-manifesto {
  min-height: 430px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 42px;
  background:
    linear-gradient(rgba(248, 243, 236, 0.84), rgba(248, 243, 236, 0.9)),
    repeating-linear-gradient(105deg, rgba(198, 146, 85, 0.12) 0 1px, transparent 1px 20px);
}

.ped-quote-mark {
  height: 60px;
  color: var(--ped-gold);
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
}

.ped-manifesto-title {
  max-width: 900px;
  font-size: clamp(40px, 5.5vw, 72px);
  font-style: italic;
}

.ped-paths,
.ped-about,
.ped-support,
.ped-process,
.ped-pricing,
.ped-reviews,
.ped-certs {
  gap: 30px;
}

.ped-path-grid,
.ped-about-grid,
.ped-support-grid,
.ped-process-grid,
.ped-pricing-grid,
.ped-reviews-grid,
.ped-cert-grid {
  margin-top: 28px;
}

.ped-path-card {
  width: calc(50% - 11px) !important;
  flex: 1 1 420px;
  min-height: 470px;
  padding: clamp(34px, 5vw, 58px);
}

.ped-student-card {
  background: var(--ped-peach);
}

.ped-mentor-card {
  border-color: var(--ped-navy);
  background: var(--ped-navy);
  color: #fff;
}

.ped-mentor-card .ped-card-title,
.ped-mentor-card .ped-card-copy {
  color: #fff;
}

.ped-about-grid > .ped-card {
  width: calc(50% - 11px) !important;
  flex: 1 1 420px;
}

.ped-about-grid > .ped-card:nth-child(4) {
  min-height: 420px;
}

.ped-about-grid > .ped-card:last-child {
  width: 100% !important;
  flex-basis: 100%;
}

.ped-feature-split,
.ped-portrait-break {
  gap: clamp(35px, 6vw, 75px);
  align-items: center;
  border-radius: 40px;
  background: var(--ped-cream);
}

.ped-feature-copy,
.ped-feature-split > .ped-infographic,
.ped-portrait-break > .ped-portrait {
  width: 50% !important;
  min-width: 0;
}

.ped-feature-copy {
  gap: 0;
}

.ped-feature-copy .ped-button {
  margin-top: 28px;
}

.ped-infographic img {
  width: 100%;
  max-height: 740px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--ped-shadow);
}

.ped-support {
  background: linear-gradient(180deg, #fff 0%, #f5f8fb 100%);
  border-radius: 42px;
}

.ped-support-grid > .ped-card {
  width: calc(50% - 11px) !important;
  flex: 1 1 410px;
}

.ped-process {
  max-width: none !important;
  width: 100% !important;
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 64px));
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 64px));
  background: var(--ped-navy);
  color: #fff;
}

.ped-process .ped-section-title,
.ped-process .ped-eyebrow {
  color: #fff;
}

.ped-process-grid > .ped-step {
  width: calc(25% - 17px) !important;
  flex: 1 1 220px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.ped-step-flip {
  min-height: 300px;
  padding: 0 !important;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  perspective: 1100px;
  cursor: pointer;
}

.ped-step-inner {
  position: relative;
  width: 100% !important;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ped-step-face {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  min-height: 300px;
  padding: 30px;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.13);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ped-step-back {
  justify-content: flex-start;
  gap: 12px;
  background: #28466d;
  transform: rotateY(180deg);
}

.ped-step-flip.is-flipped .ped-step-inner {
  transform: rotateY(180deg);
}

.ped-step-flip:focus-visible {
  border-radius: 24px;
  outline: 3px solid #f0c793;
  outline-offset: 5px;
}

.ped-step-number {
  color: #f0c793;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.ped-step-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.ped-step-back .ped-card-title {
  font-size: 26px;
}

.ped-step-back .ped-card-copy {
  font-size: 15px;
  line-height: 1.58;
}

@media (hover: hover) {
  .ped-step-flip:hover .ped-step-inner {
    transform: rotateY(180deg);
  }
}

.ped-step .ped-card-title,
.ped-step .ped-card-copy {
  color: #fff;
}

.ped-pricing-grid > .ped-price-card {
  width: calc(50% - 11px) !important;
  min-height: 420px;
  flex: 1 1 420px;
}

.ped-price-card:nth-child(2) {
  background: var(--ped-blue);
}

.ped-price-card:nth-child(3) {
  background: var(--ped-peach);
}

.ped-price-card:nth-child(4) {
  background: var(--ped-navy);
}

.ped-price-card:nth-child(4) .ped-card-title,
.ped-price-card:nth-child(4) .ped-card-copy {
  color: #fff;
}

.ped-price strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ped-gold-dark);
  font-family: Georgia, serif;
  font-size: 31px;
}

.ped-price-card:nth-child(4) .ped-price strong {
  color: #f0c793;
}

.ped-reviews {
  background: var(--ped-blue);
  border-radius: 42px;
}

.ped-reviews-grid > .ped-review-card {
  width: calc(33.333% - 15px) !important;
  flex: 1 1 280px;
}

.ped-review-card {
  position: relative;
  padding-top: 60px;
}

.ped-review-card::before {
  position: absolute;
  top: 15px;
  left: 30px;
  content: "“";
  color: var(--ped-gold);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.ped-reviews .ped-button-row {
  margin-top: 8px;
}

.ped-cert-grid {
  align-items: flex-start;
}

.ped-cert-grid > .ped-certificate {
  width: calc(25% - 17px) !important;
  flex: 1 1 220px;
  padding: 10px;
  border: 1px solid var(--ped-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(19, 41, 72, 0.08);
}

.ped-certificate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px;
  cursor: zoom-in;
  transition: transform 220ms ease;
}

.ped-certificate .elementor-widget-container {
  overflow: hidden;
  border-radius: 11px;
}

.ped-certificate:hover img,
.ped-certificate:focus-within img {
  transform: scale(1.07);
}

.ped-certs > .ped-button {
  align-self: flex-start;
  margin-top: 8px;
}

.ped-contact {
  max-width: none !important;
  width: 100% !important;
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 64px));
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 64px));
  background:
    radial-gradient(circle at 80% 25%, rgba(202, 221, 239, 0.23), transparent 23rem),
    radial-gradient(circle at 15% 100%, rgba(198, 146, 85, 0.24), transparent 18rem),
    var(--ped-navy);
  color: #fff;
}

.ped-contact .ped-section-title,
.ped-contact .ped-eyebrow {
  color: #fff;
}

.ped-contact .ped-section-title {
  max-width: 850px;
}

.ped-contact-copy {
  max-width: 700px;
  margin-top: 26px !important;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.ped-contact .ped-button-row {
  margin-top: 25px;
}

/* Wariant 1 — jasny, spokojny i redakcyjny. */
.ped-v1 .ped-hero-classic {
  position: relative;
}

.ped-v1 .ped-hero-classic::before {
  display: none;
}

.ped-v1 .ped-about-classic {
  background: transparent;
}

/* Wariant 2 — odważniejszy motyw mapy, orbit i połączeń. */
.ped-v2 {
  background:
    radial-gradient(circle at 10% 14%, rgba(202, 221, 239, 0.24), transparent 23rem),
    #fbf8f3;
}

.ped-v2 .ped-hero-original {
  position: relative;
  max-width: none !important;
  width: 100% !important;
  min-height: 820px;
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 64px));
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 64px));
  overflow: hidden;
  background: var(--ped-navy);
  color: #fff;
}

.ped-v2 .ped-hero-original::before,
.ped-v2 .ped-hero-original::after {
  position: absolute;
  border: 1px solid rgba(198, 146, 85, 0.28);
  border-radius: 50%;
  content: "";
}

.ped-v2 .ped-hero-original::before {
  top: -240px;
  right: -90px;
  width: 720px;
  height: 720px;
}

.ped-v2 .ped-hero-original::after {
  right: 105px;
  bottom: -350px;
  width: 620px;
  height: 620px;
}

.ped-v2 .ped-hero-title,
.ped-v2 .ped-hero-original .ped-hero-text,
.ped-v2 .ped-hero-original .ped-eyebrow {
  color: #fff;
}

.ped-v2 .ped-hero-original .ped-hero-title {
  max-width: 670px;
}

.ped-v2 .ped-logo-light {
  margin-bottom: 42px;
  padding: 12px 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.ped-hero-orbit {
  position: relative;
}

.ped-hero-orbit::before,
.ped-hero-orbit::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
}

.ped-hero-orbit::before {
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(202, 221, 239, 0.42);
}

.ped-hero-orbit::after {
  width: 12px;
  height: 12px;
  transform: translate(205px, -175px);
  background: var(--ped-gold);
  box-shadow: -410px 145px 0 #caddf0, -120px 355px 0 #efd4bd;
}

.ped-infographic-orbit {
  z-index: 1;
  width: min(100%, 470px) !important;
  transform: rotate(1.5deg);
}

.ped-infographic-orbit img {
  max-height: 670px;
  border: 10px solid rgba(255, 255, 255, 0.1);
}

.ped-compass {
  z-index: 3;
  margin-top: -58px !important;
  padding-top: 48px;
  padding-bottom: 48px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--ped-shadow);
}

.ped-compass-grid {
  margin-top: 18px;
}

.ped-compass-grid > .ped-compass-card {
  position: relative;
  width: calc(33.333% - 15px) !important;
  flex: 1 1 280px;
  padding-top: 72px;
  border: 0;
  box-shadow: none;
}

.ped-compass-card::before {
  position: absolute;
  top: 25px;
  left: 34px;
  width: 28px;
  height: 28px;
  border: 5px solid var(--ped-gold);
  border-radius: 50%;
  content: "";
}

.ped-compass-card:nth-child(2)::before {
  border-color: #90b6da;
}

.ped-compass-card:nth-child(3)::before {
  border-color: #dcaa83;
}

.ped-v2 .ped-paths-original {
  max-width: none !important;
  width: 100% !important;
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 64px));
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 64px));
  background: linear-gradient(135deg, rgba(241, 221, 208, 0.75), rgba(202, 221, 239, 0.6));
}

.ped-v2 .ped-path-card {
  min-height: 430px;
  border-radius: 12px 80px 12px 12px;
}

.ped-quote-image {
  padding-top: 55px;
  padding-bottom: 55px;
}

.ped-handwritten-quote img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 38px;
  box-shadow: var(--ped-shadow);
}

.ped-v2 .ped-about-original {
  max-width: none !important;
  width: 100% !important;
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 64px));
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 64px));
  background: #f2e6da;
}

.ped-v2 .ped-about-grid > .ped-card {
  border-radius: 52px 16px 52px 16px;
}

.ped-portrait-break {
  background: var(--ped-blue);
}

.ped-portrait-round img {
  aspect-ratio: 1 / 1;
  border: 10px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  object-position: center 24%;
}

.ped-v2 .ped-pricing-grid > .ped-price-card {
  border-radius: 12px 46px 12px 46px;
}

@media (max-width: 980px) {
  body.ped-canvas {
    font-size: 17px;
  }

  .ped-hero,
  .ped-feature-split,
  .ped-portrait-break {
    flex-direction: column !important;
  }

  .ped-hero-copy,
  .ped-hero-visual,
  .ped-feature-copy,
  .ped-feature-split > .ped-infographic,
  .ped-portrait-break > .ped-portrait {
    width: 100% !important;
  }

  .ped-hero-visual {
    margin-top: 15px;
  }

  .ped-hero-tree {
    right: 2%;
    bottom: 1%;
    width: min(88%, 430px) !important;
    opacity: 0.18;
  }

  .ped-portrait {
    width: min(100%, 520px) !important;
  }

  .ped-v2 .ped-hero-original {
    padding-top: 70px;
  }

  .ped-v2 .ped-logo-light {
    margin-bottom: 25px;
  }

  .ped-process-grid > .ped-step,
  .ped-pricing-grid > .ped-price-card,
  .ped-cert-grid > .ped-certificate {
    width: calc(50% - 11px) !important;
    flex-basis: 300px;
  }
}

@media (max-width: 660px) {
  body.ped-canvas {
    font-size: 16px;
  }

  .ped-preview-switcher {
    min-height: 0;
    padding: 8px 10px;
    gap: 8px;
  }

  .ped-preview-switcher__label {
    display: none;
  }

  .ped-preview-switcher__buttons {
    width: 100%;
  }

  .ped-preview-switcher__button {
    flex: 1 1 50%;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
  }

  .ped-nav,
  .ped-section {
    width: min(100% - 24px, 1180px) !important;
  }

  .ped-nav {
    min-height: 148px;
  }

  .ped-logo {
    width: 150px !important;
    max-width: 150px !important;
    height: 128px;
    flex-basis: 150px;
  }

  .ped-logo img {
    top: -108px;
    left: -96px;
    width: 360px !important;
    height: 360px;
  }

  .ped-nav-label {
    display: none;
  }

  .ped-section {
    padding: 58px 20px;
  }

  .ped-hero-title {
    font-size: clamp(43px, 13vw, 63px);
  }

  .ped-section-title {
    font-size: clamp(34px, 10vw, 49px);
  }

  .ped-card {
    padding: 28px;
    border-radius: 22px;
  }

  .ped-path-card,
  .ped-about-grid > .ped-card,
  .ped-support-grid > .ped-card,
  .ped-process-grid > .ped-step,
  .ped-pricing-grid > .ped-price-card,
  .ped-reviews-grid > .ped-review-card,
  .ped-cert-grid > .ped-certificate,
  .ped-compass-grid > .ped-compass-card {
    width: 100% !important;
    min-height: 0;
    flex-basis: 100%;
  }

  .ped-button {
    width: 100% !important;
  }

  .ped-button .elementor-button,
  .ped-button .elementor-button-wrapper {
    width: 100%;
  }

  .ped-manifesto,
  .ped-feature-split,
  .ped-reviews,
  .ped-support,
  .ped-portrait-break {
    border-radius: 26px;
  }

  .ped-process,
  .ped-contact,
  .ped-v2 .ped-hero-original,
  .ped-v2 .ped-paths-original,
  .ped-v2 .ped-about-original {
    width: 100% !important;
    padding-right: 22px;
    padding-left: 22px;
  }

  .ped-v2 .ped-hero-original {
    min-height: 0;
  }

  .ped-compass {
    margin-top: -24px !important;
  }

  .ped-handwritten-quote img {
    min-height: 260px;
  }
}

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

  .ped-button .elementor-button {
    transition: none;
  }
}

/* 2026-08-05 — finalne poprawki czytelności Wariantu 1 */
.ped-preview-switcher {
  display: none !important;
}

.ped-process .ped-section-intro .elementor-widget-container > p {
  display: none;
}

.ped-process .ped-section-intro .elementor-widget-container::after {
  display: block;
  content: "Cztery etapy pracy prowadzą od rozpoznania prawdziwej trudności do spokojniejszego, bardziej samodzielnego działania ucznia.";
}

.ped-process-grid > .ped-step-flip {
  min-height: 0;
  padding: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.13);
  perspective: none;
  cursor: default;
}

.ped-step-flip .ped-step-inner {
  position: static;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  transform: none !important;
  transform-style: flat;
}

.ped-step-flip .ped-step-face {
  position: static !important;
  inset: auto;
  width: 100% !important;
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none !important;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.ped-step-flip .ped-step-hint,
.ped-step-flip .ped-step-back .ped-card-title {
  display: none !important;
}

.ped-step-flip .ped-step-back .ped-card-copy {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.58;
}

.ped-step-flip:hover .ped-step-inner,
.ped-step-flip.is-flipped .ped-step-inner {
  transform: none !important;
}

.ped-cert-grid {
  align-items: stretch;
}

.ped-cert-grid > .ped-certificate {
  width: calc(33.333% - 15px) !important;
  flex: 0 1 calc(33.333% - 15px);
}

.ped-certificate .elementor-widget-container,
.ped-certificate a {
  display: flex;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ped-cream);
}

.ped-certificate img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 11px;
  cursor: zoom-in;
  transition: transform 220ms ease;
}

.ped-certificate:hover img,
.ped-certificate:focus-within img {
  transform: scale(1.06);
}

.ped-certificate img[src*="cert-6.jpg"],
.ped-certificate img[src*="cert-7.jpg"] {
  width: auto;
  height: 100%;
  transform: rotate(-90deg) scale(1.22);
}

.ped-certificate:hover img[src*="cert-6.jpg"],
.ped-certificate:focus-within img[src*="cert-6.jpg"],
.ped-certificate:hover img[src*="cert-7.jpg"],
.ped-certificate:focus-within img[src*="cert-7.jpg"] {
  transform: rotate(-90deg) scale(1.28);
}

@media (max-width: 900px) {
  .ped-cert-grid > .ped-certificate {
    width: calc(50% - 11px) !important;
    flex-basis: calc(50% - 11px);
  }
}

@media (max-width: 640px) {
  .ped-process-grid > .ped-step-flip,
  .ped-cert-grid > .ped-certificate {
    width: 100% !important;
    flex-basis: 100%;
  }
}
