.screen {
  background-color: #fcfcfc;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.screen .div {
  background-color: #fcfcfc;
  width: 1512px;
  height: 2441px;
  position: relative;
}

.screen .overlap {
  position: absolute;
  width: 1036px;
  height: 150px;
  top: 113px;
  left: 72px;
}

.screen .text-wrapper {
  width: 1036px;
  top: 0;
  left: 0;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 75px;
  line-height: 75px;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.vector {
    width: 224px;
    height: 51px;
    margin-bottom: 0;
}

.screen .text-wrapper-2 {
  width: 1036px;
  top: 1692px;
  left: 72px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 75px;
  line-height: 75px;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .p {
  width: 1373px;
  top: 1017px;
  left: 72px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 55px;
  line-height: 55px;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .span {
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  color: #333333;
  font-size: 55px;
  letter-spacing: 0;
  line-height: 55px;
}

.screen .text-wrapper-3 {
  position: relative;
}

.text-wrapper-3 {
    position: relative;
}

.screen .text-wrapper-4 {
  width: 563px;
  top: 1817px;
  left: 764px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 35px;
  line-height: 35px;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .element {
  width: 563px;
  top: 2369px;
  left: 474px;
  font-family: "Vela Sans-Light", Helvetica;
  font-weight: 300;
  font-size: 15px;
  text-align: center;
  line-height: 15px;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .text-wrapper-5 {
  top: 42px;
  left: 72px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 25px;
  line-height: 25px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .text-wrapper-6 {
  top: 42px;
  left: 917px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 25px;
  line-height: 25px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .text-wrapper-7 {
  top: 42px;
  left: 1333px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 25px;
  line-height: 25px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .text-wrapper-8 {
  top: 42px;
  left: 514px;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 25px;
  text-align: right;
  line-height: 25px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .c {
  position: absolute;
  width: 1374px;
  height: 578px;
  top: 306px;
  left: 72px;
}

.screen .view {
  position: absolute;
  width: 280px;
  height: 64px;
  top: 1968px;
  left: 764px;
}

.screen .overlap-group {
  position: relative;
  width: 278px;
  height: 64px;
  background-color: #fcfcfc;
  border-radius: 36.93px;
  border: 2px solid;
  border-color: #d0d0d0;
}

.screen .text-wrapper-9 {
  top: 9px;
  left: 47px;
  -webkit-text-stroke: 0.68px #d0d0d0;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 35px;
  line-height: 35px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .overlap-wrapper {
  width: 280px;
  top: 1968px;
  left: 1062px;
  position: absolute;
  height: 64px;
}

.screen .text-wrapper-10 {
  top: 9px;
  left: 55px;
  -webkit-text-stroke: 0.68px #d0d0d0;
  font-family: "Vela Sans-Medium", Helvetica;
  font-weight: 500;
  font-size: 35px;
  line-height: 35px;
  white-space: nowrap;
  position: absolute;
  color: #333333;
  letter-spacing: 0;
}

.screen .line {
  position: absolute;
  width: 1373px;
  height: 1px;
  top: 2347px;
  left: 69px;
  object-fit: cover;
}

.screen .line-wrapper {
  width: 96px;
  top: 2164px;
  left: 1349px;
  background-color: #ffffff;
  border-radius: 36.93px;
  border: 2px solid;
  border-color: #d0d0d0;
  position: absolute;
  height: 64px;
}

.screen .img {
  position: absolute;
  width: 43px;
  height: 40px;
  top: 10px;
  left: 25px;
}

.screen .element-2 {
  position: absolute;
  width: 585px;
  height: 410px;
  top: 1818px;
  left: 72px;
}

.screen .text-wrapper-11 {
  position: absolute;
  top: 224px;
  left: 1182px;
  font-family: "Vela Sans-SemiBold", Helvetica;
  font-weight: 600;
  color: #333333;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 30px;
  text-decoration: underline;
  white-space: nowrap;
}

/* Additional styles */
body {
  font-family: "Vela Sans", Helvetica, Arial, sans-serif;
  color: #333333;
  line-height: 1.5;
}

.hero {
  padding-top: -20px;
  position: relative;
}

/* Hero section styles */
.hero-title {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 30px;
}

.logo-line {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.vector {
    width: 224px;
    height: 51px;
    margin-right: 20px;
    margin-left: 50px;
}

.first-line, .second-line {
    font-size: 75px;
    line-height: 1.2;
}

.second-line {
    margin-left: 54px; /* 224px (logo) + 20px (margin) + 10px (dash) */
    margin-top: -15px;
    margin-bottom: 25px;
}

.email-link {
    position: absolute;
    right: 0;
    top: 140px;
    margin-right: 60px;
    color: #333;
    text-decoration: underline;
    font-size: 30px;
    font-weight: 600;
}

.email-link:hover {
    color: #333;
    text-decoration: underline;
}

.showcase {
    margin: 10px auto;
    width: 100%;
    max-width: 1374px;
}

.mission {
  max-width: 1373px;
  margin: 0 auto;
  padding: 20px 0;
}

.mission-text {
    font-size: 35px; /* Было 40px, теперь 32px */
    line-height: 1.2; /* Немного увеличили межстрочный интервал */
    margin-bottom: 15px;
}
.highlight {
  text-decoration: underline;
}

.social-media {
  padding: 20px 72px;
  position: relative;
}

.section-title {
  font-size: 75px;
  margin-bottom: 30px;
}

.social-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.social-image {
  width: 45%;
  height: auto;
}

.social-info {
  width: 45%;
}

.social-description {
  font-size: 35px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.social-buttons {
  display: flex;
  gap: 20px;
}

.button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 35px;
  color: #333333;
  background-color: #fcfcfc;
  border: 2px solid #d0d0d0;
  border-radius: 36.93px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #d0d0d0;
  color: #fcfcfc;
}

.scroll-top {
  position: absolute;
  bottom: 20px;
  right: 72px;
  width: 96px;
  height: 64px;
  background-color: #ffffff;
  border: 2px solid #d0d0d0;
  border-radius: 36.93px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid #d0d0d0;
}

.scroll-top img {
    filter: invert(0);
    transition: filter 0.3s ease;
}

.scroll-top:hover img {
    filter: invert(1);
}


.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* Мобильная версия (≤1024px) */
@media (max-width: 1024px) {
  /* 1. Фиксим горизонтальный скролл и базовые настройки */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .screen {
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* 2. Перерабатываем hero-секцию */
  .hero {
    padding-top: -20px;
    margin-bottom: 30px;
  }
  
  .hero-title {
    display: block;
    width: 100%;
    position: relative;
  }
  
  .logo-line {
    display: flex;
    align-items: flex-end;
    margin-bottom: 5px;
    flex-wrap: nowrap;
  }
  
  .vector {
    width: 120px;
    height: auto;
    margin-right: 10px;
    margin-left: 0;
  }
  
  .first-line {
    font-size: 28px;
    white-space: nowrap;
    line-height: 1.2;
  }
  
  .second-line {
    margin-top: 5px;
    font-size: 28px;
    margin-left: 20px;
    display: block;
    line-height: 1.2;
  }
  
  .email-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    text-decoration: underline;
    white-space: nowrap;
  }

  /* 3. Исправляем слайдер */
  .slideshow {
      height: auto;
      padding-bottom: 0;
      max-height: 70vh; /* Занимает 70% высоты экрана */
  }
  
  .slide img {
      height: 70vh;
  }
  
  .slide {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }
  
  .slide img {
    width: 100%;
    height: auto;
    max-height: 400px; /* Такая же высота как у контейнера */
    object-fit: cover;
    display: block;
  }

  /* 4. Адаптируем блок миссии */
  .mission {
    padding: 30px 0;
  }
  
  .mission-text {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  /* 5. Полностью перерабатываем блок социальных сетей */
  .social-media {
    padding: 30px 0 80px;
    position: relative;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .social-content {
    display: block;
  }
  
  .social-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  
  .social-info {
    width: 100%;
  }
  
  .social-description {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .button {
    width: 100%;
    font-size: 18px;
    padding: 12px 0;
    text-align: center;
  }

  /* 6. Исправляем кнопку "наверх" */
  .scroll-top {
    right: 20px;
    bottom: 30px;
    width: 60px;
    height: 60px;
  }
  
  .scroll-top img {
    width: 24px;
    height: 24px;
  }

  /* 7. Адаптируем футер */
  .footer {
    padding: 20px 0;
  }
  
  .footer-text {
    font-size: 14px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .first-line, .second-line {
    font-size: 24px;
  }
  
  .email-link {
    font-size: 16px;
  }

  .hero{
    right: 20px;
  }

  .email-link {
    top: 80px !important;
    right: 20px !important;
    transform: none !important;
    bottom: -20px !important;
    margin-right: -10px !important; /* Добавляем небольшой отступ от края */
    white-space: nowrap !important; /* Предотвращаем перенос текста */
    text-align: right !important; /* Выравниваем текст по правому краю */
    width: auto !important; /* Сбрасываем возможные ограничения ширины */
  }
  
  .mission-text {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .social-description {
    font-size: 16px;
  }
  
  .button {
    font-size: 16px;
  }
}

/* Мобильная версия (≤1024px) */
@media (max-width: 1024px) {
  /* 1. Email-link - только это меняем */
  .email-link {
    right: -50px !important; /* Ближе к правому краю */
    top: auto !important;
    bottom: 0;
    transform: none !important;
    font-size: 16px;
  }

  /* 2. Кнопки соцсетей - только уменьшаем размер */
  .social-buttons {
    gap: 10px !important;
  }
  
  .button {
    width: 75% !important; /* Уменьшаем на 25% */
    font-size: 16px !important; /* Уменьшенный шрифт */
    padding: 10px 0 !important;
    margin: 0 auto !important; /* Центрируем */
  }

  /* 3. Анимация подчеркивания (оставляем как было) */
  .highlight::after {
    transition: width 0.3s ease !important;
  }

  /* 4. Кнопка "наверх" (оставляем рабочую версию) */
  .scroll-top {
    bottom: 30px !important;
    right: 15px !important;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .email-link {
    font-size: 14px !important;
    right: 2px !important;
  }
  
  .button {
    font-size: 14px !important;
    width: 70% !important;
  }
}

/* Мобильная версия (≤1024px) */
@media (max-width: 1024px) {
  /* 1. Фиксим отступ после навигации */
  .header {
    padding-bottom: 5px !important; /* Уменьшаем отступ внутри хедера */
  }
  
  .hero {
    padding-top: 0 !important; /* Убираем лишний отступ */
    margin-top: -10px !important; /* Подтягиваем блок ближе */
  }

  /* 2. Полностью рабочие стили для кнопки "наверх" */
  .scroll-top {
    position: fixed !important;
    width: 96px !important;
    height: 64px !important;
    right: 20px !important;
    bottom: 20px !important;
    background-color: #ffffff !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 36.93px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }
  
  .scroll-top.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .scroll-top img {
    width: 43px !important;
    height: 40px !important;
    filter: invert(0) !important;
    transition: filter 0.3s ease !important;
  }
  
  .scroll-top:hover {
    background-color: #333 !important;
    border-color: #333 !important;
  }
  
  .scroll-top:hover img {
    filter: invert(1) !important;
  }
}


.slideshow {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    overflow: hidden;
    margin: 0 auto;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button Hover Effects */
.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 35px;
    color: #333333;
    background-color: #fcfcfc;
    border: 2px solid #d0d0d0;
    border-radius: 36.93px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #333333;
    color: #f8f8f8;
    border-color: #333333;
}

/* Scroll Animation for Highlights */
.highlight {
    position: relative;
    display: inline-block;
    text-decoration: none !important; /* Убираем стандартное подчеркивание */
}

.highlight::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #333333;
    transition: width 0.3s ease;
}

.highlight.visible::after {
    width: 100%;
}
