/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}
/*=============== REUSABLE CSS CLASSES ===============*/
.contaner {
  max-width: 1120px;
  margin-inline: 1.5rem;
}
/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: 100;
}

/*=============== NAV ===============*/
.nav {
  height: 3.5rem;
}
body {
  padding-top: 89px; /* отступ равный высоте шапки */
  margin: 0;
  padding: 0;
}
.nav__logo, 
.nav__burger, 
.nav__close {
  color: hsl(220, 24%, 12%);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: 600;
}
.nav__logo img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Адаптивный логотип */
@media (max-width: 1024px) {
  .nav__logo img {
    height: 56px;
  }
}
@media (max-width: 768px) {
  .nav__logo img {
    height: 50px;
  }
}
@media (max-width: 480px) {
  .nav__logo img {
    height: 38px;
  }
}

/* Языковой переключатель по умолчанию (desktop) справа */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.lang-dropdown {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

.lang-toggle {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  background: transparent; /* по умолчанию прозрачный */
  border: 1px solid transparent; /* скрытая граница */
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  border: 1px solid #d7d7e5;
  background-color: #f5f5f5;
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #d7d7e5;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 6px 0;
  margin: 6px 0 0;
  display: none;
  width: 100px;
  z-index: 100;
}

.lang-menu li {
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-menu li:hover {
  background: #f2e7fb;
}

.lang-menu li.active {
  background: #f2e7fb;
  font-weight: bold;
  position: relative;
}

.lang-menu li.active::after {
  content: "✓";
  position: absolute;
  right: 10px;
  color: #3c2a98;
}


/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    padding-top: 1rem;
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
  }
  .nav__lang-switch {
    position: absolute;
    right: 2.3rem;
    top: 1rem;
    order: initial;
    margin-left: 0;
    display: flex;
  }
}

.nav__link {
  color: hsl(220, 24%, 12%);
  background-color: #fff;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: vhsl(220, 24%, 15%);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .contaner {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .contaner {
    margin-inline: auto;
  }

  .nav {
    height: calc(3.5rem + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }
}

.container1 {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
}
footer {
  position: relative;
  width: 100%;
  height: auto;
  padding-top: 80px;
  background-color: #fff;
}
.wrapper {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
}
.wrapper .footer-widget {
  width: calc(20% - 30px);
  margin: 0 15px 50px;
  padding: 0 12px;
}
.wrapper .footer-widget:nth-child(1) {
  width: calc(40% - 50px);
  margin-right: 15px;
}
.wrapper .footer-widget .logo {
  margin-bottom: 30px;
  vertical-align: middle;
}
.wrapper .footer-widget p {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 24px;
}
.wrapper .footer-widget .socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.wrapper .footer-widget .socials li {
  list-style: none;
}
.wrapper .footer-widget .socials li a {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  color: #fff;
  background-color: #3c2a98;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-out;
}
.wrapper .footer-widget .socials li a:hover {
  background-color: rgb(97, 84, 160);
}
.wrapper .footer-widget h6 {
  color: #585970;
  margin: 10px 0 35px;
  font-size: 20px;
  font-weight: 600;
}
.wrapper .footer-widget .links li {
  list-style: none;
}
.wrapper .footer-widget .links li a {
  color: #585970;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  text-decoration: none;
  text-transform: capitalize;
  line-height: 32px;
  transition: all 0.3s ease-out;
}
.wrapper .footer-widget .links li a span {
  margin: 0;
  display: inline-block;
}
.wrapper .footer-widget .links li a:hover {
  color: #3c2a98;
}
.copyright-wrapper {
  padding: 20px 0;
  border-top: 1px solid rgba(88, 89, 120, 0.4);
}
.copyright-wrapper p {
  color: rgba(88, 89, 120, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.copyright-wrapper p a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease-out;
}
.copyright-wrapper p a:hover {
  color: #3c2a98;
}
@media (max-width: 992px) {
  .container1 {
    max-width: 960px;
  }
  .wrapper .footer-widget,
  .wrapper .footer-widget:nth-child(1) {
    width: calc(50% - 30px);
  }
}
@media (max-width: 768px) {
  .container1 {
    max-width: 720px;
  }
  .wrapper .footer-widget,
  .wrapper .footer-widget:nth-child(1) {
    width: 100%;
    margin: 0 10px 50px;
  }
}