.ruelka-blog-page {
    background-color: #f4f4f4;
    padding-bottom: 60px;
}

.ruelka-blog-hero {
    padding-top: 105px;
}

.ruelka-blog-hero .t-container {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    padding-left: 40px;
    padding-right: 40px;
}

.ruelka-blog-list .t-container {
    max-width: 1200px;
}

.ruelka-blog-hero__inner {
    position: relative;
    width: 100%;
    min-height: 30vh;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #de2525;
    background-image: url('../images/blog-hero-frame-72-4.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ruelka-blog-hero__title {
    margin: 0;
    color: #ffffff;
    font-family: 'SoyuzGrotesk', 'Manrope', sans-serif;
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ruelka-blog-list {
    padding: 60px 0;
}

.ruelka-blog-grid {
    display: grid;
    gap: 32px 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ruelka-blog-card {
    margin: 0;
}

.ruelka-blog-card__link {
    display: block;
    height: 100%;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
}

.ruelka-blog-card__media {
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 100 / 65;
}

.ruelka-blog-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.ruelka-blog-card__body {
    padding: 20px 30px 25px;
}

.ruelka-blog-card__title {
    margin: 0 0 12px;
    color: #de2525;
    font-family: 'SoyuzGrotesk', 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.23;
    font-weight: 500;
}

.ruelka-blog-card__excerpt {
    margin: 0;
    color: #232222;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.ruelka-blog-empty {
    padding: 40px 0;
    text-align: center;
    color: #232222;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
}

.ruelka-blog-pagination .ruelka-catalog__page.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media screen and (max-width: 1199px) {
    .ruelka-blog-list .t-container {
        max-width: 980px;
    }

    .ruelka-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ruelka-blog-card__body {
        padding: 18px 22px 22px;
    }
}

@media screen and (max-width: 959px) {
    .ruelka-blog-hero {
        padding-top: 95px;
    }

    .ruelka-blog-list .t-container {
        max-width: 660px;
    }

    .ruelka-blog-hero__title {
        font-size: 36px;
    }

    .ruelka-blog-grid {
        gap: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 639px) {
    .ruelka-blog-hero {
        padding-top: 90px;
    }

    .ruelka-blog-hero .t-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ruelka-blog-hero__inner {
        min-height: 30vh;
        border-radius: 30px;
    }

    .ruelka-blog-hero__title {
        font-size: 26px;
    }

    .ruelka-blog-list {
        padding: 30px 0 45px;
    }

    .ruelka-blog-grid {
        gap: 20px;
        grid-template-columns: minmax(0, 1fr);
    }

    .ruelka-blog-card__body {
        padding: 16px 16px 20px;
    }

    .ruelka-blog-card__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .ruelka-blog-card__excerpt {
        font-size: 14px;
    }
}


/* ===== Article Content Styles (single post) ===== */
body.single-post #main .scroll-table {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

body.single-post #main .scroll-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    border: 0;
}

body.single-post #main .scroll-table th,
body.single-post #main .scroll-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: normal;
    vertical-align: top;
    font-size: 0.95rem;
}

body.single-post #main .scroll-table thead th {
    background: #ffffff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

body.single-post #main .scroll-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

body.single-post #main .scroll-table::-webkit-scrollbar {
    height: 12px;
}

body.single-post #main .scroll-table::-webkit-scrollbar-thumb {
    background: #c8cdd4;
    border-radius: 8px;
}

@media (max-width: 768px) {
    body.single-post #main .scroll-table::after {
        content: none !important;
    }
}

body.single-post #main .internal-link-block {
    margin: 24px 0;
    padding: 16px 18px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 16px;
}

body.single-post #main .internal-link-emoji {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.single-post #main .internal-link-emoji svg {
    width: 100%;
    height: 100%;
    display: block;
}

body.single-post #main .internal-link-title {
    font-weight: 600;
    margin-right: 6px;
    color: #0ea5e9;
    font-size: 0.9em;
    line-height: 1;
}

body.single-post #main .internal-link-button {
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.3;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: transform 0.06s ease, opacity 0.2s;
}

body.single-post #main .internal-link-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

body.single-post #main img.emoji[alt="??"] {
    animation: none !important;
    height: auto !important;
    width: auto !important;
}

body.single-post #main .img-center {
    display: block;
    margin: 16px 0 18px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

body.single-post #main .rounded-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
}

body.single-post #main .info-block.tip {
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(0deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.12)), #ffffff;
    color: #1f2937;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    border-left: 4px solid #0ea5e9;
}

body.single-post #main .info-block.tip:before {
    content: '??';
    position: absolute;
    left: 12px;
    top: -12px;
    font-size: 20px;
}

@media (max-width: 600px) {
    body.single-post #main .info-block.tip {
        font-size: 15px;
        padding: 14px 14px;
    }

    body.single-post #main .info-block.tip:before {
        left: 8px;
        top: -10px;
    }
}

body.single-post #main .info-block.tip:nth-of-type(2),
body.single-post #main .info-block.tip:nth-of-type(3) {
    background: linear-gradient(0deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.12)), #ffffff;
    color: #1f2937;
    border-left: 4px solid #0ea5e9;
}

body.single-post #main .cta-block {
    margin: 28px 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f7f8fa;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

body.single-post #main .cta-button {
    display: inline-block;
    padding: 12px 18px !important;
    border-radius: 12px;
    background: #0ea5e9;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28) !important;
    transition: transform 0.06s ease, opacity 0.2s;
    animation: none !important;
}

body.single-post #main .cta-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

body.single-post #main .cta-button:active {
    transform: translateY(1px);
}

body.single-post #main .cta-button::before {
    content: none !important;
}

body.single-post #main .table-container {
    overflow-x: auto;
    padding: 0;
    margin: 16px 0;
}

body.single-post #main .table-container table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

body.single-post #main .table-container th,
body.single-post #main .table-container td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    position: static;
}

body.single-post #main .table-container th {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

body.single-post #main .table-container tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

body.single-post #main .table-container td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

body.single-post #main .table-container td:first-child:before {
    content: none;
}

body.single-post #main .stage-indicator,
body.single-post #main .risk-warning {
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

body.single-post #main tr,
body.single-post #main tr:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    body.single-post #main .table-container th,
    body.single-post #main .table-container td {
        padding: 12px 12px;
        font-size: 0.95rem;
    }
}

body.single-post #main table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

body.single-post #main th,
body.single-post #main td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    position: static;
}

body.single-post #main th {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

body.single-post #main tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

body.single-post #main tr {
    transition: none;
    position: static;
    animation: none;
}

body.single-post #main tr:hover {
    background: inherit;
    transform: none;
    box-shadow: none;
}

body.single-post #main td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

body.single-post #main td:first-child:before {
    content: none;
}

@media (max-width: 768px) {
    body.single-post #main th,
    body.single-post #main td {
        padding: 12px 12px;
        font-size: 0.95rem;
    }

    body.single-post #main .stage-indicator {
        display: block;
        margin-bottom: 5px;
        text-align: center;
    }
}


/* ===== Single Article Layout ===== */
.ruelka-article-page {
    background: #f4f4f4;
    padding: 108px 0 70px;
}

.ruelka-article-section .t-container {
    max-width: 1180px;
}

.ruelka-article-card {
    margin: 0;
    padding: 56px 72px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.07);
}

.ruelka-article-header {
    margin-bottom: 32px;
}

.ruelka-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ruelka-article-meta__link,
.ruelka-article-meta__date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.ruelka-article-meta__link {
    color: #de2525;
    background: rgba(222, 37, 37, 0.1);
    text-decoration: none;
}

.ruelka-article-meta__link:hover {
    background: rgba(222, 37, 37, 0.16);
}

.ruelka-article-meta__date {
    color: #5f5f5f;
    background: #f5f5f5;
}

.ruelka-article-title {
    margin: 0;
    color: #16161d;
    font-family: 'SoyuzGrotesk', 'Manrope', sans-serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ruelka-article-thumb {
    margin: 0 0 32px;
    border-radius: 24px;
    overflow: hidden;
}

.ruelka-article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
}

.ruelka-article-content {
    color: #26262b;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.ruelka-article-content > *:first-child {
    margin-top: 0;
}

.ruelka-article-content > *:last-child {
    margin-bottom: 0;
}

.ruelka-article-content p {
    margin: 0 0 1.1em;
}

.ruelka-article-content h2,
.ruelka-article-content h3,
.ruelka-article-content h4 {
    margin: 1.35em 0 0.6em;
    color: #111318;
    line-height: 1.24;
    font-family: 'SoyuzGrotesk', 'Manrope', sans-serif;
    font-weight: 500;
}

.ruelka-article-content h2 {
    font-size: clamp(29px, 3.4vw, 42px);
}

.ruelka-article-content h3 {
    font-size: clamp(24px, 2.8vw, 34px);
}

.ruelka-article-content h4 {
    font-size: clamp(20px, 2.1vw, 26px);
}

.ruelka-article-content ul,
.ruelka-article-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.35em;
}

.ruelka-article-content li {
    margin-bottom: 0.3em;
}

.ruelka-article-content blockquote {
    margin: 1.4em 0;
    padding: 20px 24px;
    border-left: 4px solid #de2525;
    border-radius: 14px;
    background: #fbfbfb;
    color: #1d1d22;
}

.ruelka-article-content a {
    color: #de2525;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ruelka-article-content a:hover {
    color: #b71f1f;
}

.ruelka-article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    margin: 18px auto;
}

.ruelka-article-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #5d5d63;
}

.ruelka-article-pages > span,
.ruelka-article-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #dedede;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.ruelka-article-pages > span,
.ruelka-article-pages a:hover {
    border-color: #de2525;
    color: #de2525;
}

.ruelka-related {
    margin-top: 44px;
    padding: 34px 34px 38px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.07);
}

.ruelka-related__title {
    margin: 0 0 24px;
    color: #191a20;
    font-family: 'SoyuzGrotesk', 'Manrope', sans-serif;
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 500;
    line-height: 1.08;
}

.ruelka-related__grid {
    display: grid;
    gap: 24px 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ruelka-related-card {
    margin: 0;
}

.ruelka-related-card__link {
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f8f8f8;
}

.ruelka-related-card__media {
    aspect-ratio: 100 / 65;
    overflow: hidden;
    background: #ededed;
}

.ruelka-related-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ruelka-related-card__link:hover .ruelka-related-card__media img {
    transform: scale(1.03);
}

.ruelka-related-card__body {
    padding: 16px 16px 18px;
}

.ruelka-related-card__title {
    margin: 0;
    color: #1f2026;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.ruelka-related-card__date {
    margin: 8px 0 0;
    color: #7d7d85;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.3;
}

@media screen and (max-width: 1199px) {
    .ruelka-article-section .t-container {
        max-width: 980px;
    }

    .ruelka-article-card {
        padding: 40px 38px;
    }

    .ruelka-article-content {
        font-size: 18px;
    }

    .ruelka-related {
        padding: 28px 24px 30px;
    }

    .ruelka-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 959px) {
    .ruelka-article-page {
        padding-top: 95px;
    }

    .ruelka-article-section .t-container {
        max-width: 660px;
    }

    .ruelka-article-card {
        border-radius: 22px;
        padding: 30px 24px;
    }

    .ruelka-article-thumb {
        margin-bottom: 24px;
        border-radius: 18px;
    }

    .ruelka-article-content {
        font-size: 17px;
        line-height: 1.66;
    }

    .ruelka-related {
        border-radius: 22px;
    }

    .ruelka-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 639px) {
    .ruelka-article-page {
        padding-top: 92px;
        padding-bottom: 45px;
    }

    .ruelka-article-section .t-container {
        max-width: none;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ruelka-article-card {
        border-radius: 16px;
        padding: 24px 16px;
    }

    .ruelka-article-header {
        margin-bottom: 20px;
    }

    .ruelka-article-meta {
        margin-bottom: 10px;
    }

    .ruelka-article-meta__link,
    .ruelka-article-meta__date {
        font-size: 12px;
        min-height: 24px;
        padding: 3px 10px;
    }

    .ruelka-article-title {
        font-size: clamp(28px, 8.8vw, 36px);
    }

    .ruelka-article-thumb {
        border-radius: 14px;
    }

    .ruelka-article-content {
        font-size: 16px;
        line-height: 1.62;
    }

    .ruelka-article-content h2 {
        font-size: 26px;
    }

    .ruelka-article-content h3 {
        font-size: 22px;
    }

    .ruelka-article-content h4 {
        font-size: 19px;
    }

    .ruelka-article-content blockquote {
        padding: 16px;
    }

    .ruelka-related {
        margin-top: 18px;
        padding: 22px 14px;
        border-radius: 16px;
    }

    .ruelka-related__title {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .ruelka-related__grid {
        gap: 14px;
        grid-template-columns: minmax(0, 1fr);
    }

    .ruelka-related-card__body {
        padding: 14px 14px 16px;
    }

    .ruelka-related-card__title {
        font-size: 16px;
    }
}
