body {
    font-family: 'Manrope', sans-serif;
    background-color: #f2f2f2!important;
}

/*header*/
nav {
    background: rgba(240, 240, 240, 0.3) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}
.navbar-brand span {
    color: #0d6efd;
}
/* Desktop menu links */
.menu-link {
    color: #212529;
    text-decoration: none;
    padding: 0.5rem 0;           /* vertical padding for clickable area */
    margin-right: 2rem;         /* spacing between menu items */
    display: inline-block;
}
.menu-link:hover {
    color: #0a58ca;             /* darker blue on hover */
    text-decoration: none;
}
/* "Request a Quote" button style */
.quote-btn {
    background-color: #fff;
    color: #0158FF;
    padding: 14px 24px;
    line-height: 1;
    border: none;
    border-radius: 8px;    /* rounded corners */
    font-weight: 400;           /* semi-bold text */
    text-decoration: none;
    display: inline-block;
}
.quote-btn:hover {
    background-color: #0051ED;
    color: #ffffff;
    text-decoration: none;
}
/* Offcanvas menu link adjustments */
.offcanvas-body a.menu-link {
    display: block;
    margin-right: 0;            /* no right margin in offcanvas (full-width links) */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.offcanvas.offcanvas-start {
    width: 100vw !important;
}

/*1йблок*/
.section-main {
    background-color: #f2f2f2;
}
.section-main__wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px 0 20px  64px!important;
}

.section-main h1 {
    font-size: 4rem!important;
    font-weight: 600;
}

h1 .highlight {
    color: #0158FF;
    font-weight: 600;
}

.section-main .subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 500;
}

.note {
    color: #686868;
    margin-top: 0.875rem;
}

.btn-primary {

    background-color: #0158FF;
    border-color: #0158FF;
    color:#ffffff;

    padding: 14px 24px!important;
    line-height: 1!important;
    font-size: 1rem!important;
    border-radius: 8px!important;    /* rounded corners */
    font-weight: 400!important;           /* semi-bold text */

}

.btn-primary:hover {
    background-color: #0051ED;
    border-color: #0147cc;
}

.map-wrapper {
    position: relative;
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.tag {
    position: absolute;
    background-color: #0158FF;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8);
    transition: 0.3s ease-in-out;
}

.tag.grow-in {
    opacity: 1;
    transform: scale(1);
}

/* Примерное позиционирование */
.tag.bms { top: 24%; left: 40%; }
.tag.lowvoltage { top: 40%; left: 67%; }
.tag.access { top: 54%; left: 54%; }
.tag.wifi { top: 63%; left: 31%; }
.tag.security { top: 68%; left: 63%; }
.tag.structured { top: 76%; left: -10%; }
.tag.server { top: 83%; left: 45%; }

/*2йблок*/
.section-text-center {
    padding-top: 120px;
    padding-bottom: 0px;
}

.section-text-center .text-uppercase {
    font-size: 0.875rem!important;
}
.section-text-center h2 {
    font-size: 2.625rem!important;
    font-weight: 400;
}
/*3йблок*/

.partners-section {
    position: relative;
    padding-top: 0px;
    padding-bottom: 120px;
    background-color: #f2f2f2;
}
.partners-section__wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 64px!important;


}

/* Фоновый текст "trusted by" */
.partners-section .trusted-bg-text {
    margin-bottom: -135px;
   /* position: absolute;
    top: 63px;
    left: 50%;
    transform: translate(-50%, -50%);*/
    font-size: 17rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
/* Заголовок блока */
.partners-section h2 {
    font-size: 2.625rem!important;
    font-weight: 400!important; /* полужирный (Semibold) */
}
.partners-section h2 .highlight {
    color: #0158FF;   /* синий цвет для слова "Partners" */
}
/* Стили для логотипов партнёров */
.partners-section img {
    max-width: 100%;
    height: auto;
}
/*4йблок*/
.equipment-section {
    padding-bottom: 0px;
    scroll-margin-top: 80px;
}
.equipment-card {
    height: 240px;
}
.equipment-section h2 {
    font-size: 2.625rem!important;
    padding-bottom: 64px;
}
.equipment-card .rounded-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}
.equipment-card h5 {
    font-size: 1.75rem!important;
}

.object-fit-cover {
    object-fit: cover;
}
/*5йблок*/
/* Base font family for the section */

.project-section {
    padding-top: 0px;
    padding-bottom: 120px;
    background-color: #f2f2f2;
    scroll-margin-top: 80px;
}
.project-section__wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 64px!important;
    position: relative;


}
.project-section  h2 {
    font-size: 2.625rem;
    font-weight: 400;

      /* ensure background text is clipped within rounded corners */
}
.project-card {
    border-top: 1px solid #F0F0F0 ;

    padding: 24px 0 8px 0;
}
.project-card-6 {
    border-bottom: 1px solid #F0F0F0;
}
.project-card  h4 {
    font-size: 1.5rem;
    font-weight: 400;

    /* ensure background text is clipped within rounded corners */
}
.project-card  h6 {
    font-size: 0.875rem;
    font-weight: 700;

    /* ensure background text is clipped within rounded corners */
}
.project-card  p {
    font-size: 0.875rem;
    font-weight: 400;

    /* ensure background text is clipped within rounded corners */
}
.project-card .text-blue {
    font-size: 0.875rem;
    font-weight: 700;


    /* ensure background text is clipped within rounded corners */
}

/* Blue text highlight (for heading and subheadings as needed) */

.text-blue {
    color: #0158FF;}

/* Technology/Brand tags styling */
.tech-tag {
    display: inline-block;
    background-color: #F0F0F0; /* light blue background at 10% opacity */
    color: #040404;
    border-radius: 4px;
    padding: 5px 12px;
    margin:  0;  /* spacing between tags */
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Large background "OUR PROJECTS" text styling */

.project-section .projects-bg-text {
    margin-bottom: -115px;

    font-weight: 600;
    font-size: 15rem;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/*6section*/
.text-primary {
    color: #0158FF !important;
}
.brands-section__wrapper{
    padding: 64px 120px!important;
}
.brands-section h2{

    font-size: 2.625rem!important;
    font-weight: 400!important;
}
.brands-section p{
    font-size: 1.5rem!important;
    font-weight: 500!important;
}
.brands-block div {
    margin-bottom: 20px;
}


.grayscale {
    filter: grayscale(100%);
    opacity: 0.85;
    transition: 0.3s;
}

.grayscale:hover {
    filter: none;
    opacity: 1;
}
/*7йблок*/
.text-primary {
    color: #0158FF !important;
}
.about-section {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #f2f2f2;
}
.about-section__wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 64px!important;
}
.about-section h2 {
    font-size: 2.625rem;
    font-weight: 400;
}
.about-section p {
    font-size: 1.5rem;
    font-weight: 500;
}
.about-section .row .text-primary {
    font-size: 4rem!important;
    font-weight: 600!important;
}
.about-section .row .small {
    font-size: 0.75rem;
    font-weight: 600;
}
/*8йблок*/
.callback-section {

}
.callback-section__wrapper {

    padding: 64px 120px 64px 0!important;
}
.callback-section h2 {
    font-weight: 400!important;
    font-size: 2.625rem!important;
}
.form-control.form-line {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 0.375rem 0; /* adjust vertical padding, no horizontal padding */
}
.form-label {
    margin-bottom: 0!important;
}
.form-control {
    padding: 0!important;
    line-height: 1!important;
}
.callback-section textarea {
    resize: none;

}
.form-control.form-line:focus {
    outline: none;
    box-shadow: none;  /* remove default focus shadow */
    border-bottom-color: #0d6efd;  /* blue bottom border on focus (primary color) */
}
/* Red bottom border when invalid */
.form-control.form-line.is-invalid {

    border-bottom-color: #dc3545 !important; /* Bootstrap danger color */
}
/* Ensure invalid feedback text appears immediately below field */
.invalid-feedback {
    /* (Bootstrap provides display:none by default; it will show when .is-invalid is applied to the input) */
}
.form-control.is-invalid {
    background-image: none !important;
    padding-right: 0 !important;
}
.form-control {
    background: transparent!important;
}
.btn-outline-primary {
    padding: 14px 24px!important;
    line-height: 1!important;
    font-size: 1rem!important;
    border-radius: 8px!important;    /* rounded corners */
    font-weight: 400!important;
}

/*9йблок*/
.contacts-section {
    padding-top: 120px;

    background-color: #f2f2f2;
}
.contacts-section__wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 64px!important;
}
.btn-outline-primary {
    border-color: #0158FF;
    color: #0158FF;
}

.btn-outline-primary:hover {
    background-color: #0158FF;
    color: #fff;
}

.contacts-section .alvigroup-bg-text {



    font-weight: 600;
    font-size: 15rem;
    color: #0158FF;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    margin-top: -40px;
}
.btn-close {
    background: none!important;
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23000' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: #3366FF!important;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    opacity: 1!important;
}
/*footer*/
footer a {
    color: #666;
}
footer a:hover {
    color: #0051ED!important;
    text-decoration: underline;
}

/*MODAL*/
/* *** Базовые стили модального окна *** */

/* Перекрывающий фон модального окна */
.modal {
    display: none; /* скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* высокий индекс для перекрытия других элементов */
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: auto; /* прокрутка страницы, если содержимое длинное */
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный тёмный фон */

}
.file-status {
    display: flex;
    justify-content: flex-start;
}
.file-status .file-name {
    font-weight: 600;
    border: 2px solid #007bff;
    color: #007bff;
}

/* Показ модального (класс open добавляется через JS) */
.modal.open {
    display: flex; /* используем flex для центровки содержимого */
    align-items: center;
    justify-content: center;
}
.modal h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
}

/* Контейнер содержимого модального окна */
.modal-content {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 48px 80px;
    border-radius: 16px;
    max-width: 640px;
    width: 90%; /* на мобильных - почти на всю ширину */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* для позиционирования дочерних элементов (напр. кнопки закрытия) */
}

/* Немного иной стиль для контента окна успеха (можно настроить отдельно при желании) */
.success-content {

    text-align: center;
    padding: 99px 86px;
}

/* Крестик-кнопка для закрытия модального окна */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23000' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: #3366FF!important;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    opacity: 1!important;
}
.close:hover {
    color: #333;
}

/* *** Стили формы внутри модального окна *** */

/* Стили для групп полей формы */
.form-group {
    margin-bottom: 16px;
}
.form-group .error-msg {
    display: none;           /* скрываем сообщение об ошибке по умолчанию */
    font-size: 0.9em;
    color: #d00000;          /* красный цвет текста ошибки */
    margin-top: 4px;
}

/* Метки полей */
.form-group label {
    display: block;
    margin-bottom: 0px;
    font-weight: 400;
    font-size: 14px;
}
.modal textarea {
    resize: none;
}

/* Сами поля ввода и текстовая область */
.form-group input[type=text],
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #888; /* сероватая нижняя граница поля */
    padding: 0px;
    font: inherit;
    box-sizing: border-box;
}
.form-group input[type=text]:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000; /* при фокусе можно подчеркнуть активное поле, например, чёрным */
}

/* Состояние ошибки для полей — добавляется классом error через JS */
.form-group input.error,
.form-group textarea.error {
    border-bottom: 2px solid #d00000; /* красная граница, чуть толще */
}
.form-group input.error + .error-msg,
.form-group textarea.error + .error-msg {
    display: block; /* отображаем текст ошибки, когда поле имеет класс error */
}

/* *** Кнопки формы *** */

/* Кнопка Add file (метка для input[type=file]) */
.file-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #0066ff;   /* синий ободок */
    border-radius: 4px;
    background: #fff;
    color: #0066ff;
    cursor: pointer;
    font: inherit;
    vertical-align: middle;
    margin-right: 10px;
}
.file-btn:hover {
    background: #f5f5f5;
}

/* Текст-пояснение для загрузки файла */
.file-note {
    font-size: 0.9em;
    color: #666;
    vertical-align: middle;
}

/* Кнопка отправки формы */
.send-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0158FF;  /* синий фон */
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}
.send-email {
    font-size: 1.125rem;
    font-weight: 500;
}
.send-email a{
    text-decoration: none;
}
.send-btn:hover {
    background-color: #0055cc;  /* чуть темнее при наведении */
}

/* Текст с отказом от ответственности под кнопкой */
.form-disclaimer {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

/* *** Стили окна успешной отправки *** */

/* Блок сообщения об успехе внутри модального окна */
.success-message .checkmark {
    font-size: 2em;
    color: #2eb82e; /* зелёный цвет галочки */
    margin-bottom: 10px;
}
.success-message p {
    margin: 5px 0;
    font-size: 0.875rem;
}
.text-green {
    color: #218250!important;
    font-size: 1.5rem!important;
    font-weight: 500;
}

/*404PAGE*/

.not-found-container  {
    padding-top: 24px;
    padding-bottom: 0px;
    background-color: #F1F1F1;
    display: flex;
    justify-content: center;
    align-items: center;

}



.not-found-container__wrapper {
    text-align: center;
    background: #fff;
    padding: 60px 91px;
    border-radius: 16px;
    min-height: 50vh;
    position: relative;
    flex-direction: column;
    justify-content: center;
    display: flex;
    align-items: center;
}

.big-404 {
    font-size: 16vw;
    font-weight: 600;
    color: #e9e9e9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.big-404 img {
    max-width: 100%;
    height: auto;
    display: block;

}

.not-found-title {
    font-size: 2.625rem;
    font-weight: 500;
    color: #111;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.back-home-btn {
    display: inline-block;
    background-color: #3366ff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-home-btn:hover {
    background-color: #254fd6;
}

@media (max-width: 1400px) {
    .partners-section .trusted-bg-text {
        font-size: 19.818vw;
        margin-bottom: -10vw;
    }
    .project-section .projects-bg-text {
        font-size: 17.818vw;
        margin-bottom: -9vw;
    }
    .contacts-section .alvigroup-bg-text {
        font-size: 17.818vw;
        margin-top:  -3vw;
    }
}
@media (max-width: 992px) {

    .navbar-toggler:focus {

        box-shadow: none!important;
    }
    .btn-close:focus {

        box-shadow: none!important;
    }
    /*1й блок*/

    .section-main__wrapper {

        border-radius: 8px!important;
        padding: 48px 0 32px 16px !important;
    }
    .section-main h1 {
        font-size: 2rem!important;

    }
    .section-main .subtitle {
        font-size: 1.125rem!important;
        margin-top: 0.5rem!important;

    }
    .section-main a.btn.btn-primary.btn-lg {
        font-size: 0.875rem!important;
        --bs-btn-padding-y: 0.7rem!important;
        --bs-btn-padding-x: 1.5rem!important;
    }
    .tag {

        font-size: 0.5rem;

    }
    .tag.structured { top: 76%; left: 0%; }

/*2йблок*/
    .section-text-center {
        padding-top: 48px;
    }
    .section-text-center h2 {
        font-size: 1.5rem!important;

    }
    /*3йблок*/
    .partners-section h2 {
        font-size: 1.5rem!important;
        text-align: center;

    }
    .partners-section__wrapper {
        background-color: #ffffff;
        border-radius: 8px;
        padding: 48px 22px!important;
    }
    .partners-section {

        padding-bottom: 48px;
    }
    /*4йблок*/
    .equipment-section h2 {
        font-size: 1.5rem !important;
        text-align: left;
        padding-bottom: 26px;
    }
    .equipment-card h5 {
        font-size: 1.375rem!important;
    }
    .equipment-card p {
        font-size: 1rem!important;
    }

    .equipment-card .rounded-4 {

        padding: 24px;
    }
    .equipment-card {
        height: 204px;
    }
    /*5йблок*/
    /* Base font family for the section */

    .project-section {

        padding-bottom: 48px;

    }
    .project-section__wrapper {
        border-radius: 8px;
        padding: 48px 16px!important;

    }
    .project-section  h2 {
        font-size: 1.5rem;
        font-weight: 400;
    }
    .project-card  h4 {
        font-size: 1.125rem;
        font-weight: 400;
    }

    .project-section a.btn.btn-primary.btn-lg {
        font-size: 0.875rem!important;
        --bs-btn-padding-y: 0.7rem!important;
        --bs-btn-padding-x: 1.5rem!important;
    }
    .tech-tag {
        margin: 0px !important;
        margin-bottom: 4px !important;
    }
    /*7йблок*/

    .about-section {
        padding-top: 48px;
        padding-bottom: 48px;

    }
    .about-section__wrapper {

        border-radius: 8px;
        padding: 48px 16px!important;
    }
    .about-section h2 {
        font-size: 1.5rem;

    }
    .about-section p {
        font-size: 1.125rem;

    }
    .about-section .row .text-primary {
        font-size: 3rem!important;

    }

/*8йблок*/
    .callback-section__wrapper {

        padding: 0px 16px!important;
    }
    .callback-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }


    .callback-section h2 {

        font-size: 1.5rem!important;
    }


    .callback-section  span.text-muted {
        font-size: 0.75rem!important;
    }
    /*9йблок*/
    .contacts-section {
        padding-top: 48px;
    }
    .contacts-section__wrapper {

        border-radius: 8px;
        padding: 48px 16px!important;
    }
    .contacts-section p.text-muted {
        font-size: 0.875rem!important;
    }

}
@media (max-width: 720px) {
    .quote-btn {
        margin-bottom: 4vh;
    }
    .equipment-card {
        height: 153px;
    }
    .equipment-card .rounded-4 {

        padding: 24px;
    }
/*5йблок*/
    .project-section {
        padding-top: 33px;
        padding-bottom: 48px;

    }
/*6йблок*/
    .brands-section h2{

        font-size: 1.5rem!important;

    }
    .brands-section p{
        font-size: 1.125rem!important;

    }
    .brands-section__wrapper{
        padding: 48px 22px!important;
    }
    .brands-block div {
        margin-bottom: 0;
    }

/*8йблок*/
    .callback-section {

    }

    .callback-section button.btn.btn-primary {
        width: 100%;
    }
    .callback-section p.small.text-muted {
        font-size: 0.75rem!important;
        text-align: center;
    }
    /*9йблок*/
    .contacts-section a.btn.btn-outline-primary {
        width: 100%;
    }

    /*MODAL*/
    .modal h2 {

        font-size: 1.125rem;

    }

    /* Контейнер содержимого модального окна */
    .modal-content {

        padding: 48px 16px;
        top: 60%;
    }

    .modal label {
        font-size: 0.875rem;
    }
    .form-disclaimer {
        font-size: 0.75rem;
    }
    .send-email{
        font-size: 1rem;
    }

    .text-green {
        color: #218250!important;
        font-size: 1.125rem!important;
        font-weight: 500;
    }
    .text-green.text-green-mob {
        font-size: 12px!important;
    }


    .not-found-title {
        font-size: 1.5rem;

    }

    .back-home-btn {
        font-size: 0.875rem;

        padding: 10px 24px;
    }
    .not-found-container__wrapper{
        justify-content: flex-end;
    }
    .big-404 img {
        max-width: 90vw;


    }
    .big-404 {

        top: 30%;

    }
}