@font-face {
    font-family: 'Nunito Variable';
    src: url('../fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito Variable';
    src: url('../fonts/Nunito/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'Helios Extended';
    src: url('../fonts/Helios_Extended.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cy Grotesk';
    src: url('../fonts/CyGrotesk-GrandBold.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'impact';
    src: url('../fonts/impact.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Variable', sans-serif;
}

.tip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
    font-style: italic;
}

.hint {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: left;
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tip:active .hint {
    visibility: visible;
    opacity: 1;
}

.tip:hover .hint {
    visibility: visible;
    opacity: 1;
}

body {
    cursor: none;
    cursor: default;
    margin: 0;
    padding: 0;
}

footer {
    margin: 80px 0 0 0;
    padding: 0;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 1)
}

.overlay-menu {
    display: none;
}

/* Header styles */
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(244, 244, 244, 0.92);
    backdrop-filter: blur(10px);
  	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Левый блок */
.header-left {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px;
	text-decoration: none;
	cursor: pointer;
}

.header-left .logo {
    max-width: 80px;
    order: 1;
}

.header-left .text-block {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    order: 2;
}

.header-left .text-block p {
    font-family: 'impact', sans-serif;
    font-size: 36px;
    font-weight: 500;
}

.header-left .text-block p .red {
    color: #D1321C;
    font-family: 'impact', sans-serif;
}

.header-left .text-block p .black {
    color: black;
    font-family: 'impact', sans-serif;
}

.header-left .text-block p .blue {
    color: #142E9E;
    font-family: 'impact', sans-serif;
}

.header-left .text-block p.slogan {
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
    white-space: nowrap;
    color: #142E9E;
    font-family: 'Nunito Variable', sans-serif;
}

/* Центральный блок */
.header-center {
    text-align: center;
    max-width: 80%;
    padding: 5px;
    padding-top: 10px;
}

.header-center h1 {
    white-space: nowrap;
    font-size: 26px;
    color: #D1321C;
    margin-bottom: 1px;
    font-family: 'Cy Grotesk', sans-serif;
    font-weight: 600;
}

.header-center .subtitle {
    font-size: 16px;
    font-family: 'Helios Extended', sans-serif;
    font-weight: 600;
    color: #142E9E;
    margin-bottom: 10px;
}

/* Правый блок */
.header-right {
    max-width: 10%
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 10px;
    padding: 5px
}

.phone-block {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.phone-icon {
    max-width: 30px;
    margin-right: 2px;
}

.phone-number {
    font-size: 19px;
    font-weight: 900;
    color: #D1321C;
    text-decoration: none;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 0px 30px 0px 30px;
    white-space: nowrap;
    border: 1px solid transparent;
    overflow: hidden;
    transition: border 0.5s ease-in-out, box-shadow 0.5s ease-in-out,
        background-color 0.5s ease-in-out, border-radius 1.5s ease-in-out;
}

.phone-number::before {
    content: ''; /* Псевдо-элемент для подчеркивания */
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 0; /* Изначально скрыто */
    height: 1px; /* Высота подчеркивания */
    background-color: #D1321C;
    transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out; /* Анимация для появления и исчезновения */
    transform-origin: right; /* Движение при исчезновении */
    animation: underline-effect 15s infinite; /* Цикл анимации */
}

.phone-number::after {
    content: ''; /* Псевдо-элемент для подчеркивания */
    position: absolute;
    bottom: top;
    left: 5%;
    width: 0; /* Изначально скрыто */
    height: 1px; /* Высота подчеркивания */
    background-color: #D1321C;
    transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out; /* Анимация для появления и исчезновения */
    transform-origin: left; /* Движение при исчезновении */
    animation: upperline-effect 15s infinite; /* Цикл анимации */
    animation-delay: 3s;
}

@keyframes underline-effect {
    0% {
        height: 1px;
        width: 0%; /* Старт с нуля */
        transform: translateX(0%); /* Без смещения */
        background-color: #D1321C;
    }
    25% {
        height: 1px;
        width: 0%;
        transform: translateX(50%);
        background-color: #D1321C;
    }
    49% {
        height: 1px;
        width: 100%; /* Полное растяжение слева направо */
        transform: translateX(100%); /* Без смещения */
        background-color: #D1321C;
    }
    50% {
        height: 2px;
        width: 100%; /* Полное растяжение слева направо */
        transform: translateX(100%); /* Без смещения */
        background-color: #ACACAC;
    }
    75% {
        height: 2px;
        width: 50%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(0%); /* Смещаем вправо */
        background-color: #ACACAC;
    }
    99% {
        height: 2px;
        width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(0%); /* Смещаем вправо */
        background-color: #ACACAC;
    }
    100% {
        height: 1px;
        width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(0%); /* Смещаем вправо */
        background-color: #D1321C;
    }
}

@keyframes upperline-effect {
    0% {
        height: 2px;
        width: 100%; /* Старт с нуля */
        transform: translateX(100%); /* Без смещения */
        background-color: #ACACAC;
    }
    25% {
        height: 2px;
        width: 50%;
        transform: translateX(50%);
        background-color: #ACACAC;
    }
    49% {
        height: 2px;
        width: 0%; /* Полное растяжение слева направо */
        transform: translateX(0%); /* Без смещения */
        background-color: #ACACAC;
    }
    50% {
        height: 1px;
        width: 0%; /* Полное растяжение слева направо */
        transform: translateX(0%); /* Без смещения */
        background-color: #D1321C;
    }
    75% {
        height: 1px;
        width: 50%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(100%); /* Смещаем вправо */
        background-color: #D1321C;
    }
    99% {
        height: 1px;
        width: 100%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(100%); /* Смещаем вправо */
        background-color: #D1321C;
    }
    100% {
        height: 1px;
        width: 100%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
        transform: translateX(100%); /* Смещаем вправо */
        background-color: #D1321C;
    }
}

.phone-number:hover::before, .phone-number:hover::after {
    animation: none;
    transform: scaleX(0);
    opacity: 1;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.phone-number:hover {
    border-radius: 35px 10px 35px 10px;
    border: 1px solid #D1321C;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    background-color: rgba(209, 50, 28, 0.1);
}

.header-right p.one {
    font-size: 15px;
    font-weight: 700;
    color: #142E9E;
  	text-align: right;
  	padding: 1px;
}

.header-right p.two {
    font-size: 22.5px;
    font-weight: 400;
    color: #142E9E;
  	text-align: right;
  	text-decoration: underline;
}

/* Навигация */
nav {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.03);
}

nav ul {
    opacity: 0.9;
    list-style: none;
    display: flex;
    justify-content: space-between;
  	align-items: center;
    padding: 5px;
    margin: 0 auto;
  	max-width: 900px;
}

nav ul li {
    margin: 0 2px;
}

nav ul li a {
    display: block;
    padding: 5px 5px;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
    color: #142E9E;
    transition: color 0.3s ease, border-bottom 0.6s ease, box-shadow 0.3s ease-in-out,
        border-radius 1.5s ease-in-out, background-color 0.3s ease-in-out, font-weight 1s;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #D1321C;
    border-bottom: 2px solid #142E9E;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px 10px 0 0;
    background-color: rgba(209, 50, 28, 0.03);
    font-weight: 900;
}

nav ul li a.active {
    color: #D1321C;
    border-bottom: 2px solid transparent;
    font-weight: 700;
}

/* Стили для футера */
footer {
    background-color: #142E9E;
    padding: 40px 40px;
    color: #FFF;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Стили для логотипа и текста */
.footer-logo-section {
    display: flex;
}

.lower-logo {
    max-width: 110px;
    margin-right: 10px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .name {
    font-size: 40px;
    font-weight: 500;
    color: #D1321C;
    margin: auto 0 0 0;
    font-family: 'impact', sans-serif;
}

.footer-logo .slogan {
    font-size: 16px;
    font-weight: 500;
    color: #FFF;
    margin: 0 0 auto 0;
}

/* Стили для меню */

.footer-menu {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: center;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

.footer-socials ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    background-color: #FFF;
    border-radius: 15px;
    box-shadow: inset 0 0 10px 2px #142E9E;
}

.footer-socials ul li {
    width: 34%;
    margin: 20px auto 20px auto;
    text-align: center;
}

.footer-menu h3,
.footer-socials h3 {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}

.footer-menu ul li a {
    font-size: 19px;
}

.footer-menu ul,
.footer-socials ul {
    list-style: none;
}

.footer-socials ul li a img {
    width: 50px;
    border-radius: 15px;
    box-shadow: 0 0 5px 0px #000;
}

.footer-menu ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu ul li a:hover {
    color: #D1321C;
}

/* Адаптация под малые экраны и планшеты */
@media (max-width: 1200px) {
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1000;
        background-color: rgba(244, 244, 244, 0.92);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Левый блок */
    .header-left {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 5px;
    }

    .header-left .logo {
        max-width: 60px;
        order: 1;
    }

    .header-left .text-block {
        display: flex;
        flex-direction: column;
        padding-left: 10px;
        order: 2;
    }

    .header-left .text-block p.name {
        font-family: 'impact', sans-serif;
        font-size: 26px;
        font-weight: 500;
        color: #D1321C
    }

    .header-left .text-block p.slogan {
        font-size: 9px;
        font-weight: 800;
        margin-top: 2px;
        white-space: nowrap;
        color: #142E9E
    }

    /* Центральный блок */
    .header-center {
        text-align: center;
        max-width: 60%;
        padding: 5px;
        padding-top: 5px;
    }

    .header-center h1 {
        white-space: nowrap;
        font-size: 20px;
        color: #D1321C;
        font-family: 'Cy Grotesk', sans-serif;
        font-weight: 600;
    }

    .header-center .subtitle {
        font-size: 13px;
        font-family: 'Helios Extended', sans-serif;
        font-weight: 600;
        color: #142E9E;
    }

    /* Правый блок */
    .header-right {
        max-width: 20%
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 5px
    }

    .phone-block {
        display: flex;
        align-items: center;
    }

    .phone-icon {
        max-width: 18px;
    }

    .phone-number {
        font-size: 16px;
        font-weight: 900;
        color: #D1321C;
        text-decoration: none;
        position: relative;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 0px 30px 0px 30px;
        white-space: nowrap;
        border: 1px solid transparent;
        overflow: hidden;
        transition: border 0.5s ease-in-out, box-shadow 0.5s ease-in-out,
            background-color 0.5s ease-in-out, border-radius 1.5s ease-in-out;
    }

    .phone-number::before {
        content: ''; /* Псевдо-элемент для подчеркивания */
        position: absolute;
        bottom: 0;
        left: 5%;
        width: 0; /* Изначально скрыто */
        height: 1px; /* Высота подчеркивания */
        background-color: #D1321C;
        transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out;
        transform-origin: right;
        animation: underline-effect 15s infinite;
    }

    .phone-number::after {
        content: '';
        position: absolute;
        bottom: top;
        left: 5%;
        width: 0;
        height: 1px;
        background-color: #D1321C;
        transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out;
        transform-origin: left;
        animation: upperline-effect 15s infinite;
        animation-delay: 3s;
    }

    @keyframes underline-effect {
        0% {
            height: 1px;
            width: 0%;
            transform: translateX(0%);
            background-color: #D1321C;
        }
        25% {
            height: 1px;
            width: 0%;
            transform: translateX(50%);
            background-color: #D1321C;
        }
        49% {
            height: 1px;
            width: 100%;
            transform: translateX(100%);
            background-color: #D1321C;
        }
        50% {
            height: 2px;
            width: 100%;
            transform: translateX(100%);
            background-color: #ACACAC;
        }
        75% {
            height: 2px;
            width: 50%;
            transform: translateX(0%);
            background-color: #ACACAC;
        }
        99% {
            height: 2px;
            width: 0%;
            transform: translateX(0%);
            background-color: #ACACAC;
        }
        100% {
            height: 1px;
            width: 0%;
            transform: translateX(0%);
            background-color: #D1321C;
        }
    }

    @keyframes upperline-effect {
        0% {
            height: 2px;
            width: 100%;
            transform: translateX(100%);
            background-color: #ACACAC;
        }
        25% {
            height: 2px;
            width: 50%;
            transform: translateX(50%);
            background-color: #ACACAC;
        }
        49% {
            height: 2px;
            width: 0%;
            transform: translateX(0%);
            background-color: #ACACAC;
        }
        50% {
            height: 1px;
            width: 0%;
            transform: translateX(0%);
            background-color: #D1321C;
        }
        75% {
            height: 1px;
            width: 50%;
            transform: translateX(100%);
            background-color: #D1321C;
        }
        99% {
            height: 1px;
            width: 100%;
            transform: translateX(100%);
            background-color: #D1321C;
        }
        100% {
            height: 1px;
            width: 100%;
            transform: translateX(100%);
            background-color: #D1321C;
        }
    }

    .phone-number:hover::before, .phone-number:hover::after {
        animation: none;
        transform: scaleX(0);
        opacity: 1;
        transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    }

    .phone-number:hover {
        border-radius: 35px 10px 35px 10px;
        border: 1px solid #D1321C;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
        background-color: rgba(209, 50, 28, 0.1);
    }

    .header-right p.one {
        font-size: 12px;
        font-weight: 700;
        color: #142E9E;
        text-align: right;
        padding: 1px;
    }

    .header-right p.two {
        font-size: 18px;
        font-weight: 400;
        color: #142E9E;
        text-align: right;
        text-decoration: underline;
    }

    /* Навигация */
    nav {
        text-align: center;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.03);
    }

    nav ul {
        opacity: 0.9;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        max-width: 800px;
    }

    nav ul li {
        margin: 0 3px;
    }

    nav ul li a {
        display: block;
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0);
        color: #142E9E;
        transition: color 0.3s ease, border-bottom 0.6s ease, box-shadow 0.3s ease-in-out,
            border-radius 1.5s ease-in-out, background-color 0.3s ease-in-out, font-weight 1s;
        font-size: 15px;
        font-weight: 800;
        border-bottom: 2px solid transparent;
    }

    nav ul li a:hover {
        color: #D1321C;
        border-bottom: 2px solid #142E9E;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
        border-radius: 10px 10px 0 0;
        background-color: rgba(209, 50, 28, 0.03);
        font-weight: 900;
    }

    nav ul li a.active {
        color: #D1321C;
        border-bottom: 2px solid transparent;
        font-weight: 800;
    }
}

/* Мобильная адаптация */
@media (max-width: 980px) {
    header, .header-top, .header-left, .header-center, .header-right, header nav, header ul, header li,
     header *, .header-top *, .header-left *, .header-center *, .header-right *, header nav *, header ul *, header li * {
        all: unset;
        margin: 0;
        padding: 0;
        font: unset;
        color: unset;
    }

    header .header-top {
        width: 87%;
        margin: auto;
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }

    header .header-left {
        display: flex;
        width: 50%;
        order: 1;
    }

    header .header-left .logo {
        padding: 0;
        margin-right: 5px;
        max-width: 120px;
        height: 120px;
    }

    header .header-left .text-block {
        padding: 0;
        margin-right: auto;
        margin-left: 5px;
    }

    header .header-left .text-block p.name {
        margin: 0;
        padding: 0;
        font-size: 50px;
    }

    header .header-left .text-block p.slogan {
        margin: 0;
        padding: 0;
        font-size: 17px;
    }

    header .header-right {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        width: 50%;
        order: 2;
    }

    header .header-right .phone-block {
        margin-top: 10px;
        display: flex;
    }

    header .header-right .phone-block .phone-icon {
        width: 45px;
        cursor: pointer;
    }

    header .header-right .phone-block .phone-number {
        cursor: pointer;
        display: flex;
        position: relative;
        align-items: center;
        font-size: 18.5px;
        font-weight: 900;
        color: #D1321C;
        border: 1px solid transparent;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 0px 30px 0px 30px;
        transition: border 0.5s ease-in-out, box-shadow 0.5s ease-in-out, background-color 0.5s ease-in-out, border-radius 1.5s ease-in-out;
    }

    header .header-right .phone-block .phone-number::before {
        content: ''; /* Псевдо-элемент для подчеркивания */
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 0; /* Изначально скрыто */
        height: 1px; /* Высота подчеркивания */
        background-color: #D1321C;
        transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out; /* Анимация для появления и исчезновения */
        transform-origin: right; /* Движение при исчезновении */
        animation: underline-effect 15s infinite; /* Цикл анимации */
    }

    header .header-right .phone-block .phone-number::after {
        content: ''; /* Псевдо-элемент для подчеркивания */
        position: absolute;
        top: 5px;
        right: 0;
        width: 0; /* Изначально скрыто */
        height: 1px; /* Высота подчеркивания */
        background-color: #D1321C;
        transition: width 1s ease-in-out, transform 1s ease-in-out, height 1s ease-in-out; /* Анимация для появления и исчезновения */
        transform-origin: right; /* Движение при исчезновении */
        animation: upperline-effect 15s infinite; /* Цикл анимации */
        animation-delay: 3.5s;
    }

    @keyframes underline-effect {
        0% {
            height: 1px;
            width: 0%; /* Старт с нуля */
            transform: translateX(0%); /* Без смещения */
            background-color: #D1321C;
        }
        25% {
            height: 1px;
            width: 50%;
            left: 0%;
            transform: translateX(100%);
            background-color: #D1321C;
        }
        49% {
            height: 1px;
            width: 0%;
            left: 100%;
            transform: translateX(0%);
            background-color: #D1321C;
        }
        50% {
            height: 2px;
            width: 0%; /* Полное растяжение слева направо */
            left: 100%;
            transform: translateX(100%); /* Без смещения */
            background-color: #ACACAC;
        }
        75% {
            height: 2px;
            left: 0%;
            width: 50%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            transform: translateX(100%); /* Смещаем вправо */
            background-color: #ACACAC;
        }
        99% {
            height: 2px;
            width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            transform: translateX(0%); /* Смещаем вправо */
            background-color: #ACACAC;
        }
        100% {
            height: 1px;
            width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            transform: translateX(0%); /* Смещаем вправо */
            background-color: #D1321C;
        }
    }

    @keyframes upperline-effect {
        0% {
            height: 2px;
            width: 0%;
            transform: translateX(0%);
            background-color: #ACACAC;
        }
        25% {
            height: 2px;
            width: 50%;
            transform: translateX(0%);
            background-color: #ACACAC;
        }
        49% {
            height: 2px;
            width: 0%; /* Полное растяжение слева направо */
            transform: translateX(0%); /* Без смещения */
            background-color: #ACACAC;
        }
        50% {
            height: 1px;
            width: 0%; /* Полное растяжение слева направо */
            left: 0%;
            transform: translateX(0%); /* Без смещения */
            background-color: #D1321C;
        }
        75% {
            height: 1px;
            width: 50%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            left: 0%;
            transform: translateX(100%); /* Смещаем вправо */
            background-color: #D1321C;
        }
        99% {
            height: 1px;
            width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            left: 100%;
            transform: translateX(100%); /* Смещаем вправо */
            background-color: #D1321C;
        }
        100% {
            height: 1px;
            width: 0%; /* Линия исчезает, но начиная с левого края, двигаясь к правому */
            transform: translateX(100%); /* Смещаем вправо */
            background-color: #D1321C;
        }
    }

    header .header-right .phone-block .phone-number:hover::before, header .header-right .phone-block .phone-number:hover::after {
        animation: none;
        transform: scaleX(0);
        opacity: 1;
        transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    }

    header .header-right .phone-block .phone-number:hover {
        border-radius: 35px 10px 35px 10px;
        border: 1px solid #D1321C;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
        background-color: rgba(209, 50, 28, 0.1);
    }

    header .header-right p.one {
        font-size: 13.8px;
        font-weight: 800;
    }

    header .header-right p.two {
        font-size: 21px;
        font-weight: 500;
    }

    header .header-center {
        margin-top: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        order: 3;
    }

    header .header-center h1 {
        margin: 0 auto;
        margin-bottom: 5px;
        text-align: center;
        white-space: nowrap;
        font-size: 19.5px;
        line-height: 28px;
        width: calc(100% + 10%);
        margin-left: -30px;
        margin-right: -30px;
    }

    header .header-center p.subtitle {
        margin: 0 auto;
        text-align: right;
        white-space: wrap;
        font-size: 15px;
    }

    /* Навигация */
    header nav {
        text-align: center;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.03);
    }

    nav ul {
        text-align: center;
        box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.15);
        opacity: 0.9;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0px;
        margin: 0 auto;
        margin-top: 20px;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        width: 95%;
        z-index: 1000;
        background-color: rgba(244, 244, 244, 1);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    nav ul li {
        margin: 0 2px;
    }

    nav ul li a {
        cursor: pointer;
        display: block;
        padding: 5px 5px;
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0);
        color: #142E9E;
        transition: color 0.3s ease, border-bottom 0.6s ease, box-shadow 0.3s ease-in-out,
            border-radius 1.5s ease-in-out, background-color 0.3s ease-in-out, font-weight 1s;
        font-size: calc(11.3px + 0.6vw);
        font-weight: 700;
        border-bottom: 2px solid transparent;
    }

    nav ul li a:hover {
        color: #D1321C;
        border-bottom: 2px solid #142E9E;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
        border-radius: 10px 10px 0 0;
        background-color: rgba(209, 50, 28, 0.03);
        font-weight: 900;
    }

    nav ul li a.active {
        color: #D1321C;
        border-bottom: 2px solid transparent;
        font-weight: 700;
    }

    /* Стили для футера */
    footer {
        background-color: #142E9E;
        padding: 40px 40px;
        color: #FFF;
        margin: 50px 0 0 0;
    }

    .footer-container {
        display: flex;
        padding: 0;
    }

    /* Стили для логотипа и текста */
    .footer-logo-section {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .lower-logo {
        margin: 0;
        padding: 0;
        max-width: 100px;
        margin-bottom: 10px;
    }

    .footer-logo {
        margin: 0;
        padding: 0;
    }

    .footer-logo .name {
        margin: 0;
        padding: 0;
        font-size: 34px;
        color: #D1321C;
        font-family: 'impact', sans-serif;
    }

    .footer-logo .slogan {
        margin: 0;
        padding: 0;
        text-align: center;
        font-size: 11.5px;
        font-weight: 600;
        color: #FFF;
    }

    /* Стили для меню */
    .footer-menu {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .footer-menu h3,
    .footer-socials h3 {
        padding: 0;
        font-size: 26px;
        font-weight: 900;
        text-align: center;
    }

    .footer-menu ul {
        list-style: none;
        padding: 0;
        margin-top: 5px;
        font-size: 19px;
        font-weight: 300;

    }

    .footer-socials ul {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 5px auto;
        column-count: 2;
        text-align: center;
        width: 80%;
    }

    .footer-socials ul li {
        padding: 0;
    }

    .footer-menu ul li {
        padding: 0;
        margin-bottom: 3px;
    }

    .footer-socials ul li a img {
        margin: 5px auto;
        width: 50px;
    }

    .footer-socials ul li a {
        padding: 0;
    }

    .footer-menu ul li a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-menu ul li a:hover,
    .footer-socials ul li a:hover {
        color: #D1321C;
    }

    /* Псевдоэлемент для быстрого звонка */
    .scroll-triggered-element::before {
        cursor: pointer;
        content: '+7 (912) 273-27-77';
        position: fixed;
        bottom: 10px;
        right: 10px;
        color: #000;
        font-size: 14px;
        font-weight: 800;
        background-color: #EE662C;
        padding: 10px 10px 10px 40px;
        border: 0;
        border-radius: 15px;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1000;

        background-image: url('../pics/phone.png');
        background-repeat: no-repeat;
        background-size: 24px 24px;
        background-position: 10px center;
    }

    .scroll-visible::before {
        opacity: 1;
    }
}

@media (max-width: 590px) {
    header, .header-top, .header-left, .header-center, .header-right, header nav, header ul, header li, .scroll-triggered-element::before,
     header *, .header-top *, .header-left *, .header-center *, .header-right *, header nav *, header ul *, header li * {
        all: unset;
        margin: 0;
        padding: 0;
        display: unset;
        font-size: unset;
        font-weight: unset;
        color: unset;
    }

    /* Подсказки */
    .tip {
        position: relative;
        display: inline-block;
        cursor: pointer;
        text-decoration: underline;
        font-style: italic;
    }

    .hint {
        visibility: hidden;
        background-color: #333;
        color: #fff;
        text-align: left;
        font-size: 14px;
        padding: 5px;
        border-radius: 5px;
        position: absolute;
        z-index: 1001;
        bottom: 150%;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 50vw;
        max-width: 90vw;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .hint::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .tip:active .hint {
        visibility: visible;
        opacity: 1;
    }

    .tip:hover .hint {
        visibility: visible;
        opacity: 1;
    }

    .tip:active .hint, .tip:focus .hint {
        visibility: visible;
        opacity: 1;
    }

    body header {
        padding: 0;
        margin: 0 0 30px 0;
        display: flex;
        box-shadow: 0 0 20px 3px rgba(0, 0, 0, 0.2);
    }

    header .header-top {
        padding: 0 0 20px 0;
        margin: 0 auto 0 auto;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    header .header-top .header-left {
        width: 95%;
        padding: 0;
        margin: 5px auto;
        display: flex;
        order: 1;
    }

    header .header-top .header-left .logo {
        margin-left: auto;
        width: 95px;
        height: 95px;
    }

    header .header-top .header-left .text-block {
        padding: 0;
        margin: 0;
        margin-right: auto;
        margin-left: 15px;
        display: flex;
        flex-direction: column;
        items-align: flex-start;
    }

    header .header-top .header-left .text-block .name {
        padding: 0;
        margin: -5px 0 0 0;
        font-size: 52px;
    }

    header .header-top .header-left .text-block .slogan {
        padding: 0;
        margin: 0;
        font-size: 17px;
        line-height: 19px;
    }

    header .header-top .header-center {
        padding: 0;
        margin: 0 auto;
        width: 95%;
        order: 2;
    }

    header .header-top .header-center h1 {
        padding: 0;
        margin: 10px auto 0 auto;
        width: 100%;
        font-size: 28px;
        text-wrap: wrap;
        text-align: center;
    }

    header .header-top .header-center p {
        padding: 0;
        margin: 5px auto 0 auto;
        font-size: 15px;
        text-wrap: wrap;
        text-align: center;
    }

    /* Скрываем overlay-menu по умолчанию */
    .overlay-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    }

    .overlay-menu.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease;
    }

    .overlay-menu img.overlay-logo {
        max-width: 150px;
        margin-bottom: 10px;
    }

    .overlay-menu h2.overlay-name {
        font-size: 50px;
        font-family: 'impact', sans-serif;
        color: #D1321C;
        margin-bottom: 30px;
    }

    .overlay-menu nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .overlay-menu nav a {
        font-size: 22px;
        margin: 5px 0;
        text-decoration: none;
        color: #142E9E;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .overlay-menu nav a.active {
        font-size: 22px;
        margin: 5px 0;
        text-decoration: underline #142E9E;
        color: #D1321C;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .overlay-menu nav a:hover {
        color: #D1321C;
    }

    header .mobile-menu {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background-color: rgba(230, 230, 230, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(50, 50, 50, 0.5);
        border-radius: 50%;
        z-index: 1000;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .mobile-menu span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: rgba(0, 0, 0, 0.8);
        position: relative;
        transition: all 0.3s ease;
    }

    header .mobile-menu span::before,
    header .mobile-menu span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        left: 0;
        transition: all 0.3s ease;
    }

    header .mobile-menu span::before {
        top: -6px;
    }

    header .mobile-menu span::after {
        top: 6px;
    }

    header .mobile-menu.active span {
        background-color: transparent;
    }

    header .mobile-menu.active span::before {
        top: 0;
        transform: rotate(45deg);
    }

    header .mobile-menu.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    header .header-top .header-right, body header nav {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Псевдоэлемент для быстрого звонка */
    .mobile-call {
        position: fixed;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        background-color: rgba(230, 230, 230, 0.3);
        background-image: url('../pics/phone.png');
        background-repeat: no-repeat;
        background-size: 24px 24px;
        background-position: 7px center;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(100, 100, 100, 0.5);
        border-radius: 50%;
        z-index: 1000;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        animation: mobile-pulse 8s infinite ease-in-out;
    }

    @keyframes mobile-pulse {
        0% {
            width: 40px;
            height: 40px;
            background-position: 7px center;
            transform: translate(0px, 0px);
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        30% {
            width: 40px;
            height: 40px;
            background-position: 7px center;
            transform: translate(0px, 0px);
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        35% {
            width: 41px;
            height: 41px;
            background-position: 8px center;
            transform: translate(1px, 1px);
            background-color: rgba(255, 180, 180, 0.7);
            border: 1px solid #D1321C;
        }

        40% {
            width: 40px;
            height: 40px;
            transform: translate(0px, 0px);
            background-position: 7px center;
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        45% {
            width: 41px;
            height: 41px;
            transform: translate(1px, 1px);
            background-position: 8px center;
            background-color: rgba(255, 180, 180, 0.7);
            border: 1px solid #D1321C;
        }

        50% {
            width: 40px;
            height: 40px;
            transform: translate(0px, 0px);
            background-position: 7px center;
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        59.9% {
            width: 41px;
            height: 41px;
            transform: translate(3px, 3px);
            background-position: 8px center;
            background-color: rgba(255, 180, 180, 0.7);
            border: 1px solid #D1321C;
        }

        60% {
            width: 41px;
            height: 41px;
            transform: translate(3px, 3px);
            background-position: 8px center;
            background-color: rgba(255, 180, 180, 0.7);
            border: 1px solid #D1321C;
        }

        79.9% {
            width: 40px;
            height: 40px;
            transform: translate(0px, 0px);
            background-position: 7px center;
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        80% {
            width: 40px;
            height: 40px;
            transform: translate(0px, 0px);
            background-position: 7px center;
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }

        100% {
            width: 40px;
            height: 40px;
            background-position: 7px center;
            transform: translate(0px, 0px);
            background-color: rgba(230, 230, 230, 0.7);
            border: 1px solid rgba(50, 50, 50, 0.4);
        }
    }

    /*____Стили для футера____*/
    footer {
        background-color: #142E9E;
        padding: 30px 0;
        color: #FFF;
        margin: 50px 0 0 0;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    /* Стили для логотипа и текста */
    .footer-logo-section {
        margin: 0 auto 50px auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .lower-logo {
        margin: 0 auto 5px auto;
        padding: 0;
        max-width: 140px;
    }

    .footer-logo .name {
        margin: 0;
        padding: 0;
        font-size: 46px;
        color: #D1321C;
        font-family: 'impact', sans-serif;
    }

    .footer-logo .slogan {
        margin: 0;
        padding: 0;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #FFF;
    }

    /* Стили для меню */
    .footer-menu {
        padding: 0;
        margin: 0 auto 50px auto;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        padding: 0;
        margin: 0 auto 0 auto;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-menu h3,
    .footer-socials h3 {
        padding: 0;
        margin: 0 auto 0 auto;
        font-size: 24px;
        font-weight: 900;
        text-align: center;
    }

    .footer-menu ul {
        list-style: none;
        padding: 0;
        margin-top: 10px;
        font-size: 16px;
        font-weight: 400;
    }

    .footer-socials ul {
        padding: 0;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        width: 90%;
    }

    .footer-socials ul li {
        padding: 0;
        margin: 10px auto;
        width: 50%;
    }

    .footer-menu ul li {
        margin-bottom: 6px;
    }

    .footer-socials ul li a img {
        margin: 5px auto;
        width: 60px;
    }

    .footer-socials ul li a {
        margin: 0px;
    }

    .footer-menu ul li a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-menu ul li a:hover,
    .footer-socials ul li a:hover {
        color: #D1321C;
    }
}