/**
 * Custom CSS settings from the developers of website alliancewoc.ru
 * 
 * Copyright (c) 2025 Wind of Change (alliancewoc.ru)
 */

body {
  font-family: 'Lora', serif; /* Lora - основной шрифт для всего текста */
  font-size: 1rem;
  line-height: 1.6; /* Увеличенный межстрочный интервал для удобства чтения */
  color: #333;
  background:rgba(241, 240, 236, 0.94771); /* "Облачный танцор" (Cloud Dancer 11-4201) */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.3;
  color: #BDE5F8;
  margin-bottom: 0.75em;
  text-rendering: optimizeLegibility;
}

/* Индивидуальные стили для каждого уровня */
h1 {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 1.2px;
  margin-bottom: 0.5em;
  position: relative;
  text-shadow: 5px 0px 5px #000;
}

h1::before,
h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 330px;
  height: 3px;
}

h1::before {
	left: 0;
	background: linear-gradient(90deg, #49494b, transparent);
}

h1::after {
	right: 0;
	background: linear-gradient(270deg, #49494b, transparent);
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-top: 1.5em;
  padding-left: 15px;
  text-shadow: 2px 0px 2px #49494b;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #34495e;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

h5 {
  font-size: 1.3rem;
  font-weight: 500;
  font-style: italic;
}

h6 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #7f8c8d;
}

/* Основной текст */
p {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  color: #444;
}

.text-align-center {
	text-align: center;
}

.text-align-right {
	text-align: right;
}

.italic {
	font-style: italic;
}

/* Выделенный текст */
strong, b {
  font-weight: 700;
  color: #2c3e50;
}

em, i {
  font-style: italic;
  color: #555;
}

/* Цитаты */
blockquote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  border-left: 4px solid #c9a227;
  padding: 1em 2em;
  margin: 2em 0;
  background: #f8f9fa;
  position: relative;
}

blockquote::before {
  content: '"';
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  color: #c9a227;
  position: absolute;
  left: 10px;
  top: -10px;
  opacity: 0.3;
}

.color-red {
	color: #e65742;
}

.color-orange {
	color: #ff9300;
}

.color-green {
	color: #2bf128;
}

.color-woc {
	color: #8ecfee;
}

/* Списки */
ul, ol {
  font-family: 'Lora', serif;
}

ul.marked-list {
	margin: 0;
	padding: 0
}

ul.marked-list li {
	position: relative;
	margin-bottom: 0.5em;
	padding-left: 1rem;
	line-height: 150%;
	list-style: none;
}

ul.marked-list li:last-child {
	margin-bottom: 0;
}

ul.marked-list li::before {
	content: " ";
	background: url(../images/icons/check-mark.svg) no-repeat;
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	background-size: 100%;
	margin-top: 5px;
	position: absolute;
	left: 0;
}

.major {
	color: #49494b;
}

/* Класс для подзаголовков */
.subtitle {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #7f8c8d;
  margin-top: -1em;
  margin-bottom: 2em;
}

/* Заголовки карточек */
.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

/* Текст в карточках */
.card-text {
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Навигационное меню */
.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  font-family: 'Lora', serif;
  font-weight: 500;
}

/* Кнопки */
.btn {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.button {
	border-radius: 0;
	height: 2.5em;
	line-height: 2.5em;
}

.button:hover {
	box-shadow: inset 0 0 0 1px #000;
}

.button.wide {
	min-width: 11em;
}

.btn-secondary {
  font-family: 'Lora', serif;
  text-transform: none;
  letter-spacing: normal;
}

.banner.style5 {
	padding: 0rem 7rem 0rem 7rem;
}

.banner.style5 .content {
	margin-bottom: 7rem;
}

.banner.style5 .image {
	opacity: 0.9;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c9a227 0%, #e6c84d 50%, #f7e8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

p.major {
	padding: 90px 0 0 0;
	font-size: 1.25rem;
}

.spotlight.style1 {
	height: 33.33vh;
}

.spotlight.style1 .content {
	padding: 0rem 2rem 0rem 2rem;
}

.spotlight.style1 .content h2 {
	margin: 15px;
	padding: 0 0 0 15px;
	font-size: 1.4rem;
}

.spotlight.style1 .content p {
	font-size: 0.7rem;
}

a:hover {
	color: #8ecfee;
}

/*.start-button {
	opacity: 1;
	animation: fullGemShine 3s ease-in-out infinite;
	background-color: inherit;
	background-color: rgb(142, 207, 238, 0.5);
	transition: background-color 0.5s ease;
}*/

/*.start-button {
	box-shadow: none !important;
	background-color: rgba(142, 207, 238, 0);
	color: rgba(0, 0, 0, 1);
	animation: gentleGlow 4s ease-in-out infinite;
	transition: all 1s ease;
}

.start-button:hover {
	color: rgba(0, 0, 0, 0.5) !important;
}

@keyframes gentleGlow {
	0%, 100% {
		background-color: rgba(142, 207, 238, 0);
	}
	50% {
		background-color: rgba(142, 207, 238, 0.4);
	}
}*/

.start-button {
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: space-around;
	flex-direction: column;
	margin: 0 auto;
	padding: 0;
	text-decoration: none;
	width: 7em;
	font-family: 'Lora', serif;
	text-transform: uppercase;
	letter-spacing: normal;
	border-radius: 0;
	height: 2.5em;
	line-height: 2.5em;
	box-shadow: none;
	text-align: center;
	color: #000 !important;
	font-size: 0.9rem;
	transition: color 0.5s linear;
} 

.start-button:hover {
	background: none;
	box-shadow: none;
	color: #353535 !important;
}

.start-button::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 7px;
	background: #BFE2FF;
	width: 4em;
	height: 2px;
	transition: width 0.5s linear;
}

.start-button:hover::after {
	width: 100%;
}

/* Info cards blocks */

.info-card-block h2 {
	margin: 0;
	padding: 1.5rem 0 0 0;
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: 0.8px;
}

.info-card-block .info-card-block__subtitle {
	margin: 0.5rem 0 0 0;
	font-size: 0.8rem;
	font-style: italic;
	color: rgba(0, 0, 0, 0.75);
}

.info-card-block .items {
	-moz-justify-content: space-between;
	-webkit-justify-content: space-between;
	-ms-justify-content:space-between;
	justify-content: space-between;
}

/* Стили для карточек с мерцающей рамкой */
.info-card-block .items.style1.medium .info-card-block__item {
	position: relative;
	margin: 15px;
	padding: 0.5rem 1.7rem;
	transition: all 0.5s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 20%;
	border: none;
	border-radius: 0;
}

.info-card-block .items.style1.medium.three-in-row .info-card-block__item {
	margin: 15px 0;
	width: 32%;
}

.info-card-block .icon.major:before {
	font-size: 1.0rem;
	width: 2.0em;
	height: 2.0em;
	box-shadow: none;
}

.info-card-block a.info-card-block__item {
	text-decoration: none;
}

.info-card-block .items.style1.medium .info-card-block__item h3 {
	font-size: 1.0rem;
}

.info-card-block .items.style1.medium .info-card-block__item p {
	font-size: 0.6rem;
}

/* Градиентная рамка при наведении */
.info-card-block .items .info-card-block__item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Анимация мерцания при наведении */
.info-card-block .items .info-card-block__item:hover::before {
    opacity: 1;
    animation: fullGemShine 3s ease-in-out infinite;
}

/* Ключевые кадры анимации */
@keyframes fullGemShine {
    0%, 100% {
        /*background-position: 0% 50%;*/
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 15px rgba(189, 229, 248, 0.8);
    }
    50% {
        /*background-position: 100% 50%;*/
        filter: brightness(1.3) hue-rotate(10deg);
        box-shadow: 0 0 30px rgba(189, 229, 248, 1);
    }
}

@keyframes fullGemShineRed {
    0%, 100% {
        /*background-position: 0% 50%;*/
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 15px rgba(230, 87, 66, 0.8);
    }
    50% {
        /*background-position: 100% 50%;*/
        filter: brightness(1.3) hue-rotate(10deg);
        box-shadow: 0 0 30px rgba(230, 87, 66, 1);
    }
}

/* Контент карточки поверх рамки */
.info-card-block .items .info-card-block__item .inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Стили для иконок внутри карточек */
.info-card-block .items .info-card-block__item .icon.style2 {
    margin-bottom: 1.5rem;
}

/* Улучшение hover-эффекта для всей карточки */
.info-card-block .items .info-card-block__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .info-card-block .items .info-card-block__item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .info-card-block .items .info-card-block__item:hover {
        transform: translateY(-3px);
    }
}

/* Дополнительные стили для лучшего визуального восприятия */
.info-card-block .items .info-card-block__item h3 {
    margin-bottom: 1rem;
    color: #BDE5F8;
    transition: color 1.25s ease;
	 /*transition: text-shadow 0.3s ease;*/
}

.info-card-block .items .info-card-block__item:hover h3 {
    color: #8ecfee;
	 /*text-shadow: 1px 0px 2px #49494b;*/
}

.info-card-block .items .info-card-block__item p {
    color: #7f8c8d;
    line-height: 1.6;
	 transition: color 1.25s ease;
}

.info-card-block .items .info-card-block__item:hover p {
	color: #2c3e50;
}

/* Гарантируем, что z-index корректно работает */
.info-card-block .items {
    position: relative;
    z-index: 1;
}

/* Плавное появление карточек (если нужно) */
.info-card-block .items .info-card-block__item.onscroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-card-block .items .info-card-block__item.onscroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшенные стили для иконок с мерцанием */
/* Мерцание только цвета иконок */
.info-card-block .items .info-card-block__item .icon.style2:before,
.info-card-block .items .info-card-block__item .fas-icon:before {
    transition: color 0.5s ease;
}

.info-card-block .items .info-card-block__item:hover .icon.style2:before,
.info-card-block .items .info-card-block__item:hover .fas-icon:before {
    animation: iconColorFlow 5s ease-in-out infinite;
}

@keyframes iconColorShine {
    0%, 100% {
        color: #BDE5F8;
    }
    25% {
        color: #A0D4F0;
    }
    50% {
        color: #E8F6FF;
    }
    75% {
        color: #94D1F5;
    }
}

@keyframes iconColorFlow {
    0%, 100% {
        color: #BDE5F8;
    }
    33% {
        color: #C9E9F9;
    }
    66% {
        color: #E8F6FF;
    }
}

@keyframes iconColorFlowRed {
    0%, 100% {
        color: #e65742;
    }
    33% {
        color: #b3594b;
    }
    66% {
        color: #ffd1ca;
    }
}

@keyframes iconGradientShine {
    0% {
        color: #BDE5F8;
    }
    25% {
        color: #A8DCF6;
    }
    50% {
        color: #E8F6FF;
    }
    75% {
        color: #B4E1F7;
    }
    100% {
        color: #BDE5F8;
    }
}

@keyframes iconGemSparkle {
    0% {
        color: #BDE5F8;
    }
    15% {
        color: #E8F6FF;
    }
    30% {
        color: #BDE5F8;
    }
    45% {
        color: #C9E9F9;
    }
    60% {
        color: #E8F6FF;
    }
    75% {
        color: #B4E1F7;
    }
    90% {
        color: #E8F6FF;
    }
    100% {
        color: #BDE5F8;
    }
}

/* /Info cards blocks */

/* Welcome */

#wrapper .welcome .inner {
	padding: 1em 3.5em;
}

.welcome h2 {
	margin: 0.4em 0 0.4rem 0;
	padding: 0;
	font-size: 1.4rem;
}

.welcome h2 b {
	color: #BDE5F8;
}

.welcome p {
	font-size: 0.7rem;
}

.welcome__motto {
	font-weight: bold;
	font-style: italic;
	color: #2c3e50;
}

/* /Welcome */

/* Usefulness block */

.usefulness-block {
	margin: 2.5rem 0;
}

#wrapper>.usefulness-block>.inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

#wrapper>.usefulness-block>.inner .items {
	margin: 1rem 0 0 0;
}

.usefulness-block h2 {
	margin: 0;
	padding: 1.5rem 0 0 0;
	font-size: 1.4rem;
}

/* /Usefulness block */

/* Our goals */

.our-goals {
	margin: 0 0 2.5rem 0;
}

.our-goals.info-card-block .items.style1.medium .info-card-block__item {
	margin: 5px;
	padding: 0.5rem 1.0rem;
	width: 19%;
}

#wrapper>.our-goals>.inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

#wrapper>.our-goals>.inner .items {
	margin: 1rem 0 0 0;
}

.our-goals h2 {
	margin: 0;
	padding: 1.5rem 0 0 0;
	font-size: 1.4rem;
}

.our-goals .fas-icon:before {
	box-shadow: none;
}

/* /Our goals */

/* Criteria for candidates */

.criteria-for-candidates {
	margin: 0 0 2.5rem 0;
}

.criteria-for-candidates.info-card-block .items.style1.medium .info-card-block__item {
	margin: 5px;
	padding: 0.5rem 1.0rem;
	width: 19%;
}

#wrapper>.criteria-for-candidates>.inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

#wrapper>.criteria-for-candidates>.inner .items {
	margin: 1rem 0 0 0;
}

/* /Criteria for candidates */

/* History. Achievements. Statistics */

.history-achievements-statistics {
	margin: 0 0 2.5rem 0;
}

.history-achievements-statistics h2 {
	margin: 0.4em 0 0.4rem 0;
	padding: 1.5rem 0 0 0;
	font-size: 1.4rem;
}

.history-achievements-statistics .history-achievements-statistics__subtitle {
	margin: 0.5rem 0 0 0;
	font-size: 0.8rem;
	font-style: italic;
	color: rgba(0, 0, 0, 0.75);
}

#wrapper>.history-achievements-statistics>.inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

.history-achievements-statistics-tabs-block {
	margin: 1rem 0 0 0;
}

.history-achievements-statistics-tabs-block .tabs-block__item {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.history-achievements-statistics-tabs-block .tabs-block__item.active {
	display: flex;
}

.history-achievements-statistics-tabs-block .tabs-block__item a {
	display: block;
}

.history-achievements-statistics .history-popup-link {
	color: #7f8c8d;
}

.history-achievements-statistics .history-popup-link:hover {
	color: #8ecfee;
}

.popup-history {
	max-width: 1050px;
}

/* /History. Achievements. Statistics */

/* Support */

#wrapper>.support-block>.inner {
    padding: 0rem 3.5rem 1rem 3.5rem;
}

.support-block h2 {
    margin: 0;
    padding: 1.5rem 0 0 0;
    font-size: 1.4rem;
	 text-align: center;
}

.support-block .support-block__subtitle {
	margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(0, 0, 0, 0.75);
	 text-align: center;
}

.support-block ul {
	margin: 1.2rem 0 0 0;
	font-size: 0.7rem;
}

.support-block ul.marked-list li::before {
margin-top: 2px;
}

.support-block ul>li,
.support-block ul>li a,
.support-block ul>li b {
	color: rgba(0, 0, 0, 0.75);
}

.support-block a:hover {
	color: #8ecfee;
}

/* /Support */

/* Exclusion conditions block */

.exclusion-conditions-block {
	margin: 2.5rem 0;
}

#wrapper>.exclusion-conditions-block>.inner {
    padding: 0rem 3.5rem 0rem 3.5rem;
}

.exclusion-conditions-block h2 {
	color: #e65742;
}

#wrapper>.exclusion-conditions-block>.inner .items {
	margin: 1rem 0 0 0;
}

.exclusion-conditions-block.info-card-block .items.style1.medium .info-card-block__item {
	margin: 5px;
	padding: 0.5rem 1.0rem;
	width: 19%;
}

.exclusion-conditions-block .info-card-block__item icon {
	color: #e65742;
}

.exclusion-conditions-block .items .info-card-block__item:hover .icon.style2:before {
    animation: iconColorFlowRed 5s ease-in-out infinite;
}

.exclusion-conditions-block .items.style1.medium .info-card-block__item h3 {
	color: #e65742;
}

.exclusion-conditions-block .items .info-card-block__item:hover::before {
    opacity: 1;
    animation: fullGemShineRed 3s ease-in-out infinite;
}

/* /Exclusion conditions block */

/* Feedback */

.feedback-block .inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

#wrapper>.feedback-block>.inner {
	padding: 0rem 3.5rem 0rem 3.5rem;
}

.feedback-block h2 {
	margin: 0 0 20px 0;
	padding: 1.5rem 0 0 0;
	font-size: 1.4rem;
}

#feedback-form .fields {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 0.25rem;
	margin: 0;
	width: 100%;
}

#feedback-form .field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0 0 0 0;
}

#feedback-form label {
	margin: 0 0 0.5rem 0;
	color: #7f8c8d;
}

#feedback-form > .fields > .field.half {
	width: calc(48% - 0.75rem);
}

#feedback-form input:not(.privacy-agreement-checkbox) {
	height: 1.75rem;
	color: #7f8c8d;
}

#feedback-form .textarea-wrap {
	margin: 20px 0 0 0;
}

#feedback-form textarea {
	padding: 0.25rem 0.5rem;
	height: 6.5rem;
	color: #7f8c8d;
}

#feedback-form input:focus,
#feedback-form textarea:focus {
	border-color: #8ecfee;
	box-shadow: 0 0 0 1px #8ecfee;
}

form .field.privacy-agreement-wrap {
	display: flex;
	flex-direction: row !important;
	justify-content: center;
	align-items: center;
	margin: 20px 0 0 0;
	width: 100%;
	line-height: normal;
	
}

.privacy-agreement-wrap input[type="checkbox"] {
	display: none;
	padding: 0;
	width: 0;
}

.privacy-agreement-wrap label[for="privacy-agreement-checkbox"] {
	display: flex;
	align-items: center;
	padding: 0;
	font-size: 0.7rem;
}

.privacy-agreement-wrap input[type="checkbox"] + label::before {
	position: relative;
	margin: 0 10px 0 0;
	width: 0.8rem;
	height: 0.8rem;
	line-height: 0.8rem;
	font-size: 0.4rem;
}

.privacy-agreement-wrap input.error[type="checkbox"] + label,
.privacy-agreement-wrap input.error[type="checkbox"] + label a {
	color: #e65742 !important;
}

.privacy-agreement-wrap input.error[type="checkbox"] + label::before {
	border-color: rgba(230, 87, 66, 1);
}

.privacy-agreement-wrap a {
	color: #7f8c8d;
}

.privacy-agreement-wrap a:hover {
	color: #8ecfee;
}

#feedback-form .actions {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1rem 0 0 0;
}

#feedback-form .actions input[type="submit"] {
	display: flex;
	align-items: center;
	border-radius: 4px;
	line-height: 1.5;
	color: #7f8c8d !important;
}

#feedback-form .actions input[type="submit"]:hover {
	/*background-color: rgba(71, 211, 229, 0.2);*/
	box-shadow: inset 0 0 0 1px #8ecfee;
	color: #8ecfee !important;
}

#feedback-form input.error,
#feedback-form textarea.error {
	border-color: #e65742;
	box-shadow: 0 0 0 1px #e65742;
}

/* /Feedback */

/* FA icons */

.fas .label {
	display: none;
}

.fa-eercast:before {
    content: "\f2da";
}

.fa-map-o:before {
    content: "\f278";
}

.fa-handshake-angle:before {

}

/* /FA icons */

/* Footer */

footer .icons {
	margin: 0;
}

footer ul.icons li::before {
	display: none;
}

footer .icon.style2 {
	display: block;
}

footer .icon.style2:before {
	height: 1.75em;
	line-height: 1.75em;
	width: 1.75em;
}

footer .icon.style2:before,
footer .icon.style2:hover:before {
	box-shadow: none;
}

footer p {
	margin: 1rem 0 0 0;
	font-size: 0.7rem;
	line-height: 0.7;
}

footer .copyright .copyright__alliance-name {

}

/* /Footer */

/* Cookie alert */

#cookie-note {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 50%;
    max-width: 90%;
    transform: translateX(-50%);
    padding: 10px 12px;
    background-color: white;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);
    gap: 10px;
    z-index: 99999;
    align-items: center;
}

#cookie-note p {
    margin: 0;
    font-size: 0.5rem;
    text-align: left;
    color: #7f8c8d;
}

#cookie-note p a {
	color: #7f8c8d;
}

#cookie-note p a:hover {
	color: #8ecfee;
}

#cookie-note .cookie-accept {
	display: flex;
	align-items: center;
	padding: 10px;
	height: 1.4rem;
	border-radius: 4px;
	line-height: 1.5;
	color: #7f8c8d !important;
	font-size: 11px;
	min-width: 130px;
	text-overflow: initial;
	overflow: auto;
}

#cookie-note .cookie-accept:hover {
    box-shadow: inset 0 0 0 1px #8ecfee;
    color: #8ecfee !important;
}

/* /Cookie alert */

/* Popups */

.fancybox-slide > * {
    padding: 0;
    background: transparent;
}

.popup {
    width: 96vw;
}

.popup__in {
	padding: 25px;
	background: #fff;
	border-radius: var(--radius);
	position: relative;
}

.popup__in .scrolled-wrap {
	height: 500px;
}

.scroll {
	height: 100%;
	padding-right: 15px;
	overflow-y: scroll;
}

.popup__in h2 {
	margin: 0.5em 0 0.75em 0;
	font-size: 1.2rem;
	text-align: center;
	padding: 0;
}

.popup__in h6 {
	margin-top: 0.2em;
	font-size: 0.8rem;
	text-align: right;
	padding: 0;
	color: #2c3e50;
	font-style: italic;
	font-weight: bold;
}

.popup__in p {
	line-height: 150%;
	font-size: 16px;
}

.popup__in ul li {
	font-size: 16px;
	margin-bottom: 16px;
}

.popup__in ul li:last-child {
	margin-bottom: 0;
}

.popup__in ul li::before {
	width: 15px;
	height: 15px;
	min-width: 15px;
	min-height: 15px;
}

.popup__in .dedicated-block {
	margin: 20px 0 0 0;
	width: 100%;
	text-align: center;
	font-size: 16px;
	font-style: italic;
	background: #BDE5F8;
}

.popup-intensive-development,
.popup-dynamic-interaction,
.popup-economic-prosperity,
.popup-diplomacy,
.popup-peace,
.feedback-success,
.popup-year-end-results,
.popup-servers-merge {
	max-width: 850px;
}

.feedback-success .popup__in {
	text-align: center;
}

ul.diplomacy-list {
	margin-top: 25px;
}

button.fancybox-close-small:hover {
	box-shadow: none;
}

.privacy-agreement ol {
	margin: 0;
}

.privacy-agreement ol li {
	font-size: 16px;
}

/* /Popups */

/* Tabs */

.tabs-block__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.tabs-block__nav a {
	color: #7f8c8d;
	text-decoration: none;
}

.tabs-block__nav a.active,
.tabs-block__nav a:hover {
	color: #8ecfee;
}

.tabs-block__items {
	/*display: none;*/
	padding: 0.75rem 0 0 0;
	box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.075);
}

.tabs-block__items.active {
	display: block;
}

.tabs-block__item {
	display: none;
}

.tabs-block__item.active {
	display: block;
}

.tabs-block__item a,
.tabs-block__item a>b {
	color: #7f8c8d;
	font-size: 0.8rem;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.tabs-block__item a:hover,
.tabs-block__item a:hover>b {
	color: #8ecfee;
}

/* /Tabs */

/* Events */

.popup-event-ambush {
	max-width: 1200px;
}

.popup-event-ambush h2 {
	margin-bottom: 0.2em;
}

.popup-event-ambush__date {
	margin: 0 0 0.5em 0;
	text-align: center;
	color: #7f8c8d;
	font-size: 0.7rem;
}

.event-ambush__legend {
	padding: 0.8rem 0 0 0;
	box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.075);
	font-size: 16px;
	color: rgba(0, 0, 0, 0.75);
}

.event-ambush__legend .event-ambush__legend__banner {
	display: flex;
	align-items: center;
	justify-content: center;
}

.event-ambush__legend .event-ambush__legend__banner img {
	max-width: 100%;
	max-height: 150px;
}

.event-ambush__legend .event-ambush__legend__text-wrap {
	margin: 0.5rem 0;
	color: #444;
}

.event-ambush__legend .event-ambush__legend__text {
	text-align: center;
}

.event-ambush__legend__monster {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0.75rem 0;
	gap: 20px;
}

.event-ambush__legend__monster__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 10%;
}

.event-ambush__legend__monster__image a {
	display: flex;
	align-items: center;
}

.event-ambush__legend__monster__image img {
	max-width: 100%;
	max-height: 81px;
}

.event-ambush__legend__monster_descr {
	width: 90%;
}

.event-ambush__congratulations {
	display: none;
	margin: 0 0 1.5rem 0;
	padding: 0.8rem 0 0 0;
	text-align: center;
	font-size: 16px;
	box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.075);
}

.event-completed .event-ambush__congratulations {
	display: block;
}

.event-ambush__congratulations p {
	margin-bottom: 0.5em;
	color: #e65742;
	font-size: 0.7rem;
}

.event-ambush__congratulations b {
	color: #e65742;
}

.event-ambush-tabs-block {
	box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.075);
}

.popup-event-ambush .tabs-block__nav {
	width: 100%;
}

.popup-event-ambush .tabs-block__nav-item {
	width: 33.3333%;
	text-align: center;
}

.popup-event-ambush__date th {
	font-size: 0.7rem;
}

.popup-year-end-results h6 {
	margin: 0 0 0.5em 0;
}

.popup-year-end-results ul {
	margin: 0 0 0.5em 0;
}

.popup-top-banner-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 0.8rem 0;
}

.popup-top-banner-wrap img {
	max-width: 100%;
	max-height: 150px;
}

/* Контейнер для фиксации высоты */
.table-container {
	position: relative;
	min-height: 200px; /* Минимальная высота */
	overflow: hidden;
}
.table-container table {
	margin-bottom: 0;
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	table-layout: fixed; /* Фиксируем layout для стабильной высоты */
}

.table-container table th,
.table-container table td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: left;
	vertical-align: top; /* Выравнивание по верхнему краю */
}
/* Анимации */
.paginated-table tbody tr {
	opacity: 0;
	height: 0;
	overflow: hidden;
	display: none;
	transition: opacity 0.5s ease, height 0.5s ease;
}
.paginated-table tbody tr.visible {
	opacity: 1;
	height: auto;
}
/* Индикатор загрузки */
.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.event-ambush__table {
	font-size: 0.7rem;
	table-layout: fixed;
}

.event-ambush__table tr th {
	position: sticky;
	padding: 0 0 0.3rem 0;
	text-align: center;
	font-size: 0.7rem;
}

.event-ambush__table tr td {
	padding: 0rem;
	text-align: center;
}

.event-ambush__table tr.first {
	background: rgb(255, 215, 0, 0.5);
}

.event-ambush__table tr.second {
	background: rgb(192, 192, 192, 0.5);
}

.event-ambush__table tr.third {
	background: rgb(205, 127, 50, 0.5);
}

.event-ambush__table tr.woc {
	background: rgb(142, 207, 238, 0.5);;
}

.event-ambush-general-statistics-table td:first-child {
	text-align: left;
}

.event-ambush-general-statistics-table td:last-child {
	text-align: right;
}

/* /Events */

/* Pagination */

.page-nav-box {
	display: flex;
	justify-content: center;
	maergin: 20px 0 0 0;
}

.pagination {
	list-style: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
	flex-wrap: wrap;
}

.page-nav-box ul.pagination li {
	display: inline-block;
	margin: 0;
}

.pagination a {
	display: block;
	color: #333;
	text-decoration: none;
	min-width: 40px;
	text-align: center;
	font-size: 15px;
}

.pagination a:hover {
	color: #8ecfee;
}

.pagination li.active a {
	color: #8ecfee;
}

.pagination .ellipsis {
	padding: 8px 5px;
	color: #666;
	pointer-events: none;
}

.pagination li a.prev,
.pagination li a.next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 24px;
}

.pagination li a.prev::before,
.pagination li a.next::before {
	display: inline-block;
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}

/* /Pagination */