* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #17858d, #45ffa6, #c66161);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  padding-bottom: 50px;
  max-width: 1440px; /* Ограничение для больших экранов */
  margin: 0 auto; /* Центрирование */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #17858d, #45ffa6, #c66161);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  box-shadow: 0 1px 5px;
  z-index: 1000;
}

header .logo {
  font-size: 30px;
  font-weight: 900;
  color: #384847;
  transition: 0.5s;
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #374847;
  margin: 2px 0;
}

.nav-links {
  display: flex;
}

.nav-links li {
  position: relative;
  float: left;
}

.nav-links li a {
  padding: 15px;
  color: #374847;
  font-size: 16px;
  display: block;
}

.nav-links li a:hover {
  background: #94d8d6;
  color: #fff;
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: linear-gradient(45deg, #17858d, #45ffa6, #c66161);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

.search {
  position: relative;
  width: 60px; /* Увеличен размер для больших экранов */
  height: 60px; /* Увеличен размер для больших экранов */
  overflow: hidden;
  background: #fff;
  border-radius: 60px; /* Увеличен размер для больших экранов */
  transition: 0.5s;
  box-shadow: 0 0 0 5px #2573ef;
  transform: translateY(-130px);
}

.search .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px; /* Увеличен размер для больших экранов */
  height: 60px; /* Увеличен размер для больших экранов */
  background: #fff;
  border-radius: 70px; /* Увеличен размер для больших экранов */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  overflow: hidden;
}

.search .icon img {
  width: 50px; /* Увеличен размер для больших экранов */
  height: 50px; /* Увеличен размер для больших экранов */
  display: block;
}

.search.active {
  width: 600px; /* Увеличен размер для больших экранов */
}

.icon {
  transition: transform 0.5s;
}

.icon.rotate {
  transform: rotate(360deg);
}

.search .input {
  position: absolute;
  width: 330px; /* Увеличен размер для больших экранов */
  height: 70px; /* Увеличен размер для больших экранов */
  left: 70px; /* Увеличен размер для больших экранов */
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.search .input input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  font-size: 18px;
  padding: 10px ;
}

.clear {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.clear::before {
  position: absolute;
  content: "";
  width: 2px;
  height: 15px;
  background: #999;
  transform: rotate(45deg);
}

.clear::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 15px;
  background: #999;
  transform: rotate(-45deg);
}

.image_weather {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -130px;
  transition: margin-top 1s;
}

.weather-icon {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -280px;
}

.weather-icon img {
  width: 45px;
  height: 45px;
  display: block;
}

.number_weather {
  font-size: 16px;
  color: #2b1717;
  font-family: "Montserrat", sans-serif;
}

.currencs {
  gap: 15px;
}

.image_dollars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  transition: margin-top 1s;
}

.dollars-icon {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 100px;
}

.dollars-icon img {
  width: 35px;
  height: 35px;
  display: block;
}

.image_eur {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  transition: margin-top 1s;
}

.eur-icon {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 200px;
}

.eur-icon img {
  width: 25px;
  height: 25px;
  display: block;
}

.image_uon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  transition: margin-top 1s;
}

.uon-icon {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 290px;
}

.uon-icon img {
  width: 25px;
  height: 25px;
  display: block;
}

.dollar {
  font-size: 16px;
  color: #2b1717;
  font-family: "Montserrat", sans-serif;
}

.eur {
  font-size: 16px;
  color: #2b1717;
  font-family: "Montserrat", sans-serif;
}

.cny {
  font-size: 16px;
  color: #2b1717;
  font-family: "Montserrat", sans-serif;
}

.ad_onblock_da {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 50px;
  border: 2px solid #45c64a;
  padding: 10px;
  width: 100%;
}

.ad_onblock_da ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  width: 100%;
  justify-content: center; /* Горизонтальное выравнивание по центру */
  align-items: center;
}

.ad_onblock_da li {
  display: flex;
  align-items: center;
  width: calc(50% - 25px);
  max-width: 100%;
  background: #f9f9f900;
  border: 1px solid #cccccc00;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 5px; /* Добавьте отступы между элементами */
}

.ad_onblock_da li img {
  width: 90px;
  height: 90px;
  margin-right: 10px;
  flex-shrink: 0;
}

.ad_onblock_da li p {
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.nav-links .home-link {
  display: none;
}

.nav-links.active .home-link {
  display: block;
}

header .logo,
.burger-menu {
  z-index: 1001;
}
#name_company_2 {
  display: none; /* Скрываем по умолчанию */
}
#name_company_1 {
  display: none; /* Скрываем по умолчанию */
}

.app_android_apps {
  width: 320px;
  height: 60px;
  position: absolute;
  display: flex;
  flex-direction: column; /* Изменено на column */
  align-items: flex-start; /* Изменено на flex-start */
  padding-right: 95%;
  padding-bottom: 10%;
}

.app_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px; /* Добавляем отступ между контейнерами приложений */
}

.logo_apps {
  width: 60px;
  height: 60px;
  border-radius: 200px;
  margin-right: 10px; /* Добавляем отступ справа от логотипа */
}

.app_android_pro {
  margin: 0; /* Убираем стандартные отступы параграфа */
  font-size: 18px;
}

@media (max-width: 1000px) {
  .app_android_apps {
    flex-direction: row; /* Меняем направление на горизонтальное */
    justify-content: center; /* Центрируем элементы по горизонтали */
    align-items: center; /* Центрируем элементы по вертикали */
    padding-right: 0; /* Убираем лишний отступ */
    padding-top: 40%; /* Убираем лишний отступ */
    width: 100%; /* Занимаем всю ширину экрана */
  }

  .app_container {
    margin-bottom: 0;
    margin-right: 10px;
  }

  .logo_apps {
    height: 50px;
    width: 50px;
  }

  .app_android_pro {
    font-size: 15px;
  }
}
@media (max-width: 1000px) {
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: linear-gradient(45deg, #17858d, #45ffa6, #c66161);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .app_android_apps {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left:5%;
    padding-top: 80%;
    width: 100%;
  }

  .app_container {
    margin-bottom: 0;
    margin-right: 10px;
  }

  .logo_apps {
    height: 30px;
    width: 30px;
  }

  .app_android_pro {
    font-size: 10px;
  }
  body {
    font-size: 10px;
  }

  header .logo {
    font-size: 23px;
  }
  header {
    height: 60px;
  }
  .search {
    width: 40px;
    height: 40px;
  }

  .search.active {
    width: 240px;
  }

  .search .icon {
    width: 40px;
    height: 40px;
  }

  .search .icon img {
    width: 30px;
    height: 30px;
  }

  .search .input {
    width: 200px;
    height: 40px;
    left: 40px;
  }

  .image_weather {
    margin-top: -120px;
  }

  .weather-icon {
    width: 40px;
    height: 40px;
    margin-left: -200px;
  }

  .weather-icon img {
    width: 30px;
    height: 30px;
  }

  .number_weather {
    font-size: 14px;
  }

  .currencs {
    gap: 10px;
  }

  .image_dollars {
    margin-top: -40px;
  }

  .dollars-icon {
    width: 40px;
    height: 40px;
    margin-left: 70px;
  }

  .dollars-icon img {
    width: 25px;
    height: 25px;
  }

  .image_eur {
    margin-top: -40px;
  }

  .eur-icon {
    width: 40px;
    height: 40px;
    margin-left: 140px;
  }

  .eur-icon img {
    width: 20px;
    height: 20px;
  }

  .image_uon {
    margin-top: -40px; /* Подгонка под поисковую строку */
  }

  .uon-icon {
    width: 40px;
    height: 40px;
    margin-left: 210px; /* Подгонка под поисковую строку */
  }

  .uon-icon img {
    width: 20px;
    height: 20px;
  }

  .ad_onblock_da li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ad_onblock_da li p {
    display: none; /* Скрываем описание на маленьких экранах */
  }

  .ad_onblock_da li img {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  #name_company_1,
  #name_company_2 {
    display: block; /* Показываем название компании на маленьких экранах */
    font-size: 12px;
    margin-top: 5px;
  }
}

@media (max-width: 170px) {
  .app_android_apps {
    display: none;
  }
}



































/* Language switcher styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
  z-index: 1001;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196F3;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #ccc;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.language-label {
  margin-left: 10px;
  font-weight: bold;
  color: #374847;
  font-size: 16px;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-left: 10px;
  }
  
  .switch {
    width: 50px;
    height: 28px;
  }
  
  .slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .slider:before {
    transform: translateX(22px);
  }
  
  .language-label {
    font-size: 14px;
  }
}