:root {
    --blog-accent: #e80046;
    --blog-star-active: #F33364;
    --blog-star-inactive: #CFCFCF;
    --blog-text: #1b1b1b;
    --blog-muted: #8a8a8a;
    --blog-soft: #f3f0f1;
    --blog-card: #ffffff;
    --blog-line: #ececec;
    --blog-radius: 10px;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.blog-card {
    min-width: 0;
    background: var(--blog-card);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
}

.blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 319 / 181;
    overflow: hidden;
    text-decoration: none;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.025);
}

.blog-card__date {
    position: absolute;
    left: 22px;
    bottom: 16px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(34, 34, 34, .72);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.blog-card__body {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__title {
    color: var(--blog-text);
    text-decoration: none;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 20px;
}

.blog-card__title:hover {
    color: var(--blog-accent);
}

.blog-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    gap: 14px;
    align-items: end;
    margin-top: auto;
}

.blog-card__tags,
.blog-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 11px;
    border-radius: 4px;
    background: var(--blog-soft);
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
    color: #434343;
}

.blog-card__right {
    min-width: 0;
}

.blog-card-rating {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 9px;
    white-space: nowrap;
}

.blog-card-rating__label {
    font-size: 12px;
    color: #747474;
}

.blog-rating-static {
    display: inline-flex;
    gap: 2px;
}

.blog-star {
    width: 12px;
    height: 11px;
    display: inline-block;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background-color: var(--star-color, var(--blog-star-inactive));
    -webkit-mask: url('/assets/images/blog/star.svg') center / contain no-repeat;
    mask: url('/assets/images/blog/star.svg') center / contain no-repeat;
}

.blog-card__read {
    min-height: 32px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 5px;
    background: #db073d;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: opacity .2s ease, transform .2s ease;
}

.blog-card__read:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.blog-card__read img {
    width: 14px;
    height: 14px;
}

.blog-card__footer {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

.blog-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    color: #676767;
}

.blog-stat img {
    flex: 0 0 auto;
}

.blog-stat--time {
    justify-self: end;
}

/* DETAIL */
.blog-detail {
    min-width: 0;
    color: var(--blog-text);
}

.blog-detail__header {
    margin-bottom: 26px;
}

.blog-detail__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.02em;
}

.blog-detail__reading-time {
    justify-self: start;
    margin-bottom: 30px;
}

.blog-detail__meta-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(200px, 1fr) auto minmax(150px, .7fr);
    gap: 28px;
    align-items: center;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.blog-author__avatar {
    width: 89px;
    height: 89px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 89px;
}

.blog-author__name {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 5px;
    color: #373633;
}

.blog-author__experience {
    margin-bottom: 4px;
    font-size: 13px;
    color: #747474;
}

.blog-author__stats {
    display: flex;
    gap: 18px;
    margin-top: 5px;
}

.blog-detail__dates {
    display: grid;
    gap: 7px;
}

.blog-detail__date-row {
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    background: #fff;
    font-size: 14px;
    color: #505050;
    opacity: 0.9;
}

.blog-share__label {
    display: none;
    font-size: 13px;
    margin-bottom: 8px;
    color: #262626;
}

.blog-share__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-share__button {
    width: 39px;
    height: 39px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.blog-share__button:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.blog-share__button img {
    width: 100%;
    height: 100%;
    display: block;
}

.blog-detail__tags {
    display: grid;
    gap: 7px;
}

.blog-detail__tags .blog-tag {
    justify-content: center;
}

.blog-detail__hero {
    width: 100%;
    aspect-ratio: 980 / 339;
    border-radius: var(--blog-radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-detail__hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 262px;
    gap: 28px;
    align-items: start;
}

.blog-detail__main,
.blog-detail__aside {
    min-width: 0;
}
.blog-detail__aside {height:100%;}
.blog-summary-card,
.blog-side-toc {
    background: #fff;
    border-radius: var(--blog-radius);
}

.blog-summary-card {
    padding: 35px 36px 30px;
    margin-bottom: 38px;
}

.blog-summary-card__title,
.blog-side-toc__title,
.blog-related-block__title,
.blog-read-more__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.blog-summary-card__title {
    margin-bottom: 18px;
    color: #000;
}

.blog-toc-list {
    margin: 0;
    padding-left: 22px;
    list-style: decimal;
}

.blog-toc-list li {
    margin: 0 0 7px;
    padding-left: 3px;
}

.blog-toc-list a {
    color: var(--blog-text);
    text-decoration: none;
}

.blog-toc-list a:hover {
    color: var(--blog-accent);
}

.blog-article-content {
    font-size: 16px;
    line-height: 1.42;
    color: #121212;
}

.blog-article-content > :first-child {
    margin-top: 0;
}

.blog-article-content p {
    margin: 0 0 22px;
    font-size: 16px;
}

.blog-article-content h2 {
    scroll-margin-top: 24px;
    margin: 34px 0 16px;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 700;
}

.blog-article-content h3 {
    margin: 28px 0 14px;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
    list-style: disc;
}

.blog-article-content li {
    margin-bottom: 6px;
}

.blog-article-content ul li::marker {
    color: var(--blog-star-active);
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}


.blog-advice {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--blog-star-active);
    background: #fff;
    border-radius: 6px;
}

.blog-related-block__title {
    margin-bottom: 18px;
    color: #000;
}

.blog-related-block__list {
    display: grid;
    gap: 10px;
}

.blog-related-mini {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 84px;
    padding: 9px;
    background: #fff;
    border-radius: var(--blog-radius);
    color: var(--blog-text);
    text-decoration: none;
}

.blog-related-mini__image {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
}

.blog-related-mini__title {
    font-size: 13px;
    line-height: 1.12;
    font-weight: 700;
    color: #1a1a1a;
}

.blog-related-mini:hover .blog-related-mini__title {
    color: var(--blog-accent);
}

.blog-side-toc {
    position: sticky;
    top: 20px;
    margin-top: 18px;
    padding: 28px 20px;
}

.blog-side-toc__title {
    margin-bottom: 20px;
}

.blog-side-toc .blog-toc-list {
    font-size: 16px;
    line-height: 1.16;
    list-style: decimal;
}

.blog-read-more {
    margin-top: 40px;
}

.blog-read-more__title {
    color: #000;
    margin-bottom: 18px;
}

/* RATING */
.blog-rating-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-height: 20px;
}

.blog-rating-widget__meta {
    color: #777;
    font-size: 11px;
    white-space: nowrap;
}

.blog-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.blog-star--button {
    --star-color: var(--blog-star-inactive);
    width: 13px;
    height: 12px;
    cursor: pointer;
    transition: background-color .12s ease, transform .12s ease;
}


.blog-rating-widget:not(.is-voted) .blog-star--button:hover,
.blog-rating-widget:not(.is-voted) .blog-star--button:hover ~ .blog-star--button {
    --star-color: var(--blog-star-active);
    transform: scale(1.08);
}

.blog-rating-widget.is-voted .blog-star--button.is-selected {
    --star-color: var(--blog-star-active);
}

.blog-rating-widget.is-voted .blog-star--button:not(.is-selected) {
    --star-color: var(--blog-star-inactive);
}

.blog-rating-widget.is-voted .blog-star--button {
    cursor: default;
}

.blog-rating-widget.is-loading {
    opacity: .65;
    pointer-events: none;
}

.blog-rating-widget__message {
    flex-basis: 100%;
    min-height: 12px;
    color: #777;
    font-size: 10px;
}

.blog_page {
    background: #f5f5f5;
    padding: 0 20px;
}

.blog-advice__body p {
    font-size: 15px;
}



@media (max-width: 900px) {
    .blog-detail__meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-detail__tags {
        display: flex;
    }
}

@media (max-width: 767px) {

.blog_page h1 {font-size: 28px;}
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .blog-card__body {
        padding: 18px 20px 16px;
    }

    .blog-card__title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .blog-card__actions {
        grid-template-columns: minmax(0, 1fr) 111px;
        gap: 10px;
    }

    .blog-card-rating {
        gap: 5px;
    }

    .blog-card-rating__label {
        font-size: 9px;
    }

    .blog-card__read {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .blog-card__footer {
        gap: 12px;
    }

    .blog-stat {
        font-size: 15px;
        gap: 5px;
    }

    .blog-stat--time {
        justify-self: end;
    }

    .blog-detail__title {
        font-size: 28px;
        line-height: 1.02;
        margin-bottom: 16px;
    }

    .blog-detail__reading-time {
        margin-bottom: 26px;
    }

    .blog-detail__meta-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-detail__dates {
        gap: 5px;
    }

    .blog-detail__date-row {
        width: max-content;
        max-width: 100%;
    }

    .blog-share__label {
        display: block;
    }

    .blog-detail__tags {
        display: flex;
    }

    .blog-detail__hero {
        margin-top: 22px;
        margin-bottom: 24px;
        aspect-ratio: 319 / 181;
    }

    .blog-detail__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-summary-card {
        padding: 24px 20px 22px;
        margin-bottom: 24px;
    }

    .blog-summary-card__title,
    .blog-related-block__title,
    .blog-read-more__title {
        font-size: 20px;
    }

    .blog-article-content {
        font-size: 15px;
        line-height: 1.42;
    }

    .blog-article-content h2 {
        font-size: 22px;
        margin-top: 28px;
    }

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

    .blog-side-toc {
        display: none;
        position: static;
    }

    .blog-related-block {
        margin-top: 4px;
    }

    .blog-related-mini {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .blog-read-more {
        margin-top: 28px;
    }
}

@media (max-width: 390px) {
    .blog-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .blog-card__footer {
        grid-template-columns: auto auto 1fr;
        gap: 8px;
    }

    .blog-stat--time {
        font-size: 15px;
    }
}

.blog-article-content .blog-lead {
    margin-bottom: 30px;
}

.blog-article-content h4 {
    margin: 24px 0 12px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
}

.blog-article-content .blog-advice {
    margin: 26px 0;
    padding: 17px 18px 16px;
    border-left: 5px solid #db073d;
    border-radius: unset;
    background: #fff;
}

.blog-article-content .blog-advice > strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.blog-article-content .blog-advice p:last-child {
    margin-bottom: 0;
}

.blog-article-content .blog-content-image {
    margin: 26px 0 28px;
}

.blog-article-content .blog-content-image img {
    width: 100%;
    display: block;
    border-radius: 9px;
}

.blog-article-content .blog-note {
    margin: 26px 0;
    padding: 15px 18px;
    border: 2px solid #f33364;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    line-height: 1.42;
}

.blog-article-content .blog-final {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.45;
}

.blog-article-content .blog-final strong {
    font-weight: 900;
}

@media (max-width: 767px) {
    .blog-article-content .blog-lead {
        margin-bottom: 24px;
    }

    .blog-article-content h4 {
        font-size: 15px;
        margin-top: 22px;
    }

    .blog-article-content .blog-advice {
        margin: 22px 0;
        padding: 14px 14px 14px 16px;
    }

    .blog-article-content .blog-note {
        margin: 22px 0;
        padding: 13px 14px;
        font-size: 13px;
    }

    .blog-article-content .blog-final {
        font-size: 15px;
        line-height: 1.42;
    }
}

.blog-article-content ol.blog-accent-list {
    margin: 14px 0 28px;
    padding-left: 22px;
    list-style: decimal;
}

.blog-article-content ol.blog-accent-list li {
    margin: 4px 0;
    padding-left: 3px;
}

.blog-article-content ol.blog-accent-list li::marker {
    color: var(--blog-star-active);
    font-weight: 800;
}

.blog-article-content .blog-advice--master {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px 30px 24px 28px;
    background: #edebec;
}

.blog-article-content .blog-advice__master {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.blog-article-content .blog-advice__avatar {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 50%;
}

.blog-article-content .blog-advice__name {
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    font-weight: 700;
    color: #000;
}

.blog-article-content .blog-advice__title {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    color: #000;
}

.blog-article-content .blog-advice__body p {
    margin: 0;
}

.blog-article-content .blog-note {
    padding: 24px 50px;
    background: #fff5f7;
    border: 2px solid #f33364;
    color: #121212;
}

@media (max-width: 767px) {
    .blog-article-content .blog-advice--master {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 14px 16px 12px;
    }

    .blog-article-content .blog-advice__avatar {
        width: 58px;
        height: 58px;
    }

    .blog-article-content .blog-advice__name {
        font-size: 11px;
    }

    .blog-article-content .blog-advice__title {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .blog-article-content .blog-note {
        padding: 16px 18px;
    }

    .blog-author__avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}
    .blog-author__name {font-size:16px}
}
