/* Pulsemart - Стиль в духе Yandex Cloud */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ffdb4d;
    --primary-dark: #ffcc00;
    --primary-hover: #ffd633;
    --secondary-color: #0066cc;
    --secondary-dark: #0052a3;
    --secondary-hover: #0073e6;
    --success-color: #00b956;
    --error-color: #ff3333;
    --warning-color: #ff8c00;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #cccccc;
    --background-primary: #ffffff;
    --background-secondary: #f5f5f5;
    --background-tertiary: #f1f3f4;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --border-dark: #333333;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-yandex: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
    --border-radius-large: 8px;
    --border-radius-xl: 12px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    font-weight: 400;
}

/* Главная страница */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хедер */
.header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    margin-right: 12px;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-secondary);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-section {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 56px;
}

/* Страница входа */
.auth-page {
    min-height: 100vh;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: var(--background-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.auth-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

/* Переключатель форм */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    padding: 12px 0;
    margin-right: 24px;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: none;
    position: relative;
}

.auth-tab.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* Формы */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-fast);
    background: var(--background-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 219, 77, 0.2);
}

.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.2);
}

.form-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Капча */
.captcha-container {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-primary);
    position: relative;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.captcha-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.captcha-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.captcha-brand {
    font-size: 11px;
    color: var(--text-muted);
}

.forgot-password {
    text-align: left;
    margin: 16px 0;
}

.forgot-password a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Социальные сети иконки */
.social-login {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    color: white;
    font-weight: 500;
    font-size: 10px;
    gap: 0;
    padding: 0;
    position: relative;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.social-btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.google-icon {
    background: #4285F4;
}

.google-icon:hover {
    background: #3367D6;
}



.telegram-icon {
    background: #0088CC;
}

.avito-icon {
    background: #00D4AA;
}

.avito-icon:hover {
    background: #00B894;
}

.telegram-icon:hover {
    background: #006699;
}

.yandex-icon {
    background: #FC3F1D;
}

.yandex-icon:hover {
    background: #E0351A;
}


}

/* Личный кабинет */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    background: var(--background-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.empty-state {
    background: var(--background-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 60px 40px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.empty-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .auth-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-title {
        font-size: 20px;
    }
}

/* Features Section */
.features-section {
    padding: 100px 0 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: #1976d2;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.2);
}

.pricing-card:hover {
    border-color: #1976d2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Support Section */
.support-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.support-info {
    text-align: center;
}

.support-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.support-info p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #333;
}

.contact-icon {
    font-size: 24px;
}

/* AI Chat Widget */
.ai-chat-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.chat-status {
    font-size: 14px;
    opacity: 0.9;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e1e5e9;
    align-self: flex-start;
}

.user-message .message-content {
    background: #1976d2;
    color: white;
    align-self: flex-end;
}

.message-time {
    font-size: 12px;
    color: #8b949e;
    margin-top: 4px;
    align-self: flex-start;
}

.user-message .message-time {
    align-self: flex-end;
}

.chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5da;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input input:focus {
    border-color: #1976d2;
}

.send-btn {
    padding: 12px 20px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-btn:hover {
    background: #1565c0;
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.chat-suggestions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5da;
    border-radius: 16px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-logo p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Additional Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-methods {
        align-items: flex-start;
    }
    
    .support-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-chat-widget {
        max-width: 100%;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .chat-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        width: 100%;
        text-align: center;
    }
}
