body {
    margin: 0;

    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #6c7279;
    -webkit-font-smoothing: antialiased;

    background-color: #fff;
}

a {
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    text-decoration: none;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0 0 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    width: 100%;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: opacity 0.3s;
    opacity: 1;
}

.header.fixed {
    position: fixed;
    height: auto;
    background-color: #8ab2fd;
    opacity: 1;
    animation: headerFadeIn 0.4s;
}

@keyframes headerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.header.fixed .header__inner {
    padding: 15px 0;

    border-bottom: 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;

    border-bottom: 4px solid #efefef;
}

.header__phone {
    margin-left: 15px;
    font-size: 28px;
    font-weight: 700;
}

.header__phone a {
    text-decoration: none;
    color: #fff;
    transition: color .2s linear;
}

.header__phone a:hover {
    color: #490b0b;
}

.header__email {
    margin-left: 15px;
    font-size: 28px;
    font-weight: 700;
}

.header__email a {
    text-decoration: none;
    color: #fff;
    transition: color .2s linear;
}

.header__email a:hover {
    color: #490b0b;
}

/* Стили для хедера второстепенных страниц */
.header-secondary {
    width: 100%;
    height: 100px;
    position: relative;
    background-color: #8ab2fd;
    z-index: 1000;
    border-bottom: 4px solid #efefef;
}

.header-secondary__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.header-secondary__phone {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 28px;
    font-weight: 700;
}

.header-secondary__phone a {
    text-decoration: none;
    color: #fff;
    transition: color .2s linear;
}

.header-secondary__phone a:hover {
    color: #490b0b;
}

.header-secondary__email {
    margin-left: 15px;
    font-size: 28px;
    font-weight: 700;
}

.header-secondary__email a {
    text-decoration: none;
    color: #fff;
    transition: color .2s linear;
}

.header-secondary__email a:hover {
    color: #490b0b;
}

.header-secondary__contacts {
    display: flex;
    align-items: center;
}



.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background-color: #2E5BFF;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* CSS-стрелка вместо символа ↑ */
.scroll-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 16px solid #fff;
    transform: translate(-50%, -50%);
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background-color: #1d3fcc;
}


.nav {
    display: flex;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav__link {
    margin-left: 50px;

    color: #fff;
    text-decoration: none;
    /*opacity: 0.75;*/

    transition: color .2s linear;
}

.nav__link:first-child {
    margin-left: 0;
}

.nav__link:hover {
    color: #490b0b;
    text-decoration: none;
}

.nav__link:active {
    text-decoration: none;
}

.nav__link:focus {
    text-decoration: none;
}

/* Контактная информация в мобильном меню */
.nav__contacts {
    display: none; /* Скрыто по умолчанию */
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 20px;
}

.nav__contacts::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #333;
    margin: 0 auto 20px;
    opacity: 0.3;
}

.nav__contact-item {
    margin: 10px 0;
}

.nav__contact-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav__contact-link:hover {
    color: #99a0ff;
}

/* Увеличенный шрифт для телефона */
    .nav__contact-item:first-child .nav__contact-link {
        font-size: 30px;
        font-weight: 500;
    }

    /* Мобильная версия выпадающего меню */
    .nav__dropdown {
        position: static;
        width: 100%;
    }
    
    /* Скрываем страницы на ПК версии для второстепенных страниц */
    .nav__pages--mobile-only {
        display: none;
    }

    @media (max-width: 1200px) {
        .nav {
            font-size: 14px;
        }
    }
    
    /* Показываем страницы только на мобильных */
    @media (max-width: 991px) {


        .nav__pages--mobile-only {
            display: block;
            position: relative;
            padding-top: 20px;
        }
        
        .nav__pages--mobile-only::before {
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background-color: #333;
            margin: 0 auto 20px;
            opacity: 0.3;
        }
        
        .nav__pages--mobile-only .nav__link {
            display: block;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .nav__pages--mobile-only .nav__link:last-child {
            border-bottom: none;
        }
    }
    


    .nav__link--dropdown {
        justify-content: center;
    }

    .nav__dropdown-arrow {
        font-size: 14px;
    }

    .nav__submenu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 10px;
        padding: 0 20px;
    }

    .nav__dropdown.active .nav__submenu {
        display: block;
    }

    .nav__submenu-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 0;
    }

    .nav__submenu-item:last-child {
        border-bottom: none;
    }

    .nav__submenu-link {
        padding: 10px 15px;
        color: #666;
        font-size: 16px;
        text-align: center;
    }

    .nav__submenu-link:hover {
        background-color: transparent;
        color: #99a0ff;
    }

/* Контейнер для кнопок контактов */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Выпадающее меню */
.nav__dropdown {
    position: relative;
    display: inline-block;
}

.nav__link--dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav__dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav__dropdown:hover .nav__dropdown-arrow {
    transform: rotate(180deg);
}

.nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__dropdown:hover .nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__submenu-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav__submenu-item:last-child {
    border-bottom: none;
}

.nav__submenu-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav__submenu-link:hover {
    background-color: #f8f9fa;
    color: #99a0ff;
    text-decoration: none;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 10vh 0; /* Равномерные отступы сверху и снизу */

    background-color: #99a0ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 5.3s ease-in-out;
}

.intro:hover {
    /*background-position: center 10%;*/
}

.intro__inner {
    width: 100%;
    max-width: 970px;
    margin: 0 auto; /* Убираем старые margin */
    text-align: center;
}

.intro__title {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
}

.block__h{
    padding-top: 50px;
    color: #2d3033;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

#services.block__h {
    padding-top: 0;
}

#services-anchor {
    scroll-margin-top: 100px;
}

.intro__subtitle {
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 60px;
    position: relative;
}

.intro__subtitle-backdrop {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro__subtitle ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro__subtitle li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.intro__subtitle li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}













.btn {
    font-family: inherit;
    display: inline-block;
    vertical-align: top;
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 15px 50px;
    border-radius: 2px;
    border: 0;
    cursor: pointer;
    transition: background-color .2s linear;
}

.btn--red {
    background-color: #6ba3ff;
}

.btn--red:hover {
    background-color: #8ab2fd;
}

.btn--long {
    min-width: 280px;
}

input[type=checkbox], input[type=radio] {
    height: 22px;
    width: 22px;
    margin: 8px 8px 0;
    line-height: normal;
}



/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #3578e2;
    box-shadow: 0 0 5px rgba(53, 120, 226, 0.3);
}

.modal-consent {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.3;
    color: #000000;
}

.modal-consent-text {
    flex: 1;
}

.modal-consent-link {
    color: #171abb;
    text-decoration: none;
}

.modal-consent-link:hover {
    color: #050763;
    text-decoration: none;
}

/* Стили для уведомления об ошибке */
.modal-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #ffcdd2;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.modal-error::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 16px;
}

.services {
    margin: 30px 0 70px;

}

#services {
    scroll-margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.services__inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding-top: 40px;
}

.services__item {
    width: 25%;
    padding: 0 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.services__img {
    display: block;
    max-width: 100%;
    margin-bottom: 25px;
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #71a8ff; /* Белая рамка толщиной 5px */
    transition: transform 0.3s ease-out;

}
.services__img:hover {
    /*transform: rotateY(360deg);*/
    /*transform: translateY(-6%);*/
    transform: scale(1.1);
}

.services__title {
    font-size: 22px;
    color: #2d3033;
    margin-bottom: 15px;
}

.services__text {
    font-size: 16px;
    line-height: 1.5;
    color: #6c7279;
    margin-bottom: 25px;
    text-align: justify;
}

.services__more {
    text-align: center;
    margin-top: 5px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-bottom: 30px;

}

.features__color {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 40vh;
    height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
}

.features__color .container {
    position: relative;
    z-index: 2; /* Контент поверх белого слоя */
}

.features__color .block__h {
    color: #fff;
}

.features__color .features__title {
    color: #fff;
}

.features__color .features__text {
    color: #fff;
}

.features__item {
    width: 33%;
    padding: 0 20px;
    margin: 25px 0;

    text-align: center;
}

.features__icon {
    margin-bottom: 25px;
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.6));
}

.features__title {
    color: #2d3033;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.features__text {
    font-size: 14px;
    color: #efefef;
    line-height: 1.5;
}

.works-section {
    min-height: unset;
    display: block;
    grid-template-rows: unset;
}
.works {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: unset;
}
.works__item {
    width: 25%;
    height: calc((88vh - 100px - 60px - 30px) / 2);
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    position: relative;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.works__item.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.works__btn {
    margin-top: 20%;
}

.works__item:hover .works__content {
    opacity: 1;
}

.works__btn {
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin: 40px auto;
    padding: 15px 50px;
    background: #6ba3ff;
    color: white;
    font-size: 17px;
    cursor: pointer;
    border: none;
    border-radius: 2px;
}

.works__btn:hover {
    background-color: #8ab2fd;
}

.works__img {
    min-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;

    transform: translate3d(-50%, -50%, 0);
}

.works__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    background-color: #71a8ff;
    opacity: 0;
    transition: opacity .3s linear;
}

.works__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.works__text {
    font-size: 14px;
    color: #fff;
}

.team {
    margin: 100px 0 70px;

}

.team__inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.team__item {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.team__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;

}

.team__name {
    font-size: 22px;
    color: #2d3033;
    margin-bottom: 15px;
}

.team__prof {
    font-size: 13px;
    color: #e84545;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.team__text {
    font-size: 14px;
    line-height: 1.5;
    color: #6c7279;
    margin-bottom: 25px;
}

.social {
    display: flex;
}

.social__footer {
    justify-content: center;
}

.social__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e8ecee;
    margin-right: 4px;
    background-color: #fff;

    transition: background-color .1s linear;
}

.social__link:hover {
    background-color: #c6cacc;
}

.social__link:hover .social__icon {
    fill: #000000;
}

.social__footer .social__link {
    background-color: transparent;
    border-width: 2px;
    border-color: #fff;
    border-radius: 2px;
}

.social__footer .social__link:hover {
    background-color: #fff;
}

.social__icon {
    display: block;
    height: 18px;
    fill: #c6cacc;

    transition: fill .1s linear;
}

.social__footer .social__icon {
    fill: #fff;
}

.reviews {
    background-color: #53354a;
    overflow: hidden;
}

.reviews__slider {
    height: 500px;
    overflow: hidden;
}

.reviews__slider.slick-initialized {
    height: auto;

}

.reviews__item {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.reviews__photo {
    width: 49%;
    height: 500px;
    position: relative;
}

.reviews__img {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    transform: translateY(-50%);
}

.reviews__content {
    display: flex;
    width: 50%;
    padding-left: 80px;
    flex-direction: column;
    justify-content: center;

}

.reviews__text {
    font-family: 'Cardo', sans-serif;
    font-style: italic;
    font-size: 36px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 25px;
}

.reviews__author {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.slick-dots {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
    width: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;

}

.slick-dots li {
    margin: 0 10px;

}

.slick-dots button {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

.slick-dots .slick-active button {
    background: #9b8e8e;
}

.download {
    margin: 90px 0;
    text-align: center;
}
.download__form {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;
}

.download__input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 1px;
    width: 280px;
}

.download__title {
    font-size: 28px;
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
    color: #2d3033;
    margin-bottom: 10px;
}

.download__text {
    font-size: 18px;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
    color: #2d3033;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.download__input::placeholder {
    font-size: 16px;
    opacity: 1;
    letter-spacing: 2px;
    align-items: stretch;
    font-family: 'Open Sans', sans-serif !important;
    text-align: center;
}

input.download__input::placeholder {
    font-family: 'Open Sans', sans-serif !important;
}

.footer {

    background-color: #0a68ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    padding-top: 50px;
}

.footer__block {
    width: 33.33333%;
    text-align: center;
    padding: 0 15px;
}

.footer__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.footer__address {
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Open Sans", sans-serif;
}

.footer__text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    padding: 25px 0;
    justify-content: center;
}

.copyright__text {
    text-align: center;
    font-weight: 700;
    color: #efefef;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Open Sans", sans-serif;
}

.copyright__text span {
    color: #fff;
}

.burger {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

.intro__header {
    text-align: center;
    margin-bottom: 5vh; /* Отступ между логотипом и подзаголовком */
}

.intro__logo-wrapper {
    margin-bottom: 10vh; /* Отступ между логотипом и заголовком */
    margin-top: 16vh;
}

.intro__logo {
    width: 500px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1300px) {
    .works__item {
        width: 50%;
        height: 280px;
    }

    .services__item {
        width: 50%;
        margin-bottom: 30px;
    }

}

@media (max-width: 991px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding-top: 80px; /* Отступ от крестика */
    }

    .nav.show {
        display: flex;
    }

    .nav__link {
        padding: 15px 20px;
        font-size: 20px;
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
        margin: 5px 0; /* Отступы между пунктами */
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav__link:hover {
        color: #99a0ff;
    }

    .nav__link:active {
        text-decoration: none;
    }

    .nav__link:focus {
        text-decoration: none;
    }

    /* Показываем контакты только в мобильной версии */
    .nav__contacts {
        display: block;
    }

    /* Контактная информация в мобильном меню */
    .nav__contacts {
        position: absolute;
        bottom: 40px;
        left: 0;
        right: 0;
        text-align: center;
        padding: 0 20px;
    }

    .nav__contacts::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: #333;
        margin: 0 auto 20px;
        opacity: 0.3;
    }

    .nav__contact-item {
        margin: 10px 0;
    }

    .nav__contact-link {
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s ease;
    }

    .nav__contact-link:hover {
        color: #99a0ff;
    }

    /* Увеличенный шрифт для телефона */
    .nav__contact-item:first-child .nav__contact-link {
        font-size: 30px;
        font-weight: 500;
    }

    .burger {
        display: block;
        padding: 8px 2px;
        background: none;
        border: 0;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }

    .burger__item {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #fff;
        font-size: 0;
        color: transparent;
        position: relative;
        transition: all 0.3s ease;
    }

    .burger__item:before,
    .burger__item:after {
        content: "";
        width: 100%;
        height: 100%;
        background-color: #fff;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .burger__item:before {
        top: -8px;
    }

    .burger__item:after {
        bottom: -8px;
    }

    /* Стили для крестика */
    .burger.active .burger__item {
        background-color: transparent;
    }

    .burger.active .burger__item:before {
        top: 0;
        transform: rotate(45deg);
        background-color: #333;
    }

    .burger.active .burger__item:after {
        bottom: 0;
        transform: rotate(-45deg);
        background-color: #333;
    }

    .intro {
        height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .intro__title {
        font-size: 40px;
    }

    .features__item {
        width:50%;
    }

    .team__item {
        width: 50%;

        text-align: center;
    }

    .team__img {
        margin-left: auto;
        margin-right: auto;
    }

    .social {
        justify-content: center;
    }

    .reviews__photo {
        width: 100%;
    }

    .reviews__content {
        width: 100%;
        padding-left: 0;
        margin: 40px;
    }

    .reviews__img {
        min-width: 1000px;
        right: -15px;
    }

    .social__footer .social__link {
        margin-right: 15px;
        margin-bottom: 10px;
    }

    .social__footer .social__link:hover {
        transform: scale(1.1);
    }

    .social__footer .social__icon {
        width: 25px;
        height: 25px;
    }

    .header__phone {
        font-size: 20px;
    }

    .header__email {
        font-size: 12px;
    }

    /* Мобильные стили для хедера второстепенных страниц */
    .header-secondary {
        height: 80px;
    }

    .header-secondary__inner {
        padding: 20px 0;
    }

    .header-secondary__phone {
        font-size: 20px;
        margin-left: 10px;
    }

    .header-secondary__email {
        font-size: 12px;
        margin-left: 10px;
    }

    /* На мобильной показываем контакты в хедере */
    .header-secondary__contacts {
        display: flex;
        align-items: center;
    }

    .header-secondary__phone {
        margin-left: 10px;
        margin-right: 15px;
    }

    .header-secondary__email {
        margin-left: 0;
        margin-right: 0;
    }


}

@media (max-width: 767px) {
    .block__h {
        font-size: 26px;
        line-height: 1.6;
    }

    /* Слайдер с карточками услуг - мобильная версия */
    .intro-services-cards {
        max-width: 100%;
        padding: 0 10px;
    }

    .services__img {
        display: block;
        max-width: 100%;
        margin-bottom: 25px;
        width: 220px;
        height: 220px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #71a8ff; /* Белая рамка толщиной 5px */
        transition: transform 0.3s ease-out;
    
    }
    .services__img:hover {
        /*transform: rotateY(360deg);*/
        /*transform: translateY(-6%);*/
        transform: scale(1.1);
    }

    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 15px;
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 50%;
        background-color: #2E5BFF;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* CSS-стрелка для мобильных устройств */
    .scroll-to-top::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 12px solid #fff;
        transform: translate(-50%, -50%);
    }

    .scroll-to-top:hover {
        background-color: #1d3fcc;
    }

    .scroll-to-top.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .intro {
        padding: 50px 0;
        min-height: 100vh;
    }
    
    .intro__logo {
        width: 300px;
    }
    


    .intro__logo {
        width: 400px;
    }
    
    .intro__title {
        font-size: 36px;
    }

    .intro__subtitle {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 40px;
    }
    
    .intro__subtitle-backdrop {
        padding: 10px;
        border-radius: 10px;
    }

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

    .download__input {
        width: 280px;
        margin-bottom: 10px;
    }

    .btn--long {
        width: 280px;
        margin-bottom: 10px;
    }

    .download {
        margin: 20px 0;
        text-align: center;
    }
    
    .download__consent {
        max-width: 280px;
        margin-top: 10px;
        padding: 12px;
        border-radius: 6px;
    }
    
    .download__consent-label {
        font-size: 14px;
        gap: 6px;
    }
    

    
    .download__consent-text {
        line-height: 1.2;
    }
    
    /* Мобильные стили для модального окна */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-width: 400px;
    }
    
    .modal-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .modal-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-consent {
        padding: 12px;
        margin: 15px 0;
    }
    
    .modal-consent-label {
        font-size: 11px;
        gap: 6px;
    }
    
    .modal-error {
        padding: 8px 12px;
        font-size: 12px;
        margin: 8px 0;
    }
    
    .modal-error::before {
        font-size: 14px;
        margin-right: 6px;
    }







    .privacy-footer {
        text-align: center;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }

    .services {
        padding: 0 0;
    }

    .services__inner {
        flex-direction: column;
        gap: 30px;
    }

    .services__item {
        width: 100%;
        margin-bottom: 5px;
    }

    .services__text {
        font-size: 18px;
    }

    .services__more {
        margin-top: 30px;
    }

    .download__input {
        text-align: center;
    }

    .features__item {
        width: 100%;
        margin-bottom: 30px;
    }

    .features__icon {
        width: 100px;
        height: 100px;
    }

    .features__title {
        font-size: 20px;
    }

    .features__text {
        font-size: 20px;
    }

    .works__item {
        width: 100%;
        height: 300px;
    }

    .works__btn {
        margin-top: 50px;
        min-width: 260px;
        height: 60px;
    }

    .features {
        padding: 30px 0;
    }

    .team__item {
        width: 100%;
        margin-bottom: 30px;
    }

    .team {
        padding: 30px 0;
    }

    .reviews__text {
        font-size: 16px;
    }

    .reviews__img {
        width: 80px;
        height: 80px;
    }

    .reviews__photo {
        width: 100px;
        height: 100px;
    }

    .btn--long {
        font-size: 16px;
        min-width: 260px;
        height: 60px;
        padding: 15px 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .contact-buttons {
        gap: 15px;
    }

    .download {
        padding: 30px 0;
    }

    .download__title {
        font-size: 24px;
    }

    .footer__block {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__block:last-child {
        margin-bottom: 0;
    }

    .footer__title {
        font-size: 20px;
    }

    .footer__address {
        font-size: 16px;
    }

    .footer__text {
        font-size: 16px;
    }

    .features__color {
        min-height: 300px;
        height: auto;
        padding: 30px 0;
    }


}

@media (max-width: 400px) {
    .reviews__img {
        right: -50px;
    }

    .btn--long {
        min-width: 240px;
        height: 55px;
        padding: 12px 40px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .contact-buttons {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
}
