/* =========================
   FONTS (LOCAL)
========================= */
@font-face {
    font-family: "Russo One";
    src: url("fonts/russo-one-cyrillic-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter-cyrillic-wght-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* =========================
   THEME
========================= */
:root {
    --accent: #FB6A00;
    --navy: #282f3f;
    --text: #282f3f;
    --text2: #475569;
    --muted: #64748B;
    --border: #D8DEE9;

    --bg: #ffffff;
    --bg-soft: #F6F8FB;
    --card: #ffffff;

    --shadow: 0 10px 28px rgba(11, 18, 32, .08);
    --shadow2: 0 18px 50px rgba(11, 18, 32, .10);
    --radius: 18px;

    --font-display: "Russo One", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

/* ===== TEST Logo block with image ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__image {
    width: 84px;
    height: auto;
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* ===== end TEST Logo block with image ===== */


.logo__title {
    font-weight: 900;
    letter-spacing: .2px;
}

.logo__sub {
    font-size: 12px;
    color: var(--muted);
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    background: rgba(251, 106, 0, .95);
    box-shadow: 0 10px 18px rgba(251, 106, 0, .22);
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text2);
    opacity: .85;
}

.nav a:hover {
    opacity: 1;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    color: var(--navy);
    background: rgba(11, 18, 32, .04);
    border: 1px solid rgba(216, 222, 233, .9);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}

.header__phone:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: rgba(11, 18, 32, .06);
}

.header__phoneText {
    letter-spacing: .02em;
}

/* =========================
   SECTIONS / GRID / CARDS
========================= */
.section {
    padding: 36px 0;
}

.muted {
    color: var(--muted);
    margin: 6px 0 18px;
}

h2 {
    margin: 0 0 10px;
    font-weight: 900;
    color: var(--navy);
}

.card h3 {
    margin: 0 0 8px;
    font-weight: 900;
    color: var(--navy);
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 12px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card p {
    margin: 8px 0;
    color: var(--text2);
}

.list {
    margin: 0;
    padding-left: 18px;
    color: var(--text2);
}

.list li {
    margin: 6px 0;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn--primary:hover {
    box-shadow: 0 14px 34px rgba(251, 106, 0, .26);
}

.btn--ghost {
    background: #fff;
}

.btn--full {
    width: 100%;
}

.small {
    font-size: 13px;
}

.center {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

/* =========================
   FORMS (оставил, вдруг вернёшь)
========================= */
form {
    display: grid;
    gap: 10px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(251, 106, 0, .55);
    box-shadow: 0 0 0 4px rgba(251, 106, 0, .14);
}

textarea {
    resize: vertical;
}

.hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.status {
    margin-top: 10px;
    font-weight: 900;
}

.hp {
    display: none;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =========================
   IMAGES
========================= */
.img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(216, 222, 233, .9);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(11, 18, 32, .04), rgba(251, 106, 0, .08));
}

.img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equip__img {
    height: 350px;
    margin-bottom: 12px;
}

.case__img {
    height: 260px;
    margin-bottom: 12px;
}

/* =========================
   EQUIPMENT: кнопки внизу
========================= */
.equip {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.equip .card__actions {
    margin-top: auto;
}

/* Tags */
.equip__top {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.equip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text2);
    background: rgba(251, 106, 0, .10);
    border: 1px solid rgba(251, 106, 0, .18);
}

/* =========================
   CASES: плашки столбиком + заголовок сверху
========================= */
.case__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: start;
    margin-bottom: 6px;
}

.case__pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case__pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(148, 90, 4, 0.92);
    background: rgba(251, 106, 0, .10);
    border: 1px solid rgba(251, 106, 0, .22);
}

.case__head h3 {
    margin: 0;
    align-self: start;
}

/* =========================
   FAQ
========================= */
.faq details {
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.faq details:first-of-type {
    border-top: 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--navy);
}

.faq summary::marker {
    color: var(--accent);
}

/* =========================
   REQUISITES / FOOTER
========================= */
.req {
    font-size: 14px;
    color: var(--text2);
    display: grid;
    gap: 6px;
}

.footer {
    padding: 18px 0 0;
}

/* =========================
   TERMS: 4 + 2 columns on desktop
========================= */
@media (min-width: 901px) {
    #terms .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #terms .grid.grid--2 {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 14px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    h1 {
        font-size: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid--2 {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        min-width: 0;
    }

    /* на мобиле добавим место снизу, чтобы фон-картинка “читалась” */
    .hero.hero--bg {
        padding-bottom: 240px;
    }

    .hero.hero--bg::before {
        background-position: center bottom -10px;
        background-size: 860px;
        opacity: .80;
        filter: blur(0.8px) saturate(1.05) contrast(1.06);
        -webkit-mask-image: radial-gradient(600px 320px at 50% 78%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .65) 55%, rgba(0, 0, 0, 0) 78%);
        mask-image: radial-gradient(600px 320px at 50% 78%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .65) 55%, rgba(0, 0, 0, 0) 78%);
    }

    .hero::after {
        background: linear-gradient(180deg,
                rgba(246, 248, 251, .90) 0%,
                rgba(246, 248, 251, .55) 40%,
                rgba(246, 248, 251, .00) 80%);
    }
}

/* =========================
   HERO (GRADIENT + SOFT IMAGE BG)
   Картинка = фон всего hero
========================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 34px;
    background:
        radial-gradient(1100px 420px at 16% -10%, rgba(251, 106, 0, .18), transparent 60%),
        radial-gradient(900px 380px at 90% 0%, rgba(251, 106, 0, .10), transparent 55%),
        linear-gradient(180deg, var(--bg-soft), #fff);
}

/* HERO (картинка как мягкий фон всего блока) */
.hero.hero--bg {
    position: relative;
    overflow: hidden;

    /* 80–90% экрана */
    min-height: 68vh;
    padding: 64px 0;

    /* чтобы контент был по центру по высоте */
    display: flex;
    align-items: center;
}

/* чтобы сетка и текст были поверх фона */
.hero.hero--bg .container {
    position: relative;
    z-index: 1;
}

/* Экскаватор — фоновый арт */
.hero.hero--bg::before {
    content: "";
    position: absolute;

    /* даём запас, чтобы не резало по краям */
    inset: -160px -60px -60px -120px;

    pointer-events: none;

    background-image: url("img/case-695.png");
    background-repeat: no-repeat;

    /* правее и по центру */
    background-position: right 15% center;

    /* масштаб по высоте — чтобы не обрезало сверху/снизу */
    background-size: auto 57%;

    /* прозрачность (0…1) */
    opacity: .90;

    /* без blur */
    filter: saturate(1.05) contrast(1.05);

    /* мягкие края, без чёткой вертикальной границы */
    -webkit-mask-image: radial-gradient(2200px 1400px at 82% 55%,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 52%,
            rgba(0, 0, 0, .55) 74%,
            rgba(0, 0, 0, 0) 92%);
    mask-image: radial-gradient(2200px 1400px at 82% 55%,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 52%,
            rgba(0, 0, 0, .55) 74%,
            rgba(0, 0, 0, 0) 92%);
}

.lead-list {
    margin: -10px 0 18px;
    padding-left: 22px;
}

.lead-list li {
    margin-bottom: 0px;
}

.lead-note {
    margin-top: 12px;
}

/* Мобилка: чтобы герой не был слишком высоким */
@media (max-width: 900px) {
    .hero.hero--bg {
        min-height: 72vh;
        padding: 48px 0;
    }

    .hero.hero--bg::before {
        background-position: center bottom;
        background-size: auto 70%;
        opacity: .22;
        -webkit-mask-image: radial-gradient(900px 520px at 50% 80%, rgba(0, 0, 0, 1), transparent 70%);
        mask-image: radial-gradient(900px 520px at 50% 80%, rgba(0, 0, 0, 1), transparent 70%);
    }
}

/* Легкая дымка, чтобы текст слева читался всегда */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(246, 248, 251, .92) 0%,
            rgba(246, 248, 251, .55) 42%,
            rgba(246, 248, 251, .00) 78%);
    opacity: .85;
}

/* Контент поверх фона */
.hero .container {
    position: relative;
    z-index: 1;
}


.hero__text {
    max-width: 720px;
    /* текст слева, справа “воздух” под фон */
}

h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.08;
    color: var(--navy);
}

.hero h1 {
    font-family: var(--font-display);
    letter-spacing: .2px;
}

.lead {
    margin: 0 0 14px;
    color: var(--text2);
    font-size: 16px;
    line-height: 1.55;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text2);
    background: rgba(11, 18, 32, .04);
    border: 1px solid rgba(216, 222, 233, .7);
}

/* Hero actions */
.hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 8px;
}

.hero__actions .btn {
    min-width: 240px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: start;
}

.hero__text,
.form-card {
    min-width: 0;
}



.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: start;
}

.hero__text,
.form-card {
    min-width: 0;
}


/* =========================
   MOBILE FIX PACK (append to end)
========================= */
@media (max-width: 900px) {

    /* 1) Убираем горизонтальный скролл */
    html,
    body {
        overflow-x: hidden;
    }

    /* 2) Шапка: чтобы ничего не вылезало за экран */
    .header__row {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* телефон на всю ширину и без nowrap */
    .header__cta {
        width: 100%;
    }

    .header__phone {
        width: 100%;
        justify-content: center;
        white-space: normal;
        /* важно: иначе “режет” */
        text-align: center;
    }

    /* 3) HERO: в одну колонку, нормальные отступы */
    .hero {
        padding: 28px 0 22px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        /* текст сверху, форма ниже */
        gap: 14px;
    }

    .hero__text {
        max-width: none;
    }

    h1 {
        font-size: 26px;
        line-height: 1.12;
    }

    /* 4) Кнопки в HERO: только столбиком и на всю ширину
        (и ВАЖНО: убираем любые min-width, которые могут быть где-то выше) */
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        min-width: 0 !important;
    }

    /* 5) Форма: на всю ширину, 2 поля в ряд -> в столбик */
    .form__row {
        grid-template-columns: 1fr;
    }

    .form-card {
        width: 100%;
    }

    /* 6) Кнопки в карточках (equipment/contacts): тоже на всю ширину */
    .card__actions {
        flex-direction: column;
    }

    .card__actions .btn {
        width: 100%;
        min-width: 0 !important;
    }

    /* 7) Картинки в карточках — поменьше по высоте на мобиле */
    .equip__img {
        height: 240px;
    }

    .case__img {
        height: 200px;
    }
}

/* CONTACT SOCIAL (inline SVG) */
.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 6px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(216, 222, 233, .95);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 24px rgba(11, 18, 32, .05);
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    color: var(--navy);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: rgba(11, 18, 32, .04);
}

.social-ico {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(11, 18, 32, .72);
}

.social-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* mobile: на всю ширину */
@media (max-width: 900px) {
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Исправляем верстку на мобильной версии */
/* ===== Mobile logo to center ===== */

@media (max-width: 768px) {
    .header__row {
        justify-content: center;
    }

    .logo {
        display: flex;
        /* важно */
        flex-direction: column;
        align-items: center;
        /* важно */
        gap: 6px;
        text-align: center;
    }

    .logo__image {
        width: 82px;
        height: auto;
        /* важно */
    }

    .badge {
        display: inline-block;
        margin: 6px 0 0;
        white-space: nowrap;
        /* чтобы бейдж не ломал строку */
    }
}

/* ===== Mobile CTA button (пробуем по центру) ===== */
/* ===== Mobile: force center text in CTA button ===== */
@media (max-width: 900px) {
    .center .btn.btn--primary {
        display: block !important;
        width: 100%;
        text-align: center !important;
        white-space: normal;
        line-height: 1.25;
    }
}


/* =========================
   PHONE CTA to analytics
========================= */

.header__phone--reveal {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 14px 7px;
    line-height: 1.15;
}

.header__phoneMain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 14px;
    color: var(--navy);
    white-space: nowrap;
}

.header__phoneHint {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .header__phone--reveal {
        align-items: center;
        text-align: center;
    }

    .header__phoneHint {
        white-space: normal;
    }
}

/* =========================
   CONTACTS CTA to analytics
========================= */
.contacts-phone-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.contacts-phone {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: var(--navy);
    line-height: 1.2;
}

.contacts-phone__main {
    font-weight: 900;
    color: var(--navy);
}

.contacts-phone__hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 900px) {
    .contacts-phone-row {
        flex-direction: column;
        gap: 4px;
    }
}