/*
 * Страница материала блога: текст с формой заявки сбоку и блок «Другие новости».
 */

.blog__head.blog__head--aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 40px;
    align-items: start;
}

.blog__choose-flat {
    align-self: flex-start;
    width: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.blog__aside {
    position: sticky;
    top: 24px;
}

/*
 * Материал набирается в админке: редактор проставляет картинкам жёсткие размеры
 * прямо в атрибуте style (например, width: 1407px), поэтому ограничение ширины
 * приходится усиливать — иначе изображение выходит за колонку текста.
 */
.blog__head--aside .blog__head-desc img,
.blog__head--aside .blog__head-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.blog__head--aside .blog__head-desc table,
.blog__head--aside .blog__head-desc iframe {
    max-width: 100%;
}

/* Поля формы в колонку: сетка темы рассчитана на широкий блок. */
.blog-form .form__flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.blog-form .form-two-input .form__btn,
.blog-form .form__btn {
    width: 100%;
}

.blog-form .form__polytic {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 12px;
}

.blog-form {
    background: var(--seryy, #f3f3f4);
    border-radius: 22px;
    padding: 28px 24px;
}

.blog-form__text h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--100, #161717);
}

.blog-form__text p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--60, #6c6f71);
    margin: 0 0 18px;
}

.blog__other {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 24px;
}

.blog__other-item {
    display: flex;
    flex-direction: column;
    background: var(--belyy, #fff);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s ease;
}

.blog__other-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog__other-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog__other-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__other-content {
    display: block;
    padding: 18px 20px 22px;
}

.blog__other-date {
    display: block;
    font-size: 13px;
    color: var(--60, #6c6f71);
    margin-bottom: 8px;
}

.blog__other-name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--100, #161717);
}

@media (max-width: 1190px) {
    .blog__head.blog__head--aside {
        grid-template-columns: minmax(0, 1fr) 320px;
        column-gap: 24px;
    }

    .blog__other {
        column-gap: 20px;
    }
}

@media (max-width: 991px) {
    .blog__head.blog__head--aside {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .blog__aside {
        position: static;
    }

    .blog__other {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blog__other {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-form {
        padding: 22px 18px;
    }
}
