/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4F46E5;
}

.logo a {
    color: #4F46E5;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4F46E5;
}

/* Buttons */
.btn-primary {
    background: #4F46E5;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #4338CA;
}

.btn-secondary {
    background: white;
    color: #4F46E5;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #4F46E5;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #4F46E5;
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.highlight {
    color: #FCD34D;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 80px 20px;
}

.bg-light {
    background: white;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1F2937;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #6B7280;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: #4F46E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: #1F2937;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    padding: 30px;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 4px solid #4F46E5;
}

.feature h4 {
    margin-bottom: 10px;
    color: #1F2937;
    font-size: 20px;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.auth-container h1 {
    margin-bottom: 10px;
    color: #1F2937;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4F46E5;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6B7280;
    font-size: 14px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox label {
    margin: 0;
    margin-left: 8px;
    font-weight: normal;
}

.form-group.checkbox input {
    width: auto;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #4F46E5;
    text-decoration: none;
}

.info-box {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.info-box strong {
    color: #92400E;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Footer */
footer {
    background: #1F2937;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #F9FAFB;
}

.footer-section a {
    display: block;
    color: #D1D5DB;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #4F46E5;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9CA3AF;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Dashboard */
.dashboard-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.dashboard-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: left;
}

.info-card {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

.info-card p {
    margin-bottom: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.text-muted {
    color: #6B7280;
    font-style: italic;
}

/* Admin Panel */
.admin-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.admin-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: left;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.users-table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.users-table tr:hover {
    background: #F9FAFB;
}

.users-table button {
    padding: 8px 16px;
    font-size: 14px;
}

.error-text {
    color: #DC2626;
}

/* Consent Page */
.consent-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #f8f9fa;
}

.consent-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.consent-container h1 {
    margin-bottom: 10px;
    color: #1F2937;
    text-align: center;
}

.consent-container .subtitle {
    text-align: center;
    color: #6B7280;
    margin-bottom: 30px;
    font-size: 18px;
}

.warning-box {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-box strong {
    color: #92400E;
    font-size: 18px;
}

.warning-box p {
    margin-bottom: 10px;
}

.consent-text-container {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.consent-text pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    color: #1F2937;
}

.consent-checkboxes {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #F3F4F6;
    border-color: #4F46E5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.consent-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.info-box-consent {
    background: #EFF6FF;
    border: 1px solid #3B82F6;
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
}

.info-box-consent strong {
    color: #1E40AF;
    font-size: 16px;
}

.info-box-consent ul {
    margin-top: 10px;
    margin-left: 20px;
}

.info-box-consent li {
    margin-bottom: 8px;
    color: #1F2937;
}

.info-box-consent a {
    color: #4F46E5;
    text-decoration: none;
}

.info-box-consent a:hover {
    text-decoration: underline;
}

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

    .consent-buttons {
        flex-direction: column;
    }

    .consent-text pre {
        font-size: 12px;
    }
}
