/* Pobierz template — blob na sekcję, podgląd wg makiety (~520px) */

.sectionCreate {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: visible;
  text-align: left;
  background-color: #ffcc05;
  /* style.min: 160/60 — wyrównane pionowo wokół .sectionCreate__layout */
  padding-top: 100px;
  padding-bottom: 100px;
}

.sectionCreate::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 20px;
  left: 38%;
  z-index: 0;
  background-image: url("../img/siatka _tlo.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}

.sectionCreate .container {
  position: relative;
  z-index: 1;
}

.sectionCreate__layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 58px);
  margin-top: 0;
}

.sectionCreate__copy {
  flex: 1 1 280px;
  max-width: 520px;
  padding-top: 0;
}

.sectionCreate h2.sectionCreate__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  text-align: left;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9;
}

.sectionCreate h2.sectionCreate__title span {
  display: block;
  font-size: clamp(48px, 6.5vw, 89px);
}

.sectionCreate p.sectionCreate__lead {
  font-weight: 600;
  max-width: 512px;
  width: 100%;
  margin: 0 0 clamp(28px, 4vw, 40px);
  text-align: left;
}

.sectionCreate .sectionCreate__cta {
  margin: 0;
  max-width: 280px;
  font-size: 20px;
}

/* Kolumna podglądu — szerokość ramki z XD (520) */
.sectionCreate__preview {
  flex: 0 1 520px;
  width: 100%;
  max-width: 520px;
  overflow: visible;
}

.sectionCreate__previewCard {
  width: 100%;
  max-width: 520px;
  padding: 0;
  overflow: visible;
  background: none;
}

/* Grafika w ramce makiety; lekko wychodzi poza blob (~24px na stronę) */
.sectionCreate__previewCard img {
  display: block;
  position: relative;
  z-index: 2;
  width: calc(100% + 48px);
  max-width: 568px;
  height: auto;
  margin: 0 -24px;
}

/* Desktop: wspólne wymiary; margin-left osobno — laptop ~13" vs duży monitor */
@media (min-width: 1200px) {
  .sectionCreate .sectionCreate__previewCard img {
    width: 470px;
    max-width: 453px;
    margin-right: -8px;
    padding-top: 30px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .sectionCreate .sectionCreate__previewCard img {
    margin-left: -27px;
  }
}

@media (min-width: 1600px) {
  .sectionCreate .sectionCreate__previewCard img {
    margin-left: 60px;
  }
}

@media (max-width: 768px) {
  .sectionCreate {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
  }

  .sectionCreate::before {
    display: none;
  }

  .sectionCreate__layout {
    flex-direction: column;
    align-items: stretch;
  }

  /* flex-basis 520px w kolumnie = ~520px wysokości — reset + realna szerokość grafiki */
  .sectionCreate__preview {
    flex: 0 0 auto;
    width: min(68vw, 240px);
    max-width: 240px;
    height: auto;
    margin: 0 auto;
  }

  .sectionCreate__previewCard {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .sectionCreate__previewCard img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    transform: none;
  }

  .sectionCreate .sectionCreate__cta {
    max-width: 100%;
  }
}
