/* =============================================
   ПроХмель — Premium Dark Theme
   ============================================= */

/* ===== RESET & CUSTOM PROPERTIES ===== */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #0c0c0c;
	--bg-alt: #111111;
	--bg-card: #181818;
	--bg-card-2: #1f1f1f;
	--accent: #f59e0b;
	--accent-light: #fcd34d;
	--accent-dark: #d97706;
	--accent-glow: rgba(245, 158, 11, 0.12);
	--text: #f5f5f4;
	--text-muted: #78716c;
	--text-soft: #a8a29e;
	--border: rgba(255, 255, 255, 0.07);
	--border-hover: rgba(245, 158, 11, 0.3);
	--radius: 16px;
	--radius-sm: 8px;
	--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
	--shadow-hover:
		0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.08);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--duration: 0.3s;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: "Montserrat", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

ul,
nav {
	list-style: none;
}
a {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
img {
	max-width: 100%;
	display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 5px;
}
::-webkit-scrollbar-track {
	background: var(--bg);
}
::-webkit-scrollbar-thumb {
	background: var(--accent-dark);
	border-radius: 3px;
}

/* ===== CONTAINER ===== */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 30px;
	border-radius: 50px;
	font-family: "Montserrat", sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: all var(--duration) var(--ease);
	cursor: pointer;
	border: none;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.btn--primary {
	background: var(--accent);
	color: #0c0c0c;
}
.btn--primary:hover {
	background: var(--accent-light);
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

.btn--outline {
	background: transparent;
	border: 1.5px solid rgba(245, 158, 11, 0.5);
	color: var(--accent);
}
.btn--outline:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #0c0c0c;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* ===== HEADER ===== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 28px 48px;
	transition:
		padding var(--duration) var(--ease),
		border var(--duration) var(--ease);
	border-bottom: 1px solid transparent;
}

/* Background + blur on a pseudo-element so it never becomes a containing block
   for the position:fixed mobile nav (backdrop-filter on a real element does that). */
.header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 12, 0.88);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
	pointer-events: none;
	z-index: -1;
}

.header--scrolled {
	border-bottom-color: var(--border);
	padding: 18px 48px;
}

.header--scrolled::before {
	opacity: 1;
}

.header__logo img {
	height: 84px;
	width: auto;
	transition:
		transform var(--duration) var(--ease),
		opacity var(--duration) var(--ease);
}
.header__logo:hover img {
	transform: scale(1.06);
	opacity: 0.9;
}

.header__title {
	font-size: clamp(1rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
}
.header--scrolled .header__title {
	opacity: 1;
}

.header__nav {
	display: flex;
	align-items: center;
	gap: 36px;
	margin-left: auto;
}

.header__link {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-soft);
	position: relative;
	transition: color var(--duration) var(--ease);
}
.header__link::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
	transition: width var(--duration) var(--ease);
}
.header__link:hover {
	color: var(--text);
}
.header__link:hover::after {
	width: 100%;
}

/* Burger */
.header__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	z-index: 110;
}
.header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition:
		transform var(--duration) var(--ease),
		opacity var(--duration) var(--ease);
}
.header__burger.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.header__burger.active span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.header__burger.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-image: url("images/bg/bg1.jpg");
	background-size: cover;
	background-position: center 30%;
	background-attachment: fixed;
	z-index: 0;
}
.hero__bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at 60% 40%,
		rgba(245, 158, 11, 0.06) 0%,
		transparent 65%
	);
	z-index: 1;
}
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(12, 12, 12, 0.45) 0%,
		rgba(12, 12, 12, 0.65) 50%,
		rgba(12, 12, 12, 0.97) 100%
	);
	z-index: 2;
}

/* Animated video background — sits above the static poster image,
   below the accent glow (::before) and dark gradient (::after) overlays.
   Two layers crossfade for a seamless loop (driven by JS). */
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	z-index: 0;
	opacity: 0;
	transition: opacity 1.2s linear;
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 3;
	max-width: 760px;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero__title {
	font-size: clamp(4.5rem, 13vw, 10rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.text-accent {
	color: var(--accent);
}

.hero__subtitle {
	font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
	font-weight: 400;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 44px;
}

/* Scroll arrow */
.hero__scroll {
	position: absolute;
	bottom: 44px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	color: var(--text-muted);
	animation: scrollBounce 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
		opacity: 0.5;
	}
	50% {
		transform: translateX(-50%) translateY(10px);
		opacity: 1;
	}
}

/* ===== SECTION BASE ===== */
.section {
	padding: 104px 0;
}
.section:nth-child(even) {
	background: var(--bg-alt);
}

.section__title {
	font-size: clamp(1.625rem, 3.5vw, 2.625rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	text-align: center;
	margin-bottom: 64px;
	position: relative;
}
.section__title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
	margin: 14px auto 0;
}

/* ===== SHOPS ===== */
.shops__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 20px;
}

.shop-card {
	background: var(--bg-card);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	transition:
		transform var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
	opacity: 0;
	transform: translateY(28px);
}
.shop-card.visible {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.5s var(--ease),
		transform 0.5s var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
}
.shop-card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-hover);
	transform: translateY(-5px);
}

.shop-card__map {
	height: 210px;
	overflow: hidden;
	background: #141414;
	position: relative;
}
.shop-card__map::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 60%,
		rgba(24, 24, 24, 0.4) 100%
	);
	pointer-events: none;
	z-index: 1;
}
.shop-card__map iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	filter: grayscale(20%) brightness(0.85) contrast(1.05);
	transition: filter var(--duration) var(--ease);
}
.shop-card:hover .shop-card__map iframe {
	filter: grayscale(0%) brightness(0.95);
}

.shop-card__body {
	padding: 24px 28px 28px;
}

.shop-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}
.shop-card__address {
	font-size: 0.8125rem;
	color: var(--text-muted);
	font-weight: 400;
	line-height: 1.7;
	margin-bottom: 20px;
}

/* ===== BANK DETAILS ===== */
.details__card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 44px 52px;
	max-width: 740px;
	margin: 0 auto;
	box-shadow: var(--shadow-card);
	opacity: 0;
	transform: translateY(28px);
}
.details__card.visible {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.5s var(--ease),
		transform 0.5s var(--ease);
}

.details__name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--border);
	letter-spacing: -0.01em;
}

.details__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 40px;
}

.details__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.details__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.details__value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

/* ===== CONTACTS ===== */
.contacts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	max-width: 640px;
	margin: 0 auto;
}

.contacts__card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 40px 32px;
	text-align: center;
	box-shadow: var(--shadow-card);
	transition:
		transform var(--duration) var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
	opacity: 0;
	transform: translateY(28px);
}
.contacts__card.visible {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.5s var(--ease),
		transform 0.5s var(--ease),
		border-color var(--duration) var(--ease),
		box-shadow var(--duration) var(--ease);
}
.contacts__card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-hover);
	transform: translateY(-5px);
}

.contacts__icon {
	width: 64px;
	height: 64px;
	background: var(--accent-glow);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: var(--accent);
	transition:
		transform var(--duration) var(--ease),
		background var(--duration) var(--ease);
}
.contacts__card:hover .contacts__icon {
	transform: scale(1.1);
	background: rgba(245, 158, 11, 0.2);
}

.contacts__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 10px;
}
.contacts__value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	transition: color var(--duration) var(--ease);
}
.contacts__card:hover .contacts__value {
	color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
	background: var(--bg);
	border-top: 1px solid var(--border);
	padding: 32px 0;
	text-align: center;
}

.footer__inner {
	/* display: flex; */
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.footer__logo img {
	height: 34px;
	width: auto;
	opacity: 0.55;
	transition: opacity var(--duration) var(--ease);
}
.footer__logo:hover img {
	opacity: 0.9;
}

.footer__copy {
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 400;
	letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.header {
		padding: 24px 32px;
	}
	.header--scrolled {
		padding: 16px 32px;
	}
}

@media (max-width: 768px) {
	.header {
		padding: 20px 24px;
	}
	.header--scrolled {
		padding: 14px 24px;
	}

	/* fixed attachment prevents GPU compositing and causes full repaints on scroll */
	.hero__bg {
		background-attachment: scroll;
	}

	.header__burger {
		display: flex;
		margin-left: auto;
	}

	.header__nav {
		position: fixed;
		inset: 0;
		background: rgba(12, 12, 12, 0.97);
		backdrop-filter: blur(32px);
		-webkit-backdrop-filter: blur(32px);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 44px;
		transform: translateX(100%);
		transition: transform var(--duration) var(--ease);
	}
	.header__nav.open {
		transform: translateX(0);
	}

	.header__link {
		font-size: 1.5rem;
		font-weight: 700;
		letter-spacing: 0.08em;
	}
	.header__link::after {
		bottom: -8px;
		height: 2px;
	}

	.section {
		padding: 80px 0;
	}
	.section__title {
		margin-bottom: 44px;
	}

	.shops__grid {
		grid-template-columns: 1fr;
	}

	.details__card {
		padding: 28px 24px;
	}
	.details__grid {
		grid-template-columns: 1fr;
		gap: 18px 0;
	}

	.footer__inner {
		flex-direction: column;
		text-align: center;
	}

	.container {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	.hero__title {
		font-size: 3.75rem;
	}
	.hero__subtitle {
		letter-spacing: 0.2em;
	}
	.contacts__grid {
		grid-template-columns: 1fr;
	}
	.details__card {
		padding: 24px 20px;
	}
}
