:root {
	--rr-cyan: #00b8ff;
	--rr-cyan-dark: #00b8ff;
	--rr-gold: #f2c14e;
	--rr-radius: 10px;
}
html, body {
	margin: 0;
	height: 100dvh;
	-webkit-text-size-adjust: 100%;
}
body {
	background: #ffffff;
	display: flex;
	flex-direction: column;
}
/* =========================================================
   Шиго по бокам: адаптив, только где хватает места
   ========================================================= */

/* По умолчанию (мобилки и узкие экраны) — скрыты */

body::before, body::after {
	content: '';
	position: fixed;
	display: none;
	width: 300px;
	height: 300px;
	bottom: 100px;
	background-image: url('../../schebule/image/shigo.webp');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	z-index: 1;
	/* выше фона, ниже .container (z-index: 2) */
	pointer-events: none;
	/* не ловят клики */
	opacity: 0.55;          /* ← было 1, стало 0.55 */
}
body::before {
	left: 150px;
}
body::after {
	right: 150px;
	transform: scaleX(-1);
}
/* Широкий десктоп */

@media screen and (min-width: 1200px) {
	body::before, body::after {
		display: block;
	}
}
/* Очень широкий — шиго крупнее и дальше от центра */

@media screen and (min-width: 1600px) {
	body::before, body::after {
		width: 360px;
		height: 360px;
		bottom: 120px;
	}
	body::before {
		left: calc(50% - 720px);
	}
	body::after {
		right: calc(50% - 720px);
	}
}
/* ================= ФОН ================= */

.mainnew {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 68vh;
	min-height: 380px;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: 0 0 10px 10px;
}
.background {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.background-image {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 101%;
	height: 101%;
	transform: translate(-50%, -50%);
	object-fit: cover;
	object-position: top center;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 96%);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 96%);
	
	/* ← добавить эти строки */
	animation: bg-breathe 9s ease-in-out infinite;
	will-change: transform, opacity;	
}
.background::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 65%, #ffffff 100%);
	z-index: 1;
}
/* ================= КОНТЕНТ ================= */

.container {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
}
.server-text {
	position: relative;
	z-index: 10;
}
.main-flex {
	padding: 0 !important;
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 1fr;
	justify-items: center;
	align-items: center;
	width: 100%;
	min-width: 0;
}
.main-flex-item {
	width: 100%;
	max-width: 860px;
	min-width: 0;
	display: flex;
	justify-content: center;
	margin-bottom: 0;
}
.rr-page {
	width: 100%;
	max-width: 860px;
	flex: 0 0 auto;
	min-width: 0;
	margin: 18dvh auto 0;
	padding: 0 15px;
	box-sizing: border-box;
	text-align: center;
}
.rr-title {
	font-weight: 800;
	font-size: 76px;
	line-height: 1.05;
	text-transform: uppercase;
	color: rgb(30 30 30 / 65%);
	text-shadow: 0 0 10px rgb(255 255 255 / 40%), 0 0 22px rgb(255 255 255 / 16%), 0 0 40px rgb(255 255 255 / 16%);
	margin: 0 0 10px;
	font-family: 'headerst';
}
.rr-subtitle {
	font-weight: 700;
	font-size: 18px;
	line-height: 26px;
	text-transform: uppercase;
	color: rgba(50, 50, 50, 0.9);
	text-shadow: 0 0 8px #ffffffad, 0 0 16px #fff;
	margin: 0 0 24px;
}
/* ================= СТАТУС: РУНА ОЖИДАНИЯ ================= */

.rr-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	margin: 0 auto 30px;
	padding: 0;
}
.rr-rune {
	position: relative;
	width: 96px;
	height: 96px;
	flex: 0 0 auto;
}
.rr-rune__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(0, 184, 255, 0) 0deg, rgba(0, 184, 255, 0.15) 120deg, var(--rr-cyan) 300deg, rgba(0, 184, 255, 0) 360deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
	animation: rr-spin 2.4s linear infinite;
	filter: drop-shadow(0 0 6px rgba(0, 184, 255, 0.6));
}
.rr-rune__ring--inner {
	inset: 12px;
	animation-duration: 3.6s;
	animation-direction: reverse;
	opacity: 0.55;
}
.rr-rune__core {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, #eafaff, var(--rr-cyan) 70%);
	box-shadow: 0 0 12px var(--rr-cyan), 0 0 26px rgba(0, 184, 255, 0.7);
	animation: rr-core-pulse 1.8s ease-in-out infinite;
}
.rr-rune__halo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 96px;
	height: 96px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 1px solid rgba(0, 184, 255, 0.25);
	animation: rr-halo 2.4s ease-out infinite;
}
.rr-status__slot {
	min-width: 0;
	width: 100%;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.rr-status__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	max-height: 60px;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.25;
	color: var(--rr-cyan-dark);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	text-align: center;
	transition: opacity 0.3s ease;
	margin: 0;
	padding: 0;
	font-family: 'headerst';
}
.rr-status__text.is-fading {
	opacity: 0;
}
@keyframes rr-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes rr-core-pulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -50%) scale(0.78);
		opacity: 0.7;
	}
}
@keyframes rr-halo {
	0% {
		transform: translate(-50%, -50%) scale(0.55);
		opacity: 0;
	}
	20% {
		opacity: 0.7;
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0;
	}
}

@keyframes bg-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0.94;
  }
}

/* ================= КНОПКИ ================= */

.rr-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
	justify-content: center;
	gap: 14px;
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	align-items: stretch;
	box-sizing: border-box;
  margin-bottom: 20px; /* отступ снизу */
}
.rr-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	padding: 0 10px;
	box-sizing: border-box;
	min-width: 0;
	font-family: 'headerst', 'monserat', sans-serif;
	font-weight: 600;
	font-size: 23px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #00000085;
	background: rgba(255, 255, 255, 0.35);
	border: 2px solid #ffffff;
	border-radius: var(--rr-radius);
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.35);
	text-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff;
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}
.rr-btn:hover {
	color: #000000;
	background: rgba(255, 255, 255, 0.95);
	border-color: var(--rr-cyan);
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2), 0 0 18px rgba(0, 184, 255, 0.45);
	text-shadow: none;
}
.rr-btn:active {
	filter: brightness(0.97);
	transform: scale(0.98);
}
.rr-btn--tg {
	border-color: #2aabee;
}
.rr-btn--vk {
	border-color: #4c75a3;
}
.rr-btn--test {
	border-color: var(--rr-cyan);
}
/* «Обновить» — золотой акцент (в стиле остальных кнопок) */

.rr-btn--home {
	border-color: var(--rr-gold);
	color: #6b4e00a3;
	background: rgba(242, 193, 78, 0.14);
	text-shadow: 0 0 6px #ffffff, 0 0 12px #ffffff;
}
.rr-btn--home:hover {
	color: #000000;
	background: rgba(255, 255, 255, 0.95);
	border-color: var(--rr-gold);
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2), 0 0 18px rgba(242, 193, 78, 0.55);
	text-shadow: none;
}
/* ================= ЛОГОТИПЫ (низ) ================= */

.logo-flex.m-menu {
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}
.rr-bottom-logos {
	margin-top: auto;
	padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
	position: relative;
	z-index: 5;
}
/* ================= АДАПТИВ ================= */

@media screen and (max-width: 1440px) {
	.navbar-list-item-link {
		font-weight: 500;
		font-size: 22px;
		line-height: 24px;
		color: rgb(255, 255, 255);
	}
}
@media screen and (max-width: 992px) {
	.rr-title {
		font-size: 56px;
	}
	.rr-page {
		margin-top: 14dvh;
		padding: 0 12px;
	}
	/* планшет: 2 кнопки в ряд, третья — по центру снизу */
	.rr-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
		justify-items: stretch;
		box-sizing: border-box;
	}
	/* «Обновить» растягиваем на обе колонки */
	.rr-btn--home {
		grid-column: 1 / -1;
		justify-self: center;
		width: 100%;
		max-width: calc(50% - 7px);
	}
	.rr-btn {
		font-size: 22px;
		height: 52px;
	}
	/* Выравниваем верхнее мобильное меню */
	.header .m-menu {
		width: 100%;
	}
	.header .m-menu .navbar-list-item1 {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 40px;
		width: 100%;
	}
	.header .m-menu .navbar-list-item-link {
		font-size: 20px;
	}
}
@media screen and (max-width: 640px) {
	main {
		min-height: 0;
	}
	.mainnew {
		height: 42vh;
		min-height: 280px;
	}
	.rr-page {
		margin-top: 8dvh;
		padding: 0 12px;
	}
	.main-flex-item {
		max-width: 100%;
	}
	.rr-title {
		font-size: 9.0vw;
		margin-bottom: 8px;
		text-shadow: 0 0 10px #fff, 0 0 20px #fff;
		word-break: break-word;
	}
	.rr-subtitle {
		font-size: 14px;
		line-height: 20px;
		margin-bottom: 14px;
	}
	.rr-status {
		margin-bottom: 22px;
		gap: 12px;
	}
	.rr-rune {
		width: 84px;
		height: 84px;
	}
	.rr-rune__halo {
		width: 84px;
		height: 84px;
	}
	.rr-status__slot {
		height: 56px;
	}
	.rr-status__text {
		font-size: 14px;
		max-height: 56px;
	}
	/* телефон: столбик */
	.rr-actions {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.rr-btn {
		height: 52px;
		font-size: 20px;
		border-radius: 12px;
	}
	/* «Обновить» на телефоне — приоритетная кнопка, но первая */
	.rr-btn--home {
		order: -1;
		grid-column: auto;
		max-width: 100%;
		justify-self: stretch;
		width: 100%;
	}
	.rr-bottom-logos {
		padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
	}
}
@media screen and (max-width: 380px) {
	.rr-title {
		font-size: 8.5vw;
	}
	.rr-btn {
		height: 48px;
		font-size: 20px;
	}
	.rr-rune {
		width: 76px;
		height: 76px;
	}
	.rr-rune__halo {
		width: 76px;
		height: 76px;
	}
	.header .navbar-list-item-link {
		font-size: 20px !important;
	}
	.rr-page {
		margin-top: 6dvh;
		padding: 0 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rr-rune__ring, .rr-rune__core, .rr-rune__halo {
		animation-duration: 6s;
	}
	.rr-rune__halo {
		display: none;
	}
	.background-image {
	animation: none;    /* ← отключаем пульсацию фона, если пользователь просил меньше движения */
	}	
}
/* ==== Футер: контент сверху, футер внизу, пустоты между ними нет ==== */

main {
	flex: 1 0 auto;
	justify-content: flex-start;
	position: relative;    /* ← картинка под футером */
}
.container {
	flex: 0 0 auto;
}
footer {
	flex: 0 0 auto;
	margin-top: 0;
}
.rr-bottom-logos {
	margin-top: 20px;
	padding-bottom: 16px;
}
.footer-aion {
	margin-top: 0;
}