* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fc;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #1a2639;
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-code {
    font-size: clamp(8rem, 20vw, 14rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1a2639;
    background: linear-gradient(145deg, #1e2a44, #2c3e6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 24px rgba(26, 38, 57, 0.10);
    margin-bottom: 0.25rem;
}

.error-message {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 350;
    color: #2c3e50;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    padding: 0.6rem 1.8rem;
    display: inline-block;
    border-radius: 60px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.error-code {
    transition: transform 0.15s ease;
}
.error-code:hover {
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .error-message {
        padding: 0.4rem 1.2rem;
        border-radius: 40px;
    }
}

.content-container {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 2.5rem 3rem;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.content-container h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1a2639;
    margin-bottom: 0.5rem;
    background: linear-gradient(145deg, #1e2a44, #2c3e6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-container h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 550;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #1e2a44;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
    border-bottom: 2px solid rgba(44, 62, 107, 0.10);
    padding-bottom: 0.2rem;
}

.content-container h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 500;
    color: #2c3e6b;
    margin-top: 1.4rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.content-container p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 380;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ——— Акцент для ссылок (опционально, но приятно) ——— */
.content-container a {
    color: #2c3e6b;
    text-decoration: none;
    font-weight: 450;
    border-bottom: 1px solid rgba(44, 62, 107, 0.15);
    transition: border-color 0.2s, color 0.2s;
}
.content-container a:hover {
    border-bottom-color: #2c3e6b;
    color: #1a2639;
}

/* ——— Адаптив ——— */
@media (max-width: 600px) {
    .content-container {
        padding: 1.8rem 1.5rem;
        border-radius: 24px;
    }
    .content-container h1 {
        margin-bottom: 0.3rem;
    }
    .content-container h2 {
        margin-top: 1.4rem;
    }
    .content-container h3 {
        margin-top: 1.2rem;
    }
}

/* ——— Доп. мелкие штрихи (код, списки — но вы просили только h1-h3 и p) ——— */
.content-container strong {
    font-weight: 550;
    color: #1a2639;
}
.content-container em {
    font-style: italic;
    color: #2c3e6b;
}

.inline-code {
    background: #ddd;
    padding: 2px 3px;
    border-radius: 3px;
}