body {
    background: white !important;
    font-family: 'Inter', sans-serif !important;
    color: #16242C !important;
    overflow-x: hidden;
}

.main-content-container.with-padding {
    max-width: 1180px;
    width: 100%;
    margin: 20px auto 100px;
}

@media (max-width: 767.98px) {
    .main-content-container.with-padding {
        max-width: none;
        width: 100%;
        padding: 16px;
        margin-bottom: 40px;
    }
}

.blog-hero__section {
  padding: 56px 55px 63px 70px;
  border: 1px solid #E3E5E5;
  box-shadow: 0px 0px 11.1px 0px #C8C8C840;
  background: linear-gradient(180deg, #F8FAFE 0%, #EAF3FE 100%);
  border-radius: 20px;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-hero__content{
    max-width: 483px;
}
.blog-hero__title {
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 2%;
    line-height: 100%;
    color: #061E55;
    margin-bottom: 9px;
}
.blog-hero__text {
    font-weight: 600;
    font-size: 34px;
    line-height: 40px;
    letter-spacing: 2%;
    color: #004CFF;
    margin-bottom: 9px;
}
.blog-hero__desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #5D7087;
    margin-bottom: 30px;
}
.blog-hero__pic{
    flex-shrink: 0;
}
.blog-hero__img{
    width: 317px;
    height: 321px;
}
.blog-hero__search {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 0.65px solid #E3E5E5;
    border-radius: 6px;          /* полностью скруглённые края */
    padding: 11px 8px;
    transition: border-color 0.25s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    max-width: 464px;
}
.blog-hero__search:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.blog-hero__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    min-width: 0;                /* предотвращаем переполнение */
    color: #0f172a;
    font-weight: 400;
    font-size: 16px;
    line-height: 12px;
    letter-spacing: 0%;
}
.blog-hero__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 16px;
    line-height: 12px;
    letter-spacing: 0%;
    opacity: 1;
}
.blog-hero__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 10px;
    background: transparent;
    flex-shrink: 0;
}
.blog-hero__search-btn:hover {
    transform: scale(1.15);
}
.blog-hero__search-btn:active {
    background: #cbd2db;
}
.blog-hero__search-btn svg {
    display: block;
    width: 22px;
    height: 22px;
}

.blog-main__section{
    margin-top: 50px;
    margin-bottom: 30px;
}
.blog-main__btns{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 30px;
}
.blog-main__btn{
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -2%;
    color: #32393D;
    border: 1px solid #DADADA;
    border-radius: 8px;
    padding: 11px 12px;
    cursor: pointer;
}
.blog-main__btn.active{
    background: #2AABEE;
    border: 1px solid #2AABEE;
    color: #FFFFFF;
}
.blog-main__cards {
    /*display: grid;*/
    /*grid-template-columns: repeat(3, 1fr);*/
    /*column-gap: 17px;*/
    /*row-gap: 20px;*/
    margin: 0 auto 27px;
    padding: 10px 0;

    overflow: hidden;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Магнитная прокрутка */
    -ms-overflow-style: none; /* Скрываем скроллбар в IE/Edge */
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
    /*align-items: flex-start;*/
}
.blog-main__cards::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар в Chrome/Safari */
}
.blog-main__carousel-page {
    flex: 0 0 100%; /* Страница занимает ровно 100% ширины контейнера */
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 в ряду */
    gap: 20px;
    /*padding: 10px;*/
    box-sizing: border-box;
    scroll-snap-align: start; /* Точка остановки для магнитной прокрутки */
    align-content: start;
}
@media (max-width: 768px) {
    .blog-main__carousel-page {
        grid-template-columns: repeat(2, 1fr); /* На планшетах 2 в ряду */
    }
}

@media (max-width: 480px) {
    .blog-main__carousel-page {
        grid-template-columns: 1fr; /* На смартфонах 1 в ряду */
    }
}
.blog-main__card {
    /*display: flex;*/
}
.blog-main-card {
    border-radius: 22px;
    padding: 20px 24px 27px 20px;
    border: 1px solid #DADADA;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-main-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.blog-main-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
}
.blog-main-card__pic {
    flex-shrink: 0;
    width: 58px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F8;
    border-radius: 10px;
}
.blog-main-card__img {
    /* width: 28px;
    height: 28px; */
}
.blog-main-card__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 2%;
    color: #00104D;
    max-width: 227px;
}
.blog-main-card__desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #28364B;
    max-width: 297px;
    flex: 1;
    margin-bottom: 26px;
}
.blog-main-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-main-card__readed {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #28364B;
}
.blog-main-card__link {
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #004CFF;
    text-decoration: none;
    transition: color 0.2s ease;
}
.blog-main-card__link:hover {
    color: #3451b2;
    text-decoration: underline;
}
.blog-slider__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 110px;
}
.blog-slider__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F2F4FA;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.blog-slider__dot--active {
    background: #004CFF;
}
.blog-slider__dot:not(.blog-slider__dot--active):hover {
    background: #9ca3af;
    transform: scale(1.15);
}
.blog-sure__section{
    background: linear-gradient(180deg, #F8FAFE 0%, #EAF3FE 100%);
    border-radius: 35px;
    margin-bottom: 110px;
    padding: 21px 95px 26px 49px;
}
.blog-sure__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.blog-sure__title{
    font-weight: 600;
    font-size: 40px;
    line-height: 80px;
    letter-spacing: 2%;
    color: #101827;
}
.blog-sure__desc{
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 2%;
    color: #0D0D0E;
    margin-bottom: 23px;
}
.blog-sure__link{
    box-shadow: 0px 0.81px 1.62px 0px #1018280D;
    background-color: #0156FF;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    line-height: 12.94px;
    letter-spacing: 2%;
    padding: 14.5px 17.5px;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    width: fit-content;
    text-align: center;
}
.blog-sure__img{
    width: 306px;
    height: 266px;
}
.blog-sure__link:hover{
    color: #f5f5f5;
    background-color: #013cb1;
}
@media (max-width: 992px) {
    .blog-hero__section{
        padding: 20px;
    }
    .blog-hero__title{
        font-size: 32px;
        line-height: 100%;
    }
    .blog-hero__text{
        font-size: 24px;
        line-height: 100%;
    }
    .blog-hero__desc{
        margin-bottom: 10px;
    }
    .blog-hero__img{
        width: 250px;
        height: auto;
    }
    .blog-main__btns{
        flex-wrap: wrap;
    }
    .blog-main__cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-sure__section{
        padding: 15px;
    }
    .blog-sure__title{
        line-height: 100%;
        margin-bottom: 15px;
        font-size: 30px;
    }
    .blog-sure__desc{
        line-height: 100%;
        font-size: 18px;
    }
    .blog-sure__img{
        width: 220px;
        height: auto;
    }
}
@media (max-width: 768px) {
    .blog-hero__pic, .blog-sure__pic{
        display: none;
    }
}
@media (max-width: 576px) {
    .blog-main__cards {
        grid-template-columns: 1fr;
    }
    .blog-sure__link{
        margin: 0 auto;
        width: 100%;
    }
    .blog-slider__pagination, .blog-sure__section{
        margin-bottom: 50px;
    }
}




