/* Оценка врачей — опросник медпредов. Палитра: персиковая панель, бордовая полоса, тёмная полоса с логотипом AIGP. */

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--peach: #eecbb1;
	--peach-soft: #f6e5d8;
	--peach-pale: #fbf2eb;
	--brand: #982b22;
	--brand-ink: #84261f;
	--maroon: #6b2323;
	--ink: #2a1815;
	--ink-2: #6d5550;
	--ink-3: #9a8580;
	--carbon: #1e1a19;
	--line: #e6cfbf;
	--line-2: #f0e0d4;
	--white: #fff;
	--done: #2b7d5a;
	--done-bg: #e2f1e9;
	--part: #b26a10;
	--part-bg: #fbe9cf;
	--new: #c3b0a7;
	--new-bg: #f2e8e2;
	--r-sheet: 22px;
	--r-tile: 12px;
	--r-input: 10px;
	--focus: 0 0 0 3px rgba(152, 43, 34, 0.22);
	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body.ovr {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--carbon);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
#ovr-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	background: var(--brand);
}
#ovr-main > .ovr-paper { flex: 1 0 auto; }

:where(.ovr) img { max-width: 100%; height: auto; display: block; }
:where(.ovr) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ovr) button { cursor: pointer; }
.ovr :focus-visible { outline: none; box-shadow: var(--focus); }

.ovr-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

.ovr-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 50;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}
.ovr-skip:focus { top: 12px; }

.ovr-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Шапка: персиковая панель упаковки ---------- */

.ovr-hero {
	background: var(--peach);
	color: var(--brand-ink);
	overflow: hidden;
}
.ovr-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	padding-block: clamp(22px, 4vw, 44px) clamp(20px, 3.4vw, 36px);
}
.ovr-hero__logo {
	align-self: start;
	width: clamp(96px, 13vw, 150px);
	opacity: 0.82;
}

.ovr-spheres {
	position: relative;
	width: 200px;
	height: 164px;
	flex: none;
}
.ovr-spheres i {
	--c1: #c24c40; --c2: #92281f; --c3: #571511;
	position: absolute;
	display: block;
	border-radius: 50%;
	background:
		radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.55) 5%, rgba(255, 255, 255, 0) 19%),
		radial-gradient(circle at 42% 38%, var(--c1) 0%, var(--c2) 62%, var(--c3) 100%);
	box-shadow: inset -5px -7px 14px rgba(38, 6, 4, 0.28);
	animation: ovr-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
.ovr-spheres .s1 { width: 96px; height: 96px; left: 0; top: 66px; z-index: 5; animation-delay: 0.05s; }
.ovr-spheres .s2 { width: 72px; height: 72px; left: 8px; top: 14px; z-index: 2; --c1: #a98086; --c2: #74505a; --c3: #452a31; animation-delay: 0.12s; }
.ovr-spheres .s3 { width: 84px; height: 84px; left: 54px; top: 40px; z-index: 4; animation-delay: 0.18s; }
.ovr-spheres .s4 { width: 62px; height: 62px; left: 100px; top: 4px; z-index: 2; --c1: #9a6b72; --c2: #6a4148; --c3: #3e2228; animation-delay: 0.24s; }
.ovr-spheres .s5 { width: 52px; height: 52px; left: 122px; top: 28px; z-index: 3; animation-delay: 0.3s; }
.ovr-spheres .s6 { width: 44px; height: 44px; left: 156px; top: 36px; z-index: 1; --c1: #8f3a33; --c2: #6b2323; --c3: #3c1210; animation-delay: 0.36s; }
.ovr-spheres .s7 { width: 34px; height: 34px; left: 100px; top: 86px; z-index: 3; --c1: #8f3a33; --c2: #6b2323; --c3: #3c1210; animation-delay: 0.42s; }

@keyframes ovr-pop {
	from { opacity: 0; transform: scale(0.55) translateY(10px); }
	to { opacity: 1; transform: none; }
}

.ovr-brand { min-width: 0; }
.ovr-wordmark {
	margin: 0;
	font-size: clamp(40px, 6.4vw, 80px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-wrap: balance;
	color: var(--brand-ink);
}
.ovr-wordmark sup {
	font-size: 0.26em;
	font-weight: 600;
	letter-spacing: 0;
	vertical-align: top;
	position: relative;
	top: 0.25em;
	margin-left: 0.08em;
}
.ovr-brand__rule {
	display: block;
	height: 4px;
	max-width: 560px;
	margin: clamp(12px, 1.6vw, 18px) 0 clamp(8px, 1.2vw, 12px);
	background: var(--brand);
	border-radius: 2px;
}
.ovr-brand__title {
	margin: 0;
	font-size: clamp(17px, 2.1vw, 23px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: #5a1c17;
}

.ovr-stripe { height: 10px; background: var(--maroon); }

/* Во время работы шапка компактнее — анкете больше места. */
.ovr.is-working .ovr-hero__inner { padding-block: 16px 14px; }
.ovr.is-working .ovr-spheres { width: 120px; height: 98px; }
.ovr.is-working .ovr-spheres i { scale: 0.6; transform-origin: 0 0; }
.ovr.is-working .ovr-spheres .s1 { left: 0; top: 40px; }
.ovr.is-working .ovr-spheres .s2 { left: 5px; top: 8px; }
.ovr.is-working .ovr-spheres .s3 { left: 32px; top: 24px; }
.ovr.is-working .ovr-spheres .s4 { left: 60px; top: 2px; }
.ovr.is-working .ovr-spheres .s5 { left: 73px; top: 17px; }
.ovr.is-working .ovr-spheres .s6 { left: 94px; top: 22px; }
.ovr.is-working .ovr-spheres .s7 { left: 60px; top: 52px; }
.ovr.is-working .ovr-wordmark { font-size: clamp(34px, 4.2vw, 48px); }
.ovr.is-working .ovr-brand__rule { margin: 10px 0 6px; height: 3px; }
.ovr.is-working .ovr-brand__title { font-size: 17px; }
.ovr.is-working .ovr-hero__logo { width: 120px; align-self: center; }

/* ---------- Бордовая полоса: кто заполняет и выбор врача ---------- */

.ovr-band {
	background: var(--brand);
	color: #fbe8db;
	padding-block: clamp(24px, 3.4vw, 36px);
}
.ovr-paper {
	background: var(--peach-soft);
	padding-block: clamp(24px, 3.6vw, 44px) clamp(40px, 6vw, 72px);
	min-height: 30vh;
}
.ovr-paper:empty,
.ovr-paper:has(> .ovr-wrap:empty) { display: none; }

.ovr-boot { padding: 24px 0; color: #f6d6c4; }
.ovr-noscript { padding: 20px; background: #fff; border-radius: 12px; }

/* Экран входа */
.ovr-login {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: clamp(20px, 4vw, 56px);
	align-items: start;
}
.ovr-sheet {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--r-sheet);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -24px rgba(40, 6, 4, 0.55);
}
.ovr-login__card { padding: clamp(22px, 3vw, 32px); }
.ovr-gate { display: grid; justify-items: center; gap: 16px; padding-block: clamp(8px, 3vw, 28px); }
.ovr-gate__card { width: min(100%, 400px); text-align: center; }
.ovr-gate__card .ovr-input--pin { max-width: none; margin: 4px auto 16px; min-height: 64px; font-size: 30px; letter-spacing: 0.6em; padding-left: 0.6em; }
.ovr-gate__note { margin: 0; color: #f3cdb9; font-size: 14.5px; text-align: center; }
.ovr-linkbtn {
	display: block;
	margin: 14px auto 0;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--brand);
	font-weight: 600;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ovr-login__card h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.015em;
}
.ovr-login__card > p { margin: 0 0 20px; color: var(--ink-2); }
.ovr-login__aside { padding-top: 6px; max-width: 62ch; }
.ovr-login__aside p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: #fde9dc; }
.ovr-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ovr-rules li {
	position: relative;
	padding-left: 26px;
	color: #f5d3c1;
	font-size: 15px;
}
.ovr-rules li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.32em;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #fff 0, rgba(255, 255, 255, 0.4) 18%, rgba(255, 255, 255, 0) 40%), #e8b7a0;
}
.ovr-deadline {
	display: inline-flex;
	gap: 8px;
	align-items: baseline;
	margin-top: 22px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.16);
	color: #fff;
	font-size: 15px;
}
.ovr-deadline b { font-weight: 700; }
.ovr-deadline span { color: #f6d3bf; }
.ovr-deadline span::before { content: "— "; }
.ovr-deadline.is-urgent { background: #fff; color: var(--brand); }
.ovr-deadline.is-urgent span { color: var(--brand); font-weight: 650; }

/* Поля */
.ovr-label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 650;
	color: var(--ink);
}
.ovr-input,
.ovr-textarea,
.ovr-selectnative {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-input);
	background: var(--white);
	font-size: 16px;
	line-height: 1.45;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ovr-input:hover,
.ovr-textarea:hover,
.ovr-selectnative:hover { border-color: #d6b39e; }
.ovr-input:focus,
.ovr-textarea:focus,
.ovr-selectnative:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.ovr-textarea { min-height: 92px; resize: vertical; overflow: hidden; }
.ovr-selectnative {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23982b22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
}
.ovr-input[type="date"] { max-width: 240px; }
.ovr-input--pin { max-width: 160px; font-size: 22px; letter-spacing: 0.4em; font-weight: 700; text-align: center; }
.ovr-input:disabled,
.ovr-textarea:disabled { background: var(--peach-pale); color: var(--ink-2); }

.ovr-row { margin-bottom: 16px; }
.ovr-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fde4df;
	color: #8f1d14;
	font-size: 14.5px;
}
.ovr-error:empty { display: none; }

/* Кнопки */
.ovr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 650;
	font-size: 16px;
	text-decoration: none;
	transition: background 0.15s, transform 0.08s;
	white-space: nowrap;
}
.ovr-btn:hover { background: #82241c; }
.ovr-btn:active { transform: translateY(1px); }
.ovr-btn[disabled] { opacity: 0.55; cursor: default; }
.ovr-btn--block { width: 100%; }
.ovr-btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.ovr-btn--ghost:hover { background: rgba(152, 43, 34, 0.07); }
.ovr-btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.ovr-btn--light:hover { background: rgba(255, 255, 255, 0.2); }
.ovr-btn--small { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.ovr-btn.is-busy { position: relative; color: transparent; }
.ovr-btn.is-busy::after {
	content: "";
	position: absolute;
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	animation: ovr-spin 0.7s linear infinite;
}
.ovr-btn--ghost.is-busy::after { border-color: rgba(152, 43, 34, 0.3); border-top-color: var(--brand); }
@keyframes ovr-spin { to { transform: rotate(360deg); } }

.ovr-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--brand);
	flex: none;
}
.ovr-iconbtn:hover { border-color: var(--brand); }
.ovr-iconbtn[disabled] { opacity: 0.4; cursor: default; border-color: var(--line); }
.ovr-iconbtn svg { width: 18px; height: 18px; }

/* Шапка рабочего экрана */
.ovr-who {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px 24px;
	margin-bottom: 20px;
}
.ovr-who__name { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.ovr-who__meta { margin: 6px 0 0; color: #f3cdb9; font-size: 15px; }
.ovr-who__side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ovr-progress {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 26px;
	align-items: center;
	margin-bottom: 22px;
}
.ovr-progress__num {
	grid-row: span 2;
	font-size: clamp(38px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.ovr-progress__num small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: #f3cdb9; margin-left: 6px; }
.ovr-bar {
	display: flex;
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.16);
}
.ovr-bar span { display: block; height: 100%; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ovr-bar .is-done { background: #f6d8c4; }
.ovr-bar .is-partial { background: repeating-linear-gradient(135deg, #e9b494 0 6px, #d99c7b 6px 12px); }
.ovr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #f3cdb9; }
.ovr-legend b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.ovr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.ovr-legend .k-done { background: #f6d8c4; }
.ovr-legend .k-part { background: #e3a786; }
.ovr-legend .k-new { background: rgba(255, 255, 255, 0.25); }

/* Выбор врача */
.ovr-picker { padding: clamp(14px, 2vw, 20px); }
.ovr-picker__head { display: flex; gap: 10px; align-items: stretch; }
.ovr-combo {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--peach-pale);
	text-align: left;
}
.ovr-combo:hover { border-color: var(--brand); }
.ovr-combo__text { flex: 1; min-width: 0; }
.ovr-combo__label { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.2; }
.ovr-combo__value { display: block; font-weight: 700; font-size: 17px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovr-combo__chev { flex: none; width: 16px; height: 16px; color: var(--brand); transition: transform 0.2s; }
.ovr-combo[aria-expanded="true"] .ovr-combo__chev { transform: rotate(180deg); }

.ovr-panel { margin-top: 14px; }
.ovr-panel[hidden] { display: none; }
.ovr-panel__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.ovr-search { position: relative; flex: 1 1 260px; }
.ovr-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.ovr-search .ovr-input { padding-left: 42px; }
.ovr-filters { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ovr-filter {
	min-height: 40px;
	padding: 0 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink-2);
}
.ovr-filter b { font-weight: 700; color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ovr-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ovr-filter[aria-pressed="true"] b { color: #fff; }

.ovr-list {
	list-style: none;
	margin: 0;
	padding: 4px;
	max-height: min(56vh, 460px);
	overflow-y: auto;
	border: 1.5px solid var(--line-2);
	border-radius: 14px;
	overscroll-behavior: contain;
}
.ovr-item {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
}
.ovr-item + .ovr-item { border-top: 1px solid var(--line-2); }
.ovr-item:hover,
.ovr-item.is-active { background: var(--peach-pale); border-top-color: transparent; }
.ovr-item.is-active + .ovr-item,
.ovr-item:hover + .ovr-item { border-top-color: transparent; }
.ovr-item[aria-selected="true"] { background: #f8e3d6; box-shadow: inset 3px 0 0 var(--brand); }
.ovr-item__name { font-weight: 650; line-height: 1.3; }
.ovr-item__meta { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovr-item__visits { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ovr-item__visits b { color: var(--ink); font-weight: 700; }
.ovr-empty { padding: 26px 16px; text-align: center; color: var(--ink-2); }

.ovr-dot { width: 12px; height: 12px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--new); }
.ovr-dot.is-done { background: var(--done); box-shadow: none; }
.ovr-dot.is-partial { background: conic-gradient(var(--part) 0 50%, transparent 0); box-shadow: inset 0 0 0 2px var(--part); }

.ovr-tag {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 6px;
	background: var(--line-2);
	color: var(--maroon);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	vertical-align: 1px;
}
.ovr-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 650;
	white-space: nowrap;
}
.ovr-pill.is-done { background: var(--done-bg); color: #1f6647; }
.ovr-pill.is-partial { background: var(--part-bg); color: #87500b; }
.ovr-pill.is-new { background: var(--new-bg); color: #75625b; }

/* ---------- Анкета ---------- */

.ovr-empty-state {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: clamp(24px, 4vw, 40px);
	border: 2px dashed #e3c4b0;
	border-radius: var(--r-sheet);
	color: var(--ink-2);
}
.ovr-empty-state h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ovr-empty-state p { margin: 0; max-width: 60ch; }

.ovr-form { overflow: clip; }
.ovr-doc {
	padding: clamp(20px, 3vw, 32px) clamp(18px, 3.4vw, 40px) clamp(18px, 2.4vw, 26px);
	background: linear-gradient(180deg, #fff 0%, var(--peach-pale) 100%);
	border-bottom: 1px solid var(--line-2);
}
.ovr-doc__top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.ovr-doc__nav { margin-left: auto; display: flex; gap: 8px; }
.ovr-doc h2 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 750; letter-spacing: -0.022em; line-height: 1.12; }
.ovr-doc__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px 24px;
	margin: 18px 0 0;
}
.ovr-doc__meta div { min-width: 0; }
.ovr-doc__meta dt { font-size: 13px; color: var(--ink-2); }
.ovr-doc__meta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ovr-doc__meta .is-hot dd { color: var(--brand); }

.ovr-notice {
	margin: 18px clamp(18px, 3.4vw, 40px) 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--part-bg);
	color: #6f420a;
	font-size: 15px;
	display: flex;
	gap: 10px 16px;
	flex-wrap: wrap;
	align-items: center;
}
.ovr-notice.is-info { background: #f3e6dd; color: var(--ink); }
.ovr-notice button { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-weight: 650; }

.ovr-intro-req { margin: 18px clamp(18px, 3.4vw, 40px) 0; font-size: 14.5px; color: var(--ink-2); }
.ovr-intro-req .ovr-req { margin-left: 0; }

.ovr-sec {
	display: grid;
	grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
	gap: 20px clamp(20px, 4vw, 48px);
	padding: clamp(20px, 3vw, 32px) clamp(18px, 3.4vw, 40px);
	border-bottom: 1px solid var(--line-2);
}
.ovr-sec__head { position: relative; }
.ovr-sec__num {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--peach);
	color: var(--brand-ink);
	font-weight: 800;
	font-size: 15px;
}
.ovr-sec__head h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.ovr-sec__head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.ovr-sec__body { display: grid; gap: 24px; min-width: 0; }
.ovr-sec__body--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovr-sec__body--cols > .is-wide { grid-column: 1 / -1; }

.ovr-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.ovr-field legend { padding: 0; }
.ovr-field__title { display: block; margin-bottom: 4px; font-weight: 650; font-size: 16px; line-height: 1.35; }
.ovr-req { color: var(--brand); font-weight: 800; margin-left: 3px; }
.ovr-hint { display: block; margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 70ch; }
.ovr-field.is-missing .ovr-field__title::after {
	content: "нужно для «Готово»";
	margin-left: 10px;
	padding: 1px 8px;
	border-radius: 6px;
	background: var(--part-bg);
	color: #87500b;
	font-size: 12.5px;
	font-weight: 650;
	vertical-align: 2px;
}

.ovr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ovr-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ovr-tile { position: relative; display: block; cursor: pointer; }
.ovr-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ovr-tile__box {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	min-height: 72px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-tile);
	background: #fff;
	transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.ovr-tile__code { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--brand); }
.ovr-tile__text { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.ovr-tile:hover .ovr-tile__box { border-color: #cf9f86; }
.ovr-tile input:focus-visible + .ovr-tile__box { box-shadow: var(--focus); border-color: var(--brand); }
.ovr-tile input:checked + .ovr-tile__box { background: var(--brand); border-color: var(--brand); }
.ovr-tile input:checked + .ovr-tile__box .ovr-tile__code { color: #fff; }
.ovr-tile input:checked + .ovr-tile__box .ovr-tile__text { color: #fbdccb; }
.ovr-tile input:disabled + .ovr-tile__box { cursor: default; opacity: 0.7; }
.ovr-tiles--decision .ovr-tile__code { font-size: 17px; letter-spacing: 0.02em; }

.ovr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ovr-chip {
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #ebcdbb;
	border-radius: 999px;
	background: var(--peach-pale);
	color: var(--maroon);
	font-size: 13.5px;
	font-weight: 550;
	text-align: left;
}
.ovr-chip:hover { background: #f5dccc; }
.ovr-chip::before { content: "+"; margin-right: 6px; font-weight: 800; }

.ovr-num { max-width: 220px; }
.ovr-num .ovr-input { font-variant-numeric: tabular-nums; }

.ovr-ethic {
	margin: 0;
	padding: 18px clamp(18px, 3.4vw, 40px);
	font-size: 14px;
	color: var(--ink-2);
	background: var(--peach-pale);
}

/* Панель сохранения */
.ovr-savebar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 14px clamp(18px, 3.4vw, 40px);
	padding-bottom: max(14px, env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.97);
	border-top: 1px solid var(--line);
	backdrop-filter: blur(6px);
}
.ovr-savebar__state { flex: 1 1 280px; min-width: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.ovr-savebar__state b { color: var(--ink); }
.ovr-savebar__state .is-ok { color: var(--done); font-weight: 650; }
.ovr-savebar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ovr-state-short,
.ovr-lbl-short { display: none; }

/* Тост и модальное окно */
.ovr-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: 60;
	max-width: min(92vw, 520px);
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--ink);
	color: #fff;
	font-size: 15px;
	box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
}
.ovr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ovr-toast.is-error { background: #8f1d14; }

.ovr-modal {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(42, 24, 21, 0.55);
}
.ovr-modal[hidden] { display: none; }
.ovr-modal__box {
	width: min(100%, 460px);
	padding: 26px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.ovr-modal__box h2 { margin: 0 0 8px; font-size: 21px; font-weight: 750; letter-spacing: -0.01em; }
.ovr-modal__box p { margin: 0 0 20px; color: var(--ink-2); }
.ovr-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Подвал: тёмная полоса упаковки с логотипом ---------- */

.ovr-foot { background: var(--carbon); color: #bfb1ab; }
.ovr-foot__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
	padding-block: 26px;
}
.ovr-foot img { width: 150px; }
.ovr-foot p { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.5; max-width: 72ch; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
	.ovr-login { grid-template-columns: 1fr; }
	.ovr-login__aside { padding-top: 0; }
	.ovr-sec { grid-template-columns: 1fr; gap: 14px; }
	.ovr-sec__head { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
	.ovr-sec__num { margin: 0; grid-row: span 2; }
	.ovr-sec__head p { grid-column: 2; margin-top: 2px; }
	.ovr-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	body.ovr { font-size: 15.5px; }
	.ovr-hero__inner { grid-template-columns: auto 1fr; gap: 10px 14px; padding-top: 14px; }
	.ovr-hero__logo { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: 84px; }
	.ovr-spheres { width: 104px; height: 86px; transform-origin: 0 0; }
	.ovr-spheres i { scale: 0.52; transform-origin: 0 0; }
	.ovr-spheres .s1 { left: 0; top: 34px; }
	.ovr-spheres .s2 { left: 4px; top: 7px; }
	.ovr-spheres .s3 { left: 28px; top: 21px; }
	.ovr-spheres .s4 { left: 52px; top: 2px; }
	.ovr-spheres .s5 { left: 63px; top: 15px; }
	.ovr-spheres .s6 { left: 81px; top: 19px; }
	.ovr-spheres .s7 { left: 52px; top: 45px; }
	.ovr.is-working .ovr-spheres { display: none; }
	.ovr.is-working .ovr-hero__inner { grid-template-columns: 1fr auto; padding-block: 14px 12px; }
	.ovr.is-working .ovr-hero__logo { grid-column: 2; grid-row: 1; align-self: start; width: 76px; }
	.ovr.is-working .ovr-wordmark { font-size: 30px; }
	.ovr.is-working .ovr-brand__title { font-size: 14.5px; }
	.ovr-wordmark { font-size: 36px; }
	.ovr-brand__title { font-size: 16px; }
	.ovr-progress { grid-template-columns: 1fr; }
	.ovr-progress__num { grid-row: auto; }
	.ovr-item { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; }
	.ovr-item__visits { display: none; }
	.ovr-sec__body--cols { grid-template-columns: 1fr; }
	.ovr-tiles:not(.ovr-tiles--4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ovr-tile__box { padding: 10px 12px; }
	.ovr-doc__nav .ovr-iconbtn { width: 40px; height: 40px; border-radius: 10px; }
	.ovr-doc__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px 16px; margin-top: 14px; }
	.ovr-doc__meta > div:nth-child(2) { grid-column: 1 / -1; }
	.ovr-savebar { gap: 8px; padding-top: 10px; }
	.ovr-savebar__state { flex-basis: 100%; font-size: 13.5px; }
	.ovr-state-long { display: none; }
	.ovr-state-short { display: inline; }
	.ovr-savebar__actions { width: 100%; flex-wrap: nowrap; }
	.ovr-savebar__actions .ovr-btn { min-height: 46px; padding: 0 16px; font-size: 15px; }
	.ovr-savebar__actions .ovr-btn--ghost { flex: none; }
	.ovr-savebar__actions .ovr-btn:not(.ovr-btn--ghost) { flex: 1 1 auto; }
	.ovr-lbl-long { display: none; }
	.ovr-lbl-short { display: inline; }
	.ovr-toast { bottom: 150px; }
	.ovr-filters { width: 100%; }
	.ovr-filter { flex: 1 1 auto; padding: 0 10px; }
}

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

@media print {
	.ovr-band, .ovr-savebar, .ovr-foot, .ovr-hero { display: none; }
	.ovr-paper { background: #fff; }
}
