/* ============================================
   УНИФИЦИРОВАННЫЕ СТИЛИ ПЛАТФОРМЫ
   Редакционный дизайн-система
   ============================================ */

/* === РЕДАКЦИОННЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --font-display-editorial: 'Unbounded', cursive;
    --font-body-editorial: 'Source Sans 3', sans-serif;
    --ink-strong: #0d1326;
    --ink-soft: #2f3a55;
    --paper: #fcfbff;
    --editorial-line: rgba(79, 70, 229, 0.22);
}

/* === РЕДАКЦИОННАЯ ГАРНИТУРА === */
body {
    font-family: var(--font-body-editorial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    color: var(--ink-strong);
}

h1, h2, h3, h4, h5, h6,
.section-title {
    font-family: var(--font-display-editorial, sans-serif);
    letter-spacing: -0.028em;
    color: var(--ink-strong);
}

input, select, textarea {
    font-family: var(--font-body-editorial, sans-serif);
}

/* === РЕДАКЦИОННЫЕ ЦВЕТА ДЛЯ ТЕМНЫХ СЕКЦИЙ === */
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: #f8fafc;
}

.dark-section p,
.dark-section .section-subtitle {
    color: rgba(248, 250, 252, 0.78);
}

.final-cta-modern h1,
.final-cta-modern h2,
.final-cta-modern .final-cta-title {
    color: #ffffff;
}

.final-cta-modern p,
.final-cta-modern .final-cta-desc,
.final-cta-modern .final-cta-feature-label {
    color: rgba(255, 255, 255, 0.82);
}

/* === УНИФИЦИРОВАННЫЕ КНОПКИ === */
.btn,
.btn-cta-primary,
.btn-cta-secondary {
    font-family: var(--font-body-editorial, sans-serif);
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.btn.btn-primary.rounded-pill {
    background: linear-gradient(135deg, #4f46e5 0%, #f43f5e 100%);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.24);
}

.btn.btn-primary.rounded-pill:hover,
.btn.btn-primary.rounded-pill:focus-visible {
    background: linear-gradient(135deg, #4338ca 0%, #e11d48 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.34);
    transform: translateY(-2px);
}

body.role-blogger .btn.btn-primary.rounded-pill {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.24);
}

body.role-blogger .btn.btn-primary.rounded-pill:hover {
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.34);
}

.btn.btn-outline-primary.rounded-pill {
    border: 1.5px solid rgba(79, 70, 229, 0.5);
    color: #4f46e5;
    background: transparent;
    font-weight: 700;
}

.btn.btn-outline-primary.rounded-pill:hover,
.btn.btn-outline-primary.rounded-pill:focus-visible {
    background: rgba(79, 70, 229, 0.06);
    border-color: #4f46e5;
    color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.16);
}

/** === РЕДАКЦИОННЫЕ КОМПОНЕНТЫ === */
.section-badge,
.hero-filter-chip,
.hero-suggestion-chip,
.hero-recent-chip,
.blogger-card-home-chip {
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 244, 255, 0.92));
    box-shadow: 0 8px 24px rgba(24, 33, 67, 0.08);
    font-family: var(--font-body-editorial, sans-serif);
}

.section-badge-icon,
.stat-icon,
.step-icon,
.tip-icon,
.benefit-icon,
.growth-feature-icon,
.feature-icon {
    border-radius: 18px !important;
    border-width: 1.5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 24px rgba(15, 23, 42, 0.11);
    position: relative;
    overflow: hidden;
}

.section-badge-icon::before,
.stat-icon::before,
.step-icon::before,
.tip-icon::before,
.benefit-icon::before,
.growth-feature-icon::before,
.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 55%);
    pointer-events: none;
}

/* === ТИПОГРАФИЧНА НОРМАЛИЗАЦИЯ === */
.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.62;
    color: var(--ink-soft);
    font-family: var(--font-body-editorial, sans-serif);
}

.feature-title,
.step-title,
.tip-title,
.benefit-title,
.growth-feature-title {
    line-height: 1.22;
    margin-bottom: 0.5rem;
    font-family: var(--font-display-editorial, sans-serif);
    color: var(--ink-strong);
}

/* === СТАРЫЕ СТИЛИ НИЖЕ === */

/* Единые размеры для badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.section-badge-primary {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
    border-color: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

.section-badge-danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.section-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.section-badge-icon-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #f43f5e 100%);
    color: white;
}

.section-badge-icon-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
}

/* Единые заголовки секций */
.section-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.375rem;
    line-height: 1.7;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 3rem;
}

/* Единые карточки функций */
.feature-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Единые кнопки */
.unified-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unified-btn-primary {
    background: #0f172a;
    color: white;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.unified-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.unified-btn-gradient {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.25);
}

.unified-btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}

/* Единые отступы секций */
.unified-section {
    padding: 160px 0;
}

@media (max-width: 768px) {
    .unified-section {
        padding: 100px 0;
    }
}

/* Единые списки преимуществ */
.advantage-list {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(244, 63, 94, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.1);
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.advantage-icon-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.advantage-icon-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: white;
}

.advantage-text {
    color: #0f172a;
    font-weight: 500;
    font-size: 1.0625rem;
}
