.footer {
  background: #c5c5c5;
  flex: 0 0 auto;
  border-top: 1px solid #e4e7f1;
}

.footer__wrapper {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  grid-template-columns: 2fr 2fr 2fr 2fr;
  justify-content: space-between;
  padding-top: 50px;
}

@media (max-width: 500px) {
  .footer__wrapper {
    padding: 40px 15px;
  }
}

.footer__title {
  display: block;
  margin: 0 0 2rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
}
.footer__title .mdi {
  display: none;
}
.footer__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__item {
  display: flex;
  font-size: var(--text-xxs);
  color: var(--color-text);
  font-weight: 400;
}

.footer__item svg {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  fill: currentColor;
  fill-rule: evenodd;
  margin-right: 1rem;
  flex-shrink: 0;
}

.footer__time,
.footer__phone {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.footer__time .footer__text {
  margin: 0;
  list-style: none;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
  padding: 0;
  display: flex;
  align-items: center;
}

.footer__adress.footer__text {
  display: flex;
  align-items: flex-start;
  font-size: 1.4rem;
}

.footer__adress.footer__text svg {
  margin-top: 0.2rem;
}

.footer__phone .footer__link {
  display: flex;
  align-items: center;
}

.footer__email.footer__link {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}

.footer__phone .footer__text {
  margin: 0;
  list-style: none;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 500;
  padding: 0;
}

.footer__text {
  color: var(--color-text);
  font-weight: 400;
  font-size: var(--text-xxs);
  line-height: 16px;
  letter-spacing: 1px;
  padding: 0 0 1.5rem;
}

.footer__text_form {
  font-style: italic;
}

.footer__email {
  width: 100%;
  font-size: var(--text-xxs);
  line-height: 1.33;
  border-radius: 6px 0 0 6px;
  color: var(--color-text);
  font-family: inherit;
  font-weight: inherit;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  padding: 3px;
  margin: 0;
}

.footer__link {
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

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

.footer__logout-form {
  display: block;
  width: 100%;
  margin: 0;
}

button.footer__logout-submit {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

.footer__item .mdi {
  margin-right: 10px;
  font-size: 1.1rem;
  position: relative;
  top: 1px;
}

.footer__title .mdi {
  font-size: 1.4rem;
}

.footer__form-container {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--color-border);
}

.footer__input {
  display: block;
  flex: 1 1 auto;
  padding: 10px;
  margin: 0;
  border: none;
  outline: none;
}

.footer__button {
  display: block;
  width: 110px;
  height: 45px;
  background-color: var(--main-backgroun-color);
  font-size: var(--text-xxs);
  line-height: 18px;
  letter-spacing: 1px;
  border: none;
}

.footer__container {
  width: 100%;
  background-color: var(--main-backgroun-color);
}

.footer__dropdown {
  width: 80%;
  margin: 0 auto 80px;
}

.footer__dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 0 0 10px;
  transition: all 0.4s ease-in-out;
}

.footer__dropdown-btn .footer__title {
  margin: 0;
}

.footer__dropdown-btn_active {
  background-color: #e5e5e5;
  border-radius: 10px;
}

.footer__dropdown-btn_active .mdi {
  transform: rotate(180deg);
}

.footer__dropdown-items {
  padding: 0 15px;
  margin: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.footer__dropdown_hidden {
  display: none;
}

.footer__dropdown-items_hidden {
  height: 0 !important;
  visibility: hidden;
}

.footer__column {
  margin: 0 10px;
  max-width: 300px;
}

@media (max-width: 1199px) {
  .footer__wrapper {
    width: 80%;
  }
}
@media (max-width: 991px) {
  .footer__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 60%;
    justify-items: flex-start;
  }
  .footer__column {
    margin: 0 0 15px;
  }
  .footer__column:last-child {
    margin: 0;
  }
  .footer__dropdown_hidden {
    display: block;
  }
  .footer__copy {
    justify-content: center;
    max-width: 784px;
    width: 100%;
  }
  .footer__copy-left {
    margin-right: 20px;
  }
}

@media (max-width: 767px) {
  .footer__wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 92%;
  }

  .footer__title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .footer__title_acitve .mdi {
    transform: rotate(180deg);
  }
  .footer__title .mdi {
    display: block;
    transition: all 0.4s ease-in-out;
  }
  .footer__column {
    width: 100%;
    max-width: none;
  }
  .footer__items {
    display: none;
  }
  .footer__copy {
    flex-direction: column;
    align-items: center;
  }
  .footer__copy-left {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  .footer__copy-right {
    margin-bottom: 10px;
  }
}



