*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #0c9f7f;
  --color-secondary: #0581a2;
  --color-accent: #136635;
  --color-bg: #f5f5f5;
  --color-text: #333;
}

@font-face {
  font-family: "Inter V";
  src: url("../fonts/Inter-LightItalic.otf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter V";
  src: url("../fonts/Inter-Regular.otf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter V";
  src: url("../fonts/Inter-SemiBold.otf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter V";
  src: url("../fonts/Inter-Bold.otf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  line-height: 1.5;
  font-family: "Inter V", sans-serif;
  background-color: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  border: none;
  background: none;
  outline: none;
}

html,
body {
  height: 100%;
}

header {
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
}

ul {
  list-style-type: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Чекбокс скрыт */
.menu-toggle {
  display: none;
}

/* Иконка бургера */
.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  color: #000;
}

/* Основное меню — desktop */
nav {
  padding-top: 9px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.nav-list li:hover {
  transform: scale(1.1);
}

.nav-list__link {
  display: inline-block;
  transition: transform 0.3s ease;
  padding: 10px;
}

.nav-list__link {
  transform: scale(1.1);
}

.logo {
  cursor: pointer;
  width: 100px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo a {
  display: block;
}

.language {
  position: relative;
  cursor: pointer;
}

/* Скрываем выпадающее меню по умолчанию */
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 1000;
  border-radius: 4px;
}

.language-dropdown li {
  padding: 5px 10px;
  white-space: nowrap;
}

.language-dropdown li:hover {
  background: #f0f0f0;
}

/* Показываем при наведении или фокусе */
.language:hover .language-dropdown,
.language:focus-within .language-dropdown {
  display: block;
}

main {
  margin-top: 72px;
  width: 100%;
}

@media (max-width: 1280px) {
  .container {
    max-width: 1000px;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 90%;
  }

  .nav-list li {
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 95%;
  }

  .burger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  nav.container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    gap: 10px;
  }

  /* Показать меню, если чекбокс включён */
  .menu-toggle:checked + .burger + nav .nav-list {
    display: flex;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 95%;
  }
}
