@import url('/fonts/fonts.css');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	background: #1a2332;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	color: #e0e8f0;
}

/* ===== BACKGROUND ===== */
.waves-bg {
	position: fixed;
	width: 200%;
	height: 200%;
	top: -50%;
	left: -50%;
	z-index: 0;
	background: linear-gradient(45deg,
		#0d1621 0%,
		#1a2940 25%,
		#2d4a6b 50%,
		#1a2940 75%,
		#0d1621 100%);
	animation: waveAnimation 20s ease-in-out infinite;
}

@keyframes waveAnimation {
	0%, 100% { transform: rotate(0deg) scale(1); }
	25% { transform: rotate(1deg) scale(1.05); }
	50% { transform: rotate(-1deg) scale(1); }
	75% { transform: rotate(1deg) scale(1.05); }
}

/* ===== PARTICLES ===== */
.particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	overflow: visible;
}

.particle {
	position: absolute;
	width: 2px;
	height: 2px;
	background: linear-gradient(45deg, #d4a574, #f4e4c1);
	border-radius: 50%;
	opacity: 0;
}

/* ===== PAGE ===== */
.page-wrapper {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	padding: 40px 20px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ===== HEADER ===== */
.header {
	width: 100%;
	max-width: 600px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 50px;
	animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #7a9ec7;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 400;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	padding: 8px 0;
}

.back-link:hover {
	color: #d4a574;
}

.back-link:hover .back-arrow {
	transform: translateX(-4px);
}

.back-arrow {
	transition: transform 0.3s ease;
	display: inline-flex;
}

.header-logo {
	height: 40px;
	width: auto;
	opacity: 0.6;
	transition: all 0.3s ease;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header-logo:hover {
	opacity: 1;
	filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.3));
	transform: scale(1.05);
}

/* ===== SECTION HEADING ===== */
.section-heading {
	text-align: center;
	margin-bottom: 60px;
	animation: fadeInUp 1s ease-out 0.2s both;
}

.section-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 300;
	font-size: 2.6em;
	letter-spacing: 2px;
	line-height: 1.2;
	background: linear-gradient(135deg, #d4a574, #f4e4c1, #d4a574);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== RELEASES ===== */
.releases {
	width: 100%;
	max-width: 1000px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 44px 30px;
}

/* ===== RELEASE CARD ===== */
.release-card {
	text-align: center;
	opacity: 0;
	transform: translateY(30px);
	display: flex;
	flex-direction: column;
}

.release-card.visible {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.release-cover-wrapper {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1 / 1;
	margin: 0 auto 24px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(212, 165, 116, 0.12);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.4),
		0 0 30px rgba(212, 165, 116, 0.06);
	transition: all 0.4s ease;
}

.release-cover-wrapper:hover {
	border-color: rgba(212, 165, 116, 0.3);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.5),
		0 0 40px rgba(212, 165, 116, 0.12);
	transform: translateY(-4px);
}

.release-cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.release-cover-wrapper:hover .release-cover {
	transform: scale(1.03);
}

.release-cover-wrapper::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.06) 0%,
		transparent 50%,
		rgba(0, 0, 0, 0.15) 100%
	);
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.release-cover-wrapper:hover::after {
	opacity: 0.7;
}

/* ===== RELEASE INFO ===== */
.release-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.6em;
	font-weight: 400;
	color: #d4a574;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
	line-height: 1.3;
}

/* ===== ACTION BUTTON ===== */
.listen-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.88em;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: #d4a574;
	background: transparent;
	border: 1px solid rgba(212, 165, 116, 0.3);
	border-radius: 50px;
	position: relative;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.listen-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(244, 228, 193, 0.06));
	opacity: 0;
	transition: opacity 0.4s ease;
	border-radius: 50px;
}

.listen-btn::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(244, 228, 193, 0.12), transparent);
	animation: btnSheen 5s ease-in-out infinite;
}

@keyframes btnSheen {
	0%, 100% { left: -100%; }
	50% { left: 150%; }
}

.listen-btn:hover {
	color: #f4e4c1;
	border-color: rgba(244, 228, 193, 0.5);
	box-shadow:
		0 0 20px rgba(212, 165, 116, 0.15),
		0 0 40px rgba(212, 165, 116, 0.08),
		inset 0 0 20px rgba(212, 165, 116, 0.04);
	transform: translateY(-3px);
}

.listen-btn:hover::before {
	opacity: 1;
}

.listen-btn:active {
	transform: translateY(-1px);
}

.listen-btn-icon {
	display: inline-flex;
	transition: transform 0.3s ease;
}

.listen-btn:hover .listen-btn-icon {
	transform: scale(1.15);
}

/* ===== DIVIDER ===== */
.release-divider {
	width: 40px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
	margin: 0 auto;
}

/* ===== LOADING ===== */
.loading {
	text-align: center;
	padding: 60px 0;
	color: #7a9ec7;
	font-weight: 300;
	letter-spacing: 1px;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 2px solid rgba(212, 165, 116, 0.1);
	border-top-color: #d4a574;
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.privacy-footer {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 30px 20px 10px;
}

.privacy-footer-divider {
	width: 40px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.25), transparent);
	margin: 0 auto 18px;
}

.privacy-footer-link {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.78em;
	font-weight: 300;
	color: rgba(122, 158, 199, 0.4);
	text-decoration: none;
	letter-spacing: 0.5px;
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
	padding-bottom: 2px;
}

.privacy-footer-link:hover {
	color: #d4a574;
	border-bottom-color: rgba(212, 165, 116, 0.3);
}

/* ===== SCROLLBAR ===== */
body::-webkit-scrollbar {
	width: 6px;
}

body::-webkit-scrollbar-track {
	background: rgba(212, 165, 116, 0.05);
}

body::-webkit-scrollbar-thumb {
	background: rgba(212, 165, 116, 0.2);
	border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
	background: rgba(212, 165, 116, 0.35);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
	.page-wrapper {
		padding: 20px 14px 60px;
	}

	.header {
		margin-bottom: 36px;
	}

	.back-link {
		font-size: 0.8em;
	}

	.header-logo {
		height: 32px;
	}

	.section-heading {
		margin-bottom: 44px;
	}

	.section-title {
		font-size: 2em;
	}

	.releases {
		gap: 40px;
	}

	.release-title {
		font-size: 1.35em;
		margin-bottom: 16px;
	}

	.release-cover-wrapper {
		border-radius: 10px;
		margin-bottom: 20px;
	}

	.listen-btn {
		padding: 12px 26px;
		font-size: 0.82em;
		letter-spacing: 1px;
	}
}

/* =====================================================================
   САЙТЫ — отдельная раскладка поверх общего шаблона раздела.
   Карточка — окно браузера: полоска с адресом и скриншот 16:10.
   Скриншот снят во всю высоту страницы; при наведении он медленно
   прокручивается вниз, как будто листаешь сайт.
   ===================================================================== */

.section-lead {
	max-width: 560px;
	margin: -24px auto 48px;
	text-align: center;
	color: #9fb4cc;
	font-size: 0.95em;
	line-height: 1.7;
	letter-spacing: 0.3px;
	animation: fadeInUp 1s ease-out 0.15s both;
}

.sites {
	width: 100%;
	max-width: 1080px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 36px;
}

.sites > .loading {
	grid-column: 1 / -1;
}

.site-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	opacity: 0;
	transform: translateY(30px);
}

.site-card.visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-frame {
	border-radius: 12px;
	overflow: hidden;
	background: #0f1824;
	border: 1px solid rgba(212, 165, 116, 0.14);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.45),
		0 0 30px rgba(212, 165, 116, 0.06);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-card:hover .site-frame,
.site-card:focus-visible .site-frame {
	transform: translateY(-6px);
	border-color: rgba(212, 165, 116, 0.38);
	box-shadow:
		0 30px 64px rgba(0, 0, 0, 0.55),
		0 0 44px rgba(212, 165, 116, 0.14);
}

.site-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 34px;
	padding: 0 14px;
	background: linear-gradient(180deg, #1c2a3b, #152131);
	border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.site-dots {
	display: inline-flex;
	gap: 6px;
	flex: none;
}

.site-dots i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(212, 165, 116, 0.35);
}

.site-dots i:nth-child(2) { opacity: 0.7; }
.site-dots i:nth-child(3) { opacity: 0.45; }

.site-url {
	flex: 1;
	min-width: 0;
	height: 20px;
	line-height: 20px;
	padding: 0 12px;
	border-radius: 10px;
	background: rgba(10, 17, 26, 0.55);
	color: #9fb4cc;
	font-size: 0.68em;
	letter-spacing: 0.6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

.site-shot {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f1ec;
}

.site-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
	transition: object-position 6s cubic-bezier(0.45, 0, 0.35, 1);
}

/* Прокрутка скриншота — только там, где есть настоящий курсор:
   на телефоне «наведение» залипает после касания. */
@media (hover: hover) {
	.site-card:hover .site-shot img {
		object-position: 50% 100%;
	}
}

.site-card:focus-visible .site-shot img {
	object-position: 50% 100%;
}

.site-info {
	padding: 26px 6px 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.site-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.8em;
	font-weight: 400;
	color: #d4a574;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

.site-desc {
	max-width: 420px;
	color: #b8c7d8;
	font-size: 0.9em;
	line-height: 1.65;
}

.site-cta {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	font-size: 0.8em;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #d4a574;
	border: 1px solid rgba(212, 165, 116, 0.3);
	border-radius: 50px;
	transition: all 0.4s ease;
}

.site-card:hover .site-cta,
.site-card:focus-visible .site-cta {
	color: #f4e4c1;
	border-color: rgba(244, 228, 193, 0.5);
	box-shadow: 0 0 22px rgba(212, 165, 116, 0.15);
}

.site-card:focus-visible {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.site-shot img { transition: none; }
	.site-card:hover .site-shot img { object-position: 50% 0%; }
}

@media (max-width: 760px) {
	.sites {
		grid-template-columns: 1fr;
		gap: 44px;
	}
	.section-lead {
		margin: -16px auto 36px;
		padding: 0 8px;
	}
	.site-title {
		font-size: 1.55em;
	}
}
