* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #111827;
    overflow-x: hidden;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(195, 0, 0, 0.03) 0%, transparent 25%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 28%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1560px;
    height: 1560px;
    background-image: url('photo_5222390214725583304_y(1)(1).png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.12;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid #000000;
    color: #000000;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.login-link:hover {
    background: #000000;
    color: #ffffff;
}

.container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.form-section, .preview-section {
    flex: 1;
    min-width: 300px;
    background: #ffffff !important;
    border: 1px solid #000000;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.14);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #c30000;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    box-shadow: 0 18px 38px rgba(195, 0, 0, 0.2);
}

.brand-title {
    margin: 0;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-subtitle {
    margin: 4px 0 0;
    color: #000000;
    font-size: 0.95rem;
}

h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    transition: all 0.25s ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

input:focus, textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

button {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #c30000;
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

button::before {
    display: none;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
    background: #fff1f2;
}

button:active {
    transform: translateY(-1px);
}

button, input, textarea, select {
    font-family: inherit;
}

button.primary-brand {
    background: #c30000;
    color: #ffffff;
    border-color: #c30000;
}

button.primary-brand:hover {
    background: #a50b0b;
    border-color: #a50b0b;
}

button.secondary-white {
    background: #ffffff;
    color: #000000;
    border-color: #c30000;
}

button.secondary-white:hover {
    background: #fef2f2;
}

button.small-close {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 9999px;
    background: #ffffff;
    color: #c30000;
    border: 1px solid rgba(195, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

button.small-close:hover {
    background: #fee2e2;
}

.border-brand, .bg-brand {
    border-color: #b91c1c !important;
    background-color: #ffffff !important;
}

.text-brand {
    color: #b91c1c !important;
}

.hover\:text-brand:hover {
    color: #b91c1c !important;
}

.bg-brand {
    background-color: #c30000 !important;
    color: #ffffff !important;
}

.border-brandDark {
    border-color: #7f1d1d !important;
}

.bg-brandDark {
    background-color: #7f1d1d !important;
    color: #ffffff !important;
}

.hover\:bg-brandDark:hover {
    background-color: #7f1d1d !important;
}

.text-brand {
    color: #b91c1c !important;
}

.border-brand, .border-brandDark {
    border-color: #c30000 !important;
}

.bg-brandSoft {
    background-color: #fff1f2 !important;
}

.bg-brandLight {
    background-color: #ffe4e6 !important;
}

.hover\:bg-brandSoft:hover {
    background-color: #fff1f2 !important;
}

.hover\:bg-brandLight:hover {
    background-color: #ffe4e6 !important;
}

.hover\:text-brand:hover {
    color: #b91c1c !important;
}

.hover\:text-brandDark:hover {
    color: #7f1d1d !important;
}

.focus\:border-brand:focus {
    border-color: #dc2626 !important;
}

.focus\:ring-brandSoft:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.focus\:ring-brand:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2) !important;
}
/* Печать - Оптимизация для PDF */
@page {
    size: A4;
    margin: 10mm;
}

/* Печать - Оптимизация для PDF */
@page {
    size: A4;
    margin: 10mm;
}

@media print {
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    .form-section, .preview-section {
        display: none !important;
    }
    #preview-content {
        box-shadow: none;
        border: none;
        padding: 20mm;
    }
}

.resume-preview {
    position: relative !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06) !important;
    padding: 32px !important;
    line-height: 1.6;
    font-size: 11px;
    width: 210mm !important;
    height: 297mm !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.resume-preview::before {
    display: none !important;
}

.resume-preview .resume-header {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding: 0 0 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #000000 !important;
}

.resume-header-main {
    flex: 1;
}

.resume-header-right {
    display: flex;
    align-items: center;
}

.resume-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #c30000;
    overflow: hidden;
    background: #fff1f2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(195, 0, 0, 0.15);
    flex-shrink: 0;
}

.preview-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c30000;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.04em;
    background: #ffffff;
}

.preview-avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.resume-preview h1 {
    font-size: 28px;
    line-height: 1.2;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    font-weight: 900;
}

.resume-preview .resume-subtitle {
    font-size: 12px;
    color: #333333;
    margin: 2px 0 8px;
    max-width: 680px;
    font-weight: 500;
}

.resume-preview .resume-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #333333;
    font-size: 11px;
    margin-top: 4px;
}

.resume-preview .resume-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c30000 0%, #dc2626 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(195, 0, 0, 0.2);
    animation: none;
    flex-shrink: 0;
}

.resume-preview .resume-divider {
    height: 1.5px;
    background: #000000;
    margin: 12px 0 12px;
}

.resume-preview .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #333333;
    font-size: 11px;
}

.resume-preview .contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resume-preview h3 {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c30000;
    margin: 10px 0 6px 0;
    font-weight: 900;
    padding-left: 12px;
    position: relative;
    line-height: 1.2;
}

.resume-preview h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #c30000;
    border-radius: 999px;
}

.resume-preview .resume-section {
    margin-bottom: 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.resume-preview .resume-section:last-child {
    margin-bottom: 0 !important;
}

.resume-preview .section-body {
    color: #333333;
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 4px 0;
    word-wrap: break-word;
}

.resume-preview .resume-section h3 {
    margin-bottom: 4px !important;
    color: #c30000 !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    padding-left: 18px !important;
    position: relative !important;
}

.resume-preview .resume-section h3::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 20px !important;
    background: #c30000 !important;
    border-radius: 999px !important;
}

.resume-preview .section-body {
    color: #000000 !important;
    line-height: 1.8 !important;
    white-space: pre-wrap !important;
    margin: 0 !important;
    font-size: 0.98rem !important;
}

.resume-preview .section-note {
    color: #000000;
    font-size: 13px;
    margin-top: 6px;
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.modal-content h3 {
    background: linear-gradient(135deg, #08122d 0%, #08122d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 800;
}

#verification-input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 5px;
    color: #e2e8f0;
    transition: all 0.3s;
}

#verification-input:focus {
    border-color: #08122d;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

#confirm-code-btn {
    background: linear-gradient(135deg, #08122d 0%, #08122d 100%);
    color: white;
    font-weight: bold;
}

#confirm-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px #08122d;
}

#close-modal-btn {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

#close-modal-btn:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

/* Скролл-бар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #08122d 0%, #08122d 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #08122d 0%, #08122d 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .resume-preview h1 {
        font-size: 2rem;
    }

    .resume-preview .resume-badge {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* Печать - Оптимизация для PDF */
@media print {
    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    .form-section, .preview-section {
        display: none !important;
    }

    #preview-content {
        box-shadow: none;
        border: none;
        padding: 20mm;
        background: white !important;
    }
}