@font-face {
  font-family: "LogoFont";
  src: url(../fonts/jsmath-cmmi10.ttf);
}

@font-face {
  font-family: "ABeeZee";
  src: url(../fonts/ABeeZee-Regular.ttf);
}

:root {
  --header-color--: #914343;
  --footer-color--: #436591;
  --background-color--: #f8fafd;
  --white-color--: #ffffff;
  --black-color--: #000000;
  --yellow-color--: #fcbd14;
  --blue-color--: #2389ca;
  --red-color--: #ed6e44;
  --green-color--: #2fa56c;
  --radio-color--: #f69472;
  --violet-color--: #985ace;
  --lines-color--: #e1e7ef;
  --gray-color--: #7a8698;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "ABeeZee", sans-serif;
  background-color: var(--background-color--);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

.button {
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.button--yellow {
  background-color: var(--yellow-color--);
  color: var(--black-color--);
  box-shadow: 0px 5px 15px rgba(252, 189, 20, 0.4);
}

.button--green {
  background-color: var(--green-color--);
  color: var(--white-color--);
}

.button--orange {
  background-color: var(--red-color--);
  color: var(--white-color--);
}

.button--white {
  background-color: var(--white-color--);
  color: var(--black-color--);
}
.container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--header-color--);
  min-height: 75px;
  margin-bottom: auto;
}
.logo {
  cursor: pointer;
}
.menu {
  display: flex;
  gap: 25px;
}

.menu-link {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

.user-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 390px;
  width: 100%;
}
.user-actions__phone-mail {
  display: flex;
  gap: 10px;
}
.user-actions__phone {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.user-actions__mail {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.user-actions__auth {
  color: var(--white-color--);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* Новые стили для адаптива */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.burger-button {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.burger-button span {
  background: var(--white-color--);
  height: 2px;
  width: 100%;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-button span:nth-child(1) {
  position: absolute;
  top: 0;
}

.burger-button span:nth-child(2) {
  position: absolute;
  top: 8px;
}

.burger-button span:nth-child(3) {
  position: absolute;
  top: 16px;
}

/* Активное состояние бургера */
.burger-menu.active .burger-button span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.burger-menu.active .burger-button span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-button span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* Мобильное меню */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  height: 45vh;
  background: var(--header-color--);
  z-index: 1000;
  flex-direction: column;
  padding: 0px 20px;
}

.mobile-overlay.active {
  display: flex;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.mobile-link {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 20px;
}
.mobile-contacts__phone-mail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
}
.mobile-phone,
.mobile-mail {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.mobile-auth {
  color: var(--white-color--);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
}
.mobile-auth p {
  text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .user-actions {
    max-width: 350px;
  }

  .menu {
    gap: 20px;
  }
}
@media (max-width: 968px) {
  .user-actions__mail {
    display: none;
  }
  .user-actions {
    justify-content: center;
    gap: 20px;
    max-width: max-content;
  }
}
@media (max-width: 840px) {
  .user-actions__phone {
    display: none;
  }
}
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .menu,
  .user-actions {
    display: none;
  }

  .header__container {
    padding: 0 20px;
  }
  .mobile-overlay {
    flex-direction: column-reverse;
    justify-content: start;
  }
  .mobile-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  .mobile-link {
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mobile-overlay {
    top: 70px;
    height: 50vh;
  }

  .mobile-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .mobile-link {
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }
  .mobile-contacts__phone-mail {
    gap: 30px;
  }
}
@media (min-width: 769px) {
  .mobile-overlay {
    display: none !important;
  }

  .burger-menu.active .burger-button span {
    transform: none !important;
    opacity: 1 !important;
  }
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: var(--footer-color--);
  padding: 40px 0;
  margin-top: auto;
}

.footer__container {
  justify-content: start;
  height: max-content;
  gap: 60px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  height: 180px;
}

.footer__logo img {
  width: 220px;
  margin-bottom: 55px;
}

.footer__logo p {
  color: var(--white-color--);
  font-size: 12px;
}

.footer__support-text {
  font-size: 14px;
  color: var(--white-color--);
  max-width: 295px;
  width: 100%;
  margin-bottom: 25px;
}

.footer__right {
  min-height: 180px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.footer__contacts h2 {
  font-size: 14px;
  color: var(--white-color--);
  font-weight: 400;
  margin-bottom: 18px;
}

.footer__contacts-links {
  display: flex;
  justify-content: start;
  gap: 10px;
}

.footer__contacts-link {
  color: var(--white-color--);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.license {
  font-size: 14px;
  text-decoration: underline;
  color: var(--white-color--);
}

.footer__nav {
  height: 180px;
  align-items: end;
}
.footer__nav a {
  white-space: nowrap;
}

/* Адаптивность для планшетов */
@media (max-width: 1200px) {
  .footer__container {
    gap: 30px;
  }
}
@media (max-width: 1024px) {
  .footer__logo img {
    width: 180px;
  }

  .footer__support-text {
    max-width: 300px;
    width: 100%;
  }
  .footer__contacts-links {
    flex-direction: column;
  }
  .footer__logo img {
    width: 150px;
  }
}
@media (max-width: 840px) {
  .footer__contacts-link {
    font-size: 12px;
  }
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
  }

  .footer__container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    height: auto;
    align-items: center;
    order: 1;
  }

  .footer__logo img {
    width: 150px;
    margin-bottom: 20px;
  }

  .footer__nav {
    display: flex;
    height: auto;
    order: 2;
    align-items: center;
  }

  .footer__nav.menu {
    flex-direction: column;
    gap: 15px;
  }

  .footer__right {
    height: auto;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__support-text {
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .footer__contacts {
    margin-bottom: 30px;
    align-items: center;
  }

  .footer__contacts-links {
    flex-direction: column;
    gap: 8px;
  }

  .license {
    text-align: center;
  }
}

/* Адаптивность для маленьких мобильных устройств */
@media (max-width: 480px) {
  .footer {
    padding: 25px 0;
  }

  .footer__container {
    gap: 25px;
    padding: 0 15px;
  }

  .footer__logo img {
    width: 130px;
    margin-bottom: 15px;
  }

  .footer__nav.menu {
    gap: 12px;
  }

  .menu-link {
    font-size: 14px;
  }

  .footer__support-text {
    font-size: 13px;
  }

  .footer__contacts-link {
    font-size: 13px;
  }

  .license {
    font-size: 13px;
  }
}

/* Дополнительные улучшения для доступности */
.footer__contacts-link:hover,
.license:hover {
  opacity: 0.8;
}

.menu-link {
  transition: opacity 0.3s ease;
}

.menu-link:hover {
  opacity: 0.8;
}
