/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Форма */
.url-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 1.1rem;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #2B35EE;
    box-shadow: 0 0 0 3px rgba(43, 53, 238, 0.1);
}

.input-with-example {
    margin-bottom: 10px;
}

.example {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    border-left: 3px solid #2B35EE;
}

.example code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #2B35EE;
    color: white;
}

.btn-primary:hover {
    background: #1a22b5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 53, 238, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Опции формы */
.form-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Особенности */
.features {
    margin: 50px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature {
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #2B35EE;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Недавние проекты */
.recent-projects {
    margin-top: 50px;
}

.recent-projects h2 {
    color: white;
    margin-bottom: 20px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Заголовок */
.hero {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Ошибки */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

/* Информационные блоки */
.form-info {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #2196f3;
}

.form-info p {
    margin: 0;
    font-size: 0.95rem;
}

.form-info code {
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}