/* ================== FONTS ================== */
@font-face {
  font-family: "TT Lakes";
  src: url(../assets/fonts/TTLakes-Light.ttf) format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "TT Lakes";
  src: url("../assets/fonts/TTLakes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TT Lakes";
  src: url("../assets/fonts/TTLakes-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* ================== GLOBAL RESET ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "TT Lakes", sans-serif;
}

/* ================== MENU ================== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: 20px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.menu__icon {
  background: none;
  border: none;
  cursor: pointer;
  height: 40px;
  width: 40px;
}

.menu__logo {
  display: block;
  height: 51px;
  width: 97px;
  margin-left: -20px;
}

.menu__nav {
  flex-grow: 1;
}

.menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu__item {
  font-size: 16px;
  color: #1b1c21;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.menu__item--active {
  animation: pulse 2s infinite;
  color: #7e7e82;
  position: relative;
}

.menu__item--active::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #41f6d7;
}

/* ================== Hover effects ================== */
/* Ремонт техники — opacity + transition */
.menu__item:nth-child(1):hover {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Услуги и сервисы — glow effect using filter */
.menu__item:nth-child(2):hover {
  filter: brightness(1.3);
  transition: filter 0.3s ease;
}

/* Корпоративным клиентам — slight rotation */
.menu__item:nth-child(3):hover {
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

/* Продавцам техники — scale (enlargement) */
.menu__item:nth-child(4):hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Партнерам — inner shadow */
.menu__item:nth-child(5):hover {
  box-shadow: inset 0 -2px 0 #ff3e79;
  transition: box-shadow 0.3s ease;
}

/* Производителям — gradient background */
.menu__item:nth-child(6):hover {
  background: linear-gradient(to right, #41f6d7 0%, #ff3e79 100%);
  color: white;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Наши сервисные центры — rounded corners */
.menu__item:nth-child(7):hover {
  border-radius: 8px;
  background-color: #f4f4f4;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

/* Контакты — shadow and smooth movement */
.menu__item:nth-child(8):hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateX(2px);
  transition: all 0.3s ease;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Linear Gradient */
.menu__item:hover {
  border: 2px solid;
  border-image: linear-gradient(to right, #41f6d7, #ff3e79) 1;
  transition: border 0.3s ease;
}

/* 3D Rotation and Hover */
.menu__item:hover {
  transform: perspective(500px) rotateY(10deg);
  transition: transform 0.4s ease;
}

/* Hover Blur and Brightness */
.menu__item:hover {
  filter: brightness(1.2) blur(0.5px);
  transition: filter 0.3s ease;
}

/* Box shadow - Active state */
.menu__item:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}

/* ================== FOOTER ================== */
.menu__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu__actions {
  display: flex;
  gap: 16px;
}

.menu__action {
  background: #ff3e79;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu__email {
  font-size: 14px;
  color: #1b1c21;
  text-decoration: none;
}

.menu__phone {
  font-size: 24px;
  font-weight: bold;
  color: #1b1c21;
}

.menu__lang {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #7e7e82;
}

.menu__lang-item--active {
  color: #7e7e82;
}

.menu__lang-item {
  color: #1b1c21;
}
