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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 12px 12px 0 0;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
}

.feature p {
    color: #666;
    font-size: 14px;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.client-item {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.client-item h3 {
    color: #333;
    margin-bottom: 8px;
}

.client-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-answer {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.helper-text {
    font-size: 14px;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .card {
        padding: 20px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .client-list {
        flex-direction: column;
    }
}

/* Единый стиль для полей ввода — как кнопки по размеру */
.form-group input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Состояние ошибки/успеха */
.form-group input.match {
    border-color: #10b981;
    background: #f0fff4;
}

.form-group input.mismatch {
    border-color: #ef4444;
    background: #fff5f5;
}

/* Поле с токеном (readonly) */
.form-group input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .form-group input {
        padding: 12px 16px;
        font-size: 16px;
    }
}

/* Отступы между блоками формы */
.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Отступ между формой и кнопкой */
.btn-center {
    margin-top: 32px;
}

/* Отступ между заголовком и формой */
.card h2 {
    margin-bottom: 28px;
}

/* Центрирование вкладок на главной странице */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
