/* Stronger homepage content sections */
#o-nas,
#html,
#html-2,
#kontakt {
  position: relative;
  overflow: hidden;
}

/* Intro card */
#o-nas {
  padding: clamp(64px, 8vw, 108px) 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(247, 148, 30, .12), transparent 30%),
    #fbf8f2;
}

#o-nas > .sb-container {
  max-width: 1180px;
  padding: 0;
}

#o-nas .sb-row {
  margin: 0;
  padding: 0 !important;
}

#o-nas .sb-column {
  padding: 0;
}

#o-nas .sb-text-image {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
  padding: 0;
}

#o-nas .sb-text-image__image {
  position: relative;
  order: 1;
  display: grid;
  width: 100%;
  min-height: 440px;
  margin: 0;
  padding: 28px;
  place-items: center;
  background: radial-gradient(circle at 50% 48%, rgba(247, 148, 30, .14), transparent 64%);
}

#o-nas .sb-text-image__image::before,
#o-nas .sb-text-image__image::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(232, 119, 5, .24);
  border-radius: 50%;
}

#o-nas .sb-text-image__image::before {
  width: 330px;
  height: 330px;
}

#o-nas .sb-text-image__image::after {
  width: 380px;
  height: 380px;
  opacity: .55;
}

#o-nas .sb-text-image__image figure {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  margin: 0;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

#o-nas .sb-text-image__image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
}

#o-nas .sb-text-image__content {
  order: 2;
  width: 100%;
  margin: 0;
}

#o-nas .sb-text-image__content-title {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

#o-nas .sb-text-image__content-title::before {
  display: block;
  margin-bottom: 13px;
  color: #a95608;
  content: 'O ROZWIJAJ.EDU.PL';
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

#o-nas .sb-text-image__content-subtitle {
  max-width: 580px;
  margin-bottom: 22px;
  color: #3e3026;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
}

#o-nas .sb-text-image__content-paragraph {
  color: #66584d;
  font-size: 15px;
  line-height: 1.68;
}

#o-nas .sb-text-image__content-paragraph p {
  margin-bottom: 12px;
}

#o-nas .sb-text-image__content-cta {
  margin-top: 27px;
}

#o-nas .sb-cta-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#o-nas .sb-cta-wrapper > span {
  margin: 0;
}

/* Audience sections */
#html,
#html-2 {
  padding: clamp(72px, 8vw, 112px) 24px;
}

#html {
  background:
    radial-gradient(circle at 94% 18%, rgba(247, 148, 30, .13), transparent 30%),
    #fff4e7;
}

#html-2 {
  background:
    radial-gradient(circle at 5% 78%, rgba(247, 148, 30, .11), transparent 31%),
    #fbf8f2;
}

#html::before,
#html-2::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(150, 82, 20, .2), transparent);
  transform: translateX(-50%);
}

#html > .sb-container,
#html-2 > .sb-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

#html .sb-row,
#html-2 .sb-row {
  margin: 0;
  padding: 0 !important;
}

#html .sb-column,
#html-2 .sb-column {
  padding: 0;
}

#html .sb-component-paragraph,
#html-2 .sb-component-paragraph {
  display: none;
}

#html .sb-section-title,
#html-2 .sb-section-title {
  position: relative;
  width: auto;
  max-width: 780px;
  margin: 0 auto 18px;
  color: #e87d08;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
}

#html .sb-section-title::before,
#html-2 .sb-section-title::before {
  display: block;
  margin-bottom: 13px;
  color: #8b4b14;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

#html .sb-section-title::before {
  content: 'DLA SZKÓŁ';
}

#html-2 .sb-section-title::before {
  content: 'DLA EDUKATORÓW';
}

#html .sb-section-subtitle,
#html-2 .sb-section-subtitle {
  max-width: 860px;
  margin: 0 auto 34px;
  color: #4e4035;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  text-align: center;
}

#html .sb-integration-html > div,
#html-2 .sb-integration-html > div {
  padding: 0 !important;
}

#html .sb-integration-html h2,
#html-2 .sb-integration-html h2 {
  margin: 0 0 16px;
  color: #6d5c4f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
}

#html .rozwijaj-video,
#html-2 .rozwijaj-video {
  box-shadow:
    0 0 0 1px rgba(100, 50, 7, .12),
    0 24px 55px rgba(75, 38, 9, .2),
    0 6px 16px rgba(75, 38, 9, .1);
}

#html .sb-component-call-to-action,
#html-2 .sb-component-call-to-action {
  margin-top: 27px;
}

#html .sb-cta-wrapper,
#html-2 .sb-cta-wrapper {
  display: flex;
  justify-content: center;
  width: auto;
  text-align: center;
}

#html .call-to-action,
#html-2 .call-to-action {
  min-width: 190px;
  padding: 14px 26px;
}

/* Contact card */
#kontakt {
  padding: clamp(72px, 9vw, 120px) 24px;
  background:
    radial-gradient(circle at 8% 18%, rgba(247, 148, 30, .2), transparent 28%),
    linear-gradient(145deg, #fbe8d1, #fff5e9);
}

#kontakt > .sb-container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(440px, 1.22fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(42px, 7vw, 84px);
  max-width: 1120px;
  padding: 0;
  background: transparent !important;
}

#kontakt > .sb-container > .sb-row {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 !important;
}

#kontakt > .sb-container > .sb-row:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

#kontakt > .sb-container > .sb-row:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

#kontakt > .sb-container > .sb-row:nth-of-type(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#kontakt .sb-column {
  padding: 0;
}

#kontakt .sb-component-paragraph {
  display: none;
}

#kontakt .sb-section-title {
  width: auto;
  margin: 0 0 18px;
  color: #e87d08;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

#kontakt .sb-section-title::before {
  display: block;
  margin-bottom: 13px;
  color: #8b4b14;
  content: 'POROZMAWIAJMY';
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

#kontakt .sb-section-subtitle {
  width: auto;
  margin: 0;
  color: #605247;
  font-size: 18px;
  line-height: 1.58;
}

#kontakt .newsletter-signup-form {
  width: 100%;
  margin: 0;
  padding: 0 0 0 clamp(32px, 5vw, 58px);
  background: transparent;
  border-left: 1px solid rgba(145, 76, 16, .2);
}

#kontakt .form__group {
  margin-bottom: 18px;
}

#kontakt .form__label {
  margin-bottom: 7px;
  color: #54453a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
}

#kontakt .form__input:not([type='checkbox']) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #33271f;
  background: #fffaf4;
  border: 1px solid #e7d6c5 !important;
  border-radius: 9px !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#kontakt textarea.form__input {
  min-height: 130px !important;
  resize: vertical;
}

#kontakt .form__input:not([type='checkbox']):focus {
  background: #fff;
  border-color: #f7941e !important;
  box-shadow: 0 0 0 4px rgba(247, 148, 30, .14);
  outline: none;
}

#kontakt .form__input-checkbox-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
}

#kontakt .form__input--checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #f7941e;
}

#kontakt .form__input-checkbox-wrapper .form__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

#kontakt .newsletter-signup-form__btn {
  width: 100%;
  min-height: 50px;
  color: #fff;
  background: #f7941e;
  border: 1px solid #f7941e;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(213, 105, 3, .22);
  font-weight: 800;
}

#kontakt .newsletter-signup-form__btn:hover,
#kontakt .newsletter-signup-form__btn:focus-visible {
  color: #fff;
  background: #df7800;
  border-color: #df7800;
}

@media (max-width: 900px) {
  #o-nas .sb-text-image {
    grid-template-columns: 1fr;
  }

  #o-nas .sb-text-image__image {
    min-height: 350px;
  }

  #kontakt > .sb-container {
    display: block;
  }

  #kontakt > .sb-container > .sb-row:nth-of-type(2) {
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  #o-nas,
  #html,
  #html-2,
  #kontakt {
    padding: 54px 14px;
  }

  #o-nas .sb-text-image {
    gap: 28px;
    padding: 0;
  }

  #o-nas .sb-text-image__image {
    min-height: 260px;
    padding: 18px;
  }

  #o-nas .sb-text-image__image::before {
    width: 220px;
    height: 220px;
  }

  #o-nas .sb-text-image__image::after {
    width: 250px;
    height: 250px;
  }

  #o-nas .sb-text-image__image figure {
    width: min(100%, 240px);
  }

  #o-nas .sb-text-image__content-title,
  #html .sb-section-title,
  #html-2 .sb-section-title,
  #kontakt .sb-section-title {
    font-size: 34px;
  }

  #o-nas .sb-text-image__content-subtitle {
    font-size: 19px;
  }

  #o-nas .sb-cta-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }

  #o-nas .sb-button {
    width: 100%;
  }

  #html .sb-section-title,
  #html-2 .sb-section-title,
  #html .sb-section-subtitle,
  #html-2 .sb-section-subtitle {
    text-align: left;
  }

  #html .sb-section-subtitle,
  #html-2 .sb-section-subtitle {
    margin-bottom: 26px;
    font-size: 17px;
  }

  #html .sb-integration-html h2,
  #html-2 .sb-integration-html h2 {
    font-size: 14px;
    text-align: left;
  }

  #html .call-to-action,
  #html-2 .call-to-action {
    width: 100%;
  }

  #kontakt > .sb-container {
    padding: 0;
  }

  #kontakt .sb-section-subtitle {
    font-size: 16px;
  }

  #kontakt .newsletter-signup-form {
    padding: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #kontakt .form__input,
  #kontakt .newsletter-signup-form__btn {
    transition: none;
  }
}
