/*
Theme Name: Звёзды ПС — Форум-слёт
Theme URI: https://example.com/
Author: DIGATE
Description: Простая тема для сайта форума-слёта «Звёзды ПС». Главная: звезда-логотип по центру над заголовком, заголовок и подзаголовок по центру, крупные кнопки плагина «NLMK Masterclass Booking». Полностью адаптивна.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: zvezdy-ps-forum
*/

/* ——— Шрифт ——— */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/montserrat-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ——— Полосы прокрутки (лёгкие, неброские) ——— */

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--zps-navy-deep);
}

::-webkit-scrollbar-thumb {
	border: 3px solid var(--zps-navy-deep);
	border-radius: 999px;
	background: rgba(207, 230, 255, 0.32);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(207, 230, 255, 0.55);
}

::-webkit-scrollbar-corner {
	background: var(--zps-navy-deep);
}

@supports not selector(::-webkit-scrollbar) {
	html {
		scrollbar-width: thin;
		scrollbar-color: rgba(207, 230, 255, 0.4) var(--zps-navy-deep);
	}
}

/* ——— База ——— */

:root {
	--zps-navy-deep: #021447;
	--zps-navy: #031a5a;
	--zps-blue: #0b3fb8;
	--zps-cyan: #2aa7ff;
	--zps-ice: #cfe6ff;
	--zps-pad-x: clamp(20px, 5vw, 96px);
	--zps-max: 1680px;
	--zps-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--zps-navy);
}

body {
	margin: 0;
	background: var(--zps-navy);
	color: #fff;
	font-family: var(--zps-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--zps-cyan);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	border-radius: 8px;
	background: #fff;
	color: var(--zps-navy);
	font-weight: 700;
	text-decoration: none;
}

/* ——— Шапка: логотип слева, даты справа ——— */

.zps-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: clamp(14px, 2vw, 28px) var(--zps-pad-x);
}

.zps-front .zps-top {
	display: none;
}

/* Панель администратора WordPress (только для вошедших) */
.admin-bar.zps-front .zps-top {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.zps-front .zps-top {
		top: 46px;
	}
}

.admin-bar .zps-hero {
	min-height: calc(100vh - 32px);
	min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .zps-hero {
		min-height: calc(100vh - 46px);
		min-height: calc(100svh - 46px);
	}
}

.zps-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.zps-logo img {
	width: auto;
	height: clamp(48px, 5.4vw, 84px);
	filter: drop-shadow(0 6px 18px rgba(0, 12, 60, 0.45));
}

/* Звезда на главной: по центру над заголовком. */
.zps-logo--hero {
	margin: 0 auto clamp(14px, 2.4vw, 32px);
}

.zps-logo--hero img {
	height: clamp(60px, 6.4vw, 100px);
}

/* ——— Главная ——— */

.zps-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(40px, 8vh, 96px) var(--zps-pad-x);
	overflow: hidden;
	background: var(--zps-navy) url('assets/img/bg.webp') 50% 50% / cover no-repeat;
	text-align: center;
	isolation: isolate;
}

/* Лёгкое затемнение к центру, чтобы текст и кнопки читались на любом экране. */
.zps-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(2, 20, 71, 0.6) 0%, rgba(2, 20, 71, 0.2) 100%);
	pointer-events: none;
}

.zps-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: min(1100px, var(--zps-max));
	margin: 0 auto;
}

.zps-title {
	margin: 0;
	font-size: clamp(26px, 3.7vw, 58px);
	font-weight: 800;
	line-height: 1.08;
	text-transform: uppercase;
	text-wrap: balance;
	background: linear-gradient(180deg, #ffffff 15%, #9cc9ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #fff;
	/* запас сверху, чтобы точки над Ё не обрезались градиентной заливкой */
	padding: 0.16em 0.04em 0.04em;
	margin-top: -0.16em;
	margin-bottom: -0.04em;
	filter: drop-shadow(0 6px 22px rgba(2, 20, 71, 0.45));
}

.zps-subtitle {
	margin: clamp(10px, 1.6vw, 22px) 0 0;
	color: var(--zps-ice);
	font-size: clamp(15px, 1.8vw, 26px);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ——— Крупные кнопки ——— */

.zps-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 22px;
	width: 100%;
	margin-top: clamp(32px, 6vh, 64px);
}

.zps-hero .nlmk-mc-trigger {
	min-width: 340px;
	min-height: 80px;
	padding: 0 56px;
	border-radius: 20px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.zps-hero .nlmk-mc-trigger:not(.nlmk-mc-trigger--ghost) {
	background: linear-gradient(135deg, #ffffff 0%, #cfe6ff 100%);
	color: #05206e;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 14px 40px rgba(42, 167, 255, 0.35);
}

.zps-hero .nlmk-mc-trigger:not(.nlmk-mc-trigger--ghost):hover {
	background: linear-gradient(135deg, #ffffff 0%, #e4f1ff 100%);
	color: #05206e;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 18px 48px rgba(42, 167, 255, 0.5);
}

.zps-hero .nlmk-mc-trigger--ghost {
	background: rgba(2, 20, 71, 0.35);
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(207, 230, 255, 0.85);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.zps-hero .nlmk-mc-trigger--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff, 0 12px 32px rgba(42, 167, 255, 0.3);
}

.zps-hero .nlmk-mc-trigger:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.zps-admin-note {
	margin: 0;
	padding: 12px 18px;
	border: 1px dashed rgba(255, 255, 255, 0.6);
	border-radius: 12px;
	font-size: 14px;
	text-align: center;
}

/* ——— Планшет стоя и телефон ——— */

@media (max-width: 700px), (max-width: 960px) and (orientation: portrait) {
	.zps-hero {
		padding-top: 110px;
		background-position: 66% 50%;
	}

	.zps-logo--hero img {
		height: 64px;
	}

	.zps-title {
		font-size: clamp(26px, 8vw, 48px);
	}

	.zps-subtitle {
		font-size: 15px;
		letter-spacing: 0.06em;
	}
}

@media (max-width: 700px) {
	.zps-cta {
		flex-direction: column;
		gap: 14px;
		margin-top: 36px;
	}

	.zps-hero .nlmk-mc-trigger {
		width: min(100%, 400px);
		min-width: 0;
		min-height: 74px;
		font-size: 20px;
	}
}

/* Низкие экраны (телефон на боку) */
@media (max-height: 520px) and (min-width: 701px) {
	.zps-hero {
		padding-top: 84px;
		padding-bottom: 24px;
	}

	.zps-logo img {
		height: 44px;
	}

	.zps-hero .nlmk-mc-trigger {
		min-height: 62px;
		font-size: 18px;
	}

	.zps-cta {
		margin-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zps-hero * {
		animation: none !important;
		transition: none !important;
	}
}

/* ——— Остальные страницы ——— */

.zps-page {
	min-height: 70vh;
	padding: 24px var(--zps-pad-x) 72px;
	background: linear-gradient(180deg, var(--zps-navy) 0%, var(--zps-navy-deep) 100%);
}

.zps-page__card {
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(22px, 4vw, 48px);
	border-radius: 24px;
	background: #fff;
	color: #0b1b4a;
}

.zps-page__title {
	margin: 0 0 20px;
	color: #05206e;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
}

.zps-page__card a {
	color: #1259e0;
}

.zps-page__card img {
	border-radius: 12px;
}

.zps-footer {
	padding: 22px var(--zps-pad-x);
	background: var(--zps-navy-deep);
	color: rgba(207, 230, 255, 0.75);
	font-size: 13px;
	text-align: center;
}

.zps-front .zps-footer {
	display: none;
}
