@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../assets/fonts/poppins/Poppins-Light.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../assets/fonts/poppins/Poppins-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../assets/fonts/poppins/Poppins-SemiBold.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../assets/fonts/poppins/Poppins-Bold.woff2") format("woff2");
}

body {
	--home-navy: #07315d;
	--home-navy-dark: #041f3b;
	--home-gold: #b98520;
	--home-gold-light: #e7bc68;
	font-family: "Poppins", sans-serif;
	background: #f7fafd;
}

/* The header takes its natural height; the landing fills the remaining viewport.
   A minimum (not a fixed height) keeps content readable with enlarged text/zoom. */
.home-screen {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100vh;
	min-height: 100svh;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 253, 0.96)),
		url("images/hero-banner/bg.png") right bottom / auto no-repeat;
}

.home-screen .container,
.home-details .container {
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
	padding-left: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left));
	padding-right: max(clamp(16px, 4vw, 64px), env(safe-area-inset-right));
}

.simple-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid rgba(7, 18, 30, 0.08);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	padding-top: env(safe-area-inset-top);
}

.simple-header-inner,
.header-actions,
.header-contacts {
	display: flex;
	align-items: center;
}

.simple-header-inner {
	justify-content: space-between;
	gap: 20px;
	min-height: 80px;
	padding-block: 6px;
}

.header-logo {
	flex: 0 0 auto;
}

.header-logo img {
	display: block;
	width: 80px;
	height: auto;
}

.header-actions {
	min-width: 0;
	gap: 24px;
}

.header-contacts {
	gap: 12px;
	color: #07121e;
}

.header-contacts i {
	font-size: 30px;
	color: var(--color-primary);
}

.header-contacts span {
	display: block;
	font-size: 13px;
	color: var(--color-primary);
}

.header-contacts a {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #07121e;
}

.home-screen .btn {
	justify-content: center;
	min-height: 44px;
	white-space: normal;
	text-align: center;
	font-weight: 600;
}

.home-screen .btn-primary {
	border-color: var(--home-navy);
	background-color: var(--home-navy);
	color: #fff;
	box-shadow: 0 5px 14px rgba(7, 49, 93, 0.16);
}

.home-screen .btn-primary-outline {
	border-color: var(--home-navy);
	background-color: #fff;
	color: var(--home-navy);
}

.home-screen .btn:is(:focus-visible, :active) {
	border-color: var(--home-navy-dark);
	background-color: var(--home-navy-dark);
	color: #fff;
	box-shadow: 0 8px 20px rgba(7, 49, 93, 0.2);
}

/* Do not animate layout dimensions when a device rotates or crosses a breakpoint. */
.home-screen a[href],
.home-details a[href] {
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease,
		border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease,
		text-decoration-color 0.2s ease;
}

.header-contacts a[href],
.home-details .text-link {
	text-decoration-line: underline;
	text-decoration-color: rgba(185, 133, 32, 0.45);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.header-contacts a[href]:is(:focus-visible, :active),
.home-details .text-link:is(:focus-visible, :active) {
	color: var(--home-navy);
	text-decoration-color: var(--home-gold);
	text-decoration-thickness: 2px;
}

.home-screen .page-content,
.simple-landing {
	display: flex;
	min-width: 0;
}

.simple-landing {
	flex: 1;
	padding-top: clamp(16px, 3vh, 36px);
	padding-top: clamp(16px, 3svh, 36px);
	padding-bottom: max(clamp(16px, 3svh, 36px), env(safe-area-inset-bottom));
}

.landing-layout {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3vh, 36px);
	gap: clamp(16px, 3svh, 36px);
}

.landing-intro {
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
	text-align: center;
}

.landing-intro h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 3.3vw, 54px);
	line-height: 1.15;
	text-wrap: balance;
}

.landing-intro p {
	margin: 0;
	font-size: clamp(14px, 1.3vw, 19px);
	font-weight: 300;
	line-height: 1.5;
	text-wrap: balance;
}

.landing-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(12px, 2vh, 22px);
	margin-top: clamp(12px, 2svh, 22px);
}

.landing-actions .btn {
	min-width: 190px;
}

.section-entry-grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 22px);
}

.section-entry-item {
	display: flex;
	min-width: 0;
}

.section-entry-card {
	display: flex;
	align-items: flex-end;
	position: relative;
	width: 100%;
	min-width: 0;
	min-height: 280px;
	overflow: hidden;
	border-radius: 18px;
	background: #07121e;
	box-shadow: 0 16px 40px rgba(7, 18, 30, 0.12);
}

.section-entry-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.section-entry-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(7, 18, 30, 0.02), rgba(7, 18, 30, 0.5) 38%, rgba(7, 18, 30, 0.94));
}

/* An inset frame highlights the entire clickable card without changing its size. */
.section-entry-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border: 2px solid var(--home-gold-light);
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.section-entry-card:is(:focus-visible, :active) {
	box-shadow: 0 22px 45px rgba(7, 49, 93, 0.24);
}

.section-entry-card:is(:focus-visible, :active)::after {
	opacity: 1;
}

.section-entry-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: clamp(16px, 1.6vw, 26px);
	overflow-wrap: anywhere;
}

.section-entry-content h2 {
	margin: 0 0 10px;
	font-size: clamp(18px, 1.45vw, 25px);
	line-height: 1.18;
	text-wrap: balance;
}

.section-entry-content p {
	margin: 0;
	font-size: clamp(13px, 0.95vw, 15px);
	line-height: 1.5;
}

.section-entry-content h2,
.section-entry-content p,
.section-entry-link {
	color: #fff;
}

.section-entry-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 600;
	line-height: 1.4;
}

.section-entry-label {
	text-decoration: underline;
	text-decoration-color: rgba(231, 188, 104, 0.6);
	text-underline-offset: 4px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.section-entry-link i {
	display: grid;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 1px solid rgba(231, 188, 104, 0.65);
	border-radius: 50%;
	background: rgba(7, 49, 93, 0.5);
	color: var(--home-gold-light);
	transition: color 0.2s ease, background-color 0.2s ease,
		border-color 0.2s ease, transform 0.25s ease;
}

.section-entry-card:is(:focus-visible, :active) .section-entry-label {
	color: var(--home-gold-light);
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
}

.section-entry-card:is(:focus-visible, :active) .section-entry-link i {
	border-color: var(--home-gold-light);
	background: var(--home-gold-light);
	color: var(--home-navy);
}

.home-details {
	padding-block: clamp(24px, 4vw, 56px);
	padding-bottom: max(clamp(24px, 4vw, 56px), env(safe-area-inset-bottom));
	overflow-wrap: anywhere;
}

.simple-info-box {
	height: 100%;
	padding: clamp(18px, 2vw, 26px);
	border: 1px solid rgba(7, 18, 30, 0.1);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(7, 18, 30, 0.08);
}

.simple-footer-logo img,
.legal-text img {
	display: inline-block;
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links img {
	display: block;
	width: 40px;
	height: 40px;
}

.social-links a,
.partner-link {
	display: inline-flex;
	padding: 4px;
	border: 1px solid transparent;
	border-radius: 12px;
}

.social-links a:is(:focus-visible, :active),
.partner-link:is(:focus-visible, :active) {
	border-color: var(--home-gold);
	background: #fff;
	box-shadow: 0 6px 16px rgba(7, 49, 93, 0.12);
}

.header-logo {
	border-radius: 10px;
}

.header-logo:is(:focus-visible, :active) {
	background: #f6f1e8;
}

.home-screen a[href]:focus-visible,
.home-details a[href]:focus-visible {
	outline: 3px solid var(--home-navy);
	outline-offset: 4px;
}

.legal-text {
	color: #505860;
	font-size: 14px;
	line-height: 1.7;
}

/* Touch uses :active feedback; only pointing devices get persistent hover styles. */
@media (hover: hover) {
	.home-screen .btn:hover {
		border-color: var(--home-navy-dark);
		background-color: var(--home-navy-dark);
		color: #fff;
		box-shadow: 0 8px 20px rgba(7, 49, 93, 0.2);
	}

	.header-contacts a[href]:hover,
	.home-details .text-link:hover {
		color: var(--home-navy);
		text-decoration-color: var(--home-gold);
		text-decoration-thickness: 2px;
	}

	.section-entry-card:hover {
		box-shadow: 0 22px 45px rgba(7, 49, 93, 0.24);
	}

	.section-entry-card:hover::after {
		opacity: 1;
	}

	.section-entry-card:hover .section-entry-label {
		color: var(--home-gold-light);
		text-decoration-color: currentColor;
		text-decoration-thickness: 2px;
	}

	.section-entry-card:hover .section-entry-link i {
		border-color: var(--home-gold-light);
		background: var(--home-gold-light);
		color: var(--home-navy);
	}

	.social-links a:hover,
	.partner-link:hover {
		border-color: var(--home-gold);
		background: #fff;
		box-shadow: 0 6px 16px rgba(7, 49, 93, 0.12);
	}

	.header-logo:hover {
		background: #f6f1e8;
	}
}

/* Animate inside the link so its clickable area stays still under the pointer. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.section-entry-card:hover img {
		transform: scale(1.04);
	}

	.section-entry-card:hover .section-entry-link i {
		transform: translateX(3px);
	}
}

/* Keep the five desktop cards in proportion on tall, high-resolution monitors.
   Content can still grow naturally when text is enlarged. */
@media (min-width: 1100px) {
	.home-screen {
		min-height: min(100vh, 1000px);
		min-height: min(100svh, 1000px);
	}
}

/* Tablets: two rows in landscape, three in portrait. */
@media (700px <= width < 1100px) {
	.section-entry-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.section-entry-item {
		grid-column: span 2;
	}

	.section-entry-item:nth-last-child(2) {
		grid-column: 2 / span 2;
	}

	.section-entry-card {
		min-height: 150px;
	}

	.section-entry-content {
		padding: 14px;
	}

	.section-entry-content h2 {
		font-size: 18px;
		margin-bottom: 6px;
	}

	.section-entry-content p {
		font-size: 13px;
		line-height: 1.4;
	}

	.section-entry-link {
		margin-top: 8px;
		font-size: 13px;
	}
}

@media (700px <= width < 900px) and (min-height: 800px) {
	.section-entry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-entry-item,
	.section-entry-item:nth-last-child(2) {
		grid-column: auto;
	}

	.section-entry-item:last-child {
		grid-column: 1 / -1;
	}
}

@media (width < 700px) {
	.simple-header-inner {
		min-height: 62px;
		gap: 12px;
	}

	.header-logo img {
		width: 62px;
	}

	.header-contacts {
		display: none;
	}

	.header-actions .btn {
		padding: 10px 14px;
		font-size: 13px;
	}

	.simple-landing {
		padding-top: 12px;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}

	.landing-layout {
		gap: 12px;
	}

	.landing-intro h1 {
		margin-bottom: 8px;
		font-size: clamp(24px, 6vw, 34px);
		line-height: 1.12;
	}

	.landing-intro p {
		font-size: 13px;
		line-height: 1.45;
	}

	.landing-actions {
		gap: 8px;
		margin-top: 12px;
	}

	.landing-actions .btn {
		flex: 1;
		min-width: 0;
		max-width: 240px;
		padding: 10px 8px;
		font-size: 12px;
	}

	.section-entry-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 1fr;
		gap: 8px;
	}

	.section-entry-card {
		align-items: center;
		min-height: 56px;
		border-radius: 12px;
		box-shadow: 0 6px 18px rgba(7, 18, 30, 0.1);
	}

	.section-entry-card img {
		width: 28%;
	}

	.section-entry-card::before {
		background: linear-gradient(90deg, transparent, rgba(7, 18, 30, 0.25) 18%, #07121e 29%);
	}

	.section-entry-content {
		padding: 8px 52px 8px calc(28% + 6px);
	}

	.section-entry-content h2 {
		margin: 0;
		font-size: clamp(15px, 4vw, 18px);
		line-height: 1.2;
		text-wrap: initial;
	}

	/* Compact navigation keeps all five destinations visible on phones. */
	.section-entry-content p,
	.section-entry-label {
		display: none;
	}

	.section-entry-link {
		position: absolute;
		top: 50%;
		right: 12px;
		margin: 0;
		transform: translateY(-50%);
		font-size: 18px;
	}
}

/* Browser controls can leave a small phone with less than 560px of usable height. */
@media (width < 700px) and (max-height: 560px) {
	.simple-header-inner {
		min-height: 54px;
		padding-block: 4px;
	}

	.header-logo img {
		width: 54px;
	}

	.simple-landing {
		padding-block: 8px max(8px, env(safe-area-inset-bottom));
	}

	.landing-layout {
		gap: 8px;
	}

	.landing-intro h1 {
		margin-bottom: 6px;
		font-size: 22px;
	}

	.landing-intro p {
		font-size: 12px;
		line-height: 1.4;
	}

	.landing-actions {
		margin-top: 8px;
	}

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

	.section-entry-item:last-child {
		grid-column: 1 / -1;
	}

	.section-entry-card img {
		width: 100%;
	}

	.section-entry-card::before {
		background: rgba(7, 18, 30, 0.7);
	}

	.section-entry-content {
		padding: 8px 10px;
	}

	.section-entry-content h2 {
		font-size: 15px;
	}

	.section-entry-link {
		display: none;
	}
}

/* Short landscape viewports use the same compact cards in two rows. */
@media (min-width: 700px) and (max-height: 650px),
	(700px <= width < 900px) and (max-height: 700px) {
	.simple-header-inner {
		min-height: 60px;
	}

	.header-logo img {
		width: 62px;
	}

	.simple-landing {
		padding-block: 12px max(12px, env(safe-area-inset-bottom));
	}

	.landing-layout {
		gap: 14px;
	}

	.landing-intro h1 {
		font-size: 30px;
	}

	.section-entry-card {
		min-height: 100px;
	}

	.section-entry-content p {
		display: none;
	}

	.section-entry-content h2 {
		font-size: 18px;
	}
}

@media (max-height: 500px) and (min-width: 500px) {
	.home-screen .container {
		padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
	}

	.simple-header-inner {
		min-height: 52px;
		padding-block: 4px;
	}

	.header-logo img {
		width: 54px;
	}

	.header-contacts {
		display: none;
	}

	.header-actions .btn {
		padding: 8px 16px;
		font-size: 13px;
	}

	.simple-landing {
		padding-block: 10px max(10px, env(safe-area-inset-bottom));
	}

	.landing-layout {
		gap: 10px;
	}

	.landing-intro {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
		align-items: center;
		gap: 4px 20px;
		text-align: left;
	}

	.landing-intro h1 {
		grid-column: 1 / -1;
		margin: 0;
		font-size: clamp(20px, 3vw, 26px);
	}

	.landing-intro p {
		font-size: 12px;
		line-height: 1.35;
		text-wrap: initial;
	}

	.landing-actions {
		grid-column: 2;
		grid-row: 2;
		gap: 8px;
		margin: 0;
	}

	.landing-actions .btn {
		flex: 1;
		min-width: 0;
		padding: 8px;
		font-size: 12px;
	}

	.section-entry-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: 1fr;
		gap: 8px;
	}

	.section-entry-item,
	.section-entry-item:last-child {
		grid-column: span 2;
	}

	.section-entry-item:nth-last-child(2) {
		grid-column: 2 / span 2;
	}

	.section-entry-card {
		min-height: 64px;
		align-items: center;
		border-radius: 10px;
	}

	.section-entry-card img {
		width: 100%;
	}

	.section-entry-card::before {
		background: rgba(7, 18, 30, 0.7);
	}

	.section-entry-content {
		padding: 10px;
	}

	.section-entry-content h2 {
		margin: 0;
		font-size: 15px;
		line-height: 1.2;
		text-wrap: initial;
	}

	.section-entry-content p,
	.section-entry-link {
		display: none;
	}
}

@media (min-width: 500px) and (max-height: 360px) {
	.simple-landing {
		padding-block: 8px max(8px, env(safe-area-inset-bottom));
	}

	.landing-layout {
		gap: 8px;
	}

	.landing-intro {
		gap: 2px 16px;
	}

	.section-entry-card {
		min-height: 60px;
	}

	.section-entry-item:nth-last-child(2) {
		grid-column: 1 / span 3;
	}

	.section-entry-item:last-child {
		grid-column: 4 / span 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-screen a[href],
	.home-details a[href],
	.section-entry-card img,
	.section-entry-card::after,
	.section-entry-label,
	.section-entry-link i {
		transition: none;
	}
}
