.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;
}
.page-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
	border-radius: 0 0 10px 10px;
}
.page-item_inner__img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	    transition: background-size 0.4s ease;
}
.page-item:hover .page-item_inner__img {
    background-size: 120%; /* можно 110% — зависит от желаемого эффекта */
}
.portfolio-two__item.wow.fadeInUp.animated:hover::before {
    left: 100%;
}

.form-callback input[type='submit'] {
    outline: none;
    border: none;
}

.callback-btn:hover, .form-callback input[type='submit']:hover {
    transition: ease-in-out 0.5s;
      box-shadow:
    0 12px 25px rgba(255, 24, 31, 0.5),  /* Основная сильная красная тень */
    0 4px 6px rgba(255, 24, 31, 0.3);   /* Дополнительная ближняя тень для объёма */
  transform: scale(1.05); /* Увеличение на 5% — выглядит плавно и не агрессивно */
}

#back-top {
right: 2rem;
}

.page-showmore__text.visible {
    padding: 60px 0;
}

.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  margin-bottom: 100px;
}

.card {
  border-radius: 8px;
  overflow: hidden;
  width: calc(48%);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: auto;
}
.card-img img {
	border-radius: 10px;
}
.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

ul.head-menu > li {
    /* align-items: center; */
    /* height: 50px; */
    height: 50px;
    line-height: 50px;
}

/* базовое состояние: скрыто, задержка ТОЛЬКО на скрытие */
.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;
}

.sub-menu {
    display: none;
    position: absolute;
    width: 1680px;
    /* left: 0; */
    /* top: 150px; */
    /* margin: 0 auto; */
    left: 50%;
    margin-left: -840px;
    /* transition: 2s; */
    /* transition: all 5s ease; */
    /* opacity: 0; */
    /* transform: translateY(20px); */
    /* transition: all .4s ease-in-out; */
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    gap: 20px;
}

.head-menu li:hover .sub-menu{
    display: flex;
    /*flex-wrap: wrap;*/
    /*gap: 40px;*/
    /*padding: 20px;*/
    /*background: #fff;*/
    /* top: 20px; */
    /*border-radius: 10px;*/
    /*padding-top: 20px;*/
    /*gap: 20px;*/
    /*margin-top: 20px;*/

    /*opacity: 1;*/
    /*transform: translateY(0);*/
}

.head-menu li:hover a {
    /*padding-bottom: 15px;*/
    /*display: inline-block;*/
}

.sub-menu li {
    flex-basis: 31%;
    margin: 0 !important;
    display: flex;
    align-items: start;
    gap: 15px;
    line-height: 1;
}

.sub-menu2 li {
    line-height: 1;
}

.head-menu__link-img{
    /* background: #d70c17; */
    /* padding: 10px; */
    border-radius: 10px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: start;
    justify-content: center;
    flex: 0 0 90px;
}

/*.head-menu__link-img svg{*/
/*	fill: #fff;*/
/*}*/

.head-menu__link-img img{
    width: 100%;
    max-height: 100%;
}

.sub-menu .head-menu__link{
    text-transform: uppercase;
    /*margin-top: 10px;*/
    overflow-wrap: break-word;
    white-space: normal;
    width: fit-content;
}

.head-menu__link-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.head-menu__link-text .sub-menu2{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.head-menu__link-text .sub-menu2 li:nth-child(n+7){
    display: none;
}

.head-menu__link-text .sub-menu2 li:last-child{
    display: inline-block;
}

.head-menu__link-text ul li a{
    text-decoration: none;
    font-size: 13px;
    color: #000;
    transition: .3s;

}

.head-menu__link-text ul li.show-more{
    padding-top: 5px;
    text-decoration: underline;
    /* padding-bottom: 5px; */
    /* border-bottom: 1px solid #000; */
}

.head-menu__link-text ul li a:hover{
    text-decoration: underline;
}

.sub-menu__mobile .footer-menu__link{
    border: none !important;
}

/*.sub-menu__mobile .footer-menu__link-text{*/
/*    padding-left: 20px;*/
/*}*/

.sub-menu__mobile .footer-menu__link{
    padding: 5px 20px 5px 40px;
    flex: 1 0 90%;
}

.sub-menu__mobile {
    margin-bottom: 15px;
    display: none;
}

.has-childs.active .sub-menu__mobile {
    display: block;
}

.footer-menu > li a{
    width: 100%;
}

.footer-menu > li.has-childs{
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-direction: column; */
    flex-wrap: wrap;
    position: relative;
}

.footer-menu > li.has-childs a{
    flex: 1 0 90%;
}

.footer-menu > li.has-childs .footer-menu__link-arrow{
    flex: 0 0 10px;
    position: absolute;
    right: 20px;
    rotate: 180deg;
    top: 10px;
}

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

.footer-menu > li.has-childs.active .footer-menu__link-arrow svg{
    rotate: -180deg;
}

/*.footer-menu__link-arrow {*/
/*    display: none;*/
/*}*/

@media screen and (max-width: 768px) {
  .card {
    width: 100%;
    margin-bottom: 20px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }
}

.page-showmore__text img {
    border-radius: 10px;
}

.page-other {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .page-head__title h2 {
        font-weight: 700;
        font-size: 32px;
    }
}