/* Услуги, Связаться, Частые вопросы — одна система с блоком грузов:
   линии сетки, крестики, уголки видоискателя, моно для данных */

/* Общая шапка секции: заголовок слева, лид справа */
.sec-head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: end;
	max-width: var(--container);
	margin: 0 auto clamp(32px, 4vw, 56px);
}

.sec-head__title {
	font-size: var(--fs-h2);
	font-weight: var(--fw-regular);
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.sec-head__lead {
	max-width: 36ch;
	font-size: var(--fs-body);
	line-height: 1.45;
	color: var(--c-graphite);
}

/* Строка-ссылка со стрелкой — как кнопки в «Форматах» */
.svc__more {
	--vf: 8px;
	--vf-w: 1.5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 0 14px;
	border-top: 1px solid var(--grid-line); /* taste-skill-ignore: линия строки */
	font-size: 16px;
	font-weight: var(--fw-medium);
	transition: background-color var(--dur-fast) var(--ease-out);
}

.svc__more .icon {
	color: var(--accent-ink);
	transition: transform var(--dur-fast) var(--ease-out);
}

.svc__more:hover {
	background: var(--c-graphite-06);
}

.svc__more:hover .icon {
	transform: translate(2px, -2px);
}

/* ---------- Услуги: сетка 3 × 2 ---------- */
.svc {
	padding: var(--space-2xl) var(--gutter);
	background: var(--bg-light);
	color: var(--text-on-light);
}

.svc__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: var(--container);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--grid-line); /* taste-skill-ignore: сетка */
	border-left: 1px solid var(--grid-line); /* taste-skill-ignore */
}

.svc__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 300px;
	padding: 28px 28px 0;
	border-right: 1px solid var(--grid-line); /* taste-skill-ignore */
	border-bottom: 1px solid var(--grid-line); /* taste-skill-ignore */
	scroll-margin-top: calc(var(--header-top) + var(--header-h) + 24px);
}

.svc__cell::before,
.svc__cell::after {
	content: "";
	position: absolute;
	z-index: 1;
	width: 11px;
	height: 11px;
	background: /* taste-skill-ignore: крестик сетки */
		linear-gradient(var(--grid-cross), var(--grid-cross)) center / 1px 100% no-repeat, /* taste-skill-ignore */
		linear-gradient(var(--grid-cross), var(--grid-cross)) center / 100% 1px no-repeat; /* taste-skill-ignore */
	pointer-events: none;
}

.svc__cell::before { left: -6px; top: -6px; }
.svc__cell::after { right: -6px; bottom: -6px; }

.svc__name {
	font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.875rem); /* 22 → 30 */
	font-weight: var(--fw-medium);
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.svc__text {
	max-width: 40ch;
	font-size: var(--fs-body);
	line-height: 1.5;
	color: var(--c-graphite);
}

.svc__more {
	margin: auto -28px 0;
	padding-inline: 28px;
}

/* ---------- Партнёры: чёрная секция, логотипы монохромом в сетке с крестиками ---------- */
.partners {
	--line: var(--grid-line-dark);
	--cross: var(--grid-cross-dark);
	padding: var(--space-2xl) var(--gutter);
	background: var(--c-black);
	color: var(--c-white);
	scroll-margin-top: calc(var(--header-top) + var(--header-h));
}

.partners .sec-head__lead {
	color: var(--text-muted-dark);
}

.partners__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: var(--container);
	margin: 0 auto;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line); /* taste-skill-ignore: сетка — фирменный приём */
	border-left: 1px solid var(--line); /* taste-skill-ignore */
}

.partners__cell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* колонка по ширине ячейки: иначе её растягивает логотип */
	grid-template-rows: minmax(0, 1fr) auto auto;
	gap: 6px;
	aspect-ratio: 1 / 0.62;
	padding: 20px 24px 22px;
	border-right: 1px solid var(--line); /* taste-skill-ignore */
	border-bottom: 1px solid var(--line); /* taste-skill-ignore */
}

/* Крестики на пересечениях, как в сетке грузов */
.partners__cell::before,
.partners__cell::after {
	content: "";
	position: absolute;
	z-index: 1;
	width: 11px;
	height: 11px;
	background:
		linear-gradient(var(--cross), var(--cross)) center / 1px 100% no-repeat, /* taste-skill-ignore: крестик сетки */
		linear-gradient(var(--cross), var(--cross)) center / 100% 1px no-repeat; /* taste-skill-ignore: крестик из двух линий */
	pointer-events: none;
}

.partners__cell::before { left: -6px; top: -6px; }
.partners__cell::after { right: -6px; bottom: -6px; }

/* Логотип: белый монохром, при наведении — ярче и в уголках видоискателя */
.partners__logo {
	--vf: 12px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	min-height: 0;
	margin: -6px -12px 8px;
}

.partners__logo::before {
	inset: 0;
}

.partners__logo img {
	width: auto;
	max-width: 80%;
	height: auto;
	max-height: 56px;
	filter: brightness(0) invert(1);
	opacity: 0.6;
	transition: opacity var(--dur-base) var(--ease-out);
}

.partners__cell:hover .partners__logo img {
	opacity: 1;
}

.partners__cell:hover .partners__logo::before {
	opacity: 1;
	scale: 1;
}

/* Автоскан подсвечивает ячейку так же, как наведение */
.partners__cell.is-lit .partners__logo img {
	opacity: 1;
}

.partners__cell.is-lit .partners__logo::before {
	opacity: 1;
	scale: 1;
}

/* «Сверка» при появлении: до своей очереди ячейка пуста, логотип проявляется из крупных пикселей */
.partners__logo > * {
	grid-area: 1 / 1;
}

.partners__pix {
	image-rendering: pixelated;
	filter: brightness(0) invert(1);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-base) var(--ease-out);
}

.partners__cell.is-decoding .partners__pix {
	opacity: 0.6;
	transition: none;
}

.partners__cell.is-decoding .partners__logo img,
.partners.is-armed .partners__cell:not(.is-shown) .partners__logo img,
.partners.is-armed .partners__cell:not(.is-shown) .label {
	opacity: 0;
	transition: none;
}

.partners__name {
	color: var(--c-white);
}

.partners__ind {
	color: var(--text-muted-dark);
}

/* ---------- Связаться: корпус в сетке с крестиками; обе колонки стоят на одной модульной сетке строк ----------
	Строка = 64 px. Слева: заголовок (4 строки, растёт при длинном тексте), статус, телефон, почта.
	Справа: имя, компания, телефон + почта, сообщение, согласие, кнопка. Нижние линии колонок совпадают,
	отступ слева и колонка подписей одинаковые в обеих половинах. */
.contact {
	--line: var(--grid-line);
	--cross: var(--grid-cross);
	--row: 64px;
	--slip: var(--row); /* шапка бланка — строка сетки: номер заявки, дата, отметка заполнения, штрихкод */
	--pad: clamp(20px, 2.4vw, 32px);
	--label: 132px;
	padding: var(--space-2xl) var(--gutter);
	background: var(--bg-light);
	color: var(--text-on-light);
	scroll-margin-top: calc(var(--header-top) + var(--header-h));
}

.contact__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: var(--slip) repeat(3, var(--row)) minmax(var(--row), auto) repeat(3, var(--row));
	max-width: var(--container);
	margin: 0 auto;
	border: 1px solid var(--line); /* taste-skill-ignore: сетка — фирменный приём */
}

/* Крестики: углы корпуса и стык колонок */
.contact__inner::before,
.contact__inner::after,
.contact__info::before,
.contact__info::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 11px;
	height: 11px;
	background:
		linear-gradient(var(--cross), var(--cross)) center / 1px 100% no-repeat, /* taste-skill-ignore: крестик сетки */
		linear-gradient(var(--cross), var(--cross)) center / 100% 1px no-repeat; /* taste-skill-ignore: крестик из двух линий */
	pointer-events: none;
}

.contact__inner::before { left: -6px; top: -6px; }
.contact__inner::after { right: -6px; bottom: -6px; }
.contact__info::before { right: -6px; top: -6px; }
.contact__info::after { right: -6px; bottom: -6px; }

/* Колонки берут строки общей сетки */
.contact__info,
.contact__form,
.contact__facts,
.contact__send {
	display: grid;
	grid-template-rows: subgrid;
	min-width: 0;
	margin: 0;
}

.contact__info { position: relative; grid-row: 1 / -1; }
.contact__head { grid-row: 1 / 6; }
.contact__status { grid-row: 6; }
.contact__facts { grid-row: 7 / 9; }

.contact__head {
	padding: var(--pad);
}

.contact__title {
	font-size: var(--fs-h2);
	font-weight: var(--fw-regular);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.contact__lead {
	max-width: 30ch;
	margin-top: var(--space-m);
	font-size: var(--fs-lead);
	line-height: 1.3;
	letter-spacing: -0.015em;
}

/* Статус офиса: время Екатеринбурга и рабочие часы */
.contact__status {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 var(--pad);
	border-block: 1px solid var(--line); /* taste-skill-ignore: линии строки */
	color: var(--text-muted-ink);
	line-height: 1.4;
}

.contact__status b {
	font-weight: 500;
	color: var(--text-on-light);
}

.contact__dot {
	position: relative;
	width: 8px;
	height: 8px;
	flex: none;
	border-radius: 50%;
	background: var(--c-grey);
}

.contact__status.is-open .contact__dot {
	background: var(--accent);
}

.contact__status.is-open .contact__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid var(--accent); /* taste-skill-ignore: пульсирующее кольцо статуса */
	animation: contact-pulse 2.2s var(--ease-out) infinite;
}

@keyframes contact-pulse {
	from { opacity: 0.9; transform: scale(1); }
	to { opacity: 0; transform: scale(3.2); }
}

/* Телефон и почта: строка сетки, подпись в колонке той же ширины, что у полей бланка */
.contact__fact {
	display: grid;
	grid-template-columns: var(--label) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 0 var(--pad);
}

.contact__fact + .contact__fact {
	border-top: 1px solid var(--line); /* taste-skill-ignore: линия строки */
}

.contact__fact dt {
	color: var(--text-muted-ink);
}

.contact__fact dd {
	min-width: 0;
	margin: 0;
}

/* Крупные ссылки-строки со стрелкой */
.contact__big {
	--vf: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -8px -12px;
	padding: 8px 12px;
	font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.625rem); /* 18 → 26 */
	font-weight: var(--fw-medium);
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: background-color var(--dur-fast) var(--ease-out);
}

.contact__big span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.contact__big .icon {
	font-size: 16px;
	color: var(--accent-ink);
	transition: transform var(--dur-fast) var(--ease-out);
}

.contact__big:hover {
	background: var(--c-graphite-06);
}

.contact__big:hover .icon {
	transform: translate(2px, -2px);
}

/* ---------- Бланк заявки ---------- */
.contact__form {
	--line: var(--grid-line-dark);
	grid-row: 1 / -1;
	background: var(--c-graphite);
	color: var(--c-white);
	scroll-margin-top: calc(var(--header-top) + var(--header-h) + 24px);
}

.contact__slip { grid-row: 1; }
.contact__form > .calc__row:nth-child(2) { grid-row: 2; }
.contact__form > .calc__row:nth-child(3) { grid-row: 3; }
.contact__form > .calc__pair { grid-row: 4; }
.contact__form > .calc__pair { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } /* телефону — больше места */
.contact__form > .calc__row--area { grid-row: 5 / 7; }
.contact__send { grid-row: 7 / 9; }

.contact__form .calc__row--dark {
	grid-template-columns: var(--label) minmax(0, 1fr);
	min-height: 0;
	padding: 0 var(--pad);
}

.contact__form .calc__pair .calc__row--dark {
	grid-template-columns: 112px minmax(0, 1fr); /* с номером графы */
}

/* поле сообщения — две строки сетки и всё, что добавит высокий заголовок слева */
.contact__form .calc__row--area {
	align-items: stretch;
	padding-block: 20px;
}

.contact__form .calc__row--area .calc__label {
	align-self: start;
	padding-top: 4px;
}

.contact__form .calc__row--area textarea {
	height: 100%;
	min-height: 0;
	padding-top: 0;
	resize: none;
}

/* Согласие — строка сетки */
.contact__agree {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 var(--pad);
	font-size: 14px;
	line-height: 1.4;
	color: var(--text-muted-dark);
	cursor: pointer;
}

.contact__agree a {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--c-white);
}

.contact__check {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.4); /* taste-skill-ignore: контур чекбокса */
	background: transparent;
	appearance: none;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.contact__check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--c-white);
	border-width: 0 2px 2px 0;
	rotate: 45deg;
	opacity: 0;
}

.contact__check:checked {
	border-color: var(--accent);
	background: var(--accent);
}

.contact__check:checked::after {
	opacity: 1;
}

.contact__check:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.contact__agree.is-error .contact__check {
	border-color: var(--accent);
}

.contact__agree.is-error {
	color: var(--c-white);
}

/* Кнопка — нижняя строка бланка целиком, как оранжевая плитка в шапке */
.contact__submit {
	width: 100%;
	height: 100%;
	min-height: 0;
	font-size: 12px;
}

.contact__submit:disabled {
	cursor: default;
}

/* Ответ формы читается экранным диктором; на экране его показывают подсветка полей и кнопка */
.contact__micro {
	position: absolute;
	width: 1px;
	height: 1px; /* taste-skill-ignore: скрыто визуально, читается диктором */
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.calc__row--area {
	align-items: start;
	padding-top: 14px;
}

/* ---------- Частые вопросы ---------- */
.faq {
	padding: var(--space-2xl) var(--gutter);
	background: var(--bg-light);
	color: var(--text-on-light);
}

.faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(32px, 5vw, 96px);
	max-width: var(--container);
	margin: 0 auto;
}

.faq__title {
	font-size: var(--fs-h2);
	font-weight: var(--fw-regular);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.faq__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--space-m);
}

.faq__tab {
	--vf: 7px;
	--vf-w: 1.5px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--grid-line); /* taste-skill-ignore: контур плитки */
	font-size: 15px;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.faq__tab:hover {
	background: var(--c-graphite-06);
}

.faq__tab[aria-pressed="true"] {
	border-color: transparent;
	background: var(--c-graphite);
	color: var(--c-white);
}

.faq__tab[aria-pressed="true"]::before {
	opacity: 1;
	scale: 1;
	inset: -4px;
}

.faq__list {
	border-top: 1px solid var(--grid-line); /* taste-skill-ignore: линии строк */
}

.faq__item {
	border-bottom: 1px solid var(--grid-line); /* taste-skill-ignore */
}

.faq__item[hidden] {
	display: none;
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q h3 {
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.5rem); /* 18 → 24 */
	font-weight: var(--fw-medium);
	line-height: 1.25;
	letter-spacing: -0.02em;
	transition: color var(--dur-fast) var(--ease-out);
}

.faq__q:hover h3 {
	color: var(--accent-ink);
}

/* Плюс → минус: две линии, вертикальная гаснет */
.faq__plus {
	position: relative;
	width: 18px;
	height: 18px;
	flex: none;
}

.faq__plus::before,
.faq__plus::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--c-graphite);
	translate: -50% -50%;
	transition: scale var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.faq__plus::before { width: 18px; height: 1.5px; }
.faq__plus::after { width: 1.5px; height: 18px; }

.faq__item[open] .faq__plus::after {
	scale: 1 0;
}

.faq__item[open] .faq__plus::before {
	background: var(--accent);
}

.faq__a {
	max-width: 60ch;
	padding: 0 48px 24px 0;
	font-size: var(--fs-body);
	line-height: 1.55;
	color: var(--c-graphite);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.sec-head,
	.contact__inner,
	.faq__inner { grid-template-columns: 1fr; }
	.sec-head { gap: var(--space-s); }
	.svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partners__cell { aspect-ratio: 1 / 0.5; }
	.contact__info::before { display: none; }
	.contact__info::after { left: -6px; right: auto; }
	/* одна колонка: общая сетка строк не нужна, высоты строк остаются кратными --row */
	.contact__inner { grid-template-rows: none; }
	.contact__info,
	.contact__form,
	.contact__facts,
	.contact__send { grid-row: auto; grid-template-rows: none; }
	.contact__head,
	.contact__status,
	.contact__slip,
	.contact__form > .calc__row:nth-child(2),
	.contact__form > .calc__row:nth-child(3),
	.contact__form > .calc__pair,
	.contact__form > .calc__row--area { grid-row: auto; }
	.contact__status,
	.contact__fact,
	.contact__form .calc__row--dark,
	.contact__agree { min-height: var(--row); }
	.contact__form .calc__row--area { min-height: calc(var(--row) * 2); }
	.contact__submit { min-height: var(--row); }
}

@media (max-width: 760px) {
	.svc__grid { grid-template-columns: 1fr; }
	.partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partners__cell { aspect-ratio: auto; grid-template-rows: 76px auto auto; padding: 16px; }
	.partners__logo img { max-width: 72%; max-height: 30px; }
	.partners__logo { margin: -4px -8px 6px; }
	.svc__cell { min-height: 0; padding: 24px 20px 0; }
	.svc__more { margin-inline: -20px; padding-inline: 20px; margin-top: 12px; }
	.contact { --pad: 20px; }
	.contact__fact { grid-template-columns: 1fr; gap: 4px; align-content: center; padding-block: 12px; }
	/* бланк целиком в экран: подпись и поле в одной строке, строки ниже */
	.contact { --row: 52px; }
	.contact__form .calc__row--dark,
	.contact__form .calc__pair .calc__row--dark { grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 0 var(--pad); }
	.contact__form .calc__row--area { align-items: stretch; padding-block: 14px; }
	.contact__form .calc__row--area .calc__input { min-height: 0; }
	.contact__form .calc__pair { grid-template-columns: 1fr; }
	.contact__form .calc__pair .calc__row + .calc__row { border-left: 0; }
	.contact__agree { padding-block: 12px; }
	.faq__a { padding-right: 0; }
}

/* Светлые секции подряд: отступ между ними один, а не двойной */
/* после светлой секции «Услуги» идёт чёрная «Партнёры» — у услуг нижний отступ остаётся */
.contact {
	padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.contact__status.is-open .contact__dot::after { animation: none; }
}

/* Название услуги открывает её модальное окно */
.svc__open {
	transition: color var(--dur-fast) var(--ease-out);
}

.svc__open:hover {
	color: var(--accent-ink);
}

/* ---------- Бланк как ж/д накладная ---------- */
/* Шапка — строка бланка высотой в строку сетки: ячейки «Заявка №», «Дата», «Заполнено» и штрихкод,
	разделены линиями сетки с крестиками на стыках; в ячейке — моно-подпись и значение под ней */
.contact__form {
	--cross: var(--grid-cross-dark);
	counter-reset: grafa;
}

.contact__slip {
	display: grid;
	grid-template-columns: auto auto auto minmax(0, 1fr);
	border-bottom: 1px solid var(--line); /* taste-skill-ignore: линия строки */
	background: #1b1b1b;
}

.contact__slip-cell {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	padding: 0 var(--pad);
}

.contact__slip-cell + .contact__slip-cell {
	border-left: 1px solid var(--line); /* taste-skill-ignore: граница ячейки */
}

/* крестик на стыке разделителя и нижней линии */
.contact__slip-cell:not(:last-child)::after {
	content: "";
	position: absolute;
	z-index: 1;
	right: -6px;
	bottom: -6px;
	width: 11px;
	height: 11px;
	background:
		linear-gradient(var(--cross), var(--cross)) center / 1px 100% no-repeat, /* taste-skill-ignore: крестик сетки */
		linear-gradient(var(--cross), var(--cross)) center / 100% 1px no-repeat; /* taste-skill-ignore: крестик из двух линий */
	pointer-events: none;
}

.contact__slip .label {
	color: var(--text-muted-dark);
}

.contact__slip-val {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono); /* taste-skill-ignore: номер и дата — данные */
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	color: var(--c-white);
	white-space: nowrap;
}

.contact__slip-val b {
	font-weight: 500;
}

/* три деления — по одному на обязательную графу (имя, телефон, согласие) */
.contact__slip-bars {
	display: flex;
	gap: 3px;
}

.contact__slip-bars i {
	width: 14px;
	height: 6px;
	border: 1px solid var(--c-white-16); /* taste-skill-ignore: пустое деление */
	transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.contact__slip-bars i.is-on {
	border-color: var(--accent);
	background: var(--accent);
}

/* все графы заполнены — ячейка в уголках видоискателя, счёт оранжевым */
.contact__slip-cell--fill::before {
	inset: 6px;
}

.contact__form:not(.is-ready) .contact__slip-cell--fill::before {
	opacity: 0; /* уголки только как отметка «готово», не при наведении */
}

.contact__form.is-ready .contact__slip-cell--fill::before {
	opacity: 1;
	scale: 1;
}

.contact__form.is-ready .contact__slip-cell--fill .contact__slip-val {
	color: var(--accent);
}

.contact__slip-cell--code img {
	width: 100%;
	height: 26px;
	object-fit: cover;
	object-position: right center;
	filter: invert(1);
	opacity: 0.38;
}

/* Номера граф перед подписями, как в бланке накладной; заполненная графа — номер на оранжевой плашке */
.contact__form .calc__label::before {
	counter-increment: grafa;
	content: counter(grafa, decimal-leading-zero); /* taste-skill-ignore: номера граф — суть бланка-накладной, по ним отмечается заполнение */
	display: inline-block;
	min-width: 2.6ch;
	margin-right: 8px;
	padding: 2px 0;
	color: var(--accent);
	text-align: center;
	transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.contact__form .calc__row--dark.is-filled .calc__label::before {
	background: var(--accent);
	color: var(--c-black);
}

@media (max-width: 1100px) {
	.contact__slip { min-height: var(--row); }
}

@media (max-width: 760px) {
	.contact__slip { grid-template-columns: auto minmax(0, 1fr); }
	.contact__slip-cell--date,
	.contact__slip-cell--code { display: none; }
	.contact__slip-cell { padding: 10px var(--pad); }
	.contact__slip-cell--fill { align-items: flex-end; }
	.contact__slip-cell--fill::after { display: none; }
	.contact__form .calc__label::before { margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.contact__slip-bars i,
	.contact__form .calc__label::before { transition: none; }
}

/* ---------- Доводка бланка ---------- */
/* Левая колонка: заголовок вверху ячейки, подводка — у её низа, без пустоты посередине */
.contact__head {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-m);
}

.contact__head .contact__lead {
	margin-top: 0;
}

/* Подписи граф читаются: на тон светлее второстепенного текста */
.contact__form .calc__row--dark .calc__label {
	color: #b8b8b8;
}

/* Сообщение: подпись над полем одной строкой, поле на всю ширину строки */
.contact__form .calc__row--area {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 10px;
}

.contact__form .calc__row--area .calc__label {
	padding-top: 0;
}

/* Поверхности браузера — в палитре сайта: курсор, выделение, автозаполнение, прокрутка */
.contact__form .calc__input {
	caret-color: var(--accent);
}

.contact__form .calc__input::selection {
	background: var(--accent);
	color: var(--c-black);
}

.contact__form .calc__input:-webkit-autofill,
.contact__form .calc__input:-webkit-autofill:hover,
.contact__form .calc__input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--c-white);
	box-shadow: 0 0 0 100px var(--c-graphite) inset; /* taste-skill-ignore: перекрывает голубой фон автозаполнения */
	transition: background-color 9999s;
}

.contact__form textarea {
	scrollbar-width: thin;
	scrollbar-color: var(--c-white-16) transparent;
}

/* Согласие: квадрат-графа, отметка — заполненный квадрат, как деления в шапке бланка */
.contact__check {
	width: 20px;
	height: 20px;
	border-color: rgba(255, 255, 255, 0.45);
}

.contact__check::after {
	left: 4px;
	top: 4px;
	width: 10px;
	height: 10px;
	border: 0;
	background: var(--accent);
	rotate: none;
	scale: 0.4;
	transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out);
}

.contact__check:checked {
	border-color: var(--accent);
	background: transparent;
}

.contact__check:checked::after {
	scale: 1;
}

.contact__agree:hover .contact__check:not(:checked) {
	border-color: var(--c-white);
}

/* Кнопка: текст и стрелка, стрелка уходит вправо-вверх при наведении */
.contact__submit {
	gap: 10px;
}

.contact__submit .icon {
	width: 16px;
	height: 16px;
	transition: transform var(--dur-fast) var(--ease-out);
}

.contact__submit:hover .icon,
.contact__submit:focus-visible .icon {
	transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
	.contact__check::after,
	.contact__submit .icon { transition: none; }
}
