/* Блог: списки, страница статьи, правая колонка и оформление блоков внутри текста.
   Подключается только на страницах /info/article/ (см. info/article/index.php).
   Цвета — те же, что в frontend-v2.css: #1d447a, #399ec0, #f4f4f4. */

/*start: сетка раздела*/
.container.qv-frontend-v2-container.qv-blog {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.qv-blog .qv-blog__content {
    width: 920px;
}
.qv-blog .qv-blog__sidebar {
    width: 300px;
}
.qv-blog__intro {
    margin: 0 0 25px;
    color: #4a5680;
}
.qv-blog .qv-back-url {
    display: inline-block;
    margin-bottom: 10px;
}
/*end: сетка раздела*/

/*start: правая колонка*/
.qv-blog-sidebar-block {
    margin: 0 0 25px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
}
.qv-blog-sidebar-block__title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}
.qv-blog-categories__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.qv-blog-categories__list li {
    border-bottom: 1px solid #e7e9e8;
}
.qv-blog-categories__list li:last-child {
    border-bottom: none;
}
.qv-blog-categories__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #1d447a;
    text-decoration: none;
}
.qv-blog-categories__list a:hover,
.qv-blog-categories__list li.active a {
    color: #399ec0;
}
.qv-blog-categories__list .count {
    min-width: 24px;
    padding: 2px 6px;
    background: #fff;
    border-radius: 4px;
    color: #98a1a0;
    font-size: 12px;
    text-align: center;
}
.qv-blog-tags__list {
    display: flex;
    flex-wrap: wrap;
}
.qv-blog-tags__list a {
    margin: 0 8px 8px 0;
    padding: 5px 12px;
    background: #fff;
    border-radius: 5px;
    color: #1d447a;
    font-size: 13px;
    text-decoration: none;
}
.qv-blog-tags__list a:hover,
.qv-blog-tags__list a.active {
    background: #399ec0;
    color: #fff;
}
.qv-blog-products__list {
    display: flex;
    flex-direction: column;
}
.qv-blog-products__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -10px;
    padding: 10px;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
}
.qv-blog-products__item + .qv-blog-products__item {
    border-top: 1px solid #ececf0;
}
.qv-blog-products__item:hover {
    background: #fff;
    border-top-color: transparent;
    box-shadow: 0 6px 16px rgba(29, 68, 122, .1);
}
.qv-blog-products__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 8px;
}
.qv-blog-products__img img {
    max-width: 56px;
    max-height: 56px;
}
.qv-blog-products__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.qv-blog-products__name {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.qv-blog-products__item:hover .qv-blog-products__name {
    color: #1d447a;
}
.qv-blog-products__anons {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 3px;
    color: #98a1a0;
    font-size: 12px;
    line-height: 1.35;
}
.qv-blog-products__price {
    margin-top: 6px;
    color: #1d447a;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}
/*end: правая колонка*/

/*start: карточки статей*/
.qv-blog-cards-block {
    margin-bottom: 45px;
}
.qv-blog-cards-block__title {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
    color: #1a1a1a;
}
.qv-blog-cards {
    display: grid;
    /* колонки набираются сами: в контенте блога их три, в блоке под статьёй — сколько влезет */
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px 24px;
}
.qv-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s, transform .25s;
}
.qv-blog-card:hover {
    border-color: #dfe6ea;
    box-shadow: 0 10px 24px rgba(29, 68, 122, .12);
    transform: translateY(-4px);
}
.qv-blog-card__media {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}
.qv-blog-card__img {
    display: block;
    /* высота от ширины колонки: карточки в ряду остаются одинаковыми */
    aspect-ratio: 16 / 10;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .45s ease;
}
.qv-blog-card:hover .qv-blog-card__img {
    transform: scale(1.05);
}
.qv-blog-card__img.nophoto {
    background-size: 120px auto;
}
.qv-blog-card__category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 12px;
    background: rgba(255, 255, 255, .93);
    border-radius: 20px;
    color: #1d447a;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s, color .2s;
}
.qv-blog-card__category:hover {
    background: #399ec0;
    color: #fff;
}
.qv-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 16px;
}
.qv-blog-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s;
}
.qv-blog-card:hover .qv-blog-card__name {
    color: #1d447a;
}
.qv-blog-card__description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    color: #7a8194;
    font-size: 14px;
    line-height: 1.45;
}
.qv-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f1f4;
}
.qv-blog-card__author {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-bottom: 10px;
    color: #4a5680;
    font-size: 13px;
    text-decoration: none;
}
.qv-blog-card__author span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.qv-blog-card__author:hover {
    color: #399ec0;
}
.qv-blog-card__avatar {
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.qv-blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    color: #98a1a0;
    font-size: 13px;
    white-space: nowrap;
}
.qv-blog-card__views i {
    margin-right: 5px;
}
.qv-blog-cards__empty {
    padding: 20px 0;
    color: #98a1a0;
}
/*end: карточки статей*/

/*start: страница статьи*/
.qv-blog-article__category {
    display: inline-block;
    margin-bottom: 10px;
    color: #399ec0;
    font-size: 14px;
    text-decoration: none;
}
.qv-blog-article__params {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 25px;
    padding: 12px 18px;
    background: #f8f8f8;
    border-radius: 6px;
    color: #4a5680;
    font-size: 14px;
}
.qv-blog-article__param {
    margin-right: 20px;
}
.qv-blog-article__param i {
    margin-right: 5px;
}
.qv-blog-article__copy,
.qv-blog-share__copy {
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    color: #399ec0;
    cursor: pointer;
    font-size: 14px;
}
.qv-blog-article__copy.copied,
.qv-blog-share__copy.copied {
    color: #58a0a8;
}
.qv-blog-article__picture {
    margin-bottom: 25px;
}
.qv-blog-article__picture img {
    max-width: 100%;
    border-radius: 6px;
}
.qv-blog-article__text {
    font-size: 16px;
    line-height: 1.6;
}
.qv-blog-article__text img {
    max-width: 100%;
    height: auto;
}
.qv-blog-article__gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}
.qv-blog-article__gallery a {
    margin: 0 10px 10px 0;
}
.qv-blog-article__gallery img {
    border-radius: 4px;
}
/*end: страница статьи*/

/*start: содержание*/
.qv-blog-toc {
    margin: 0 0 30px;
    padding: 20px 25px;
    background: #f8f8f8;
    border-radius: 6px;
}
.qv-blog-toc__title {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}
.qv-blog-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 30px;
}
.qv-blog-toc__item {
    margin-bottom: 10px;
    break-inside: avoid;
}
.qv-blog-toc__item--h3 {
    padding-left: 18px;
}
.qv-blog-toc__item a {
    color: #1d447a;
    text-decoration: none;
    border-bottom: 1px dashed #399ec0;
}
.qv-blog-toc__item a:hover {
    color: #399ec0;
}
/*end: содержание*/

/*start: вопросы и ответы*/
.qv-blog-faq {
    margin: 35px 0;
}
.qv-blog-faq__title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}
.qv-blog-faq__item {
    border-bottom: 1px solid #e7e9e8;
}
.qv-blog-faq__question {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 40px 16px 0;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}
.qv-blog-faq__question:after {
    content: "\f107";
    position: absolute;
    top: 16px;
    right: 10px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #399ec0;
    transition: transform .2s;
}
.qv-blog-faq__item.opened .qv-blog-faq__question:after {
    transform: rotate(180deg);
}
.qv-blog-faq__answer {
    display: none;
    padding: 0 0 18px;
    color: #4a5680;
    line-height: 1.6;
}
.qv-blog-faq__item.opened .qv-blog-faq__answer {
    display: block;
}
/*end: вопросы и ответы*/

/*start: поделиться и оценка*/
.qv-blog-article__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    padding: 18px;
    background: #f8f8f8;
    border-radius: 6px;
}
.qv-blog-share {
    display: flex;
    align-items: center;
}
.qv-blog-share__label {
    margin-right: 12px;
    color: #4a5680;
}
.qv-blog-share__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    background: #fff;
    border-radius: 50%;
    color: #1d447a;
    text-decoration: none;
}
.qv-blog-share__item:hover {
    background: #399ec0;
    color: #fff;
}
.qv-blog-share__copy {
    margin-left: 10px;
}
.qv-blog-rating {
    display: flex;
    align-items: center;
}
.qv-blog-rating__title {
    margin-right: 12px;
    color: #000;
    font-weight: bold;
}
.qv-blog-rating__button {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e7e9e8;
    border-radius: 20px;
    color: #1d447a;
    cursor: pointer;
    font-size: 15px;
}
.qv-blog-rating__button i {
    margin-right: 6px;
}
.qv-blog-rating__button.active,
.qv-blog-rating__button:hover {
    border-color: #399ec0;
    color: #399ec0;
}
.qv-blog-rating.voted .qv-blog-rating__button {
    cursor: default;
}
.qv-blog-rating__done {
    display: none;
    margin-left: 12px;
    color: #58a0a8;
    font-size: 14px;
}
/*end: поделиться и оценка*/

/*start: автор*/
.qv-blog-author {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f4f8f9;
    border-radius: 6px;
}
.qv-blog-author__title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}
.qv-blog-author__body {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.qv-blog-author__photo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
}
.qv-blog-author__name {
    display: block;
    color: #000;
    font-size: 16px;
}
.qv-blog-author__position {
    display: block;
    color: #98a1a0;
    font-size: 14px;
}
.qv-blog-author-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px 25px;
    background: #f8f8f8;
    border-radius: 6px;
}
.qv-blog-author-card__photo {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 50%;
}
.qv-blog-author-card__name {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}
.qv-blog-author-card__position {
    margin-bottom: 10px;
    color: #98a1a0;
}
.qv-blog-author-card__description {
    color: #4a5680;
    line-height: 1.5;
}
/*end: автор*/

/*start: соседние статьи*/
.qv-blog-neighbours {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #e7e9e8;
}
.qv-blog-neighbours__item {
    width: 48%;
    color: #1d447a;
    text-decoration: none;
}
.qv-blog-neighbours__item--next {
    margin-left: auto;
    text-align: right;
}
.qv-blog-neighbours__label {
    display: block;
    margin-bottom: 5px;
    color: #98a1a0;
    font-size: 13px;
    text-transform: uppercase;
}
.qv-blog-neighbours__name {
    display: block;
    line-height: 1.3;
}
.qv-blog-neighbours__item:hover .qv-blog-neighbours__name {
    color: #399ec0;
}
/*end: соседние статьи*/

/*start: оформление блоков внутри текста статьи
  Разметку вставляет редактор сниппетами визуального редактора
  (см. bitrix/templates/ishop_custom/snippets/blog). */
.qv-blog-note {
    position: relative;
    margin: 25px 0;
    padding: 18px 20px 18px 60px;
    background: #fdf6e3;
    border-radius: 6px;
    line-height: 1.6;
}
.qv-blog-note:before {
    content: "\f06a";
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 24px;
    color: #e0a800;
}
.qv-blog-expert {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
    padding: 20px 25px;
    background: #f1f1f1;
    border-radius: 6px;
}
.qv-blog-expert__photo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.qv-blog-expert__text {
    line-height: 1.6;
}
.qv-blog-expert__name {
    margin-top: 10px;
    font-weight: bold;
    color: #000;
}
.qv-blog-expert__position {
    color: #98a1a0;
    font-size: 14px;
}
.qv-blog-media {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
}
.qv-blog-media img {
    width: 340px;
    border-radius: 6px;
    flex-shrink: 0;
}
.qv-blog-media--left img {
    margin-right: 25px;
}
.qv-blog-media--right {
    flex-direction: row-reverse;
}
.qv-blog-media--right img {
    margin-left: 25px;
}
.qv-blog-media__text {
    line-height: 1.6;
}
/*end: оформление блоков внутри текста*/

/*start: адаптив*/
@media (max-width: 1260px) {
    .qv-blog .qv-blog__content {
        width: calc(100% - 320px);
    }
}
@media (max-width: 1023px) {
    .container.qv-frontend-v2-container.qv-blog {
        flex-direction: column;
    }
    .qv-blog .qv-blog__content,
    .qv-blog .qv-blog__sidebar {
        width: 100%;
    }
    .qv-blog-toc__list {
        columns: 1;
    }
}
@media (max-width: 767px) {
    .qv-blog-cards {
        grid-template-columns: 1fr;
    }
    .qv-blog-article__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .qv-blog-rating {
        margin-top: 15px;
    }
    .qv-blog-article__copy {
        margin: 10px 0 0;
    }
    .qv-blog-media,
    .qv-blog-media--right {
        flex-direction: column;
    }
    .qv-blog-media img {
        width: 100%;
        margin: 0 0 15px;
    }
    .qv-blog-neighbours {
        flex-direction: column;
    }
    .qv-blog-neighbours__item,
    .qv-blog-neighbours__item--next {
        width: 100%;
        margin: 0 0 15px;
        text-align: left;
    }
    .qv-blog-author-card {
        flex-direction: column;
    }
    .qv-blog-author-card__photo {
        margin: 0 0 15px;
    }
}
/*end: адаптив*/
