/* Основные стили для лабораторной работы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    backdrop-filter: blur(10px);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

h1 {
    color: #2d3748;
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: #4a5568;
    font-size: 1.4rem;
    font-weight: normal;
}

h3 {
    color: #2d3748;
    margin: 25px 0 15px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

.info {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
}

.info h3 {
    color: white;
}

.info ol {
    margin-left: 20px;
    font-size: 1.1rem;
}

.info li {
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.cdn-test {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

button {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: scale(0.98);
}

.image-section {
    text-align: center;
}

#cdn-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    border: 5px solid white;
}

.image-info {
    font-style: italic;
    color: #718096;
    margin-top: 10px;
}

.api-test {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

#api-result {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-family: monospace;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    section {
        padding: 20px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Задержки для секций */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
