/* ==========================================================================
   Diabelly Blog — CSS
   Inherits design system from landing (same tokens, gradients, fonts).
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Landing tokens (duplicated for standalone blog usage) */
    --primary: #6C5CE7;
    --primary-gradient: linear-gradient(123deg, #6C5CE7 8.5%, #A29BFE 50%, #DCD6F7 91.5%);
    --bg-features: #F0EEF6;
    --footer-bg: #2D3436;
    --text-dark: #101828;
    --text-body: #4A5565;
    --text-muted: #364153;
    --footer-text: #99A1AF;
    --footer-muted: #6A7282;
    --footer-divider: #364153;
    --white: #ffffff;
    --radius-card: 24px;
    --radius-btn: 9999px;
    --shadow-card: 0 4px 24px rgba(108, 92, 231, 0.08);
    --shadow-btn: 0 4px 16px rgba(108, 92, 231, 0.18);

    /* Blog-specific */
    --blog-text-body: #3A3A4E;
    --blog-text-secondary: #B8B5C8;
    --blog-disclaimer-bg: rgba(232, 228, 243, 0.6);
    --blog-tag-bg: #E8E4F3;
    --blog-ad-bg: rgba(255, 152, 0, 0.07);
    --blog-ad-text: #FF9800;

    /* Article hero: sticky cover + fixed header (set by JS on those pages) */
    --blog-detail-cover-height: 480px;
    --blog-header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-features);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Animations ---------- */
@keyframes bubble-float {
    0%   { transform: translate3d(0, 0, 0); }
    25%  { transform: translate3d(6px, -8px, 0); }
    50%  { transform: translate3d(-4px, -4px, 0); }
    75%  { transform: translate3d(4px, 6px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Layout ---------- */
.blog-main {
    flex: 1;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-section {
    padding: 40px 0;
}

.blog-section--related {
    background: var(--white);
    padding: 56px 0;
}

.blog-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(108, 92, 231, 0.12);
    color: var(--primary);
}

.blog-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ── Featured card (hero) ── */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.14);
}
.blog-featured-card__image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.blog-featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* На обложке: полупрозрачный bg категории почти нечитаем — тёмная подложка + белый текст, акцент цветом категории */
.blog-featured-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(18, 18, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid var(--category-accent, #6c5ce7);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
.blog-featured-card__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.blog-featured-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
}
.blog-featured-card__excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}
.blog-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blog-text-secondary, #B8B5C8);
    margin-top: 8px;
}
.blog-featured-card__author { font-weight: 500; color: var(--text-dark); }
.blog-featured-card__dot { opacity: 0.5; }

/* ── Popular list (numbered) ── */
.blog-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.blog-popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(108, 92, 231, 0.06);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.blog-popular-item:last-child { border-bottom: none; }
.blog-popular-item:hover {
    background: rgba(108, 92, 231, 0.03);
    border-radius: 12px;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}
.blog-popular-item__num {
    font-size: 28px;
    font-weight: 700;
    color: rgba(108, 92, 231, 0.2);
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.blog-popular-item__body { flex: 1; min-width: 0; }
.blog-popular-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 1.4;
}
.blog-popular-item__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--blog-text-secondary, #B8B5C8);
    flex-wrap: wrap;
}
.blog-popular-item__meta svg { opacity: 0.6; }
.blog-popular-item__dot { opacity: 0.4; }
.blog-popular-item__thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── Responsive: featured + popular ── */
@media (max-width: 768px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    .blog-featured-card__image { min-height: 200px; }
    .blog-featured-card__body { padding: 20px; }
    .blog-featured-card__title { font-size: 20px; }
    .blog-popular-item__thumb { width: 60px; height: 60px; }
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ====================================================================
   HEADER
   ==================================================================== */
.blog-header {
    background: var(--primary-gradient);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.blog-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.blog-header__logo {
    font-family: "Rouge Script", cursive;
    font-size: 36px;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
}

.blog-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.blog-header__link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

.blog-header__link:hover,
.blog-header__link--active {
    color: var(--white);
}

/* Header bubbles */
.blog-header__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.blog-header__bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: bubble-float 8s ease-in-out infinite;
}

.blog-header__bubble--1 {
    width: 120px;
    height: 120px;
    top: -30px;
    right: 10%;
    animation-delay: 0s;
}

.blog-header__bubble--2 {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 15%;
    animation-delay: 2s;
}

.blog-header__bubble--3 {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 30%;
    animation-delay: 4s;
    background: rgba(255, 255, 255, 0.05);
}

/* ====================================================================
   GLOBAL BLOG LAYOUT — fixed glass header, content from viewport top
   ==================================================================== */

.blog-layout .blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    background: rgba(108, 92, 231, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-layout .blog-header--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.blog-layout .blog-header__bubbles {
    opacity: 0.35;
}

.blog-layout .blog-main {
    padding-top: 0;
}

/* List: hero + chips start under overlapping header */
.blog-layout .blog-hero {
    padding: calc(var(--blog-header-height, 72px) + 28px) 24px 32px;
}

.blog-layout .blog-categories {
    top: var(--blog-header-height, 72px);
    z-index: 150;
    transition: top 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Когда стеклянный хедер скрыт — чипы прилипают к верху вьюпорта (класс на body задаёт JS) */
.blog-layout.blog-layout--header-hidden .blog-categories {
    top: 0;
}

/* Article without cover */
.blog-layout .blog-detail-topbar {
    padding-top: calc(var(--blog-header-height, 72px) + 16px);
}

/* Auth */
.blog-layout .blog-auth {
    padding-top: calc(var(--blog-header-height, 72px) + 32px);
    min-height: 100vh;
    box-sizing: border-box;
}

/* ====================================================================
   ARTICLE WITH COVER — sticky cover phase (header: see .blog-layout)
   ==================================================================== */

/* Taller than cover by ~header height so sticky cover “absorbs” that scroll, then scrolls away */
.blog-detail-cover-slot {
    min-height: calc(var(--blog-detail-cover-height) + var(--blog-header-height));
    position: relative;
}

.blog-page--article-cover .blog-detail-cover {
    position: sticky;
    top: 0;
    z-index: 1;
    max-height: none;
    border-radius: 0 0 28px 28px;
}

.blog-page--article-cover .blog-detail-cover__img {
    height: var(--blog-detail-cover-height);
}

.blog-page--article-cover .blog-detail-cover__back {
    top: calc(var(--blog-header-height) + 16px);
    z-index: 3;
}

@media (max-width: 768px) {
    :root {
        --blog-detail-cover-height: 300px;
    }
}

/* ====================================================================
   HERO (list page intro)
   ==================================================================== */
.blog-hero {
    text-align: center;
    padding: 48px 24px 32px;
}

.blog-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.blog-hero__subtitle {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 32px;
}

/* Search */
.blog-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.blog-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blog-text-secondary);
    pointer-events: none;
}

.blog-search__input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid transparent;
    border-radius: var(--radius-btn);
    background: var(--white);
    box-shadow: var(--shadow-card);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search__input::placeholder {
    color: var(--blog-text-secondary);
}

.blog-search__input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-btn);
}

/* ====================================================================
   CATEGORY CHIPS
   ==================================================================== */
.blog-categories {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.blog-categories__scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-categories__scroll::-webkit-scrollbar {
    display: none;
}

.blog-chip {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 500;
    background: var(--white);
    color: var(--text-muted);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
    border: none;
}

.blog-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}

.blog-chip--active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.blog-chip--active:hover {
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.28);
}

/* ====================================================================
   ARTICLE CARD
   ==================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-grid--related {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.blog-card--featured .blog-card__cover {
    flex: 0 0 50%;
    max-height: none;
}

.blog-card--featured .blog-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.blog-card--featured .blog-card__title {
    font-size: 28px;
}

.blog-card__cover {
    position: relative;
    overflow: hidden;
    max-height: 220px;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.03);
}

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

.blog-card__category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.5;
    white-space: pre-line;
    flex: 1;
    min-height: 0;
    white-space: pre-line;
    overflow: hidden;
    max-height: calc(1.5em * 5);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--blog-text-secondary);
}

.blog-card__date,
.blog-card__likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__icon {
    flex-shrink: 0;
}

/* ====================================================================
   ARTICLE DETAIL — COVER
   ==================================================================== */
.blog-detail-cover {
    position: relative;
    max-height: 480px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
}

.blog-detail-cover__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.blog-detail-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 60%);
    pointer-events: none;
}

.blog-detail-cover__back {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.blog-detail-cover__back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.15);
}

/* Top bar (no cover) */
.blog-detail-topbar {
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-detail-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.blog-detail-topbar__back:hover {
    opacity: 0.7;
}

/* ====================================================================
   ARTICLE DETAIL — CONTENT
   ==================================================================== */
.blog-detail {
    padding: 40px 0 0;
}

.blog-detail__container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-detail__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 16px;
}

.blog-detail__category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    min-height: 36px;
    box-sizing: border-box;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.blog-detail__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Author bar */
.blog-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blog-author-bar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.blog-author-bar__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-bar__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.blog-author-bar__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-author-bar__meta {
    font-size: 13px;
    color: var(--blog-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-author-bar__icon {
    flex-shrink: 0;
}

.blog-author-bar__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    background: var(--blog-tag-bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

/* Translations */
.blog-translations {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 14px;
}

.blog-translations__label {
    color: var(--blog-text-secondary);
}

.blog-translations__link {
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    background: var(--blog-tag-bg);
    color: var(--primary);
    font-weight: 500;
    transition: background 0.2s;
}

.blog-translations__link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Excerpt */
.blog-detail__excerpt {
    padding-left: 20px;
    border-left: 4px solid var(--primary);
    margin-bottom: 36px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-body);
    font-style: italic;
}

.blog-detail__excerpt p {
    margin: 0;
    white-space: pre-line;
}

/* ====================================================================
   ARTICLE BODY (content_html typography)
   ==================================================================== */
.blog-article-body {
    color: var(--blog-text-body);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.blog-article-body h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 16px;
    line-height: 1.2;
}

.blog-article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 36px 0 14px;
    line-height: 1.25;
}

.blog-article-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.blog-article-body h4,
.blog-article-body h5,
.blog-article-body h6 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 10px;
    line-height: 1.35;
}

.blog-article-body p {
    margin-bottom: 16px;
}

.blog-article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(108, 92, 231, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.blog-article-body a:hover {
    text-decoration-color: var(--primary);
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 16px 0;
    padding-left: 28px;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-features);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article-body code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background: var(--bg-features);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary);
}

.blog-article-body pre {
    margin: 24px 0;
    padding: 20px;
    background: #1e1e2e;
    border-radius: 12px;
    overflow-x: auto;
}

.blog-article-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #cdd6f4;
    font-size: 14px;
    line-height: 1.6;
}

.blog-article-body img {
    margin: 24px 0;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.blog-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.blog-article-body th,
.blog-article-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--blog-tag-bg);
}

.blog-article-body th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-features);
}

.blog-article-body hr {
    border: none;
    border-top: 1px solid var(--blog-tag-bg);
    margin: 32px 0;
}

/* ====================================================================
   DISCLAIMER (323-FZ)
   ==================================================================== */
.blog-disclaimer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--blog-disclaimer-bg);
    border-radius: 16px;
    margin: 32px 0;
}

.blog-disclaimer__icon {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.blog-disclaimer__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ====================================================================
   AD MARKER (347-FZ)
   ==================================================================== */
.blog-ad-marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    min-height: 36px;
    box-sizing: border-box;
    background: var(--blog-ad-bg);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
}

.blog-ad-marker__icon {
    color: var(--blog-ad-text);
    flex-shrink: 0;
}

.blog-ad-marker__label {
    font-weight: 700;
    color: var(--blog-ad-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-ad-marker__text {
    color: var(--text-body);
}

/* ====================================================================
   ARTICLE FOOTER (stats)
   ==================================================================== */
.blog-detail__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 40px;
    border-top: 1px solid var(--blog-tag-bg);
    margin-top: 8px;
}

.blog-detail__stats {
    display: flex;
    gap: 20px;
}

.blog-detail__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--blog-text-secondary);
}

/* ====================================================================
   PAGINATION
   ==================================================================== */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 20px;
}

.blog-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
}

.blog-pagination__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12);
}

.blog-pagination__btn--active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-btn);
    pointer-events: none;
}

.blog-pagination__dots {
    color: var(--blog-text-secondary);
    font-size: 14px;
    padding: 0 4px;
}

/* ====================================================================
   EMPTY STATE
   ==================================================================== */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
}

.blog-empty__text {
    font-size: 18px;
    color: var(--blog-text-secondary);
    margin-bottom: 24px;
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.28);
}
.blog-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.blog-btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}
.blog-btn--success {
    background: #4CAF50;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}
.blog-btn--success:hover { background: #43A047; }
.blog-btn--danger {
    background: #e53e3e;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.25);
}
.blog-btn--danger:hover { background: #c53030; }

.blog-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.blog-footer {
    background: var(--footer-bg);
    padding: 48px 0 32px;
    margin-top: auto;
}

.blog-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.blog-footer__brand {
    flex: 0 0 auto;
}

.blog-footer__logo {
    font-family: "Rouge Script", cursive;
    font-size: 36px;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.blog-footer__tagline {
    font-size: 14px;
    color: var(--footer-muted);
}

.blog-footer__links {
    display: flex;
    gap: 56px;
}

.blog-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-footer__col-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.blog-footer__link {
    font-size: 14px;
    color: var(--footer-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-footer__link:hover {
    color: var(--footer-text);
}

.blog-footer__divider {
    height: 1px;
    background: var(--footer-divider);
    margin-bottom: 24px;
}

.blog-footer__bottom {
    text-align: center;
}

.blog-footer__copyright {
    font-size: 13px;
    color: var(--footer-muted);
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

/* Tablet: 2-column grid */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card--featured {
        flex-direction: column;
    }

    .blog-card--featured .blog-card__cover {
        flex: none;
        max-height: 260px;
    }

    .blog-card--featured .blog-card__title {
        font-size: 24px;
    }

    .blog-hero__title {
        font-size: 36px;
    }

    .blog-detail__title {
        font-size: 28px;
    }

    .blog-section__title {
        font-size: 24px;
    }

    .blog-footer__top {
        flex-direction: column;
        gap: 28px;
    }
}

/* Mobile: 1-column */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-grid--related {
        grid-template-columns: 1fr;
    }

    .blog-hero__title {
        font-size: 28px;
    }

    .blog-hero__subtitle {
        font-size: 16px;
    }

    .blog-detail__title {
        font-size: 24px;
    }

    .blog-detail__excerpt {
        font-size: 16px;
    }

    .blog-article-body {
        font-size: 15px;
    }

    .blog-article-body h1 {
        font-size: 26px;
    }

    .blog-article-body h2 {
        font-size: 22px;
    }

    .blog-article-body h3 {
        font-size: 19px;
    }

    .blog-container {
        padding: 0 16px;
    }

    .blog-header__inner {
        padding: 0 16px;
    }

    .blog-categories__scroll {
        padding: 0 16px;
    }

    .blog-detail__container {
        padding: 0 16px;
    }

    .blog-detail-cover__img {
        height: 300px;
    }

    .blog-footer__links {
        flex-direction: column;
        gap: 28px;
    }

    .blog-card--featured .blog-card__body {
        padding: 20px;
    }

    .blog-author-bar {
        gap: 10px;
    }

    .blog-author-bar__verified {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .blog-section {
        padding: 28px 0;
    }

    .blog-section--related {
        padding: 40px 0;
    }
}

/* ====================================================================
   AUTH PAGES (login, OTP, error)
   ==================================================================== */

.blog-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 24px;
}

.blog-auth__card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.blog-auth__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.blog-auth__subtitle {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Social buttons */
.blog-auth__social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.blog-auth__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.blog-auth__social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.blog-auth__social-btn--vk {
    background: #0077FF;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 119, 255, 0.25);
}

.blog-auth__social-btn--google {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-auth__social-btn--apple {
    background: #000000;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.blog-auth__social-icon {
    flex-shrink: 0;
}

/* Divider */
.blog-auth__divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.blog-auth__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--blog-tag-bg);
}

.blog-auth__divider-text {
    position: relative;
    padding: 0 16px;
    background: var(--white);
    font-size: 14px;
    color: var(--blog-text-secondary);
}

/* Form */
.blog-auth__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-auth__field {
    width: 100%;
}

.blog-auth__input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--blog-tag-bg);
    border-radius: var(--radius-btn);
    background: var(--white);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-auth__input::placeholder {
    color: var(--blog-text-secondary);
}

.blog-auth__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.blog-auth__submit {
    width: 100%;
}

/* OTP input */
.blog-auth__otp-group {
    display: flex;
    justify-content: center;
}

.blog-auth__otp-input {
    width: 140px;
    padding: 16px;
    border: 2px solid var(--blog-tag-bg);
    border-radius: 16px;
    background: var(--white);
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-auth__otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Error message */
.blog-auth__error {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Error page */
.blog-auth__error-icon {
    margin-bottom: 20px;
}

.blog-auth__error-text {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.5;
}

.blog-auth__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Resend */
.blog-auth__resend {
    margin-top: 16px;
}

.blog-auth__resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.blog-auth__resend-btn:hover {
    opacity: 0.7;
}

/* Back link */
.blog-auth__back {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-auth__back:hover {
    opacity: 0.7;
}

/* Header user name */
.blog-header__user {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

/* Language switcher */
.blog-header__lang {
    display: flex;
    gap: 4px;
}

.blog-header__lang-btn {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-header__lang-btn:hover {
    color: #fff;
}

.blog-header__lang-btn--active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Auth responsive */
@media (max-width: 600px) {
    .blog-auth {
        padding: 24px 16px;
    }

    .blog-auth__card {
        padding: 28px 20px;
    }

    .blog-auth__title {
        font-size: 24px;
    }
}

/* ---------- Comments ---------- */
.blog-comments { margin: 32px 0; padding: 0 20px; }
.blog-comments__title { font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--text-dark); }
.blog-comments__form { margin-bottom: 24px; }
.blog-comments__textarea {
    width: 100%; border: 1px solid #E8E4F3; border-radius: 12px;
    padding: 12px 16px; font-size: 14px; font-family: "Inter", sans-serif;
    resize: vertical; min-height: 80px;
}
.blog-comments__textarea:focus { outline: none; border-color: var(--primary); }
.blog-comments__textarea--reply { min-height: 60px; }
.blog-comments__submit { margin-top: 8px; }
.blog-comments__login-prompt {
    text-align: center; padding: 24px; background: var(--blog-disclaimer-bg);
    border-radius: 16px; margin-bottom: 24px;
}
.blog-comments__empty { color: var(--blog-text-secondary); text-align: center; padding: 24px; }
.blog-comments__error { color: #e53e3e; padding: 12px; background: #fff5f5; border-radius: 8px; margin-bottom: 12px; }
.blog-comments__pending { color: var(--primary); padding: 12px; background: rgba(108,92,231,0.05); border-radius: 8px; margin-bottom: 12px; }

/* Comment item */
.blog-comment { padding: 16px 0; border-bottom: 1px solid #F0EEF6; }
.blog-comment--depth-1 { margin-left: 32px; }
.blog-comment--depth-2 { margin-left: 64px; }
.blog-comment--depth-3 { margin-left: 96px; }
@media (max-width: 600px) {
    .blog-comment--depth-1 { margin-left: 16px; }
    .blog-comment--depth-2 { margin-left: 32px; }
    .blog-comment--depth-3 { margin-left: 48px; }
}
.blog-comment__header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.blog-comment__author { font-weight: 500; font-size: 13px; color: var(--text-dark); }
.blog-comment__date { font-size: 11px; color: var(--blog-text-secondary); }
.blog-comment__body { font-size: 14px; line-height: 1.6; color: var(--blog-text-body); }
.blog-comment__deleted { color: var(--blog-text-secondary); }
.blog-comment__actions { display: flex; gap: 12px; margin-top: 8px; }
.blog-comment__reply-btn, .blog-comment__delete-btn, .blog-comment__cancel-btn, .blog-comment__approve-btn {
    background: none; border: none; cursor: pointer; font-size: 12px; color: var(--primary);
    padding: 0;
}
.blog-comment__delete-btn { color: #e53e3e; }
.blog-comment__approve-btn {
    display: inline-flex; align-items: center; gap: 4px;
    color: #4CAF50; font-weight: 600;
}
.blog-comment__approve-btn:hover { color: #388E3C; }
.blog-comment--pending {
    border-left: 3px solid #FF9800;
    background: rgba(255, 152, 0, 0.04);
    padding-left: 12px;
}
.blog-comment__pending-badge {
    font-size: 11px; font-weight: 500;
    color: #FF9800; background: rgba(255, 152, 0, 0.1);
    padding: 2px 8px; border-radius: 6px;
}
.blog-comment__reply-form { margin-top: 12px; }
.blog-comment__show-replies {
    background: none; border: none; cursor: pointer; color: var(--primary);
    font-size: 13px; margin-top: 8px; padding: 0;
}

/* ---------- Like button ---------- */
.blog-like-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #E8E4F3; border-radius: 20px;
    padding: 6px 14px; cursor: pointer; transition: all 0.2s;
    font-size: 14px; color: var(--blog-text-secondary);
}
.blog-like-btn:hover { border-color: #e53e3e; }
.blog-like-btn--active { border-color: #e53e3e; color: #e53e3e; }
.blog-like-btn__icon { flex-shrink: 0; vertical-align: middle; }
.blog-like-btn__count { font-weight: 500; }

/* ── Preview action (draft/review status block) ── */
.blog-preview-action {
    margin: 28px 0;
    padding: 0;
    background: linear-gradient(145deg, rgba(108, 92, 231, 0.06) 0%, rgba(255, 255, 255, 0.95) 42%, var(--white) 100%);
    border-radius: var(--radius-card, 24px);
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06), 0 0 0 1px rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.18);
    overflow: hidden;
    text-align: left;
}

.blog-preview-action__inner {
    padding: 28px 28px 26px;
    max-width: 560px;
    margin: 0 auto;
}

.blog-preview-action__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.blog-preview-action__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.blog-preview-action__icon--draft {
    background: linear-gradient(160deg, rgba(124, 122, 138, 0.18), rgba(124, 122, 138, 0.08));
    color: #5c5a6b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.blog-preview-action__icon--review {
    background: linear-gradient(160deg, rgba(108, 92, 231, 0.22), rgba(108, 92, 231, 0.08));
    color: #6c5ce7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.blog-preview-action__head-text {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.blog-preview-action__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c7a8a;
    margin-bottom: 6px;
}

.blog-preview-action__badge--review {
    color: #6c5ce7;
}

.blog-preview-action__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-dark, #1a1a2e);
}

.blog-preview-action__lead {
    font-size: 15px;
    color: var(--text-muted, #5c5a6b);
    margin: 0 0 14px;
    line-height: 1.55;
}

.blog-preview-action__list {
    margin: 0 0 22px;
    padding: 14px 16px 14px 36px;
    list-style: disc;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.blog-preview-action__list li {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--blog-text-secondary, #4a4a5c);
}

.blog-preview-action__list li:last-child {
    margin-bottom: 0;
}

.blog-preview-action__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    justify-items: stretch;
    align-items: stretch;
}

.blog-preview-action__buttons > a.blog-preview-action__btn,
.blog-preview-action__buttons > .blog-preview-action__form {
    width: 100%;
    min-width: 0;
}

.blog-preview-action__buttons--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.blog-preview-action__form {
    display: flex;
    margin: 0;
    min-width: 0;
}

.blog-preview-action__btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-preview-action .blog-btn.blog-preview-action__btn {
    display: flex;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.blog-preview-action__form .blog-preview-action__btn {
    flex: 1 1 auto;
}

.blog-preview-action .blog-btn {
    align-items: center;
    gap: 8px;
}

@media (max-width: 520px) {
    .blog-preview-action__inner {
        padding: 22px 18px 20px;
    }

    .blog-preview-action__buttons {
        grid-template-columns: 1fr;
    }

    .blog-preview-action__buttons--single {
        max-width: none;
    }
}

/* ====================================================================
   LEGAL — authors agreement (landing-style policy layout)
   ==================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-legal-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(133deg, #6c5ce7 10.4%, #a29bfe 68.5%, #dcd6f7 96%);
    padding: 56px 24px 48px;
    text-align: center;
}

.blog-layout .blog-legal-hero {
    border-radius: 0 0 28px 28px;
    padding: calc(var(--blog-header-height, 72px) + 40px) 24px 48px;
}

.blog-legal-hero__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blog-legal-hero__bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: bubble-float 8s ease-in-out infinite;
}

.blog-legal-hero__bubble--1 {
    width: 100px;
    height: 100px;
    top: -24px;
    right: 12%;
    animation-duration: 20s;
}

.blog-legal-hero__bubble--2 {
    width: 72px;
    height: 72px;
    bottom: -16px;
    left: 14%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.blog-legal-hero__bubble--3 {
    width: 48px;
    height: 48px;
    top: 20%;
    right: 28%;
    animation-delay: 4s;
    background: rgba(255, 255, 255, 0.08);
}

.blog-legal-hero__bubble--4 {
    width: 56px;
    height: 56px;
    bottom: 18%;
    right: 8%;
    animation-delay: 1s;
    opacity: 0.35;
    animation-duration: 22s;
}

.blog-legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.blog-legal-hero__brand {
    font-family: "Rouge Script", cursive;
    font-size: clamp(48px, 12vw, 72px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 8px;
}

.blog-legal-hero__subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-legal-hero__description {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.blog-policy {
    background: #f9fafb;
    padding: 56px 0 80px;
}

.blog-policy__content {
    max-width: 840px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-body);
}

.blog-policy__content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 32px 0 12px;
}

.blog-policy__content p {
    margin-bottom: 12px;
}

.blog-policy__content ul {
    margin: 8px 0 16px;
    padding-left: 1.25rem;
}

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

.blog-policy__content ul ul {
    margin-top: 6px;
    margin-bottom: 8px;
}

.blog-policy__content code {
    font-size: 0.95em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

.blog-policy__content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-policy__content a:hover {
    color: #5548c4;
}

.blog-policy__date {
    margin-bottom: 24px;
}

.blog-policy__back {
    margin-top: 40px;
    padding-top: 8px;
}

.blog-policy__back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-btn);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-policy__back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.28);
    color: var(--primary);
}
