:root {
    /* Colors inspired by ktk-web.ru and StudyScript theme */
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: rgba(0, 102, 204, 0.1);
    --accent: #00a1ff;
    --secondary: #6c757d;
    
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #6c757d;
    
    /* Warning colors */
    --warning-bg: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    --warning-border: #e17055;
    --warning-text: #d63031;
    
    /* Shadows and effects */
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-gradient);
    min-height: 100vh;
}

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

/* Back Button */
.back-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
}

.header h1 {
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.site-name {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.company-info {
    margin-bottom: 20px;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.company-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dates {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dates > div {
    margin-bottom: 5px;
}

/* Content */
.content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.section {
    margin-bottom: 40px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.7;
}

ul {
    margin: 16px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Definitions */
.definitions {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.definition-item {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.definition-item:last-child {
    margin-bottom: 0;
}

.definition-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Data List */
.data-list {
    margin: 20px 0;
}

.data-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
}

.data-item:hover {
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.data-type {
    font-weight: 600;
    color: var(--text-primary);
}

.data-purpose {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Warning Box */
.warning-box {
    background: var(--warning-bg);
    border: 2px solid var(--warning-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 16px;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.warning-content h4 {
    color: var(--warning-text);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.warning-content p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.warning-content ul {
    margin-top: 12px;
}

.warning-content li {
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 32px;
    border-bottom: none;
    color: var(--text-primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.contact-block {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-block h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.contact-details {
    text-align: center;
    line-height: 1.8;
}

.contact-details > div {
    margin-bottom: 8px;
}

.contact-details strong {
    color: var(--text-primary);
}

.footer-info {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-info > div {
    margin-bottom: 8px;
}

.footer-info strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header, .content {
        padding: 25px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

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

    .company-details {
        flex-direction: column;
        gap: 8px;
    }

    .data-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .data-type {
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .warning-icon {
        margin-top: 0;
        align-self: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

    .header h1 {
        font-size: 1.6rem;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .content {
        padding: 20px;
    }

    .warning-box {
        padding: 20px;
    }

    .contact-block {
        padding: 20px;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.back-button:focus,
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .back-button {
        display: none;
    }

    .header,
    .content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .warning-box {
        background: #f5f5f5;
        border: 1px solid #999;
    }
}