@keyframes arrow-bounce {
  0%   { transform: scale(.9) translateY(0); }
  50%  { transform: scale(1) translateY(10px); }
  100% { transform: scale(.9) translateY(0); }
}

@keyframes arrow-bounce-left {
  0%   { transform: scale(.9) translateX(0); }
  50%  { transform: scale(1) translateX(-10px); }
  100% { transform: scale(.9) translateX(0); }
}

@keyframes arrow-bounce-right {
  0%   { transform: scale(.9) translateX(0); }
  50%  { transform: scale(1) translateX(10px); }
  100% { transform: scale(.9) translateX(0); }
}

.page {
  position: relative;
  min-width: 375px;
  max-width: 1920px;
  min-height: 100vh;
  color: var(--secondary-color);
  font-family: var(--main-font);
  line-height: var(--line-height);
  background-color: var(--primary-color);
}

.section {
  width: 100%;
  margin: 0 auto;
  background-color: var(--primary-color);
}

.section--accent {
  color: var(--primary-color);
  background-color: var(--accent-color);
}

.section__title {
  margin-bottom: 40px;
  font-family: var(--accent-font);
  font-weight: 800;
  font-size: var(--font-h2);
  text-align: center;
}

.section__subtitle {
  margin-bottom: 40px;
  font-family: var(--accent-font);
  font-weight: 800;
  font-size: var(--font-h3);
  text-align: center;
}

.section__text {
  font-size: var(--font-text-large);
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--container-padding-inline);
  padding-block: var(--container-padding-block);
}

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

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--btn-font-size);
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  scale: 1.1;
}

.btn--light {
  border: 3px solid var(--primary-color);
  background-color: transparent;
}

.btn--primary {
  background-color: var(--accent-color);
}

.btn--404 {
  margin-top: 40px;
}

.arrow-link {
  position: absolute;
  bottom: clamp(32px, 5vw, 100px);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
}

.arrow {
  animation: arrow-bounce 2s infinite ease-in-out;
}

.header {
  z-index: 999;
  left: 0;
  right: 0;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 40px 60px 50px -47px #48556a40;
}

/* Главная */
.header--main {
  position: fixed;
}
.header--main.transparent {
  color: var(--primary-color);
  background-color: transparent;
}
.header--main.scrolled {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Внутренние страницы */
.header--inner {
  position: static;
  background: var(--primary-color);
  color: var(--secondary-color);
}

.header.scrolled {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  box-shadow: 40px 60px 50px -47px #48556a40;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 0;
  padding-inline: var(--container-padding-inline);

}

.header__logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__logo {
  display: block;
  width: auto;
  height: 100%;
  min-height: 27px;
  max-height: 70px;
  object-fit: contain;
}

.nav {
  flex: 1;
  margin: 0 48px;
}

.nav__list {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.nav__link {
  font-weight: 500;
  font-size: 20px;
}

.nav__link,
.footer__link {
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after,
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav__link--active {
  color: var(--accent-color);
}

.nav__link:hover,
.footer__link:hover {
  color: var(--accent-color);
}

.nav__link:hover::after,
.footer__link:hover::after {
  width: 100%;
}

.nav__burger {
  display: none;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher:hover .icon.icon--small {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.toggle {
  background-color: transparent;
}

.icon {
  width: 32px;
  height: 32px;
}

.icon--small {
  width: 24px;
  height: 24px;
}

.phone-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: right 0.3s ease;
}

.mobile-menu.is-open {
  right: 0;
}

.mobile-menu__close {
  align-self: flex-end;
  border: none;
  font-size: 40px;
  background: none;
  cursor: pointer;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 20px;
}

/* Меню языков */
.langs-menu-top {
  display: none;
  position: absolute;
  top: 105%; /* под текущим языком */
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 100;
  min-width: 80px;
}

.langs-drop-down-top {
  list-style: none;
  margin: 0;
  padding: 0;
}

.langs-drop-down-top li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

.langs-drop-down-top li a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: bold;
}

/* Показ меню при hover */
.lang-switcher:hover .langs-menu-top {
  display: block;
}


/* Стили секций */
.background {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url(../assets/images/bg.png);
  background-size: cover;
  filter: brightness(30%);
  background-position: left center;
}

.main-hero {
  position: relative;
  height: 100vh; /* на весь экран */
  overflow: hidden;
  background-color: transparent;
}

/*.main-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(../assets/images/bg.png);
  background-position: center;
  background-size: cover;
  filter: brightness(30%);
}*/

.main-hero__container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-position: left center;
}

.main-hero__container > * {
  /* position: relative; */
  z-index: 2;
}

.main-hero__title {
  font-size: var(--font-h1);
  margin-bottom: 38px;
}

.main-hero__btn {
  margin-top: 48px;
}

.hero__container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7);
}

.hero__container > * {
  /*position: relative;*/
  z-index: 2;
}

.hero__title {
  font-size: 48px;
}

.hero__text {
  margin-top: 16px;
  font-size: var(--font-text-large);
}

.hero__btn {
  margin-top: 48px;
}

.about {
  background-color: #efefef;
  scroll-margin-top: 100px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid__card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid__card-icon {
  display: flex;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.grid__card-text {
  margin-top: 12px;
  font-family: var(--accent-font);
  font-weight: 600;
  font-size: var(--font-text-medium);
  line-height: 120%;
}

.grid__card-btn {
  display: inline-block;
  align-self: center;
  margin-top: 40px;
}

.divider__container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--container-padding-inline);

}

.divider {
  height: 1px;
  background-color: var(--secondary-color);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.section.our-benefits {
  background-color: #efefef;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card__icon {
  display: flex;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.benefit-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.benefit-card__title {
  margin-top: 12px;
  font-family: var(--accent-font);
  font-weight: 600;
  font-size: var(--font-text-medium);
  line-height: 120%;
}

.service,
.keypartner__container {
  text-align: center;
}

.keypartner {
  background-color: #efefef;
}

.keypartner__list {
  padding-left: 32px;
  font-size: var(--font-text-large);
  text-align: left;
  list-style: disc;
}

.keypartner__btn {
  margin-top: 48px;
}

.partners__slider-wrapper {
  align-self: center;
  max-width: 100%;
  margin-top: 32px;
}

.swiper {
  margin-right: 0;
  margin-left: 0;
}

.swiper-wrapper {
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent-color);
}

.swiper-button-prev::after {
  animation: arrow-bounce-left 2s infinite ease-in-out;
}

.swiper-button-next {
  animation: arrow-bounce-right 2s infinite ease-in-out;
}

.partners__image {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.footer {
  background-color: var(--primary-color);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  align-content: center;
  gap: 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(32px, 5vw, 100px);
  padding-block: clamp(24px, 4vw, 48px);
}

.footer__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__title {
  font-family: var(--accent-font);
  font-weight: 700;
  font-size: var(--font-h4);
}

.footer__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.footer__social-list {
  display: flex;
  gap: 16px;
}

.footer__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(32px, 5vw, 100px);
  padding-block: 24px;
  font-size: 14px;
}

.footer__policy {
  position: relative;
  text-decoration: none;
}

.footer__policy::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -16px;
  width: 1px;
  height: 20px;
  background-color: var(--primary-color);
}

.footer__lang-switcher {
  margin-left: auto;
}

@media (min-width: 320px) and (max-width: 767px) {
  .section__title {
    margin-bottom: 32px;
  }

  .nav {
    display: none;
  }

  .header__container {
    padding: 16px 24px;
  }

  .header__logo {
    width: auto;
    height: 48px;
    object-fit: contain;
  }

  .nav__burger {
    display: block;
  }

  .icon {
    width: 24px;
    height: 24px;
  }

  .icon--small {
    width: 18px;
    height: 18px;
  }

  .background {
    background-image: url(../assets/images/bg--mobile.png);
  }

  /*.main-hero::before {
    background-image: url(../assets/images/bg--mobile.png);
  }*/

  .hero__container {
    background-position: left center;
    background-size: cover;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__btn {
    margin-top: 32px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
  }

  .grid__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .grid__card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .grid__card-icon {
    display: flex;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

  .grid__card-text {
    margin-top: 12px;
    font-family: var(--accent-font);
    font-weight: 600;
    font-size: var(--font-text-medium);
    line-height: 120%;
  }

  .grid__card-btn {
    margin-top: 20px;
  }

  .card-grid--6 {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .keypartner__list {
    padding-left: 16px;
  }

  .keypartner__btn {
    margin-top: 32px;
  } 

  .footer__top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer__logos {
    flex-direction: row;
    /* justify-content: center; Тут надо подумать */
    overflow: hidden;
  }

  .footer__list-item {
    margin-top: 16px;
  }

  .footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    text-align: center;
  }

  .footer__policy {
    position: relative;
  }

  .footer__policy::before {
    display: none;
  }

  .footer__lang-switcher {
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .nav {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .footer__top {
    grid-template-columns: repeat(3,1fr);
  }

  .footer__logos {
    display: none;
  }
}



