body {
    margin: 0;
    font-family: var(--mainFontFamily);
    display: flex;
    background-color: #F4F6F9;
}

.author-blog-content-wrapper{
    display: grid;
    grid-template-columns: 1fr 3fr;
    column-gap: 20px;
    width: 100%;
    margin-bottom: 100px;   
}

.author-card-wrapper{
    border-radius: 0;
    padding: 53px 33px;
    background-color: #306dde;
    border-radius: 12px;
}

.author-card-image-wrapper{
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;    
}

.author-card-image-wrapper a {
    height: 150px;
    width: 150px;
    border-radius: 100%;
    overflow: hidden;
}

.author-card-image-wrapper img{
    width: 150px;
    min-width: 150px;
}

.author-card-content{
    margin-top: 20px;
    text-align: center;
}

.author-blog-container .author-card-content h3,
.author-blog-container .author-card-content .author-name{
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.author-blog-container .author-card-content p{
    color: #fff;
}

.author-blog-sidebar-header {
    text-transform: uppercase;
    color: #19191e;
    margin-bottom: 8px;
    padding-left: 0;
    font-size: 16px;
    font-weight: 500;
}

.author-blog-sidebar {
    align-self: flex-start;
    overflow: visible;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-blog-sidebar ul {
    list-style: none;
    padding: 0;
}

.author-blog-container ul.author-blog-sidebar-links{
    margin-left: 0px;
    margin-bottom: 20px;
}

.author-blog-sidebar-links a {
    text-decoration: none;
    color: #817a99;
    margin-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 125%;
    display: inline-block;
    
}

.author-blog-sidebar-links a.active {
    color: #160647;
    font-weight: bold;
}

.section-content h2 {
    color: #2d2e2e;
    margin-top: 0;
    margin-bottom: 24px;
    margin-top: 24px;
    font-weight: 600;
    font-size: 38px;
    line-height: 100%;
}

.main-section-content .section-content p {
    color: #5d5d5d;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 18px;
    line-height: 2;
    font-weight: 400;
}

.author-blog-container p{
    margin-top: .5em;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.author-blog-container p a{
    color: #306dde;
}

.author-blog-container {
    margin-bottom: 2rem;
}

.author-blog-container .author-blog-header h2{
    color: #000b0f;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.167em;
}

.author-blog-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
}

.author-socials-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.last-articles-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две карточки в строке */
    gap: 20px; /* Расстояние между карточками */
    align-items: stretch;
}

.last-article-card {
    background-color: transparent;
    border: 2px solid #306dde;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределение содержимого по высоте */
    box-sizing: border-box; /* Учитываем padding в ширине */
    cursor: pointer;
    height: 100%;
}

.last-article-card:hover{
    transform: translate3d(0, -6px, .01px);
}

.last-article-card-title{
    margin-top: 62px;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    color: #19191e;
    display: -webkit-box; /* Включаем блочную модель для ограничения строк */
    -webkit-line-clamp: 2; /* Устанавливаем максимум 3 строки */
    -webkit-box-orient: vertical; /* Указываем ориентацию */
    overflow: hidden; /* Скрываем лишний текст */
    text-overflow: ellipsis; /* Добавляем многоточие */
}

.last-article-card-category{
    font-size: 18px;
    font-weight: 500;
    color: #19191e;
}

.last-article-card-bottom-info {
    border-top: 1px solid #19191e;
    padding-top: 50px;
}

.author-article-info-image {
    height: 80px;
    overflow: hidden;
    border-radius: 40px;
}

.author-article-info-image img{
    width: 80px;
    min-width: 80px;
    min-width: 80px;
}

.author-article-info{
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-article-content-name{
    color: #19191e;
    font-size: 22px;
    font-weight: 600;
}

.author-article-content-date{
    color: #313435;
    font-size: 18px;
    font-weight: 400;
}

.author-article-arrow{
    margin-left: auto;
}

.author-blog-container-header{
    background-color: #306dde;
    width: calc(100% + 3rem);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 5vw 0;
    background-position: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.author-blog-container-header:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
    z-index: -1;
}

.author-blog-container-header .author-blog-container-title{
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
}

.author-blog-container-header .author-blog-container-header-date{
    font-size: 16px;
    font-weight: 500;
    color: #19191e;
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 12px;
}

.author-blog-page-image {
    height: 300px;
    border-radius: 150px;
    overflow: hidden;
}

.author-blog-page-image img{
    width: 300px;
    min-width: 300px;
}

.author-blog-page-content-text{
    font-size: 22px;
    color: #5d5d5d;
}

.author-blog-page-content-info{
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.author-blog-page-content-text a{
    color: #306dde;
}

.author-blog-page-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.section-content p:last-child{
    margin-bottom: 0px;
}

.author-blog-page-info{
    margin-bottom: 100px;
}

.author-blog-page-content-socials{
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-blog-page-content-socials img{
    width: 30px;
    height: 30px;
    min-width: 30px;
}

.author-info-contacts-wrapper{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-blog-page-content-info .author-blog-page-content-title{
    color: #19191e;
    font-weight: 600;
    font-size: 40px;
    margin-bottom: 10px;
}

.main-section-content p,
.main-section-content h2,
.main-section-content h3,
.main-section-content span,
.main-section-content ul,
.main-section-content li {
  cursor: default;
}

.summarize-ai-wrapper {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summarize-ai-title {
    font-size: 14px;
    font-weight: 600;
    color: #19191e;
    letter-spacing: 0.02em;
}

.summarize-ai-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.summarize-ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    color: #19191e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.summarize-ai-btn:hover {
    border-color: #306dde;
    box-shadow: 0 1px 4px rgba(48, 109, 222, 0.12);
    color: #19191e;
    text-decoration: none;
    transform: translateY(-1px);
}

.summarize-ai-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.summarize-ai-btn-icon svg {
    width: 20px;
    height: 20px;
}

.summarize-ai-btn-label {
    white-space: nowrap;
}

.banners-slider {
    width: 100%;
    margin: 0 auto;
    max-width: 320px;
}
  
.banners-slider img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.banners-slider .btn.rm.btn-primary{
    width: 100%;
}

.banner-slider-main-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 30px;
}


@media (max-width: 1024px) and (min-width: 768px){
    .author-blog-content-wrapper{
        display: flex;
        flex-direction: column;
    }

    .author-blog-sidebar{
        width: 100%;
    }

    .section-content img{
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {

    .author-blog-container-header .author-blog-container-title{
        font-size: 34px;
    }

    .section-content h2{
        font-size: 24px;
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .section-content h4{
        font-size: 16px;
    }

    .section-content h3{
        font-size: 18px;
    }

    .main-section-content .section-content p{
        font-size: 14px;
    }

    .main-section-content .section-content li{
        font-size: 14px;
    }

    .last-article-card-title{
        font-size: 18px;
    }

    .author-article-content-name{
        font-size: 16px;
    }

    .author-article-content-date{
        font-size: 14px;
    }

    .author-blog-header{
        margin-bottom: 30px;
    }

    .author-blog-container .author-blog-header h2{
        font-size: 28px;
    }

    .author-blog-content-wrapper{
        margin-bottom: 30px;
    }

    .last-article-card-title{
        margin-top: 20px;
    }

    .section-content img{
        width: 100% !important;
        height: auto !important;
    }

    .main-block-with-left-menu main{
        padding:0px 10px;
    }

    .section-content h2{
        line-height:80%!important;
    }
    
    .author-blog-content-wrapper{
        display: flex;
        flex-direction: column;
    }

    .author-blog-sidebar-links{
        display: none;
    }

    .author-blog-sidebar-header{
        display: none;
    }

    .author-blog-sidebar{
        margin-top: 30px;
        width: 100%;
    }

    .author-blog-container-header{
        margin-bottom: 50px;
    }

    .author-blog-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .last-articles-wrapper{
        display: flex;
        flex-direction: column;
    }

    .author-blog-page-info{
        display: flex;
        flex-direction: column;
    }

    .author-blog-page-content{
        max-width: 100%;
        flex-direction: column-reverse;
    }

    .author-blog-page-content-text{
        max-width: none;
        display: flex;
        flex-direction: column;
        order: 3;
    }

    .author-blog-page-content-info{
        max-width: none;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .author-blog-container .author-blog-header h2{
        font-size: 32px;
    }

    .author-blog-page-content-info .author-blog-page-content-title{
        font-size: 32px;
    }
}

/* Article body tables (rendered from CMS / redactor content) */
.author-blog-content-wrapper .main-section-content .section-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(36, 34, 62, 0.06);
    background: #fff;
}

.author-blog-content-wrapper .main-section-content .section-content table th,
.author-blog-content-wrapper .main-section-content .section-content table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e7e7f0;
    line-height: 1.5;
}

.author-blog-content-wrapper .main-section-content .section-content table th {
    background: #24223E;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.author-blog-content-wrapper .main-section-content .section-content table tbody tr:nth-child(even) td {
    background: #F8F8FF;
}

.author-blog-content-wrapper .main-section-content .section-content table tbody tr:hover td {
    background: #f1f1fa;
}

.author-blog-content-wrapper .main-section-content .section-content table tbody tr:last-child td {
    border-bottom: none;
}

.author-blog-content-wrapper .main-section-content .section-content table td:first-child {
    font-weight: 600;
    color: #24223E;
}

@media (max-width: 768px) {
    .author-blog-content-wrapper .main-section-content .section-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .author-blog-content-wrapper .main-section-content .section-content table th,
    .author-blog-content-wrapper .main-section-content .section-content table td {
        padding: 12px 14px;
        font-size: 14px;
    }
}