/*
 * Digital Promo Solutions — стилі лендінгу.
 * Mobile-first: базові стилі — макет 390px, від 1024px — десктоп (макет 1440px).
 */

/* ---------- Токени ---------- */
:root {
	--color-bg: #121212;
	--color-surface: #1d1d1d;
	--color-text: #f3f4f1;
	--color-muted: #b5bab5;
	--color-accent: #a5d427;
	--color-accent-hover: #b6e536;
	--color-accent-pressed: #8fb81f;
	--color-ink: #0d0d0d;
	--color-error: #ff6b5e;
	--color-divider: #434443;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Onest", "Inter", system-ui, sans-serif;

	--container: 1280px;
	--gutter: 20px;
	--header-h: 64px;
	--section-gap: 32px;

	--fs-body: 18px;
	--fs-small: 14px;
	--fs-h2: 28px;
	--fs-h2-lg: 36px;
	--fs-h3: 20px;
	--fs-accent: 32px;

	--radius-s: 4px;
	--radius-m: 8px;
	--radius-l: 16px;
}

@media (min-width: 768px) {
	:root {
		--gutter: 40px;
	}
}

@media (min-width: 1024px) {
	:root {
		--section-gap: 80px;
		--fs-h2: 36px;
		--fs-accent: 48px;
	}
}

@media (min-width: 1200px) {
	:root {
		--header-h: 82px;
	}
}

@media (min-width: 1440px) {
	:root {
		--gutter: 80px;
	}
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.21;
	-webkit-font-smoothing: antialiased;
}

body.is-menu-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

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

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 8px 16px;
	border-radius: var(--radius-m);
	background: var(--color-accent);
	color: var(--color-ink);
}

.skip-link:focus {
	top: 16px;
}

.container {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

/* ---------- Типографіка ---------- */
.section-title {
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	font-weight: 600;
	line-height: 1.27;
}

.section-description,
.text-muted {
	color: var(--color-muted);
	font-size: var(--fs-body);
}

/* У мобільному макеті частина заголовків секцій більша */
.section-title--lg {
	font-size: var(--fs-h2-lg);
}

.item-title {
	font-size: var(--fs-h3);
	font-weight: 600;
}

.block-label {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--color-accent);
}

.block-label::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: var(--radius-s);
	background: var(--color-accent);
}

/* ---------- Кнопки ---------- */
.btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 16px 32px;
	border: 1px solid transparent;
	border-radius: var(--radius-l);
	font-weight: 500;
	line-height: 1.21;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn img {
	flex: none;
	transition: transform 0.2s;
}

.btn--cta {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: var(--color-ink);
	font-size: 18px;
}

.btn--cta:hover {
	border-color: var(--color-accent-hover);
	background: var(--color-accent-hover);
}

.btn--cta:hover img {
	transform: translateX(4px);
}

.btn--cta:active {
	border-color: var(--color-accent-pressed);
	background: var(--color-accent-pressed);
}

.btn--lg {
	padding-block: 20px;
}

@media (min-width: 1024px) {
	.btn--cta {
		font-size: 20px;
	}
}

.btn--submit {
	border-color: var(--color-accent);
	background: transparent;
	color: var(--color-text);
	font-size: 18px;
}

.btn--submit:hover:not(:disabled) {
	background: var(--color-accent);
	color: var(--color-ink);
}

.btn--submit:disabled {
	border-color: rgb(165 212 39 / 0.4);
	color: rgb(243 244 241 / 0.4);
	cursor: not-allowed;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Шапка ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--color-bg);
	transition: background-color 0.2s;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
	background: var(--color-surface);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 14px;
}

.logo__mark {
	width: 32px;
	height: auto;
}

.site-nav,
.site-header__cta {
	display: none;
}

.burger {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.burger__icon--close,
.burger[aria-expanded="true"] .burger__icon--open {
	display: none;
}

.burger[aria-expanded="true"] .burger__icon--close {
	display: block;
}

.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0;
	overflow-y: auto;
	padding: 32px var(--gutter);
	background: var(--color-bg);
}

.mobile-menu[hidden] {
	display: none;
}

.mobile-menu__list {
	display: grid;
	gap: 32px;
	max-width: 352px;
}

.mobile-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 48px;
	padding-left: 8px;
	border-bottom: 1px solid var(--color-muted);
	transition: color 0.2s;
}

.mobile-menu__link:hover {
	color: var(--color-accent);
}

.mobile-menu__cta {
	margin-top: 32px;
}

@media (min-width: 1200px) {
	.logo {
		gap: 10px;
		font-size: 18px;
	}

	.logo__mark {
		width: 45px;
	}

	.site-nav,
	.site-header__cta {
		display: flex;
	}

	.site-nav__list {
		display: flex;
		gap: 24px;
	}

	.nav-link {
		display: flex;
		align-items: center;
		height: 46px;
		padding: 8px;
		transition: color 0.2s;
	}

	.nav-link:hover,
	.nav-link.is-active {
		color: var(--color-accent);
	}

	.burger,
	.mobile-menu {
		display: none !important;
	}
}

/* ---------- Секції ---------- */
.site-main {
	padding-bottom: var(--section-gap);
}

.section {
	margin-top: var(--section-gap);
}

/* Секція з тонкою лінією-розділювачем над нею */
.section--divided {
	--divider-gap: 32px;
	position: relative;
	margin-top: var(--divider-gap);
	padding-top: calc(var(--divider-gap) + 1px);
}

.section--divided::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10px;
	right: 10px;
	height: 1px;
	background: var(--color-divider);
}

@media (min-width: 1024px) {
	.section--divided {
		--divider-gap: 90px;
	}
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

@media (min-width: 1024px) {
	.section-head {
		max-width: 628px;
	}

	.section-head .section-description {
		max-width: 444px;
	}
}

/* Пункт з маркером-квадратом і лінією (Про нас, Команда) */
.marker-item {
	--marker-color: var(--color-text);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 28px;
}

.marker-item::before,
.marker-item::after {
	content: "";
	position: absolute;
	top: 0;
	background: var(--marker-color);
}

.marker-item::before {
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-s);
}

.marker-item::after {
	top: 10px;
	left: 20px;
	right: 0;
	height: 1px;
}

.marker-item--muted {
	--marker-color: var(--color-muted);
}

/* ---------- Hero ---------- */
.hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin-top: 32px;
}

.hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 48px;
	max-width: 683px;
}

.hero__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hero__label {
	padding-block: 10px;
	font-size: var(--fs-small);
}

.hero__title {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.27;
}

.hero__accent {
	color: var(--color-accent);
}

.hero__accent:first-child {
	display: block;
}

.hero__subtitle {
	display: block;
	margin-top: 4px;
	font-size: 24px;
}

.hero__description {
	color: var(--color-muted);
}

.hero__visual {
	display: none;
}

@media (min-width: 1024px) {
	.hero {
		min-height: 400px;
		margin-top: 80px;
	}

	.hero__content {
		flex: 1 1 683px;
	}

	.hero__title {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		column-gap: 16px;
		font-size: 44px;
	}

	.hero__accent {
		grid-column: 1;
	}

	.hero__amp {
		grid-column: 2;
		grid-row: 1 / span 2;
		font-size: 24px;
	}

	.hero__subtitle {
		grid-column: 1 / -1;
		margin-top: 0;
		font-size: 26px;
	}

	.hero__visual {
		display: grid;
		flex: 0 1 568px;
		place-items: center;
		aspect-ratio: 568 / 406;
	}

	.hero__visual img {
		width: 100%;
		height: auto;
	}
}

/* ---------- Цифри ---------- */
.stats__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 37px;
}

.stats__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.stats__value {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: var(--fs-accent);
	font-weight: 600;
	line-height: 1.27;
}

.stats__label {
	color: var(--color-muted);
}

@media (min-width: 768px) {
	.stats__list {
		display: flex;
		justify-content: space-between;
	}

	.stats__item {
		width: 150px;
	}
}

/* ---------- Про нас ---------- */
.about__list {
	display: grid;
	gap: 32px;
	margin-top: 32px;
}

@media (min-width: 1024px) {
	.about__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}

/* ---------- Команда ---------- */
.team {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 53px 10px;
}

.team__head {
	grid-column: 1 / -1;
	margin-bottom: -21px;
}

.team__title {
	width: 310px;
	max-width: 100%;
}

.team__accent {
	color: var(--color-accent);
	font-size: 1.333em;
}

.team__item {
	order: var(--mobile-order);
}

/* Ролі з маркером-крапкою; перенесений рядок вирівнюється по тексту */
.team__roles li {
	position: relative;
	padding-left: 14px;
}

.team__roles li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 2px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}

.team__item--wide {
	grid-column: 1 / -1;
}

@media (min-width: 1024px) {
	.team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 65px 43px;
	}

	.team__head {
		margin-bottom: 0;
	}

	.team__item {
		order: 0;
	}

	.team__item--wide {
		grid-column: auto;
	}

	.team__roles li {
		padding-left: 26px;
	}

	.team__roles li::before {
		left: 11px;
	}
}

@media (min-width: 1280px) {
	.team {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.team__head {
		grid-column: auto;
	}

	/* У макеті заголовок ширший за колонку сітки */
	.team__title {
		max-width: none;
	}
}

/* ---------- Кар'єра ---------- */
.career {
	display: flex;
	flex-direction: column;
	gap: 21px;
}

.career__description {
	display: flex;
	flex-direction: column;
	gap: 1.21em;
}

.career__list {
	display: flex;
	flex-direction: column;
	gap: 53px;
}

.career__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.career__group-title {
	color: var(--color-accent);
	font-size: var(--fs-h3);
	font-weight: 600;
}

.career__points {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.career__point {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Квадратний маркер перед підзаголовком */
.career__point-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--fs-body);
	font-weight: 400;
}

.career__point-title::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	border-radius: 3px;
	background: var(--color-text);
}

.career__point .text-muted {
	line-height: 1.27;
}

@media (min-width: 1024px) {
	.career {
		flex-direction: row;
		justify-content: space-between;
		gap: 40px;
	}

	.career__head {
		flex: 0 1 434px;
	}

	.section-head .career__description {
		max-width: 373px;
	}

	.career__list {
		flex: 0 1 800px;
	}
}

/* ---------- 5 кроків ---------- */
.steps__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.steps__list {
	display: grid;
	gap: 32px;
	margin-top: 33px;
}

.steps__item {
	position: relative;
	max-width: 255px;
	padding-left: 35px;
}

.steps__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.steps__number {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.27;
}

/* Маркер і вертикальна лінія таймлайну */
.steps__item::before,
.steps__item::after {
	content: "";
	position: absolute;
	background: var(--color-accent);
}

.steps__item::before {
	top: 1px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-s);
}

.steps__item::after {
	top: 21px;
	left: 10px;
	bottom: -33px;
	width: 1px;
}

.steps__item:last-child::after {
	display: none;
}

@media (min-width: 1024px) {
	/* Опис під заголовком, як в інших секціях */
	.steps__head .section-description {
		max-width: 444px;
	}

	/* Горизонтальний таймлайн: непарні кроки над лінією, парні — під нею */
	.steps__list {
		grid-template-columns: repeat(3, minmax(0, 270fr)) minmax(0, 250fr) minmax(0, 220fr);
		grid-template-rows: auto 20px auto;
		row-gap: 14px;
		column-gap: 0;
		margin-top: 64px;
	}

	.steps__item {
		grid-row: 1 / span 3;
		display: grid;
		grid-template-rows: subgrid;
		max-width: none;
		padding-left: 0;
	}

	.steps__item::before,
	.steps__item::after {
		position: static;
		grid-row: 2;
		grid-column: 1;
	}

	.steps__item::after {
		display: block;
		align-self: center;
		width: auto;
		height: 1px;
		margin-left: 20px;
	}

	.steps__body {
		grid-row: 3;
		max-width: 220px;
	}

	.steps__item:nth-child(odd) .steps__body {
		grid-row: 1;
		align-self: end;
	}

	.steps__item:nth-child(odd) .steps__number {
		order: 3;
	}
}

/* ---------- Вакансії ---------- */
/* Мітка-«пігулка» над заголовком (vac.png) */
.block-label--pill {
	padding: 4px 16px;
	border-radius: 999px;
	background: var(--color-accent);
	color: var(--color-ink);
}

.block-label--pill::before {
	display: none;
}

.dps-jobs {
	margin-top: 32px;
	border-top: 1px solid var(--color-muted);
}

.dps-jobs__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 32px 20px;
	border-radius: var(--radius-m);
	color: var(--color-muted);
	transition: background-color 0.2s;
}

.dps-jobs__item::after {
	content: "";
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 0;
	height: 1px;
	background: var(--color-muted);
}

.dps-jobs__item:hover {
	background: var(--color-surface);
}

.dps-jobs__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.dps-jobs__title {
	color: var(--color-text);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.21;
}

.dps-jobs__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 4px;
	color: var(--color-text);
	white-space: nowrap;
	transition: color 0.2s;
}

.dps-jobs__link::after {
	content: "";
	width: 24px;
	height: 24px;
	background: url("../img/icon-arrow-up-right.svg") center / contain no-repeat;
	transition: transform 0.2s;
}

.dps-jobs__link:hover {
	color: #fff;
}

.dps-jobs__link:hover::after {
	background-image: url("../img/icon-arrow-up-right-hover.svg");
}

/* Кнопка «Відгукнутись»: контур, як «Надіслати резюме» */
.btn--outline {
	border-color: var(--color-accent);
	background: transparent;
	color: var(--color-text);
	font-size: 18px;
}

.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-ink);
}

.btn--outline:active {
	border-color: var(--color-accent-pressed);
	background: var(--color-accent-pressed);
	color: var(--color-ink);
}

.dps-jobs__apply {
	margin-top: 4px;
}

.dps-jobs__empty {
	margin-top: 32px;
	color: var(--color-muted);
}

/* Поле «Напрям», заповнене кнопкою «Відгукнутись» — коротко підсвічуємо */
.field__input.is-prefilled {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgb(165 212 39 / 0.25);
	transition: border-color 0.2s, box-shadow 0.6s;
}

@media (min-width: 1024px) {
	.dps-jobs {
		border-top: 0;
	}

	.dps-jobs__item {
		display: grid;
		grid-template-columns: 150px minmax(0, 1fr) auto 184px;
		align-items: center;
		gap: 43px;
		padding: 32px 40px;
	}

	.dps-jobs__meta {
		flex-direction: column;
		gap: 24px;
	}

	.dps-jobs__title {
		font-size: 32px;
	}

	.dps-jobs__apply {
		margin-top: 0;
	}
}

/* ---------- Форма (Contact Form 7) ---------- */
.contact {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.apply-form {
	display: flex;
	flex-direction: column;
	gap: 43px;
	padding: 16px;
}

/* Службові елементи CF7 */
.wpcf7 .hidden-fields-container,
.wpcf7-spinner {
	display: none;
}

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

.wpcf7-form-control-wrap {
	display: block;
}

.apply-form__row {
	display: grid;
	gap: 43px;
}

.field__input {
	width: 100%;
	height: 42px;
	padding: 10px 32px;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius-m);
	background: var(--color-surface);
	font-size: var(--fs-small);
	transition: border-color 0.2s;
}

.field__input--textarea {
	display: block;
	height: 109px;
	resize: vertical;
}

.field__input::placeholder {
	color: var(--color-muted);
	opacity: 1;
}

.field__input:hover {
	border-color: var(--color-text);
}

.field__input:focus {
	border-color: var(--color-accent);
	outline: none;
}

.field__input.wpcf7-not-valid {
	border-color: var(--color-error);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	color: var(--color-error);
	font-size: var(--fs-small);
}

.attach {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin-top: -27px;
}

/* Обгортка CF7 з input[type=file] — лише для повідомлення про помилку під полем */
.attach .wpcf7-form-control-wrap {
	order: 3;
	flex-basis: 100%;
}

.attach__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.attach__label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	color: var(--color-muted);
	cursor: pointer;
	transition: color 0.2s;
}

.attach__label::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: url("../img/icon-attachment.svg") center / contain no-repeat;
}

.attach__label:hover,
.attach.is-filled .attach__title {
	color: var(--color-text);
}

.attach:has(.attach__input:focus-visible) .attach__label {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-m);
}

.attach__text {
	display: flex;
	flex-direction: column;
}

.attach__title {
	overflow: hidden;
	max-width: 240px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.attach__hint {
	font-size: var(--fs-small);
}

.attach.has-error .attach__hint {
	color: var(--color-error);
}

/* Помилку файлу вже показує підказка під назвою — дубль від CF7 ховаємо */
.attach.has-error .wpcf7-not-valid-tip {
	display: none;
}

.attach__remove {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.attach__remove:hover {
	color: var(--color-text);
}

/* Згода на обробку персональних даних (CF7 acceptance) */
.consent {
	margin-top: -27px;
}

.consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--color-muted);
	font-size: var(--fs-small);
	line-height: 1.43;
	cursor: pointer;
}

.consent input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid var(--color-muted);
	border-radius: var(--radius-s);
	background: var(--color-surface) center / 14px 14px no-repeat;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.consent input[type="checkbox"]:hover {
	border-color: var(--color-text);
}

.consent input[type="checkbox"]:checked {
	border-color: var(--color-accent);
	background-color: var(--color-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

.consent input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.consent a {
	color: var(--color-accent);
	text-decoration: underline;
}

.consent .wpcf7-not-valid-tip {
	margin-left: 32px;
}

.apply-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: -27px;
}

/* Cloudflare Turnstile (плагін Simple Cloudflare Turnstile ставить відступи inline — перебиваємо) */
.apply-form .cf7-cf-turnstile {
	margin: -27px 0 0 !important;
}

/* Плагін зсуває віджет ліворуч правилом за id (margin-left: -15px) */
.apply-form .cf-turnstile {
	margin: 0 !important;
}

.apply-form .cf7-cf-turnstile br {
	display: none;
}

.apply-form.submitting .btn--submit {
	cursor: progress;
}

/* Спінер CF7 поруч із кнопкою (кнопка — input, псевдоелементів у неї немає) */
.apply-form.submitting .wpcf7-spinner {
	display: block;
	width: 24px;
	height: 24px;
	border: 2px solid var(--color-accent);
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.wpcf7-response-output {
	margin: -27px 0 0;
	font-size: var(--fs-body);
}

.apply-form.init .wpcf7-response-output,
.apply-form.resetting .wpcf7-response-output,
.apply-form.submitting .wpcf7-response-output,
.wpcf7-response-output:empty {
	display: none;
}

.apply-form.sent .wpcf7-response-output {
	color: var(--color-accent);
}

.apply-form.invalid .wpcf7-response-output,
.apply-form.unaccepted .wpcf7-response-output,
.apply-form.failed .wpcf7-response-output,
.apply-form.aborted .wpcf7-response-output,
.apply-form.spam .wpcf7-response-output {
	color: var(--color-error);
}

@media (min-width: 1024px) {
	.contact {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 40px;
	}

	.contact .section-head {
		flex: 0 1 628px;
	}

	.contact__form {
		flex: 0 1 604px;
	}

	.apply-form {
		padding-top: 0;
	}

	.apply-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

/* ---------- Футер ---------- */
.site-footer-wrap {
	padding-bottom: 32px;
}

.site-footer {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 40px 20px;
	border: 0.5px solid var(--color-muted);
	border-radius: var(--radius-l);
	background: var(--color-surface);
}

.site-footer__legal {
	display: flex;
	align-items: center;
	gap: 15px;
}

.site-footer__logo {
	width: 35px;
	height: auto;
}

.site-footer__copyright {
	font-family: var(--font-display);
	font-size: 14px;
}

.site-footer__policy {
	color: var(--color-muted);
	font-size: var(--fs-small);
}

a.site-footer__policy:hover {
	color: var(--color-text);
}

.site-footer__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.site-footer__social {
	display: flex;
	gap: 32px;
}

.social-link {
	border-radius: 50%;
	transition: opacity 0.2s;
}

.social-link:hover {
	opacity: 0.8;
}

.site-footer__contact {
	font-size: 20px;
	transition: color 0.2s;
}

.site-footer__contact:hover {
	color: var(--color-accent);
}

@media (min-width: 1024px) {
	.site-footer-wrap {
		padding-bottom: 69px;
	}

	.site-footer {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 40px;
	}

	.site-footer__logo {
		width: 45px;
	}

	.site-footer__copyright {
		margin-bottom: 8px;
		font-size: 18px;
	}

	.site-footer__contacts {
		flex-direction: row;
		align-items: center;
	}
}

/* ---------- Кнопка «Нагору» ---------- */
.to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-accent);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.4);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
}

.to-top img {
	transform: rotate(-90deg);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	background: var(--color-accent-hover);
}

.to-top:active {
	background: var(--color-accent-pressed);
}

@media (min-width: 1024px) {
	.to-top {
		right: 32px;
		bottom: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.to-top {
		transition: none;
	}
}

/* ---------- Звичайні сторінки ---------- */
.page-content {
	max-width: 860px;
	padding-top: 80px;
}

.prose {
	margin-top: 32px;
	color: var(--color-muted);
	line-height: 1.5;
}

.prose > * + * {
	margin-top: 1em;
}

.prose h2,
.prose h3 {
	color: var(--color-text);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.27;
}

.prose h2 {
	margin-top: 1.5em;
	font-size: 24px;
}

.prose a {
	color: var(--color-accent);
	text-decoration: underline;
}

.prose ul,
.prose ol {
	padding-left: 1.2em;
	list-style: revert;
}
