
@font-face {
	font-family: "Manrope Variable";
	src: url("/manrope-cyrillic.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
	font-family: "Manrope Variable";
	src: url("/manrope-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122;
}
:root {
	--surface: #fff;
	--background: #f2f3f7;
	--border: #e5e7eb;
	--text: #101012;
	--muted: #374151;
	--accent: #1c4ae5;
	--focus: #5b7dec;
}
* { box-sizing: border-box }
body {
	background: var(--background);
	color: var(--text);
	font: var(--rr-type-font-weight-regular) var(--rr-type-font-size-m)/var(--rr-type-line-height-m) var(--rr-type-font-family), system-ui, sans-serif;
	margin: 0;
	padding: 16px;
	min-height: 100dvh;
}
body[data-theme="otp"] { --background: #f1f7e9; --text: #1a1a1a; --accent: #3d5f22; --focus: #7abe43 }
.brand { display: flex; justify-content: center; margin: 0 auto 16px }
.brand img { display: block; width: min(220px, 88vw); height: auto; max-height: 40px }
.card { width: min(720px, 100%); margin: 0 auto; border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface) }
header { display: flex; margin-bottom: 20px }
.step { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: var(--rr-type-font-size-s); font-weight: var(--rr-type-font-weight-bold); line-height: normal }
.flow { display: flex; flex-direction: column; gap: 16px }
h1 { margin: 0; font-size: var(--rr-type-font-size-2xl); line-height: 1.12; font-weight: var(--rr-type-font-weight-bold) }
p { margin: 0; color: var(--muted) }
input,button { font: inherit }
input:not([type="checkbox"]) { min-height: 48px; width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface) }
#phone-input, #profile-phone, #birth_date, #issued_at { min-height: var(--rr-unit-px-12); padding-block: 4px }
body[data-theme="otp"] #profile-phone { border-color: var(--focus) }
input:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
.acceptance { display: grid; gap: 8px }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-weight: var(--rr-type-font-weight-medium); color: var(--muted) }
.checkbox input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent) }
.acceptance .checkbox { align-items: center; gap: 10px; color: #64748b; line-height: normal }
.acceptance .checkbox a, .acceptance .checkbox:has(:checked) { color: #6b7280 }
.acceptance .checkbox input { margin: 0; width: auto; height: auto; accent-color: #6b7280 }
button { align-self: flex-start; min-height: 48px; padding: 10px 16px; border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 12px; font-weight: var(--rr-type-font-weight-bold); cursor: pointer }
button.outline { color: var(--accent); background: var(--surface) }
.field-line { display: flex; justify-content: space-between; gap: 8px; align-items: baseline }
button.text-button { width: auto; min-height: 0; padding: 0; border: 0; color: var(--accent); background: transparent; text-decoration: underline }
button:disabled { opacity: .65; cursor: default }
a,summary { color: var(--accent) }
details { margin-top: 16px }
#document,.doc { white-space: pre-line }
.doc { max-width: 720px; margin: 0 auto }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px }
.field { display: flex; flex-direction: column; min-width: 0; gap: 8px; font-size: var(--rr-type-font-size-s); font-weight: var(--rr-type-font-weight-bold); line-height: normal }
.field input { font-size: var(--rr-type-font-size-m); font-weight: var(--rr-type-font-weight-regular) }
.wide { grid-column: 1 / -1 }
.state,.error { padding: 12px; border-radius: 12px; background: var(--background) }
.error { margin-bottom: 16px; color: #b42318 }
#profile-summary { border: 1px solid var(--border); border-radius: 12px; margin: 0 }
#profile-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px }
#profile-summary div + div { border-top: 1px solid var(--border) }
#profile-summary dt { color: var(--muted); font-weight: var(--rr-type-font-weight-bold) }
#profile-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: end }
[hidden] { display: none !important }
@media (max-width:680px) {
	body { padding: 12px }
	.card { padding: 16px; border-radius: 14px }
	h1 { font-size: var(--rr-type-font-size-xl) }
	.form-grid { grid-template-columns: 1fr }
	#profile-summary div { flex-direction: column; gap: 4px }
	#profile-summary dd { text-align: start }
	button { width: 100% }
}
