/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-3.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-4.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-1.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-7.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-5.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(./fonts/inter-6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-3.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-4.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-1.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-7.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-5.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(./fonts/inter-6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-3.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-4.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-1.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-7.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-5.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(./fonts/inter-6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-3.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-4.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-1.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-7.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-5.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(./fonts/inter-6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-3.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-4.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-1.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}

/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-7.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-5.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-2.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(./fonts/inter-6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --- ORIGINAL STYLES --- */

/* ==========================================================================
   CSS Variables (Design Tokens) - Ruby / Swiss Clean Theme
   ========================================================================== */
:root {
    /* Colors */
    --ruby-primary: #e62e2d;
    /* Primary red accent */
    --ruby-hover: #cc2524;
    --ruby-tint: #ffebe5;

    --surface: #ffffff;
    --surface-secondary: #f4f5f7;
    --surface-border: #e2e8f0;

    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Spacing */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-48: 48px;
    --sp-64: 64px;
    --sp-80: 80px;
    --sp-120: 120px;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

    /* Layout */
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base 16px */
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
        /* Slightly smaller base font on very narrow screens to fit more text */
    }
}

body {
    font-family: var(--font-primary);
    color: var(--text-body);
    background-color: var(--surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-16);
    /* Better for phones */
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--sp-24);
    }
}

.section-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    /* Fluid typography */
    margin-bottom: clamp(24px, 5vw, var(--sp-48));
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
    color: var(--text-body);
    margin-bottom: clamp(32px, 6vw, var(--sp-48));
    line-height: 1.5;
}

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

.section-gray {
    background-color: var(--surface-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.with-cursor {
    position: relative;
    display: inline-block;
}

.with-cursor::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -24px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 2.5 L18.5 12.5 L12.5 13 L15.5 19.5 L13 20.5 L10 14 L6.5 17.5 V2.5Z' fill='white' stroke='%23111111' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
    animation: cursor-click 2.5s infinite ease-in-out;
}

.btn.with-cursor::after {
    right: -8px;
    /* Closer for buttons */
}

@keyframes cursor-click {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    15% {
        transform: translate(-4px, -4px) scale(1);
    }

    20% {
        transform: translate(-4px, -4px) scale(0.85);
        /* Click press */
    }

    25% {
        transform: translate(-4px, -4px) scale(1);
        /* Click release */
    }
}

.btn--primary {
    background-color: var(--ruby-primary);
    color: var(--text-white);
}

.btn--primary:hover {
    background-color: var(--ruby-hover);
    transform: translateY(-1px);
}

.btn--outline {
    border: 1.5px solid var(--ruby-primary);
    color: var(--ruby-primary);
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--outline:hover {
    background-color: var(--ruby-primary);
    color: var(--text-white);
}

.btn--large {
    padding: var(--sp-16) var(--sp-32);
    font-size: clamp(1rem, 3vw, 1.125rem);
}

.link-primary {
    color: var(--ruby-primary);
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: var(--sp-16) 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ruby-primary);
    letter-spacing: -0.5px;
}

.header__nav {
    display: none;
    /* Hide on mobile by default */
    gap: var(--sp-32);
}

.header__link {
    font-weight: 500;
    color: var(--text-heading);
}

.header__link:hover {
    color: var(--ruby-primary);
}

.header__right {
    display: flex;
    align-items: center;
    gap: var(--sp-16);
}

.header__social,
.footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__social:hover,
.footer__social:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.header__btn {
    display: none;
    /* Hide on mobile */
}

/* Скрыть иконку TG в шапке на мобильных — она есть в меню */
.header__social {
    display: none;
}

.header__burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    transition: all 0.3s;
}

/* Mobile Nav Active State (Toggled via JS) */
.header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--sp-24);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
}

/* Responsive Header */
@media (min-width: 1024px) {
    .header__nav {
        display: flex;
    }

    .header__btn {
        display: inline-flex;
    }

    .header__burger {
        display: none;
    }

    .header__social {
        display: inline-flex;
    }
}

/* Кнопки только в мобильном меню — всегда скрыты на десктопе */
.nav__mobile-actions {
    display: none;
}

/* Показываем только когда мобильное меню открыто */
.header__nav.active .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
    padding-top: var(--sp-16);
    margin-top: var(--sp-8);
    border-top: 1px solid var(--surface-border);
}

.nav__tg-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: clamp(48px, 10vw, var(--sp-80)) 0 clamp(40px, 8vw, var(--sp-64));
    background: linear-gradient(180deg, var(--surface-secondary) 0%, var(--surface) 100%);
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.25rem, 8vw, 4rem);
    /* Responsive typography */
    margin-bottom: clamp(16px, 4vw, var(--sp-24));
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 4.5vw, 1.25rem);
    color: var(--text-body);
    margin-bottom: clamp(32px, 8vw, var(--sp-48));
    line-height: 1.5;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-16);
    justify-content: center;
    margin-bottom: var(--sp-48);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    background-color: var(--surface);
    padding: var(--sp-8) var(--sp-16);
    border-radius: 100px;
    border: 1px solid var(--surface-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-12);
}

.hero__microtext {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Check List
   ========================================================================== */
.check-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
    margin-bottom: var(--sp-48);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.check-list__item {
    display: flex;
    align-items: flex-start;
    /* Better for multiline text on mobile */
    gap: var(--sp-12);
    font-size: clamp(1rem, 4vw, 1.125rem);
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.4;
}

.check-list__icon {
    flex-shrink: 0;
    color: var(--ruby-primary);
    margin-top: 2px;
    /* Align icon with first line of wrapped text */
}

/* Split Hero Variant */
.hero--split .hero__container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-48);
}

@media (min-width: 1024px) {
    .hero--split .hero__container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .hero--split .hero__content {
        flex: 1;
        text-align: left;
        margin: 0;
        max-width: 550px;
    }

    .hero--split .hero__title {
        font-size: clamp(2rem, 3.5vw, 3rem);
        line-height: 1.15;
    }

    .hero--split .check-list {
        margin-bottom: var(--sp-24);
        margin-left: 0;
        margin-right: 0;
    }

    .hero--split .hero__cta-wrapper {
        align-items: flex-start;
    }

    .hero__image-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.hero__image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Мобильная картинка в теле контента */
.hero__image--mobile {
    display: block;
    max-width: 460px;
    width: 100%;
    margin: var(--sp-24) auto var(--sp-48);
}

/* Скрыть мобильную картинку на десктопе */
@media (min-width: 1024px) {
    .hero__image--mobile {
        display: none;
    }

    /* Показать только десктопный image-wrapper */
    .hero__image-wrapper {
        display: flex;
    }
}

/* Скрыть десктопный image-wrapper на мобильных */
@media (max-width: 1023px) {

    .hero__image-wrapper,
    .process-split__image-wrapper,
    .support__image-wrapper,
    .pain-split__image-wrapper {
        display: none;
    }

    /* Мобильные изображения — по центру, укрупнили до 460px */
    .hero__image,
    .pain-split__image--mobile,
    .process-split__image--mobile,
    .support__image--mobile {
        max-width: 460px;
        width: 100%;
        margin: var(--sp-24) auto;
        display: block;
    }
}

/* Скрыть мобильные изображения на десктопе */
@media (min-width: 1024px) {

    .hero__image--mobile,
    .pain-split__image--mobile,
    .process-split__image--mobile,
    .support__image--mobile {
        display: none;
    }
}

/* ==========================================================================
   Metrics Block
   ========================================================================== */
.metrics {
    padding: clamp(32px, 8vw, var(--sp-48)) 0;
}

.metrics__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-32);
    text-align: center;
}

@media (min-width: 640px) {
    .metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .metrics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card__value {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    color: var(--ruby-primary);
    line-height: 1;
    margin-bottom: var(--sp-8);
}

.metric-card__label {
    font-weight: 600;
    color: var(--text-heading);
}

/* ==========================================================================
   Pain Points
   ========================================================================== */
.pain-points {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-32);
    margin-bottom: var(--sp-48);
}

@media (min-width: 1024px) {
    .pain-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pain-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, var(--sp-32));
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

.pain-card__header {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
}

.pain-card__title {
    font-size: 1.25rem;
}

.pain-card__solution {
    margin-top: auto;
    padding-top: var(--sp-16);
    border-top: 1px solid var(--surface-border);
    color: var(--text-heading);
    font-weight: 600;
}

.pain-points__cta {
    text-align: center;
    font-size: 1.125rem;
}

/* ==========================================================================
   Pain Points Split (Variant 2)
   ========================================================================== */
.pain-split {
    display: flex;
    flex-direction: column;
    gap: var(--sp-48);
}

@media (min-width: 1024px) {
    .pain-split {
        flex-direction: row;
        align-items: center;
    }
}

.pain-split__image-wrapper {
    flex: 1;
}

.pain-split__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.pain-split__content {
    flex: 1;
}

.pain-split__content .section-title {
    text-align: left;
    margin-bottom: var(--sp-32);
}

.pain-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-24);
}

.pain-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-16);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-24);
    box-shadow: var(--shadow-sm);
}

.pain-list__item:last-child {
    margin-bottom: 0;
}

.pain-list__icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
    font-weight: bold;
}

.pain-list__text {
    flex: 1;
}

.pain-list__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--sp-8);
}

.pain-list__desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--sp-12);
}

.pain-list__solution {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-24);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .service-card:nth-child(1),
    .service-card:nth-child(2) {
        grid-column: span 3;
    }

    .service-card:nth-child(3),
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 2;
    }
}

.service-card {
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    padding: var(--sp-48);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.service-card__number {
    position: absolute;
    top: -24px;
    left: 24px;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ruby-primary);
    font-family: var(--font-primary);
    user-select: none;
    pointer-events: none;
    z-index: 10;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--sp-16);
    line-height: 1.3;
    padding-top: var(--sp-16);
    position: relative;
    z-index: 2;
}

.service-card__desc {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.process-split {
    display: flex;
    flex-direction: column;
    gap: var(--sp-48);
}

@media (min-width: 1024px) {
    .process-split {
        flex-direction: row;
        align-items: center;
        gap: var(--sp-64);
    }

    .process-split__content {
        flex: 1;
        max-width: 550px;
    }

    .process-split__image-wrapper {
        flex: 1;
        min-height: 400px;
        background-color: transparent;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.process-split__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Мобильная копия ограничена 280px */
@media (max-width: 1023px) {
    .process-split__image.process-split__image--mobile {
        max-width: 280px;
        width: 100%;
        margin: var(--sp-16) auto;
        display: block;
        border-radius: var(--radius-md);
    }
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--sp-24);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background-color: var(--surface-border);
}

.timeline-item {
    display: flex;
    gap: var(--sp-24);
    position: relative;
}

.timeline-item__number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background-color: var(--surface);
    border: 2px solid var(--ruby-primary);
    color: var(--ruby-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.timeline-item__title {
    font-size: 1.25rem;
    margin-bottom: var(--sp-8);
}

/* ==========================================================================
   ROI
   ========================================================================== */
.roi {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.roi__intro {
    max-width: 800px;
    font-size: 1.125rem;
    margin-bottom: var(--sp-64);
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-32);
    margin-bottom: var(--sp-64);
}

@media (min-width: 1024px) {
    .roi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.roi-card {
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    padding: var(--sp-32);
}

.roi-card__icon {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ruby-primary);
    font-family: var(--font-primary);
    margin-bottom: var(--sp-16);
    height: 48px;
    display: flex;
    align-items: flex-end;
}

.roi-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--sp-16);
}

.roi-card__desc {
    margin-bottom: var(--sp-24);
}

.roi-card__example {
    background: var(--surface);
    padding: var(--sp-16);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text-body);
    margin-top: auto;
}

.roi__outro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--sp-24);
}

.roi__cta-wrapper {
    margin-top: var(--sp-64);
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-32);
}

@media (min-width: 640px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-item__title {
    font-size: 1.25rem;
    margin-bottom: var(--sp-12);
}

/* ==========================================================================
   Cases
   ========================================================================== */
.cases {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.cases-tabs {
    display: flex;
    gap: var(--sp-16);
    margin-bottom: var(--sp-48);
    border-bottom: 2px solid var(--surface-border);
}

.cases-tab {
    padding: var(--sp-12) clamp(12px, 3vw, var(--sp-24));
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* Pull down to overlap border */
}

.cases-tab.active {
    color: var(--ruby-primary);
    border-bottom-color: var(--ruby-primary);
}

.cases-pane {
    display: none;
}

.cases-pane.active {
    display: block;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-32);
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-card {
    background: var(--surface-secondary);
    border-radius: var(--radius-lg);
    padding: var(--sp-48);
    display: flex;
    flex-direction: column;
}

.hero__microtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
}

.hero__trust {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-12);
    margin-top: var(--sp-12);
}

.hero__avatars {
    display: flex;
    align-items: center;
}

.hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
    margin-left: -10px;
}

.hero__avatar:first-child {
    margin-left: 0;
}

.case-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--sp-16);
}

.case-card__result {
    margin-top: auto;
    padding-top: var(--sp-24);
    font-weight: 700;
    color: var(--ruby-primary);
}

/* ==========================================================================
   Support
   ========================================================================== */
.support {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.support__flex {
    display: flex;
    flex-direction: column;
    gap: var(--sp-48);
}

@media (min-width: 1024px) {
    .support__flex {
        flex-direction: row;
        align-items: center;
    }

    .support__text,
    .support__image-wrapper {
        flex: 1;
    }
}

.support__desc {
    font-size: 1.125rem;
    margin-bottom: var(--sp-16);
}

.support__image-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1023px) {
    .support__image-wrapper {
        display: none;
    }
}

.support__image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

/* Мобильная копия — 280px как в первом блоке */
@media (max-width: 1023px) {
    .support__image.support__image--mobile {
        max-width: 280px;
        width: 100%;
        margin: var(--sp-16) auto;
        display: block;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding: clamp(48px, 10vw, var(--sp-80)) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

.faq-item {
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item__header {
    width: 100%;
    text-align: left;
    padding: var(--sp-24);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 var(--sp-24);
}

.faq-item.active .faq-item__body {
    padding-bottom: var(--sp-24);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
    padding: clamp(64px, 12vw, var(--sp-120)) 0;
    background-color: var(--text-heading);
    color: var(--text-white);
}

.final-cta__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 8vw, var(--sp-64));
}

@media (min-width: 1024px) {
    .final-cta__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--sp-80);
    }
}

.final-cta__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: clamp(16px, 4vw, var(--sp-24));
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-white);
}

.final-cta__desc {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

.final-cta__form-wrapper {
    background: var(--surface);
    padding: clamp(24px, 6vw, var(--sp-48)) clamp(24px, 6vw, var(--sp-48)) clamp(32px, 6vw, var(--sp-32));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
}

.form-input {
    padding: var(--sp-12) var(--sp-16);
    border: 1px solid var(--surface-border);
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: var(--text-heading);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--ruby-primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--ruby-tint);
}

.form-btn {
    padding: var(--sp-16) var(--sp-24);
    font-size: 1rem;
    margin-top: var(--sp-4);
}

.final-cta__microtext {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--sp-16);
}

/* ==========================================================================
   Cookie Banner & Form Consent
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: var(--sp-24);
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #ffffff;
    color: var(--text-heading);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    /* Мягче тень для светлой темы */
    border: 1px solid var(--surface-border);
    padding: var(--sp-12) var(--sp-16) var(--sp-12) var(--sp-24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-24);
    max-width: max-content;
    width: calc(100% - 32px);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-banner__text {
    font-size: 0.95rem;
    /* Немного крупнее для читабельности */
    line-height: 1.4;
    color: var(--text-heading);
    flex: 1;
    margin: 0;
    white-space: nowrap;
    /* Чтобы текст не переносился хаотично, если хватает места */
}

@media (max-width: 480px) {
    .cookie-banner__text {
        white-space: normal;
        /* Разрешаем перенос на очень узких экранах */
    }
}

.cookie-banner__link {
    color: var(--ruby-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__btn {
    background: #0f172a;
    /* Темно-синий/почти черный цвет как на скриншоте (var(--text-heading)) */
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.cookie-banner__btn:hover {
    background: #1e293b;
    /* Чуть светлее при наведении */
}

.cookie-banner__btn:active {
    transform: scale(0.98);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-8);
    cursor: pointer;
    margin-top: var(--sp-4);
}

.form-consent__check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: var(--ruby-primary);
    cursor: pointer;
}

.form-consent span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-consent__link {
    color: var(--ruby-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: clamp(40px, 8vw, var(--sp-64)) 0 clamp(32px, 6vw, var(--sp-48));
    background-color: var(--surface);
    border-top: 1px solid var(--surface-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 6vw, var(--sp-32));
    /* Увеличенная гибкость для мобильных */
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: auto 1fr;
        /* Лого слева, реквизиты справа */
        gap: var(--sp-64);
        justify-content: space-between;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
    /* Сгруппированы элементы бренда плотнее */
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer__copy--small {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: var(--sp-8);
}

.footer__social {
    display: inline-flex;
    margin-top: var(--sp-8);
    align-self: flex-start;
    /* Прижать иконку к левому краю */
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.footer__nav-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer__nav-link:hover {
    color: var(--ruby-primary);
}

.footer__requisites,
.footer__bank {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.footer__req-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--sp-8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__requisites p,
.footer__bank p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Modal styling
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    /* --text-heading with opacity */
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--surface);
    width: 90%;
    max-width: 500px;
    padding: var(--sp-48) var(--sp-48) var(--sp-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: var(--sp-16);
    right: var(--sp-24);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--text-heading);
}

.modal__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: var(--sp-4);
    letter-spacing: -0.5px;
}

.modal__desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--sp-12);
    line-height: 1.5;
}
/* ==========================================================================
   Blog Styles
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-32);
    margin-top: var(--sp-48);
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--surface-secondary);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: var(--sp-24);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--sp-12);
    font-weight: 700;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    text-decoration: underline;
}

.blog-card__desc {
    font-size: 0.9375rem;
    color: var(--text-body);
    margin-bottom: var(--sp-24);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card__link {
    font-weight: 600;
    color: var(--ruby-primary);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

.blog-card__link:hover {
    text-decoration: underline;
}

/* Single Post Page */
.post-page {
    padding: var(--sp-80) 0;
}

.post-header {
    margin-bottom: var(--sp-48);
    text-align: center;
}

.post-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--sp-24);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.post-thumbnail {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto var(--sp-48);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-content {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: var(--sp-24);
}

.post-content h2 {
    margin: var(--sp-48) 0 var(--sp-24);
    font-size: 1.75rem;
}

.post-content ul, .post-content ol {
    margin-bottom: var(--sp-24);
    padding-left: var(--sp-24);
}

.post-content li {
    margin-bottom: var(--sp-12);
}

.post-footer {
    margin-top: var(--sp-64);
}

.post-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-cta__title {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: var(--sp-32);
    line-height: 1.2;
    color: var(--text-heading);
}

/* Categories & Tags */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    background: var(--surface-secondary);
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid var(--surface-border);
}

.category-link:hover {
    border-color: var(--ruby-primary);
    color: var(--ruby-primary);
    background: var(--surface);
    transform: translateY(-1px);
}

.category-link--active {
    background: var(--ruby-primary) !important;
    color: var(--text-white) !important;
    border-color: var(--ruby-primary) !important;
    box-shadow: 0 8px 16px -4px rgba(230, 46, 45, 0.25);
}

.blog-card__category {
    font-size: 0.8rem;
    color: var(--ruby-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.75rem;
}

.blog-card__category--interactive {
    text-decoration: none;
    width: fit-content;
}

.blog-card__category--interactive:hover {
    text-decoration: underline;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--sp-8);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card__views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card__comments {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li {
    display: inline-block;
}

.pagination li a, 
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--surface-secondary);
    border: 1px solid var(--surface-border);
    color: var(--text-body);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.pagination li.active span {
    background: var(--ruby-primary);
    border-color: var(--ruby-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(224, 17, 95, 0.3);
}

.pagination li.active span,
.pagination li[aria-current="page"] span {
    background: var(--ruby-primary);
    border-color: var(--ruby-primary);
    color: #fff;
}

.pagination li a:hover {
    border-color: var(--ruby-primary);
    color: var(--ruby-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination li.disabled span,
.pagination li[aria-disabled="true"] span {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

@media (max-width: 576px) {
    .pagination li a, 
    .pagination li span {
        min-width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}


.blog-card__views svg {
    opacity: 0.7;
}

.blog-card__comments svg {
    opacity: 0.7;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--surface-border);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.comment-item--reply {
    margin-left: 3rem;
    border-left: 4px solid rgba(230, 46, 45, 0.2);
    background: var(--surface-secondary);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(230, 46, 45, 0.1);
    color: var(--ruby-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.comment-avatar--support {
    background: rgba(230, 46, 45, 0.2);
    color: var(--ruby-primary);
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-heading);
}

.comment-badge {
    padding: 0.2rem 0.6rem;
    background: rgba(230, 46, 45, 0.1);
    color: var(--ruby-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.comment-text {
    color: var(--text-body);
    line-height: 1.6;
}

.comment-empty {
    color: var(--text-muted);
}

.comment-alert {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.comment-alert--success {
    background: rgba(45, 156, 103, 0.1);
    color: #2d9c67;
    border: 1px solid rgba(45, 156, 103, 0.3);
}

.comment-alert--error {
    background: rgba(230, 46, 45, 0.1);
    color: var(--ruby-primary);
    border: 1px solid rgba(230, 46, 45, 0.3);
}

.comment-form {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2rem;
}

.comment-form__title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.comment-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comment-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.comment-field input,
.comment-field textarea {
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: var(--surface-secondary);
    color: var(--text-body);
}

.comment-field input:focus,
.comment-field textarea:focus {
    outline: none;
    border-color: var(--ruby-primary);
    box-shadow: 0 0 0 3px rgba(230, 46, 45, 0.15);
    background: #fff;
}

.comment-form__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.comment-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

@media (max-width: 640px) {
    .comment-item--reply {
        margin-left: 1.5rem;
    }

    .comment-form__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
