/*
	RzhevskyRobotics 2025
	CyberneticCore Team
	style.css
	Author: Burdin E.A.
*/


* {
    margin: 0;
}



/* ==== Подгружаем шрифты ==== */
@font-face {
    font-family: "LatoBold";
    src: url('/fonts/Lato-Bold.ttf');
}

@font-face {
    font-family: "LatoRegular";
    src: url('/fonts/Lato-Regular.ttf');
}


html ,
body {
    position: relative;
    width: 100%;
    height: -webkit-fill-available;
    background: #ffffff;
    color: #0F2C3B;
    font-family: 'Roboto';
    overflow-x: hidden;
    scroll-padding-top: 80px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
    
}

html {
    scroll-behavior: smooth;
}

.block__about__us,
.block_services,
.block__equipments,
.block__products,
.block__contacts {
    scroll-margin-top: 60px; /* подбери под реальную высоту header */
}

.botton__header a.active {
    color: #FF8C00 !important;
    font-family: 'LatoBold';
}

.burger-nav a.active {
    color: #FF8C00 !important;
}

.mobile__version {
    display: none;
}


html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

h1 {
    font-family: 'Roboto';
}

header {
 position: fixed;
 width: 100%;
 display: flex;
 justify-content: space-between;
 height: auto;
 background-color: #36454F;
 padding: 20px 40px;
 z-index: 1000;
 box-sizing: border-box;

}

.logo__header {
    margin-right: 40px;
}

.logo__header img {
    width: 90%;
}

.botton__header {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 40px;

}

.botton__header a {
    text-decoration: none;
    color: white;
    font-size: 1.4em;
    font-family: 'LatoRegular';
    cursor: pointer;
    transition: transform 0.3s ease;

}

.botton__header a:hover {
    color: #FF8C00;
    font-family: 'LatoBold';
}

footer {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    display: flex;
    align-items:center;
    justify-content: center;
    background-color: #36454F;
    padding: 40px 40px;
    bottom: 0;
    
}

.block__footer__contacts {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.block__footer__contacts span {
    font-size: 1em;
    font-family: 'LatoBold';
    color: white;
    margin-bottom: 10px;
}

.block__footer__contacts a {
    font-size: 1em;
    font-family: 'LatoRegular';
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
}

.block__footer__info {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
}

.block__footer__info span {
    font-size: 1em;
    font-family: 'LatoRegular';
    color: white;
    text-align: end;
}

.contact__card {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.contact__card p {
    width: 100% !important;
    font-size: 1.4em;
    font-family: 'LatoBold' !important;
    font-weight: bold;
    margin-bottom: 10px;
}









/* ==== Подгружаем шрифты ==== */


/* ========================================================= */
/* HEADER - START                                            */
/* ========================================================= */


/* ==== Контейнер страницы ==== */


.main-container {
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* ==== Текст сверху ==== */


.main-container header h1 {
    color: white;
    font-size: 1.8em;
    font-weight: 800;
    font-family: 'Roboto';
}

/* ==== Текст сверху ==== */

.main-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    color: black;
}

.block__main {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 80px;

}

.block__main h1 {
    width: 60%;
    font-size: 4.2em;
    text-align: center;
    font-family: 'LatoBold';
    margin-bottom: 40px; 
}

.block__main h3 {
    width: 80%;
    font-size: 2.8em;
    text-align: center;
    font-family: 'LatoRegular';
    margin-bottom: 40px;
}

.button__orange {
    padding: 12px 60px;
    background-color: #FF8C00;
    font-size: 1.4em;
    font-family: 'LatoBold';
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button__orange:hover {
    transform: translateY(-5px);
}

.button__orange:active {
    transform: translateY(2px) scale(0.98);
}
    




.block__about__us {
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.block__about__us h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 40px;
}


.block__about__us p {
    width: 70%;
    font-family: 'LatoRegular';
    font-size: 1.4em;
    margin-bottom: 40px;
}

.block__about__us span {
    width: 70%;
    font-family: 'LatoBold';
    font-size: 1.4em;
    margin-bottom: 40px;
}

.box__services {
    padding: 20px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    
}

.simple__custom__list {
    width: 70%;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.simple__custom__list li {
    padding: 10px 0 10px 40px;
    position: relative;
    font-family: 'LatoRegular';
    font-size: 1.4em;
    margin-bottom: 10px;
}

.simple__custom__list li::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('/image/orangedot.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.box__services__button {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box__services__button img {
    width: 400px;
    margin-bottom: 20px;
}


.block_services {
    margin-top: 60px;
    width: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.block_services button:last-child {
    align-self: center;
    margin-top: 80px;
}

.block_services h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 80px;
}

.box__main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.card__service {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.card__service img {
    margin-bottom: 20px;
}

.card__service span {
    font-size: 1.4em;
    font-family: 'LatoBold';
    margin-bottom: 10px;
}

.card__service p {
    width: 70%;
    height: 100px;
    text-align: center;
    font-size: 1.4em;
    font-family: 'LatoRegular';
}

.block__clients {
    margin-top: 60px;
    width: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #36454F;
    color: white;
}

.block__clients h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 40px;
    margin-top: 40px;
}

.box__client {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.box__client img {
    width: auto;

}

.block__equipments {
    width: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.block__equipments h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 40px;
    margin-top: 40px;
}

.block__equipments span {
    font-size: 1.4em;
    font-family: 'LatoBold';
    margin-bottom: 40px;
}

.box__equipment {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.card__equipment {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

}

.card__equipment img {
    width: 70%;
    margin-bottom: 20px;
}

.card__equipment span {
    width: 70%;
    font-size: 1.4em;
    font-family: 'LatoBold';
    margin-bottom: 10px;
    text-align: center;
}

.block__products {
    width: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.block__products h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 40px;
    margin-top: 40px;
}

.box__product {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
    margin-top: 60px;
}

.box__product img {
    width: 32%;
}

.block__contacts {
    width: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    
}

.block__contacts h2 {
    font-family: 'LatoBold';
    font-size: 2.7em;
    margin-bottom: 40px;
    margin-top: 40px;
}

.block__contact__wrap {
    display: flex;
    justify-content:space-between;
    margin-bottom: 80px;
    

}

.box__contact {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

}

.box__contact p {
    width: 60%;
    font-size: 1.4em;
    font-family: 'LatoRegular';
    margin-bottom: 10px;
}

.box__connection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

}

.box__connection p {
    font-size: 1.6em;
    font-family: 'LatoRegular';
    width: 60%;
}

.box__connection button {
    margin-top: 20px;
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.burger-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #FF8C00;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 140px;
    height: auto;
    background: #36454F;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.burger-nav.active {
    right: 0;
}

.burger-nav a {
    text-decoration: none;
    color: white;
    font-family: 'LatoBold';
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 2px solid #FF8C00;
    transition: color 0.3s ease;
}

.burger-nav a:hover {
    color: #007bff;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Анимация бургер-кнопки */
.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- МОДАЛКА ОБРАТНОЙ СВЯЗИ ---------- */

/* Полупрозрачный фон на весь экран */
.modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: none;              /* по умолчанию скрыто */
    align-items: center;        /* центрируем окно по вертикали */
    justify-content: center;    /* и по горизонтали */
    z-index: 9999;
}

/* Само окно */
.modal-window {
    position: relative;
    background-color: #36454F;            
    border-radius: 10px;
    padding: 20px 20px 30px;
    max-width: 360px;
    width: 90%;
    color: #ffffff;
    font-family: 'LatoRegular';
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

/* Крестик */
/* .modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
} */

.modal-close:hover {
    opacity: 0.7;
}

/* Внутренний контент */
.modal-inner h2 {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 24px 0;
    color: #ffffff;
    font-family: 'LatoBold';
}

.modal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form {
    width: 90%;
    gap: 10px;
    /* padding: 20px; */
}


.contact-form label {
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
}

.contact-form input[type="file"] {
    background: transparent;
    border: none;
    border-bottom: 3px solid #FF8C00;
    padding: 8px 0;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    width: 100%;
    font-family: 'LatoRegular';
}

#file-info {
    color: #ffffff;
    opacity: 0.9;
    font-family: 'LatoRegular';
}

.input-error-file {
  border-bottom-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,.12);
}


.label-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
}

.required-star {
    color: #ff7a00; 
    font-size: 15px;
    line-height: 1;
    margin-top: 20px;
    font-weight: 500;
    z-index: 10;
    position: relative;
    top: 20px;
}

.required-star.invisible {
    visibility: hidden;
}

/* Инпуты / textarea*/
.contact-form input,
.contact-form textarea {
    background-color: transparent;
    border: none;
    border-bottom: 3px solid #FF8C00;
    padding: 6px 0;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    resize: none; /* Запрещает растягивание */
    width: auto; /* Фиксированная ширина */
    height: auto; /* Фиксированная высота */
    /* padding: 10px;  */
    font-family: 'LatoRegular'; /* Опционально: шрифт */
    display: flex;
    align-items: flex-end; /* Прижимаем текст к низу */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #ffffff;
    
}

.contact-form input::placeholder {
    color: white;
}


.contact-form textarea::placeholder {
    margin-bottom: -10px;
    transform: translateY(2px);
    font-family: 'LatoRegular';
    color: #ffffff;
}



/* Кнопка Отправить */
.modal-submit-btn {
    padding: 8px 40px;
    background-color: #FF8C00;
    font-size: 1.4em;
    font-family: 'LatoBold';
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-submit-btn:hover {
    transform: translateY(-5px);
}

.modal-submit-btn:active {
    transform: translateY(2px) scale(0.98);
}

/* подпись "* — обязательные поля" */
.form-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #ff7a00;
    line-height: 1.3;
}

/* Сообщения под полями */
.field-msg {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 6px;
  min-height: 14px;
  color: #d93025; /* красный для ошибок */
}

/* Подсветка поля с ошибкой */
.input-error {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,.15);
}

/* Подсветка при успехе (необязательно, но приятно) */
.input-ok {
  border-color: #1e8e3e !important;
  box-shadow: 0 0 0 3px rgba(30,142,62,.15);
}

/* Тосты */
#toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.toast {
  padding: 12px 14px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

/* Сообщение-окно внутри той же модалки */
.modal-success {
  width: 100%;
  padding: 28px 20px;
  background: transparent;           /* как модалка */
  border-radius: 16px;           /* как у окна */
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}
.modal-success h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}
.modal-success p {
  margin: 0;
  opacity: .9;
}

@media only screen and (max-device-width: 600px) {
    html, body {
        overflow-x: hidden; /* Отключаем горизонтальную прокрутку */
        position: relative;
        
    }

    .burger-btn {
        display: flex;
    }

    .botton__header {
        display: none;
    }

    header {
        padding: 20px 20px;
        align-items: center;    
    }

    .logo__header img {
        width: 60%;
    }

    .logo__header {
        margin: 0;
    }

    .block__main {
        box-sizing: border-box;
        padding: 0 20px;
        height: 100vh;
    }

    .block__main h1 {
        font-size: 2.4em;
        width: 100%;
    }

    .block__main h3 {
        width: 100%;
        font-size: 1.4em;
    }

    .block__about__us h2:first-child {
        align-self: flex-start;
    }

    .block__about__us {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        padding: 0 40px;
    }

    .block__about__us p {
        width: 100%;
        font-size: 1.2em;
        text-align: center;
    }

    .block__about__us span {
        width: 100%;
        font-family: 'LatoBold';
        font-size: 1.2em;
        margin-bottom: 40px;
        text-align: center;

    }

    .box__services {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .simple__custom__list {
        width: 100%;
    }

    .simple__custom__list li {
        
        padding: 10px 0 10px 40px;
        position: relative;
        font-family: 'LatoRegular';
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .simple__custom__list li::before {
        width: 14px;
        height: 14px;
    }

    .box__services__button {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .box__services__button img {
        width: 240px;
        margin-bottom: 20px;
    }

    .box__services .box__services__button:last-child {
        align-self: center;
    }

    .box__main {
        align-items: flex-start;
    }

    .card__service {
        width: 100%;
    }

    .card__service img{ 
        width: 180px;
    }

    .card__service span {
        text-align: center;
    }

    .card__service p {
        font-size: 1.2em;
        width: 100%;
        height: auto;
    }



    .box__client img {
        width: 100px;
    }

    .card__equipment span {
        width: 100%;
    }

    .card__equipment {
        width: 100%;
    }

    .box__product img {
        width: 100%;
    }

    .block__contact__wrap {
        display: flex;
        flex-direction: column;
    }
    
    .box__contact {
        width: 100%;
    }

    .box__contact p {
        width: 100%;
    }

    .box__connection p {
        width: 100%;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .box__connection button:last-child {
        align-self: center;
    }

    footer {
        padding: 20px 20px;
    }



    .block__footer__contacts span {
        font-size: 0.6em;
    ;
    }

    .block__footer__contacts a {
        font-size: 0.6em;
    
    }


    .block__footer__info span {
        font-size: 0.6em;
    
    }


    .modal-window {
        max-width: 280px;
    }



    
}



