/* Общие стили */

body {
  margin: 0;
  font-family: 'Microsoft YaHei UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #000;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}


/* Стили для блока "Привлечение внимания" */
.img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 733px;
  background: url('background-image.jpg') center no-repeat;
  background-size: cover;
}


.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.intro__suptitle {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 50px;
  word-wrap: break-word;

}

/* Стили для шапки */
.shapka {
  width: 100%;
  padding-top: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, padding-bottom 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.shapka.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s ease;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.logo img {
  width: 215px;
  height: 34px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-family: 'Microsoft YaHei UI', sans-serif;
  font-weight: 400;
}

.nav_but {
  display: inline-block;
  vertical-align: top;
  margin: 0 20px;
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 0.1s linear;
}

.nav_but:after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #b40000;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  transition: opacity 0.1s linear;
}

.nav_but:hover {
  color: #b40000;
}

.nav_but:hover:after,
.nav_but.active:after {
  opacity: 1;
}

.nav_but.active {
  color: #b40000;
}

#requestButton {
  padding: 12px 24px;
  border-radius: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}



/* Стили для блока "15 лет успешной работы" */
.years-of-success {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
  padding: 33px 0;
  height: 280px;
}

.copy-text {
  color: black;
  font-size: 48px;
  font-weight: 700;
  line-height: 69px;
  word-wrap: break-word;
  text-align: center;
}

.copy-text h3 {
  margin: 0;
}

.line {
  width: 159px;
  height: 5px;
  background-color: #b40000;
  margin: 33px auto;
}

.copy-text p {
  color: black;
  font-size: 18px;
  font-weight: 400;
  word-wrap: break-word;
  text-align: center;
  line-height: 24px;
}

/* Стили для блока "Надежные материалы" */
.product-block {
  position: relative;
  height: 350px;
  margin-top: 20px;
}

.product-title {
  color: #1E1E1E;
  font-size: 48px;
  font-weight: 700;
  line-height: 51px;
  word-wrap: break-word;
  margin-top: 50px;
  z-index: 2;
  text-align: center;
}

.product-text {
  display: flex;
  justify-content: center;
  color: #252228;
  font-size: 16px;
  font-weight: 400;
  line-height: 51px;
  word-wrap: break-word;
  z-index: 2;
  text-align: justify;
}

/* Стили для карточек продукции */
.container__card {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
  /* Add gap between cards */
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 350px;
  width: 247px;
  background-size: 100% 100%;
  border-radius: 10px;
  box-shadow: -1rem 0 3rem #646464;
  transition: 0.4s ease-out;
  flex-shrink: 0;
  border: transparent 0px solid;

  @media (max-width: 1200px) {
    height: 273px;
    width: 193px;
  }

  @media (max-width: 992px) {
    height: 241px;
    width: 170px;
  }

}


.card-1 {
  background-image: url('image 1.jpg');
  justify-content: center;
  /* Путь к изображению для первой карточки */
}

.card-2 {
  background-image: url('image 2.jpg');
  /* Путь к изображению для второй карточки */
}

.card-3 {
  background-image: url('image 4.jpg');
  /* Путь к изображению для второй карточки */
}

.card-4 {
  background-image: url('image 3.jpg');
  /* Путь к изображению для второй карточки */
}
.card-5 {
  background-image: url('image 5.png');
  /* Путь к изображению для второй карточки */
}

.card:not(:first-child) {
  margin-left: 0;
  /* Remove the negative margin-left */
}

.card:hover {
  margin-top: -20px;
  /* Сдвигаем карточку вверх при наведении */
  transition: 0.4s ease-out;
}

.card:hover~.card {
  position: relative;
  transition: 0.4s ease-out;
}

.image__card {
  width: 304px;
  height: 431px;
  border-radius: 50%;
  background-size: cover;
}

#card-but {
  color: white;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  background-color: rgb(255, 0, 0);
  /* Пример цвета фона */
  padding: 10px 10px;
  /* Пример внутренних отступов */
  border: none;
  /* Убираем границу */
  cursor: pointer;
  /* Меняем курсор при наведении */
  border-radius: 5px;
  /* Пример закругления углов */
}


/* Стили для блока "Наши преимущества" */
/* Стили для блока "Наши преимущества" */
.advantages {
  text-align: center;
}

.advantages h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.advantages .row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Общие стили для преимуществ */
.advantage {
  flex: 1;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 10px;
}

.advantage img {
  height: 50px;
}

.advantage h3 {
  font-size: 14px;
}

.advantage p {
  font-size: 12px;
}


/* Стили для блока "Форма" */
.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 733px;
  background: url("background-image.jpg") center no-repeat;
  background-size: cover;

}

.container__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  /* Максимальная ширина контейнера */
  margin: 0 auto;
  /* Центрирование контейнера на странице */

}

.left-column,
.right-column {
  flex: 1;
  max-width: 50%;
  /* Максимальная ширина колонки */


}

.left-column {
  padding: 30px;
  order: 1;
  text-align: left;
  /* Выравнивание текста по левому краю */
  margin-bottom: 20px;

}


.left-column h3 {
  color: white;
  font-size: 32px;
  line-height: 36px;
  font-weight: 400;
  word-wrap: break-word;
  line-height: 1.2;
  /* Изменим line-height для текста слева */
  margin-bottom: 20px;
  /* Уменьшим нижний отступ */

}

.left-column p {
  padding: 20px 0;
  color: white;
  font-size: 16px;
  font-weight: 500;
  word-wrap: break-word;

}

.right-column {
  order: 2;
  text-align: center;
  /* Выравнивание текста по левому краю */
  padding: 20px;
  /* Увеличить внутренние отступы для лучшего отделения от текстового блока */
  border-radius: 10px;
  /* Добавить закругление углов для более приятного вида */
  margin-bottom: 20px;
  /* Добавить небольшой отступ снизу для отделения блоков */
}

.login-box {
  max-width: 500px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  color: #fff;
  text-align: center;

}

.login-box h2 {
  margin: 0 0 30px;
  padding: 0;
  color: white;
  font-size: 48px;
  font-weight: 700;
  word-wrap: break-word;
  line-height: 48px;
}

.user-box {
  position: relative;
}

.user-box input,
.user-box textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #fff;
  outline: none;
  background: transparent;
}

.user-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  pointer-events: none;
  transition: .5s;
}

.user-box input:focus~label,
.user-box input:valid~label,
.user-box textarea:focus~label,
.user-box textarea:valid~label {
  top: -20px;
  left: 0;
  color: #ff0000;
  font-size: 12px;
}

.login-box form button {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff0000;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: .5s;
  margin-top: 40px;
  letter-spacing: 4px;
}

.login-box a:hover {
  background: #ff0000;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px #ff0000, 0 0 25px #ff0000, 0 0 50px #ff0000, 0 0 100px #ff0000;
}

.login-box a span {
  position: absolute;
  display: block;
}

.login-box a span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0000);
  animation: btn-anim1 1s linear infinite;
}

/* Остальные анимации кнопки оставьте без изменений */

/* Общие стили для кнопок */
.custom-button {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  color: #ff0000;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: .5s;
  letter-spacing: 4px;
  /* Обводка как у класса .btn */
  border: 3px solid #ff0000;
  border-radius: 5px;
}

.custom-button:hover {
  background: #ff0000;
  color: #fff;
  /* Обводка при наведении как у класса .btn */
  border: 3px solid #ff0000;
  border-radius: 5px;
  box-shadow: 0 0 5px #ff0000, 0 0 25px #ff0000, 0 0 50px #ff0000, 0 0 100px #ff0000;
}

.custom-button span {
  position: absolute;
  display: block;
}

.custom-button span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0000);
  animation: btn-anim1 1s linear infinite;
}

/* ... Анимации для остальных span ... */

/* Стили для подвала */
/* Стили для подвала */
.footer {
  background-color: #1E1E1E;
  color: #fff;
  padding: 10px;
  text-align: center;
}

.footer__logo {
  margin-left: auto;
  padding: 10px;
}

.footer__logo img {
  width: 215px;
  height: 34px;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__link {
  margin: 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #b40000;
}

.footer__social {
  margin-bottom: 20px;
}

.footer__social a {
  display: inline-block;
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: #b40000;
}

.footer__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact {
  display: flex;
  align-items: center;
  margin: 0 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;

  @media (max-width: 1200px) {
    margin: 0 15px;
  }
}

.contact img {
  height: 20px;
  margin-right: 10px;
}

.contact:hover {
  color: #b40000;
}


.animate-on-scroll {
  opacity: 0;
  /* Начальное состояние элементов - невидимы */
  transform: translateY(20px);
  /* Начальное состояние элементов - смещены вниз на 20px */
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* Анимация будет длиться 1 секунду с плавностью */
}

/* Стили для анимированного бургера */
.burger-menu {
  display: none;
  /* Начально скрываем для всех экранов */
  align-items: center;
  cursor: pointer;
}



.burger-icon {
  width: 70px;
  height: 7px;
  background-color: #fff;
  position: relative;
  transform-origin: 50% 50%;
  transition: background-color 0.3s ease;
}

.shapka.scrolled .burger-icon {
  background-color: #b40000;
}

.burger-icon::before,
.burger-icon::after {
  content: "";
  width: 70px;
  height: 7px;
  background-color: #fff;
  position: absolute;
  transform-origin: 50% 50%;
  transition: transform 0.3s ease;
}

.burger-icon::before {
  top: -20px;
}

.burger-icon::after {
  bottom: -20px;
}

.shapka.scrolled .burger-icon::before,
.shapka.scrolled .burger-icon::after {
  background-color: #b40000;
}

/* Анимация перекрестие */
.burger-menu.active .burger-icon {
  background-color: transparent;
}

.burger-menu.active .burger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-menu.active .burger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

@media only screen and (max-device-width: 480px) {
  .custom-button {
    font-size: 38px;
  }

  .shapka {
    height: 120px;
  }

  .intro__suptitle {
    font-size: 38px;
  }

  .advantages .row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 50px;
  }

  .advantages .column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
  }

  .advantage {
    height: 600px;
  }

  .advantage h3 {
    font-size: 38px;
  }

  .advantage p {
    font-size: 34px;
  }

  .nav {
    display: none;
    justify-content: space-between;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    height: calc(100vh - 90px);
    padding: 20px;
    z-index: 999;
    font-size: 55px;
  }

  .nav.active {
    display: flex;
  }

  .nav_but {
    font-size: 60px;
    margin: 10px 0;
  }

  #requestButton {
    padding: 24px 48px;
    border-radius: 60px;
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .burger-menu {
    display: flex;
  }

  .logo img {
    width: 250px;
    height: 39px;
  }

  .animate-on-scrollt {
    opacity: 1;
  }

  .years-of-success {
    height: 384px;
  }

  .copy-text p {
    font-size: 35px;
    line-height: 37px;
  }

  .product-block {
    height: 850px;
  }

  .product-text {
    padding: 55px;
    font-size: 35px;
  }

  .product-title {
    font-size: 52px;
  }

  .left-column,
  .right-column {
    max-width: 100%;
  }

  .left-column {
    padding: 100px;
    text-align: center;
    order: 1;
  }

  .left-column h3 {
    font-size: 48px;
  }

  .left-column p {
    text-align: justify;
    font-size: 35px;

  }

  .right-column {
    margin-right: 0;
    order: 2;
  }

  .contact-form {
    align-items: center;
    justify-content: center;
    height: 2100px;
  }

  .container__form {
    flex-direction: column;
    /* Изменим направление на колонку */
    align-items: center;
    margin: 0 auto;
    /* Центрирование контейнера по горизонтали */
    padding: 0 20px;
  }

  .login-box {
    max-width: 900px;
    font-size: 35px;
  }

  .login-box h2 {
    font-size: 60px;
  }

  .login-box form button {
    font-size: 36px;
  }

  .user-box input,
  .user-box textarea {
    padding: 17px 0;
    font-size: 32px;
  }

  .user-box label {
    font-size: 32px;
  }

  .login-box form a {
    font-size: 32px;
  }

  .container__card {
    flex-direction: column;
    /* Изменяем направление расположения на вертикальное для мобильной версии */
    align-items: center;
    /* Выравниваем карточки по центру по горизонтали */
  }

  #card-but {
    font-size: 36px;
    margin-bottom: 0px;
    margin-top: 36px;
  }

  .card {
    width: 450px;
    height: 636px;
  }

  .caption {
    font-size: 30px;
  }

  .footer {
    font-size: 34px;
  }

  .footer__contacts {
    height: 200px;
    display: contents;
  }

  .footer__logo img {
    width: 340px;
    height: 54px;
  }

  .contact {
    display: flow;
  }

  .contact img {
    height: 50px;
  }

  .img {
    height: 1000px;
  }

  .advantage img {
    height: 100px;
  }
}

.success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #000000;
  border: 1px solid #000000;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}