
/**
 * Внутренняя страница статьи
 *
 * @package Magic_Jewelry
 */


/* =========================================================
   PAGE
   ========================================================= */

.magic-article-page {
    width: 100%;
    background: #ffffff;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.magic-article {
    width: 100%;

    padding-top: 130px;
    padding-bottom: 105px;

    box-sizing: border-box;
}


.magic-article-container {
    width: min(920px, calc(100% - 48px));
    max-width: 920px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.magic-article-header {
    position: relative;

    margin-bottom: 46px;
    padding-bottom: 30px;
}


.magic-article-header::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #c9a23a 0,
            #c9a23a 72px,
            rgba(92, 26, 79, 0.10) 72px,
            rgba(92, 26, 79, 0.10) 100%
        );
}


/* =========================================================
   CATEGORY
   ========================================================= */

.magic-article-category {
    margin-bottom: 17px;

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #5c1a4f;
}


/* =========================================================
   TITLE
   ========================================================= */

.magic-article-title {
    max-width: 880px;

    margin: 0;

    font-family: inherit;

    font-size: 46px;
    line-height: 1.08;
    font-weight: 600;

    letter-spacing: -0.045em;

    color: #171717;

    text-shadow:
        0 2px 16px rgba(92, 26, 79, 0.055);
}


/* =========================================================
   TAGS
   ========================================================= */

.magic-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 24px;
}


.magic-article-tag {
    display: inline-flex;
    align-items: center;

    min-height: 27px;

    padding: 5px 11px;

    border: 1px solid rgba(201, 162, 58, 0.28);
    border-radius: 999px;

    background: rgba(201, 162, 58, 0.055);

    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;

    color: #6a5964;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.magic-article-featured {
    width: 100%;

    margin: 0 0 48px;
}


.magic-article-featured img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(45, 20, 38, 0.11);
}


/* =========================================================
   CONTENT
   ========================================================= */

.magic-article-content {
    font-family: inherit;

    font-size: 17px;
    line-height: 1.82;
    font-weight: 400;

    color: #3c3a3b;
}


.magic-article-content > *:first-child {
    margin-top: 0;
}


.magic-article-content > *:last-child {
    margin-bottom: 0;
}


.magic-article-content p {
    margin: 0 0 1.45em;
}


.magic-article-content strong,
.magic-article-content b {
    font-weight: 600;
    color: #242124;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.magic-article-content h2,
.magic-article-content h3,
.magic-article-content h4 {
    font-family: inherit;

    color: #171717;

    letter-spacing: -0.03em;
}


.magic-article-content h2 {
    position: relative;

    margin: 2.4em 0 0.85em;
    padding-bottom: 15px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}


.magic-article-content h2::after {
    content: "";

    display: block;

    width: 38px;
    height: 2px;

    margin-top: 13px;

    background: #c9a23a;
}


.magic-article-content h3 {
    margin: 2em 0 0.7em;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}


.magic-article-content h3::before {
    content: "";

    display: inline-block;

    width: 20px;
    height: 1px;

    margin:
        0 12px
        5px 0;

    background: #c9a23a;

    vertical-align: middle;
}


.magic-article-content h4 {
    margin: 1.8em 0 0.7em;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    color: #5c1a4f;
}


/* =========================================================
   UNORDERED LIST
   ========================================================= */

.magic-article-content ul {
    margin: 1.6em 0 1.7em;
    padding: 0;

    list-style: none;
}


.magic-article-content ul li {
    position: relative;

    margin: 0;
    padding: 10px 0 10px 31px;

    border-bottom: 1px solid rgba(92, 26, 79, 0.08);

    color: #3d3b3d;
}


.magic-article-content ul li:first-child {
    border-top: 1px solid rgba(92, 26, 79, 0.08);
}


.magic-article-content ul li::before {
    content: "";

    position: absolute;

    left: 4px;
    top: 20px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #c9a23a;

    box-shadow:
        0 0 0 4px rgba(201, 162, 58, 0.09);
}


/* =========================================================
   ORDERED LIST
   ========================================================= */

.magic-article-content ol {
    margin: 1.6em 0 1.7em;
    padding: 0;

    list-style: none;

    counter-reset: premium-counter;
}


.magic-article-content ol li {
    position: relative;

    counter-increment: premium-counter;

    min-height: 48px;

    margin: 0;

    padding:
        13px 0
        13px 60px;

    border-bottom: 1px solid rgba(92, 26, 79, 0.08);

    color: #3d3b3d;
}


.magic-article-content ol li:first-child {
    border-top: 1px solid rgba(92, 26, 79, 0.08);
}


.magic-article-content ol li::before {
    content: counter(premium-counter, decimal-leading-zero);

    position: absolute;

    left: 0;
    top: 11px;

    width: 38px;

    font-size: 12px;
    line-height: 1.8;
    font-weight: 600;

    letter-spacing: 0.08em;

    color: #c9a23a;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.magic-article-content blockquote {
    position: relative;

    margin: 2.5em 0;

    padding: 30px 38px 31px 48px;

    border: 1px solid rgba(201, 162, 58, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(92, 26, 79, 0.075),
            rgba(201, 162, 58, 0.045)
        );

    color: #4a4148;

    box-shadow:
        0 18px 42px rgba(60, 30, 50, 0.065);
}


.magic-article-content blockquote::before {
    content: "“";

    position: absolute;

    left: 18px;
    top: 12px;

    font-family: Georgia, serif;
    font-size: 48px;
    line-height: 1;

    color: rgba(201, 162, 58, 0.48);
}


.magic-article-content blockquote p {
    margin-bottom: 0;
}


/* =========================================================
   LINKS
   ========================================================= */

.magic-article-content a {
    color: #5c1a4f;

    text-decoration-line: underline;
    text-decoration-color: rgba(201, 162, 58, 0.65);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}


.magic-article-content a:hover {
    color: #c9a23a;
    text-decoration-color: #c9a23a;
}


/* =========================================================
   IMAGES
   ========================================================= */

.magic-article-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 38px auto;

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(45, 20, 38, 0.10);
}


.magic-article-content figure {
    margin: 38px 0;
}


.magic-article-content figcaption {
    margin-top: 10px;

    font-size: 12px;
    line-height: 1.5;

    text-align: center;

    color: #858085;
}


/* =========================================================
   TABLE
   ========================================================= */

.magic-article-content table {
    width: 100%;

    margin: 2.5em 0;

    border-collapse: collapse;

    border-top: 1px solid rgba(92, 26, 79, 0.12);
}


.magic-article-content th,
.magic-article-content td {
    padding: 14px 12px;

    border-bottom: 1px solid rgba(92, 26, 79, 0.09);

    text-align: left;
}


.magic-article-content th {
    font-size: 13px;
    font-weight: 600;

    color: #5c1a4f;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .magic-article {
        padding-top: 70px;
        padding-bottom: 82px;
    }

    .magic-article-container {
        width: calc(100% - 36px);
        max-width: 760px;
    }

    .magic-article-title {
        font-size: 38px;
    }

    .magic-article-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .magic-article-content h2 {
        font-size: 27px;
    }

    .magic-article-content h3 {
        font-size: 21px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .magic-article {
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .magic-article-container {
        width: calc(100% - 24px);
        max-width: none;
    }

    .magic-article-header {
        margin-bottom: 34px;
        padding-bottom: 22px;
    }

    .magic-article-header::after {
        background:
            linear-gradient(
                90deg,
                #c9a23a 0,
                #c9a23a 55px,
                rgba(92, 26, 79, 0.10) 55px,
                rgba(92, 26, 79, 0.10) 100%
            );
    }

    .magic-article-category {
        margin-bottom: 13px;

        font-size: 11px;
    }

    .magic-article-title {
        font-size: 30px;
        line-height: 1.16;
        letter-spacing: -0.035em;
    }

    .magic-article-tags {
        margin-top: 18px;
        gap: 5px;
    }

    .magic-article-tag {
        min-height: 25px;
        padding: 4px 9px;

        font-size: 11px;
    }

    .magic-article-featured {
        margin-bottom: 34px;
    }

    .magic-article-featured img {
        border-radius: 12px;
    }

    .magic-article-content {
        font-size: 14px;
        line-height: 1.72;
    }

    .magic-article-content h2 {
        margin-top: 2em;
        font-size: 23px;
    }

    .magic-article-content h3 {
        font-size: 19px;
    }

    .magic-article-content h3::before {
        width: 15px;
        margin-right: 9px;
    }

    .magic-article-content ul li {
        padding:
            9px 0
            9px 27px;
    }

    .magic-article-content ul li::before {
        left: 3px;
        top: 18px;

        width: 5px;
        height: 5px;
    }

    .magic-article-content ol li {
        min-height: 43px;

        padding:
            11px 0
            11px 49px;
    }

    .magic-article-content ol li::before {
        top: 10px;
        width: 32px;

        font-size: 11px;
    }

    .magic-article-content blockquote {
        margin: 2em 0;

        padding:
            24px 20px
            25px 36px;

        border-radius: 12px;
    }

    .magic-article-content blockquote::before {
        left: 13px;
        top: 10px;

        font-size: 40px;
    }

    .magic-article-content img {
        margin: 28px auto;
        border-radius: 12px;
    }

    .magic-article-content th,
    .magic-article-content td {
        padding: 10px 8px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .magic-article-content *,
    .magic-article-content *::before,
    .magic-article-content *::after {
        transition: none !important;
    }
}
