:root {
    --navy: #0b1f3a;
    --navy-700: #102a4c;
    --navy-600: #16345c;
    --blue: #1f6feb;
    --blue-600: #1a5fd0;
    --cyan: #19c2c9;
    --ink: #0f1b2d;
    --text: #3a4a5e;
    --muted: #6b7c91;
    --line: #e4e9f0;
    --bg: #ffffff;
    --bg-alt: #f4f7fb;
    --white: #fff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -18px rgba(11, 31, 58, .28);
    --shadow-sm: 0 6px 20px -10px rgba(11, 31, 58, .25);
    --container: 1180px;
    /* Только светлая тема — запрещаем браузеру авто-затемнение (иначе пропадает лого) */
    color-scheme: only light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-weight: 700; font-size: 1rem; line-height: 1;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn .icon { font-size: 1.15em; }
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(31,111,235,.55); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.logo__img { height: 44px; width: auto; display: block; }
.logo__text { font-size: 1.18rem; line-height: 1.05; letter-spacing: -.02em; }
/* На тёмном подвале логотип на белой плашке, чтобы белый фон картинки смотрелся аккуратно */
.logo--light .logo__img { background: #fff; border-radius: 10px; padding: 4px 8px; box-shadow: var(--shadow-sm); }
.logo--light .logo__text { color: #fff; }

.nav { display: flex; gap: 22px; margin-left: 32px; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--text); transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: 1rem; white-space: nowrap; }
.header__phone .icon { color: var(--blue); font-size: 1.1em; }

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2.5px; width: 24px; background: var(--ink); border-radius: 2px; margin: 0 auto; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(25,194,201,.28), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(31,111,235,.32), transparent 55%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 55%, #0a1830 100%);
}
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(800px 600px at 70% 30%, #000, transparent 80%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1.02fr; gap: 48px; align-items: center; padding: 84px 0 90px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
    padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18); color: #d7ecff; margin-bottom: 22px;
}
.badge .icon { color: var(--cyan); font-size: 1.1em; }

.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(120deg, #5ad7df, #7aa9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c6d4e6; max-width: 560px; margin-bottom: 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .98rem; color: #dce6f3; }
.hero__points .icon { color: var(--cyan); font-size: 1.3em; }

/* Блок «Заявка на перевозку» — увеличен на ~20%. */
.hero__form {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius); padding: 38px 36px; backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.hero__form h3 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.hero__form > p { color: #b9c7da; font-size: 1.12rem; margin-bottom: 26px; }
.hero__form .btn { font-size: 1.18rem; padding: 19px 30px; }
.hero__form-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; font-size: 1rem; color: #9fb1c7; }
.hero__form-note .icon { color: var(--cyan); font-size: 1.25em; flex: none; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-700); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: 0; }
.stat { background: var(--navy-700); padding: 30px 22px; text-align: center; }
.stat__value { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; color: #fff; letter-spacing: -.03em; background: linear-gradient(120deg, #5ad7df, #7aa9ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { color: #9fb1c7; font-size: .92rem; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section__note { text-align: center; color: var(--muted); margin-top: 30px; font-size: .98rem; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--blue); margin-bottom: 12px; }
.eyebrow--light { color: var(--cyan); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card__icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
    font-size: 28px; color: #fff; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: var(--shadow-sm);
}
.card__icon--soft { background: linear-gradient(135deg, #e8f0ff, #e0fbfc); color: var(--blue); box-shadow: none; }

/* Карточка продукции: название + химическая формула */
.card--product .card__icon { width: 48px; height: 48px; font-size: 24px; margin-bottom: 16px; }
.card__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.card__title h3 { font-size: 1.12rem; margin: 0; }
.formula {
    font-size: .82rem; font-weight: 700; color: var(--blue); letter-spacing: .02em;
    padding: 3px 9px; border-radius: 999px; background: #eaf2ff; white-space: nowrap;
}
.card--product p { font-size: .94rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 26px; }
.step__num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 1.2rem;
    color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Geo ---------- */
.geo { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 78px 0; }
.geo__inner { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 40px; }
.geo h2 { color: #fff; margin-bottom: 16px; }
.geo__text p { color: #c2d0e3; max-width: 620px; margin-bottom: 24px; }
.geo__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.geo__tags span { font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: #dce6f3; }
.geo__icon { display: grid; place-items: center; font-size: 150px; color: var(--cyan); opacity: .9; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__info h2 { margin-bottom: 14px; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }
.contact__list { list-style: none; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.contact__list .icon { font-size: 1.05rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #e8f0ff, #e0fbfc); color: var(--blue); }
.contact__list a:hover { color: var(--blue); }

.contact__form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg-alt);
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .15s, background .15s;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9bd; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field__err { color: #d6453d; font-size: .82rem; font-style: normal; }
.form__policy { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 2px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px; }
.alert--success { background: #e6f7ee; color: #1f7a4d; border: 1px solid #b6e6cd; }
.alert--error { background: #fdeceb; color: #c0392b; border: 1px solid #f5c6c2; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c2d0e3; padding: 60px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin-top: 16px; max-width: 420px; font-size: .96rem; color: #9fb1c7; }
.footer__col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: #9fb1c7; margin-bottom: 10px; font-size: .96rem; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #7c8da4; }

/* ---------- FAB ---------- */
.fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
    display: none; place-items: center; font-size: 24px; color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 12px 30px -8px rgba(31,111,235,.6);
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 12px 30px -8px rgba(31,111,235,.6); } 50% { box-shadow: 0 12px 38px -6px rgba(25,194,201,.75); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav, .header__actions { display: none; }
    .burger { display: flex; margin-left: auto; }
    .header.open .nav {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; padding: 18px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    }
    .header.open .nav a { padding: 10px 0; }
    .container { padding: 0 26px; }
    .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 64px; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .geo__inner { grid-template-columns: 1fr; }
    .geo__icon { display: none; }
    .contact__inner { grid-template-columns: 1fr; gap: 34px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .fab { display: grid; }
}
@media (max-width: 560px) {
    .section { padding: 60px 0; }
    /* Больше воздуха от краёв экрана на телефонах (~1 см) */
    .container { padding: 0 30px; }
    .cards--3, .cards--4, .steps { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .hero__cta .btn { width: 100%; }
}
