body {
  margin: 0px;
  padding: 0px;
  font-family: 'Josefin Sans', sans-serif;
  box-sizing: border-box;
}



.map-container {
  width: 95%;
  /* Ширина по умолчанию для десктопов */
  /*max-width: 600px;*/
  /* Максимальная ширина для десктопов */
  margin: 2% auto;
  /* Центрирование контейнера */
  border-radius: 12px;
  /* Закругленные углы */
}

iframe {
  width: 100%;
  /* iframe занимает 100% ширины контейнера */
  height: 505px;
  /* Фиксированная высота */
  border: none;
  /* Убираем рамку */
  border-radius: 12px;
  /* Закругленные углы */
}

/* Медиа-запрос для мобильных устройств */
@media (orientation: portrait) {
  .map-container {
    width: 90%;
    /* Увеличиваем отступы на мобильных */
  }

  iframe {
    height: 300px;
    /* Уменьшаем высоту карты на мобильных устройствах */
  }
}


.background-city {
  width: 100%;
  height: auto;
  /* Устанавливаем высоту auto для всех устройств */
  margin: 0;
}

/* Медиа-запрос для мобильных устройств */
@media (orientation: portrait) {
  .background-city {
    height: auto;
    /* Отключаем фиксированную высоту для мобильных */
  }
}


.logo-container {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 500px;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 7%;
  margin-left: 5%;
  width: 30%;
}

/* Общий стиль для изображений */
.logo-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  /* Начинаем с невидимости */
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  /* Сохраняем конечное состояние */
}

/* Анимации для красного и серого изображений */
.logo-container .gray {
  z-index: 2;
  animation-name: fadeInGray;
}

.logo-container .red {
  z-index: 1;
  bottom: 20%;
  left: -12%;
  animation-name: fadeInRed;
}

/* Стиль для текста */
.logo-container .text {
  position: relative;
  top: -10%;
  left: 32%;
  height: 100%;
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation-name: fadeInText;
  animation-duration: 2s;
  animation-delay: 1s;
  /* Текст появляется после изображений */
  animation-fill-mode: forwards;
  /* Сохраняем конечное состояние */
}

.logo-container .text .dizain {
  width: 330%;
  height: auto;
  margin-bottom: 160%;
  animation: scaleUpDizain 1s ease-out forwards;
}

.logo-container .text .studio {
  width: 300%;
  height: auto;
  margin-top: 20%;
  margin-left: 40%;
  animation: scaleUpStudio 1s ease-out forwards;
}

/* Анимация для появления и движения */
@keyframes fadeInRed {
  0% {
    opacity: 0;
    transform: translateX(50%) translateY(-50%);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes fadeInGray {
  0% {
    opacity: 0;
    transform: translateX(120%) translateY(120%);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация увеличения размеров для текста */
@keyframes scaleUpDizain {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes scaleUpStudio {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}



.work_stages_list {
  display: flex;
  width: 100%;
  height: 500px;
  justify-content: center;
  align-items: center;
}

.work_stages {
  border-radius: 12px;
  background-color: black;
  border: 1px solid rgb(255, 0, 0);
  width: 20%;
  height: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  margin: 12px;
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
  /* Плавный переход для тени и прозрачности */
  opacity: 0;
  /* Начальная прозрачность */
  transform: translateY(20px);
  /* Начальное смещение вниз */
}

.work_stages.visible {
  opacity: 1;
  /* Полная непрозрачность */
  transform: translateY(0);
  /* Возвращаем на место */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Тень */
}


.work_stages div {
  display: flex;
  /* Включаем flexbox для дочернего контейнера */
  justify-content: center;
  /* Центрируем текст по горизонтали */
  align-items: center;
  /* Центрируем текст по вертикали */
  width: 100%;
  /* Ширина дочернего контейнера */
  flex: 1;
  word-break: normal;
}

.work_stages img {
  margin-top: 20px;
  width: 60%;
  height: auto;
  object-fit: contain;
}

.work_stages p {
  color: white;
  font-family: Montserrat, sans-serif !important;
  font-weight: 400;
  line-height: 2;
  font-size: 24px;
  text-align: center;
  /* Центрируем текст по горизонтали */
}

.container-fluid {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  background: #FFF;
}

/* ============= Animation background ========= */
.background {
  /*background: linear-gradient(132deg, #FC415A, #591BC5, #212335);*/
  /*background: linear-gradient(270deg, #000000, #929292);*/
  background-color: black;
  background-size: 400% 400%;
  animation: Gradient 15s ease infinite;
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0px;
}

.cube {
  position: absolute;
  top: 100vh;
  left: 80vw;
  width: 10px;
  height: 10px;
  border: solid 1px #D7D4E4;
  transform-origin: top left;
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
  animation: cube 12s ease-in forwards infinite;
}

.cube:nth-child(2n) {
  border-color: #FFF;
}

.cube:nth-child(2) {
  animation-delay: 2s;
  left: 25vw;
  top: 140vh;
}

.cube:nth-child(3) {
  animation-delay: 4s;
  left: 50%;
  top: 10vh;
}

.cube:nth-child(4) {
  animation-delay: 6s;
  right: 10%;
  top: 40vh;
}

.cube:nth-child(5) {
  animation-delay: 8s;
  left: 10vw;
  top: 85vh;
}

/* ================= Header ============ */
header {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* navbar */
nav {
  color: #FFF;
  float: right;
  margin: 30px 90px;
}

nav ul {
  list-style: none;
}

nav ul li {
  float: left;
  transition: .3s;
}

nav ul li a {
  text-decoration: none;
  color: #EFEEF5;
  transition: .5;
  font-size: 15px;
  margin-left: 16px;
}

nav ul li:hover a {
  text-decoration: none;
  color: #591BC5;
  ;
}

nav ul li:hover {
  height: 45px;
  padding-top: 30px;
  margin-top: -30px;
  background: #EFEEF5;
  text-decoration: none;
  transform: skew(15deg);
}

/* Header content & title & button*/
.header-content {
  margin-top: 25%;
  text-align: center;
  color: #EFEEF5;
}

.header-content h1 {
  text-transform: uppercase;
  font-size: 3em;
  letter-spacing: 1px;
  z-index: 10000;
}

.header-content p {
  font-size: 20px;
  line-height: 1.5;
  margin: 20px auto;
}

.header-content button {
  width: 200px;
  margin: 20px 10px;
  /*color: B00000;/*#591BC5;*/
  font-size: 17px;
  border: 1px solid #EFEEF5;
  font-weight: 500;
  background: #EFEEF5;
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
  transition: .3s;
}

.header-content button::before {
  background: inherit;
  /* Используем фон кнопки */
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  mix-blend-mode: screen;
  /* "Вырезает" текст */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.header-content button:hover {
  border-radius: 0;
}

/* Animate Background*/
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes cube {
  from {
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }

  to {
    transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}

.header-title {
  position: relative;
  font-size: 5vh;
  font-family: 'NamuPro', Arial, sans-serif;
  text-transform: uppercase;
}

.header-title-right p {
  text-align: right;
  margin-right: 5%;
}

.header-title-left p {
  text-align: left;
  margin-left: 5%;
}

.header-title .highlight {
  color: rgb(224, 4, 18);
}

a.header-button {
  display: inline-block;
  color: white;
  font-weight: 700;
  text-decoration: none;
  user-select: none;
  padding: .5em 2em;
  outline: none;
  border: 2px solid;
  border-radius: 1px;
  transition: 0.2s;
  margin: 0 10px 0 10px;
}


a.header-button:hover {
  background: rgba(255, 255, 255, .2);
}

a.header-button:active {
  background: white;
}



.service-list {
  /*font-family: "Days One", serif;*/
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;

  padding: 0;
  position: relative;
  width: 40%;
}

/* Основной блок */
.service-item {
  position: relative;
  text-transform: uppercase;

  padding: 8px 50px 8px 8px;
  margin: 10px 0;
  background: #333;
  color: white;
  font-size: 32px;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  text-align: right;
  overflow: hidden;
  transition: background 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


/* При ховере */
.service-item:hover {
  background: #555;
}

/* Плавное перемещение текста */
.service-item span {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover span {
  transform: translateX(10%);
  color: #FF9800;
}



.kontakti-text {
  margin-left: 50px;
  font-size: 24px;
  color: white;
  font-family: sans-serif;
  font-weight: 400;
  font-style: normal;
}

.kontakti-row {
  text-align: left;
  margin-left: 5%;
}


.kontakti-text a {
  color: white;
  font-style: italic;
}

.kontakti-text a:hover,
a:active,
a:visited {
  color: white;
}

.video-container {
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: white;
}


video {
  width: 90%;
  height: auto;
  border-radius: 12px;
}

/*Черный контейнер для различного рода текста*/
.page-content-container {
  margin: 0;
  position: relative;
  background-color: black;
  padding: 1px 0 30px 0;
  display: flex;
  justify-content: space-between;
}



.about_us_text {
  position: relative;
  margin-left: 2%;
  width: 50%;
  height: 100%;

  color: white;
  font-family: Montserrat, sans-serif !important;
  font-weight: 400;
  line-height: 2;
  margin: 0 0 0 50px;
  font-size: 24px;
}








/*Карусель с картинками*/
.carousel-parent {
  width: 30%;
  height: 100%;
  margin: 0 auto;
  text-align: center;
}

.carousel {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-list {
  display: flex;
  flex-direction: row;
  transition: transform 0.5s ease;
  /* -webkit-width: 600%; /* 100% * количество изображений 
    -moz-width: 100%;
    -moz-height: 100%; */
  width: 600%;
}

.carousel-img {
  width: 100%;
  height: auto;
}

.carousel-parent p {
  color: white;
  font-family: Montserrat, sans-serif !important;
  font-weight: 400;
  line-height: 2;
  font-size: 24px;
}










/* Доставка */
.services-delivenry {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-left: 0;
}

.delivery-container {
  font-family: Montserrat, sans-serif !important;
  font-weight: 400;
  line-height: 2;
  font-size: 32px;
}

.delivery-container {
  position: absolute;
  border-radius: 12px 0 0 12px;
  padding: 180px 20px 20px 20px;
  right: 19%;
}

.delivery-container img {
  height: 150px;
  width: auto;
}




.logo_te {
  text-align: left;
  font-size: clamp(28px, 5vw, 48px);
/*font-size: 3vh;*/
  color: white;
}

/* ====================== АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ====================== */

/* Общие стили для маленьких экранов */
@media (max-width: 1024px) {

  .logo_te {
    text-align: center;
    font-size: 4vh;
  }

  .video-container {
    width: 90%;
    justify-content: center;
    align-items: center;
  }


  nav {
    margin: 20px 30px;
  }

  nav ul li a {
    font-size: 14px;
    margin-left: 10px;
  }

  .logo-container {
    width: 70vw;
    height: 70vw;
    margin-left: 10%;
  }

  .header-content {
    margin-top: 60%;
  }

  .header-content h1 {
    font-size: 2.2em;
  }

  .header-content p {
    font-size: 18px;
  }

  .service-item {
    font-size: 24px;
    padding: 8px 25px 8px 8px;
  }

  .work_stages_list {
    flex-wrap: wrap;
    height: auto;
  }

  .work_stages {
    width: 40%;
    margin: 10px;
    height: auto;
  }

  .about_us_text {
    width: 45%;
    font-size: 20px;
  }

  .carousel-parent {
    width: 45%;
  }
}

/* Для планшетов и телефонов */
@media (orientation: portrait) {
  nav {
    float: none;
    margin: 0;
    text-align: center;
  }

  nav ul {
    padding: 0;
  }

  nav ul li {
    float: none;
    display: inline-block;
    margin: 5px;
  }

  .logo-container {
    margin: 40px auto 0 auto;
    width: 80vw;
    height: 80vw;
  }

  .header-content {
    margin-top: 15%;
    padding: 0 10px;
  }

  .header-content h1 {
    font-size: 6vw;
  }

  .header-content p {
    font-size: 4vw;
  }

  a.header-button {
    display: block;
    width: 80%;
    margin: 10px auto;
    text-align: center;
  }

  /* Блок "Услуги" */
  .services-delivenry {
    flex-direction: column;
    /*align-items: center;*/
  }

  .service-list {
    width: 90%;
  }

  .delivery-container {
    position: relative;
    right: 0;
    margin-top: 30px;
    text-align: center;
    padding: 0;
  }

  .delivery-container img {
    height: 120px;
  }

  /* О нас */
  .page-content-container {
    flex-direction: column;
    align-items: center;
  }

  .about_us_text,
  .carousel-parent {
    width: 90%;
    margin: 20px 0;
  }

  .about_us_text {
    font-size: 18px;
  }

  /* Этапы работы */
  .work_stages_list {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .work_stages {
    width: 80%;
    height: auto;
    margin-bottom: 20px;
  }

  /* Контакты */
  #us_contacts .page-content-container {
    flex-direction: column;
    align-items: center;
  }

  .video-container {
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;

  }



  .kontakti-text {
    width: 90%;
    font-size: 18px;
    margin: 0;
    margin-left: 5%;
    /*text-align: center;*/
  }

  .video-container {
    width: 100%;
    text-align: center;
  }

  video {
    width: 90%;
  }

  iframe {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Для очень маленьких экранов */
@media (orientation: portrait) {
  .header-content h1 {
    font-size: 5vw;
  }

  .header-content p {
    font-size: 4vw;
  }

  .service-item {
    font-size: 18px;
  }

  .about_us_text {
    font-size: 16px;
  }

  .kontakti-text {
    font-size: 16px;
  }

  .work_stages p {
    font-size: 18px;
  }

  a.header-button {
    font-size: 14px;
  }

  .delivery-container img {
    height: 100px;
  }
}


/* Исправление выравнивания контактов и видео на телефонах */
@media (max-width: 900px) {
  #us_contacts .page-content-container>div {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #us_contacts .kontakti-text {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  #us_contacts .video-container {
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  #us_contacts video {
    width: 90%;
    height: auto;
  }
}