article {
    background-image: url("../img/fon-common.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
}
article h1 {
    font-size: 60px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.1;
    max-width: 70%;
}
article p, article .table, article span {
    font-size: 22px;
    line-height: 1.55;
    font-weight: 400;
    color: #1A1A1A;
    margin: 30px 0;
}
article strong {
    color: #D3474F;
}
article a {
    text-decoration: none;
    color: #d3474f;
}
article .table {
    border-collapse: collapse;
}
article .table td {
    border: 1px solid;
    padding: 15px;
}
article p:first-of-type {
    margin-top: 0;
}
article ul, article ol {
    font-size: 22px;
    line-height: 1.55;
    font-weight: 400;
    color: #000;
    padding: 0;
    margin: 30px 0;
}
article ul:first-of-type {
    margin-top: 0;
}
article ul li, article ol li {
    list-style-position: inside;
}
article ul li::before {
    content: "— ";
    color: #d3474f;
}
article ol {
    counter-reset: my-counter;
}
article ol>li {
    margin-bottom: 24px;
    list-style-position: outside;
    display: grid;
    gap: 24px;
    grid-template-columns: 40px auto;
}
article ol>li::before {
    content: counter(my-counter);
    counter-increment: my-counter;
    background-color: #f8989e;
    color: #1a1a1a;
    border: 0px solid #f8989e;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-size: 18px;
    aspect-ratio: 1;
    margin-top: 5px;
}
.rank-math-breadcrumb {
    text-transform: uppercase;
}
.rank-math-breadcrumb a, .rank-math-breadcrumb span {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 18px;
    opacity: 0.3;
    line-height: 1.23;
    font-weight: 600;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.rank-math-breadcrumb a:hover {
    opacity: 1;
}
.article_banner {
    position: relative;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-color: #F9F9F9;
    height: 600px;
    padding-top: 160px;
    margin-bottom: 60px;
    padding-bottom: 20px;
}
.article_banner #breadcrumbs {
    padding: 24px 0 38px;
}

.article_banner .banner_description {
    margin-top: 40px;
}

.article_banner .hero {
    display: none;
}

.memo-list {
    display: flex;
    flex-direction: row;
    gap: 48px;
    margin-bottom: 48px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 64px;
}

.memo-list .memo-img {
    box-shadow: 0px 20px 80px 0px #0000000D;
    max-width: 312px;
    width: 100%;
    border-radius: 32px;
    text-align: center;
    padding: 60px;
    background: linear-gradient(180deg, #F9F9F9 0%, #FFFFFF 85.78%),
    linear-gradient(0deg, #FFFFFF, #FFFFFF);

}

.memo-list .memo-img img {
    margin: 0 auto;
}

.memo-list .memo-list-content {
    max-width: 815px;
}

.memo-list .memo-list-content h2 {
    margin-top: 0;
    margin-bottom: 40px;
}

.memo-list .memo-list-content strong {
    color: #000000;
}

article .memo-list ol>li, article .memo-list ul>li {
    display: flex;
    width: 100%;
}

article .memo-list ul.two-columns, article .memo-list ol.two-columns {
    column-count: 2;
}

article .memo-list ul li::before {
    content: "";
    background-color: #d3474f;
    width: 30px;
    min-width: 30px;
    height: 2px;
    display: block;
    margin-top: 20px;
    margin-right: 24px;
}

article .memo-list ol>li ul li {
    margin-bottom: 16px;
}

article .memo-text p.small-grey {
    font-size: 16px;
    color: #1A1A1A99;
    max-width: 815px;
}

.featured_posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

.featured_posts .post_item {
    background-color: #fff;
    border-radius: 35px;
    box-shadow: 0 20px 80px 0 #0000000D;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured_posts .post_item img {
    height: auto;
    width: 100%;
}

.featured_posts .post_item .post_item_descr {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.featured_posts .post_item .post_item_descr .post_title {
    font-weight: 700;
    font-size: 28px;
    line-height: 120%;
    margin-bottom: 16px;
    margin-top: 0;
}

.featured_posts .post_item .post_item_descr p {
    font-weight: 400;
    font-size: 17px;
    flex: 1;
    margin-bottom: 0;
}

.featured_posts .post_item .post_link, .post_btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    color: #ffff;
    padding: 17px 40px;
    background-color: #D3474F;
    border-radius: 35px;
    display: block;
    width: fit-content;
    margin: 24px;
    border: 2px solid #D3474F;
}

.post_btn {
    margin-left: 0;
}

.featured_posts .post_item:hover .post_link {
    color: #D3474F;
    background-color: #ffffff;
}

.post_btn:hover {
    color: #D3474F;
    background-color: #ffffff;
}

.sources {
    margin: 60px 0;
}
.sources p {
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: #888;
}
.sources ol li {
    list-style-type: decimal;
    display: block;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: #888;
    margin-bottom: 0;
}
.sources ol li::before {
    background: none;
    display: inline-block;
    width: auto;
    height: auto;
    margin-right: 10px;
    color: #888;
    font-size: inherit;
    content: counter(my-counter) ".";
}
.authors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.author-card {
    background-color: #ffffff;
    box-shadow: 0 20px 80px 0 #0000000D;
}

.author-card iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.author_descr {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.author_descr h3 {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #D3474F;
}

.author_descr ul li::marker {
    content: unset;
    color: inherit;
}

.author_descr ul li:before {
    content: unset;
}

.author_descr ul {
    margin-bottom: 0;
}

.author_descr ul li {
    list-style-type: disc;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
    text-indent: -20px;
    padding-left: 20px;
}

.gymnastic p strong {
    color: inherit;
}

.gymnastic-point {
    display: flex;
    align-items: center;
}

.gymnastic-point:not(:last-of-type) {
    margin-bottom: 24px;
}

.gymnastic_img {
    background-repeat: no-repeat;
    background-size: contain;
    width: 30%;
    height: 300px;
    background-position: center;
}

.gymnastic-description {
    padding: 24px;
    width: 70%;
}

.gymnastic-button {
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    color: #ffff;
    padding: 17px 40px;
    background-color: #D3474F;
    border-radius: 35px;
    display: block;
    width: fit-content;
    margin: 64px auto;
    border: 2px solid #D3474F;
}

.gymnastic-button:hover {
    color: #D3474F;
    background-color: #ffffff;
}

.bottom-filter {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

.bottom-filter .tab-btn {
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    color: #D3474F;
    padding: 17px 40px;
    border-radius: 35px;
    display: block;
    width: fit-content;
    border: 2px solid #D3474F;
    background: none;
    cursor: pointer;
}

.bottom-filter .tab-btn:hover {
    background-color: #f4d1d3;
}

@media (max-width: 1024px) {
    .featured_posts {
        grid-template-columns: 1fr 1fr;
    }
    .featured_posts .post_item:hover .post_link {
        color: #ffffff;
        background-color: #D3474F;
    }
}

@media (max-width: 767px) {

    #main .tab-nav_wrapper {
        overflow-x: auto;
    }

    #main .tab-nav {
        width: fit-content;
    }

    .featured_posts {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .authors {
        grid-template-columns: 1fr;
    }

    .author-card {
        border-radius: 0 0 35px 35px;
    }

    .author_descr h3 {
        font-size: 24px;
    }

    .featured_posts .post_item a {
        width: calc(100% - 48px);
        margin: 24px auto;
        padding: 8px;
    }

    .featured_posts .post_item .post_item_descr .post_title {
        font-size: 24px;
    }

    .featured_posts .post_item .post_item_descr p {
        font-size: 16px;
    }


    .gymnastic-point {
        flex-direction: column;
    }

    .gymnastic_img {
        width: 100%;
        height: 200px;
    }

    .gymnastic-description {
        width: 100%;
        padding: 24px 0;
    }

    .gymnastic-description p:last-of-type {
        margin-bottom: 0;
    }

    .bottom-filter {
        flex-direction: column;
    }

    .bottom-filter .tab-btn, .gymnastic-button {
        padding: 8px;
        width: 100%;
    }

    .gymnastic-button {
        margin: 24px auto;
    }

    .article_banner .hero {
        display: block;
        max-width: 80%;
        margin: 0 auto;
        margin-bottom: -20px;
    }

    .article_banner.mobile-hero {
        background-image: url("/wp-content/uploads/2025/06/hero-bg.png") !important;
    }

    .article_banner .mobile-hero h1 {
        font-size: 38px;
    }

    .featured_posts .post_item .post_link, .post_btn {
        width: calc(100% - 48px);
        margin: 24px auto;
        padding: 8px;
    }

    .memo-list .memo-img {
        margin: 0 auto;
    }

    .memo-list img {
        margin: 0 auto;
    }

    .memo-list {
        flex-direction: column;
        gap: 24px;
    }

    article .memo-list ol > li ul li {
        font-size: 16px;
    }

    article .memo-list ul li::before {
        margin-top: 12px;
        width: 12px;
        min-width: 12px;
        margin-right: 8px;
    }

    article .memo-list ul.two-columns, article .memo-list ol.two-columns {
        column-count: 1;
    }


}
