:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #16202a;
    --muted: #5d6978;
    --line: #d9e1ea;
    --primary: #195a94;
    --primary-dark: #0d406f;
    --primary-soft: #d8eafe;
    --radius: 8px;
    --shadow: 0 18px 40px rgba(20, 46, 76, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

.page {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 48px 20px;
}

.home-header {
    margin-bottom: 34px;
}

.brand-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    flex: 0 0 auto;
}

.brand-banner {
    display: block;
    width: min(600px, 54vw);
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 1 auto;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.intro {
    max-width: 700px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    transition: 160ms ease;
}

.card small {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card h2 {
    margin: 12px 0 8px;
    font-size: 1.55rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding: 0 16px;
    color: #ffffff;
    background: var(--primary);
    border-radius: var(--radius);
    font-weight: 700;
}

footer {
    margin-top: 34px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page {
        padding: 28px 16px 34px;
    }

    .home-header {
        text-align: center;
    }

    .brand-strip {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
    }

    .brand-logo {
        width: 112px;
        height: 112px;
    }

    .brand-banner {
        width: min(280px, 100%);
        max-width: 350px;
    }

    h1 {
        max-width: 100%;
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .intro {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.65;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        min-height: auto;
        padding: 20px 18px;
        text-align: left;
    }

    .card h2 {
        font-size: 1.45rem;
    }

    .button {
        width: 100%;
        margin-top: 24px;
        text-align: center;
    }

    footer {
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 450px) {
    .page {
        padding-left: 14px;
        padding-right: 14px;
    }

    h1 {
        font-size: 1.55rem;
    }

    .brand-logo {
        width: 104px;
        height: 104px;
    }

    .brand-banner {
        max-width: 450px;
    }
}

