* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f8fa;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: #2457a6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e6eb;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.brand {
    color: #17212b;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo:hover,
.brand:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: #4b5563;
    font-size: 0.94rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1d4f91;
    text-decoration: none;
}

/* Main content */

main.container,
main > .container {
    padding-top: 28px;
    padding-bottom: 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #7a8490;
    font-size: 0.88rem;
}

.breadcrumbs a {
    color: #5d6b7a;
}

.page-hero,
.model-header {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    color: #17212b;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h2 {
    margin-bottom: 14px;
    color: #1d2935;
    font-size: 1.35rem;
    line-height: 1.3;
}

.model-subtitle {
    margin-bottom: 14px;
    color: #697586;
    font-size: 1rem;
}

/* Lifecycle */

.lifecycle {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #d5dbe2;
    border-radius: 999px;
    background: #ffffff;
    color: #596575;
    font-size: 0.78rem;
    font-weight: 600;
}

.lifecycle-current {
    border-color: #c9d9ee;
    color: #2457a6;
}

.lifecycle-discontinued {
    border-color: #d9dde2;
    color: #68717d;
}

/* Advertisement */

.ad-box {
    min-height: 100px;
    margin: 28px 0 42px;
    padding: 24px 16px;
    border: 1px dashed #cfd5dc;
    background: #ffffff;
    color: #9aa3ad;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
}

/* Sections */

.content-section {
    margin-bottom: 42px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading p {
    max-width: 760px;
    margin-bottom: 0;
    color: #697586;
}

/* Cards */

.overview-card,
.evidence-card,
.notice-card {
    padding: 22px 24px;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
    background: #ffffff;
}

.overview-card {
    color: #3d4854;
}

.notice-card {
    background: #fbfcfd;
    color: #596575;
}

.notice-card strong {
    display: block;
    margin-bottom: 6px;
    color: #303b47;
}

.notice-card p:last-child {
    margin-bottom: 0;
}

/* Specifications */

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

.spec-card {
    padding: 16px 18px;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
    background: #ffffff;
}

.spec-card strong {
    display: block;
    margin-bottom: 4px;
    color: #536171;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.spec-card span {
    color: #202b36;
}

/* Replacement */

.replacement-card {
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid #dfe4e9;
    border-radius: 8px;
    background: #ffffff;
}

.replacement-card:last-child {
    margin-bottom: 0;
}

.replacement-label {
    display: block;
    margin-bottom: 6px;
    color: #667384;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.replacement-card p:last-child {
    margin-bottom: 0;
}

/* Model grids */

.model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.model-card {
    display: block;
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe4e9;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
                transform 0.15s ease;
}

.model-card:hover {
    border-color: #bdc9d6;
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.06);
    text-decoration: none;
    transform: translateY(-1px);
}

.model-card strong {
    display: block;
    margin-bottom: 6px;
    color: #1e4f91;
    font-size: 1.05rem;
}

.model-card p {
    margin-bottom: 0;
    color: #697586;
    font-size: 0.88rem;
}

/* Footer */

.site-footer {
    padding: 34px 0;
    border-top: 1px solid #e0e5ea;
    background: #ffffff;
    color: #788391;
    font-size: 0.84rem;
}

.site-footer p {
    margin-bottom: 12px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #596575;
}

/* Responsive */

@media (max-width: 800px) {
    .header-inner {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
    }

    .model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1100px);
    }

    main.container,
    main > .container {
        padding-top: 20px;
        padding-bottom: 44px;
    }

    .breadcrumbs {
        margin-bottom: 22px;
        font-size: 0.82rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .ad-box {
        min-height: 90px;
        margin: 24px 0 34px;
    }

    .content-section {
        margin-bottom: 34px;
    }

    .spec-grid,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .overview-card,
    .evidence-card,
    .notice-card {
        padding: 18px;
    }

    .model-card {
        padding: 18px;
    }

    .footer-links {
        gap: 14px;
    }
}
