:root {
    --articles-yellow: #FFC83B;
    --articles-yellow-hover: #e6b800;
    --articles-dark: #40595E;
    --articles-accent: #5995A1;
    --articles-white: #ffffff;
    --articles-soft: #fffdf8;
    --articles-line: #e8e8e8;
    --articles-muted: #6c757d;
    --articles-shadow: 0 8px 28px rgba(64, 89, 94, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    font-family: 'Nunito', sans-serif;
    color: var(--articles-yellow);
    background: var(--articles-soft);
}

a {
    color: inherit;
}

.articles-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.articles-hero {
    padding: 54px 0 34px;
}

.articles-hero h1,
.article-view h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
    color: var(--articles-dark);
}

.articles-hero p {
    margin: 14px 0 0;
    max-width: 680px;
    font-size: 18px;
    color: var(--articles-muted);
}

.articles-list-section {
    padding-top: 38px;
    padding-bottom: 20px;
    background: var(--articles-yellow);
}

.article-list-item {
    width: 90%;
    padding: 0;
    margin: 0 auto 22px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--articles-white);
    overflow: hidden;
}

.articles-page+.sec-bonus {
    background: var(--articles-white);
}

.red-button #owl {
    width: 190px;
    height: auto;
}

.owl-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--articles-dark);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.owl-close:hover {
    opacity: 1;
}

.articles-list-section .img-text {
    display: flex;
    gap: 10px;
    align-items: stretch;
    height: clamp(260px, 22.5vw, 306px);
    margin-bottom: 0;
}

.articles-list-section .div-img {
    width: 253px;
    min-width: 253px;
    height: 100%;
    background: var(--articles-soft);
    overflow: hidden;
}

.articles-list-section .div-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.articles-list-section .div-text {
    width: auto;
    padding: 12px 30px 12px 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-list-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    display: block;
    background: var(--articles-soft);
    border-radius: 0;
}

.article-list-logo {
    padding: 18px;
    object-fit: contain;
    background: var(--articles-white);
}

.articles-list-empty {
    padding: 28px;
    color: var(--articles-muted);
    font-weight: 800;
}

.article-list-item h2 {
    margin-bottom: 28px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-list-item .p2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-list-item .div-text>a {
    margin-top: auto;
}

.article-list-item .span-read-more {
    display: inline;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--articles-yellow);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-list-item a:hover .span-read-more,
.article-list-item a:focus .span-read-more {
    color: var(--articles-dark);
}

.article-list-item hr {
    display: none;
}

.articles-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 16px 44px;
    background: var(--articles-yellow);
}

.articles-pagination__link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--articles-white);
    color: var(--articles-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.articles-pagination__link:hover {
    background: var(--articles-line);
}

.articles-pagination__link:visited {
    color: var(--articles-dark);
}

.articles-pagination__link--active,
.articles-pagination__link--active:hover,
.articles-pagination__link--active:visited {
    background: var(--articles-white);
    color: var(--articles-yellow);
    cursor: default;
}
.article-page {
    background: var(--articles-yellow);
}

.article-view {
    padding: 48px 0 64px;
}

.article-view__inner {
    --card-pad-x: 28px;
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px var(--card-pad-x);
    background: var(--articles-white);
    border-radius: 12px;
    box-shadow: var(--articles-shadow);
}

.article-view__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 calc(-1 * var(--card-pad-x)) 26px;
    padding: 0 var(--card-pad-x) 14px;
    border-bottom: 1px solid var(--articles-line);
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--articles-muted);
    text-decoration: none;
}

.article-back:hover {
    color: var(--articles-accent);
}

.article-view__date {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--articles-muted);
}

.article-view h1 {
    margin: 0 0 30px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--articles-dark);
}

.article-view__lead {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin: 8px 0 24px;
}

.article-view__cover-wrap {
    flex: 0 0 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: calc(-1 * var(--card-pad-x));
}

.article-view__cover {
    display: block;
    width: 180px;
    height: auto;
    box-shadow: none;
    background: transparent;
}

.article-view__lead h1 {
    flex: 1;
    align-self: flex-start;
    margin-top: 4px;
}

.article-related {
    margin: 40px 0 0;
    padding: 32px 0 0 1.5rem;
    border-top: 1px solid var(--articles-line);
}

.h4-links {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--articles-dark);
}

.article-related__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-related__list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 32px;
}

.article-related__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid var(--articles-yellow);
}

.article-related__link,
.article-related__link:link,
.article-related__link:visited {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--articles-yellow);
    text-decoration: none;
}

.article-related__link:hover {
    color: var(--articles-dark);
}

@media (max-width: 720px) {
    .article-view {
        padding: 24px 0 40px;
    }

    .article-view__inner {
        --card-pad-x: 20px;
        width: calc(100% - 24px);
        padding: 28px var(--card-pad-x);
    }

    .article-view__lead {
        flex-direction: column;
        gap: 16px;
    }

    .article-view__cover-wrap {
        flex: 0 0 auto;
    }

    .article-view__cover {
        width: 140px;
        height: auto;
    }

    .article-view h1 {
        font-size: 24px;
    }
}

.site-footer {
    background: var(--articles-white);
    border-top: 1px solid var(--articles-line);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 24px));
    min-height: 76px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 12px;
    color: var(--articles-muted);
    font-weight: 700;
}

.site-footer a {
    color: var(--articles-dark);
    font-weight: 900;
}

@media (max-width: 900px) {
    .articles-list-section .container {
        max-width: 950px;
    }

    .articles-list-section .img-text {
        display: flex;
        gap: 20px;
        height: 200px;
    }

    /* removed max-width rule to allow full height scaling on tablets */

    .article-list-item h2 {
        margin-bottom: 22px;
        font-size: 1.35rem;
    }

    .article-list-item .p2 {
        margin-bottom: 14px;
        font-size: 1.1rem;
    }
}

@media (max-width: 620px) {
.articles-container {
    width: min(calc(100% - 20px), 1200px);
    }

    .articles-hero {
        padding: 34px 0 22px;
    }

    .articles-hero h1,
    .article-view h1 {
        font-size: 30px;
    }

    .article-view__lead {
        gap: 16px;
        margin: 16px auto 20px;
    }

    .article-view__cover-wrap {
        flex-basis: clamp(123px, 34vw, 162px);
    }

    .article-view__cover {
        width: 100%;
    }

    .article-view__inner {
        --card-pad-x: 16px;
        padding: 28px var(--card-pad-x);
    }

    .articles-list-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .articles-list-section .img-text {
        display: flex;
        gap: 8px;
        height: 188px;
        margin-bottom: 0;
    }

    .articles-list-section .div-img {
        width: 40%;
        min-width: 120px;
        max-width: 40%;
        margin-right: 0;
    }

    .articles-list-section .div-text {
        padding: 10px 12px 10px 0;
    }

    .article-list-item {
        padding: 0;
        margin-bottom: 18px;
    }

    .article-list-item h2 {
        margin-bottom: 12px;
        font-size: 1rem;
        line-height: 1.08;
        -webkit-line-clamp: 2;
    }

    .article-list-item .p2 {
        margin-bottom: 12px;
        font-size: 0.95rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .article-list-item .span-read-more {
        font-size: 1rem;
    }

    .article-related__list {
        padding-left: 0;
        padding-right: 0;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }
}