        :root {
            --primary: #0a0f45;
            --primary-light: #1a2068;
            --secondary: #2d7ff9;
            --secondary-light: rgba(45, 127, 249, 0.1);
            --accent: #e74c3c;
            --success: #16a34a;
            --success-bg: #f0fdf4;
            --error-bg: #fef2f2;
            --surface: #ffffff;
            --surface-raised: #f8fafc;
            --surface-hover: #f1f5f9;
            --border: #e2e8f0;
            --border-focus: var(--secondary);
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

            --font-display: 'DM Serif Display', Georgia, serif;
            --font-body: 'DM Sans', system-ui, sans-serif;

            --text-xs: 0.75rem;
            --text-sm: 0.875rem;
            --text-base: 1rem;
            --text-lg: 1.125rem;
            --text-xl: 1.25rem;
            --text-2xl: 1.75rem;
            --text-3xl: 2.25rem;
        }

        body {
            font-family: var(--font-body);
            font-size: var(--text-base);
            line-height: 1.6;
            margin: 0;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
            background: var(--surface-raised);
            background-image:
                radial-gradient(ellipse at 20% 0%, rgba(45, 127, 249, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 100%, rgba(10, 15, 69, 0.04) 0%, transparent 60%);
            min-height: 100vh;
            color: var(--text-primary);
        }

        *:focus-visible {
            outline: 2px solid var(--secondary);
            outline-offset: 2px;
        }

        input[type="text"]:focus-visible {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px var(--secondary-light);
        }

        .btn:focus-visible {
            outline: 2px solid white;
            outline-offset: -4px;
        }

        .header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            padding: 14px 32px;
            margin-bottom: 20px;
            position: relative;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 24px rgba(10, 15, 69, 0.2);
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .header h1 {
            margin: 0;
            font-family: var(--font-display);
            font-weight: 400;
            font-size: var(--text-2xl);
            text-transform: none;
            letter-spacing: -0.01em;
            position: absolute;
            left: 0;
            right: 0;
            text-align: center;
        }

        .logo {
            max-height: 36px;
            max-width: 140px;
            margin-right: auto;
            filter: brightness(0) invert(1); /* Делает логотип белым */
        }

        .container {
            max-width: 720px;
            margin: 0 auto 20px auto;
            background: var(--surface);
            padding: 28px 36px;
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
        }

        .language-switch {
            position: relative;
            margin-left: auto;
        }

        .language-btn {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 6px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: var(--text-sm);
            font-weight: 500;
            font-family: var(--font-body);
            transition: all 0.2s ease;
            text-decoration: none;
            backdrop-filter: blur(4px);
        }

        .language-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            text-decoration: none;
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -10px;
        }

        .form-col {
            flex: 1;
            padding: 0 10px;
            min-width: 250px;
        }

        .form-group {
            margin-bottom: 16px;
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-size: var(--text-sm);
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        input[type="text"] {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            box-sizing: border-box;
            font-size: var(--text-base);
            font-family: var(--font-body);
            background: var(--surface);
            color: var(--text-primary);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input[type="text"]:focus {
            border-color: var(--border-focus);
            outline: none;
            box-shadow: 0 0 0 3px var(--secondary-light);
        }

        .file-upload {
            background: var(--surface-raised);
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
        }

        .file-upload:hover {
            border-color: var(--secondary);
            background: var(--secondary-light);
        }

        .file-upload.active,
        .file-upload.drag-over {
            border-color: var(--secondary);
            background: var(--secondary-light);
            transform: scale(1.01);
            box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.1);
        }

        .upload-icon {
            color: var(--secondary);
            margin-bottom: 4px;
        }

        .upload-main-text {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            margin: 4px 0 2px;
            font-weight: 500;
        }

        .file-upload input[type="file"] {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }

        .file-list {
            margin-top: 20px;
            padding: 0;
            list-style: none;
        }

        .file-item {
            background: var(--surface-raised);
            padding: 14px 16px;
            margin-bottom: 8px;
            border-radius: var(--radius-sm);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 3px solid var(--secondary);
            font-size: var(--text-sm);
            transition: background-color 0.2s ease;
            animation: fileSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .file-item:hover {
            background: var(--surface-hover);
        }

        .file-name {
            font-weight: 600;
            color: var(--text-primary);
            margin-right: 10px;
        }

        .file-size {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }

        .remove-file-btn {
            background-color: transparent;
            color: var(--accent);
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            min-width: 44px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s ease;
            margin-left: 8px;
        }

        .remove-file-btn:hover {
            background-color: rgba(231, 76, 60, 0.1);
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
        }

        .checkbox-container input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-radius: 4px;
            margin-right: 12px;
            cursor: pointer;
            position: relative;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .checkbox-container input[type="checkbox"]:checked {
            background: var(--secondary);
            border-color: var(--secondary);
        }

        .checkbox-container input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        .checkbox-container input[type="checkbox"]:focus-visible {
            box-shadow: 0 0 0 3px var(--secondary-light);
        }

        .checkbox-container label {
            margin-bottom: 0;
            font-weight: normal;
            font-size: var(--text-sm);
        }

        .btn {
            background: var(--primary);
            color: white;
            padding: 12px 28px;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-family: var(--font-body);
            font-size: var(--text-base);
            display: block;
            width: 100%;
            text-align: center;
            font-weight: 600;
            transition: all 0.25s ease;
            box-shadow: 0 2px 8px rgba(10, 15, 69, 0.2);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
        }

        .btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(10, 15, 69, 0.25);
        }

        .btn:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(10, 15, 69, 0.2);
        }

        .btn.loading {
            pointer-events: none;
            opacity: 0.7;
            position: relative;
        }

        .btn.loading::after {
            content: '';
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            display: inline-block;
            margin-left: 10px;
            vertical-align: middle;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

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

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.96);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .error-message {
            color: #991b1b;
            margin-bottom: 14px;
            padding: 12px 16px;
            background: var(--error-bg);
            border-radius: var(--radius-sm);
            border-left: 4px solid var(--accent);
            font-size: var(--text-sm);
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .success-message {
            color: #166534;
            margin-bottom: 14px;
            padding: 12px 16px;
            background: var(--success-bg);
            border-radius: var(--radius-sm);
            border-left: 4px solid var(--success);
            font-size: var(--text-sm);
            animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .info-text {
            font-size: var(--text-xs);
            color: var(--text-muted);
            margin-top: 4px;
        }

        .required {
            color: var(--accent);
            margin-left: 3px;
        }

        a {
            color: var(--secondary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        a:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }

        /* Анимации */
        @keyframes fileSlideIn {
            from {
                opacity: 0;
                transform: translateX(-12px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .form-row .form-col:nth-child(1) .form-group { animation-delay: 0.2s; }
        .form-row .form-col:nth-child(2) .form-group { animation-delay: 0.28s; }

        .trust-section {
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
        }

        .trust-items {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -10px;
        }

        .trust-item {
            flex: 1;
            min-width: 160px;
            margin: 0 6px 8px;
            padding: 12px 12px;
            background: var(--surface-raised);
            border-radius: var(--radius-sm);
            text-align: center;
            border: 1px solid var(--border);
            transition: box-shadow 0.2s ease;
        }

        .trust-item:hover {
            box-shadow: var(--shadow-sm);
        }

        .trust-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 6px;
            color: var(--primary);
        }

        .trust-text {
            color: var(--text-secondary);
            font-size: var(--text-xs);
            line-height: 1.4;
        }

        .footer {
            text-align: center;
            padding: 10px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }

        @media screen and (max-width: 768px) {
            .container {
                padding: 24px;
                margin: 0 16px 40px 16px;
            }

            .header {
                padding: 16px 20px;
            }

            .header h1 {
                font-size: var(--text-xl);
            }

            .logo {
                max-height: 40px;
                max-width: 120px;
            }

            .trust-items {
                flex-direction: column;
            }

            .trust-item {
                margin: 0 0 12px;
            }
        }

        @media screen and (max-width: 576px) {
            .container {
                padding: 20px 16px;
                margin: 0 12px 32px 12px;
                border-radius: var(--radius-sm);
            }

            .form-col {
                flex: 100%;
                min-width: 0;
                margin-bottom: 4px;
            }

            .form-col:last-child {
                margin-bottom: 0;
            }

            .header {
                flex-wrap: wrap;
                justify-content: center;
                padding: 16px;
            }

            .header h1 {
                position: static;
                font-size: var(--text-lg);
                margin-top: 8px;
                text-align: center;
                width: 100%;
                order: 2;
            }

            .logo {
                margin: 0;
                order: 1;
            }

            .language-switch {
                position: absolute;
                right: 16px;
                top: 16px;
            }

            .file-upload {
                padding: 28px 16px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }