/* СБРОС */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ШАПКА */
.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo img {
  height: 50px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.main-nav li a {
  text-decoration: none;
  color: #333;
}
.main-nav li a:hover {
  color: #cc0000;
}

/* ПРАВАЯ ПОЛОВИНА (СЕРАЯ) */
.right-gray-wrapper {
  position: relative;
  width: 100%;
}
.right-gray-wrapper::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50vw;
  background-color: #F4F4F4;
  z-index: 0;
  pointer-events: none;
}
.right-gray-wrapper > * {
  position: relative;
  z-index: 1;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  min-height: 900px; 
  background: url("../img/hero1.jpg") center/cover no-repeat;
  padding-bottom: 150px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero__content {
  position: absolute;
  z-index: 5;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 800px;
}
.hero__title {
  font-size: 4rem;
  line-height: 1.2;  /* или 1.3, чтобы строки не наезжали */
  word-break: break-word;
}

.hero__subtitle {
  line-height: 1.4;
  word-break: break-word;
}
.hero__separator {
  width: 300px;
  height: 2px;
  background-color: rgba(128,128,128,0.5);
  margin: 0 auto;
}
.hero__author {
  position: absolute;
  z-index: 4;                                 
  bottom: 350px;
  left: 31%;
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
}
.hero__slider-wrapper {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -160px;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  opacity: 1;
  z-index: -1;
}
.hero__bg.hidden {
  opacity: 0;
}
.mySwiper {
  width: 100%;
  height: 100%;
}
/* Для стрелок «влево/вправо» и «вперёд/назад» */
.mySwiper::part(navigation-button-next),
.mySwiper::part(navigation-button-prev) {
  color: #fff !important;
  opacity: 0.8;
}
.mySwiper::part(navigation-button-next):hover,
.mySwiper::part(navigation-button-prev):hover {
  opacity: 1;
}
/* Для точек (bullets) */
.mySwiper::part(pagination-bullet) {
  background-color: #fff !important; 
  opacity: 0.5;
}
.mySwiper::part(pagination-bullet-active) {
  background-color: #fff !important; 
  opacity: 1;
}
:root {
  --swiper-navigation-color: #fff;
  --swiper-pagination-color: #fff;
}

/* О КОМПАНИИ */
.company {
  position: relative;
  margin-top: 100px;
  padding: 100px 0;
  z-index: 2;
}
.company__inner {
  position: relative;
  z-index: 2;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
}
.company__separator {
  width: 80%;
  max-width: 600px;
  height: 2px;
  background-color: rgba(128,128,128,0.5);
  margin: 0 auto 20px;
}
.section-text {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  text-align: left;
}
.company__btn-row {
  position: relative;
  max-width: 700px;
  margin: 30px auto 0;
  min-height: 50px;
}
.company__btn-left {
  position: absolute;
  left: 0;
}
.company__btn-right {
  position: absolute;
  right: 0;
}
.btn {
  background-color: #cc0000;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  border: none;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #a30000;
}

/* СЕКЦИЯ СТАТИСТИКИ (КРАСНЫЙ ФОН) */
.stats {
  background-color: #cc0000;
  color: #fff;
  padding: 40px 0;
}
.stats__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.stats__item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stats__icon {
  width: 40px;
  height: auto;
}
.stats__info {
  display: flex;
  flex-direction: column;
}
.stats__number {
  font-size: 1.5rem;
  margin-bottom: 5px;
}
.stats__desc {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* ПОРТФОЛИО */
.portfolio {
  padding: 50px 0;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.portfolio__item img {
  width: 100%;
  display: block;
}

/* INDUSTRIES */
.industries {
  padding: 50px 0;
}
.section-separator {
  width: 80%; 
  max-width: 600px;
  height: 2px;
  background-color: rgba(128,128,128,0.5);
  margin: 0 auto 20px;
}

/* WHO-WE-NEED */
.who-we-need {
  padding: 50px 0;
  background-color: #F4F4F4;
}
.who-we-need__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.who-we-need__item img {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}
.who-we-need__item h3 {
  font-size: 1.1rem;
  text-align: center;
}
.who-we-need__action {
  text-align: center;
  margin-top: 30px;
}

/* BENEFITS */
.benefits {
  padding: 50px 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
}
.section-separator {
  width: 80%;
  max-width: 600px;
  height: 2px;
  background-color: rgba(128,128,128,0.5);
  margin: 0 auto 20px;
}
.benefits__grid {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}
.benefits__item {
  flex: 1;
  background-color: #f5f5f5;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 4px;
}
.benefits__icon {
  display: block;
  margin-bottom: 10px;
}
.benefits__item--red {
  background-color: #cc0000;
  color: #fff;
}

/* Адаптивность (пример) */
@media (max-width: 768px) {
  .benefits__grid {
    flex-direction: column;
  }
  .benefits__item {
    margin-bottom: 20px;
  }
}

/* ВАЖНО */
.important {
  padding: 50px 0;
}

/* ОТЗЫВЫ (СЛАЙДЕР) */
.testimonial {
  background-color: #cc0000;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.testimonial__slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.slide {
  display: none;
  text-align: center;
  padding: 20px;
}
.slide.active {
  display: block;
}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
}
.author {
  font-weight: 700;
}

/* ПАРТНЁРЫ (белый фон, ЛОГО УВЕЛИЧЕНЫ) */
.partners {
  background-color: #fff;
  padding: 30px 0;
  text-align: center;
}
.partners__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partners__inner img {
  height: 80px;
  object-fit: contain;
}

/* КОНТАКТ + КАРТА */
.contact-map {
  width: 100%;
  margin: 0;
  padding: 0;
}
.contact-top {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
  background-color: #fff;
}
.contact-left,
.contact-right {
  font-size: 1rem;
  line-height: 1.6;
}
.map-wrapper {
  width: 100%;
  height: 450px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ФУТЕР */
.footer {
  background-color: #000;
  color: #fff;
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer__left {
  flex: 1;
  text-align: left;
}
.footer__center {
  flex: 1;
  text-align: center;
}
.footer__right {
  flex: 1;
  text-align: right;
}
.footer-logo-center {
  max-width: 180px;
  margin-bottom: 5px;
}
.footer .container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  margin: 0;
}
.footer__left {
  margin-left: 0;
  padding-left: 0;
}
.footer__right {
  margin-right: 0;
  padding-right: 0;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
  .hero__slider-wrapper {
    width: 80%;
    height: 400px;
    bottom: -100px;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .right-gray-wrapper::before {
    width: 0;
  }
  .company__btn-row {
    position: static;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  .company__btn-left,
  .company__btn-right {
    position: static; 
  }
}
@media (max-width: 768px) {
  .stats__inner {
    flex-direction: column;
    align-items: center;
  }
  .stats__item {
    margin-bottom: 20px;
  }
  .benefits__grid {
    flex-direction: column;
  }
  .contact-top {
    flex-direction: column;
    gap: 10px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__left, .footer__center, .footer__right {
    flex: unset;
  }
}
@media (max-width: 576px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .container, .header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0 auto;
  }
  .main-nav {
    display: none;
  }
  .hero {
    min-height: 500px;
    padding-bottom: 80px;
    background-size: cover;
  }
  .hero__content {
    top: 30%;
    max-width: 90%;
    padding: 0 10px;
    text-align: center;
  }
  .hero__title {
    font-size: 1.8rem;
    line-height: 1.1;
    text-align: center;
  }
  .hero__subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
  }
  .hero__author {
    bottom: 220px;
    left: 25%;
    font-size: 0.8rem;
  }
  .hero__slider-wrapper {
    width: 100%;
    max-width: 600px;
    height: 300px;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero__slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .who-we-need__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 400px) {
  .hero__title {
    font-size: 1.5rem;
    line-height: 1.1;
  }
  .hero__subtitle {
    font-size: 0.9rem;
  }
}
@media (max-width: 335px) {
  .hero__title {
    font-size: 1.3rem;
    line-height: 1.1;
    word-break: break-word;
  }
  .hero__subtitle {
    font-size: 0.8rem;
  }
  .hero__content {
    padding: 0 5px;
    max-width: 90%;
  }
}

/* Изначально лайтбокс скрыт */
.lightbox {
  display: none; /* по умолчанию скрыто */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Класс, который включает лайтбокс */
.lightbox--active {
  display: flex; /* именно flex */
  /* На больших экранах можно оставить без центрирования */
}

/* Сама картинка */
.lightbox__img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin: 60px auto; /* большой отступ сверху/снизу для десктопа */
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Кнопка закрытия */
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Стрелки «влево» / «вправо» */
.lightbox__prev,
.lightbox__next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  padding: 10px;
  transition: 0.3s;
  user-select: none;
}
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:hover {
  color: #ccc;
}

/* Адаптив для мобильных */
@media (max-width: 576px) {
  .lightbox {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* Убираем flex-стили, если они не работают */
  }
  .lightbox__img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* убираем отступы */
    max-width: 90%;
    max-height: 80%;
  }
} 
/* ----- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ----- */
@media (max-width: 576px) {
  /* Делаем их в столбик и по центру */
  .stats__inner {
    flex-direction: column;
    align-items: center;
  }
  /* Центрируем внутри каждого блока */
  .stats__item {
    justify-content: center;  /* Иконка и текст будут по центру */
    text-align: center;       /* Чтобы текст тоже шёл по центру */
    margin-bottom: 20px;      /* Небольшой отступ между элементами */
  }
}

@media (min-width: 577px) {
  .lightbox__prev,
  .lightbox__next {
    font-size: 50px;   /* увеличиваем размер шрифта */
    padding: 20px;     /* увеличиваем отступы */
    margin-top: -25px; /* подбираем корректное смещение по вертикали */
  }
}

.header__inner {
  /* Чтобы .lang-selector и .main-nav могли «встать» по сторонам */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  /* при необходимости ограничьте ширину, например:
  max-width: 1200px;
  margin: 0 auto; */
}

/* Основной список навигации */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px; /* расстояние между пунктами меню */
}

/* Ссылки в списке */
.main-nav ul li a {
  text-decoration: none;
  color: #333;
  white-space: nowrap; /* при желании, чтобы текст не переносился */
}

/* Блок переключения языка */
.lang-selector {
  display: flex;
  gap: 10px; /* расстояние между «LV | ENG | RUS» */
}

.lang-selector a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.lang-selector a:hover {
  text-decoration: underline;
}

/* --- Адаптация под мобильные устройства --- */
@media (max-width: 768px) {
  /* Чтобы при нехватке места пункты меню не наезжали друг на друга,
     можно разрешить «обтекание» (flex-wrap) */
  .header__inner {
    flex-wrap: wrap;
  }

  /* Уменьшим отступы, если нужно */
  .main-nav ul {
    gap: 10px;
  }

  .lang-selector {
    margin-top: 10px;
    /* При wrap оно уйдет на следующую строку */
  }
}

@media (max-width: 768px){
  ul.section-text {
    list-style-type: disc;
    margin-left: 1.5em;
  }
  }



  @media (min-width: 1024px) {
    .hero__separator,
    .company__separator,
    .section-separator {
      display: none;
    }
  }


/* Кнопка "Вверх" */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: red;            /* Красный фон */
  border-radius: 50%;               /* Круглая форма */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
  z-index: 1000;
}

.scroll-to-top:hover {
  opacity: 1;
}

@media (max-width: 394px) {
  .header__inner {
    flex-direction: column;
    align-items: center;
    min-height: 100px; /* чтобы вместить все элементы */
  }
  .logo {
    order: 1;
  }
  /* Основная навигация может быть скрыта, если так задумано */
  .main-nav {
    order: 2;
    display: none; /* если у вас на мобильном скрыта навигация */
  }
  .lang-selector {
    order: 3;
    display: flex !important;  /* явно задаем, что блок должен быть flex */
    gap: 5px;
    font-size: 12px;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
    margin-top: 10px;
  }
}

