/* main.css - основные стили для главной страницы */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero секция */
.hero {
    background: rgba(255,255,255,0.95);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #334155;
}

/* Статистика */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    min-width: 180px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4f46e5;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

/* Сетка карточек */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 20px;
    color: #334155;
    line-height: 1.5;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
    margin: 15px 0;
}

/* Формы */
input, button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

/* Алёрты */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* Инструкция */
.how-to {
    background: white;
    border-radius: 28px;
    padding: 30px;
    margin-top: 30px;
}

.how-to h2 {
    margin-bottom: 20px;
    color: #1e293b;
}

.how-to ol {
    margin-left: 25px;
    line-height: 1.8;
    color: #334155;
}

.how-to li {
    margin-bottom: 10px;
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

/* Адаптив */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .hero {
        padding: 25px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        min-width: 140px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
}