/* =========================================================================
   SevGo Portal — стиль «лабораторного бланка»
   Токены: чертёжный синий + бумага, сигнально-жёлтый только у «штампа».
   ====================================================================== */

:root {
	--ink:    #10263F;
	--navy:   #0C2038;
	--blue:   #1B5FAE;
	--blue-d: #14497F;
	--steel:  #5D7189;
	--paper:  #F4F7FB;
	--card:   #FFFFFF;
	--line:   #DCE4EE;
	--signal: #E8A013;
	--ok-bg:  #E9F6EE; --ok-tx: #1E6B3C;
	--er-bg:  #FBECEC; --er-tx: #9E2B25;

	--font: "Golos Text", "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

	--r: 8px;
	--shadow: 0 10px 30px rgba(12, 32, 56, .10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: inherit; }
.link { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(27, 95, 174, .3); }
.link:hover { color: var(--blue-d); border-bottom-color: currentColor; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 .7em; }

.mono  { font-family: var(--mono); font-size: .82em; letter-spacing: .01em; }
.muted { color: var(--steel); }

.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Ярлык «как на бланке формы» */
.eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--steel);
}

:focus-visible { outline: 3px solid rgba(27, 95, 174, .45); outline-offset: 2px; border-radius: 4px; }

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

/* =========================================================================
   Страницы авторизации: миллиметровка на чертёжном синем
   ====================================================================== */

.auth {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
	background:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100px 100px,
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 100px 100px,
		linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 20px 20px,
		linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 20px 20px,
		radial-gradient(1200px 700px at 70% -10%, #17395F 0%, var(--navy) 55%);
	background-color: var(--navy);
}

.auth__card {
	width: 100%;
	max-width: 440px;
	background: var(--card);
	border-radius: 10px;
	box-shadow: var(--shadow);
	padding: 26px 30px 22px;
}

/* «Бланк»: двойная линейка сверху — как шапка протокола */
.blank { border-top: 3px solid var(--blue); position: relative; }
.blank::before {
	content: "";
	position: absolute;
	top: 4px; left: 0; right: 0;
	border-top: 1px solid var(--blue);
	opacity: .5;
}

.blank__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0 18px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 18px;
}

.blank__foot {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	font-size: 13.5px;
	color: var(--steel);
}

/* Штамп аккредитации — фирменный элемент */
.stamp {
	flex: none;
	transform: rotate(-2deg);
	border: 1.5px solid var(--blue);
	border-radius: 4px;
	padding: 5px 9px 6px;
	font-family: var(--mono);
	text-transform: uppercase;
	color: var(--blue);
	background: rgba(27, 95, 174, .04);
	box-shadow: inset 0 0 0 1.5px rgba(232, 160, 19, 0);
}
.stamp span { display: block; font-size: 8.5px; letter-spacing: .1em; opacity: .75; }
.stamp b    { display: block; font-size: 10.5px; letter-spacing: .05em; }

.auth__title { font-size: 26px; font-weight: 700; }
.auth__sub   { color: var(--steel); font-size: 14.5px; margin-bottom: 18px; }
.auth__legal { margin-top: 22px; color: rgba(255, 255, 255, .55); font-size: 13px; }

/* Логотип / текстовый бренд */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-img { max-height: 60px; width: auto; }
.brand-text b { display: block; font-size: 17px; line-height: 1.15; color: var(--ink); }
.brand-text i { display: block; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

/* Формы */
.form { margin-top: 4px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field select,
.field textarea {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font: inherit;
	color: var(--ink);
	background: #FBFCFE;
	border: 1px solid var(--line);
	border-radius: 6px;
	transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(27, 95, 174, .16);
	background: #fff;
}

.field__pass { position: relative; }
.field__pass input { padding-right: 46px; }
.pass-toggle {
	position: absolute; top: 0; right: 0;
	height: 46px; width: 46px;
	border: 0; background: none; cursor: pointer;
	color: var(--steel); font-size: 16px;
}
.pass-toggle:hover { color: var(--blue); }

.form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 16px;
	font-size: 14px;
}
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--steel); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }

.hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--blue);
	background: #fff;
	border: 1px solid var(--blue);
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: rgba(27, 95, 174, .07); }
.btn:active { transform: translateY(1px); }

.btn--primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-d); border-color: var(--blue-d); }

.btn--ghost { margin-top: 6px; }

.btn--block { width: 100%; }

.btn--small { height: 36px; padding: 0 14px; font-size: 13.5px; flex: none; }

/* Флеш-сообщения */
.flash {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	border: 1px solid transparent;
}
.flash--ok  { background: var(--ok-bg); color: var(--ok-tx); border-color: rgba(30, 107, 60, .25); }
.flash--err { background: var(--er-bg); color: var(--er-tx); border-color: rgba(158, 43, 37, .25); }

/* =========================================================================
   Кабинет
   ====================================================================== */

.app-top {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.2) blur(6px);
}
.app-top__row {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 76px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}
.app-top__rule { border-top: 3px solid var(--blue); box-shadow: 0 4px 0 -3px rgba(27, 95, 174, .5); }

.app-top .brand-img { max-height: 54px; }

.app-nav { display: flex; gap: 4px; margin-right: auto; }
.app-nav__link:hover { background: var(--paper); }
.app-nav__link {
	padding: 9px 14px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	color: var(--steel);
}
.app-nav__link:hover { color: var(--blue); background: rgba(27, 95, 174, .06); }
.app-nav__link.is-active { color: var(--blue); background: rgba(27, 95, 174, .1); }

/* Мобильный «гамбургер» и внутридроверный блок пользователя — скрыты на десктопе */
.app-burger { display: none; }
.app-nav__user { display: none; }
.app-nav__backdrop { display: none; }

.app-user { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.app-user__name { color: var(--steel); }
.app-user__out { color: var(--blue); text-decoration: none; font-weight: 600; }
.app-user__out:hover { text-decoration: underline; }

.app { padding-top: 38px; padding-bottom: 72px; }

.page-head { margin-bottom: 30px; max-width: 960px; }
.page-head h1 { font-size: 30px; letter-spacing: -.01em; margin: 0 0 8px; }

/* Карточки-сводки */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 20px;
	margin-bottom: 42px;
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 22px 24px;
}
.card__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 10px;
}
.card__title { font-size: 18px; }
.card__big { margin: 12px 0 4px; font-size: 15px; }
.card__big b { font-size: 26px; color: var(--blue); font-family: var(--mono); font-weight: 700; }

.card--notice { border-left: 4px solid var(--signal); max-width: 720px; }
.card--notice h2 { font-size: 18px; }

.person { display: flex; gap: 14px; align-items: flex-start; }
.person p { margin: 0 0 2px; font-size: 14.5px; }
.person__photo {
	flex: none;
	width: 54px; height: 54px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
}
.person__photo--ph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--navy);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

/* Реестр документов */
.docs-block { margin-bottom: 36px; }
.docs-block__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}
.docs-block__head h2 { font-size: 19px; margin: 0; }

.badge {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	color: var(--blue);
	background: rgba(27, 95, 174, .1);
	border-radius: 20px;
	padding: 2px 10px;
}

.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
}
.doc {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-top: 1px solid var(--line);
	transition: background .12s;
}
.doc:first-child { border-top: 0; }
.doc:hover { background: #F7FAFE; }

.doc__body { min-width: 0; flex: 1; }
.doc__name {
	display: block;
	font-weight: 600;
	font-size: 15px;
	overflow-wrap: anywhere;
}
.doc__meta { display: block; color: var(--steel); margin-top: 2px; }

/* Чипы расширений: цвет = тип документа */
.chip {
	flex: none;
	min-width: 46px;
	text-align: center;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #fff;
	background: var(--steel);
	border-radius: 4px;
	padding: 6px 7px;
}
.chip--pdf { background: #B23A32; }
.chip--doc { background: var(--blue); }
.chip--xls { background: #1E7F4F; }
.chip--img { background: #6F4FB2; }
.chip--zip { background: #8A6D3B; }
.chip--cad { background: #B2660F; }
.chip--gen { background: var(--steel); }

/* Пустые состояния */
.empty {
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--r);
	padding: 26px;
}
.empty--page { padding: 40px 26px; max-width: 720px; }
.empty p { margin-bottom: 4px; }

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

@media (max-width: 720px) {
	.auth__card { padding: 22px 20px 18px; }
	.auth__title { font-size: 22px; }
	.stamp { transform: rotate(-1.5deg) scale(.92); transform-origin: top right; }

	.app-top__row { gap: 12px; }

	.page-head h1 { font-size: 23px; }

	.doc { flex-wrap: wrap; }
	.doc .btn--small { margin-left: 60px; }
}

/* =========================================================================
   Мобильная навигация: гамбургер + выезжающий drawer
   ====================================================================== */

@media (max-width: 860px) {
	.app-top__row {
		flex-wrap: nowrap;
		gap: 14px;
		min-height: 64px;
	}
	.app-user { display: none; }
	.app-top .brand-img { max-height: 44px; }

	/* Кнопка-гамбургер */
	.app-burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 0;
		background: transparent;
		border: 1px solid var(--line);
		border-radius: 10px;
		cursor: pointer;
		color: var(--navy);
	}
	.app-burger:hover { border-color: var(--blue); color: var(--blue); }
	.app-burger__box { position: relative; width: 20px; height: 14px; }
	.app-burger__line,
	.app-burger__line::before,
	.app-burger__line::after {
		content: "";
		position: absolute;
		left: 0;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .22s ease, opacity .22s ease, top .22s ease;
	}
	.app-burger__line { top: 6px; }
	.app-burger__line::before { top: -6px; }
	.app-burger__line::after { top: 6px; }
	.app-burger[aria-expanded="true"] .app-burger__line { background: transparent; }
	.app-burger[aria-expanded="true"] .app-burger__line::before { top: 0; transform: rotate(45deg); }
	.app-burger[aria-expanded="true"] .app-burger__line::after { top: 0; transform: rotate(-45deg); }

	/* Drawer */
	.app-nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 80;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: min(82vw, 320px);
		height: 100dvh;
		margin: 0;
		padding: 76px 18px 24px;
		background: #fff;
		box-shadow: -18px 0 44px -24px rgba(16, 34, 54, .5);
		transform: translateX(100%);
		transition: transform .26s cubic-bezier(.4, 0, .2, 1);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.app-nav.is-open { transform: translateX(0); }

	.app-nav__link {
		padding: 14px 16px;
		font-size: 17px;
		border-radius: 10px;
	}
	.app-nav__link.is-active { background: rgba(27, 95, 174, .12); }

	.app-nav__user {
		display: block;
		margin-top: auto;
		padding-top: 18px;
		border-top: 1px solid var(--line);
	}
	.app-nav__username { display: block; padding: 0 16px 10px; color: var(--steel); font-size: 14px; }
	.app-nav__out {
		display: block;
		padding: 12px 16px;
		border-radius: 10px;
		background: var(--paper);
		color: var(--blue);
		font-weight: 700;
		text-decoration: none;
	}

	.app-nav__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 70;
		background: rgba(12, 32, 56, .42);
		opacity: 0;
		transition: opacity .26s ease;
	}
	.app-nav__backdrop.is-open { opacity: 1; }

	body.sevgo-nav-open { overflow: hidden; }
}

/* =========================================================================
   Инструменты реестра: поиск и обновление из CRM
   ====================================================================== */

.docs-tools {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: -6px 0 22px;
}
.docs-tools__search {
	flex: 1;
	max-width: 380px;
	height: 42px;
	padding: 0 14px;
	font: inherit;
	font-size: 14.5px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}
.docs-tools__search:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(27, 95, 174, .16);
}
.docs-tools__refresh { font-size: 14px; white-space: nowrap; }

.docs-none {
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--r);
	padding: 18px 22px;
	color: var(--steel);
}

.card__aux { margin: 10px 0 0; font-size: 13px; }

.doc.is-hidden,
.docs-block.is-hidden { display: none; }

@media (max-width: 720px) {
	.docs-tools { flex-wrap: wrap; }
	.docs-tools__search { max-width: none; flex-basis: 100%; }
}

/* =========================================================================
   Раздел «Заявки»: сделки из CRM
   ====================================================================== */

.deal {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-top: 1px solid var(--line);
}
.deal:first-child { border-top: 0; }
.deal__body  { flex: 1; min-width: 0; }
.deal__title { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.deal__meta  { display: block; color: var(--steel); margin-top: 2px; }
.deal__sum   { font-family: var(--mono); font-weight: 700; white-space: nowrap; }

.stage {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
}
.stage--proc { color: var(--blue);  background: rgba(27, 95, 174, .1); }
.stage--won  { color: var(--ok-tx); background: var(--ok-bg); }
.stage--lost { color: var(--er-tx); background: var(--er-bg); }

@media (max-width: 720px) {
	.deal { flex-wrap: wrap; }
	.deal__sum { order: 3; }
}

/* Плашка демо-режима */
.demo-bar {
	background: var(--signal);
	color: #3A2A00;
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	padding: 7px 16px;
}

/* =========================================================================
   Полировка v1.9: иконки карточек, CTA, ховеры, «Заявка» и чат
   ====================================================================== */

.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; padding-top: 10px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

.card { transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 2px 4px rgba(16, 34, 54, .05), 0 14px 32px -20px rgba(16, 34, 54, .3); }

.card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--paper);
	color: var(--blue);
}

.card--cta { border-top: 3px solid var(--blue); }
.card--cta .btn { margin-top: 6px; }

.doc { transition: background .15s ease; }
.doc:hover { background: #F6F9FD; }

.btn--wide { width: 100%; justify-content: center; display: inline-flex; }

/* «Заявка»: форма + чат */
.request-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 22px;
	align-items: start;
}
.chat__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 430px;
	overflow: auto;
	margin: 0 0 14px;
	padding: 4px 2px;
	list-style: none;
}
.chat__msg {
	max-width: 86%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.chat__msg--them {
	align-self: flex-start;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top-left-radius: 4px;
}
.chat__msg--me {
	align-self: flex-end;
	background: var(--blue);
	color: #fff;
	border-top-right-radius: 4px;
}
.chat__time { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11px; opacity: .65; }
.chat__empty {
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--paper);
	color: var(--steel);
}
.chat__form { display: flex; gap: 10px; align-items: flex-end; }
.chat__form textarea {
	flex: 1;
	min-height: 58px;
	resize: vertical;
	padding: 10px 14px;
	font: inherit;
	font-size: 14.5px;
	color: var(--ink);
	background: #FBFCFE;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.chat__form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 95, 174, .16); }

@media (max-width: 900px) {
	.request-grid { grid-template-columns: 1fr; }
}

/* Отдельная страница чата и одиночная форма заявки */
.request-single { max-width: 640px; }
.chat--page { max-width: none; }
.chat--page .chat__list { max-height: 56vh; }

/* =========================================================================
   Полировка v2.4: чат, кабинет, воздух
   ====================================================================== */

/* Приветствие на главной — больше воздуха и акцента */
.page-head .eyebrow { margin-bottom: 8px; }
.page-head .muted { font-size: 15px; max-width: 640px; }
.page-head .flash { margin-top: 14px; }

/* Чат: компактные пузыри, аккуратное время */
.chat--page { padding: 24px 26px; }
.chat--page .card__icon,
.chat--page .card__label,
.chat--page .card__title { display: none; }
.chat__list { gap: 8px; padding: 2px 2px 6px; }
.chat__msg {
	max-width: 72%;
	padding: 9px 13px 8px;
	border-radius: 16px;
	font-size: 14.5px;
	line-height: 1.45;
	box-shadow: 0 1px 1px rgba(16, 34, 54, .04);
}
.chat__msg--them { border-top-left-radius: 6px; }
.chat__msg--me { border-top-right-radius: 6px; background: linear-gradient(180deg, #1F66B6, #17549A); }
.chat__time {
	margin-top: 3px;
	font-size: 10.5px;
	text-align: right;
	letter-spacing: .02em;
}
.chat__msg--them .chat__time { color: var(--steel); opacity: 1; }
.chat__form textarea { min-height: 52px; }
.chat--page .card__aux { margin-top: 12px; }

@media (max-width: 720px) {
	.app { padding-top: 26px; }
	.page-head h1 { font-size: 25px; }
	.chat__msg { max-width: 88%; }
	.chat--page { padding: 18px 16px; }
}

/* =========================================================================
   Витрина заявок: категории и кнопки
   ====================================================================== */

.req-cat { margin-bottom: 30px; }
.req-cat__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--steel);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 14px;
}
.req-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.req-btn {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-decoration: none;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.req-btn:hover {
	border-color: var(--blue);
	box-shadow: 0 2px 4px rgba(16, 34, 54, .05), 0 16px 34px -22px rgba(16, 34, 54, .35);
	transform: translateY(-2px);
}
.req-btn__title { font-weight: 700; font-size: 16px; color: var(--ink); }
.req-btn__sub { font-size: 13px; color: var(--steel); line-height: 1.4; }

.req-form-card { max-width: 640px; }
.req-star { color: var(--signal); }

@media (max-width: 720px) {
	.req-grid { grid-template-columns: 1fr; }
}

/* Повторяющиеся таблицы в форме заявки */
.field--table { grid-column: 1 / -1; }
.rtable { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FCFDFE; }
.rtable__scroll { overflow-x: auto; }
.rtable__grid { width: 100%; border-collapse: collapse; min-width: 560px; }
.rtable__grid th {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: var(--steel);
	padding: 4px 6px 8px;
	white-space: nowrap;
}
.rtable__grid td { padding: 3px 4px; vertical-align: top; }
.rtable__grid input {
	width: 100%;
	min-width: 110px;
	padding: 8px 10px;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 7px;
}
.rtable__grid input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,95,174,.14); }
.rtable__x { width: 30px; }
.rtable__del {
	width: 26px; height: 26px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: #fff;
	color: var(--steel);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.rtable__del:hover { border-color: var(--signal); color: var(--signal); }
.rtable__add { margin-top: 10px; }

/* =========================================================================
   Главная кабинета v3: плитки быстрых действий + две колонки
   ====================================================================== */

.dash-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
	margin-bottom: 36px;
}
.qtile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 20px 20px 18px;
	border-radius: var(--r);
	background: var(--card);
	border: 1px solid var(--line);
	text-decoration: none;
	overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.qtile::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: var(--blue);
	opacity: .9;
}
.qtile:hover {
	transform: translateY(-3px);
	border-color: var(--blue);
	box-shadow: 0 3px 6px rgba(16,34,54,.05), 0 22px 40px -26px rgba(16,34,54,.4);
}
.qtile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--paper);
	color: var(--blue);
}
.qtile__num {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	color: var(--navy);
	letter-spacing: -.02em;
}
.qtile__num--word { font-size: 24px; }
.qtile__label { font-size: 14px; color: var(--steel); }
.qtile__go {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--blue);
}
.qtile--chat::before { background: #2E8B78; }
.qtile--chat .qtile__icon { color: #2E8B78; }
.qtile--new::before { background: var(--signal); }
.qtile--new .qtile__icon { color: #C6820E; }
.qtile--deals::before { background: #6E59C0; }
.qtile--deals .qtile__icon { color: #6E59C0; }

.dash-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}
.dash-cols__main { margin-bottom: 0; }
.dash-cols__side { display: flex; flex-direction: column; gap: 16px; }
.card--side { padding: 18px 20px; }
.card__title--sm { font-size: 18px; }
.card--lab .muted { line-height: 1.6; }

@media (max-width: 900px) {
	.dash-cols { grid-template-columns: 1fr; }
	.dash-cols__side { flex-direction: row; flex-wrap: wrap; }
	.card--side { flex: 1 1 240px; }
}
@media (max-width: 620px) {
	.dash-quick { grid-template-columns: repeat(2, 1fr); }
	.qtile__num { font-size: 28px; }
}

/* Чек-лист характеристик и радио-группы в заявках */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.checklist__item { border-top: 1px solid var(--line); }
.checklist__item:first-child { border-top: 0; }
.checklist__row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; margin: 0; }
.checklist__row:hover { background: var(--paper); }
.checklist__row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.checklist__text { font-size: 15px; color: var(--ink); line-height: 1.45; }
.checklist__note { color: var(--steel); font-size: 13px; }

.radioset { display: flex; flex-wrap: wrap; gap: 10px; }
.radioset__opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ink); }
.radioset__opt:hover { border-color: var(--blue); }
.radioset__opt input { accent-color: var(--blue); }
.radioset__opt:has(input:checked) { border-color: var(--blue); background: rgba(27,95,174,.07); font-weight: 600; }

/* История отправленных заявок */
.hist { margin-bottom: 30px; }
.hist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hist__head h2 { font-size: 20px; margin: 0; }
.hist__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.hist__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.hist__item:first-child { border-top: 0; }
.hist__title { display: block; font-weight: 600; color: var(--navy); }
.hist__meta { display: block; font-size: 12.5px; color: var(--steel); margin-top: 2px; }
.hist__status--ok { color: #1E6B3C; }
.hist__status--warn { color: #A36A00; }
.hist__status--done { color: #1B5FAE; }
.hist__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 620px) {
	.hist__item { flex-direction: column; align-items: stretch; }
	.hist__actions { justify-content: flex-start; }
}

/* Памятки в форме заявки */
.req-note { border: 1px solid var(--line); background: #F7FAFD; border-radius: 12px; padding: 14px 16px; margin: 6px 0 16px; font-size: 14.5px; color: var(--ink); }
.req-note b { color: var(--navy); }
.req-note ul { margin: 8px 0 8px 18px; padding: 0; }
.req-note li { margin: 3px 0; }
.req-note .muted { font-size: 13px; }
.req-note--accent { background: #FFF9EF; border-color: #EAD9B8; font-style: italic; color: #5D5230; }
