/* Nagłówek strony głównej Transkor – film w tle i „Szybka wycena”. */

.tkh,
.tkh-portal,
.tkq {
	--tkh-red: #e30613;
	--tkh-red-hover: #c40510;
	--tkh-ink: #0b0b0b;
	--tkh-text: #fff;
	--tkh-muted: rgba(255, 255, 255, .72);
	--tkh-faint: rgba(255, 255, 255, .55);
	--tkh-line: rgba(255, 255, 255, .16);
	--tkh-head: 'Exo 2', 'AmpleSoftPro', 'Open Sans', sans-serif;
	--tkh-body: 'Inter', 'Open Sans', system-ui, sans-serif;
}
.tkh { padding: 0 12px; color: var(--tkh-text); }
.tkh-portal { color: var(--tkh-text); }
.tkh *,
.tkh *::before,
.tkh *::after,
.tkh-portal,
.tkh-portal *,
.tkh-portal *::before,
.tkh-portal *::after,
.tkq *,
.tkq *::before,
.tkq *::after { font-family: var(--tkh-body); }

.tkh__box {
	position: relative;
	max-width: 1880px;
	margin: 0 auto;
	border-radius: 40px;
	overflow: hidden;
	background: var(--tkh-ink);
	isolation: isolate;
}

/* Film i przyciemnienie */
.tkh__media { position: absolute; inset: 0; z-index: -1; }
.tkh__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 50%;
	display: block;
	background: var(--tkh-ink) center / cover no-repeat;
}
.tkh__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .78) 38%, rgba(11, 11, 11, .35) 70%, rgba(11, 11, 11, .25) 100%),
		linear-gradient(0deg, rgba(11, 11, 11, .85) 0%, rgba(11, 11, 11, 0) 35%);
}

/* Układ */
.tkh__inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 76px 40px 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	grid-template-areas: "main card" "bar bar";
	column-gap: 64px;
	align-items: center;
}
.tkh__main { grid-area: main; }
.tkh__card { grid-area: card; }
.tkh__bar  { grid-area: bar; }

/* Hasło i opis */
.tkh__title {
	font-family: var(--tkh-head);
	font-weight: 700;
	font-size: clamp(40px, 4.3vw, 68px);
	line-height: 1.04;
	letter-spacing: -.01em;
	text-transform: uppercase;
	margin: 0 0 26px;
	color: #fff;
}
.tkh__lead {
	font-size: 20px;
	line-height: 1.6;
	color: var(--tkh-muted);
	max-width: 600px;
	margin: 0 0 34px;
}
.tkh__lead--sm { display: none; }

/* Przyciski */
.tkh__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.tkh__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 0 30px;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .2s, border-color .2s, transform .2s;
}
.tkh__btn:active { transform: translateY(1px); }
.tkh__btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .15); }
.tkh__btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tkh__btn--red { color: #fff; background: var(--tkh-red); }
.tkh__btn--red:hover { background: var(--tkh-red-hover); color: #fff; }
.tkh__btn--full { width: 100%; margin-top: 6px; }
.tkh__btn:focus-visible,
.tkh__jobs:focus-visible,
.tkh__phone:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tkh__ico { width: 20px; height: 20px; flex: none; }

/* Liczby */
.tkh__stats {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: start;
	margin: 46px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid var(--tkh-line);
}
.tkh__stats > div { padding: 0 30px 0 18px; border-left: 1px solid var(--tkh-line); }
.tkh__stats > div:first-child { padding-left: 0; border-left: 0; }
.tkh__stats dt {
	font-family: var(--tkh-head);
	font-weight: 700;
	font-size: 38px;
	line-height: 1.1;
	color: #fff;
}
.tkh__stats dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--tkh-muted); }

/* Karta „Szybka wycena” */
.tkh__card {
	padding: 32px;
	border-radius: 28px;
	background: rgba(26, 26, 26, .72);
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.tkh__card-title {
	font-family: var(--tkh-head);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 4px;
	color: #fff;
}
.tkh__card-lead { margin: 0 0 18px; font-size: 15px; color: var(--tkh-muted); }
.tkh__form { display: grid; gap: 14px; }
.tkh__form[hidden] { display: none; }
.tkh__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tkh__field { display: grid; gap: 7px; margin: 0; }
.tkh__field > span { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.tkh__field input,
.tkh__field select {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 16px;
	outline: none;
	transition: border-color .2s, background .2s;
}
.tkh__field select {
	appearance: none;
	-webkit-appearance: none;
	background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
	padding-right: 40px;
	font-weight: 600;
}
.tkh__field select option { background: #141414; color: #fff; }
.tkh__field input::placeholder { color: rgba(255, 255, 255, .45); }
.tkh__field input:focus,
.tkh__field select:focus { border-color: rgba(255, 255, 255, .6); background-color: rgba(255, 255, 255, .1); }
.tkh__field input[aria-invalid="true"] { border-color: #ff6b6b; }
.tkh__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tkh__captcha:empty { display: none; }
.tkh__captcha iframe { max-width: 100%; }
.tkh__msg { margin: 0; font-size: 14px; line-height: 1.45; }
.tkh__msg[hidden] { display: none; }
.tkh__msg--err { color: #ff9d9d; }
.tkh__btn[disabled] { opacity: .65; cursor: wait; }

.tkh__done { text-align: center; padding: 18px 0 6px; }
.tkh__done[hidden] { display: none; }
.tkh__done svg { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: rgba(46, 204, 113, .16); color: #4ade80; }
.tkh__done p { margin: 8px 0 0; color: var(--tkh-muted); font-size: 15px; line-height: 1.5; }
.tkh__done .tkh__done-title { font-family: var(--tkh-head); font-weight: 700; font-size: 22px; color: #fff; }

.tkh__card-note { margin: 18px 0 12px; text-align: center; font-size: 14px; color: var(--tkh-faint); }
.tkh__phone {
	display: flex;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .9);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.tkh__phone:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tkh__phone .tkh__ico { width: 16px; height: 16px; }

/* Pasek na dole */
.tkh__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 44px;
	padding: 26px 0 30px;
	border-top: 1px solid var(--tkh-line);
}
.tkh__badges { margin: 0; font-size: 15px; color: var(--tkh-muted); }
.tkh__jobs {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}
.tkh__jobs:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Szersze ekrany: trochę więcej powietrza */
@media (min-width: 1500px) {
	.tkh__inner { padding-top: 96px; }
}

/* Laptopy i tablety poziomo: karta pod tekstem */
@media (max-width: 1180px) {
	.tkh__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "main" "card" "bar";
		row-gap: 40px;
		padding: 64px 32px 0;
	}
	.tkh__card { max-width: 560px; }
	.tkh__bar { margin-top: 0; }
	.tkh__shade {
		background: linear-gradient(180deg, rgba(11, 11, 11, .55) 0%, rgba(11, 11, 11, .82) 45%, rgba(11, 11, 11, .96) 100%);
	}
}

/* Telefony: film u góry, treść niżej na czarnym tle */
/* Telefony: jedna karta na wysokość ekranu, formularz w wysuwanym okienku */
@media (max-width: 760px) {
	.page-template-front-page .nav { padding: 14px 0 !important; margin-bottom: 0 !important; }

	.tkh { padding: 0 8px 12px; }
	.tkh__box {
		border-radius: 28px;
		isolation: auto;
		display: flex;
		flex-direction: column;
		/* wypełnia ekran pod paskiem nawigacji; rośnie, gdy treść się nie mieści */
		min-height: calc(100svh - var(--tkh-nav-h, 64px) - 12px);
	}
	.tkh__media { z-index: 0; bottom: auto; height: 78%; }
	.tkh__video { object-position: 50% 45%; }
	.tkh__shade {
		background: linear-gradient(180deg, rgba(11, 11, 11, .25) 0%, rgba(11, 11, 11, .5) 30%, rgba(11, 11, 11, .82) 62%, var(--tkh-ink) 100%);
	}
	.tkh__inner {
		position: relative;
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		gap: clamp(14px, 2.4svh, 26px);
		padding: 24px 20px clamp(16px, 2.6svh, 28px);
	}
	.tkh__title { font-size: clamp(25px, min(8.2vw, 4.4svh), 36px); margin-bottom: clamp(8px, 1.5svh, 16px); }
	.tkh__lead { font-size: clamp(14px, 2svh, 15px); line-height: 1.5; margin-bottom: clamp(12px, 2.2svh, 24px); }
	.tkh__lead--lg { display: none; }
	.tkh__lead--sm { display: block; }
	.tkh__actions { flex-direction: column; gap: clamp(8px, 1.4svh, 14px); }
	.tkh__btn { width: 100%; min-height: clamp(44px, 6.4svh, 54px); font-size: 15px; }
	.tkh__stats {
		grid-template-columns: 1fr 1fr;
		gap: clamp(8px, 1.6svh, 22px) 16px;
		margin-top: clamp(12px, 2.2svh, 30px);
		padding-top: clamp(10px, 2svh, 26px);
	}
	.tkh__stats > div { padding: 0; border-left: 0; }
	.tkh__stats dt { font-size: clamp(21px, 3.5svh, 28px); }
	.tkh__stats dd { margin-top: 2px; font-size: 13px; line-height: 1.4; }
	.tkh__row { grid-template-columns: 1fr; }
	.tkh__bar { border-top: 0; padding: 0; margin: 0; justify-content: flex-start; }
	.tkh__badges { display: none; }
	/* bez JavaScriptu formularz zostaje pod treścią */
	.tkh__card:not(.is-sheet) { margin-top: 8px; padding: 24px 20px; border-radius: 22px; }
}

/* Bardzo niskie ekrany (np. iPhone SE): bez opisu, liczby w jednym rzędzie */
@media (max-width: 760px) and (max-height: 640px) {
	.tkh__lead { display: none !important; }
	.tkh__stats { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
	.tkh__stats dt { font-size: 20px; }
	.tkh__stats dd { font-size: 11.5px; }
}

/* Okienko z formularzem (telefony, z JavaScriptem) */
@-webkit-keyframes tkh-sheet-in { from { -webkit-transform: translate3d(0, 100%, 0); } to { -webkit-transform: none; } }
@keyframes tkh-sheet-in { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@-webkit-keyframes tkh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkh-fade-in { from { opacity: 0; } to { opacity: 1; } }
.tkh__close, .tkh__backdrop { display: none; }
@media (max-width: 760px) {
	.tkh__card.is-sheet {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		max-height: 92svh;
		overflow-y: auto;
		overscroll-behavior: contain;
		margin: 0;
		padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
		border-radius: 24px 24px 0 0;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .12);
		background: #161616;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
		/* Zamknięte okienko jest całkiem ukryte (display: none), a przy otwarciu rysowane od nowa.
		   Safari na iPhonie potrafił pokazać samo tło okienka bez treści, gdy było tylko przesuwane za ekran. */
		display: none;
	}
	.tkh__card.is-sheet::before {
		content: "";
		position: absolute;
		top: 9px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: rgba(255, 255, 255, .22);
	}
	.tkh__card.is-sheet.is-open { display: block; -webkit-animation: tkh-sheet-in .32s cubic-bezier(.2, .8, .2, 1); animation: tkh-sheet-in .32s cubic-bezier(.2, .8, .2, 1); }
	.tkh__card.is-sheet .tkh__close {
		display: flex;
		position: absolute;
		top: 14px;
		right: 14px;
		width: 40px;
		height: 40px;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, .08);
		color: #fff;
		cursor: pointer;
	}
	.tkh__card.is-sheet .tkh__close svg { width: 18px; height: 18px; }
	.tkh__card.is-sheet .tkh__card-title { padding-right: 48px; font-size: 23px; }
	.tkh__card.is-sheet .tkh__card-lead { font-size: 14px; margin-bottom: 14px; }
	.tkh__card.is-sheet .tkh__form { gap: 12px; }
	.tkh__card.is-sheet .tkh__field { gap: 5px; }
	.tkh__card.is-sheet .tkh__field > span { font-size: 13px; }
	/* 16 px w polach – mniejsza czcionka powoduje powiększanie strony na iPhonie */
	.tkh__card.is-sheet .tkh__field input,
	.tkh__card.is-sheet .tkh__field select { height: 48px; font-size: 16px; }
	.tkh__card.is-sheet .tkh__btn { min-height: 50px; font-size: 15px; }
	.tkh__card.is-sheet .tkh__card-note { margin: 14px 0 8px; font-size: 13px; }
	.tkh__card.is-sheet .tkh__phone { font-size: 14px; }
	.tkh__backdrop.is-sheet {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(0, 0, 0, .6);
		display: none;
	}
	.tkh__backdrop.is-sheet.is-open { display: block; -webkit-animation: tkh-fade-in .25s; animation: tkh-fade-in .25s; }
	html.tkh-lock, html.tkh-lock body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.tkh__btn, .tkh__card.is-sheet, .tkh__backdrop.is-sheet { transition: none !important; -webkit-animation: none !important; animation: none !important; }
}

/* ----------------------------------------------------------------------------
   Strona Oferta: sekcja „Wycena transportu w 30 minut” z tym samym formularzem.
---------------------------------------------------------------------------- */
.tkq {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: 56px;
	align-items: center;
	padding: 56px;
	border-radius: 32px;
	background: radial-gradient(110% 90% at 0% 0%, rgba(227, 6, 19, .32), rgba(227, 6, 19, 0) 55%), var(--tkh-ink);
	color: var(--tkh-text);
}
.tkq__title {
	margin: 0 0 16px;
	font-family: var(--tkh-head);
	font-weight: 800;
	font-size: clamp(30px, 3.2vw, 46px);
	line-height: 1.08;
	text-transform: uppercase;
	color: #fff;
}
.tkq__lead { margin: 0 0 24px; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--tkh-muted); }
.tkq__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.tkq__list li { position: relative; margin: 0; padding-left: 32px; font-size: 16px; line-height: 1.5; color: #fff; }
.tkq__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tkh-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.tkq__more { margin: 0; font-size: 15px; color: var(--tkh-faint); }
.tkq__more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tkq__card { grid-area: auto; background: rgba(255, 255, 255, .05); }
.tkq .tkh__card-title { text-transform: none; }
@media (max-width: 980px) {
	.tkq { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px; border-radius: 26px; }
}
@media (max-width: 760px) {
	.tkq { padding: 28px 16px 16px; gap: 24px; }
	.tkq__text { padding: 0 4px; }
	.tkq__lead { font-size: 15px; }
	.tkq__list li { font-size: 15px; }
	.tkq .tkh__card { margin-top: 0; padding: 22px 18px; border-radius: 20px; }
}
.tkh__stat-link, .tkh__stat-link:link, .tkh__stat-link:visited { color: inherit; text-decoration: none; }
.tkh__stat-link:hover { color: var(--tkh-red); }

/* Telefony z JavaScriptem: formularz od początku poza układem nagłówka (pokazuje się w wysuwanym okienku) */
@media (max-width: 760px) {
	.tkh-js .tkh__inner > .tkh__card:not(.is-sheet) { display: none; }
}
