/**
 * Стили для LIECAM Web
 * Современный, чистый дизайн
 */

:root {
    --primary-color: #1976D2;
    --primary-dark: #1565C0;
    --secondary-color: #03DAC6;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F5;
    --text-color: #212121;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header .logo {
    padding: 0 20px;
}

.header .logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.header .tagline {
    color: var(--text-light);
    font-size: 0.9rem;
}

.header nav {
    margin-top: 1rem;
    padding: 0 20px;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.header nav a:hover {
    background: var(--bg-light);
}

/* Language switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.5rem;
}

.lang-switcher a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 500;
}

.lang-switcher a:hover {
    background: var(--bg-light);
}

.lang-switcher a.active {
    color: var(--primary-color);
    background: var(--bg-light);
    font-weight: bold;
}

.lang-switcher span {
    color: var(--text-light);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

/* Capabilities Section */
.capabilities {
    margin-bottom: 3rem;
}

.capability-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.capability-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.capability-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.capability-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.capability-card > p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.feature-list h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Instructions Section */
.instructions {
    margin-bottom: 3rem;
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.instruction-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.instruction-icon {
    font-size: 2.5rem;
}

.instruction-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.instruction-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.instruction-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--bg-light);
}

.instruction-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.instruction-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits {
    margin-bottom: 3rem;
}

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

.benefit-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
}

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

.btn-secondary {
    background: var(--text-light);
}

.btn-success {
    background: var(--success-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    background: var(--bg-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    background-color: var(--bg-color);
    cursor: pointer;
}

select.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

select.form-control option {
    padding: 0.5rem;
}

select.form-control optgroup {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

/* Auth */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-footer p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Dashboard */
.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.subscription-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subscription-status h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.subscription-info {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
}

.subscription-info p {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.days-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--success-color);
    color: white;
    border-radius: 12px;
    font-weight: bold;
}

.dashboard-actions {
    margin: 2rem 0;
    text-align: center;
}

.info-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-box h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.info-box h5:first-of-type {
    margin-top: 1rem;
}

.info-box ul {
    list-style-position: inside;
    color: var(--text-light);
}

.info-box li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Editor */
.editor-container {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-section,
.editor-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

.form-section {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--bg-light);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-section {
    background: var(--success-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.download-section h3 {
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid var(--error-color);
}

.alert-warning {
    background: #FFF3E0;
    color: #E65100;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--success-color);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    color: white;
}

.cta h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.info {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 3rem;
}

.steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.steps li {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.steps li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .capability-cards {
        grid-template-columns: 1fr;
    }
    
    .instruction-cards {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .cta {
        padding: 2rem 1rem;
    }
}
