.hd-main-nav .menu-item-has-children > a::after {
    content: "";
    background-image: url(/wp-content/themes/theme/img/chevron-down.svg);
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.hd-main-nav .sub-menu {
    top: calc(100% - 1px);
    left: 0;
    display: block;
    min-width: 360px;
    padding: 22px;
    box-shadow: 0 18px 38px rgba(3, 13, 22, 0.24);
    color: #3D424A;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    background-color: #fff;
}

.hd-main-nav .sub-menu li + li {
    margin-top: 14px;
}

.hd-main-nav .sub-menu .hd-menu-divider-before {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #d8dce1;
}

.hd-main-nav .sub-menu a {
    font-size: 16px;
    line-height: 100%;
    color: #000E24;
    display: flex;
    justify-content: flex-start;
}

.hd-main-nav li:hover > .sub-menu,
.hd-main-nav li.focus > .sub-menu {
    left: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hd-main-nav .sub-menu .sub-menu {
    top: -24px;
    left: calc(100% + 28px);
}

.hd-main-nav .sub-menu li:hover > .sub-menu,
.hd-main-nav .sub-menu li.focus > .sub-menu {
    left: calc(100% + 28px);
}
body {
    --hd-header-height: 74px;
    padding-top: var(--hd-header-height);
}

body.admin-bar {
    --hd-admin-bar-height: 32px;
}

.hd-site-header {
    position: fixed;
    top: var(--hd-admin-bar-height, 0);
    right: 0;
    left: 0;
    z-index: 999;
    background: #081B2B;
}

.hd-site-header__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 16px 0;
    align-items: center;
}

.hd-site-header__contacts {
    display: flex;
}

.hd-contact-link {
    display: flex;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding-right: 28px;
    border-right: 1px solid #2E5271;
    line-height: 1;
    margin-right: 28px;
}

.hd-contact-link:nth-last-child(1) {
    padding: 0;
    margin: 0;
    border: none;
}

.menu-item a {
    line-height: 100%;
    color: #fff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.hd-main-nav__menu {
    gap: 15px;
    display: flex;
    align-items: center;
}
.hd-main-nav a:hover {
    color: #D80000;
}

.hd-site-footer {
    padding: 90px 0;
    background: #fff;
    color: #000E24;
}

.hd-site-footer__inner {
    max-width: 994px;
    margin: 0 auto;
}

.hd-site-footer__top {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid #E8EAEC;
}

.hd-site-footer__brand {
    max-width: 390px;
}

.hd-site-footer__logo {
    display: inline-flex;
    margin-bottom: 14px;
}

.hd-site-footer__logo img {
    display: block;
    width: 156px;
    height: auto;
}

.hd-site-footer__description,
.hd-site-footer__description * {
    margin: 0;
    font-size: 16px;
    line-height: 130%;
    color: #3D424A;
}

.hd-socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.hd-socials a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hd-socials a:hover {
    transform: translateY(-2px);
}

.hd-socials img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.hd-site-footer__map {
    min-height: 225px;
}

.hd-site-footer__map iframe {
    display: block;
    width: 100%;
    height: 225px;
    border: 0;
}

.hd-site-footer__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #E8EAEC;
}

.hd-site-footer__menus {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 62px;
}

.hd-site-footer__menu-column h2,
.hd-site-footer__contacts strong {
    display: block;
    margin: 0 0 16px;
    color: #000E24;
    font-size: 16px;
    font-weight: 700;
    line-height: 130%;
}

.hd-site-footer__menu,
.hd-site-footer__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hd-site-footer__menu li + li {
    margin-top: 10px;
}

.hd-site-footer__menu a,
.hd-site-footer__contacts a,
.hd-site-footer__contact-text,
.hd-site-footer__contact-text * {
    color: #3D424A;
    font-size: 15px;
    font-style: normal;
    line-height: 130%;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hd-site-footer__menu a:hover,
.hd-site-footer__contacts a:hover {
    color: #D80000;
}

.hd-site-footer__contacts {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0 0 0 30px;
    border-left: 1px solid #D80000;
    font-style: normal;
}
.hd-site-footer__contacts .phone-footer a {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.hd-site-footer__contacts strong {
    margin-bottom: 8px;
    color: #8F8E8D;
    font-size: 14px;
    font-weight: 500;
}

.hd-site-footer__contacts a,
.hd-site-footer__contact-text,
.hd-site-footer__contact-text * {
    color: #000E24;
    font-size: 16px;
    line-height: 130%;
}

.hd-site-footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hd-site-footer__whatsapp img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.hd-site-footer__contact-text p {
    margin: 0;
}

.hd-site-footer__bottom {
    padding-top: 32px;
    text-align: center;
}

.hd-site-footer__bottom p {
    margin: 0;
    color: #3D424A;
    font-size: 14px;
    line-height: 130%;
}

/*@-webkit-keyframes magic_pulse {
    from {
        box-shadow: 0 0 8px 6px #E30000, 0 0 12px 14px #E30000;
    }
    to {
        box-shadow: 0 0 18px 6px rgba(227, 0, 0, 0), 0 0 4px 35px rgba(227, 0, 0, 0);
    }
}

@-moz-keyframes magic_pulse {
    from {
        box-shadow: 0 0 8px 6px #E30000, 0 0 12px 14px #E30000;
    }
    to {
        box-shadow: 0 0 18px 6px rgba(227, 0, 0, 0), 0 0 4px 35px rgba(227, 0, 0, 0);
    }
}

@keyframes magic_pulse {
    from {
        box-shadow: 0 0 8px 6px #E30000, 0 0 12px 14px #E30000;
    }
    to {
        box-shadow: 0 0 18px 6px rgba(227, 0, 0, 0), 0 0 4px 35px rgba(227, 0, 0, 0);
    }
}

.wowbutton {
    -webkit-transition: all 0.4s ease-out 0s;
    -moz-transition: all 0.4s ease-out 0s;
    -o-transition: all 0.4s ease-out 0s;
    transition: all 0.4s ease-out 0s;
}

.wowbutton:hover {
    -webkit-animation: magic_pulse 0.4s 0s ease-out 1;
    -moz-animation: magic_pulse 0.4s 0s ease-out 1;
    animation: magic_pulse 0.4s 0s ease-out 1;
}*/

/* Добавляем пульсацию кнопке */
.wowbutton {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 18px 40px rgba(0, 14, 36, 0.22), 0 0 0 0 rgba(227, 0, 0, 0.7);
    }
    70% {
        /* В этой фазе тень расширяется */
        box-shadow: 0 18px 40px rgba(0, 14, 36, 0.22), 0 0 0 15px rgba(227, 0, 0, 0);
    }
    100% {
        box-shadow: 0 18px 40px rgba(0, 14, 36, 0.22), 0 0 0 0 rgba(227, 0, 0, 0);
    }
}

/* Остановка анимации при наведении (опционально, так комфортнее пользователю) */
.wowbutton:hover {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hd-floating-contact {
    position: fixed;
    right: clamp(18px, 4vw, 58px);
    bottom: clamp(18px, 4vw, 58px);
    z-index: 99;
    display: grid;
    justify-items: center;
    gap: 18px;
}

.hd-floating-contact__actions {
    display: grid;
    justify-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hd-floating-contact.is-open .hd-floating-contact__actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hd-floating-contact__toggle,
.hd-floating-contact__action {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(0, 14, 36, 0.22);
}

.hd-floating-contact__toggle {
    position: relative;
    background: #E30000;
    cursor: pointer;
}

.hd-floating-contact__toggle img,
.hd-floating-contact__action img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hd-floating-contact__action--whatsapp {
    background: #12B84E;
}

.hd-floating-contact__action--phone {
    background: #25206F;
}

.hd-floating-contact__action--phone img,
.hd-floating-contact__toggle img {
    filter: brightness(0) invert(1);
}

.hd-floating-contact__close {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hd-floating-contact__close::before, .hd-floating-contact__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    content: "";
    transform: translate(-50%, -50%);
}
.hd-floating-contact__toggle {
    width: 70px;
    height: 70px;
}
.hd-floating-contact__toggle img {
    width: 25px;
    height: 25px;
}
.hd-floating-contact__close::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hd-floating-contact.is-open .hd-floating-contact__toggle-icon {
    opacity: 0;
}

.hd-floating-contact.is-open .hd-floating-contact__close {
    opacity: 1;
    transform: rotate(-45deg);
}

@media (max-width: 700px) {
    body.admin-bar {
        --hd-admin-bar-height: 46px;
    }

    .hd-floating-contact__toggle,
    .hd-floating-contact__action {
        width: 64px;
        height: 64px;
    }

    .hd-floating-contact__toggle img,
    .hd-floating-contact__action img {
        width: 28px;
        height: 28px;
    }
}
.hd-site-header__inner .menu-item a {
    padding: 10px 0;
}

.hd-site-header__inner .menu-item ul.sub-menu a {
    padding: 3px 0;
}
button.hd-faq__button {
    color: #000E24;
}
article.hd-faq__item.is-open button.hd-faq__button {
    color: #fff;
}
@media (min-width: 1024px) {
    .hd-main-nav li:hover > .sub-menu {
        max-height: max-content !important;
    }
}
@media (max-width: 1024px) {
    .hd-site-footer {
        padding: 70px 0 44px;
    }

    .hd-site-footer__top,
    .hd-site-footer__navigation {
        grid-template-columns: 1fr;
    }

    .hd-site-footer__brand {
        max-width: 420px;
    }

    .hd-site-footer__menus {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .hd-site-footer__contacts {
        padding-left: 24px;
    }
    .hd-site-header__contacts {
        min-width: 155px;
    }
    .hd-hero__stage {
        padding-top: 64px;
    }
}

@media (max-width: 720px) {
    .hd-site-footer__menus {
        grid-template-columns: 1fr;
    }

    .hd-site-footer__top {
        gap: 34px;
    }

    .hd-site-footer__navigation {
        gap: 34px;
    }
}
