/*Mobile*/
.mobile_button {
  padding: 0;
  background: transparent;
  border: transparent;
  width: 28px;
  height: 31px;
}

@media screen and (min-width: 768px) {
  .mobile_button {
    width: 40px;
    height: 40px;
  }
}

.mobile_button_burger {
  stroke: #173a56;
  width: 28px;
  height: 31px;
  transition:
    width 0.2s ease,
    height 0.2s ease;
}

@media screen and (min-width: 768px) {
  .mobile_button_burger {
    width: 40px;
    height: 40px;
  }
}

.mobile_button_burger:hover,
.mobile_button_burger:focus,
.mobile_button_burger:active {
  stroke: white;
}

/*Modal*/
.modal-overlay {
  background-color: rgba(20, 20, 20, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
}

.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (min-width: 768px) {
  .modal-overlay {
    justify-content: end;
  }
}

.modal {
  background-color: #02897a;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 411px;
  min-height: 584px;
  border-radius: 4px;
  background-color: #02897a;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 129px;
}

@media screen and (min-width: 768px) {
  .modal {
    max-width: 351px;
    min-height: 100%;
    right: 0;
    top: 0;
    transform: none;
    position: static;
    border-radius: 0;
  }
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0;
  background: transparent;
  border: transparent;
  width: 32px;
  height: 32px;
}

@media screen and (min-width: 768px) {
  .modal-close {
    width: 40px;
    height: 40px;
  }
}

.modal-close-cross {
  stroke: white;
  width: 32px;
  height: 32px;
}

@media screen and (min-width: 768px) {
  .modal-close-cross {
    stroke: white;
    width: 40px;
    height: 40px;
  }
}

.modal-close-cross:hover,
.modal-close-cross:active,
.modal-close-cross:focus {
  stroke: #173a56;
}

.modal_nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal_nav_piece {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.modal_nav_li {
  font-weight: 400;
  font-size: 16px;
  line-height: 175%;
  color: white;
}

.modal_nav_li:nth-child(3) {
  color: #173a56;
}

.modal_buttons {
  position: fixed;
  bottom: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.modal_button {
  border-radius: 30px;
  width: 102px;
  height: 43px;
  font-weight: 600;
  font-size: 16px;
  color: #173a56;
}

/*Modal*/
.header {
  border-bottom: 1px solid #e7e9fc;
}

.header_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_link_favicon {
  margin-right: 8px;
}

.header_link_favicon:hover {
  stroke: black;
}

.header_link_product {
  font-weight: 700;
  font-size: 30px;
  line-height: 93%;
  color: #173a56;
}

.header_nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header_nav_piece {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-right: 78px;
}

.header_nav_li {
  font-weight: 400;
  font-size: 16px;
  line-height: 175%;
}

.header_buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.header_button {
  width: 102px;
  height: 43px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
}

.header_button_white {
  border: 1px solid #bcd0e5;
  background-color: transparent;
  color: #173a56;
}

.header_button_green {
  background-color: #02897a;
  border: none;
  color: #fff;
}
