@charset "utf-8";
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 18px;
}

.article-content p > img:only-child {
    margin: 22px auto;
}

.article-cover {
    margin: 0 0 24px;
    text-align: center;
}

.article-cover img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 22px;
}

.article-content__figure {
    margin: 22px 0;
}

.article-content__figure img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.article-content__figure--right {
    float: right;
    width: min(360px, 42%);
    margin: 0 0 18px 24px;
}

.article-content__figure--center {
    max-width: 760px;
    margin: 24px auto 0;
}

.article-quote {
    margin: 22px 0;
    padding: 18px 20px;
    background: #fffaf4;
    border-left: 4px solid #2f9c45;
    border-radius: 14px;
}

.article-quote p:last-child {
    margin-bottom: 0;
}

.error404 {
    max-width: var(--page-width);
    margin: 40px auto;
    padding: 0 16px;
}

.error404__card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: center;
    background: #fff;
    border: 1px solid #eee2d2;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.error404__image img {
    width: 100%;
    height: auto;
}

.error404__title {
    font-size: 36px;
    margin-bottom: 16px;
    color: #990000;
}

.error404__text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #444;
}

.error404__actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 30px;
    background: #990000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.btn-main:hover {
    background: #7c0000;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 30px;
    background: #f6f1e8;
    color: #2f9c45;
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #eee5d6;
}
