:root {
   color-scheme: light;
   --ink: #14243a;
   --muted: #64748a;
   --line: #d9e3ed;
   --surface: #ffffff;
   --surface-soft: #f4f7fa;
   --navy: #103f73;
   --navy-deep: #082b52;
   --blue: #1972b8;
   --cyan: #20a8a0;
   --orange: #ed7a35;
   --success: #19745a;
   --danger: #b42318;
   --shadow: 0 24px 70px rgba(8, 43, 82, .14);
   font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #eef3f7; }
body {
   min-height: 100vh;
   margin: 0;
   color: var(--ink);
   background:
      radial-gradient(circle at 8% 7%, rgba(32, 168, 160, .13), transparent 27rem),
      radial-gradient(circle at 94% 15%, rgba(237, 122, 53, .12), transparent 25rem),
      linear-gradient(180deg, #f9fbfd 0%, #edf3f7 100%);
}

button, input, select { font: inherit; }
button, select, .drop-zone { cursor: pointer; }
[hidden] { display: none !important; }

.site-header,
.page-shell,
.site-footer {
   width: min(1180px, calc(100% - 40px));
   margin-inline: auto;
}

.site-header {
   padding: 26px 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
}

.brand {
   display: inline-flex;
   align-items: center;
   gap: 13px;
   color: inherit;
   text-decoration: none;
}
.brand-mark {
   display: grid;
   place-items: center;
   min-width: 58px;
   height: 58px;
   padding: 0 8px;
   border-radius: 16px;
   color: #fff;
   background: linear-gradient(145deg, var(--navy), var(--blue));
   box-shadow: 0 10px 25px rgba(16, 63, 115, .22);
   font-size: 11px;
   font-weight: 850;
   letter-spacing: .08em;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: 13px; }

.secure-note {
   display: inline-flex;
   align-items: center;
   gap: 7px;
   color: var(--muted);
   font-size: 13px;
   font-weight: 650;
}
.secure-note svg {
   width: 17px;
   fill: none;
   stroke: var(--success);
   stroke-width: 1.8;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.page-shell {
   margin-top: 38px;
   margin-bottom: 72px;
   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(430px, .83fr);
   gap: 80px;
   align-items: start;
}

.intro { padding-top: 28px; }
.eyebrow {
   margin: 0 0 14px;
   color: var(--blue);
   font-size: 12px;
   font-weight: 850;
   letter-spacing: .15em;
}
.intro h1 {
   max-width: 660px;
   margin: 0;
   font-size: clamp(42px, 5vw, 68px);
   line-height: .99;
   letter-spacing: -.055em;
}
.lead {
   max-width: 620px;
   margin: 28px 0 0;
   color: var(--muted);
   font-size: 18px;
   line-height: 1.65;
}

.process {
   margin-top: 38px;
   display: grid;
   gap: 14px;
}
.process > div { display: flex; align-items: center; gap: 14px; }
.process > div > span {
   width: 36px;
   height: 36px;
   flex: 0 0 36px;
   display: grid;
   place-items: center;
   border: 1px solid rgba(16, 63, 115, .18);
   border-radius: 50%;
   color: var(--navy);
   background: rgba(255, 255, 255, .7);
   font-weight: 800;
}
.process p { margin: 0; display: grid; gap: 2px; }
.process b { font-size: 15px; }
.process small { color: var(--muted); font-size: 13px; }

.privacy-note {
   max-width: 620px;
   margin-top: 38px;
   padding: 17px 19px;
   display: grid;
   grid-template-columns: 26px 1fr;
   gap: 12px;
   align-items: start;
   border-left: 4px solid var(--cyan);
   border-radius: 0 14px 14px 0;
   background: rgba(255, 255, 255, .72);
}
.privacy-note > span {
   width: 24px;
   height: 24px;
   display: grid;
   place-items: center;
   border-radius: 50%;
   color: #fff;
   background: var(--cyan);
   font: 800 13px Georgia, serif;
}
.privacy-note p { margin: 1px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.privacy-note b { color: var(--ink); }

.upload-card {
   min-height: 650px;
   padding: clamp(25px, 4vw, 42px);
   border: 1px solid rgba(16, 63, 115, .08);
   border-radius: 28px;
   background: rgba(255, 255, 255, .95);
   box-shadow: var(--shadow);
   backdrop-filter: blur(14px);
}
.card-heading { margin-bottom: 26px; }
.step-label {
   color: var(--orange);
   font-size: 12px;
   font-weight: 850;
   letter-spacing: .09em;
   text-transform: uppercase;
}
.card-heading h2,
.success-view h2 {
   margin: 7px 0 7px;
   font-size: 29px;
   line-height: 1.15;
   letter-spacing: -.035em;
}
.card-heading p { margin: 0; color: var(--muted); font-size: 14px; }

form { display: grid; gap: 19px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 13px; }
.field-row.equal { grid-template-columns: 1fr 1fr; }
.field { min-width: 0; display: grid; gap: 7px; }
.field > span,
.field-label,
.name-fields legend {
   color: #34455b;
   font-size: 13px;
   font-weight: 750;
}
input, select {
   width: 100%;
   min-height: 48px;
   padding: 0 13px;
   border: 1px solid #cbd7e3;
   border-radius: 12px;
   outline: none;
   color: var(--ink);
   background: #fff;
   transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus {
   border-color: var(--blue);
   box-shadow: 0 0 0 4px rgba(25, 114, 184, .12);
}
input::placeholder { color: #9ba8b7; }

.name-fields {
   min-width: 0;
   margin: 0;
   padding: 17px;
   display: grid;
   gap: 14px;
   border: 1px solid var(--line);
   border-radius: 16px;
   background: var(--surface-soft);
}
.name-fields legend { padding: 0 6px; }
.filename-line {
   min-width: 0;
   margin: 0;
   color: var(--muted);
   font-size: 12px;
   line-height: 1.45;
}
.filename-line strong {
   display: block;
   overflow-wrap: anywhere;
   color: var(--navy);
   font-size: 13px;
}

.photo-field { display: grid; gap: 8px; }
.converter-help {
   margin: 2px 0 5px;
   padding: 14px;
   display: grid;
   grid-template-columns: 38px minmax(0, 1fr);
   gap: 12px;
   border: 1px solid #cfe1ef;
   border-radius: 14px;
   background: #f2f8fc;
}
.converter-icon {
   width: 38px;
   height: 38px;
   display: grid;
   place-items: center;
   border-radius: 11px;
   color: var(--blue);
   background: #dfeffa;
}
.converter-icon svg,
.converter-link svg {
   width: 20px;
   fill: none;
   stroke: currentColor;
   stroke-width: 1.8;
   stroke-linecap: round;
   stroke-linejoin: round;
}
.converter-copy { min-width: 0; }
.converter-copy > strong { display: block; font-size: 13px; line-height: 1.4; }
.converter-copy ol {
   margin: 7px 0 10px;
   padding-left: 18px;
   color: var(--muted);
   font-size: 12px;
   line-height: 1.45;
}
.converter-copy li + li { margin-top: 3px; }
.converter-link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: var(--blue);
   font-size: 12px;
   font-weight: 800;
   text-decoration: none;
}
.converter-link:hover { text-decoration: underline; }
.converter-link:focus-visible {
   border-radius: 4px;
   outline: 3px solid rgba(25, 114, 184, .18);
   outline-offset: 3px;
}
.converter-link svg { width: 15px; }
.converter-copy > small {
   display: block;
   margin-top: 7px;
   color: #7b8998;
   font-size: 10px;
   line-height: 1.35;
}
.drop-zone {
   min-height: 132px;
   padding: 22px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 15px;
   border: 1.5px dashed #9fb5c9;
   border-radius: 16px;
   background: #f8fafc;
   text-align: left;
   transition: border-color .18s, background .18s, transform .18s;
}
.drop-zone:hover,
.drop-zone.is-dragging {
   border-color: var(--blue);
   background: #f1f7fc;
   transform: translateY(-1px);
}
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-icon {
   width: 45px;
   height: 45px;
   flex: 0 0 45px;
   display: grid;
   place-items: center;
   border-radius: 13px;
   color: var(--blue);
   background: #e4f1fb;
}
.upload-icon svg,
.primary-button svg,
.success-mark svg,
.requirement-icon svg {
   width: 23px;
   fill: none;
   stroke: currentColor;
   stroke-width: 1.8;
   stroke-linecap: round;
   stroke-linejoin: round;
}
.drop-copy { display: grid; gap: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.drop-copy b { color: var(--blue); font-size: 14px; }
.drop-copy small { font-size: 12px; }

.file-card {
   position: relative;
   padding: 12px 40px 12px 12px;
   display: grid;
   grid-template-columns: 78px minmax(0, 1fr);
   gap: 13px;
   border: 1px solid var(--line);
   border-radius: 16px;
   background: var(--surface-soft);
}
.photo-preview {
   width: 78px;
   height: 100px;
   overflow: hidden;
   display: grid;
   place-items: center;
   border-radius: 10px;
   color: var(--blue);
   background: #e2ebf4;
   font-size: 11px;
   font-weight: 850;
   letter-spacing: .08em;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-copy { min-width: 0; padding: 2px 0; display: grid; align-content: start; gap: 3px; }
.file-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-copy > small { color: var(--muted); font-size: 11px; }
.checks { margin: 6px 0 0; padding: 0; display: grid; gap: 4px; list-style: none; }
.checks li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.checks li span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #a9b5c1; }
.checks li.is-ok { color: var(--success); }
.checks li.is-ok span { background: var(--success); }
.checks li.is-error { color: var(--danger); font-weight: 700; }
.checks li.is-error span { background: var(--danger); }
.checks li.is-pending span { background: var(--orange); }
.icon-button {
   position: absolute;
   top: 7px;
   right: 7px;
   width: 30px;
   height: 30px;
   padding: 0;
   border: 0;
   border-radius: 9px;
   color: var(--muted);
   background: transparent;
   font-size: 22px;
   line-height: 1;
}
.icon-button:hover { color: var(--danger); background: #fff; }

.confirmation-row {
   display: grid;
   grid-template-columns: 20px 1fr;
   gap: 10px;
   align-items: start;
   color: var(--muted);
   font-size: 12px;
   line-height: 1.48;
}
.confirmation-row input { width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--blue); }

.form-message {
   margin: 0;
   padding: 12px 14px;
   border-radius: 11px;
   font-size: 13px;
   line-height: 1.45;
}
.form-message.error { color: #8f1f17; background: #fff0ee; }

.primary-button {
   min-height: 52px;
   padding: 0 20px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   border: 0;
   border-radius: 13px;
   color: #fff;
   background: linear-gradient(135deg, var(--navy), var(--blue));
   box-shadow: 0 12px 24px rgba(16, 63, 115, .2);
   font-weight: 800;
   transition: transform .18s, box-shadow .18s, opacity .18s;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(16, 63, 115, .25); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.primary-button svg { width: 18px; }
.is-submitting .primary-button svg { animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }

.success-view {
   min-height: 570px;
   display: grid;
   place-content: center;
   justify-items: center;
   text-align: center;
}
.success-view:focus { outline: none; }
.success-mark {
   width: 68px;
   height: 68px;
   margin-bottom: 22px;
   display: grid;
   place-items: center;
   border-radius: 50%;
   color: #fff;
   background: linear-gradient(145deg, var(--success), var(--cyan));
   box-shadow: 0 14px 32px rgba(25, 116, 90, .22);
}
.success-mark svg { width: 35px; stroke-width: 2.2; }
.success-view > p:not(.eyebrow) { max-width: 330px; margin: 5px 0 15px; color: var(--muted); line-height: 1.5; }
.saved-filename {
   max-width: 100%;
   padding: 10px 14px;
   overflow-wrap: anywhere;
   border-radius: 10px;
   color: var(--navy);
   background: #edf5fb;
   font-size: 14px;
}
.saved-details { width: 100%; margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.saved-details div { padding: 13px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; }
.saved-details dt { color: var(--muted); font-size: 11px; }
.saved-details dd { margin: 0; font-size: 13px; font-weight: 750; }
.success-view .primary-button { width: 100%; }

.requirements {
   grid-column: 1 / -1;
   margin-top: 20px;
   padding-top: 66px;
   border-top: 1px solid rgba(16, 63, 115, .12);
}
.requirements-heading { max-width: 720px; }
.requirements-heading h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.045em; }
.requirements-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.requirements-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.requirement-card {
   position: relative;
   min-width: 0;
   padding: 26px;
   overflow: hidden;
   border: 1px solid rgba(16, 63, 115, .09);
   border-radius: 20px;
   background: rgba(255, 255, 255, .84);
}
.requirement-card::after {
   content: "";
   position: absolute;
   right: -35px;
   bottom: -50px;
   width: 130px;
   height: 130px;
   border-radius: 50%;
   background: rgba(25, 114, 184, .05);
}
.requirement-icon {
   width: 42px;
   height: 42px;
   display: grid;
   place-items: center;
   border-radius: 12px;
   color: var(--blue);
   background: #e7f2fa;
}
.portrait-card .requirement-icon { color: var(--success); background: #e7f6f1; }
.quality-card .requirement-icon { color: var(--orange); background: #fff0e6; }
.requirement-card h3 { margin: 18px 0 13px; font-size: 19px; letter-spacing: -.02em; }
.requirement-card ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 14px; line-height: 1.52; }
.requirement-card li + li { margin-top: 8px; }
.requirement-card li::marker { color: var(--blue); }
.requirement-card b { color: var(--ink); }
.requirement-card > small { display: block; margin-top: 14px; color: #8290a0; font-size: 11px; line-height: 1.4; }

.site-footer {
   margin-top: 0;
   padding: 0 0 34px;
   display: flex;
   justify-content: space-between;
   gap: 20px;
   color: var(--muted);
   font-size: 12px;
}

@media (max-width: 980px) {
   .page-shell { grid-template-columns: 1fr; gap: 45px; }
   .intro { max-width: 760px; padding-top: 10px; }
   .upload-card { max-width: 680px; width: 100%; }
   .requirements { margin-top: 5px; }
}

@media (max-width: 780px) {
   .requirements-grid { grid-template-columns: 1fr; }
   .requirement-card { padding: 23px; }
}

@media (max-width: 560px) {
   .site-header, .page-shell, .site-footer { width: min(100% - 28px, 1180px); }
   .site-header { padding: 18px 0; }
   .secure-note { display: none; }
   .brand-mark { min-width: 50px; height: 50px; border-radius: 14px; }
   .brand-copy strong { font-size: 16px; }
   .page-shell { margin-top: 20px; margin-bottom: 52px; gap: 34px; }
   .intro h1 { font-size: 42px; }
   .lead { margin-top: 22px; font-size: 16px; }
   .process { margin-top: 28px; }
   .privacy-note { margin-top: 28px; }
   .upload-card { min-height: 0; padding: 23px 18px; border-radius: 22px; }
   .field-row, .field-row.equal { grid-template-columns: 1fr; }
   .field-row .field-small { max-width: none; }
   .converter-help { grid-template-columns: 1fr; }
   .converter-icon { width: 34px; height: 34px; }
   .drop-zone { min-height: 145px; padding: 19px; flex-direction: column; text-align: center; }
   .file-card { grid-template-columns: 66px minmax(0, 1fr); }
   .photo-preview { width: 66px; height: 88px; }
   .checks li { align-items: flex-start; }
   .requirements { padding-top: 48px; }
   .requirements-heading h2 { font-size: 34px; }
   .site-footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
   *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
