:root {
    --blue: #0c2b4e;
    --dark: #071521;
    --accent: #2d77c7;
    --gold: #c9a36b;
    --soft: #f3f6fa;
    --text: #17202b;
    --muted: #697386;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

/* ШАПКА САЙТА */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5e9ef;
}

.header__inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--blue);
    line-height: .9;
}

.logo span {
    display: block;
    font-size: 26px;
}

.logo small {
    font-size: 18px;
}

.nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: #263445;
    flex: 1;
}

.nav a:hover {
    color: var(--accent);
}

.header__contacts {
    display: flex;
    gap: 14px;
    align-items: center;
}

.phone {
    font-weight: 800;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 16px 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(45, 119, 199, .26);
}

.btn--small {
    padding: 11px 16px;
    font-size: 14px;
}

.btn--ghost {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: none;
}

/* ГЛАВНЫЙ ЭКРАН (HERO) — ПОЛНОСТЬЮ ИСПРАВЛЕН */
.hero {
    min-height: 720px;
    position: relative;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

/* Градиентное затемнение (слева плотнее под текст, справа прозрачнее) */
.hero__bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 21, 33, 0.85) 0%,
        rgba(7, 21, 33, 0.50) 45%,
        rgba(7, 21, 33, 0) 100%
    );
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 2; /* Поднимаем текст выше слоя затемнения */
    padding: 90px 0 60px;
}

.badge, .eyebrow, .section__head span {
    display: inline-flex;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    max-width: 850px;
    margin: 22px 0;
    color: #ffffff !important; /* Белый цвет для заголовка */
}

.hero p {
    max-width: 690px;
    font-size: 22px;
    color: #e2ecf5 !important; /* Контрастный светлый цвет для описания */
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 34px 0;
}

/* СТАТИСТИКА НА ГЛАВНОЙ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 850px;
    margin-top: 36px;
}

.stats div {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 18px;
}

.stats strong {
    display: block;
    font-size: 28px;
}

.stats span {
    color: #c8d5df;
}

/* СЕКЦИИ И КАРТОЧКИ */
.section {
    padding: 86px 0;
}

.section--soft {
    background: var(--soft);
}

.section--dark {
    background: var(--dark);
    color: white;
}

.section__head {
    max-width: 760px;
    margin-bottom: 36px;
}

.section__head h2, .two-col h2, .calc h2, .about h2, .contacts h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin: 10px 0 14px;
    color: inherit;
}

.section__head p, .two-col p, .calc p, .contacts p {
    color: var(--muted);
    font-size: 18px;
}

.section--dark .section__head p, .section--dark p {
    color: #c7d4df;
}

.cards {
    display: grid;
    gap: 18px;
}

.cards--products {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px;
    background: white;
    min-height: 180px;
}

.card h3 {
    font-size: 23px;
    color: var(--blue);
    margin: 0 0 12px;
}

.card p {
    color: var(--muted);
    margin: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: start;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.benefits div {
    background: white;
    border-radius: 16px;
    padding: 18px;
}

.benefits b {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
}

.benefits span {
    color: var(--muted);
}

/* СРАВНЕНИЕ ТАБЛИЦЕЙ */
.compare {
    background: var(--blue);
    color: white;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(12, 43, 78, .2);
}

.compare h3 {
    font-size: 30px;
    margin: 0 0 16px;
}

.compare__row {
    display: grid;
    grid-template-columns: 1.3fr .9fr 1fr;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.compare__row b {
    color: #b8dcff;
}

.compare__row em {
    font-style: normal;
    color: #cbd6df;
}

.compare p {
    color: #d9e5ef;
    margin-top: 18px;
}

.list {
    padding-left: 20px;
    color: #445;
    line-height: 1.8;
}

.systems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.systems span {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--blue);
}

/* ЭТАПЫ РАБОТЫ */
.steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.steps div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 22px;
}

.steps b {
    color: var(--gold);
    font-size: 24px;
}

.steps h3 {
    margin: 14px 0 8px;
}

/* ГАЛЕРЕЯ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f7fa;
    border: 1px solid #e5e9ef;
}

.gallery img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    display: block;
}

.gallery figcaption {
    font-weight: 800;
    padding: 16px;
    color: var(--blue);
}

.chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chips span {
    background: white;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--blue);
}

/* ФОРМА И КАЛЬКУЛЯТОР */
.calc {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 42px;
    align-items: start;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: var(--soft);
    border-radius: 24px;
    padding: 28px;
}

.form input, .form select, .form textarea {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    padding: 16px;
    font: inherit;
    background: white;
}

.form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
}

.form button {
    grid-column: 1 / -1;
}

.form__note {
    grid-column: 1 / -1;
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0;
}

/* О КОМПАНИИ И КОНТАКТЫ */
.about, .contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
}

.requisites, .contact-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    padding: 26px;
}

.contact-card {
    background: var(--blue);
    display: grid;
    gap: 12px;
}

.contact-card a {
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.footer {
    background: #030b12;
    color: #9fb1c1;
    padding: 28px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer a {
    color: white;
}

/* АДАПТИВНОСТЬ (МОБИЛЬНЫЕ СТИЛИ) */
@media(max-width:940px) {
    .nav {
        display: none;
    }
    .header__contacts .phone {
        display: none;
    }
    .hero {
        min-height: 760px;
    }
    .stats, .cards--products, .steps, .gallery {
        grid-template-columns: 1fr 1fr;
    }
    .two-col, .calc, .about, .contacts {
        grid-template-columns: 1fr;
    }
    .steps {
        gap: 10px;
    }
    .hero p {
        font-size: 18px;
    }
}

@media(max-width:620px) {
    .header__inner {
        height: 68px;
    }
    .logo span {
        font-size: 22px;
    }
    .hero__content {
        padding-top: 70px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 17px;
    }
    .stats, .cards--products, .steps, .gallery, .benefits, .form {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 58px 0;
    }
    .gallery img {
        height: 260px;
    }
    .compare__row {
        grid-template-columns: 1fr;
    }
    .systems {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .hero__actions {
        width: 100%;
    }
    .header__contacts .btn {
        width: auto;
    }
    .contact-card a {
        font-size: 18px;
    }
}