@font-face {
  font-family: 'Macherie';
  src: url("/static/fonts/macherie.452d2c75e5d0.woff2") format('woff2'),
       url("/static/fonts/macherie.1a180c75eae1.ttf") format('truetype');
}

@font-face {
  font-family: 'Circe Bold';
  src: url("/static/fonts/circe-bold.4502f23814ae.woff2") format('woff2'),
       url("/static/fonts/circe-bold.22f16521a7d1.ttf") format('truetype');
}

@font-face {
  font-family: 'Circe Light';
  src: url("/static/fonts/circe-light.501ee8c738d8.woff2") format('woff2'),
       url("/static/fonts/circe-light.9fd3216596f2.ttf") format('truetype');
}

:root {
  /* Colors */
  --main-brown: #401A04;
  --main-orange: #F2622E;
  --main-dark-grey: #807a7a;
  --main-latte: #EDE0D4;
  --background-color: #FFFCF2;
  /* Sizes */
  --line-height: 0.2rem;
  --circle-height-width: 0.7rem;
  --img-main-border: 0.3rem solid var(--main-brown);
}

html {
  font-size: 20px;
  overflow-x: hidden;
  background-color: var(--background-color);
}

header {
  font-family: 'Circe Bold', sans-serif;
}

footer {
  font-family: 'Circe Bold', sans-serif;
}

main {
  font-family: 'Circe Light', sans-serif;
}

.adaptive {
  max-width: 2560px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  justify-content: center;
  align-items: center;
}

/* Основные стили для меню */
.nav-menu {
  display: flex;
  height: 4.7rem;
  justify-content: space-between;
  border: 2px solid var(--main-brown);
  border-top: 0;
  border-radius: 0 0 2.35rem 2.35rem;
  align-items: center;
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 0.6%;
  padding-bottom: 0.6%;
}

.nav-menu ul {
  list-style: none;
  display: flex;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a.user-menu {
  background-color: var(--main-brown);
  color: var(--background-color);
}

#logout-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

#logout-form button {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-menu a:not(.logo-link) {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--main-brown);
  display: block;
  width: 8rem;
  margin-left: 0.6rem;
  border: 0.1rem solid var(--main-brown);
  border-radius: 2rem;
  text-align: center;
}

.btn-primary {
  box-shadow: 0 2px 8px rgba(255, 124, 47, 0.10);
  transition:
    background 0.25s cubic-bezier(.4,0,.2,1),
    color 0.25s cubic-bezier(.4,0,.2,1),
    box-shadow 0.25s cubic-bezier(.4,0,.2,1),
    transform 0.18s cubic-bezier(.4,0,.2,1),
    border-color 0.25s cubic-bezier(.4,0,.2,1);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--main-orange) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(255, 124, 47, 0.22);
  border-color: var(--main-orange) !important;
  transform: scale(1.08);
}

.btn-primary:active {
  background: var(--main-orange) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 124, 47, 0.24);
  transform: scale(0.98);
}

.nav-link-wrapper {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition:
    background 0.25s cubic-bezier(.4,0,.2,1),
    color 0.25s cubic-bezier(.4,0,.2,1),
    box-shadow 0.25s cubic-bezier(.4,0,.2,1),
    transform 0.18s cubic-bezier(.4,0,.2,1),
    border-color 0.25s cubic-bezier(.4,0,.2,1);
}

.nav-link-wrapper:hover,
.nav-link-wrapper:focus {
  background: var(--main-orange) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(255, 124, 47, 0.22);
  border-color: var(--main-orange) !important;
  transform: scale(1.08);
}

.nav-link-wrapper:active {
  background: var(--main-orange) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 124, 47, 0.24);
  transform: scale(0.98);
}

.fox-upper {
  position: absolute;
  z-index: 4;
  left: 28.5%;
  top: -79%;
  width: 3.5rem;
  height: 2rem;
  transition: transform 0.2s;
}

.nav-link-wrapper:hover .fox-upper {
  transform: scale(1.05);
}

.fox-bottom {
  position: absolute;
  left: 34%;
  top: 39%;
  width: 3.5rem;
  height: 2rem;
  transition: filter 0.2s, transform 0.2s;
}

.nav-link-wrapper:hover .fox-bottom {
  filter: drop-shadow(0 4px 8px rgba(255,124,47,0.25));
  transform: rotate(10deg) scale(1.1);
}

.nav-link {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  display: block;
  color: inherit;
  background: transparent;
}

.logo {
  width: 8rem;
  aspect-ratio: 16 / 9;
}

.burger-menu {
  display: none;
  z-index: 100;
}

.burger-menu .active-link {
  left: 29.5%;
  top: -50%;
}

.burger-menu .active-link.bottom {
  left: 34%;
  top: 40%;
}

.bar {
  width: 3.8rem;
  height: 0.75rem;
  background-color: var(--main-brown);
  margin-bottom: 0.2rem;
  border-radius: 0.45rem;
}

@keyframes slideInBurger-links {
  0% {
    right: -13rem;
  }
  100% {
    right: 0;
  }
}

.burger-menu .burger-links {
  display: none;
  position: absolute;
  flex-direction: column;
  top: 0;
  right: 0;
  height: 21rem;
  width: 13rem;
  background-color: var(--background-color);
  border: 2px solid var(--main-brown);
  border-right: 0;
  border-radius: 40px 0 0 40px;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: slideInBurger-links 0.65s ease forwards;
}

.burger-menu .burger-links ul {
  flex-direction: column;
  padding: 0;
}

.burger-menu .burger-links a {
  text-decoration: none;
  border: 2px solid var(--main-brown);
  width: 8.5rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  margin-left: 0;
  line-height: 2rem;
}

.cross {
  display: none;
  cursor: pointer;
  margin: 2rem;
}

.cross div:before,
.cross div:after {
  content: '';
  position: absolute;
  width: 3.3rem;
  height: 0.85rem;
  border-radius: 0.45rem;
  background-color: var(--main-brown);
}

.cross div:before {
  transform: rotate(45deg);
}

.cross div:after {
  transform: rotate(-45deg);
}

/* Основные стили для footer */
.main-footer {
  color: var(--main-brown);
  text-align: center;
  font-size: 1.2rem;
  margin: 1rem;
}

.content {
  display: grid;
  grid-template-columns: 0.9fr;
  justify-content: center;
}
