

:root {
    --mh-bg: #0f172a;
    --mh-bg-alt: #0b1120;
    --mh-primary: #2563eb;            /* blue */
    --mh-primary-soft: rgba(37, 99, 235, 0.08);
    --mh-accent: #0ea5e9;             /* cyan */
    --mh-text: #0f172a;
    --mh-muted: #6b7280;
    --mh-border: #e5e7eb;
    --mh-card-bg: #ffffff;
    --mh-radius-xl: 1.5rem;
    --mh-shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.24), transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.18), transparent 48%),
        linear-gradient(to bottom, #f9fafb, #e5f0ff);
    color: var(--mh-text);
    min-height: 100vh;
}

/* NAVBAR */
.mh-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.navbar-toggler {
    color: #111827;
}

.navbar-brand span {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

.mh-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #38bdf8, #1d4ed8);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-nav-link {
    position: relative;
    font-size: 0.9rem;
    color: var(--mh-muted) !important;
    padding-inline: 0.9rem !important;
}

.mh-nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--mh-primary), var(--mh-accent));
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.22s ease;
}

.mh-nav-link:hover,
.mh-nav-link.active {
    color: var(--mh-text) !important;
}

.mh-nav-link:hover::after,
.mh-nav-link.active::after {
    width: 20px;
}

/* HERO – фон и сетка */
.hero {
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.28), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.34), transparent 60%),
        radial-gradient(circle at 0% 80%, rgba(129, 140, 248, 0.24), transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.20), transparent 60%);
    opacity: 0.9;
    z-index: -2;
    filter: blur(2px);
    animation: heroGradientShift 28s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.10)
    );
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    font-size: 0.8rem;
    color: var(--mh-muted);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-badge:hover::after {
    opacity: 1;
}

.hero-badge i {
    color: var(--mh-accent);
}

.hero-title {
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
}

.hero-highlight {
    background: linear-gradient(120deg, #2563eb, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 36rem;
    font-size: 0.96rem;
    color: var(--mh-muted);
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--mh-muted);
}

.hero-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #9ca3af;
}

/* BUTTONS */
.mh-btn-primary {
    border-radius: 999px;
    padding: 0.8rem 1.7rem;
    font-weight: 600;
    border: none;
    background-image: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #f9fafb;
    box-shadow: 0 9px 22px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.92rem;
}

.mh-btn-primary:hover {
    filter: brightness(1.03);
}

.mh-btn-outline {
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 500;
    border: 1px solid var(--mh-border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--mh-muted);
    font-size: 0.9rem;
}

.mh-btn-outline:hover {
    border-color: var(--mh-primary);
    color: var(--mh-text);
}

/* HERO RIGHT с сеткой */
.hero-right-card {
    position: relative;
    border-radius: var(--mh-radius-xl);
    background: var(--mh-card-bg);
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
    padding: 1.3rem;
    overflow: hidden;
}

.hero-right-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
        linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.5;
    transform-origin: center;
    animation: heroGridRotate 40s linear infinite;
    z-index: -2;
}

.hero-right-card::after {
    content: "";
    position: absolute;
    inset: 15%;
    border-radius: 20px;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.22), transparent 60%);
    opacity: 0.8;
    mix-blend-mode: screen;
    z-index: -1;
}

.hero-right-animated {
    animation: heroFloat 16s ease-in-out infinite;
}

.hero-placeholder {
    border-radius: 1.15rem;
    border: 1px dashed #d1d5db;
    background: repeating-linear-gradient(
        135deg,
        #f9fafb,
        #f9fafb 8px,
        #e5edff 8px,
        #e5edff 16px
    );
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder-inner p {
    font-size: 0.82rem;
}

.hero-tag {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--mh-muted);
}

.hero-tag i {
    color: var(--mh-primary);
}

/* SECTIONS */
.section {
    padding: 3.5rem 0;
}

.section-last {
    padding-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mh-muted);
}

.section-title {
    font-size: 1.65rem;
    font-weight: 700;
}

/* CARDS */
.mh-card {
    background: var(--mh-card-bg);
    border-radius: var(--mh-radius-xl);
    border: 1px solid var(--mh-border);
    padding: 1.4rem;
    box-shadow: var(--mh-shadow-soft);
}

.mh-side-card {
    background: #ffffff;
    border-radius: 1.3rem;
    border: 1px solid var(--mh-border);
    padding: 1.5rem 1.4rem;
}

.mh-half-card {
    background: #ffffff;
    border-radius: 1.3rem;
    border: 1px solid var(--mh-border);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--mh-shadow-soft);
}

/* LIST OF MACHINES */
.mh-list-grid {
    display: grid;
    gap: 0.6rem;
}

@media (min-width: 576px) {
    .mh-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mh-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mh-list-pill {
    border-radius: 999px;
    border: 1px solid var(--mh-border);
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
    color: var(--mh-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mh-list-pill i {
    font-size: 0.9rem;
    color: var(--mh-primary);
}

.mh-list-pill:hover {
    border-color: var(--mh-primary);
    box-shadow: 0 9px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* CHIPS */
.mh-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--mh-border);
    background: #ffffff;
    font-size: 0.78rem;
    color: var(--mh-muted);
}

.mh-chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--mh-border);
    background: #f3f4ff;
    font-size: 0.78rem;
    color: var(--mh-muted);
}

.mh-chip-soft i,
.mh-chip i {
    font-size: 0.9rem;
}

/* LINKS WITH ARROW */
.mh-link-arrow {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mh-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.mh-link-arrow i {
    transition: transform 0.2s ease;
}

.mh-link-arrow:hover i {
    transform: translateX(3px);
}

/* CONTACT */
.mh-contact-card {
    border-radius: 1.6rem;
    border: 1px solid var(--mh-border);
    background: #ffffff;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--mh-shadow-soft);
}

.form-control,
.form-select {
    background-color: #f9fafb;
    border-radius: 0.9rem;
    border: 1px solid #d1d5db;
    color: var(--mh-text);
    font-size: 0.88rem;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: var(--mh-primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
    color: var(--mh-text);
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.83rem;
}

label {
    font-size: 0.8rem;
    color: var(--mh-muted);
}

.mh-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mh-contact-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-contact-icon i {
    color: var(--mh-primary);
}

/* OFFICES */
.mh-offices-block {
    margin-top: 0.5rem;
}

.mh-office-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mh-office-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--mh-border);
    padding: 0.75rem 0.9rem;
    flex: 1 1 220px;
    min-width: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    font-size: 0.8rem;
}

.mh-office-main {
    border-color: var(--mh-primary);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.mh-office-city {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mh-text);
}

.mh-office-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mh-muted);
}

.mh-office-building {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mh-muted);
}

.mh-office-address {
    font-size: 0.8rem;
    color: var(--mh-muted);
    margin-top: 0.25rem;
}

/* FOOTER */
.mh-footer {
    border-top: 1px solid var(--mh-border);
    padding: 1.5rem 0 1.2rem;
    background: #ffffff;
}

/* SUBPAGE */
.subpage-body {
    background: #f3f4ff;
}

.subpage-main {
    padding-top: 5.5rem;
}

/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroGradientShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-10px, -8px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(8px, 10px, 0) scale(1.02);
    }
}

@keyframes heroGridRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    .hero {
        padding-top: 6rem;
    }

    .hero-placeholder {
        min-height: 210px;
    }
}

/* HOME CONTACT SECTION (другой стиль, чем на /contact/) */

.section-home-contact {
    padding-bottom: 4.5rem;
}

.mh-home-contact-wrapper {
    border-radius: 2rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.16), transparent 55%),
        linear-gradient(135deg, #0f172a, #020617);
    padding: 1.4rem;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.5);
    position: relative;
    overflow: hidden;
}

.mh-home-contact-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(148, 163, 184, 0.18), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(37, 99, 235, 0.24), transparent 60%);
    opacity: 0.7;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.mh-home-contact-wrapper > .row {
    position: relative;
    z-index: 1;
}

/* LEFT SIDE: OFFICES (легкий «glass») */

.mh-home-offices {
    height: 100%;
    border-radius: 1.5rem;
    padding: 1.3rem 1.3rem 1.4rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(10px);
    color: #e5e7eb;
}

.mh-home-offices .section-label {
    color: #9ca3af;
}

.mh-home-offices h2 {
    color: #f9fafb;
}

.mh-home-offices p.small {
    color: #cbd5f5;
}

.mh-home-office-pills {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    margin-top: 0.4rem;
}

.mh-home-office-pill {
    border-radius: 1.1rem;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.mh-home-office-pill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
}

.mh-home-office-pill-head .pill-city {
    font-size: 0.86rem;
    font-weight: 600;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mh-home-office-pill-head i {
    color: #38bdf8;
    font-size: 0.9rem;
}

.mh-home-office-pill-head .pill-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.mh-home-office-pill .pill-body {
    color: #cbd5f5;
}

.mh-home-contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
    color: #9ca3af;
}

.mh-home-contact-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* RIGHT SIDE: QUICK FORM */

.mh-home-contact-card {
    height: 100%;
    border-radius: 1.5rem;
    padding: 1.4rem 1.4rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.mh-home-contact-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
    opacity: 0.7;
    z-index: -1;
}

.mh-home-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.mh-home-contact-header h2 {
    font-size: 1.1rem;
}

.mh-home-contact-tag {
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: rgba(37, 99, 235, 0.07);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.mh-home-contact-tag i {
    font-size: 0.9rem;
}

/* Компактные поля формы */

.mh-home-contact-card .form-label {
    font-size: 0.78rem;
    color: #6b7280;
}

.mh-home-contact-card .form-control-sm,
.mh-home-contact-card .form-select-sm {
    font-size: 0.84rem;
    border-radius: 0.8rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.mh-home-contact-card textarea.form-control-sm {
    min-height: 100px;
}

/* RESPONSIVE TWEAKS */

@media (max-width: 991.98px) {
    .mh-home-contact-wrapper {
        padding: 1rem;
        border-radius: 1.5rem;
    }
    .mh-home-offices,
    .mh-home-contact-card {
        border-radius: 1.2rem;
    }
}

/* UNIVERSAL IMAGE PLACEHOLDERS */

.mh-img-placeholder {
    border-radius: 1.3rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
    animation: mhPulse 4s ease-in-out infinite;
}

.mh-img-section {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.mh-img-square {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mh-img-wide {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* soft pulsing animation */
@keyframes mhPulse {
    0% { opacity: 0.88; }
    50% { opacity: 1; }
    100% { opacity: 0.88; }
}

/* === TIMELINE STEPS (SELL / BUY) === */

.mh-steps-timeline {
    position: relative;
    padding-top: 0.8rem;
    padding-bottom: 0.2rem;
}

/* анимированная линия под карточками */
.mh-steps-timeline::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 2.7rem; /* примерно под иконками */
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(59,130,246,0.0),
        rgba(59,130,246,0.85),
        rgba(56,189,248,0.95),
        rgba(147,197,253,0.0)
    );
    background-size: 220% 100%;
    opacity: 0.75;
    animation: mhTimelineFlow 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* немного разные оттенки для sell/buy (если захочешь, можно усилить) */
.mh-steps-timeline-buy::before {
    background: linear-gradient(90deg,
        rgba(8,47,73,0.0),
        rgba(56,189,248,0.95),
        rgba(129,140,248,0.95),
        rgba(15,23,42,0.0)
    );
}

/* таймлайн не нужен на маленьких экранах */
@media (max-width: 767.98px) {
    .mh-steps-timeline::before {
        display: none;
    }
}

/* карточка шага поверх линии */
.mh-step-card {
    position: relative;
    z-index: 1;
}

/* шапка шага: иконка + степ-бейдж */
.mh-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

/* НЕОНОВАЯ ИКОНКА */
.mh-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    background: radial-gradient(circle at 30% 0%, #38bdf8, #1d4ed8);
    box-shadow:
        0 0 0 1px rgba(191, 219, 254, 0.45),
        0 0 14px rgba(59, 130, 246, 0.85),
        0 16px 28px rgba(15, 23, 42, 0.7);
}

/* оттенок для SELL */
.mh-step-icon-sell {
    background: radial-gradient(circle at 30% 0%, #f97316, #1d4ed8);
    box-shadow:
        0 0 0 1px rgba(254, 215, 170, 0.5),
        0 0 18px rgba(249, 115, 22, 0.9),
        0 16px 30px rgba(15, 23, 42, 0.85);
}

/* оттенок для BUY */
.mh-step-icon-buy {
    background: radial-gradient(circle at 30% 0%, #22d3ee, #6366f1);
    box-shadow:
        0 0 0 1px rgba(191, 219, 254, 0.6),
        0 0 18px rgba(56, 189, 248, 0.95),
        0 16px 30px rgba(15, 23, 42, 0.85);
}

.mh-step-icon i {
    filter: drop-shadow(0 0 4px rgba(15,23,42,0.45));
}

/* анимация "текущей" линии */
@keyframes mhTimelineFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* === HOVER ANIMATION FOR TIMELINE STEPS === */

.mh-step-card {
    transition: all 0.35s ease;
    cursor: pointer;
    transform: translateY(0);
}

/* эффект при наведении */
.mh-step-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.20),
        0 0 0 2px rgba(96,165,250,0.35),
        0 0 22px rgba(59,130,246,0.45);
    background: rgba(255,255,255,0.92);
}

/* усиливаем неоновый эффект иконки */
.mh-step-card:hover .mh-step-icon {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.85),
        0 0 25px rgba(59,130,246,0.95),
        0 0 55px rgba(59,130,246,0.75),
        0 20px 30px rgba(15, 23, 42, 0.65);
    transform: scale(1.08);
    transition: all 0.3s ease;
}

/* SELL – оранжевый градиент усиливается */
.mh-step-card:hover .mh-step-icon-sell {
    box-shadow:
        0 0 0 1px rgba(255,241,226,0.9),
        0 0 28px rgba(249,115,22,1),
        0 0 60px rgba(249,115,22,0.85),
        0 20px 35px rgba(15, 23, 42, 0.75);
    transform: scale(1.1);
}

/* BUY – голубой/фиолетовый неон усиливается */
.mh-step-card:hover .mh-step-icon-buy {
    box-shadow:
        0 0 0 1px rgba(224,242,254,1),
        0 0 28px rgba(56,189,248,1),
        0 0 60px rgba(129,140,248,0.9),
        0 20px 35px rgba(15, 23, 42, 0.75);
    transform: scale(1.1);
}

/* Текст становится чуть контрастнее */
.mh-step-card:hover h3,
.mh-step-card:hover p {
    color: #0f172a !important;
}


/* === TIMELINE HOVER LINE GLOW === */

.mh-steps-timeline .mh-step-card:hover::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 70%;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(59,130,246,0.9),
        rgba(56,189,248,1),
        rgba(255,255,255,0)
    );
    box-shadow:
        0 0 12px rgba(56,189,248,0.8),
        0 0 22px rgba(56,189,248,0.55);
    animation: mhHoverPulse 1.6s ease-in-out infinite;
}

/* SELL — оранжевый */
.mh-steps-timeline-sell .mh-step-card:hover::before {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(249,115,22,1),
        rgba(255,164,94,0.9),
        rgba(255,255,255,0)
    );
    box-shadow:
        0 0 12px rgba(249,115,22,0.85),
        0 0 22px rgba(251,146,60,0.55);
}

/* BUY — голубой/фиолетовый */
.mh-steps-timeline-buy .mh-step-card:hover::before {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(56,189,248,1),
        rgba(129,140,248,0.95),
        rgba(255,255,255,0)
    );
    box-shadow:
        0 0 18px rgba(56,189,248,0.9),
        0 0 28px rgba(129,140,248,0.55);
}

/* Анимация свечения */
@keyframes mhHoverPulse {
    0% { opacity: 0.5; transform: translateX(-50%) scaleX(0.85); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    100% { opacity: 0.5; transform: translateX(-50%) scaleX(0.85); }
}



/* === BRANDS SECTION (UPDATED FINAL) === */

.brands-section {
    padding: 3rem 0;
    text-align: center;
}

.brands-section .section-title {
    color: var(--mh-primary);
}

.brands-grid {
    margin: 2rem auto 0 auto;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: center;
    justify-items: center;
}

@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.brand-item {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(209, 213, 219, 0.75);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    width: 100%;
}

.brand-item img {
    max-height: 63px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: all 0.3s ease;
}

.brand-item:hover {
    border-color: var(--mh-primary);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
    transform: translateY(-4px);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
