.article-detail {
    position: relative;
    min-height: 100vh;
}

.article-detail-bg-1,
.article-detail-bg-2 {
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    width: 290px;
    height: 570px;
    z-index: -1;
}

.article-detail-bg-1 {
    background-image: url(../../images/light-left-bg.png);
    top: 10%;
    left: -3%;
}

.article-detail-bg-2 {
    background-image: url(../../images/light-right-bg.png);
    top: 50%;
    right: 0;
}

.article-detail__header {
    background: #464646;
    border-radius: 25px;
    padding: 24px 54px 38px 54px;
    margin-bottom: 25px;
    cursor: default;
}

@media screen and (max-width: 900px) {
    .article-detail__header {
        margin-bottom: 20px;
        padding: 16px 27px 25px 27px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__header {
        border-radius: 20px;
        padding: 15px 15px 20px 15px;
    }
}

.article-detail__image, .article-image-container {
    width: 100%;
    position: relative;
    padding-bottom: 52.3%;
    border-radius: 25px;
    overflow: hidden;
}

.article-detail__image img, .article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.article-detail__image-desktop,
.article-image-desktop {
    display: block;
}

.article-detail__image-tablet,
.article-detail__image-mobile,
.article-image-tablet,
.article-image-mobile {
    display: none;
}

@media screen and (max-width: 900px) {
    .article-detail__image, .article-image-container {
        padding-bottom: 66.1%;
    }

    .article-detail__image-desktop,
    .article-image-desktop {
        display: none;
    }

    .article-detail__image-tablet,
    .article-image-tablet {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__image, .article-image-container {
        padding-bottom: 103.1%;
        border-radius: 18px;
    }

    .article-detail__image-tablet,
    .article-image-tablet {
        display: none;
    }

    .article-detail__image-mobile,
    .article-image-mobile {
        display: block;
    }
}

.article-image-caption {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 11px;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .article-image-caption {
        font-size: 14px;
        margin-top: 9px;
    }
}

@media screen and (max-width: 600px) {
    .article-image-caption {
        font-size: 12px;
        margin-top: 7px;
    }
}

.article-detail__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    background-image:
        linear-gradient(
        263.56deg,
        #FFE9C8 -4.53%,
        #FFD9AD 18.44%,
        #FFDDB5 51.46%,
        #FFDDB5 76.6%,
        #FFCC8F 111.92%
        ),
        radial-gradient(
        55.13% 55.13% at 50% 2.23%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 100%
        );
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    padding: 5px 20px 5px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 128%;
    font-family: 'Montserrat', sans-serif;
}

.article-detail__author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 5px 20px 5px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 128%;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-detail__author-badge:hover {
    background: #FFFFFF;
    color: #000000;
}

.article-detail__badges-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 30px 0 30px 0;
}

@media screen and (max-width: 900px) {
    .article-detail__category {
        border-radius: 8px;
        font-size: 12px;
        min-height: 32px;
        padding: 5px 26px 5px 26px;
    }

    .article-detail__author-badge {
        border-radius: 8px;
        font-size: 12px;
        min-height: 32px;
        padding: 5px 26px 5px 26px;
    }

    .article-detail__badges-container {
        gap: 15px;
        padding: 25px 0 12px 0;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__category {
        font-size: 10px;
        min-height: 30px;
        padding: 5px 22px 5px 22px;
    }

    .article-detail__author-badge {
        font-size: 10px;
        min-height: 30px;
        padding: 5px 22px 5px 22px;
    }

    .article-detail__badges-container {
        gap: 10px;
        padding: 16px 0 10px 0;
    }
}

.article-detail__header h1 {
    font-family: 'Buyan', sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 130%;
    text-transform: uppercase;
    color: #FFFFFF;
}

@media screen and (max-width: 900px) {
    .article-detail__header h1 {
        font-size: 40px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__header h1 {
        font-size: 25px;
    }
}

.article-detail__meta {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    font-size: 41px;
    font-weight: 700;
    font-family: 'Buyan', sans-serif;
    color: #FFFFFF;
    line-height: 149%;
}

@media screen and (max-width: 900px) {
    .article-detail__meta {
        font-size: 30px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__meta {
        font-size: 20px;
    }
}

.article-detail__date,
.article-detail__views {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media screen and (max-width: 900px) {
    .article-detail__date,
    .article-detail__views {
        font-size: 20px;
        gap: 7px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__date,
    .article-detail__views {
        font-size: 16px;
        gap: 5px;
    }
}

.article-detail__views svg {
    flex-shrink: 0;
    width: 39px;
    height: 27px;
}

@media screen and (max-width: 900px) {
    .article-detail__views svg {
        width: 32px;
        height: 22px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__views svg {
        width: 21px;
        height: 14px;
    }
}

.article-toc {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    line-height: 130%;
}

.article-toc h3 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 11px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.article-toc li {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    text-decoration: underline;
    display: inline-block;
    cursor: pointer;
}

.article-toc li:last-child {
    margin-bottom: 0;
}

.article-toc a {
    text-decoration: none;
    color: #FFFFFF;
}

@media screen and (max-width: 900px) {
    .article-toc h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .article-toc li {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 600px) {
    .article-toc h3 {
        font-size: 14px;
    }

    .article-toc li {
        margin-bottom: 12px;
    }
}

.article-detail__content {
    background: #464646;
    cursor: default;
    padding: 31px 27px 44px 51px;
    border-radius: 25px;
}

@media screen and (max-width: 900px) {
    .article-detail__content {
        padding: 25px 27px 33px 27px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content {
        padding: 22px 15px 28px 15px;
        border-radius: 20px;
    }
}

.article-detail__content section {
    margin-bottom: 31px;
}

@media screen and (max-width: 900px) {
    .article-detail__content section {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content section {
        margin-bottom: 22px;
    }
}

.article-detail__content section:last-child {
    margin-bottom: 0;
}

.article-detail__content h2 {
    font-family: 'Buyan', sans-serif;
    font-weight: 700;
    line-height: 130%;
    font-size: 55px;
    color: #FFFFFF;
    margin-bottom: 11px;
}

@media screen and (max-width: 900px) {
    .article-detail__content h2 {
        font-size: 40px;
        margin-bottom: 9px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content h2 {
        font-size: 25px;
        margin-bottom: 7px;
    }
}

.article-detail__content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 25px 0 12px;
}

.article-detail__content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 149%;
    color: #FFFFFF;
    margin-bottom: 29px;
}

@media screen and (max-width: 900px) {
    .article-detail__content p {
        font-size: 14px;
        margin-bottom: 23px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

.article-detail__content ul,
.article-detail__content ol {
    margin-bottom: 29px;
    padding-left: 30px;
}

.article-detail__content ul {
    list-style-type: disc;
}

.article-detail__content ol {
    list-style-type: decimal;
}

.article-detail__content li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    display: list-item;
}

.article-detail__content ul.list-with-emoji {
    list-style-type: none;
}

.article-detail__content ul.list-with-emoji li {
    position: relative;
    padding-left: 10px;
}

.article-detail__content ul.list-with-emoji li[data-emoji]::before {
    content: attr(data-emoji);
    position: absolute;
    left: -25px;
    font-size: 16px;
}

.article-detail__content ul,
.article-detail__content ol,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 149%;
    color: #FFFFFF;
    margin-bottom: 10px;
}

@media screen and (max-width: 900px) {
    .article-detail__content ul,
    .article-detail__content ol,
    h3 {
        font-size: 14px;
    }

    .article-detail__content ul,
    .article-detail__content ol {
        margin-bottom: 23px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content ul,
    .article-detail__content ol,
    h3 {
        font-size: 12px;
    }

    .article-detail__content ul,
    .article-detail__content ol {
        margin-bottom: 15px;
    }
}

.article-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 29px;
    border-radius: 24px;
}

.article-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.article-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.article-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.article-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.article-detail__content table {
    width: 100%;
    min-width: 750px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 125%;
    color: #FFFFFF;
}

.article-detail__content table th,
.article-detail__content table td {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    text-align: left;
}

.article-detail__content table th:last-child,
.article-detail__content table td:last-child {
    border-right: none;
}

.article-detail__content table tr:last-child th,
.article-detail__content table tr:last-child td {
    border-bottom: none;
}

.article-detail__content table th {
    font-weight: 700;
}

@media screen and (max-width: 900px) {
    .article-detail__content table {
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__content table {
        border-radius: 20px;
        font-size: 12px;
    }
}


.article-detail__content a {
    color: #fff;
    text-decoration: underline;
}

.article-detail__content a:hover {
    text-decoration: none;
}

.article-related {
    margin-top: 80px;
}

.article-related h2 {
    font-family: 'Buyan', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-detail__tags {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 149%;
    letter-spacing: 0%;
    color: #A2A2A2;
}

@media screen and (max-width: 900px) {
    .article-detail__tags {
        font-size: 14px;
    }
}

@media screen and (max-width: 600px) {
    .article-detail__tags {
        font-size: 12px;
    }
}

/* Карточка товара в статье */
.article-product-card {
    background: #646464;
    border-radius: 24px;
    padding: 27px;
    margin: 19px 0 31px 0;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 900px) {
    .article-product-card {
        border-radius: 25px;
        padding: 20px;
        margin: 23px 0 25px 0;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card {
        border-radius: 18px;
        padding: 14px 13px 16px 14px;
        margin: 13px 0 22px 0;
    }
}

.article-product-card__link {
    display: flex;
    gap: 28px;
    text-decoration: none !important;
    color: inherit;
}

@media screen and (max-width: 900px) {
    .article-product-card__link {
        gap: 17px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__link {
        flex-direction: column;
        gap: 12px;
    }
}

.article-product-card__link:hover {
    text-decoration: none !important;
}

.article-product-card__link * {
    text-decoration: none !important;
}

.article-product-card__image {
    width: 34.1%;
    padding-bottom: 34.1%;
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    background: lightgray;
    position: relative;
}

@media screen and (max-width: 900px) {
    .article-product-card__image {
        width: 50%;
        padding-bottom: 50%;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__image {
        width: 100%;
        padding-bottom: 100%;
    }
}

.article-product-card__image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-product-card__title {
    font-family: 'Buyan', sans-serif;
    font-size: 41px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 13px;
    line-height: 128%;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(41px * 1.28 * 2);
}

@media screen and (max-width: 900px) {
    .article-product-card__title {
        font-size: 30px;
        max-height: calc(30px * 1.28 * 2);
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__title {
        font-size: 23px;
        max-height: calc(23px * 1.28 * 2);
        margin-bottom: 11px;
    }
}

.article-product-card__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 16px;
}

@media screen and (max-width: 900px) {
    .article-product-card__variants {
        gap: 18px;
        margin-bottom: 17px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__variants {
        gap: 14px;
        margin-bottom: 13px;
    }
}

.article-product-card__variant {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #807A74;
    text-align: center;
    cursor: pointer;
    color: #807A74;
    font-family: Buyan;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 50px;
    max-height: 50px;
    min-width: 50px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 900px) {
    .article-product-card__variant {
        min-height: 45px;
        max-height: 45px;
        min-width: 45px;
        font-size: 20px;
        border-radius: 12px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__variant {
        min-height: 30px;
        max-height: 30px;
        min-width: 30px;
        font-size: 18px;
        border-radius: 8px;
    }
}

.article-product-card__variant.active {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

.article-product-card__prices {
    display: flex;
    flex-direction: column;
}

.article-product-card__price {
    display: none;
    align-items: center;
    gap: 22px;
}

.article-product-card__price.active {
    display: flex;
}

.article-product-card__price .price {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 128%;
    color: #FFFFFF;
}

.article-product-card__price .old-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 128%;
    color: #8D8B89;
    text-decoration: line-through;
}


@media screen and (max-width: 900px) {
    .article-product-card__prices {
        margin-bottom: 17px;
    }

    .article-product-card__price {
        gap: 28px;
    }

    .article-product-card__price .price,
    .article-product-card__price .old-price {
        font-size: 25px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__prices {
        margin-bottom: 13px;
    }

    .article-product-card__price {
        gap: 14px;
    }

    .article-product-card__price .price,
    .article-product-card__price .old-price {
        font-size: 22px;
    }
}

.article-product-card__form {
    width: 100%;
    margin-top: auto;
    padding-bottom: 8.8px;
}

@media screen and (max-width: 900px) {
    .article-product-card__form {
        padding-bottom: 5px;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__form {
        padding-bottom: 2.8px;
    }
}

.article-product-card__button {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 347px;
    padding: 5px;
    background: linear-gradient(263.56deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%);
    border: none;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 128%;
    font-weight: 700;
    color: linear-gradient(0deg, #000000, #000000), linear-gradient(0deg, #584D3E, #584D3E);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 8.8px 0px 0px #D8A86E;
}

.article-product-card__button:hover:not(:disabled) {
    box-shadow: 0px 6px 0px 0px #D8A86E;
}

.article-product-card__button:active:not(:disabled) {
    transform: scale(0.95);
    box-shadow: 0px 8.8px 0px 0px #D8A86E;
}

.article-product-card__button:disabled {
    background: linear-gradient(264.11deg, #929292 -30.35%, #D0D0D0 5.5%, #E8E8E8 49.71%, #CECECE 95.1%, #8A8A8A 123.89%);
    color: #584D3E;
    cursor: not-allowed;
    box-shadow: 0px 8.8px 0px 0px #737373;
}

@media screen and (max-width: 900px) {
    .article-product-card__button {
        height: 67px;
        max-width: 318px;
        box-shadow: 0px 5px 0px 0px #D8A86E;
        border-radius: 20px;
        font-size: 16px;
    }

    .article-product-card__button:hover:not(:disabled) {
        box-shadow: 0px 3px 0px 0px #D8A86E;
    }

    .article-product-card__button:active:not(:disabled) {
        transform: scale(0.95);
        box-shadow: 0px 5px 0px 0px #D8A86E;
    }

    .article-product-card__button:disabled {
        background: linear-gradient(264.11deg, #929292 -30.35%, #D0D0D0 5.5%, #E8E8E8 49.71%, #CECECE 95.1%, #8A8A8A 123.89%);
        color: #584D3E;
        cursor: not-allowed;
        box-shadow: 0px 5px 0px 0px #737373;
    }
}

@media screen and (max-width: 600px) {
    .article-product-card__button {
        height: 46px;
        max-width: 100%;
        box-shadow: 0px 2.8px 0px 0px #D8A86E;
        border-radius: 12px;
        font-size: 11px;
    }

    .article-product-card__button:hover:not(:disabled) {
        box-shadow: 0px 1px 0px 0px #D8A86E;
    }

    .article-product-card__button:active:not(:disabled) {
        transform: scale(0.95);
        box-shadow: 0px 2.8px 0px 0px #D8A86E;
    }

    .article-product-card__button:disabled {
        background: linear-gradient(264.11deg, #929292 -30.35%, #D0D0D0 5.5%, #E8E8E8 49.71%, #CECECE 95.1%, #8A8A8A 123.89%);
        color: #584D3E;
        cursor: not-allowed;
        box-shadow: 0px 2.8px 0px 0px #737373;
    }
}
