body {
  font-family: "Quicksand", sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
.lang-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Увеличиваем расстояние для удобства нажатия на мобилках */
    gap: 12px; 
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase; /* Обычно языки (RU/UA) пишут капсом */
}

.lang-link {
    text-decoration: none;
    color: #EDEDF0;
    transition: all 0.3s ease;
    padding: 5px 2px; /* Увеличиваем зону клика */
    border-bottom: 2px solid transparent; /* Заготовка под подчеркивание */
}

.lang-link:hover {
    color: #ff9d00;
}

.lang-link.active {
    color: #ff9d00;
    border-bottom: 2px solid #ff9d00; /* Индикатор активного языка выглядит солиднее */
    cursor: default;
}

/* Скрываем разделитель на мобилках, если места мало, или делаем его тусклым */
.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    user-select: none; /* Чтобы разделитель нельзя было выделить курсором */
}
/* Блокировка скролла при открытом бургер-меню */
body.no-scroll {
  overflow: hidden;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header-main {
  
  display: flex;
  align-items: center;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.header-nav {
  display: none;
  position: fixed;
  flex-direction: column;
  background-color: #eee7e7;
  inset: 0;
  z-index: 50;
  padding: 2.5rem;
  overflow-y: auto;
  animation: burgerAnimation 0.3s;
}

.header-nav a {
  color: #272727;
  text-decoration: none;
  padding: 0.625rem;
  text-align: start;
}

.header-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.header-nav li {
  padding-bottom: 0.2rem;
}

/* Иконки соцсетей в шапке по умолчанию скрыты (мобилка) */
.social-icons {
  display: none;
}

/* Бургер */
.burger {
  display: flex;
  position: relative;
  z-index: 100;
  align-items: center;
  justify-content: flex-end;
  width: 1.875rem;
  height: 1.55rem;
  margin: 1.9rem 1rem 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #0f0e0e;
  transition: all 0.3s ease 0s;
}

.burger::before {
  top: 0;
}

.burger::after {
  bottom: 0;
}

.burger.active span {
  transform: scale(0);
}

.burger.active::before {
  top: 50%;
  transform: rotate(-45deg) translateY(-50%);
}

.burger.active::after {
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
}

/* Логотип и текст в шапке */
.logo img {
  height: auto;
  margin: 2vh 1vw 0;
  max-width: 4rem;
}

.logo-text {
  flex: 5;
  font-size: clamp(0.9rem, 1vw, 1.3rem);
}

.logo-title {
  color: #FD7F28;
  font-size: clamp(0.75rem, 0.9vw, 0.9rem);
  padding-left: 5px;
}

/* Активное мобильное меню */
.js-menu-active {
  display: flex;
}

/* Блоки контактов в шапке */
.telefon,
.mailto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 0.1em;
  padding: 0.1em;
  margin-top: 0.3em;
  width: 100%;
}

.telefon img,
.mailto img {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}

.contact-link,
.mailto a {
  font-weight: 700;
  color: #272727;
  text-decoration: none;
  font-style: normal;
}

.contact-link {
  font-size: clamp(1rem, 4vw, 2rem);
}

.mailto a {
  font-size: clamp(0.75rem, 2.5vw, 1.5rem);
  font-weight: 300;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown a {
  display: block;
  color: #272727;
  padding: 0.625rem;
  min-width: 150px;
}

.dropdown-menu a:hover {
  background-color: #FD7F28;
  color: #fff;
}

.dropdown .dropdown-menu {
  display: none;
}

/* Для мобильной версии: .open ставит display:block */
.dropdown.open .dropdown-menu {
  display: block;
}

/* Стрелочка в пункте "Цветной металл" */
.arrow-svg {
  width: 10px;
  height: 6px;
  margin-left: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

/* ==================== ДЕСКТОП (от 960px) ==================== */
@media (min-width: 60em) {
  header {
    display: grid;
    grid-template-areas:
      "main contacts"
      "nav nav";
    
    align-items: center;
  }

  .header-main {
    grid-area: main;
    font-size: clamp(1.1rem, 1vw, 1.3rem);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 1em;
    flex: 0 0 auto;
  }

  .logo img {
    max-width: 95px;
    margin: 0.5rem 0.5rem 0.5rem 1rem;
  }

  .logo-text {
    margin-left: 0.5vw;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
  }

  .logo-title {
    font-size: clamp(0.8rem, 1vw, 1rem);
  }

  .header-nav {
    box-sizing: border-box;
    grid-area: nav;
    display: flex;
    flex-direction: row;
    background-color: #fd7f28;
    padding: 5px;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    width: 100%;
  }

  .header-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .header-nav li {
    display: inline-block;
  }

  .header-nav .nav-text {
    color: #f0f0f0;
    font-size: clamp(0.71rem, 1vw, 1.4rem);
  }

  .nav-text:hover {
    color: #272727;
    transform: scale(1.2);
  }

  .header-contacts {
    grid-area: contacts;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }

  .burger {
    display: none;
  }

  .dropdown .dropdown-menu {
    background-color: #f0f0f0;
    top: 100%;
    left: 0;
    position: absolute;
    min-width: 100px;
    z-index: 1000;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown:hover .arrow-svg {
    transform: rotate(180deg);
  }

  .telefon,
  .mailto {
    flex-grow: 1;
    justify-content: space-evenly;
    gap: 0.1em;
  }

  .telefon img {
    width: 1.5em;
    height: 1.5em;
    padding-left: 5px;
    vertical-align: baseline;
  }

  .mailto img {
    width: 1.5em;
    height: 1.5em;
    vertical-align: text-top;
  }

  .contact-link {
    font-size: clamp(1.22rem, 2vw, 2.5rem);
  }

  .mailto a {
    font-size: clamp(0.8rem, 0.9vw, 1rem);
  }

  /* Соцсети в шапке на десктопе */
  .social-icons {
    display: flex;
    margin-left: 1vw;
    gap: 0.5em;
    align-items: center;
  }

  .social-icons a {
    width: 25px;
    height: 25px;
    background-color: #FD7F28;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 45%;
    transition: background-color 0.3s ease;
    color: #fff;
  }

  .social-icons a:hover {
    background: #FFA50080;
  }

  .social-icons svg {
    width: 15px;
    height: 15px;
  }
}
