/* ============================================================
   МС brand + unified hero (vdgo-redesign Phase 2)
   Appended via separate sheet so it wins cascade over main.css.
   ============================================================ */

:root {
    --mc-cyan: #00B6F0;
    --mc-cyan-dark: #008FBF;
    --mc-cyan-soft: #EAF7FC;
    --mc-slate: #0F1B2B;
    --mc-slate-muted: #47586E;
    --mc-border: #E1E8EE;
    --mc-surface: #F6FAFC;
}

/* --- Site header: wordmark logo, cyan accent --- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--mc-border);
}

.site-logo--wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.92;
    color: var(--mc-cyan);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-logo__line {
    font-size: 15px;
}

/* «Сервис» подогнан по ширине к «Метрология» сверху. */
.site-logo__line--accent {
    font-size: 27px;
    letter-spacing: 0;
}

.site-nav a {
    color: var(--mc-slate);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--mc-cyan);
}

.site-contact {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.site-phone {
    color: var(--mc-slate);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.site-hours {
    color: var(--mc-slate-muted);
    font-size: 0.8rem;
}

/* --- Unified hero --- */

.hero--unified {
    background: #ffffff;
    background-image:
        radial-gradient(1100px 380px at 82% 30%, rgba(0, 182, 240, 0.10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--mc-surface) 100%);
    color: var(--mc-slate);
    padding-block: clamp(20px, 2.8vw, 36px);
    min-height: auto;
}

.hero--unified .hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
    column-gap: clamp(24px, 3vw, 44px);
    row-gap: 16px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
}

.hero--unified .hero-copy {
    max-width: 680px;
    min-width: 0;
}

.hero--unified .eyebrow {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 0 10px;
    color: var(--mc-cyan-dark);
    background: var(--mc-cyan-soft);
    border: 1px solid rgba(0, 182, 240, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: normal;
}

.hero--unified h1 {
    max-width: 680px;
    color: var(--mc-slate);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.hero--unified .hero-sub {
    max-width: 620px;
    color: var(--mc-slate-muted);
    font-size: 0.98rem;
    line-height: 1.45;
    margin: 0 0 16px;
    overflow-wrap: normal;
}

/* --- Unified form --- */

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 27, 43, 0.06);
}

.hero-form__row {
    display: grid;
    gap: 10px;
}

.hero-form__row--params {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-form__row--contact {
    grid-template-columns: 1fr 1fr;
}

.hero-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hero-field[hidden] {
    display: none;
}

.hero-field__label {
    color: var(--mc-slate-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-field__hint {
    color: var(--mc-cyan-dark);
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

.hero-field select,
.hero-field input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--mc-slate);
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--mc-slate-muted) 50%),
                      linear-gradient(135deg, var(--mc-slate-muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.hero-field select:focus,
.hero-field input:focus {
    outline: none;
    border-color: var(--mc-cyan);
    box-shadow: 0 0 0 3px rgba(0, 182, 240, 0.18);
}

.hero-form__meta {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.8rem;
}

.hero-form__confidence,
.hero-form__amount,
.hero-form__breakdown {
    display: none !important;
}

.hero-form__note {
    display: block;
    color: var(--mc-slate-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.hero-form__submit.primary-action {
    margin-top: 0;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--mc-cyan);
    border: none;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    width: 100%;
    min-height: 44px;
}

.hero-form__submit.primary-action:hover,
.hero-form__submit.primary-action:focus-visible {
    background: var(--mc-cyan-dark);
    box-shadow: 0 6px 18px rgba(0, 143, 191, 0.28);
    outline: none;
}

.hero-form__submit.primary-action:active {
    transform: translateY(1px);
}

.hero-form__consent {
    margin: 0;
    color: var(--mc-slate-muted);
    font-size: 0.76rem;
    text-align: center;
}

.hero-form__consent a {
    color: var(--mc-cyan-dark);
}

.hero-form__status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
}

.hero-form__status.lead-status--success {
    color: #065f46;
    background: #d1fae5;
}

.hero-form__status.lead-status--error {
    color: #991b1b;
    background: #fee2e2;
}

/* --- Odometer (gas-meter drum counter) --- */

.hero-odometer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-odometer {
    position: relative;
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 18px 30px rgba(0, 143, 191, 0.18));
}

.hero-odometer::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: radial-gradient(closest-side, rgba(0, 182, 240, 0.22), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.odo-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #f7f7f7 0%, #d0d3d7 45%, #b5bac1 100%);
    border: 1px solid #6b7079;
    border-radius: 12px;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        0 2px 0 rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.odo-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 30%, #eaecef 0%, #9ca1a9 60%, #606570 100%);
    border: 1px solid #4b5059;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

.odo-screw::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-top: 1px solid rgba(0, 0, 0, 0.45);
    transform: rotate(35deg);
}

.odo-screw--tl { top: 4px; left: 4px; }
.odo-screw--tr { top: 4px; right: 4px; }
.odo-screw--bl { bottom: 4px; left: 4px; }
.odo-screw--br { bottom: 4px; right: 4px; }

.odo-digits {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.odo-digit {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 52px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 50%, #e0e0e0 100%);
    border: 1px solid #222;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.odo-digit::before,
.odo-digit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 36%;
    pointer-events: none;
    z-index: 2;
}

.odo-digit::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
}

.odo-digit::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent);
}

.odo-reel {
    display: flex;
    flex-direction: column;
    will-change: transform;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.odo-face {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    color: #111;
    font-family: "JetBrains Mono", "Menlo", "Consolas", monospace;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.odo-rub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 52px;
    margin-left: 4px;
    color: #f5f5f5;
    background: #1e1e1e;
    border: 1px solid #0a0a0a;
    border-radius: 3px;
    font-family: "JetBrains Mono", "Menlo", "Consolas", monospace;
    font-size: 28px;
    font-weight: 700;
}

.hero-odometer__caption {
    margin: 0;
    color: var(--mc-slate-muted);
    font-size: 0.8rem;
    text-align: center;
    max-width: 340px;
    line-height: 1.4;
}

/* --- Responsive --- */

@media (max-width: 960px) {
    .hero--unified .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero--unified .hero-copy {
        order: 1;
    }

    .hero-odometer-wrap {
        order: 0;
    }

    .hero-form__row--params {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-form__row--params,
    .hero-form__row--contact {
        grid-template-columns: 1fr;
    }

    .odo-digit {
        width: 28px;
        height: 44px;
    }

    .odo-face {
        height: 44px;
        font-size: 28px;
    }

    .odo-rub {
        width: 26px;
        height: 44px;
        font-size: 24px;
    }

    .site-hours {
        display: none;
    }
}
