/* ==========================================================================
   Shared page blocks: CTA (14:2), BUJ (15:2)
   ========================================================================== */

/* ---------------------------------------------------------------- CTA */

.cta {
	padding: 100px 0;
	background: var(--c-ink);
	color: var(--c-white);
	text-align: center;
}

.cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
}

.cta__kicker {
	color: var(--c-on-dark-soft);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.cta__title {
	max-width: 860px;
	font-size: clamp(26px, calc(26px + (100vw - 375px) * 14 / 1065), 40px);
	line-height: 1.25;
	letter-spacing: 0.0075em;
}

.cta__text {
	max-width: 660px;
	color: var(--c-on-dark-soft);
	font-size: clamp(15px, calc(15px + (100vw - 375px) * 2 / 1065), 17px);
	line-height: 1.647;
}

.cta__buttons {
	justify-content: center;
	padding-top: 14px;
}

@media (max-width: 767px) {
	.cta {
		padding: 56px 0;
	}

	.cta__inner {
		gap: 16px;
	}

	.cta__kicker {
		color: var(--c-muted-60);
		font-size: 11px;
		line-height: 18px;
		letter-spacing: 0.1364em;
	}

	.cta__text {
		color: var(--c-muted-40);
		line-height: 1.6;
	}

	.cta__buttons {
		align-self: stretch;
		padding-top: 8px;
	}

	.cta__buttons .btn {
		min-height: 58px;
	}
}

/* ---------------------------------------------------------------- BUJ */

.faq__inner {
	display: grid;
	grid-template-columns: 430px minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"head list"
		"button list";
	column-gap: 110px;
	align-items: start;
}

.faq__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	grid-area: head;
}

.faq__list {
	grid-area: list;
}

.faq__button {
	grid-area: button;
	justify-self: start;
	margin-top: 22px;
}

.faq__title {
	font-size: clamp(26px, calc(26px + (100vw - 375px) * 10 / 1065), 36px);
	line-height: 1.222;
	letter-spacing: 0.0083em;
}

.faq__text {
	color: var(--c-muted);
	font-size: 15px;
	line-height: 24px;
}

.faq__text strong {
	color: var(--c-muted);
}

@media (max-width: 1279px) {
	.faq__inner {
		grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
		column-gap: 64px;
	}
}

@media (max-width: 1023px) {
	.faq__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas:
			"head"
			"list"
			"button";
		row-gap: 32px;
	}

	.faq__button {
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	.faq__inner {
		row-gap: 24px;
	}

	.faq__head {
		gap: 10px;
	}

	.faq__button {
		justify-self: stretch;
		min-height: 58px;
	}
}

/* --------------------------------------------- Steps (Kāpēc mēs, Kā mēs strādājam) */
/* 145:313 / 171:2: 2 px dark top rule, number 20/26, title 18/27, text 15/23. */

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

.steps__item {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 28px;
	border-top: 2px solid var(--c-ink);
}

.steps__num {
	color: var(--c-muted);
	font-size: 20px;
	font-weight: var(--fw-bold);
	line-height: 26px;
	letter-spacing: 0.025em;
}

.steps__title {
	font-size: 18px;
	line-height: 27px;
	letter-spacing: 0.0333em;
}

.steps__text {
	color: var(--c-muted);
	font-size: 15px;
	line-height: 23px;
}

@media (max-width: 1023px) {
	.steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}
}

@media (max-width: 767px) {
	.steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.steps__item {
		gap: 6px;
		padding-top: 16px;
	}

	.steps__num {
		font-size: 16px;
		line-height: 22px;
		letter-spacing: 0.0313em;
	}

	.steps__title {
		font-size: 16px;
		line-height: 24px;
		letter-spacing: 0.0313em;
	}

	.steps__text {
		font-size: 14px;
		line-height: 22px;
	}

	/* About page: number beside the title, text under the title (188:500) */
	.steps--inline .steps__list {
		gap: 20px;
	}

	.steps--inline .steps__item {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 4px 16px;
	}

	.steps--inline .steps__num {
		grid-row: span 2;
		font-size: 18px;
		line-height: 24px;
		letter-spacing: 0.0278em;
	}
}

/* ----------------------------------------------------------- Page hero */
/* 143:2 / 158:413: 340 px, image + 90deg graphite gradient; mobile 300 px, 180deg. */

.hero-page {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--c-ink);
	color: var(--c-white);
	isolation: isolate;
}

.hero-page__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-page::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(24, 23, 22, 0.92) 0%, rgba(24, 23, 22, 0.7) 55%, rgba(36, 36, 36, 0.25) 100%);
}

.hero-page__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-block: 40px;
}

.hero-page .breadcrumb {
	padding: 0;
}

.hero-page__title {
	font-size: clamp(30px, calc(30px + (100vw - 375px) * 20 / 1065), 50px);
	line-height: 1.2;
	letter-spacing: 0.012em;
	text-transform: uppercase;
}

.hero-page__text {
	max-width: 720px;
	font-size: 18px;
	line-height: 29.75px;
}

@media (max-width: 767px) {
	.hero-page {
		align-items: flex-end;
		min-height: 300px;
	}

	.hero-page::before {
		background: linear-gradient(180deg, rgba(24, 23, 22, 0.35) 0%, rgba(24, 23, 22, 0.92) 100%);
	}

	.hero-page__content {
		gap: 12px;
		padding-block: 28px;
	}

	.hero-page__title {
		line-height: 1.2;
		letter-spacing: 0.0133em;
	}

	.hero-page__text {
		font-size: 14px;
		line-height: 22px;
	}
}

/* ------------------------------------------------------ Thwaites banner */

.thwaites {
	background: var(--c-thwaites);
	border-bottom: 3px solid var(--c-thwaites-accent);
	color: var(--c-white);
	overflow: hidden;
	transition: height var(--t-accordion) var(--ease), opacity var(--t-accordion) var(--ease);
}

.thwaites__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-block: 18px;
}

.thwaites__logo {
	flex: none;
	width: 146px;
	height: 65px;
	object-fit: cover;
}

.thwaites__divider {
	flex: none;
	width: 1px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
}

.thwaites__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.thwaites__kicker {
	color: var(--c-thwaites-accent);
	font-size: 11px;
	font-weight: var(--fw-bold);
	line-height: 16px;
	letter-spacing: 0.1364em;
	text-transform: uppercase;
}

.thwaites__title {
	font-size: 19px;
	font-weight: var(--fw-bold);
	line-height: 26px;
}

.thwaites__desc {
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 22px;
}

.thwaites__desc-short {
	display: none;
}

.thwaites__button {
	flex: none;
	padding: 16px 30px;
	background: var(--c-thwaites-accent);
	color: var(--c-thwaites);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background-color var(--t-fast) var(--ease);
}

.thwaites__button:hover {
	background: #ffb83d;
}

.thwaites__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--c-white);
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.thwaites__close:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--c-white);
}

.thwaites__close svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1279px) {
	.thwaites__desc-full {
		display: none;
	}

	.thwaites__desc-short {
		display: inline;
	}
}

@media (max-width: 1023px) {
	.thwaites__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 10px;
		padding-block: 14px 18px;
	}

	.thwaites__logo {
		width: 99px;
		height: 44px;
	}

	.thwaites__divider {
		display: none;
	}

	.thwaites__close {
		grid-column: 2;
		grid-row: 1;
	}

	.thwaites__text,
	.thwaites__button {
		grid-column: 1 / -1;
	}

	.thwaites__button {
		justify-self: start;
		margin-top: 4px;
	}
}

@media (max-width: 767px) {
	.thwaites__kicker {
		display: none;
	}

	.thwaites__title {
		font-size: 15px;
		line-height: 21px;
	}

	.thwaites__desc {
		font-size: 13px;
		line-height: 19px;
	}

	.thwaites__button {
		display: inline-flex;
		flex-direction: column;
		align-items: stretch;
		gap: 3px;
		padding: 0;
		background: none;
		color: var(--c-thwaites-accent);
		line-height: 20px;
	}

	.thwaites__button::after {
		content: "";
		height: 2px;
		background: currentColor;
	}

	.thwaites__button:hover {
		background: none;
	}
}

/* ------------------------------------------------------------ Help box */

.help-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 30px 28px;
	background: var(--c-ink);
	color: var(--c-white);
}

.help-box__kicker {
	color: var(--c-muted);
	font-size: 12px;
	font-weight: var(--fw-bold);
	line-height: 22px;
	letter-spacing: 0.125em;
	text-transform: uppercase;
}

.help-box__title {
	font-size: 18px;
	font-weight: var(--fw-bold);
	line-height: 27px;
	letter-spacing: 0.0167em;
}

.help-box__phone {
	font-size: 15px;
	font-weight: var(--fw-bold);
	line-height: 24px;
	letter-spacing: 0.02em;
}

.help-box__phone:hover {
	text-decoration: underline;
}

.help-box__button {
	min-height: 0;
	padding: 16px 34px;
}
