* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
	padding: 0 20px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

header {        
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
	color: #667eea;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
	margin-left: auto;  
    position: absolute;
    right: 30px;
    top: 40px;
}

.lang-switcher a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: #667eea;
}

.lang-switcher span {
    color: #ccc;
}



.main-content {
    padding: 0px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="url"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.loading {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.results-actions {
    margin-top: 20px;
    margin-bottom: 15px;
}

.results-box {
    margin-top: 20px;
}

.seo-description {
            background: #f8f9ff;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 4px solid #667eea;
}
        
.seo-description h2 {
            color: #667eea;
            font-size: 1.5em;
            margin-bottom: 10px;
}

 .features {
            margin: 40px 0;
            padding: 30px;
            background: #f8f9ff;
            border-radius: 8px;
        }
        
        .features h2 {
            color: #667eea;
            margin-bottom: 20px;
        }
        
        .features ul {
            list-style: none;
            padding: 0;
        }
        
        .features li {
            padding: 10px 0;
            font-size: 1.05em;
        }
        
        .faq {
            margin: 40px 0;
        }
        
        .faq h2 {
            color: #667eea;
            margin-bottom: 20px;
        }
        
        .faq h3 {
            color: #333;
            margin-top: 20px;
            margin-bottom: 10px;
        }

#urlResults {
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    line-height: 1.6;
}



footer {
    padding: 20px 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

/* ============================================
   Стили для валидации URLs
   ============================================ */

.validation-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.validation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stat-alive {
    background: #d4edda;
    color: #155724;
}

.stat-dead {
    background: #f8d7da;
    color: #721c24;
}

.stat-redirect {
    background: #fff3cd;
    color: #856404;
}

.stat-error {
    background: #d1ecf1;
    color: #0c5460;
}

.stat-icon {
    font-size: 1.2em;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1em;
}

.stat-percent {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Табы */
.validation-tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: #667eea;
    background: #f8f9ff;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9ff;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.url-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.url-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #ccc;
    background: #f8f9fa;
    word-break: break-all;
    transition: all 0.2s;
}

.url-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.url-item-alive {
    border-left-color: #28a745;
    background: #d4edda;
}

.url-item-dead {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.url-item-redirect {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.url-item-error {
    border-left-color: #17a2b8;
    background: #d1ecf1;
}

.url-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.url-item a:hover {
    text-decoration: underline;
}

.redirect-info {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #856404;
    font-style: italic;
}

.status-code {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.error-message {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #721c24;
}

.validation-export {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .language-switcher {
        top: 15px;
        right: 20px;
    }
    
    .language-switcher__button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .btn-secondary {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .validation-stats {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
    }
    
    .url-list {
        max-height: 400px;
    }
}
