@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/tilda-sans/TildaSans-VF.woff2") format("woff2"),
    url("/assets/fonts/tilda-sans/TildaSans-VF.woff") format("woff"),
    url("/assets/fonts/tilda-sans/TildaSans-VF.ttf") format("truetype");
  font-weight: 100 900; /* Вариативный диапазон веса */
  font-display: swap;
}
h1 {
  margin: 0;
}
a {
  text-decoration: none!important;
}
/* Пример использования шрифта */
body,
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "TildaSans", sans-serif;
  -webkit-font-smoothing: antialiased; /* Для WebKit-браузеров */
  -moz-osx-font-smoothing: grayscale; /* Для Firefox на Mac */
}

html {
  color: #e0e0e0;
}
.video-player {
  filter: none;
}


.logo,
.nav-link,
.link,
p {
  font-family: "TildaSans", sans-serif;
}
.logo {
  color: #e0e0e0;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  text-decoration: none;
  padding-bottom: 2rem;
  color: #e0e0e0;
  align-items: center;
  position: relative;
}
.social-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 0;
}
.about {
  margin-bottom: 20rem;
  margin-top: 15rem;
}
a {
  text-decoration: none;
}
.web {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20rem;
}
#motion {
  margin-bottom: 10rem;
}
.apps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20rem;
}
.apps-block-heading {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: #e0e0e0;
}
.block-heading {
  font-size: 150px;
  font-weight: 700;
  line-height: 150px;
  top: -59px;
  position: relative;
  color: #e0e0e0;
}
.about {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.text-block {
  width: 40vw;
  text-align: left;
}
.text {
  line-height: 33px;
  color: #e0e0e0;
  font-size: 33px;
  line-height: 1;
  font-weight: 400;
}
.hero-span {
  font-size: 230px;
  font-weight: 500;
  line-height: 160px;
}
.first-row {
  display: flex;
  color: #e0e0e0;
  flex-direction: column;
  align-items: flex-end;
}
.second-row {
  display: flex;
  color: #e0e0e0;
  flex-direction: column;
  align-items: flex-start;
}
.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}
body,
html {
  background-color: #101010!important; /* инверсия #f9f9f9 */
  color: #e0e0e0; /* инверсия #1f1f1f */
  height: max-content;
  display: flex;
  flex-direction: column;
  font-family: "TildaSans", sans-serif;
  padding: 1rem;
}
/* Хедер с наложением blend */
.header {
  position: fixed;
  top: 0;
  width: 92%;
  background-color: transparent;
  z-index: 1000;
  padding: 37px 35px 37px 35px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference; /* Инвертируем цвет при наложении */
}

.header-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.logo {
  font-size: 39px;
  font-weight: 800;
  pointer-events: all;
}

.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 0.5rem;
  font-size: 39px!important;
  color: white !important;
  text-decoration: none;
  pointer-events: all;
}

.link {
  color: #e0e0e0 !important; /* инверсия чёрного */
  font-size: 33px;
}
/* Бургер-меню */
.burger-menu {
  pointer-events: all;
  cursor: pointer;
}

.burger-icon {
  font-size: 36px;
  color: white;
  transition: all 0.3s ease;
}

.burger-icon:hover {
  transform: scale(1.2);
}

/* Исключение эффекта mix-blend для карточки */
.contact-container {
  position: relative;
  z-index: 1001; /* Выше хедера */
  mix-blend-mode: normal; /* Отключаем наложение для карточки */
}

/* Карточка контактов */
.contact-card {
  position: fixed;
  top: 0;
  right: -100%;
  width: 30vw;
  height: 60%;
  margin: 1rem;
  background: #181818;
  color: #e0e0e0;
  padding: 20px;
  transition: right 0.5s ease;
  z-index: 999;
  border: 1px solid #e0e0e0;
}

.contact-card p {
  margin: 0 0 2px;
  font-size: 33px;
  color: #e0e0e0;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 60px;
  cursor: pointer;
}

.close-button:hover {
  transform: scale(1.2);
}

/* Класс для отображения карточки */
.contact-card.open {
  right: 0;
  z-index: 9999; /* Убедитесь, что оверлей отображается поверх остальных элементов */
  position: fixed;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.social-items {
  display: flex;
  flex-direction: column;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .hero-span {
    font-size: 128px !important;
    font-weight: 500!important;
    line-height: 95px!important;
  }
  body {
    gap: 5rem!important;
    padding: 1rem!important;
    display: block!important;
  }
  .header {
    margin-top: 3rem!important;
  }
  .hero {
    display: flex!important;
    flex-direction: column!important;
    height: 100px!important;
    justify-content: center!important;
    gap: 5rem!important;
    height: 100vh!important;
  }
  .about {
    height: 72vh!important;
  }
  .apps {
    height: 72vh!important;
        justify-content: center!important;
  } 
  .text-block {
    width: 78vw!important;
  }
  .first-row {
    align-items: flex-start!important;
    fon
  }
  .second-row {
    align-items: flex-start!important;
  }
  .text {
    font-size: 22px!important;
  }
  section {
    z-index: 1;
  }
  .about {
    align-items: flex-start!important;
    margin-bottom: 4rem!important;
  }
  .header {
    padding: 0.5rem!important;
    width: 80% !important;
    position: fixed!important;
  }
  .web {
    display: flex!important;
    flex-direction: column!important;
    gap: 0!important;
    margin-bottom: 2rem!important;
  }
  .apps {
    gap: 4rem!important;
    display: flex!important;
    flex-direction: column!important;
    margin-bottom: 4rem!important;
  }
  .footer {
    display: flex!important;
    justify-content: flex-end!important;
    font-size: 20px!important;
    text-decoration: none!important;
    height: 14vh !important;
    padding-bottom: 2rem!important;
    flex-direction: column!important;
    align-items: center!important;
    position: relative!important;
  }
  .social-buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 0;
  }
  .apps-block-heading {
    font-size: 40px!important;
    font-weight: 700!important;
    line-height: 40px!important;
  }
  .block-heading {
    font-size: 89px!important;
    font-weight: 500!important;
    line-height: 95px!important;
  }
  #motion {
    margin-bottom: 10rem!important;
  }
  .logo {
    font-size: 24px!important;
  }
  .nav {
    display: none!important; /* Прячем навигацию на мобильных */
  }

  .burger-icon {
    font-size: 30px!important;
  }
  .header {
    pointer-events: all!important;
  }

  .contact-card {
    width: 100vw !important;  /* Растягиваем карточку на всю ширину экрана */
    height: 100vh !important; /* Растягиваем карточку на всю высоту экрана */
    top: 0 !important;
    right: -100% !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    border: none !important;
    margin: 0 !important;
    z-index: 9999;
  }

  .contact-card.open {
    right: 0 !important; /* Карточка появляется справа */
  }

  .contact-card p {
    font-size: 24px !important; /* Размер текста для мобильных устройств */
  }

  .close-button {
    font-size: 50px !important; /* Размер кнопки закрытия на мобильных */
    top: 20px !important;
    right: 20px !important;
  }

  .close-button {
    font-size: 60px!important;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px!important;
  }

  .burger-icon {
    font-size: 28px!important;
  }

  .contact-card p {
    font-size: 18px!important; /* Еще больше уменьшаем текст для маленьких экранов */
  }
}