.word-container {
  overflow: hidden;
  display: inline-block;
  line-height: 0.9;
  margin-bottom: -0.35em;
  padding-bottom: 0.2em;
}

@keyframes fadeInAndRotateAndZoomAndRise {
  from {
    opacity: 0;
    transform: rotateX(6deg) translateZ(-200px) translateY(0);
  }
  to {
    opacity: 1;
    transform: rotateX(6deg) translateZ(0) translateY(0);
  }
}

.word-container {
  overflow: hidden;
  display: inline-block;
  transform-style: preserve-3d;
}

.word {
  display: inline-block;
  opacity: 0;
  animation: fadeInAndRotateAndZoomAndRise 1s ease-out forwards;
}

h1 > .word-container:nth-of-type(1) .word {
  animation-delay: 0s;
}

h1 > .word-container:nth-of-type(2) .word {
  animation-delay: 0.3s;
}

h1 > .word-container:nth-of-type(3) .word {
  animation-delay: 0.6s;
}

h1 > .word-container:nth-of-type(4) .word {
  animation-delay: 0.9s;
}

h1 > .word-container:nth-of-type(5) .word {
  animation-delay: 1.2s;
}

.circle-container {
  position: relative;
}

.circle-container .svg-circle {
  position: absolute;
  top: -21px;
  left: -26px;
  width: calc(100% + 42px);
  z-index: -1;
}

@media screen and (min-width: 1280px) {
  .circle-container .svg-circle {
    top: -20px;
  }
}

@media screen and (min-width: 1920px) {
  .circle-container .svg-circle {
    top: -27px;
  }
}

.awarded-projects {
  color: #d30000;
}

.awarded-projects .circle-container .svg-circle {
  position: absolute;
  top: -38px;
  left: -26px;
  width: calc(100% + 46px);
  z-index: -1;
}

main {
  position: relative;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 700ms;
  overflow: hidden;
}

section {
  padding: 0 32px;
}

section h1,
section h2,
section h3,
section p {
  color: #292929;
}

section h2 {
  font-family: var(--yes-font-secondary);
  font-size: 38px;
  line-height: 110%;
  letter-spacing: 0.38px;
  margin-bottom: 32px;
  max-width: 253px;
}

@media screen and (min-width: 1280px) {
  section h2 {
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 1920px) {
  section h2 {
    margin-bottom: 55px;
  }
}

section p {
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 160%;
}

@media screen and (min-width: 1280px) {
  section p {
    max-width: 363px;
  }
}

@media screen and (min-width: 1920px) {
  section p {
    font-size: 20px;
    max-width: 473px;
  }
}

section p br {
  display: none;
}

@media screen and (min-width: 1280px) {
  section p br {
    display: block;
  }
}

section a {
  display: block;
  text-decoration: unset;
  color: #292929;
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 170%;
  margin-top: 32px;
}

@media screen and (min-width: 1920px) {
  section a {
    font-size: 20px;
    margin-top: 53px;
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: -webkit-fill-available;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/hero/hero-yes-mobile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

@media screen and (min-width: 960px) {
  .hero-background {
    background-image: url("assets/hero/hero-yes-desktop.webp");
  }
}

.logo-section {
  position: relative;
  margin-top: 40px;
  text-align: center;
  z-index: 5;
}

.logo-section h3 {
  color: #fff;
  font-family: var(--yes-font-primary);
  font-size: 19px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 3.759px;
  text-transform: uppercase;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 1;
  text-align: center;
  padding: 20px;
  margin: 0 auto;
}

.hero-content h1 {
  display: block;
  color: #fff;
  font-family: var(--yes-font-secondary);
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -0.96px;
}

@media screen and (min-width: 1280px) {
  .hero-content h1 {
    font-size: 126px;
    letter-spacing: -2.52px;
  }
}

@media screen and (min-width: 1920px) {
  .hero-content h1 {
    font-size: 160px;
    letter-spacing: -3.2px;
  }
}

.hero-section .arrow {
  position: absolute;
  cursor: pointer;
  padding: 16px;
  z-index: 50;
  bottom: 0;
  left: calc(50% - 28px);
  transform: translateX(-50%);
}

@media screen and (min-width: 1920px) {
  .hero-section .arrow {
    width: 32px;
    height: 32px;
    bottom: 21px;
    left: calc(50% - 32px);
  }
}

.under-hero-section {
  display: flex;
  flex-direction: column;
  padding: 32px 0 64px;
  background-color: #161717;
}

@media screen and (min-width: 1280px) {
  .under-hero-section {
    flex-direction: row;
    justify-content: right;
    padding: 140px 0 144px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section {
    padding: 187px 0 192px;
  }
}

.under-hero-section .header-content {
  padding: 0 32px;
}

@media screen and (min-width: 1280px) {
  .under-hero-section .header-content {
    padding: 0;
    max-width: 366px;
    min-width: 317px;
    position: relative;
    right: -90px;
    margin-top: 121px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section .header-content {
    margin-top: 162px;
    max-width: 488px;
    right: -120px;
  }
}

.under-hero-section .red-line {
  display: block;
  width: 40px;
  height: 1px;
  background-color: #d30000;
  margin-bottom: 40px;
}

.under-hero-section h2 {
  color: #fff;
  font-family: var(--yes-font-secondary);
  font-size: 38px;
  line-height: 110%;
  letter-spacing: 0.4px;
  margin-bottom: 32px;
  max-width: unset;
}

@media screen and (min-width: 1280px) {
  .under-hero-section h2 {
    margin-bottom: 40px;
    font-size: 40px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section h2 {
    margin-bottom: 53px;
    font-size: 52px;
    letter-spacing: 0.52px;
  }
}

.under-hero-section p {
  color: #fff;
  font-family: var(--yes-font-primary);
  font-size: 15px;
  line-height: 170%;
  margin-bottom: 56px;
  max-width: unset;
}

@media screen and (min-width: 1280px) {
  .under-hero-section p {
    margin-bottom: 0;
    font-size: 16px;
    max-width: 454px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section p {
    font-size: 20px;
  }
}

.under-hero-section p br {
  display: none;
}

@media screen and (min-width: 1280px) {
  .under-hero-section p br {
    display: block;
  }
}

.under-hero-section .container {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  gap: 26px;
  margin: 0 auto;
}

@media screen and (min-width: 1280px) {
  .under-hero-section .container {
    margin: 0;
    gap: 70px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section .container {
    gap: 93px;
  }
}

.under-hero-section .container .left-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 28px;
}

@media screen and (min-width: 1280px) {
  .under-hero-section .container .left-column {
    gap: 70px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section .container .left-column {
    gap: 93px;
  }
}

.under-hero-section .container .right-column {
  width: 100%;
  min-width: 147px;
  align-self: center;
  justify-self: right;
}

@media screen and (min-width: 1280px) {
  .under-hero-section .container .right-column {
    min-width: 327px;
  }
}

.image-container {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.under-hero-section .image-container.first-image {
  position: relative;
  justify-self: right;
  min-height: 288px;
  min-width: 203px;
  width: calc(203px + (548 - 203) * ((100vw - 375px) / (1900 - 375)));
  height: calc(288px + (720 - 288) * ((100vw - 375px) / (1900 - 375)));
  background-image: url("assets/under-hero-images/fundacja-yes-01.webp");
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.under-hero-section .image-container.first-image .circle {
  position: absolute;
  right: -122px;
  top: 9px;
  width: 154px;
  animation: rotate 40s linear infinite;
}

@media screen and (min-width: 1280px) {
  .under-hero-section .image-container.first-image .circle {
    width: 212px;
    right: -157px;
    top: 28px;
  }
}

@media screen and (min-width: 1920px) {
  .under-hero-section .image-container.first-image .circle {
    width: 282px;
    right: -209px;
    top: 37px;
  }
}

.under-hero-section .image-container.second-image {
  margin-top: 130px;
  min-width: 147px;
  min-height: 207px;
  width: calc(147px + (436 - 147) * ((100vw - 375px) / (1900 - 375)));
  height: calc(207px + (597 - 207) * ((100vw - 375px) / (1900 - 375)));
  background-image: url("assets/under-hero-images/fundacja-yes-02.webp");
}

@media screen and (min-width: 1280px) {
  .under-hero-section .image-container.second-image {
    margin: 0;
  }
}

.under-hero-section .image-container.third-image {
  justify-self: right;
  min-width: 204px;
  min-height: 139px;
  width: calc(204px + (864 - 204) * ((100vw - 375px) / (1900 - 375)));
  height: calc(139px + (455 - 139) * ((100vw - 375px) / (1900 - 375)));
  background-image: url("assets/under-hero-images/fundacja-yes-03.webp");
}

section.first-section {
  display: flex;
  flex-direction: column;
  padding: 40px 32px 52px;
  position: relative;
}

@media screen and (min-width: 1280px) {
  section.first-section {
    padding: 163px 0 150px;
    flex-direction: row;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}

section.first-section .rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

@media screen and (min-width: 1280px) {
  section.first-section .rows {
    flex-direction: row;
    margin-bottom: 0;
    gap: 70px;
    width: 59%;
  }
}

@media screen and (min-width: 1920px) {
  section.first-section .rows {
    gap: 144px;
  }
}

section.first-section .img-container {
  margin-bottom: 48px;
}

@media screen and (min-width: 1280px) {
  section.first-section .img-container {
    width: 30%;
    margin-right: 11%;
    margin-bottom: 0;
  }
}

section.first-section img {
  width: 158px;
}

@media screen and (min-width: 1280px) {
  section.first-section img {
    position: relative;
    left: 26%;
    width: 59%;
  }
}

.better-world {
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: flex;
  will-change: transform;
}

.better-world span {
  color: #d30000;
  font-family: var(--yes-font-secondary);
  font-size: 92px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  letter-spacing: -1.84px;
}

@media screen and (min-width: 1024px) {
  .better-world span {
    white-space: nowrap;
  }
}

@media screen and (min-width: 1280px) {
  .better-world span {
    font-size: 220px;
    letter-spacing: -6.6px;
  }
}

@media screen and (min-width: 1920px) {
  .better-world span {
    font-size: 293px;
    letter-spacing: -8.8px;
  }
}

section.second-section {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 71px 0 81px;
}

@media screen and (min-width: 1280px) {
  section.second-section {
    flex-direction: row;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: wrap;
    padding: 141px 0 72px;
  }
}

@media screen and (min-width: 1920px) {
  section.second-section {
    padding: 188px 0 96px;
  }
}

section.second-section .rows {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  gap: 64px;
  margin-bottom: 64px;
}

@media screen and (min-width: 1280px) {
  section.second-section .rows {
    order: 2;
    flex-direction: row;
    padding: 0;
    margin-bottom: 0;
    margin-top: min(6%, 108px);
    gap: 70px;
    width: 59%;
  }
}

@media screen and (min-width: 1920px) {
  section.second-section .rows {
    gap: 144px;
  }
}

section.second-section .left-column {
  display: flex;
  justify-content: space-between;
  gap: 5.5%;
}

@media screen and (min-width: 1280px) {
  section.second-section .left-column {
    order: 1;
    position: relative;
    margin-right: 11%;
    width: 30%;
  }
}

section.second-section .right-column {
  margin: 5.5% 18px 0 21px;
}

@media screen and (min-width: 1280px) {
  section.second-section .right-column {
    position: relative;
    top: -150px;
    order: 4;
    width: 100%;
    margin: 0 0 -150px 0;
  }
}

.second-section .image-container.first-image {
  flex: 50%;
  height: 0;
  background-image: url("assets/fundacja-yes-04.webp");
  padding-bottom: calc((258 / 188) * 50%);
}

@media screen and (min-width: 1280px) {
  .second-section .image-container.first-image {
    width: 393px;
    padding-bottom: calc((538 / 393) * 100%);
  }
}

.second-section .image-container.second-image {
  flex: 50%;
  align-self: flex-end;
  height: 0;
  background-image: url("assets/fundacja-yes-05.webp");
  padding-bottom: calc((166 / 166) * 50%);
}

@media screen and (min-width: 1280px) {
  .second-section .image-container.second-image {
    flex: unset;
    width: 46%;
    padding-bottom: 46%;
    position: absolute;
    right: -142px;
    bottom: -131px;
  }
}

.second-section .image-container.third-image {
  background-position-y: 15%;
  height: 0;
  padding-bottom: calc((176 / 336) * 100%);
  background-image: url("assets/fundacja-yes-06.webp");
}

@media screen and (min-width: 1280px) {
  .second-section .image-container.third-image {
    width: 41%;
    padding-bottom: calc((274 / 523) * 41%);
    float: right;
  }
}

section.form-section {
  display: flex;
  flex-direction: column;
  background-color: #bf0606;
  padding: 64px 32px 70px;
  color: #fff;
}

@media screen and (min-width: 1280px) {
  section.form-section {
    margin: 0 32px 30px;
    padding: 105px 90px 68px;
    justify-content: space-around;
    flex-direction: row;
  }
}

@media screen and (min-width: 1920px) {
  section.form-section {
    margin: 0 43px 30px;
    padding: 140px 120px 74px;
  }
}

section.form-section h2 {
  color: #fff;
  line-height: 100%;
  letter-spacing: -0.76px;
  margin-bottom: 24px;
}

@media screen and (min-width: 1280px) {
  section.form-section h2 {
    font-size: 86px;
    line-height: 100%;
    letter-spacing: -0.86px;
    max-width: 518px;
  }
}

@media screen and (min-width: 1920px) {
  section.form-section h2 {
    font-size: 112px;
    letter-spacing: -1.12px;
    max-width: 601px;
  }
}

section.form-section p {
  color: #fff;
  margin-bottom: 24px;
  line-height: 150%;
}

@media screen and (min-width: 1280px) {
  section.form-section p {
    line-height: 160%;
    max-width: 442px;
  }
}

@media screen and (min-width: 1920px) {
  section.form-section p {
    font-size: 20px;
    max-width: 554px;
  }
}

section.form-section .form-header a {
  display: inline;
  color: #fff;
}

section.form-section .form-header img {
  width: 64px;
}

@media screen and (min-width: 1920px) {
  section.form-section .form-header img {
    width: 85px;
  }
}

section.form-section form {
  padding: 40px 0 0;
}

@media screen and (min-width: 1280px) {
  section.form-section form {
    padding: 0;
  }
}

section.form-section .form-row {
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 160%;
  letter-spacing: -0.18px;
  display: flex;
  padding: 32px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  gap: 15px;
}

@media screen and (min-width: 1920px) {
  section.form-section .form-row {
    font-size: 20px;
  }
}

section.form-section .form-input {
  width: 100%;
  display: flex;
  flex-direction: column;
}

section.form-section .error-input {
  display: none;
  padding: 6px 12px;
  background-color: #740b0b;
  gap: 8px;
  align-items: center;
  border-radius: 2px;
}

section.form-section .error-input span {
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 100%;
}

section.form-section .form-input label {
  width: 100%;
}

@media screen and (min-width: 1280px) {
  section.form-section .form-input label {
    max-width: 524px;
  }
}

@media screen and (min-width: 1920px) {
  section.form-section .form-input label {
    font-size: 24px;
    letter-spacing: -0.24px;
    max-width: 681px;
  }
}

section.form-section .form-input label br {
  display: none;
}

@media screen and (min-width: 1280px) {
  section.form-section .form-input label br {
    display: block;
  }
}

section.form-section .form-input input,
textarea {
  padding-block: 0;
  padding-inline: 0;
  background-color: transparent;
  border: none;
  width: 100%;
  font-family: var(--yes-font-primary);
  color: #fff;
  font-size: 16px;
  line-height: 160%;
  resize: none;
}

@media screen and (min-width: 1920px) {
  section.form-section .form-input input,
  textarea {
    font-size: 20px;
  }
}

section.form-section .form-input input:focus-visible,
textarea:focus-visible {
  outline-offset: unset !important;
  outline: unset !important;
}

section.form-section input:-webkit-autofill,
section.form-section input:-webkit-autofill:hover,
section.form-section input:-webkit-autofill:focus,
section.form-section textarea:-webkit-autofill,
section.form-section textarea:-webkit-autofill:hover,
section.form-section textarea:-webkit-autofill:focus,
section.form-section select:-webkit-autofill,
section.form-section select:-webkit-autofill:hover,
section.form-section select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #bf0606 inset;
  transition: background-color 5000s ease-in-out 0s;
}

section.form-section .form-input input::placeholder,
textarea::placeholder {
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 160%;
  letter-spacing: -0.18px;
  color: #fff;
  opacity: 0.4;
}

@media screen and (min-width: 1920px) {
  section.form-section .form-input input::placeholder,
  textarea::placeholder {
    font-size: 20px;
  }
}

section.form-section .form-additional-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@media screen and (min-width: 1920px) {
  section.form-section .form-additional-rows {
    gap: 32px;
  }
}

section.form-section .placeholder-for-files {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

section.form-section .placeholder-for-files .file-container:before {
  content: url("assets/file.svg");
  width: 24px;
  height: 24px;
}

section.form-section .placeholder-for-files .file-container {
  display: flex;
  font-family: var(--yes-font-primary);
  background-color: #9f0303;
  border-right: 2px;
  padding: 8px 12px;
  gap: 8px;
  cursor: pointer;
  position: relative;
  align-items: center;
  line-height: 26px;
}

section.form-section .placeholder-for-files .file-container:after {
  content: "Usuń";
  position: absolute;
  right: 12px;
}

section.form-section .upload-row {
  width: 100%;
  margin: 24px 0 16px;
}

@media screen and (min-width: 1920px) {
  section.form-section .upload-row {
    margin: 32px 0 0;
  }
}

section.form-section .upload-row p {
  font-size: 12px;
  line-height: 160%;
  letter-spacing: 0.24px;
  margin: 16px 0 0;
}

@media screen and (min-width: 1920px) {
  section.form-section .upload-row p {
    font-size: 16px;
  }
}

section.form-section .upload-row label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: #9f0303;
}

@media screen and (min-width: 1280px) {
  section.form-section .upload-row label {
    padding: 32px;
  }
}

@media screen and (min-width: 1920px) {
  section.form-section .upload-row label {
    gap: 16px;
    padding: 40px 32px;
  }
}

section.form-section .upload-row label span {
  font-family: var(--yes-font-primary);
  color: #fff;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.32px;
  margin: 0;
}

section.form-section .upload-row label .underline {
  text-decoration-line: underline;
}

section.form-section .upload-row input {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

section.form-section .checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section.form-section .checkbox-row:last-of-type {
  margin-bottom: 16px;
}

section.form-section .checkbox-row label {
  width: 100%;
  display: flex;
  gap: 12px;
  font-family: var(--yes-font-primary);
}

section.form-section .checkbox-row label span {
  font-family: var(--yes-font-primary);
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0.32px;
}

@media screen and (min-width: 1920px) {
  section.form-section .checkbox-row label span {
    font-size: 20px;
    letter-spacing: 0.4px;
  }
}

section.form-section .checkbox-row label span a {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 0.32px;
  color: #fff;
  text-decoration: underline;
  margin: unset;
  line-height: 100%;

  @media screen and (min-width: 1920px) {
    font-size: 20px;
    letter-spacing: 0.4px;
  }
}

section.form-section .checkbox-row .checkbox {
  display: block;
  min-width: 16px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
}

section.form-section
  .checkbox-row
  input[type="checkbox"]:checked
  + label
  .checkbox {
  background-position: 50%;
  background-image: url("assets/checked.svg");
}

section.form-section .form-additional-rows button {
  padding: 14px 32px;
  cursor: pointer;
  border: none;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
}

section.form-section .form-additional-rows button span {
  font-family: var(--yes-font-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 160%;
  color: #cc0a0a;
  letter-spacing: 0.85px;
  text-transform: uppercase;
}

section.form-section .form-sent {
  display: none;
  gap: 8px;
  align-items: center;
  background-color: #740b0b;
  padding: 8px 12px;
}

section.form-section .form-sent span {
  font-family: var(--yes-font-primary);
  font-size: 16px;
}

section.form-section .show-flex {
  display: flex;
}
