:root {
  --accent-color: rgb(91, 41, 147);
  --main-font: "Montserrat", sans-serif;
  --main-font-color: rgb(64, 61, 68);
  --white-text-color: rgb(255, 255, 255);
  --shadow-background: rgba(64, 61, 68, 0.02);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  font-weight: 500;
  color: var(--main-font-color);
}

main {
  padding: 0;
}

.montserrat-alternates-semibold {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.montserrat-alternates-bold {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.montserrat-semibold {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  margin-bottom: 0;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

img {
  display: block;
}

ul,
li {
  list-style: none;
  text-decoration: none;
}

a {
  text-decoration: none;
}

.header {
  width: 100%;
}

.header .start {
  height: 64px;
}

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.main-title-container {
  width: 100%;
  padding: 0 16px;
  margin-bottom: 16px;
}

.main-title {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.00098em;
  color: var(--accent-color);
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

.main-title::after {
  display: block;
  content: "";
  border: 1px solid rgba(64, 61, 68, 0.2);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.main-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.header-nav-list {
  position: fixed;
  top: 64px;
  width: 100%;
  height: 100%;
  left: 0;
  background-color: rgb(255, 255, 255);
  z-index: 100;
  box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 320px) {
  .header {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
  }

  .nav-footer-list-link {
    color: inherit;
  }

  .join-btn {
    background-color: var(--accent-color);
    align-self: center;
    border-radius: 1000px;
    padding: 26px 44px;
  }

  .join-btn:hover {
    background-image: linear-gradient(
      to right,
      rgb(91, 41, 147),
      rgb(155, 104, 212)
    );
  }

  .join-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--white-text-color);
  }

  .email-text {
    color: rgb(213, 201, 90);
  }

  .social-media-item-icon {
    width: 22px;
    height: 22px;
    fill: white;
  }
}

.donation-hover {
  display: none;
  position: absolute;
}

.footer {
  background-color: rgb(91, 41, 147);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media screen and (max-width: 1279px) {
  .page-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-logo-img {
    display: block;
    width: 103px;
    height: 48px;
  }

  .mobile-menu-open {
    background-color: transparent;
    border: none;
    padding: 0;
    line-height: 0;
  }

  .mobile-menu-close {
    background-color: transparent;
    border: none;
    padding: 0;
    line-height: 0;
  }

  .mobile-menu-close-icon {
    width: 24px;
    height: 24px;
  }
  .header-navigation {
    display: flex;
  }
  .header-navigation :nth-child(2) {
    order: 3;
  }
  .header-navigation :nth-child(3) {
    order: 2;
  }

  .header-nav-item-container {
    display: flex;
    gap: 10px;
  }

  .heder-nav-text {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: black;
    padding-left: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-table {
    display: none;
    flex-direction: column;
    gap: 8px;
  }

  .is-opened .nav-table {
    display: flex;
  }

  .inner-mobile-menu-open-icon {
    transform: rotate(180deg);
  }

  .is-opened .inner-mobile-menu-open-icon {
    transform: rotate(0);
  }

  .nav-table-item {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--accent-color);
    padding-left: 32px;
    margin-right: auto;
  }

  .nav-table-link:link {
    color: var(--accent-color);
  }

  .header-nav-item-link {
    color: var(--main-font-color);
  }

  .inner-mobile-menu-open-btn {
    padding: 0;
    line-height: 0;
    border: none;
    width: 13px;
    height: 17px;
    background-color: white;
    /* box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); */
    align-self: center;
  }

  .nav-mobile-menu {
    display: none;
  }

  .nav-mobile-menu.mobile-menu-is-opened {
    display: block;
  }

  .lang-list {
    display: none;
  }
  .mobile-menu-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    gap: 10px;
    
  }
  .lang-mobile-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lang-mobile-list::before {
    content: "";
    display: inline-block;
    width: 90%;
    height: 2px;    
    background-color: black;
    opacity: 40%;
   }

  .lang-mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 30px;   
  }
  .lang {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
  }
  
  .deactivated-lang-mobile {
    color: var(--main-font-color);
    opacity: 0.4;
  }

  .menu-none {
    display: none;
  }

  .nav-table.menu-none {
    display: none;
  }

  .inner-mobile-menu-close-btn.menu-none {
    display: none;
  }

  .mobile-menu-handler.is-hidden {
    display: none;
  }

  /* FOOTER */
  .footer {
    padding: 32px 0;
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 32px;
  }

  .footer-logo {
    width: 183px;
    height: 73px;
  }

  .nav-footer-part {
    align-self: start;
  }

  .nav-footer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
  }

  .nav-footer-list-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: var(--white-text-color);
    margin: 0;
  }

  .nav-footer-list-items {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.55;
    color: var(--white-text-color);
  }

  .donation-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgb(224, 215, 134);

    border-radius: 10px;
  }

  .donation-link-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.55;

    color: var(--accent-color);
  }

  .donation-footer-text {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    width: 239px;
    color: var(--white-text-color);
    text-align: center;
  }

  .social-media-footer-list {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .footer-social-media-text {
    font-weight: 600;
    font-size: 14px;
    width: 160px;
    text-align: center;
    color: var(--white-text-color);
  }
}

@media screen and (min-width: 800px) {
  .nav-footer-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    color: white;
    align-self: center;
  }
}

@media screen and (min-width: 1280px) {
  .header {
    box-shadow: none;
  }

  .header .start {
    height: 118px;
  }

  .lang-list {
    width: 300px;
  }

  .container {
    max-width: 1778px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 0;
  }
  .container.page-header-container {
    padding: 0;
  }

  .regular-section {
    background-color: var(--white-background-color);
  }

  .main-title {
    font-size: 40px;
    line-height: 1.1;
    margin-top: 8px;
    margin-bottom: 8px;
    text-shadow: none;
  }

  .main-title::after {
    margin-top: 30px;
    margin-bottom: 24px;
  }

  .join-btn {
    padding: 24px 38px;
  }

  .join-link {
    font-size: 16px;
  }

  /* HEADER */
  .header-navigation {
    max-width: 1920px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
  }

  .header-logo-img {
    width: 252px;
    height: 98px;
    margin-right: 50px;
  }

  .header-nav-list {
    position: static;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
    justify-content: flex-end;
  }
  .lang {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-font-color);
  }
  .lang:active {
    color: var(--main-font-color);
  }
  .lang-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
  .lang-mobile-list {
    display: none;
  }

  .is-hidden {
    display: none;
  }
  .close-btn-none {
    display: none;
  }

  .mobile-menu-handler {
    display: none;
  }

  .nav-table {
    visibility: hidden;
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  .is-opened .nav-table {
    visibility: visible;
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .inner-mobile-menu-open-icon {
    transform: rotate(180deg);
  }

  .is-opened .inner-mobile-menu-open-icon {
    transform: rotate(0);
  }

  .inner-mobile-menu-open-btn {
    padding: 0;
    line-height: 0;
    border: none;
    background-color: white;
    align-self: center;
  }

  .inner-mobile-menu-open-icon {
    width: 13px;
    height: 26px;
  }

  .inner-mobile-menu-close-btn {
    display: none;
  }

  .header-nav-item {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.208;
    letter-spacing: 0;
    position: relative;
    padding: 46px 6px 46px 16px;
  }

  .header-nav-item-container {
    display: flex;
    gap: 10px;
    cursor: pointer;
  }

  .header-nav-item {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.208;
    letter-spacing: 0;
    position: relative;
  }

  .header-nav-item-link:visited {
    color: inherit;
  }
  .header-nav-item-link:link {
    color: inherit;
  }

  .heder-nav-text {
    font-weight: 700;
    font-size: 20px;
    padding-left: 0;
  }

  .nav-table {
    position: absolute;
    transform: translateY(45px);
    width: 302px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--accent-color);
  }
  .lang-nav-table {
  display: flex;
    gap: 20px;
    color: var(--accent-color);
    
  }
  .lang {
    color: var(--accent-color);
  }
  .deactivated-lang-mobile {
    color: var(--main-font-color);
    opacity: 0.4;
  }

  .nav-table-item {
    padding-top: 15px;
    padding-left: 16px;
    padding-bottom: 15px;
  }

  .nav-table-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--white-text-color);
  }

  .nav-table-link:hover,
  .nav-table-link:focus {
    color: rgb(213, 201, 90);
  }

  /* Footer */
  .footer {
    padding: 64px 100px;
  }

  .footer-section {
    max-width: 1268px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .footer-section:first-child {
    gap: 85px;
    margin-bottom: 16px;
  }

  .footer-section :nth-child(5) {
    order: 4;
  }

  .footer-section :nth-child(6) {
    order: 5;
  }

  .footer-section :nth-child(4) {
    order: 6;
  }

  .footer-logo {
    width: 312px;
    height: 121px;
  }

  .nav-footer-list {
    display: flex;
    gap: 24px;
    color: white;
    align-self: flex-end;
  }

  .nav-footer-list-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
  }

  .nav-footer-list-items {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.55;
  }

  .donation-link {
    position: relative;
    display: inline-block;
    padding: 8px 16px;
    background-color: rgb(224, 215, 134);

    border-radius: 10px;
    align-self: flex-end;
    margin-bottom: 108px;
  }

  .donation-link:hover > .donation-hover {
    display: block;
    transform: translate(-15%, 50%);
  }

  .donation-link-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.55;
    color: var(--accent-color);
  }

  .donation-footer-text {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    width: 500px;
    color: var(--white-text-color);
    text-align: center;
    order: 3;
  }

  .social-media-footer-list {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-right: 22px;
    order: 1;
  }

  .social-media-item-icon {
    width: 42px;
    height: 43px;
    fill: white;
  }

  .footer-social-media-text {
    width: 250px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--white-text-color);
    /* margin-right: 120px; */
    order: 2;
  }

  .main-title-container {
    margin-bottom: 0;
    padding: 0;
  }
}

@media screen and (max-width: 1279px) {
  body {
    margin: 0;
  }

  header,
  footer {
    padding: 8px;
  }

  header {
    padding-top: 0;
    padding-bottom: 0;
    background-color: white;
  }

  header.mobile-menu-is-opened {
    position: fixed;
  }

  main {
    padding-bottom: 0;
    padding-top: 0;
  }

  footer {
    padding-top: 0;
  }
}

.page404 {
  line-height: 400px;
  text-align: center;
  font-size: 24px;
}
