@import"https://fonts.googleapis.com/css2?family=Nunito:wght@200..1000&family=Plus+Jakarta+Sans:wght@200..800&display=swap";

:root {
  --color-primary: #F5C642;
  --color-secondary: #477AFF;
  --color-bg-dark: #01081F;
  --color-text-primary: #ffffff;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-type: none;
}

button {
  background-color: transparent;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
}

.large-container {
  max-width: 1860px;
  padding: 0 10px;
  margin: 0 auto;
}

.container {
  max-width: 1640px;
  padding: 0 10px;
  margin: 0 auto;
}

body {
  font-family: Plus Jakarta Sans, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-bg-dark);
}

.donate {
  display: inline-block;
  color: #01081F;
  background-color: var(--color-primary);
  padding: 20px 60px;
  border-radius: 80px;
  font-size: 18px;
  font-weight: 700;
  transition: color .3s ease-in-out, background-color .3s ease-in-out;
}

.donate:hover {
  color: var(--color-text-primary);
  background-color: var(--color-secondary);
}

.section-title {
  font-family: Nunito, sans-serif;
  font-size: 64px;
  font-weight: 600;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

.main-page .footer {
  margin-top: -195px;
}

.footer {
  margin-top: -65px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  padding: 65px 0;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.footer__logo {
  justify-self: start;
}

.footer__content {
  justify-self: center;
}


.footer__nav {
  margin-bottom: 30px;
}

.footer__list {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 18px;
}

.footer__link {
  transition: all .3s ease-in-out;
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.social__link-insta path {
  transition: stroke .3s ease-in-out;
}

.social__link-x path {
  transition: fill .3s ease-in-out;
}

.social__link-insta:hover path {
  stroke: var(--color-primary);
}

.social__link-x:hover path {
  fill: var(--color-primary);
}

.footer__copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.69);
}

.footer__btn {
  justify-self: end;
}

.slider__inner {
  background-image: image-set("../images/slide-bg.avif" type("image/avif"),
      "../images/slide-bg.webp" type("image/webp"),
      "../images/slide-bg.jpg"
    );
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  min-height: 80vh;
  border-radius: 60px;
  margin-bottom: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text-primary);
}

.slider__item-content {
  max-width: 1030px;
  margin: 0 auto;
}

.slider__item-title {
  font-family: Nunito, sans-serif;
  font-size: 80px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 30px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.slider__item-text {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 45px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.slider__item-donate {
  display: none;
}

.involv {
  text-align: center;
}

.involv__title {
  margin-bottom: 10px;
}

.involv__text {
  font-size: 24px;
  margin-bottom: 40px;
}

.involv__text span {
  font-weight: 600;
}

.involv__stast {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
  margin-bottom: 30px;
}

.involv__stats-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 250px;
  height: 288px;
  font-size: 24px;
  line-height: 1.2;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.5s ease;
}

.involv__stats-item span {
  font-family: Nunito, sans-serif;
  font-size: 76px;
  font-weight: 600;
}

.involv__stats-item:hover {
  transform: scale(1.1);
}

.involv__stats--one {
  color: var(--color-text-primary);
  background-image: url(../images/figure-one.svg);
}

.involv__stats--one span {
  color: var(--color-primary);
}

.involv__stats--two {
  color: var(--color-bg-dark);
  background-image: url(../images/figure-two.svg);
}

.involv__stats--three {
  color: var(--color-text-primary);
  background-image: url(../images/figure-three.svg);
}

.focus {
  padding: 155px 0 100px;
  background-image: url(../images/blue-bg.svg);
  background-position: center center;
  background-repeat: no-repeat;
  margin-bottom: 130px;
}

.focus__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 150px;
}

.focus__content {
  max-width: 650px;
}

.focus__title {
  margin-bottom: 24px;
}

.focus__text {
  font-size: 24px;
  color: rgba(1, 8, 31, .7);
}

.focus__text span {
  font-weight: 600;
  color: var(--color-bg-dark);
}

.events {
  margin-bottom: 160px;
}


.events__title {
  text-align: center;
  margin-bottom: 40px;
}

.events__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event {
  position: relative;
}

.event::before {
  content: '';
  position: absolute;
  left: 25px;
  top: -36px;
  width: 266px;
  height: 38px;
  background-image: url(../images/before-decor.png);
}

.event::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 26%;
  bottom: -24px;
  width: 223px;
  height: 29px;
  background-image: url(../images/after-decor.png);
}

.event__item {
  display: flex;
  align-items: center;
  gap: 150px;
}

.event picture {
  display: block;
}

.event picture img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event picture:hover img {
  transform: scale(1.1);
}

.event__item-content {
  display: flex;
  align-items: center;
  gap: 125px;
}


.event__item-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.event__item-text {
  opacity: 0.5;
  margin-bottom: 20px;
}

.event__donate {
  padding: 16px 37px;
  font-size: 16px;
  font-weight: 500;
}

.event__item-date {
  text-align: center;
  font-family: Nunito, sans-serif;
  font-size: 48px;
  line-height: 1;

}

.event__item-date span {
  display: block;
}

.work {
  margin-bottom: 130px;
}

.work__title {
  text-align: center;
  margin-bottom: 40px;
}

.work__inner {
  display: flex;
  justify-content: center;

}

.work__item {
  max-width: 520px;
  display: inline-block;
}

.work__item rect {
  transition: fill .3s ease-in-out;
}

.work__item path {
  transition: stroke .3s ease-in-out;
}

.work__item:hover rect {
  fill: var(--color-secondary);
}

.work__item:hover path {
  stroke: var(--color-text-primary);
}


.work picture {
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.work picture img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work picture:hover img {
  transform: scale(1.1);
}

.work__item-picture {
  position: relative;
}

.work__item-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: brightness(0.4);
  opacity: 0;
  transition: 0.3s;
}

.work__item-picture--decor {
  position: relative;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.work__item-picture--btn {
  font-family: Nunito, sans-serif;
  font-size: 18px;
  color: var(--color-text-primary);
  padding: 5px 31px;
  border-radius: 20px;
  border: 1px solid var(--color-text-primary);
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}

.work__item:hover .work__item-picture--btn {
  opacity: 1;
}

.work__item-picture:hover::after {
  opacity: 1;
}

.work__item-img {
  max-width: 100%;
}

.work__item-box {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}

.work__item-text {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 500;
}

.work__item-text span {
  font-weight: 700;
  display: block;
}

.partners {
  padding: 115px 0 325px;
  background-image: url(../images/blue-bottom-bg.svg);
  background-repeat: no-repeat;
  background-position: center center;
  text-align: center;
}

.partners__title {
  margin-bottom: 48px;
}

.partners__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 48px;
}

.partners__item img {
  max-width: 100%;
  border-radius: 20px;
  transition: box-shadow .5s ease;
}

.partners__item:hover img {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.partners__btn {
  display: inline-block;
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  font-size: 18px;
  font-weight: 700;
  padding: 20px 125px;
  border-radius: 80px;
  transition: color .3s ease-in-out, background-color .3s ease-in-out;
}

.partners__btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
}

.gallery {
  text-align: center;
  font-weight: 600;
  margin-bottom: 130px;
}

.gallery__title {
  font-family: Nunito, sans-serif;
  font-size: 80px;
  line-height: 1;
  max-width: 1070px;
  margin: 0 auto 20px;
}

.gallery__text {
  font-size: 24px;
  margin-bottom: 60px;
}

.gallery-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 130px;
}

.gallery-top__item {
  max-width: 100%;
}

.gallery-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-box__item {
  max-width: 100%;
}

.gallery picture {
  display: block;
  overflow: hidden;
}

.gallery-top picture {
  border-radius: 60px;
}

.gallery-box picture {
  border-radius: 20px;
}

.gallery picture img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery picture:hover img {
  transform: scale(1.1);
}

.become-donor {
  text-align: center;
  background-color: var(--color-secondary);
  padding: 65px 0 130px;
}

.become-donor__text {
  max-width: 500px;
  font-size: 24px;
  font-weight: 500;
  margin: 0 auto 20px;
  color: var(--color-text-primary);
}







@media (max-width: 1440px) {
  .event__item {
    gap: 40px;
  }

  .event__item-content {
    gap: 40px;
  }
}


@media (max-width: 1200px) {
  .partners__item--you{
    width: 100%;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 30px;
  }

  .footer__logo {
    order: -2;
  }

  .footer__social {
    order: -1;
    margin-left: auto;
  }

  .footer__content {
    grid-column: 1 / -1;
  }

  .partners {
    background-size: cover;
  }

  .focus {
    background-size: cover;
    padding: 40px 0 100px;
    margin-bottom: 60px;
    text-align: center;
  }

  .focus__inner {
    grid-template-columns: auto;
    gap: 30px;
  }

  .focus__content {
    max-width: 100%;
  }

  .focus__img {
    max-width: 100%;
  }

  .event__item {
    flex-direction: column;
    align-items: start;
  }

  .event::before,
  .event::after {
    display: none;
  }

  .event__img {
    max-width: 100%;
  }

  .gallery__title {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  .header__inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .logo-img {
    width: 250px;
  }

  .donate {
    font-size: 16px;
    padding: 14px 40px;
  }

  .footer__list {
    flex-wrap: wrap;
    text-align: center;
  }

  .footer__item {
    width: 35%;
  }

  .slider__item-content {
    margin: 0 auto;
    max-width: 400px;
  }

  .slider__item-title {
    padding: 40px 10px 0;
    font-size: 36px;
    margin-bottom: 10px;
  }

  .slider__item-donate {
    display: inline-block;
  }

  .slider__inner {
    min-height: 350px;
  }

  .slider__item-text {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: 40px;
  }

  .involv__stast {
    gap: 15px;
  }

  .involv__stats-item {
    width: 150px;
    height: 175px;
  }

  .involv__text {
    font-size: 18px;
  }

  .partners {
    padding: 100px 0 255px;
  }

  .partners__title {
    margin-bottom: 24px;
  }

  .partners__btn {
    padding: 16px 75px;
  }

  .slider__inner {
    margin-bottom: 60px;
  }

  .event__item-content {
    flex-wrap: wrap;
  }

  .event__item-date {
    order: -1;
    font-size: 18px;
  }

  .event__item-date span {
    display: inline-block;
  }

  .events {
    margin-bottom: 60px;
  }

  .event__item {
    gap: 20px;
  }

  .event__item-content {
    gap: 10px;
  }

  .event__item-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .work {
    margin-bottom: 0;
  }

  .work__item-text {
    font-size: 18px;
  }

  .become-donor__text {
    font-size: 18px;
  }


  .gallery {
    margin-bottom: 50px;
  }

  .gallery__title {
    font-size: 44px;
  }

  .gallery__text {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .gallery-top {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 50px;
  }

  .gallery-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .main-page .header__inner .donate {
    display: none;
  }

  .slider__item-text {
    padding: 0 10px;
  }

  .partners__list {
    gap: 10px;
  }

  .partners__item img {
    width: 175px;
  }



}

@media (max-width: 440px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__logo,
  .footer__btn {
    justify-self: center;
  }

  .slider__item-title {
    font-size: 44px;
    margin-bottom: 20px;
  }

  .slider__item-text {
    margin-bottom: 30px;
  }

  .focus__text {
    font-size: 18px;
  }

  .involv__stats-item {
    font-size: 20px;
  }

  .involv__stats-item span {
    font-size: 54px;
  }

  .footer__social{
    margin-right: auto;
  }

}