/* Сброс стилей и общие настройки */
* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    line-height: 1.6;
    position: relative;
}

/* Переключатель языка */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #718096;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Информационный блок */
.info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }
}

.info-box svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 2px;
}

.info-box p {
    margin: 0;
    color: #92400e;
    font-size: 1rem;
    line-height: 1.6;
}

.email-link {
    color: #7c2d12;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #f59e0b;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.content {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2d3748;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: #2d3748;
    font-weight: 700;
    margin: 0;
}

.close {
    font-size: 32px;
    font-weight: 300;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #2d3748;
    background-color: #f7fafc;
}

.modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
    color: #4a5568;
}

.modal-body h3 {
    color: #2d3748;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ol,
.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #2d3748;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Переключение языков в модальном окне */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }

    .info-box p {
        font-size: 0.95rem;
    }
    .content {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        max-width: 100%;
        margin: 0 10px;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px 25px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Стилизация скроллбара для модального окна */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

