/* Стиль для SEO-контента на страницах категорий (Complex 8-section Layout) */

.category-seo-content {
    font-family: inherit;
    color: var(--text-color, #1e293b);
    line-height: 1.6;
}

/* Utils */
.mt-24 {
    margin-top: 1.5rem;
}

.mt-32 {
    margin-top: 2rem;
}

.mt-40 {
    margin-top: 2.5rem;
}

.mr-12 {
    margin-right: 0.75rem;
}

.mb-16 {
    margin-bottom: 1rem;
}

.mb-24 {
    margin-bottom: 1.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-40 {
    margin-bottom: 2.5rem;
}

.p-24 {
    padding: 1.5rem;
}

.p-32 {
    padding: 2rem;
}

.pt-40 {
    padding-top: 2.5rem;
}

.opacity-50 {
    opacity: 0.5;
}

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

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
}

.rounded {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.border-t {
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.border-0 {
    border: none !important;
}

/* Colors */
.text-primary {
    color: var(--primary-color, #4942E4);
}

.text-success {
    color: var(--success-color, #10b981);
}

.text-warning {
    color: #f59e0b;
}

.text-error {
    color: #ef4444;
}

.text-secondary {
    color: var(--text-muted, #64748b);
}

.text-purple {
    color: #8b5cf6;
}

.bg-light {
    background: #f8fafc;
}

.bg-gray-50 {
    background: #f9fafb;
}

.bg-blue-light {
    background: #eff6ff;
}

.bg-green-light {
    background: #ecfdf5;
}

.bg-purple-light {
    background: #f5f3ff;
}

.bg-gradient-light {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
}

/* Typography */
.seo-section {
    margin-bottom: 4rem;
}

.seo-section:last-child {
    margin-bottom: 0;
}

.seo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.seo-lead {
    font-size: 1.1rem;
    color: var(--text-muted, #64748b);
    max-width: 800px;
}

.seo-text {
    font-size: 1rem;
}

/* Grids */
.seo-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.seo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seo-columns-2 {
    column-count: 2;
    column-gap: 2rem;
}

/* Cards */
.seo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.seo-card.success {
    border-left: 4px solid var(--success-color, #10b981);
}

.seo-card.warning {
    border-left: 4px solid #ef4444;
}

.seo-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.seo-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.seo-card-header i {
    font-size: 1.25rem;
}

.seo-card ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-card ul li {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Feature Cards */
.seo-feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.seo-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.seo-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.seo-feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-feature-card ul li {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    position: relative;
    padding-left: 1rem;
}

.seo-feature-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color, #4942E4);
}

/* Note */
.seo-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.seo-note.info {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.seo-note p {
    margin: 0;
}

.seo-note i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

/* Career Block */
.seo-career-block {
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
}

.seo-career-inner {
    display: flex;
    flex-wrap: wrap;
}

.seo-career-content {
    padding: 3rem;
    flex: 1;
    min-width: 300px;
}

.seo-career-image {
    width: 300px;
    background: var(--primary-color, #4942E4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-career-image i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Stats Container */
.seo-stats-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.seo-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seo-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.seo-stat-info {
    display: flex;
    flex-direction: column;
}

.seo-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.seo-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Custom Lists */
.icon-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.icon-heading h4 {
    margin: 0;
    font-size: 1.2rem;
}

.icon-heading i {
    font-size: 1.25rem;
}

.seo-list-custom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seo-list-custom li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
}

.seo-list-custom li::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

.check-list li::before {
    content: "\f00c";
    color: var(--success-color, #10b981);
}

.cross-list li::before {
    content: "\f00d";
    color: #ef4444;
}

.seo-columns-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-columns-2 ul li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.seo-columns-2 ul.check-list li {
    position: relative;
    padding-left: 28px;
}

.seo-columns-2 ul.check-list li::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
    color: var(--success-color, #10b981);
    position: absolute;
    left: 0;
    top: 0;
}

.seo-columns-2 ul:not(.check-list) li {
    position: relative;
    padding-left: 16px;
}

.seo-columns-2 ul:not(.check-list) li::before {
    content: '•';
    color: var(--primary-color, #4942E4);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

/* FAQ */
.seo-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seo-faq-item {
    background: white;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.seo-faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
    transition: background 0.2s;
}

.seo-faq-question:hover {
    background: #f8fafc;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.seo-faq-item.active .seo-faq-answer {
    max-height: 500px;
}

.seo-faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
}

.seo-faq-item.active .answer-inner {
    border-top-color: var(--border-color, #e2e8f0);
    margin-top: -1px;
}

/* Responsive */
@media (max-width: 900px) {
    .seo-grid-2 {
        grid-template-columns: 1fr;
    }

    .seo-columns-2 {
        column-count: 1;
    }

    .seo-career-image {
        display: none;
    }

    .seo-career-content {
        padding: 2rem;
    }

    .seo-title {
        font-size: 1.5rem;
    }

    .seo-lead {
        font-size: 1rem;
    }
}

/* =========================================
   BACKWARD COMPATIBILITY
   Legacy styles for old HTML preset formats
   (e.g., .seo-content-block, .seo-features)
   ========================================= */

.seo-content-block {
    margin-top: 40px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-color, #1e293b);
}

.seo-content-block h2,
.seo-content-block h3,
.seo-content-block h4 {
    color: var(--heading-color, #0f172a);
    margin-bottom: 1rem;
    font-weight: 700;
}

.seo-content-block h2 {
    font-size: 1.8rem;
    margin-top: 0;
}

.seo-content-block h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.seo-intro {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.seo-feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seo-feature-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 12px;
}

.seo-skills-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.seo-skills-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.seo-skills-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.seo-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.seo-faq-item h4 {
    margin-bottom: 8px;
    color: #334155;
}