.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--c-gray-dark);
  border-radius: 0 0 20px 20px;
  height: 107px;
  transition: background-color 0.5s ease;
}

.header.fixed {
  background-color: var(--c-gray-dark);
}

.brikteam.header.fixed,
.reshenieteam.header.fixed {
  background-color: var(--c-gray-dark);
}

.header-content {
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.header-content:has(.header-center) {
  height: 100%;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header-right-absolute {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.header-top {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.header-top__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-gray-medium-light) !important;
}

.header-top__link::after {
  color: var(--c-gray-medium-light) !important;
}

/* 
.header-top__link.active::after {
	font-size: 14px;
	font-weight: 400;
	color: var(--c-gray-medium-light);
} */

.header-top a:hover,
.header-menu-links a:hover {
  opacity: 0.5;
  cursor: pointer;
}

.header-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.travel_and_deliver .header-menu {
  justify-content: flex-end;
}

.header-logo {
  display: block;
  width: 249px;
  height: 63px;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-menu-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-menu-links a {
  font-size: 18px;
  font-weight: 400;
  color: var(--c-white);
}

.header-menu-links a:last-child {
  color: var(--c-coral);
}

.header-burger-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--c-white);
  border-radius: 50%;
  cursor: pointer;
}

/* burger */

.burger {
  position: fixed;
  left: 0;
  top: 0;
  padding: 32px 20px;
  width: 100vw;
  height: 100vh;
  background-color: var(--c-gray-dark);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.burger.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.burger__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18%;
}

.reshenieteam .burger__top,
.brikteam .burger__top {
  margin-bottom: 45%;
}

.burger .header-burger-button {
  background-color: var(--c-gray-medium);
}

.burger__menu {
  padding-bottom: 60px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;
  border-bottom: 2px solid #515151;
}

.brikteam .burger__menu,
.reshenieteam .burger__menu {
  border-bottom: none;
}

.burger__menu a {
  font-size: var(--fz-h3);
  color: var(--c-white);
}

.burger__menu a:last-child {
  color: var(--c-coral);
}

.reshenieteam .burger__menu a:last-child,
.brikteam .burger__menu a:last-child {
  color: white;
}

.burger__links {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;
}

.burger__links a {
  font-size: var(--fz-text-primary);
  color: var(--c-gray-medium-light);
}

.burger-button-active svg {
  width: 12px;
}

.burger-button-active path {
  fill: #404040;
}

@media (max-width: 1299px) {
  .header-logo {
    width: 182px;
    height: 46px;
  }

  .header-menu-links {
    gap: 18px;
  }
}

@media (max-width: 992px) {
  .header-burger-button {
    display: flex;
  }

  .burger-button-closed svg {
    width: 16px;
  }

  .burger-button-closed path {
    fill: var(--c-gray-dark-light);
  }

  .header-top {
    display: none;
  }

  .header-menu {
    display: none;
  }

  .header-content:has(.header-center) {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-menu-links {
    gap: 15px;
  }

  .header-menu-links a {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .header {
    height: 75px;
  }

  .header-content {
    height: 64px;
  }

  .header {
    background-color: transparent;
  }

  .brikteam.header,
  .reshenieteam.header {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0) 85%);
  }

  .logo-link img {
    width: 182px;
  }

  .brikteam .logo-link img,
  .reshenieteam .logo-link img {
    width: 158px;
  }
}

/* modal */

.modal-cover {
  display: none;
  position: fixed;
  background-color: rgba(50, 50, 50, 0.5);
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 102;
}

.modal-message {
  display: none;
  width: 100%;
  height: 499px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 103;
}

.brikteam.modal-message,
.reshenieteam.modal-message {
  height: auto;
}

.brikteam .modal-message-content,
.reshenieteam .modal-message-content {
  background-color: var(--c-gray-dark);
}

.recruiter .modal-message-content {
  background-color: white;
}

.modal-message-content {
  position: relative;
  padding: 40px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: var(--border-radius-container);
  background-color: var(--c-gray-dark-light);
}

.modal-message-text {
  font-size: var(--fz-h2);
  font-weight: 500;
  color: var(--c-gray-medium-light);
}

.modal-message-close {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 23px;
  height: 23px;
  cursor: pointer;
}

.modal-message-close path {
  fill: var(--c-gray-medium-light);
}

@media (max-width: 576px) {

  .brikteam.modal-message,
  .reshenieteam.modal-message {
    height: 100%;
  }

  .modal-message {
    height: 100%;
    overflow-y: auto;
  }

  .modal-message-content {
    padding: 20px;
    height: unset;
  }
}

/* end modal */

/* modal terms */

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-background.active {
  opacity: 1;
  visibility: visible;
}

.modal-terms {
  position: absolute;
  border-radius: 20px;
  background-color: #FFFFFF;
  padding-inline: 38px;
  padding-block: 48px;
  max-width: 1050px;
  margin: 0 auto;

  opacity: 0;
  transition: opacity 0.4s ease;
  visibility: hidden;

  max-height: 90vh;
  overflow: scroll;
}

.modal-background.active .modal-terms {
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  opacity: 1;
  visibility: visible;
}

.modal-terms__title {
  font-weight: 600;
  font-size: 52px;
  color: #373A3B;
}

.modal-terms__what-pink-text {
  color: #FF335F;
}

.modal-terms__win {
  font-weight: 600;
  font-size: 32px;
  border-radius: 18px;
  color: #FFFFFF;
  background-color: rgba(255, 51, 95, 1);
  padding: 35px 0 43px 52px;
  margin-bottom: 55px;
}

.modal-terms__how p,
.modal-terms__what p {
  font-size: 24px;
}

.modal-terms__how-list,
.modal-terms__what-list {
  display: flex;
  flex-direction: column;
  row-gap: 35px;
  font-size: 24px;
  line-height: 30px;
}

.modal-terms__how-item::marker,
.modal-terms__how-span {
  font-weight: 600;
}

.modal-terms__how-title,
.modal-terms__what-title {
  color: #FF335F;
  font-weight: 600;
  font-size: 24px;
}

/* end modal terms */

/* modal participant */

.modal-participant {
  position: absolute;
  border-radius: 20px;
  background-color: #FFFFFF;
  padding-inline: 23px;
  padding-block: 30px;
  margin: 0 auto;
  max-width: 585px;

  opacity: 0;
  transition: opacity 0.4s ease;
  visibility: hidden;
}

.modal-background.active .modal-participant {
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  opacity: 1;
  visibility: visible;
  overflow: scroll;
}

.modal-participant__title {
  min-height: 145px;
  background-color: rgba(255, 51, 95, 1);
  /* background-image: url('../../../../../templates/main/images/map_modal.jpg'); */
  background-size: 100%;
  border-radius: 18px;
  color: #FFFFFF;
  font-size: 42px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 26px;
  margin-bottom: 43px;
}

.modal-participant__title.not-active {
  font-size: 24px;
  font-weight: 400;
  padding: 20px;
  margin: 0 !important;
}

.modal-participant__title:has(.modal-participant__title-error) {
  margin: 0;
  padding-inline: 23px;
  margin-bottom: 20px;
}

.modal-participant__title-error {
  font-size: 32px;
  padding-block: 20px;
}

.modal-participant__title-error a {
  color: white;
  text-decoration: underline !important;
  transition: none !important;
}

.modal-participant__title-success {
  font-size: 24px;
  padding-top: 20px;
  padding-bottom: 10px;
  padding-left: 0;
  padding-right: 23px;
}

.modal-participant__form {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  align-items: start;
  justify-content: center;
}

.modal-participant__label {
  font-weight: 400;
  font-size: 24px;
  color: #373A3B;
}

.modal-participant__input {
  background-color: rgba(230, 231, 232, 1);
  padding: 20px;
}

.modal-participant__input,
.modal-participant__input::placeholder {
  font-family: EuclidCircularA;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 5px;
}

.modal-participant__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.modal-participant__button {
  font-weight: 600;
  font-size: 24px;
  color: #FFFFFF;
  background: #FF335F;
  border-radius: 9px;
  cursor: pointer;
  padding-inline: 31px;
  padding-block: 17px;

  margin-bottom: 10px;
}

.modal-participant__button:hover {
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

/* end modal participant*/

/* modal city */

.modal-city {
  position: absolute;
  border-radius: 20px;
  background-color: #FFFFFF;
  padding-inline: 23px;
  padding-block: 30px;
  margin: 0 auto;
  max-width: 585px;

  opacity: 0;
  transition: opacity 0.4s ease;
  visibility: hidden;
}

.modal-background.active .modal-city {
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  opacity: 1;
  visibility: visible;
}

.modal-city__title-wrapper {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #FF335F;
  padding-left: 23px;
  display: flex;
  align-items: center;
  border-radius: 18px;
  height: 189px;

  margin-bottom: 45px;
}


.modal-city__title {
  margin: 0 !important;
  color: #FFFFFF;
  font-size: 42px;
  font-weight: 600;
}

.modal-city__description {
  font-size: 24px;
}

/* end modal city */

.header__button-gray {
  background-color: rgb(142 140 140);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.5s ease;

}

.header__button-gray:hover {
  background-color: rgb(122 120 120);
}

/* modal results */

.modal-results {
  cursor: auto;
  position: absolute;
  border-radius: 20px;
  background-color: #FFFFFF;
  padding-inline: 20px;
  padding-block: 30px;
  margin: 0 auto;
  width: 640px;

  opacity: 0;
  transition: opacity 0.4s ease;
  visibility: hidden;

  max-height: 90vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.modal-background.active .modal-results {
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  opacity: 1;
  visibility: visible;
}

.modal-results__title-wrapper {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #373A3B;
  padding-left: 23px;
  display: flex;
  align-items: center;
  border-radius: 18px;
  height: 152px;

  margin-bottom: 34px;
}

.modal-results__title {
  margin: 0 !important;
  color: #FFFFFF;
  font-size: 42px;
  font-weight: 600;
  white-space: nowrap;
}

.modal-results__description {
  font-size: 24px;
  padding-inline: 29px;
}

.modal-results__velo {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.modal-results__velo-lottie {
  width: 316px;
  height: 316px;
}

/* end modal results */

.modal-city,
.modal-participant,
.modal-terms {
  cursor: auto;
}

@media (max-width: 1440px) {

  .modal-participant,
  .modal-city,
  .modal-terms {
    padding: 20px;
  }

  .modal-participant {
    max-height: 90vh;
  }
}

@media (max-width: 992px) {

  .modal-results__description {
    padding: 0;
  }

  .modal-results__velo-lottie {
    width: 216px;
    height: 216px;
  }

  .modal-participant,
  .modal-city,
  .modal-terms,
  .modal-results {
    width: 100%;
    max-width: 90vw;
    height: fit-content;
    max-height: 90vh;
    overflow: scroll;
    padding: 15px;
  }

  #modal-city-dynamic {
    max-height: unset;
    border-radius: 0;
  }


  .modal-participant h2,
  .modal-city h2,
  .modal-terms h2,
  .modal-participant__title,
  .modal-participant h3,
  .modal-city h3,
  .modal-terms h3,
  .modal-results h2 {
    font-size: 24px;
    padding: 15px;
  }

  .modal-participant__title-success {
    font-size: 18px;
  }

  .modal-terms__title {
    padding: 0 !important;
  }

  .modal-participant__title-error {
    font-size: 18px;
  }

  .modal-terms__title,
  .modal-participant__title,
  .modal-participant__title-success {
    margin-bottom: 15px !important;
  }

  .modal-terms__win {
    font-size: 18px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .modal-terms__how-title,
  .modal-terms__what-title,
  .modal-city__description,
  .modal-results__description {
    font-size: 18px !important;
  }

  .modal-terms__how-title,
  .modal-terms__what-title {
    padding: 0 !important;
  }

  .modal-terms__how-list,
  .modal-terms__what-list {
    font-size: 16px;
    line-height: 1;
    row-gap: 15px;

    padding-left: 30px;

  }

  .modal-participant p,
  .modal-city p,
  .modal-terms p {
    font-size: 16px;
  }

  .modal-city__title-wrapper {
    height: 110px;
    padding: 0;
    margin-bottom: 20px;
  }

  .modal-city__title {
    width: 100%;
    text-align: center;
  }

  .modal-participant__input,
  .modal-participant__input::placeholder {
    width: 100%;
    font-size: 24px;
    letter-spacing: 3px;
  }

  .modal-participant__label,
  .modal-participant__button {
    font-size: 18px;
  }
}