/**
 * Technologie Max – podstrony „Kontakt” i „O portalu”.
 */

.tm-pagebody {
	padding-block: 72px;
}

.tm-pagebody__title {
	color: var(--tm-text);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 39px;
}

.tm-pagebody__lead {
	margin-top: 8px;
	color: var(--tm-text-2);
	font-size: 18px;
	line-height: 29px;
}

.tm-pagebody__content {
	margin-top: 48px;
}

.tm-cathero__icon--logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.8px;
}

.tm-cathero__icon .tm-icon--mail {
	width: 28px;
	height: 28px;
}

.tm-static-view .tm-cathero__title {
	max-width: 860px;
	font-size: 48px;
	letter-spacing: -1.4px;
	line-height: 55px;
}

/* --------------------------------------------------------------------------
 * Kontakt
 * ----------------------------------------------------------------------- */

.tm-contactpage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 80px;
	align-items: start;
}

.tm-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 32px;
}

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

.tm-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tm-form__field > label,
.tm-form__field > legend {
	padding: 0;
	color: var(--tm-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 17px;
}

.tm-form__field > legend {
	margin-bottom: 8px;
}

.tm-input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	outline: 0;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1.5px var(--tm-border-strong);
	color: var(--tm-text);
	font-size: 16px;
	transition: box-shadow 0.2s ease;
}

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

.tm-input:focus {
	box-shadow: inset 0 0 0 2px var(--tm-blue);
}

textarea.tm-input {
	height: auto;
	min-height: 168px;
	padding: 14px 16px;
	line-height: 24px;
	resize: vertical;
}

.tm-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-choice {
	position: relative;
	cursor: pointer;
}

.tm-choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.tm-choice span {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 18px;
	border-radius: 22px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
	color: var(--tm-text);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.tm-choice:hover span {
	box-shadow: inset 0 0 0 1px var(--tm-border-strong);
}

.tm-choice input:checked + span {
	background-color: var(--tm-blue-soft);
	box-shadow: inset 0 0 0 1.5px var(--tm-blue);
	color: var(--tm-blue-text);
	font-weight: 600;
}

.tm-choice input:focus-visible + span {
	outline: 2px solid var(--tm-blue);
	outline-offset: 2px;
}

/* Zgoda na jasnym tle */
.tm-consent--light .tm-consent__box {
	box-shadow: inset 0 0 0 1.5px var(--tm-border-strong);
}

.tm-consent--light .tm-consent__text {
	color: var(--tm-text-2);
}

.tm-consent--light .tm-consent__text a {
	color: var(--tm-blue);
}

.tm-consent--light .tm-consent__text a:hover {
	color: var(--tm-blue-hover);
}

.tm-consent--light .tm-consent__target input:focus-visible + .tm-consent__box {
	outline-color: var(--tm-blue);
}

.tm-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.tm-form .tm-form-msg.is-success {
	background-color: rgba(22, 163, 74, 0.12);
	color: #15803d;
}

.tm-form .tm-form-msg.is-error {
	background-color: rgba(220, 38, 38, 0.1);
	color: #b91c1c;
}

:root[data-theme="dark"] .tm-form .tm-form-msg.is-success {
	color: #86efac;
}

:root[data-theme="dark"] .tm-form .tm-form-msg.is-error {
	color: #fca5a5;
}

.tm-contactpage__side {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.tm-contactpage__side .tm-contact__card {
	width: 100%;
}

.tm-contactpage__side .tm-contact__email {
	font-size: 28px;
}

.tm-reasons {
	display: flex;
	flex-direction: column;
}

.tm-reason {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--tm-border);
}

.tm-reason:first-child {
	padding-top: 0;
}

.tm-reason:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.tm-reason .tm-tile__icon {
	flex-shrink: 0;
}

.tm-reason__title {
	color: var(--tm-text);
	font-size: 17px;
	font-weight: 700;
	line-height: 24px;
}

.tm-reason__text {
	margin-top: 4px;
	color: var(--tm-text-2);
	font-size: 15px;
	line-height: 23px;
}

.tm-social--light {
	margin-top: 16px;
}

.tm-social--light a {
	box-shadow: inset 0 0 0 1px var(--tm-border);
	color: var(--tm-text);
}

.tm-social--light a:hover {
	color: #fff;
}

.tm-pagebody + .tm-newsletter,
.tm-contact + .tm-newsletter {
	padding-top: 0;
}

/* --------------------------------------------------------------------------
 * O portalu
 * ----------------------------------------------------------------------- */

.tm-aboutstats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.tm-aboutstat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
}

.tm-aboutstat__value {
	color: var(--tm-blue);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1.2px;
	line-height: 44px;
}

.tm-aboutstat__label {
	color: var(--tm-text-2);
	font-size: 15px;
	line-height: 20px;
}

.tm-aboutintro {
	display: grid;
	grid-template-columns: minmax(0, 480fr) minmax(0, 720fr);
	gap: 80px;
	align-items: start;
}

.tm-aboutintro__head .tm-eyebrow {
	margin-bottom: 12px;
	color: var(--tm-blue-text);
}

.tm-aboutvalues,
.tm-aboutteam {
	padding-block: 80px;
	background-color: var(--tm-bg-soft);
}

.tm-values {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.tm-value {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
}

.tm-value__title {
	margin-top: 16px;
	color: var(--tm-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.tm-value__text {
	margin-top: 8px;
	color: var(--tm-text-2);
	font-size: 15px;
	line-height: 23px;
}

.tm-abouttopics .tm-tiles {
	margin-top: 40px;
}

.tm-team {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.tm-member {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
}

.tm-member .tm-avatar {
	width: 64px;
	height: 64px;
}

.tm-member__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tm-member__name {
	color: var(--tm-text);
	font-size: 17px;
	font-weight: 700;
	line-height: 24px;
}

.tm-member__name a {
	transition: color 0.2s ease;
}

.tm-member__name a:hover {
	color: var(--tm-blue);
}

.tm-member__role {
	color: var(--tm-blue-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.tm-member__count {
	color: var(--tm-muted);
	font-size: 14px;
	line-height: 20px;
}

.tm-static-view .tm-contact {
	border-top: 0;
}

/* --------------------------------------------------------------------------
 * Responsywność
 * ----------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.tm-contactpage {
		grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
		gap: 48px;
	}

	.tm-aboutintro {
		gap: 48px;
	}

	.tm-values,
	.tm-aboutstats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.tm-contactpage,
	.tm-aboutintro {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.tm-aboutintro {
		gap: 24px;
	}
}

@media (max-width: 720px) {
	.tm-pagebody {
		padding-block: 48px;
	}

	.tm-static-view .tm-cathero__title {
		font-size: 32px;
		letter-spacing: -0.9px;
		line-height: 38px;
	}

	.tm-pagebody__title {
		font-size: 26px;
		letter-spacing: -0.6px;
		line-height: 32px;
	}

	.tm-pagebody__lead {
		font-size: 16px;
		line-height: 26px;
	}

	.tm-form__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.tm-form__actions .tm-btn {
		width: 100%;
	}

	.tm-contactpage__side .tm-contact__email {
		font-size: 21px;
	}

	.tm-aboutstats {
		gap: 12px;
		margin-top: 28px;
	}

	.tm-aboutstat {
		padding: 16px;
	}

	.tm-aboutstat__value {
		font-size: 30px;
		line-height: 36px;
	}

	.tm-aboutvalues,
	.tm-aboutteam {
		padding-block: 48px;
	}

	.tm-values,
	.tm-team {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-top: 28px;
	}

	.tm-abouttopics .tm-tiles {
		margin-top: 28px;
	}
}

/* --------------------------------------------------------------------------
 * Polityka prywatności
 * ----------------------------------------------------------------------- */

.tm-legal {
	display: grid;
	grid-template-columns: 284px minmax(0, 760px);
	gap: 80px;
	align-items: start;
}

.tm-legal > .tm-legal__content:only-child {
	grid-column: 1 / -1;
	max-width: 840px;
}

.tm-legal__nav {
	position: sticky;
	top: 108px;
	padding: 24px;
	border-radius: 16px;
	background-color: var(--tm-surface);
	box-shadow: inset 0 0 0 1px var(--tm-border);
}

.admin-bar .tm-legal__nav {
	top: 140px;
}

.tm-legal__nav .tm-toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tm-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
}

.tm-legal__nav ol {
	margin-top: 16px;
	border-left: 1px solid var(--tm-border);
}

.tm-legal__nav a {
	display: block;
	padding: 9px 0 9px 14px;
	color: var(--tm-text-2);
	font-size: 15px;
	line-height: 20px;
	transition: color 0.15s ease;
}

.tm-legal__nav a:hover {
	color: var(--tm-blue);
}

.tm-legal__content > h2:first-child {
	margin-top: 0;
}

.tm-legal__content h2 {
	scroll-margin-top: 12px;
}

.tm-legal__todo {
	padding: 16px 20px;
	border-radius: 12px;
	background-color: rgba(245, 158, 11, 0.12);
	box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.5);
	font-size: 16px;
	line-height: 25px;
}

.tm-legal__inline {
	color: var(--tm-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tm-legal__content .wp-block-table {
	overflow-x: auto;
}

.tm-legal__content table {
	min-width: 560px;
}

@media (max-width: 1100px) {
	.tm-legal {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.tm-legal__nav {
		position: static;
	}
}
