.page-form_text,
.page-form_form {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 0.6s ease;
}

.page-form_text.visible,
.page-form_form.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-advantages__item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 0.9s ease;
}

.page-advantages__item.visible {
  opacity: 1;
  transform: translateY(0);
}
.page-stages_item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 0.9s ease;
}

.page-stages_item.visible {
  opacity: 1;
  transform: translateY(0);
}


/* базовое состояние: скрыто, задержка ТОЛЬКО на скрытие */
.sub-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.65s ease 0.65s, /* 0.25s задержка перед началом исчезновения */ transform 0.65s ease 0.65s,
  visibility 0s linear 0.3s; /* visibility после окончания анимации */
}

/* состояние при ховере: показываем сразу, без задержки */
.head-menu__link.root-item:hover + .sub-menu,
.sub-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.65s ease 0s, /* НЕТ задержки на показ */ transform 0.65s ease 0s,
  visibility 0s linear 0s;
}
.sub-menu2 {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}


.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  text-align: center;
}

.cookie-link {
  color: #007bff;
  text-decoration: underline;
}

.cookie-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #0056b3;
}

a.phone,
a.email {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

/* Эффект при наведении */
a.phone:hover,
a.email:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Эффект при фокусе (например, при переходе по tab) */
a.phone:focus,
a.email:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Эффект при активном состоянии (клик) */
a.phone:active,
a.email:active {
  transform: scale(0.98);
}

.portfolio-two__item.wow.fadeInUp.animated {
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-two__item.wow.fadeInUp.animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg,
  rgba(255, 255, 255, 0.2) 0%,
  rgba(255, 255, 255, 0.5) 50%,
  rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.portfolio-two__item.wow.fadeInUp.animated:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.portfolio-two__item.wow.fadeInUp.animated:hover::before {
  left: 100%;
}

.product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 30px 10px;
}

.product-table__header {
  background: #c7212b;
  color: white;
  font-weight: 500;
  font-size: 18px;
  padding: 15px 20px;
  text-align: center;
  border-radius: 25px;
}

.product-table__row {
  background: #e8e8e8;
}

.product-table__cell {
  padding: 20px;
  vertical-align: top;
  border: none;
}

.product-table__cell--name {
  width: 25%;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.product-table__cell--description {
  width: 55%;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-table__cell--price {
  width: 20%;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
}

.product-table__description-item {
  margin-bottom: 12px;
}

.product-table__description-item:last-child {
  margin-bottom: 0;
}

.product-table tbody tr:first-child td {
  border-radius: 18px 18px 0 0;
}

.product-table tbody tr:last-child td {
  border-radius: 0 0 18px 18px;
}

@media (max-width: 768px) {
  .product-table {
    border-spacing: 0;
  }

  .product-table thead {
    display: none;
  }

  .product-table tbody {
    display: block;
  }

  .product-table__row {
    display: block;
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .product-table__row:last-child {
    margin-bottom: 0;
  }

  .product-table__cell {
    display: block;
    width: 100% !important;
    padding: 15px 20px;
    border-radius: 0 !important;
    position: relative;
  }

  .product-table__cell--name {
    background: #c7212b;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
  }

  .product-table__cell--description {
    background: #f5f5f5;
    font-size: 14px;
  }

  .product-table__cell--price {
    background: #e8e8e8;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #c7212b;
  }

  .product-table__cell--price::before {
    content: "Цена за 1 м.п.: ";
    font-size: 14px;
    font-weight: normal;
    color: #666;
    display: block;
    margin-bottom: 5px;
  }
}

@media (max-width: 1024px) {
  .page-form_text-contact span {
    font-size: 23px;
  }

  .page-head_desc {
    font-weight: 500;
  }
}

.wrapper h2 {
  font-size: 1.5em;
  font-weight: bold;
}

.wrapper h3 {
  font-size: 1.17em;
  font-weight: bold;
}

.custom-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  margin-top: 0 !important;
  flex-wrap: wrap;
}

.custom-image {
  flex: 1 1 33%;
  /* 1/3 ширины */
  max-width: 33%;
  margin-right: 20px;
  /* Отступ между картинкой и текстом */
}

.custom-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.custom-text {
  overflow: hidden;
  /* Это нужно, чтобы текст правильно обтекал изображение */
  max-width: 60%;
  /* Текст будет занимать 2/3 ширины */
  padding-left: 20px;
}


@media (max-width: 768px) {
  .custom-container {
    flex-direction: column;
  }

  .custom-image,
  .custom-text {
    max-width: 100%;
    flex: 1 1 100%;
    margin-right: 0;
    /* Убираем отступ для мобильных устройств */
  }
}

.image-container {
  display: flex;
  gap: 10px;
  margin-top: 0 !important;
  flex-wrap: wrap;
}

.image-container img {
  width: 49%;
  /* Чтобы изображения занимали примерно половину контейнера */
  height: auto;
  border-radius: 10px;
  /* Скругление картинки */
}

@media (max-width: 768px) {
  .image-container {
    flex-direction: column;
    align-items: center;
  }

  .image-container img {
    width: 100%;
    /* На мобильных устройствах картинки занимают всю ширину */
  }
}

.three-photo-gallery {
  display: flex;
  gap: 10px;
  margin-top: 0 !important;
  flex-wrap: wrap;
}

.three-photo-gallery .three-photo-item {
  width: 32%;
  /* Для трех изображений в ряд */
  height: auto;
  border-radius: 10px;
  /* Скругление картинки */
}

@media (max-width: 768px) {
  .three-photo-gallery {
    flex-direction: column;
    align-items: center;
  }

  .three-photo-gallery .three-photo-item {
    width: 100%;
    /* На мобильных устройствах картинки занимают всю ширину */
  }
}
.top-contact-bar {
  background-color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.top-contact-bar__container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.top-contact-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
}

.top-contact-bar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #555;
}

.top-contact-bar__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.top-contact-bar__text {
  white-space: nowrap;
}

.top-contact-bar__link {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.top-contact-bar__link:hover {
  color: #000;
}

/* Скрываем на мобильных устройствах */
@media screen and (max-width: 1000px) {
  .top-contact-bar {
    display: none;
  }
}

/* Адаптация для средних экранов */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .top-contact-bar__container {
    justify-content: flex-start;
    gap: 30px;
  }
}

body.page-services .head-menu__link2 {
  color: #000;
}

.footer-menu > li.has-childs .footer-menu__link-arrow svg {
  width: 22px;
}

/* слайдеры на главной */
@media screen and (max-width: 989px) {
  .main-screen__slider {display: none}
  .main-screen__slider_mobile {display: block}
}
@media screen and (min-width: 990px) {
  .main-screen__slider {display: block}
  .main-screen__slider_mobile {display: none}
}

@media (min-width: 1440px) {
    body.page-services .services-img {
        min-height: 147vh !important;
    }
}