/* ===== VINSPORT: Полезные материалы / статьи ===== */

#articles-page {
    color: #21262e;
}

#articles-page * {
    box-sizing: border-box;
}

.vinsport-articles-hero,
.vinsport-articles-list-section,
.vinsport-articles-info,
.vinsport-articles-cta,
.vinsport-article-gallery-section {
    margin-bottom: 34px;
}


/* ===== Общие элементы ===== */

.vinsport-articles-badge {
    display: inline-block;

    margin-bottom: 14px;
    padding: 7px 11px;

    background: #f3e4e4;
    border-radius: 7px;

    color: #a65353;

    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .05em;
}

.vinsport-articles-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    background: #b45b5b;
    border: 1px solid #b45b5b;
    border-radius: 9px;

    color: #fff !important;

    font-size: 13px;
    line-height: 18px;
    font-weight: 600;

    text-decoration: none !important;

    transition: .2s ease;
}

.vinsport-articles-button:hover {
    background: #a44f4f;
    border-color: #a44f4f;

    color: #fff !important;

    transform: translateY(-1px);
}


/* ===== Первый экран ===== */

.vinsport-articles-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
    gap: 28px;

    padding: 42px;

    background: #f7f8fa;
    border: 1px solid #e6e8eb;
    border-radius: 18px;
}

.vinsport-articles-hero h1 {
    margin: 0 0 18px;

    font-size: 36px;
    line-height: 44px;
    font-weight: 650;

    color: #21262e;
}

.vinsport-articles-hero-main > p {
    max-width: 740px;

    margin: 0;

    font-size: 17px;
    line-height: 27px;

    color: #616872;
}

.vinsport-articles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 24px;
}

.vinsport-articles-tags span {
    padding: 7px 10px;

    background: #fff;
    border: 1px solid #e2e5e8;
    border-radius: 7px;

    color: #626973;

    font-size: 12px;
    line-height: 16px;
}

.vinsport-articles-hero-side {
    display: flex;
}

.vinsport-articles-hero-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    width: 100%;
    min-height: 260px;

    padding: 26px;

    background: #21262e;
    border-radius: 14px;

    color: #fff;
}

.vinsport-articles-hero-card::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -55px;
    right: -55px;

    border-radius: 50%;

    background: rgba(180, 91, 91, .09);
}

.vinsport-articles-hero-card > * {
    position: relative;
    z-index: 1;
}

.vinsport-articles-hero-label {
    margin-bottom: auto;

    color: #d7a4a4;

    font-size: 13px;
    line-height: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

.vinsport-articles-hero-title {
    margin-bottom: 10px;

    font-size: 20px;
    line-height: 27px;
    font-weight: 600;
}

.vinsport-articles-hero-text {
    color: #c9ced4;

    font-size: 13px;
    line-height: 21px;
}


/* ===== Заголовки секций ===== */

.vinsport-articles-list-section {
    padding: 38px 0;
}

.vinsport-articles-section-head {
    max-width: 780px;

    margin: 0 auto 26px;

    text-align: center;
}

.vinsport-articles-section-head h2,
.vinsport-articles-info h2,
.vinsport-articles-cta h2 {
    margin: 0 0 10px;

    color: #21262e;

    font-size: 29px;
    line-height: 38px;
    font-weight: 650;
}

.vinsport-articles-section-head p {
    margin: 0;

    color: #6c737c;

    font-size: 14px;
    line-height: 23px;
}


/* ===== Сетка статей ===== */

.vinsport-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vinsport-articles-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e6e8eb;
    border-radius: 14px;

    color: inherit !important;
    text-decoration: none !important;

    transition: .2s ease;
}

.vinsport-articles-card:hover {
    transform: translateY(-3px);

    border-color: #d8dbde;

    box-shadow: 0 12px 28px rgba(33, 38, 46, .08);
}

.vinsport-articles-card-image {
    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #f3f4f5;
}

.vinsport-articles-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.vinsport-articles-card:hover .vinsport-articles-card-image img {
    transform: scale(1.025);
}

.vinsport-articles-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 20px;
}

.vinsport-articles-card-label {
    margin-bottom: 10px;

    color: #a65353;

    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .06em;
}

.vinsport-articles-card-title {
    margin-bottom: 9px;

    color: #21262e;

    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
}

.vinsport-articles-card-text {
    margin-bottom: 18px;

    color: #6c737c;

    font-size: 13px;
    line-height: 21px;
}

.vinsport-articles-card-link {
    margin-top: auto;

    color: #b45b5b;

    font-size: 12px;
    line-height: 17px;
    font-weight: 600;
}


/* ===== Информационный блок ===== */

.vinsport-articles-info {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;

    padding: 36px;

    background: #21262e;
    border-radius: 18px;
}

.vinsport-articles-info h2 {
    color: #fff;
}

.vinsport-articles-info p {
    max-width: 700px;

    margin: 0;

    color: #c8cdd2;

    font-size: 14px;
    line-height: 24px;
}

.vinsport-articles-info-links {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 10px;
}

.vinsport-articles-info-links a {
    display: block;

    padding: 13px 15px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;

    color: #fff !important;

    font-size: 13px;
    line-height: 18px;

    text-decoration: none !important;

    transition: .2s ease;
}

.vinsport-articles-info-links a:hover {
    background: rgba(255,255,255,.1);
}


/* ===== CTA ===== */

.vinsport-articles-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 34px;

    background: #f7f8fa;

    border: 1px solid #e6e8eb;
    border-top: 3px solid #b45b5b;
    border-radius: 16px;

    box-shadow: 0 12px 34px rgba(33, 38, 46, .07);
}

.vinsport-articles-cta > div {
    max-width: 780px;
}

.vinsport-articles-cta p {
    margin: 0;

    color: #6c737c;

    font-size: 14px;
    line-height: 23px;
}


/* =========================================================
   ДЕТАЛЬНАЯ СТРАНИЦА СТАТЬИ
   ========================================================= */

.vinsport-article-detail {
    padding-bottom: 10px;
}

.vinsport-article-detail-head {
    max-width: 980px;

    margin-bottom: 24px;
}

.vinsport-article-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;

    color: #666d76 !important;

    font-size: 13px;
    line-height: 18px;
    font-weight: 600;

    text-decoration: none !important;

    transition: .2s ease;
}

.vinsport-article-back:hover {
    color: #b45b5b !important;
}

.vinsport-article-detail-title {
    margin: 0 0 16px;

    color: #21262e;

    font-size: 38px;
    line-height: 47px;
    font-weight: 650;
}

.vinsport-article-lead {
    max-width: 850px;

    color: #68707a;

    font-size: 17px;
    line-height: 27px;
}


/* ===== Главное изображение статьи ===== */

.vinsport-article-main-image {
    margin-bottom: 28px;

    overflow: hidden;

    background: #f4f5f6;

    border: 1px solid #e6e8eb;
    border-radius: 16px;
}

.vinsport-article-main-image a {
    display: block;

    cursor: zoom-in;
}

.vinsport-article-main-image img {
    display: block;

    width: 100%;
    max-height: 620px;

    object-fit: cover;
}


/* ===== Макет статьи ===== */

.vinsport-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr);
    gap: 22px;

    margin-bottom: 40px;
}

.vinsport-article-content {
    padding: 30px;

    background: #fff;

    border: 1px solid #e6e8eb;
    border-radius: 14px;

    color: #4f5660;

    font-size: 15px;
    line-height: 26px;
}

.vinsport-article-content h2 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: #21262e;

    font-size: 26px;
    line-height: 34px;
    font-weight: 650;
}

.vinsport-article-content h3 {
    margin-top: 24px;
    margin-bottom: 10px;

    color: #21262e;

    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
}

.vinsport-article-content p {
    margin-top: 0;
    margin-bottom: 16px;
}

.vinsport-article-content p:last-child {
    margin-bottom: 0;
}

.vinsport-article-content ul,
.vinsport-article-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.vinsport-article-content li {
    margin-bottom: 7px;
}

.vinsport-article-content img {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}

.vinsport-article-content a {
    color: #b45b5b;
}


/* ===== Сайдбар статьи ===== */

.vinsport-article-side {
    align-self: start;

    padding: 26px;

    background: #21262e;
    border-radius: 14px;

    color: #fff;
}

.vinsport-article-side-title {
    margin-bottom: 14px;

    color: #d7a4a4;

    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .07em;
}

.vinsport-article-side-text {
    margin-bottom: 22px;

    font-size: 17px;
    line-height: 25px;
    font-weight: 600;
}

.vinsport-article-side-links {
    display: grid;
    gap: 8px;
}

.vinsport-article-side-links a {
    display: block;

    padding: 11px 12px;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;

    color: #fff !important;

    font-size: 12px;
    line-height: 17px;

    text-decoration: none !important;

    transition: .2s ease;
}

.vinsport-article-side-links a:hover {
    background: rgba(255,255,255,.11);
}


/* ===== Галерея статьи ===== */

.vinsport-article-gallery-section {
    padding: 38px 0;
}

.vinsport-article-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.vinsport-article-gallery-item {
    height: 280px;

    overflow: hidden;

    background: #f4f5f6;

    border: 1px solid #e6e8eb;
    border-radius: 12px;
}

.vinsport-article-gallery-item a {
    display: block;

    width: 100%;
    height: 100%;

    cursor: zoom-in;
}

.vinsport-article-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.vinsport-article-gallery-item:hover img {
    transform: scale(1.025);
}


/* ===== Материал не найден ===== */

.vinsport-article-not-found {
    padding: 40px;

    background: #f7f8fa;

    border: 1px solid #e6e8eb;
    border-radius: 16px;
}

.vinsport-article-not-found h1 {
    margin: 0 0 10px;

    color: #21262e;

    font-size: 30px;
    line-height: 38px;
    font-weight: 650;
}

.vinsport-article-not-found p {
    margin: 0;

    color: #6c737c;

    font-size: 14px;
    line-height: 22px;
}


/* =========================================================
   POPUP ИЗОБРАЖЕНИЙ
   ========================================================= */

#articles-image-popup {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(15, 17, 20, .9);
}

#articles-image-popup.active {
    display: flex;
}

#articles-image-popup .articles-image-popup-inner {
    position: relative;

    max-width: 95vw;
    max-height: 95vh;
}

#articles-image-popup .articles-image-popup-img {
    display: block;

    width: auto;
    height: auto;

    max-width: 95vw;
    max-height: 92vh;

    border-radius: 12px;

    box-shadow: 0 18px 50px rgba(0,0,0,.38);
}

#articles-image-popup .articles-image-popup-close {
    position: absolute;

    top: -14px;
    right: -14px;

    width: 36px;
    height: 36px;

    padding: 0;

    background: #fff;

    border: none;
    border-radius: 50%;

    color: #21262e;

    font-size: 24px;
    line-height: 36px;

    text-align: center;

    cursor: pointer;

    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}


/* ===== Планшет ===== */

@media all and (max-width: 1100px) {

    .vinsport-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vinsport-article-layout {
        grid-template-columns: 1fr;
    }
}

@media all and (max-width: 900px) {

    .vinsport-articles-hero {
        grid-template-columns: 1fr;
    }

    .vinsport-articles-info {
        grid-template-columns: 1fr;
    }

    .vinsport-article-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== Мобильная версия ===== */

@media all and (max-width: 600px) {

    .vinsport-articles-hero,
    .vinsport-articles-info,
    .vinsport-articles-cta {
        padding: 22px;

        border-radius: 12px;
    }

    .vinsport-articles-hero h1,
    .vinsport-article-detail-title {
        font-size: 27px;
        line-height: 34px;
    }

    .vinsport-articles-section-head h2,
    .vinsport-articles-info h2,
    .vinsport-articles-cta h2 {
        font-size: 24px;
        line-height: 31px;
    }

    .vinsport-articles-grid {
        grid-template-columns: 1fr;
    }

    .vinsport-articles-card-image {
        height: 210px;
    }

    .vinsport-articles-hero-card {
        min-height: 210px;
    }

    .vinsport-articles-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .vinsport-articles-cta .vinsport-articles-button {
        width: 100%;
    }

    .vinsport-article-main-image {
        border-radius: 10px;
    }

    .vinsport-article-main-image img {
        max-height: 420px;
    }

    .vinsport-article-content,
    .vinsport-article-side {
        padding: 20px;
    }

    .vinsport-article-content {
        font-size: 14px;
        line-height: 24px;
    }

    .vinsport-article-content h2 {
        font-size: 22px;
        line-height: 29px;
    }

    .vinsport-article-content h3 {
        font-size: 18px;
        line-height: 25px;
    }

    .vinsport-article-gallery {
        grid-template-columns: 1fr;
    }

    .vinsport-article-gallery-item {
        height: 240px;
    }

    #articles-image-popup {
        padding: 15px;
    }

    #articles-image-popup .articles-image-popup-close {
        top: -10px;
        right: -10px;

        width: 32px;
        height: 32px;

        font-size: 22px;
        line-height: 32px;
    }
}