/*
Theme Name: AUTOMX
Theme URI: https://automx.ru
Author: AUTOMX Team
Description: SEO-платформа AUTOMX — сервис для продвижения сайтов, анализа конкурентов и оптимизации контента.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0.2
Requires PHP: 8.0
License: MIT
Text Domain: automx
Tags: seo, analytics, tools, light-theme
*/

/* ============================================
   ЦВЕТОВАЯ СХЕМА AUTOMX (СВЕТЛАЯ ТЕМА)
   ============================================ */
:root {
    /* Основные цвета */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --bg-input: #ffffff;

    /* Акценты */
    --accent-green: #00c853;
    --accent-purple: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00c853 0%, #7c3aed 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00e676 0%, #8b5cf6 100%);

    /* Текст */
    --text-primary: #1a1a1a;
    --text-secondary: #495057;
    --text-muted: #868e96;

    /* Границы */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* Состояния */
    --success: #00c853;
    --warning: #f59f00;
    --error: #e03131;
    --info: #1971c2;

    /* Типографика */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Размеры */
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow-green: 0 4px 12px rgba(0, 200, 83, 0.2);
    --shadow-glow-purple: 0 4px 12px rgba(124, 58, 237, 0.2);

    /* Переходы */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   БАЗОВЫЙ СБРОС
   ============================================ */
*, *::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: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ============================================
   УТИЛИТЫ
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(0, 200, 83, 0.08);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(0, 200, 83, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--accent-green);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   ФОРМЫ
   ============================================ */
input, textarea, select {
    font-family: inherit;
    font-size: 15px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-base);
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   СЕКЦИИ
   ============================================ */
.section {
    padding: 80px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   СТАТИСТИКА
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   ИНСТРУМЕНТЫ
   ============================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.tools-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tool-category h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tool-list {
    list-style: none;
}

.tool-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
}

.tool-list li:last-child {
    border-bottom: none;
}

.tool-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.tool-list a:hover {
    color: var(--accent-green);
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   ТАРИФЫ
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.pricing-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-card .price {
    font-size: 42px;
    font-weight: 800;
    margin: 16px 0;
    color: var(--accent-green);
}

.pricing-card .price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card ul li:last-child {
    border: none;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-toggle {
    font-size: 24px;
    color: var(--accent-green);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ============================================
   ФИНАЛЬНЫЙ CTA
   ============================================ */
.final-cta-card {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.final-cta-card h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
}

.final-cta-card p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    position: relative;
}

.final-cta-card .btn {
    background: #ffffff;
    color: var(--accent-green);
    position: relative;
}

.final-cta-card .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ============================================
   СТРАНИЦЫ АВТОРИЗАЦИИ
   ============================================ */
.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 8px;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--accent-green);
    font-weight: 500;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.captcha-box img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 48px;
    cursor: pointer;
}

.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.auth-error {
    background: rgba(224, 49, 49, 0.1);
    border: 1px solid rgba(224, 49, 49, 0.3);
    color: var(--error);
}

.auth-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: var(--success);
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================ */
.dashboard-wrapper {
    padding: 40px 0;
    min-height: calc(100vh - 140px);
    background: var(--bg-secondary);
}

.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1400px;
}

.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.user-avatar .avatar-img {
    border-radius: 50%;
    border: 2px solid var(--accent-green);
}

.user-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.user-info span {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin: 16px 0 8px;
    padding-left: 12px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 200, 83, 0.1);
    color: var(--accent-green);
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-item.logout {
    color: var(--error);
    margin-top: 16px;
}

.nav-item.logout:hover {
    background: rgba(224, 49, 49, 0.1);
    color: var(--error);
}

.badge-soon {
    margin-left: auto;
    font-size: 10px;
    background: var(--bg-card-hover);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.dashboard-main {
    min-width: 0;
}

.tool-header {
    margin-bottom: 32px;
}

.tool-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-green);
    margin-bottom: 16px;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-purple);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-box .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.tools-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
    display: block;
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tool-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-card.disabled:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.tool-card .tool-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.iks-form textarea {
    font-family: var(--font-mono);
    font-size: 14px;
    resize: vertical;
}

.tool-result h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    background: var(--bg-card);
}

.iks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.iks-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.iks-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.iks-table tr:last-child td {
    border-bottom: none;
}

.iks-table tr:hover td {
    background: var(--bg-card-hover);
}

.iks-table a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

.iks-table a:hover {
    text-decoration: underline;
}

.iks-value {
    font-weight: 700;
    font-size: 16px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.iks-value.high {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.iks-value.mid {
    background: rgba(245, 159, 0, 0.15);
    color: var(--warning);
}

.iks-value.low {
    background: rgba(224, 49, 49, 0.15);
    color: var(--error);
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.tool-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.dashboard-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.dashboard-content p {
    color: var(--text-secondary);
    max-width: 500px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .final-cta-card {
        padding: 48px 24px;
    }
}
/* ============================================
   КЛИЕНТЫ (БЕГУЩАЯ СТРОКА)
   ============================================ */
.clients {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.clients-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.clients-track {
    display: flex;
    gap: 48px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.client-logo {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.client-logo:hover {
    opacity: 1;
    color: var(--accent-green);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   ВОЗМОЖНОСТИ (ТАБЫ)
   ============================================ */
.features {
    background: var(--bg-secondary);
}

.features-header {
    text-align: center;
    margin-bottom: 48px;
}

.features-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.feature-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.feature-tab:hover {
    border-color: var(--accent-green);
    color: var(--text-primary);
}

.feature-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-green);
}

.feature-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.feature-content.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-visual {
    display: flex;
    justify-content: center;
}

.feature-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.mockup-header {
    background: var(--bg-input);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-title {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    min-height: 300px;
}

/* Mockup: Chart */
.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chart-line {
    flex: 1;
    background: var(--accent-gradient);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

/* Mockup: Table */
.mockup-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 13px;
    align-items: center;
}

.table-row span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.pos-up { color: var(--success); font-weight: 600; }
.pos-down { color: var(--error); font-weight: 600; }
.pos-stay { color: var(--text-muted); }

/* Mockup: Clusters */
.mockup-clusters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cluster {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid var(--accent-green);
}

.cluster-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 12px;
}

.cluster-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.cluster-item:last-child { border-bottom: none; }

.freq {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Mockup: Visibility */
.visibility-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 140px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.vis-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.visibility-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vis-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 14px;
}

.vis-label { color: var(--text-secondary); }
.vis-value { color: var(--accent-green); font-weight: 700; }

/* Mockup: Competitors */
.competitors-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: 8px;
    font-size: 13px;
    align-items: center;
}

.comp-row.header {
    background: transparent;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.comp-row.you {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--text-primary);
    font-weight: 600;
}

/* Mockup: AI Generator */
.ai-generator {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-input, .ai-field {
    background: var(--bg-input);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.ai-label, .ai-field-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.ai-value, .ai-field-value {
    color: var(--text-primary);
    font-weight: 500;
}

.ai-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mockup: Report */
.report-preview {
    background: #fff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
}

.report-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-green);
    margin-bottom: 16px;
}

.report-logo {
    font-weight: 800;
    color: var(--accent-green);
    font-size: 16px;
}

.report-title {
    font-weight: 700;
    color: #1a1a1a;
}

.report-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.report-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.report-metric-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--success);
}

.report-metric-value.up::before {
    content: '↑ ';
}

.report-footer-block {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-large {
    grid-column: span 2;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.benefit-large h3 {
    color: #fff;
}

.benefit-large p {
    color: rgba(255, 255, 255, 0.9);
}

.benefit-wide {
    grid-column: span 3;
    text-align: center;
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.benefit-wide .btn {
    margin-top: 16px;
}

/* Аватары пользователей */
.benefits-users {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.benefits-users > span {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.user-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-name {
    font-size: 11px;
    color: var(--text-muted);
}

.avatar-wrapper.more .avatar-img {
    background: var(--bg-input);
    color: var(--accent-green);
    font-size: 12px;
    border: 2px dashed var(--accent-green);
}

/* ============================================
   ОТЗЫВЫ (обновлённые)
   ============================================ */
.testimonial-stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.testimonial-card .author-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.testimonial-card .author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   ВИДЕНИЕ
   ============================================ */
.vision {
    background: var(--bg-secondary);
    text-align: center;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
}

.vision-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    margin: 24px 0;
    min-height: 120px;
}

.typed-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-green);
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.vision-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ
   ============================================ */
@media (max-width: 900px) {
    .feature-content.active {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-large, .benefit-wide {
        grid-column: span 1;
    }
    .features-tabs {
        gap: 8px;
    }
    .feature-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .clients-track {
        gap: 24px;
    }
    .client-logo {
        font-size: 16px;
    }
    .mockup-body {
        padding: 16px;
    }
    .report-section {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   ФОРМА ПРОВЕРКИ ПОЗИЦИЙ
   ============================================ */
.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        width: 100% !important;
    }
}