/* Med Diagnostics — стили сервиса (префикс med- для изоляции от темы WordPress) */ .med-diag { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; margin: 0 auto; color: #333; box-sizing: border-box; } .med-diag *, .med-diag *::before, .med-diag *::after { box-sizing: border-box; } .med-diag-title { color: #061A40; text-align: center; margin-bottom: 10px; font-size: 28px; line-height: 1.3; } .med-diag-subtitle { color: #555; text-align: center; margin-bottom: 25px; font-size: 15px; } .med-card { background: #faf6ec; border-radius: 16px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-bottom: 20px; } .med-card h3 { color: #333; margin-bottom: 15px; font-size: 20px; line-height: 1.3; } .med-upload-area { border: 2px dashed #ccc; border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s; background: #fafafa; } .med-upload-area:hover, .med-upload-area.dragover { border-color: #0014FC; background: #f0f2ff; } .med-upload-area .med-icon { font-size: 48px; margin-bottom: 10px; } .med-upload-area p { color: #666; margin: 5px 0; } .med-upload-area .med-hint { font-size: 13px; color: #999; } .med-diag input[type="file"] { display: none; } .med-btn { background: linear-gradient(135deg, #061A40, #0B4F9C, #2D9CDB); color: #fff; border: none; padding: 12px 30px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.3s; margin-top: 15px; display: inline-block; line-height: 1.5; } .med-btn:hover { filter: brightness(1.15); } .med-btn:disabled { background: #ccc; cursor: not-allowed; } .med-btn-secondary { background: #eee; color: #333; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.3s; } .med-btn-secondary:hover { background: #ddd; } /* Кнопки скачивания */ .med-download-buttons { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; } .med-btn-download { flex: 1; min-width: 140px; text-align: center; background: linear-gradient(135deg, #061A40, #0B4F9C, #2D9CDB); color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-size: 15px; cursor: pointer; transition: background 0.3s; text-decoration: none; display: inline-block; line-height: 1.5; } .med-btn-download:hover { filter: brightness(1.15); color: #fff; } .med-btn-download:active { transform: scale(0.98); } /* Сканирование с камеры */ .med-scan-section { display: none; margin-bottom: 15px; } .med-scan-desc { color: #666; font-size: 14px; margin-bottom: 15px; } .med-scan-consent { color: #888; font-size: 12px; line-height: 1.5; margin-top: 12px; text-align: center; } .med-scan-btn { width: 100%; background: linear-gradient(135deg, #061A40, #0B4F9C, #2D9CDB); color: #fff; border: none; padding: 16px 20px; border-radius: 12px; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; box-shadow: 0 4px 15px rgba(102,126,234,0.4); transition: transform 0.2s, box-shadow 0.2s; } .med-scan-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,0.5); } .med-scan-btn:active { transform: scale(0.98); } .med-scan-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; } .med-scan-modal { display: none; position: fixed; inset: 0; background: rgba(10, 10, 30, 0.92); z-index: 100000; align-items: center; justify-content: center; flex-direction: column; padding: 20px; } .med-scan-modal.open { display: flex; } .med-scan-video-wrap { /* width: 280px; */ /* height: 280px; */ width: 80vw; height: 80vw; max-width: 500px; max-height: 500px; border-radius: 50%; overflow: hidden; border: 4px solid #0014FC; background: #000; box-shadow: 0 0 40px rgba(102,126,234,0.5); position: relative; } .med-scan-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); } /* Овал — безопасная зона: лицо должно помещаться в него целиком */ .med-scan-oval { position: absolute; inset: 12%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4); pointer-events: none; z-index: 2; } .med-scan-progress { color: #fff; margin-top: 20px; font-size: 16px; text-align: center; } .med-scan-progress-bar { width: 280px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; margin-top: 10px; overflow: hidden; } .med-scan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #061A40, #0B4F9C, #2D9CDB); transition: width 0.2s; border-radius: 4px; } .med-scan-cancel { margin-top: 20px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 12px 30px; border-radius: 8px; font-size: 15px; cursor: pointer; transition: background 0.3s; } .med-scan-cancel:hover { background: rgba(255,255,255,0.2); } .med-scan-hint { color: rgba(255,255,255,0.7); margin-top: 15px; font-size: 13px; text-align: center; max-width: 300px; } /* Прогресс */ .med-progress-container { display: none; margin-top: 20px; } .med-progress-bar { width: 100%; height: 20px; background: #eee; border-radius: 10px; overflow: hidden; } .med-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #061A40, #0B4F9C, #2D9CDB); transition: width 0.3s; border-radius: 10px; } .med-progress-text { text-align: center; margin-top: 10px; color: #666; font-size: 14px; } /* Результат */ .med-result { display: none; } .med-summary-box { background: linear-gradient(135deg, #061A40, #0B4F9C, #2D9CDB); color: #fff; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 16px; line-height: 1.6; } .med-metrics-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } .med-metrics-table th, .med-metrics-table td { padding: 10px 15px; text-align: left; border-bottom: 1px solid #eee; } .med-metrics-table th { background: #f8f9fa; font-weight: 600; color: #555; } .med-metrics-table tr:hover { background: #fafafa; } .med-status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; } .med-status-ok { background: #d4edda; color: #155724; } .med-status-warning { background: #ffe0d6; color: #a04a2f; } .med-status-danger { background: #f8d7da; color: #721c24; } .med-status-info { background: #dbe9ff; color: #1e4a8a; } .med-warnings-box { background: #ffe0d6; border-left: 4px solid #ff7f50; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; } .med-warnings-box h3 { color: #a04a2f; margin-bottom: 10px; font-size: 16px; } .med-warnings-box ul { padding-left: 20px; margin: 0; } .med-warnings-box li { margin: 5px 0; color: #a04a2f; } .med-advice-box { background: #d4edda; border-left: 4px solid #28a745; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; } .med-advice-box h3 { color: #155724; margin-bottom: 10px; font-size: 16px; } .med-advice-box ul { padding-left: 20px; margin: 0; } .med-advice-box li { margin: 5px 0; color: #155724; } .med-disclaimer { background: #f8f9fa; border-radius: 8px; padding: 12px 15px; font-size: 13px; color: #888; margin-top: 20px; } .med-error-box { background: #f8d7da; border-left: 4px solid #dc3545; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; color: #721c24; } .med-result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; } /* Мобильная версия */ @media (max-width: 600px) { .med-diag-title { font-size: 22px; margin-bottom: 12px; } .med-diag-subtitle { font-size: 14px; margin-bottom: 18px; } .med-card { padding: 18px; border-radius: 14px; margin-bottom: 14px; } .med-card h3 { font-size: 18px; } .med-upload-area { padding: 25px 15px; } .med-upload-area .med-icon { font-size: 40px; } .med-btn, .med-btn-secondary { width: 100%; padding: 14px 20px; font-size: 16px; min-height: 48px; } .med-download-buttons { flex-direction: column; } .med-btn-download { width: 100%; min-width: 0; padding: 14px 20px; font-size: 16px; min-height: 48px; } .med-result-header { flex-direction: column; align-items: stretch; } .med-result-header h3 { text-align: center; } .med-metrics-table thead { display: none; } .med-metrics-table, .med-metrics-table tbody, .med-metrics-table tr, .med-metrics-table td { display: block; width: 100%; } .med-metrics-table tr { border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; } .med-metrics-table td { border: none; padding: 5px 0; } .med-metrics-table td:first-child { font-weight: 600; color: #555; } .med-summary-box, .med-warnings-box, .med-advice-box { padding: 12px 14px; font-size: 15px; } .med-progress-text { font-size: 13px; } } /* Лоадер обработки (после сканирования) */ .med-scan-loader { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.7); align-items: center; justify-content: center; } .med-scan-loader.open { display: flex; } .med-scan-loader-content { text-align: center; color: #fff; } .med-scan-loader-spinner { width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: med-spin 0.8s linear infinite; margin: 0 auto 20px; } .med-scan-loader-text { font-size: 20px; font-weight: 600; margin-bottom: 8px; } .med-scan-loader-sub { font-size: 14px; opacity: 0.8; } @keyframes med-spin { to { transform: rotate(360deg); } }