
/* =========================================================
   MARS — стартовая страница
   Все стили ограничены контейнером .mars-home
   ========================================================= */

.mars-home {
    --mars-navy: #17365d;
    --mars-navy-dark: #102947;
    --mars-blue: #4268a5;
    --mars-text: #243449;
    --mars-muted: #728197;
    --mars-border: #e1e7ef;
    --mars-background: #f5f7fb;

    min-height: 100vh;
    background: var(--mars-background);
    color: var(--mars-text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mars-home *,
.mars-home *::before,
.mars-home *::after {
    box-sizing: border-box;
}

.mars-home a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------
   Шапка
   ------------------------- */

.mars-home-header {
    min-height: 94px;
    padding: 16px max(5.5%, calc((100% - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    position: relative;
    border-bottom: none;
}

.mars-home-header::after {
    content: "";
    position: absolute;
    left: calc((min(1120px, 89%) - 100vw) / 2);
    right: calc((min(1120px, 89%) - 100vw) / 2);
    bottom: 0;
    height: 1px;
    background: #e8edf4;
}

.mars-home-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mars-home-logo img {
    display: block;
    width: 375px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mars-home-header-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #8491a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: right;
}

.mars-home-header-domain {
    color: #4268a5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* -------------------------
   Основная область
   ------------------------- */

.mars-home-main {
    width: min(1120px, 89%);
    margin: 0 auto;
}

.mars-home-intro {
    padding: 66px 0 54px;
}

.mars-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mars-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.1px;
}

.mars-home-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4e83c5;
    box-shadow: 0 0 0 4px #e1ebf8;
}

.mars-home-intro h1 {
    margin: 20px 0 18px;
    color: var(--mars-navy-dark);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.12;
}

.mars-home-intro h1 span {
    color: var(--mars-blue);
}

.mars-home-description {
    max-width: 610px;
    margin: 0;
    color: #68778c;
    font-size: 15px;
    line-height: 1.9;
}

/* -------------------------
   Заголовок раздела
   ------------------------- */

.mars-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.mars-section-heading h2 {
    margin: 0;
    color: var(--mars-navy-dark);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.mars-section-heading p {
    margin: 5px 0 0;
    color: var(--mars-muted);
    font-size: 13px;
}

.mars-module-count {
    padding-bottom: 4px;
    color: #9aa6b6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

/* -------------------------
   Сетка карточек
   ------------------------- */

.mars-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mars-module {
    min-width: 0;
    min-height: 252px;
    padding: 25px 26px 21px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mars-border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgb(30 53 82 / 3%);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.mars-module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.mars-module-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #edf3fb;
    color: var(--mars-blue);
}

.mars-module-icon svg {
    width: 25px;
    height: 25px;
}

.mars-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.mars-status-active {
    background: #e8f5ed;
    color: #267449;
}

.mars-status-active span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #32a467;
}

.mars-status-future {
    background: #eef1f5;
    color: #78869a;
}

.mars-status-planned {
    background: #edf3fb;
    color: #5375a6;
}

.mars-module-content {
    flex: 1;
}

.mars-module-content h3 {
    margin: 0 0 9px;
    color: var(--mars-navy-dark);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mars-module-content p {
    max-width: 440px;
    margin: 0;
    color: #718096;
    font-size: 12px;
    line-height: 1.9;
}

.mars-module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
    color: #61738b;
    font-size: 11px;
    font-weight: 700;
}

.mars-module-arrow {
    color: var(--mars-blue);
    font-size: 21px;
    line-height: 1;
}

.mars-module-lock {
    color: #9aa6b6;
    font-size: 20px;
    line-height: 1;
}

/* -------------------------
   Доступная карточка
   ------------------------- */

.mars-module-analysis {
    position: relative;
    overflow: hidden;
    border-color: var(--mars-navy);
    background: var(--mars-navy);
    box-shadow: 0 9px 24px rgb(23 54 93 / 12%);
}

.mars-module-analysis::after {
    position: absolute;
    right: -55px;
    bottom: -95px;
    width: 230px;
    height: 230px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.mars-module-analysis .mars-module-icon {
    background: rgb(255 255 255 / 12%);
    color: #ffffff;
}

.mars-module-analysis .mars-module-content h3 {
    color: #ffffff;
}

.mars-module-analysis .mars-module-content p {
    color: #c4d2e5;
}

.mars-module-analysis .mars-module-footer {
    position: relative;
    z-index: 1;
    border-top-color: rgb(255 255 255 / 15%);
    color: #ffffff;
}

.mars-module-analysis .mars-module-arrow {
    color: #bcd6ff;
}

.mars-module-analysis:hover {
    transform: translateY(-4px);
    border-color: #315b91;
    box-shadow: 0 15px 30px rgb(23 54 93 / 20%);
}

.mars-module-type {
    display: block;
    margin-bottom: 8px;
    color: #718096;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* -------------------------
   Будущие модули
   ------------------------- */

.mars-module-future {
    background: #fafbfd;
    border-color: #e6eaf0;
}

.mars-module-future .mars-module-icon {
    background: #eef1f5;
    color: #8391a4;
}

.mars-module-future .mars-module-content h3 {
    color: #536176;
}

.mars-module-future .mars-module-content p {
    color: #8995a6;
}

.mars-module-future .mars-module-footer {
    border-top-color: #e9edf2;
    color: #8a96a7;
}

/* -------------------------
   Обратная связь
   ------------------------- */

.mars-module-feedback {
    background: #ffffff;
}

.mars-module-feedback:hover {
    transform: translateY(-3px);
    border-color: #cbd8e9;
    box-shadow: 0 10px 22px rgb(30 53 82 / 7%);
}

/* -------------------------
   Поддержка проекта
   ------------------------- */

.mars-support {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
    padding: 22px 25px;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #ffffff;
}

.mars-support-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #edf3fb;
    color: var(--mars-blue);
}

.mars-support-icon svg {
    width: 23px;
    height: 23px;
}

.mars-support-text {
    flex: 1;
}

.mars-support-text h3 {
    margin: 0 0 4px;
    color: var(--mars-navy-dark);
    font-size: 14px;
    font-weight: 800;
}

.mars-support-text p {
    margin: 0;
    color: #7a8799;
    font-size: 11px;
    line-height: 1.8;
}

.mars-support-label {
    padding: 6px 10px;
    border-radius: 20px;
    background: #f0f3f7;
    color: #8390a1;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

/* -------------------------
   Подвал
   ------------------------- */

.mars-home-footer {
    width: min(1120px, 89%);
    margin: 55px auto 0;
    padding: 22px 0 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #e0e6ee;
    color: #94a0af;
    font-size: 10px;
}

/* -------------------------
   Адаптивность
   ------------------------- */

@media (max-width: 700px) {
    .mars-home-header {
        min-height: 76px;
        padding: 12px 5.5%;
    }

.mars-home-logo img {
    width: 240px;
    max-width: 100%;
    max-height: 70px;
}

    .mars-home-header-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .mars-home-intro {
        padding: 48px 0 38px;
    }

    .mars-home-intro h1 {
        font-size: clamp(34px, 8vw, 46px);
        letter-spacing: -1.5px;
    }

    .mars-home-description {
        font-size: 13px;
    }

    .mars-section-heading h2 {
        font-size: 20px;
    }

    .mars-module-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mars-module {
        min-height: 225px;
        padding: 21px;
    }

    .mars-support {
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
    }

    .mars-support-label {
        display: none;
    }

    .mars-home-footer {
        margin-top: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mars-module {
        transition: none;
    }
}
