/*Header adaptive*/
@media (max-width: 1000px) {
  .header__container {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 767.98px) {
  .header {
    background-color: #ffe100;
    top: 0;
    position: sticky;
  }

  .yellow-corner {
    display: none;
  }

  .header__container {
    flex-direction: row;
    padding: 20px 33px;
  }
  .header__logo {
    margin-bottom: 0;
    flex: 1 1 auto;
  }

  .header__menu-burger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1010;
  }

  .header__menu-burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000;
    transition: all 0.3s ease;
  }

  .header__menu {
    position: fixed;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;

    background-color: #fff;
    color: #000;
    transition: right 0.3s ease;
    padding: 50px 20px;
    z-index: 1009;
  }

  .menu__list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }
  .header__menu.active {
    right: 0;
  }

  .header__menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
  }

  .header__menu-burger.active span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }
}

/*Section Legalna adaptive*/

@media (max-width: 500px) {
  .header__logo img {
    max-width: 150px;
  }
}

@media (max-width: 2200px) {
  .legalna__bg {
    max-width: 2027px;
  }

  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 2100px) {
  .legalna__bg {
    max-width: 1927px;
  }
}

@media (max-width: 2138px) {
  .legalna__bg {
    max-width: 1900px;
  }
}

@media (max-width: 2000px) {
  .legalna__bg {
    max-width: 1827px;
  }
}

@media (max-width: 1950px) {
  .legalna__bg {
    max-width: 1727px;
  }

  .vertical-bar {
    padding-right: 100px;
  }
}

@media (max-width: 1850px) {
  .legalna__bg {
    max-width: 1627px;
  }
  .vertical-bar {
    padding-right: 80px;
  }
}

@media (max-width: 1750px) {
  .legalna__bg {
    max-width: 1527px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 100px;
  }
}

@media (max-width: 1650px) {
  .legalna__bg {
    max-width: 1427px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 1534px) {
  .legalna__bg {
    max-width: 1327px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 1430px) {
  .legalna__bg {
    max-width: 1227px;
  }
  .vertical-bar {
    top: 10px;
    height: calc(100% - 10px);

    padding-right: 30px;
    clip-path: polygon(0 290px, 100% 60px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1350px) {
  .legalna__bg {
    max-width: 1157px;
  }

  .legalna__container {
    padding-left: 267px;
  }

  .vertical-bar {
    top: 70px;
    width: 200px;
    padding-right: 30px;
    clip-path: polygon(0 250px, 100% 30px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1300px) {
  .legalna__bg {
    max-width: 1097px;
  }

  .legalna__container {
    padding-left: 267px;
  }

  .vertical-bar {
    top: 70px;
    width: 240px;
    padding-right: 100px;
    clip-path: polygon(0 250px, 100% 30px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1200px) {
  .legalna__bg {
    max-width: 967px;
  }

  .legalna__container {
    padding-left: 387px;
  }

  .vertical-bar {
    padding-right: 40px;
  }
}

@media (max-width: 1140px) {
  .legalna__bg {
    max-width: 967px;
  }
  .legalna__container {
    padding-left: 250px;
    padding-right: 200px;
  }

  .vertical-bar {
    padding-right: 80px;
  }
}

@media (max-width: 1100px) {
  .legalna__bg {
    max-width: 900px;
  }
  .legalna__container {
    padding-left: 250px;
    padding-right: 250px;
  }

  .vertical-bar {
    top: 30px;
    height: calc(100% - 10px);
    padding-right: 140px;
  }
}

@media (max-width: 1000px) {
  .legalna__bg {
    max-width: 1357px;
    height: 90%;
  }

  .legalna__container {
    padding-left: 100px;
    padding-right: 100px;
  }

  .vertical-bar {
    position: relative;
    top: auto;
    left: 0;
    bottom: 82px;
    width: 40%;
    height: auto;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    z-index: 1009;
    gap: 10px;
    clip-path: none;
    background-color: #1c1c1c;
  }

  .social-icons {
    flex-direction: row;
    gap: 20px;
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
    transform: rotate(90deg);
    transition: transform 0.2s;
  }

  .vertical-text {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 911px) {
  .vertical-bar {
    bottom: 84px;
  }
}

@media (max-width: 767.98px) {
  .legalna__container {
    max-width: 1207px;
    padding: 150px 0px;
    padding-left: 50px;
  }

  .legalna__title {
    font-size: 35px;
    margin-bottom: 20px;
  }
  .legalna__text {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .legalna__link {
    padding: 25px 30px;
    font-size: 16px;
    width: 240px;
  }

  .legalna__link img {
    margin: -7px 0px 0px 15px;
  }

  .vertical-bar {
    bottom: 58px;
  }
}

@media (max-width: 630px) {
  .vertical-bar {
    bottom: 63px;
  }
}

@media (max-width: 600px) {
  .legalna__bg {
    max-width: 1257px;
    height: 70%;
  }

  .legalna__container {
    max-width: 1207px;
    padding: 125px 50px;
  }

  .legalna__title {
    font-size: 27px;
    margin-bottom: 25px;
  }
  .legalna__text {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .legalna__link {
    padding: 20px 15px;
    font-size: 15px;
    width: 175px;
  }

  .legalna__link img {
    width: 18px;
    height: 12px;
    margin: 1px 0px 0px 10px;
  }

  .vertical-bar {
    bottom: 90px;
  }
}

@media (max-width: 576px) {
  .legalna__bg {
    max-width: 1000px;
    height: 50%;
  }

  .legalna__container {
    max-width: 1007px;
    padding: 55px 50px;
  }

  .vertical-bar {
    display: none;
  }
}

@media (max-width: 490px) {
  .legalna__bg {
    max-width: 950px;
    height: 40%;
  }

  .legalna__container {
    max-width: 850px;
    padding: 31px 20px;
  }

  .legalna__title {
    font-size: 30px;
    max-width: 239px;
    margin-bottom: 10px;
  }

  .legalna__text {
    font-size: 15px;
    max-width: 246px;
    margin-bottom: 17px;
  }

  .legalna__link {
    padding: 15px 10px;
    font-size: 9px;
    width: 120px;
  }

  .legalna__link img {
    width: 18px;
    height: 12px;
    margin: -2px 0px 0px 6px;
  }
}

/*Section Legalna adaptive*/
@media (max-width: 2756px) {
  .legalna__bg {
    max-width: 2527px;
  }

  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 2636px) {
  .legalna__bg {
    max-width: 2427px;
  }
}

@media (max-width: 2540px) {
  .legalna__bg {
    max-width: 2327px;
  }
}

@media (max-width: 2440px) {
  .legalna__bg {
    max-width: 2307px;
  }
}

@media (max-width: 2400px) {
  .legalna__bg {
    max-width: 2227px;
  }
}

@media (max-width: 2340px) {
  .legalna__bg {
    max-width: 2127px;
  }
}

@media (max-width: 2240px) {
  .legalna__bg {
    max-width: 2077px;
  }
}

@media (max-width: 2200px) {
  .legalna__bg {
    max-width: 2027px;
  }
}

@media (max-width: 2100px) {
  .legalna__bg {
    max-width: 1927px;
  }
}

@media (max-width: 2138px) {
  .legalna__bg {
    max-width: 1900px;
  }
}

@media (max-width: 2000px) {
  .legalna__bg {
    max-width: 1827px;
  }
}

@media (max-width: 1950px) {
  .legalna__bg {
    max-width: 1727px;
  }

  .vertical-bar {
    padding-right: 100px;
  }
}

@media (max-width: 1850px) {
  .legalna__bg {
    max-width: 1627px;
  }
  .vertical-bar {
    padding-right: 80px;
  }
}

@media (max-width: 1750px) {
  .legalna__bg {
    max-width: 1527px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 100px;
  }
}

@media (max-width: 1650px) {
  .legalna__bg {
    max-width: 1427px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 1534px) {
  .legalna__bg {
    max-width: 1327px;
  }
  .vertical-bar {
    width: 250px;
    padding-right: 120px;
  }
}

@media (max-width: 1430px) {
  .legalna__bg {
    max-width: 1227px;
  }
  .vertical-bar {
    top: 10px;
    height: calc(100% - 10px);

    padding-right: 30px;
    clip-path: polygon(0 290px, 100% 60px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1350px) {
  .legalna__bg {
    max-width: 1157px;
  }

  .legalna__container {
    padding-left: 267px;
  }

  .vertical-bar {
    top: 70px;
    width: 200px;
    padding-right: 30px;
    clip-path: polygon(0 250px, 100% 30px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1300px) {
  .legalna__bg {
    max-width: 1097px;
  }

  .legalna__container {
    padding-left: 267px;
  }

  .vertical-bar {
    top: 70px;
    width: 240px;
    padding-right: 100px;
    clip-path: polygon(0 250px, 100% 30px, 100% 100%, 0% 100%);
  }
}

@media (max-width: 1200px) {
  .legalna__bg {
    max-width: 967px;
  }

  .legalna__container {
    padding-left: 387px;
  }

  .vertical-bar {
    padding-right: 40px;
  }
}

@media (max-width: 1140px) {
  .legalna__bg {
    max-width: 967px;
  }
  .legalna__container {
    padding-left: 250px;
    padding-right: 200px;
  }

  .vertical-bar {
    padding-right: 80px;
  }
}

@media (max-width: 1100px) {
  .legalna__bg {
    max-width: 900px;
  }
  .legalna__container {
    padding-left: 250px;
    padding-right: 250px;
  }

  .vertical-bar {
    top: 30px;
    height: calc(100% - 10px);
    padding-right: 140px;
  }
}

@media (max-width: 1000px) {
  .legalna__bg {
    max-width: 1357px;
    height: 90%;
  }

  .legalna__container {
    padding-left: 100px;
    padding-right: 100px;
  }

  .vertical-bar {
    position: relative;
    top: auto;
    left: 0;
    bottom: 82px;
    width: 40%;
    height: auto;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    z-index: 1009;
    gap: 10px;
    clip-path: none;
    background-color: #1c1c1c;
  }

  .social-icons {
    flex-direction: row;
    gap: 20px;
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
    transform: rotate(90deg);
    transition: transform 0.2s;
  }

  .vertical-text {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 911px) {
  .vertical-bar {
    bottom: 84px;
  }
}

@media (max-width: 767.98px) {
  .legalna__container {
    max-width: 1207px;
    padding: 150px 0px;
    padding-left: 50px;
  }

  .legalna__title {
    font-size: 35px;
    margin-bottom: 20px;
  }
  .legalna__text {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .legalna__link {
    padding: 25px 30px;
    font-size: 16px;
    width: 240px;
  }

  .legalna__link img {
    margin: -7px 0px 0px 15px;
  }

  .vertical-bar {
    bottom: 58px;
  }
}

@media (max-width: 630px) {
  .vertical-bar {
    bottom: 63px;
  }
}

@media (max-width: 600px) {
  .legalna__bg {
    max-width: 1257px;
    height: 70%;
  }

  .legalna__container {
    max-width: 1207px;
    padding: 95px 50px;
  }

  .legalna__title {
    font-size: 27px;
    max-width: 320px;
    margin-bottom: 25px;
  }
  .legalna__text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .legalna__link {
    padding: 20px 15px;
    font-size: 15px;
    width: 175px;
  }

  .legalna__link img {
    width: 18px;
    height: 12px;
    margin: 1px 0px 0px 10px;
  }

  .vertical-bar {
    bottom: 25px;
  }
}

@media (max-width: 576px) {
  .legalna__bg {
    max-width: 1000px;
    height: 50%;
  }

  .legalna__container {
    max-width: 1007px;
    padding: 55px 50px;
  }

  .vertical-bar {
    display: none;
  }
}

@media (max-width: 490px) {
  .legalna__bg {
    max-width: 1060px;
    padding-top: 100px;
    height: 55%;
  }

  .legalna__container {
    max-width: 850px;
    padding: 61px 20px;
  }

  .legalna__title {
    font-size: 28px;
    max-width: 400px;
    margin-bottom: 22px;
  }

  .legalna__text {
    font-size: 17px;
    max-width: 246px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .legalna__link {
    padding: 15px 10px;
    font-size: 9px;
    width: 120px;
  }

  .legalna__link img {
    width: 18px;
    height: 12px;
    margin: -2px 0px 0px 6px;
  }
}

/*Section Opperta adaptive*/

@media (max-width: 1230px) {
  .main__opperta {
    padding-bottom: 150px;
  }

  .opperta__container {
    flex-wrap: wrap-reverse;
  }
}

@media (max-width: 767.98px) {
  .main__opperta {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .opperta__container {
    padding: 0px 50px;
  }
  .opperta__image {
    display: none;
  }

  .opperta__content {
    text-align: center;
    padding: 11px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 650px) {
  .opperta__container {
    padding: 0px 30px;
  }

  .opperta__top-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .opperta__title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  .opperta__text {
    font-size: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  .main__opperta {
    position: relative;
    margin-top: -160px;
  }
}

@media (max-width: 576px) {
  .main__opperta {
    margin-top: -250px;
  }

  .opperta__text p {
    margin-bottom: 15px;
  }
}

@media (max-width: 490px) {
  .main__opperta {
    margin-top: -240px;
  }
}

@media (max-width: 476px) {
  .main__opperta {
    position: relative;
  }

  .opperta__container {
    padding: 0px 15px;
  }

  .opperta__top-title {
    font-size: 18px;
  }
  .opperta__title {
    font-size: 13px;
  }
  .opperta__text {
    font-size: 13px;
  }
}

/*Section Etapy adaptive*/

@media (max-width: 600px) {
  .etapy__container {
    background-image: none;
    padding-bottom: 10px;
  }

  .etapy__container::before {
    display: none;
  }

  .etapy__top-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .etapy__title {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .etapy__items {
    row-gap: 30px;
  }

  .etapy__item {
    max-width: 231px;
    min-height: 100px;
  }

  .item-etapy__number {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .item-etapy__title {
    font-size: 15px;

    margin-bottom: 10px;
  }
  .item-etapy__text {
    font-size: 13px;
  }
}

/*Section Wolontariat adaptive*/

@media (max-width: 1125px) {
  .wolontariat__container {
    flex-wrap: wrap;
    padding: 0px 50px;
    padding-top: 0px;
  }
}

@media (max-width: 767.98px) {
  .wolontariat__image {
    display: none;
  }

  .wolontariat__content {
    margin-top: -40px;
    text-align: center;
    padding: 11px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .wolontariat__title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .wolontariat__text {
    font-size: 14px;
  }

  .wolontariat__text p {
    margin-bottom: 20px;
  }
}

@media (max-width: 400px) {
  .wolontariat__title {
    font-size: 18px;
    margin-bottom: 13px;
  }
  .wolontariat__text {
    font-size: 13px;
  }

  .wolontariat__text p {
    margin-bottom: 17px;
  }
}

/*Footer*/

@media (max-width: 830px) {
  .footer__kontakt {
    display: flex;
    flex-direction: column;
  }

  .link-watssap {
    margin-right: 10px;
  }
}

@media (max-width: 760px) {
  .footer__container {
    padding: 0px 30px;
  }

  .link-watssap {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .footer__opinie,
  .footer__kontakt {
    max-width: 400px;
    padding: 20px 11px;
    margin: 0 auto;
    margin-bottom: 37px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .footer__top-title {
    font-size: 20px;
    margin-bottom: 14px;
  }
  .footer__title {
    font-size: 14px;

    margin-bottom: 20px;
  }
  .footer__text {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .footer__link {
    padding: 20px 30px;
    max-width: 250px;
    font-size: 15px;
  }

  .footer__link img {
    margin: -8px 0px 0px 10px;
  }

  .link-watssap img {
    margin: -10px 0px 0px 10px;
  }
}

@media (max-width: 450px) {
  .footer {
    padding-bottom: 20px;
  }

  .footer__container {
    padding: 0px 30px;
  }

  .footer__opinie,
  .footer__kontakt {
    max-width: 350px;
    padding: 20px 5px;
  }
}
