:root {
    color-scheme: dark;
    --bg: #06123b;
    --bg-deep: #040d2b;
    --text: #ffffff;
    --muted: #aebbe0;
    --gold: #f0c95c;
    --line: rgba(255, 255, 255, 0.16);
    --green: #62d89a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100dvh;
    overflow: hidden;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 48%, rgba(31, 72, 152, 0.42) 0%, rgba(18, 45, 108, 0.24) 30%, rgba(6, 18, 59, 0) 62%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.api-home {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 34px 24px;
}

.api-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 12px;
}

.api-hero__logo {
    display: block;
    width: 84px;
    height: auto;
    margin: 0 0 18px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.24));
}

.api-hero__ministry {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.api-hero__title {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: 0.035em;
}

.api-hero__tagline {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.api-footer {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.api-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.api-footer__links a {
    color: var(--text);
    text-decoration: none;
}

.api-footer__links a:hover,
.api-footer__links a:focus-visible {
    color: var(--gold);
}

.api-footer__separator {
    color: rgba(240, 201, 92, 0.72);
}

.api-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
}

.api-footer__status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(98, 216, 154, 0.42);
}

.api-footer__copyright {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .api-home {
        padding: 24px 18px 18px;
    }

    .api-hero__logo {
        width: 72px;
        margin-bottom: 16px;
    }

    .api-hero__ministry {
        font-size: 10px;
        letter-spacing: 0.16em;
    }

    .api-hero__title {
        font-size: 29px;
    }

    .api-hero__tagline {
        font-size: 12px;
    }

    .api-footer__links {
        font-size: 12px;
        gap: 5px 9px;
    }

    .api-footer__copyright {
        font-size: 11px;
    }
}
