/*
 * Terms page.
 *
 * Loaded by page-splosni-pogoji.php only, on top of base.css — which defines
 * the design tokens, the reset, the shared nav/menu/footer chrome, the sticky
 * index and the closing booking band this file assumes.
 *
 * The layout is the price list's: a hero with no photography, a sticky index
 * beside a column of numbered sections. Only the section body differs — long
 * prose rather than a name/price row — so this file is short.
 *
 * Breakpoints:
 *   1024px  the sticky index moves above the clauses and turns horizontal
 *    700px  phone layout
 */

/* --------------------------------------------------------------- head ---- */

.g-pogoji-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 52svh;
	box-sizing: border-box;
	padding: 180px var(--g-gutter) 54px;
	border-bottom: 1px solid var(--g-line-mid);
}

.g-pogoji-hero__glow {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/* Warm bloom off the top right, then a floor gradient to settle it. */
.g-pogoji-hero__glow::before,
.g-pogoji-hero__glow::after {
	content: "";
	position: absolute;
	inset: 0;
}

.g-pogoji-hero__glow::before {
	background: radial-gradient(120% 90% at 78% 12%, rgba(var(--g-gold-rgb), 0.16), rgba(var(--g-ink-rgb), 0) 62%);
}

.g-pogoji-hero__glow::after {
	background: linear-gradient(180deg, rgba(var(--g-ink-rgb), 0.55), rgba(var(--g-ink-rgb), 0.95));
}

.g-pogoji-hero__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.g-pogoji-hero__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(48px, 7.5vw, 124px);
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.g-pogoji-hero__text {
	margin-bottom: 16px;
	max-width: 340px;
	font-size: 13px;
	line-height: 1.9;
	color: var(--g-text-muted);
	text-wrap: pretty;
}

/* --------------------------------------------------------------- body ---- */

.g-pogoji {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	gap: 70px;
	padding: 70px var(--g-gutter) 120px;
	align-items: start;
}

.g-pogoji-clauses {
	display: flex;
	flex-direction: column;
	gap: 54px;
	/* Legal prose, so the measure is capped well short of the column. */
	max-width: 760px;
}

.g-pogoji-clause {
	display: flex;
	flex-direction: column;
	gap: 16px;
	/* Clears the fixed nav when jumped to from the index. */
	scroll-margin-top: 110px;
}

.g-pogoji-clause__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--g-line-soft);
}

.g-pogoji-clause__title {
	font-family: var(--g-serif);
	font-weight: 400;
	font-size: clamp(22px, 2.3vw, 32px);
	line-height: 1.15;
	text-transform: lowercase;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

/* Kept from shrinking so the two-digit numbers stay on one line. */
.g-pogoji-clause__no {
	flex: none;
	font-size: 10px;
	letter-spacing: 0.24em;
	color: var(--g-text-faint);
}

/*
 * Looser than the rest of the site. This is the one page people read start to
 * finish rather than scan, and the paragraphs are long.
 */
.g-pogoji-clause__text {
	font-size: 14px;
	line-height: 2;
	color: var(--g-text-muted);
	text-wrap: pretty;
}

/* -------------------------------------------------------- ≤1024px ------- */

@media (max-width: 1024px) {
	.g-pogoji {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		padding-top: 44px;
	}
}

/* --------------------------------------------------------- ≤700px ------- */

@media (max-width: 700px) {
	.g-pogoji-hero {
		min-height: 0;
		padding: 130px var(--g-gutter) 40px;
	}

	.g-pogoji-hero__inner {
		gap: 20px;
	}

	.g-pogoji-hero__text {
		margin-bottom: 0;
		max-width: none;
	}

	.g-pogoji {
		padding-bottom: 90px;
	}

	.g-pogoji-clauses {
		gap: 42px;
	}
}
