/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Заголовок */
.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Секции */
.section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.section-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
    transition: all 0.3s ease;
}

.section-content a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

/* Ключи */
.keys-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.keys-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.key-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.key-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.key-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.key-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.key-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-text {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--success-color);
    word-break: break-all;
    border: 1px solid var(--border-color);
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Предупреждение */
.warning-section {
    margin: 40px 0;
}

.warning-box {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 6px solid #991b1b;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Футер */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Toast уведомление */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    transition: bottom 0.3s ease;
    z-index: 1000;
}

.toast.show {
    bottom: 30px;
}

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

    .intro {
        font-size: 1rem;
    }

    .section {
        padding: 25px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .keys-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 40px 15px;
    }

    .section {
        padding: 20px;
    }
}