/* Font and theme variables */
@font-face {
	font-family: "Avenir";
	src: url("https://vavilenweb.ru/wp-content/themes/vavilen/fonts/AvenirNextCyr-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Avenir";
	src: url("https://vavilenweb.ru/wp-content/themes/vavilen/fonts/AvenirNextCyr-Demi.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--primary-color: #01ecf2;
	--secondary-color: #22a2c9;
	--body-color: #f9f9f9;
	--body-muted: rgba(255, 255, 255, 0.7);
	--dark-bg: #00021b;
	--glass-bg: rgba(34, 162, 201, 0.08);
	--glass-bg-hover: rgba(34, 162, 201, 0.14);
	--glass-border: rgba(255, 255, 255, 0.15);
	--glass-border-active: rgba(1, 236, 242, 0.35);
	--glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	--accent-shadow: 0 12px 36px rgba(1, 236, 242, 0.14);
	--border-radius: 30px;
	--transition: 0.25s ease;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--dark-bg);
}

body {
	margin: 0;
	min-width: 320px;
	font-family: "Avenir", Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--body-color);
	background: var(--dark-bg);
}

a {
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
p {
	margin-top: 0;
}

h1,
h2 {
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
}

h1 {
	margin-bottom: 18px;
	font-size: clamp(2rem, 7vw, 3.35rem);
	letter-spacing: 0.01em;
}

h2 {
	margin-bottom: 14px;
	font-size: clamp(1.35rem, 4vw, 1.9rem);
}

/* Fixed video background */
.video-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: #07090d url("https://vavilenweb.ru/wp-content/themes/vavilen/img/bg-poster.webp") center / cover no-repeat;
}

.video-bg-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.95) contrast(1.05) brightness(0.65);
	transform: scale(1.02);
}

.video-bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 2, 27, 0.82)), radial-gradient(70vmin 70vmin at 20% 15%, rgba(80, 190, 255, 0.18), transparent 68%), radial-gradient(60vmin 60vmin at 90% 80%, rgba(1, 236, 242, 0.1), transparent 72%);
}

/* Taplink layout */
.taplink {
	width: min(100%, 760px);
	margin: 0 auto;
	padding: 64px 20px 40px;
}

.profile {
	padding: 12px 20px 36px;
	text-align: center;
}

.profile-logo {
	display: block;
	width: min(72vw, 300px);
	margin: 0 auto 32px;
}

.profile-kicker,
.section-kicker,
.profile-stack {
	margin-bottom: 10px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary-color);
}

.profile-text {
	max-width: 620px;
	margin: 0 auto 16px;
	font-size: 1.08rem;
	color: rgba(255, 255, 255, 0.86);
}

.profile-stack {
	margin-bottom: 0;
	color: var(--body-muted);
}

.link-list {
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
}

.link-card,
.item-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--border-radius);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: var(--glass-shadow);
}

.link-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 104px;
	padding: 18px 22px;
	text-decoration: none;
	transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.link-card-primary {
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 124px;
	background: linear-gradient(135deg, rgba(1, 236, 242, 0.18), rgba(34, 162, 201, 0.08));
	border-color: var(--glass-border-active);
	box-shadow: var(--accent-shadow);
}

.link-card:hover,
.link-card:focus-visible {
	transform: translateY(-3px);
	background: var(--glass-bg-hover);
	border-color: var(--glass-border-active);
	box-shadow: var(--accent-shadow);
}

.link-card:focus-visible,
.btn:focus-visible,
.profile-logo:focus-visible,
.taplink-footer a:focus-visible {
	outline: 3px solid rgba(1, 236, 242, 0.55);
	outline-offset: 4px;
}

.link-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	padding: 10px;
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.link-card-icon img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.link-card-primary > img {
	width: 58px;
	transition: transform var(--transition);
}

.link-card-primary:hover > img {
	transform: rotate(90deg) scale(0.94);
}

.link-card-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.link-card-content strong {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.link-card-content small {
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--body-muted);
}

/* Content cards */
.service-card,
.contact-card {
	margin-bottom: 28px;
	padding: clamp(24px, 6vw, 40px);
}

.service-heading {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

.service-heading > img {
	width: 72px;
}

.service-heading .section-kicker {
	margin-bottom: 5px;
}

.service-heading h2 {
	margin-bottom: 0;
}

.service-list {
	display: grid;
	gap: 13px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.service-list li {
	position: relative;
	padding-left: 32px;
	color: rgba(255, 255, 255, 0.86);
}

.service-list li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 14px;
	height: 14px;
	border: 1px solid var(--glass-border-active);
	border-radius: 50%;
	background: rgba(1, 236, 242, 0.22);
	box-shadow: 0 0 20px rgba(1, 236, 242, 0.18);
}

.service-links,
.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.78rem 1.45rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 100px;
	color: rgba(255, 255, 255, 0.92);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.13);
	border-color: var(--glass-border-active);
	box-shadow: var(--accent-shadow);
}

.btn-light {
	color: rgba(0, 0, 0, 0.88);
	font-weight: 600;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
	border-color: rgba(1, 236, 242, 0.7);
}

.btn-light:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.13);
}

.contact-card {
	text-align: center;
}

.contact-card p:not(.section-kicker) {
	max-width: 590px;
	margin: 0 auto 26px;
	color: var(--body-muted);
}

.contact-links {
	justify-content: center;
}

.taplink-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 8px 8px 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.56);
}

.taplink-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-underline-offset: 4px;
}

/* Reveal animation */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 560px) {
	.taplink {
		padding: 38px 14px 26px;
	}

	.profile {
		padding-right: 10px;
		padding-left: 10px;
	}

	.profile-logo {
		margin-bottom: 26px;
	}

	.profile-text {
		font-size: 1rem;
	}

	.link-card {
		gap: 14px;
		min-height: 94px;
		padding: 16px 18px;
		border-radius: 24px;
	}

	.link-card-primary {
		min-height: 112px;
	}

	.link-card-icon {
		width: 54px;
		height: 54px;
	}

	.link-card-icon img {
		width: 38px;
		height: 38px;
	}

	.link-card-primary > img {
		width: 46px;
	}

	.link-card-content strong {
		font-size: 1rem;
	}

	.link-card-content small {
		font-size: 0.84rem;
	}

	.service-card,
	.contact-card {
		border-radius: 24px;
	}

	.service-heading {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.service-heading > img {
		margin: 0 auto;
	}

	.service-links,
	.contact-links {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

	.taplink-footer {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.video-bg-media {
		display: none;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.link-card,
	.link-card-primary > img,
	.btn {
		transition: none;
	}
}
