/* Главная для проектировщиков — в стилистике лендингов /lp, /lp-calc */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: #7e7f84;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
h1, h2, p, ul { margin: 0; padding: 0; font-weight: normal; }
img { max-width: 100%; }
a, a:visited { color: #f45a40; }
a:hover { text-decoration: none; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.center-block-main { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* Заголовки блоков — синие, по центру, Roboto Condensed */
.gray-block h1, .block2 h1, .small-calc h1, .full-calc h1, .block3 h1,
.block-asu h1, .block4 h1, .block5 h1, .block6 h1 {
    margin: 0 auto 30px;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    color: #0451b9;
    font-size: 2em;
}
.block-sub {
    max-width: 800px;
    margin: -15px auto 30px;
    text-align: center;
    font-size: 1.1em;
}

/* Кнопки */
.btn-red, .btn-blue, .form-submit {
    display: inline-block;
    padding: 15px 40px;
    border: 3px solid;
    border-radius: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4em;
    font-weight: bold;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s linear;
}
.btn-red, .form-submit { background: #b90404; border-color: #b90404; box-shadow: 0 3px 0 #8f0303; }
.btn-red:hover, .form-submit:hover { border-color: #fff; }
.btn-blue { background: #0451b9; border-color: #0451b9; box-shadow: 0 3px 0 #033b87; }
.btn-blue:hover { background: #fff; color: #0451b9 !important; }
.btn-center { display: table; margin: 30px auto 0; }

.blink { animation: blink 4s linear infinite; }
@keyframes blink {
    0% { background: #b90404; }
    50% { background: #ff0606; }
    100% { background: #b90404; }
}

/* Шапка */
header { padding: 3px 0 5px; }
.header-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
header .logo p { margin-left: 4px; font-size: .75em; color: #7e7f84; }
header .logo-img { display: block; height: 45px; width: auto; margin-top: 3px; }
.phone-btn { display: flex; align-items: center; gap: 40px; }
.phone { font-family: 'Roboto Condensed', sans-serif; font-size: 1.5em; }
.phone p { font-family: 'Roboto', sans-serif; font-size: .6em; color: #000; }
.phone h2 { font-size: 1.2em; font-weight: 600; margin: 5px 0; }
.phone a { color: #555 !important; text-decoration: none; }
.phone a:hover { color: #f45a40 !important; }
header .btn {
    padding: 10px 30px;
    border: 3px solid #0451b9;
    border-radius: 10px;
    background: #0451b9;
    color: #fff !important;
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    transition: all .2s linear;
}
header .btn:hover { background: #fff; color: #055cd3 !important; }

/* Первый экран: фон с чертежами из /lp-calc */
.block1 {
    background: url("/lp-calc/img/bcgrnd4.jpg") center / cover;
    margin-bottom: 50px;
}
.block1-content {
    display: grid;
    grid-template-columns: 1fr 520px;
    grid-template-areas: "text img" "buttons buttons" "made made";
    min-height: 606px;
    padding-top: 50px;
    padding-bottom: 30px;
    align-items: center;
}
.block1 .text { grid-area: text; font-family: 'Roboto Condensed', sans-serif; color: #000; }
.block1 .text .p1 { font-size: 4.3em; font-weight: bold; line-height: 1.05; }
.block1 .text .p2 { font-size: 3.2em; line-height: 1.1; margin-bottom: 20px; }
.block1 .text .p3 { font-size: 1.3em; color: #1a1a1a; }
.block1 .zavesy { grid-area: img; }
.block1 .buttons { grid-area: buttons; display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 30px; }
.block1 .made-in {
    grid-area: made;
    margin-top: 30px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6em;
    color: #fff;
    text-align: center;
}

/* Серый блок (как калькулятор на /lp) */
.gray-block, .small-calc, .block3 { background: #ebebeb; padding: 50px 0; margin-bottom: 50px; }

/* Комплект */
.kit { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.kit li {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: #fff; border-radius: 10px; padding: 15px 20px;
}
.docs-group { margin: 25px 0 12px; font-family: 'Roboto Condensed', sans-serif; font-size: 1.2em; color: #000; }
.kit h2 { font-family: 'Roboto Condensed', sans-serif; font-size: 1.2em; color: #0451b9; margin-bottom: 4px; }
.kit p { font-size: .9em; }
.kit-btn {
    flex-shrink: 0;
    min-width: 120px;
    padding: 8px 15px;
    border: 3px solid #0451b9;
    border-radius: 10px;
    background: #0451b9;
    color: #fff !important;
    font-family: 'Roboto Condensed', sans-serif;
    text-align: center;
    text-decoration: none;
    transition: all .2s linear;
}
.kit-btn small { display: block; font-size: .75em; opacity: .85; }
.kit-btn:hover, .kit-btn-req { background: #fff; color: #0451b9 !important; }
.kit-btn-req:hover { background: #0451b9; color: #fff !important; }

/* Красные плашки «почему Антарес» */
.block2 { margin-bottom: 50px; }
.block2-content ul { list-style: none; }
.block2-content li {
    margin: 20px;
    padding: 15px 30px;
    color: #fff;
    background: #b90404;
    border-radius: 10px;
}
.block2-content li h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5em;
}
.block2-content li p { line-height: 1.5; }

/* Быстрая оценка */
.small-calc { margin-bottom: 0; }
.calc-row { display: flex; gap: 10%; padding: 0 5%; align-items: center; }
.calc-left, .calc-right { flex: 1; }
.label-small-calc { font-weight: 600; padding: 5px; font-size: 1.3em; color: #0451b9; margin-top: 20px; }
.label-span { font-size: 1.5em; }
#ex1Slider .slider-selection, #ex2Slider .slider-selection { background: #0451b9; border: 1px solid #0451b9; }
#ex1Slider .slider-track-high, #ex2Slider .slider-track-high { background: #fff; border: 1px solid #0451b9; }
.slider.slider-horizontal { width: 90% !important; display: block; margin: 10px auto; }
.result {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    color: #0451b9;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}
.result .p2 { font-size: 2em; font-weight: 600; }
.small-calc-comment { margin-top: 20px; text-align: center; font-family: 'Roboto Condensed', sans-serif; color: #0451b9; }

/* Форма ТЗ: шаги и кнопки-переключатели вместо селектов */
.full-calc { padding: 50px 0; margin-bottom: 50px; }
.tz-form { max-width: 820px; margin: 0 auto; }
.step { border: 1px solid #dedede; border-radius: 10px; padding: 20px 25px 10px; margin-bottom: 20px; }
.step h2 {
    display: flex; align-items: center; gap: 10px;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3em;
    color: #000;
    margin-bottom: 15px;
}
.step h2 span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #0451b9; color: #fff; font-size: .9em;
}
.q { margin: 5px 0 8px; color: #000; font-weight: bold; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
    display: inline-flex; align-items: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 2px solid #0451b9;
    border-radius: 10px;
    color: #0451b9;
    background: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1em;
    cursor: pointer;
    user-select: none;
    transition: all .15s linear;
}
.chip span:hover { background: #e8f0fb; }
.chip input:checked + span { background: #0451b9; color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #f45a40; outline-offset: 2px; }

.pair { display: flex; gap: 15px; }
.pair .field { flex: 1; }
.field { display: block; margin-bottom: 15px; color: #000; font-weight: bold; }
.tz-form input[type=text], .tz-form input[type=tel], .tz-form input[type=email], .tz-form textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 12px;
    min-height: 48px;
    border: 2px solid #dedede;
    border-radius: 10px;
    font: inherit;
    font-weight: normal;
    color: #333;
    background: #fff;
}
.tz-form input:focus, .tz-form textarea:focus { border-color: #0451b9; outline: none; }
#tz-water-custom { margin: -5px 0 15px; }

.field-short { max-width: 320px; }

/* Схема ворот: кликабельные зоны свободного места */
.q-note { display: block; font-weight: normal; color: #7e7f84; font-size: .9em; }
.gate-pick {
    display: grid;
    grid-template-columns: 110px minmax(140px, 260px) 110px;
    grid-template-rows: 80px 200px 8px;
    gap: 6px;
    justify-content: center;
    margin: 10px 0 20px;
}
.gz { position: relative; cursor: pointer; }
.gz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gz span {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%;
    border: 2px dashed #b5bcc6;
    border-radius: 10px;
    background: #fafafa;
    color: #7e7f84;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    transition: all .15s linear;
}
.gz b { font-size: 1.1em; color: #333; }
.gz i { font-style: normal; font-size: .9em; }
.gz .gz-yes { display: none; }
.gz:hover span { border-color: #0451b9; }
.gz input:checked + span { border: 2px solid #0451b9; background: #0451b9; color: #fff; }
.gz input:checked + span b { color: #fff; }
.gz input:checked + span .gz-no { display: none; }
.gz input:checked + span .gz-yes { display: block; }
.gz input:focus-visible + span { outline: 3px solid #f45a40; outline-offset: 2px; }
.gz-top { grid-column: 2; grid-row: 1; }
.gz-left { grid-column: 1; grid-row: 2; }
.gz-right { grid-column: 3; grid-row: 2; }
.gate {
    grid-column: 2; grid-row: 2;
    display: flex; align-items: center; justify-content: center;
    border: 4px solid #555;
    border-bottom: 0;
    background: repeating-linear-gradient(180deg, #d9dde3 0 30px, #c3c9d1 30px 32px);
}
.gate span { padding: 4px 10px; background: rgba(255,255,255,.8); font-family: 'Roboto Condensed', sans-serif; color: #555; letter-spacing: .1em; }
.gate-floor { grid-column: 1 / 4; grid-row: 3; background: #555; border-radius: 2px; }
.full-calc textarea, .card-form textarea { resize: vertical; }

/* Зона загрузки файлов */
.file-zone {
    position: relative;
    margin-bottom: 10px;
    padding: 22px 15px;
    border: 2px dashed #0451b9;
    border-radius: 10px;
    background: #f5f8fd;
    text-align: center;
    color: #0451b9;
    transition: all .15s linear;
}
.file-zone input {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.file-zone b { display: block; font-size: 1.1em; }
.file-zone span { display: block; margin-top: 4px; font-size: .85em; color: #7e7f84; }
.file-zone:hover, .file-zone.drag { background: #e3ecf9; border-style: solid; }
.file-zone:focus-within { outline: 3px solid #f45a40; outline-offset: 2px; }
.file-list { list-style: none; margin: 0 0 15px; padding: 0; }
.file-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 6px 6px 6px 12px; margin-bottom: 6px;
    background: #ebebeb; border-radius: 10px; color: #333; word-break: break-all;
}
.file-list button {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border: 0; border-radius: 8px;
    background: #fff; color: #b90404;
    font-size: 1.4em; line-height: 1; cursor: pointer;
}

/* Формы на сером фоне — белая карточка */
.card-form { max-width: 820px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 25px; }
.card-form .form-submit { display: block; width: 400px; max-width: 100%; margin: 20px auto 0; }

.hint { font-size: .9em; margin-bottom: 10px; }
.consent { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: #000; cursor: pointer; }
.consent input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; }
.full-calc .form-submit { display: block; width: 400px; max-width: 100%; margin: 30px auto 0; font-size: 1.5em; padding: 20px 30px; }

/* Диспетчеризация */
.block-asu { margin-bottom: 50px; }
.proto { display: flex; gap: 20px; margin-bottom: 30px; }
.proto div {
    flex: 1;
    padding: 25px 15px;
    border-radius: 10px;
    background: #0451b9;
    color: #fff;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}
.proto b { display: block; font-size: 2em; }
.proto span { color: #a6c5ff; }

/* Объекты, сертификаты */
.block4, .block5, .block6 { margin-bottom: 50px; }
.block4 img { display: block; margin: 0 auto; }
.img-cont { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.img-cont img { width: 250px; display: block; }

/* Остались вопросы */
.block6 h1 { margin-bottom: 15px; }
.block6 h1 a { color: #555 !important; text-decoration: none; }
.block6 h1 a:hover { color: #f45a40 !important; }
.messengers { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.messengers .btn-blue { font-size: 1.1em; padding: 10px 30px; }

.notice { max-width: 800px; margin: 0 auto 30px; padding: 15px 20px; border-radius: 10px; text-align: center; font-weight: bold; }
.notice-ok { background: #0451b9; color: #fff; }
.notice-err { background: #b90404; color: #fff; }

/* Подвал */
footer { background: #0451b9; padding: 30px 0; }
.footer-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; font-family: 'Roboto Condensed', sans-serif; color: #fff; font-size: .875em; }
.footer-links a { color: #fff !important; text-decoration: none; margin-left: 20px; }
.footer-links a:hover { text-decoration: underline; }

.fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 20;
    padding: 12px 20px; border-radius: 10px;
    background: #b90404; color: #fff !important; text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif; font-weight: bold;
    box-shadow: 0 3px 0 #8f0303;
}

/* Адаптив */
@media screen and (max-width: 1040px) {
    .block1-content { grid-template-columns: 1fr 400px; }
    .block1 .text .p1 { font-size: 3.4em; }
    .block1 .text .p2 { font-size: 2.5em; }
}
@media screen and (max-width: 800px) {
    .header-in, .phone-btn { flex-direction: column; text-align: center; gap: 10px; }
    header .logo-img { margin: 0 auto; }
    .block1-content { grid-template-columns: 1fr; grid-template-areas: "text" "img" "buttons" "made"; min-height: 0; padding-top: 30px; }
    .block1 .zavesy { max-width: 400px; margin: 20px auto 0; }
    .kit, .calc-row, .proto { display: block; }
    .kit li { margin-bottom: 15px; }
    .calc-row { padding: 0; }
    .calc-right { margin-top: 30px; }
    .proto div { margin-bottom: 15px; }
    .block2-content li { margin: 15px 0; padding: 15px 20px; }
    .img-cont img { width: 44vw; }
}
@media screen and (max-width: 600px) {
    .block1 .text .p1 { font-size: 2.5em; }
    .block1 .text .p2 { font-size: 1.8em; }
    .block1 .text .p3 { font-size: 1em; }
    .block1 .buttons a { width: 100%; }
    .block1 .made-in { font-size: 1.2em; }
    .gray-block h1, .block2 h1, .small-calc h1, .full-calc h1, .block3 h1,
    .block-asu h1, .block4 h1, .block5 h1, .block6 h1 { font-size: 1.5em; }
    .btn-red, .btn-blue { font-size: 1.15em; padding: 15px 20px; }
    .kit li { flex-direction: column; align-items: stretch; }
    .pair { display: block; }
    .step { padding: 15px 15px 5px; }
    .gate-pick { grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: 70px 160px 6px; }
    .chip { flex: 1 1 auto; }
    .chip span { width: 100%; justify-content: center; }
    .card-form { padding: 15px; }
    .footer-links a { margin: 0 20px 0 0; }
}
