/*
 * Сайт Verbum: ярко, как в фильме про Minecraft — закатное небо, золото, цветные свечения.
 * Цвета — в :root, меняются в одном месте. Цвет рамки плашки — класс glow-… (см. ниже, «Свечения»).
 */
:root {
	--bg: #120f1d;
	--bg-2: #1c1530;
	--panel: rgba(22, 17, 34, .92);
	--line: rgba(255, 214, 120, .18);
	--text: #f1ead8;
	--muted: #b6aec4;
	--gold: #ffc93c;
	--gold-2: #ffdf7a;
	--gold-dark: #b8860b;
	--radius: 14px;
	--title: "Philosopher", Georgia, serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--text);
	font: 17px/1.6 "Rubik", "Segoe UI", system-ui, sans-serif;
	background:
		radial-gradient(1200px 600px at 15% 20%, rgba(255, 120, 190, .10), transparent 60%),
		radial-gradient(1000px 700px at 85% 60%, rgba(120, 140, 255, .10), transparent 60%),
		linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #0d0b15);
	background-attachment: fixed;
}

a {
	color: var(--gold);
}

h1, h2, h3, .brand {
	font-family: var(--title);
	font-weight: 700;
}

b, strong {
	color: var(--gold-2);
	font-weight: 600;
}

/* ─── Шапка ─── */

.top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px clamp(16px, 3vw, 32px);
	pointer-events: none;
}

.top > * {
	pointer-events: auto;
}

/* Пролистали обложку — под шапкой тёмная полоса, чтобы она не ложилась на текст. */
.top.scrolled {
	pointer-events: auto;
	padding-top: 8px;
	padding-bottom: 8px;
	background: rgba(14, 11, 22, .9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	transition: background .2s, padding .2s;
}

/* Плашка с названием слева — как вывеска из тёмного дерева в золотой раме. */
.brand {
	color: var(--gold);
	text-decoration: none;
	font-size: 24px;
	letter-spacing: .14em;
	padding: 6px 18px;
	background: linear-gradient(180deg, #3a2a17, #20160c);
	border: 2px solid var(--gold-dark);
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 201, 60, .15);
	text-shadow: 0 2px 0 #5a3d0a;
}

nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 5px;
	background: rgba(14, 11, 22, .78);
	backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

nav a {
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 8px;
	transition: background .15s, color .15s;
}

nav a:hover {
	color: var(--gold);
	background: rgba(255, 201, 60, .08);
}

/* Донат — золотая плашка. */
nav a.gold {
	color: #2a1a00;
	background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #e0a91d);
	box-shadow: 0 0 14px rgba(255, 201, 60, .55), inset 0 -2px 0 rgba(120, 70, 0, .45);
}

nav a.gold:hover {
	color: #2a1a00;
	background: linear-gradient(180deg, #fff0b0, var(--gold-2));
}

/* ─── Обложка ─── */

.hero {
	position: relative;
	min-height: min(100vh, 62vw);
	display: flex;
	align-items: center;
	padding: 120px clamp(16px, 5vw, 72px) 64px;
	background:
		linear-gradient(90deg, rgba(10, 7, 18, .88) 0%, rgba(10, 7, 18, .55) 30%, rgba(10, 7, 18, 0) 55%),
		linear-gradient(180deg, rgba(10, 7, 18, 0) 70%, var(--bg-2) 100%),
		url("img/hero.jpg") center top / cover no-repeat;
}

.hero-text {
	max-width: 440px;
	margin-top: 8vw;
}

.hero-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.15;
	color: #fff;
	text-shadow: 0 3px 18px rgba(0, 0, 0, .8);
}

.hero-lead {
	margin: 0;
	font-size: clamp(16px, 1.4vw, 19px);
	text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

.hero-lead span {
	display: block;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}

/* ─── Кнопки ─── */

.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #2a1a00;
	background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #e0a91d);
	border: 2px solid #8a5a00;
	box-shadow: 0 6px 0 #8a5a00, 0 10px 24px rgba(255, 180, 40, .35);
	transition: transform .1s, box-shadow .1s, filter .15s;
}

.button:hover {
	filter: brightness(1.08);
}

.button:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 #8a5a00, 0 6px 16px rgba(255, 180, 40, .3);
}

.button.dark {
	color: var(--gold-2);
	background: rgba(16, 12, 26, .85);
	border-color: var(--gold-dark);
	box-shadow: 0 6px 0 #4a3510, 0 10px 24px rgba(0, 0, 0, .4);
}

.button.small {
	padding: 10px 18px;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
}

/* Значок «скачать»: стрелка вниз над чертой, нарисована рамками — без картинок. */
.icon-down {
	position: relative;
	width: 14px;
	height: 16px;
	border-bottom: 3px solid currentColor;
}

.icon-down::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 0;
	width: 3px;
	height: 9px;
	background: currentColor;
}

.icon-down::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 5px;
	width: 6px;
	height: 6px;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(45deg);
}

/* ─── Разделы ─── */

main {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.block {
	padding: 56px 0 8px;
	scroll-margin-top: 80px;
}

/* Заголовок с узором: золотые линии и ромбики по бокам. */
.ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 28px;
	font-size: clamp(28px, 3vw, 36px);
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 14px rgba(255, 201, 60, .35);
}

.ornament::before,
.ornament::after {
	content: "";
	flex: 0 1 180px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold));
	box-shadow: 0 0 6px rgba(255, 201, 60, .6);
}

.ornament::after {
	background: linear-gradient(90deg, var(--gold), transparent);
}

/* ─── Плашки «что тебя ждёт» ─── */

.cards {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.cards article,
.steps li,
.other article,
.rules,
.donate {
	position: relative;
	background: var(--panel);
	border: 2px solid var(--glow, var(--gold));
	border-radius: var(--radius);
	padding: 22px 18px;
	box-shadow: 0 0 22px -4px var(--glow, var(--gold)), inset 0 0 26px -12px var(--glow, var(--gold));
	transition: transform .15s, box-shadow .15s;
}

.cards article:hover,
.steps li:hover,
.other article:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 34px -2px var(--glow, var(--gold)), inset 0 0 30px -10px var(--glow, var(--gold));
}

.cards article {
	text-align: center;
}

.cards h3,
.steps h3,
.other h3 {
	margin: 0 0 12px;
	color: var(--gold);
	font-size: 19px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-shadow: 0 0 12px rgba(255, 201, 60, .35);
}

.cards p {
	margin: 0 0 8px;
	font-size: 15px;
	color: var(--text);
}

.cards p:last-child {
	margin-bottom: 0;
}

/* ─── Свечения: цвет рамки и света у плашки ─── */

.glow-purple { --glow: #b46bff; }
.glow-fire { --glow: #ff7a2f; }
.glow-gold { --glow: #ffc93c; }
.glow-red { --glow: #ff4d6d; }
.glow-green { --glow: #6bdc5a; }
.glow-amber { --glow: #ffab3c; }

/* ─── Галерея ─── */

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	padding-top: 48px;
}

.gallery figure {
	margin: 0;
}

.gallery img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
	border: 2px solid rgba(255, 201, 60, .35);
	display: block;
}

.gallery figcaption {
	color: var(--muted);
	font-size: 14px;
	margin-top: 6px;
	text-align: center;
}

/* ─── Скачать ─── */

.steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.steps li {
	counter-increment: step;
}

.steps h3::before {
	content: counter(step) ". ";
}

.other {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 22px;
}

.other p {
	margin: 0 0 10px;
}

.note, .muted {
	color: var(--muted);
	font-size: 14px;
}

.copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: 6px;
	padding: 14px;
	cursor: pointer;
	font: inherit;
	color: var(--gold-2);
	background: rgba(0, 0, 0, .35);
	border: 2px dashed rgba(255, 201, 60, .5);
	border-radius: 10px;
}

.copy span {
	font-family: var(--title);
	font-size: 22px;
	letter-spacing: .04em;
}

.copy small {
	color: var(--muted);
}

.copy:hover {
	border-style: solid;
}

/* ─── Новости ─── */

.news article {
	background: var(--panel);
	border-left: 4px solid var(--gold);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 14px 20px;
	margin-bottom: 20px;
}

.news h3 {
	margin: 0 0 6px;
	color: var(--gold);
	font-size: 22px;
}

.news p, .news ul {
	margin: 6px 0;
}

/* ─── Правила, донат, низ ─── */

.rules {
	margin: 0;
	padding: 22px 22px 22px 48px;
}

.rules li {
	margin-bottom: 6px;
}

.rules li::marker {
	color: var(--gold);
	font-weight: 700;
}

.donate {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.donate p {
	margin: 0 0 16px;
}

footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 72px;
	padding: 28px 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

footer p {
	margin: 0;
}

/* ─── Узкие экраны ─── */

@media (max-width: 1100px) {
	.cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 860px) {
	.steps, .other, .gallery {
		grid-template-columns: 1fr;
	}

	.cards {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Шапка — полосой над картинкой, картинка целиком, текст под ней. */
	.top {
		position: relative;
		flex-wrap: wrap;
		padding: 10px 12px;
		background: var(--bg-2);
	}

	.brand {
		font-size: 18px;
		padding: 4px 12px;
	}

	.hero {
		min-height: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 0 16px 24px;
		background: none;
	}

	.hero::before {
		content: "";
		display: block;
		margin: 0 -16px;
		aspect-ratio: 2688 / 1520;
		background: linear-gradient(180deg, rgba(10, 7, 18, 0) 70%, var(--bg-2)), url("img/hero-small.jpg") center / cover no-repeat;
	}

	.hero-text {
		max-width: none;
		margin-top: 8px;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 16px;
	}

	main {
		padding: 0 16px;
	}

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

	nav a {
		padding: 7px 9px;
		font-size: 12px;
	}

	.ornament::before,
	.ornament::after {
		flex-basis: 40px;
	}
}
