*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	min-height: 100dvh;
	display: grid;
	grid-template-rows: 1fr auto;
	background-color: #000;
	background-image: url("somov-back.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	font-family: "Russo One", sans-serif;
	-webkit-font-smoothing: antialiased;
	color: #fafafa;
}

@media (min-width: 768px) and (hover: hover) {
	body {
		background-attachment: fixed;
	}
}

a {
	-webkit-tap-highlight-color: transparent;
}

a:focus-visible {
	outline: 2px solid #fafafa;
	outline-offset: 3px;
	border-radius: 4px;
}

.text-shadow {
	text-shadow:
		#000 2px 0 2px,
		#000 0 2px 2px,
		#000 0 -2px 2px,
		#000 -2px 0 2px;
}

/* ── Gate ── */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding:
		max(1rem, env(safe-area-inset-top, 0px))
		max(1rem, env(safe-area-inset-right, 0px))
		1rem
		max(1rem, env(safe-area-inset-left, 0px));
}

.gate__choices {
	display: flex;
	gap: clamp(1rem, 3vw, 2rem);
}

.gate__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: clamp(9.5rem, 24vw, 15rem);
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	text-decoration: none;
	color: #fafafa;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.gate__card:hover {
	transform: scale(1.04);
	background: rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.6);
}

.gate__card:active {
	transform: scale(0.98);
}

.gate__lang {
	font-size: clamp(1.25rem, 3.5vw, 1.75rem);
	line-height: 1.2;
}

.gate__domain {
	font-size: clamp(0.8rem, 2vw, 0.95rem);
	color: rgba(255, 255, 255, 0.75);
}

/* ── Footer ── */

.site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	padding:
		1rem
		max(0.75rem, env(safe-area-inset-right, 0px))
		max(1rem, env(safe-area-inset-bottom, 0px))
		max(0.75rem, env(safe-area-inset-left, 0px));
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__title {
	font-size: clamp(0.85rem, 3vw, 1.1rem);
	line-height: 1.3;
}

/* ── Portrait phones ── */

@media (max-width: 480px) and (orientation: portrait) {
	.gate__choices {
		flex-direction: column;
		width: 100%;
		max-width: 20rem;
	}

	.gate__card {
		width: 100%;
	}
}
