@font-face {
    font-family: 'ELIZAZN_O';
    src: url('../fonts/ELIZAZN_O.otf');
	font-family: 'ELIZ2AZPSUpdated';
    src: url('../fonts/ELIZ2AZPSUpdated.otf');
}

body {
    background-color: black;
    color: silver;

}

a {
    text-decoration: none;
    color: silver;
}


.archive-content-link a,
.base-content-link a,
.archive-black-content-link a,
.black-content-link a {
    color: gray;
}

.archive-content-link a:hover,
.archive-content-link a:active,
.base-content-link a:hover,
.base-content-link a:active {
    color: black;
}

.archive-black-content-link a:hover,
.archive-black-content-link a:active,
.black-content-link a:hover,
.black-content-link a:active {
    color: white;
}

.a_decor a:hover,
.a_decor a:active {
    color: silver;
    text-decoration: underline;
    /* Смещаем подчёркивание вниз */
    text-underline-offset: 10px;
}

.main-menu-section {
    display: inline-block;
    position: relative;
}

.main-menu-section:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    border-bottom: 1px solid silver;
    -webkit-transition: width .25s ease-out;
    -o-transition: width ease-out .25s;
    -moz-transition: width ease-out .25s;
    transition: width .25s ease-out;
    -webkit-transition-delay: 50ms;
    -moz-transition-delay: 50ms;
    -o-transition-delay: 50ms;
    transition-delay: 50ms
}

.main-menu-section:hover:after {
    width: 100%
}

img {
    max-width: 100%;
}

div#wrapper {
    width: 100%;
    max-width: 1600px;
    position: relative;
    background-color: black;
    margin: 0 auto;
    padding: 1px 0;
    -moz-box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.5);
    -webkit-box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.5);
}

.font_family_home_arial {
    font-family: Arial;
    font-size: 0.8rem;
}

div.menu_main > ul,
div.tech_menu > ul,
div.main_menu_footer > ul {
    list-style-type:  none;
}

div.tech_menu a {
    font-size: 0.7rem;
}

/* ---страница поста--- */

div.full_black_content {
    padding: 4% 4% 0 4%;
    background-color: black;
    color: #f2f0f1;
}

div.full_content {
    padding: 4% 4% 0 4%;
    background-color: #f2f0f1;
    color: black;
}

div.content_margin,
.articles-text {
    margin: 3% auto;
}

/* --- */

div.copyright span {
    border-radius: 30%;
    border: 1px solid;
}



/* модальное меню */
.header_mobile_menu {
    position: sticky;
    top: 0;z-index: 50;
    background: black; 
    max-width: 100%;
}

button.modal_button_start {
    width: 45px;
    height: 45px;
    padding: 13px 13px 0;
    color: #fff;
}

button.modal_button_start span {
    display: block;
    background: #fff;
    height: 3px;
    margin-top: 5px;
    width: 18px;
    position: relative;
    top: -9px;
    left: 0;
}

.modal-menu {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh; /* Full height */
    opacity: 0;
    transform: translateY(-100%);
    overflow: auto; /* Enable scroll if needed */
    background-color:  #fefefe;    
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.modal-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    
}

/* Modal Content */
.modal-menu-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;

}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Архивные и основные материалы */

.archive_content h1,
.archive_related_content h3,
.archive_related_content h5,
.black_content h1,
.base_content h1,
.base_related_content h3,
.base_related_content h5 {
    font-family: 'ELIZ2AZPSUpdated';
}

.archive_content h1,
.title_post_archive h1,
.title_post h1 {
    font-size: 1.25rem;
}

.title_post_archive h3,
.title_post h3,
.review_intro_text h3 {
    font-size: 1rem;
}

.archive_content .articles-text img {
    width: 100%;
}

.archive_black_content .articles-title h3,
.archive_interview_content .articles-text h3,
.archive_article_content .articles-text h3,
.archive_review_content .articles-text h3 {
    font-size: 1rem;
    font-style: italic;
    font-weight: normal;
    line-height: 1.5rem !important;
}

.archive_interview_content .articles-text h3.bold,
.archive_article_content .articles-text h3.bold,
.archive_review_content .review_intro_text h3.bold {
    font-weight: bold;
}

.archive_review_content .review_intro_text h3.bold {
    text-align: center;
    padding-bottom: 2%;
}

p.imageNode span,
.photo_extra_post span,
.base_content figcaption ,
.archive_content figcaption,
.archive_review_content figcaption {
    color: gray;
    font-size: 12px;
}


/* ---Пагинация--- */

.list-pages {
	text-align: center;
	margin: 0 0 20px 0;
}
.list-pages ul {
	margin: 20px 0 0 0;
	padding: 0;
	list-style: none;
}
.list-pages ul li {
	display: inline-block;
	margin: 0 20px 0 0;
}
.list-pages a {
	color: silver;
	font-size: 15px;
	text-decoration: none;
}
.list-pages .page-num, .page-num-selected {
	display: inline-block;
	width: 40px;
	height: 40px;
	padding: 7px 0 0 0;
	border: 2px solid silver;
	border-radius: 50%;
}
.list-pages .page-num:hover {
	background-color: grey; 
}
.list-pages .page-num-selected {
	border: none;
	color: silver;
	font-size: 12px;
}
.list-pages .page-num-selected:hover {
	box-shadow: none; 
    background-color: transparent;
}


/* ---Трансформация разделов и рубрик--- */

@media (min-width: 1200px) {
    .corner-box-1 {
        /* display: inline-block; */
        width: 32%;
        position: relative;
        border: 1px solid black;
        transition: all .3s ease;
        /* margin: 10px; */
    }

    .corner-box-1:hover {
        border: 1px solid silver;
    }
    .corner-box-1:before, 
    .corner-box-1:after {
        content: "";
        z-index: 1;
        display: block;
        position: absolute;
        background: black;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transform-origin: 50% 50%;
    }
    .corner-box-1:before {
        width: calc(100% + 4px);
        height: 100%;
        transition: height 0.6s;
    }
    .corner-box-1:after {
        height: calc(100% + 4px);
        width: 100%;
        transition: width 0.6s;
    }
    .corner-box-1:hover:before, 
    .corner-box-1:focus:before {
        height: 15%;
    }
    .corner-box-1:hover:after, 
    .corner-box-1:focus:after {
        width: 15%;
    }
    .corner-textbox-1 {
        /* padding: 30px; */
        z-index: 2;
        position: relative;
        text-align: center;
        /* background-color: black; */
    }
}


@media (max-width: 1199px) {
    .photo-container-dimming {
    position: relative;
    display: inline-block;
    overflow: hidden;
    z-index: 0;
    }

    .photo-container-dimming img {
    display: block;
    width: auto; /* Можно задать нужный размер */
    height: auto;
    transition: filter 0.3s ease;
    }

    /* Псевдоэлемент для затемнения */
    .photo-container-dimming::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    pointer-events: none; /* чтобы не мешать наведению */
    background: radial-gradient(circle, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    }

    /* При наведении показываем затемнение */
    .photo-container-dimming:hover::before,
    /* .photo-container-dimming.active::before, */
    .photo-container-dimming:focus::before {
    opacity: 1;
    z-index: 1;
    }
}

/*** Поисковое окно ***/
.cntr {
  display: table;
  width: 100%;
  height: 100%;
}
.cntr .cntr-innr {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}
/*** STYLES ***/
#mobileSearch {
  height: 75px;
}

.search,
.search-mobile {
  display: inline-block;
  position: relative;
  height: 25px;
  box-sizing: border-box;
  border-radius: 25px;
  transition: all 800ms ease;
  cursor: text;
}
.search {
  width: 250px;
  border: 1px solid #959595;
}
.search-mobile {
  width: 25px;
  border: 1px solid #FFFFFF;
}
.search:after,
.search-mobile:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 8px;
  right: -1px;
  top: 19px;
  background: #FFFFFF;
  border-radius: 3px;
  transform: rotate(-45deg);
  transition: all 800ms ease;
}
.search-mobile.active {
  width: 300px;
  transition: all 1500ms ease;
}
.search.active:after,
.search:hover:after,
.search-mobile.active:after,
.search-mobile:hover:after {
  height: 0px;
}
.search input,
.search-mobile input {
  width: 100%;
  border: none;
  box-sizing: border-box;
  font-family: Helvetica;
  font-size: 15px;
  color: inherit;
  background: transparent;
  outline-width: 0px;
  outline: none;
}

#mobileLogo,
#mobileMenu {
    opacity: 1;
    max-height: 200px;
    transition: opacity 0.5s ease, max-height 0.5s;
}

#mobileLogo.active,
#mobileMenu.active {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.5s ease, max-height 0.5s;
}



/* ===================================== */
#container {
  display: flex;
  overflow: hidden;
}

/* Блоки */
.block {
  flex: 1;
  min-width: 0; /* для корректировки flex при изменениях */
  /* padding: 0 20px; */
  background-color: black;
  /* border: 1px solid #333; */
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: all 1.5s ease; /* плавность для всех изменений */
}

#block1 {
    flex: 8 75%;
}

#block2,
#block3 {
    flex: 1 12%;
}

/* Класс для расширения среднего блока */
#block2.expand {
  flex-grow: 8; /* увеличивает ширину в flex */
}

#block1.hidden,
#block3.hidden {
  opacity: 0;
  pointer-events: none; /* чтобы клики не мешали */
  flex-basis: 0; /* для сокращения ширины */
  flex-grow: 1;
}

#resetBtn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #40bfa5;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}


/*** Страница результатов поиска ***/
div.search_page {
    padding: 10px 0 0 0;
    background: black;
}

div.search_page form {
  position: relative;
  width: 300px;
  margin: 0 auto;
}

.search_page input {
  width: 100%;
  height: 42px;
  padding-left: 10px;
  border: 1px solid grey;
  border-radius: 5px;
  outline: none;
  background: black;
  color: grey;
}
.search_page button {
  position: absolute; 
  top: 0;
  right: 0px;
  width: 42px;
  height: 42px;
  border: 1px solid grey;
  background: black;
  border-radius: 5px;
  cursor: pointer;
}
.search_page button:before {
  content: "\f002";
  font-family: FontAwesome;
  font-size: 16px;
  color: grey;
}


/* Баннер Telegram */

.bannerTG,
.bannerTG_main_page {
    position: relative;
    width: 100%;
}

.bannerTG {
    max-width: 300px;
    margin: 10px auto;
}

.bannerTG_main_page {
    max-width: 600px;
    margin: 15px auto;
}

.bannerTG img {
    width: 100%;
    display: block;
    height: auto;
}

.banner-textTG-overlay,
.banner-textTG-overlay_main_page {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'ELIZ2AZPSUpdated';
    font-size: 1em;
    padding: 10px;
    text-align: center;
    opacity: 0;
    z-index: 10;
    transition: opacity 5s, transform 5s;
}

.banner-textTG-overlay {
    width: 100%;
}

.bannerTG-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0); /* изначально прозрачный */
    transition: background-color 5s;
    z-index: 1; /* чтобы закрывать изображение */
}

.darken {
  background-color: rgba(0, 0, 0, 0.5); /* затемнение */
}

  /* Когда активен класс, делаем текст видимым с эффектом появления */
.visible {
opacity: 1;
transform: translate(-50%, -50%) translateY(0);
}


/*** Размещение видео-баннера ***/

.video-banner-container {
  position: relative;
  display: inline-block; /* или block, в зависимости от ситуации */
}

.video-banner-container video {
  width: 100%; /* или заданная ширина */
  height: auto;
}

.video-banner-overlay-text,
.video-banner-overlay-text-mobile {
  position: absolute;
  width: 100%;
  top: 90%; /* по вертикали посередине */
  left: 50%; /* по горизонтали посередине */
  transform: translate(-50%, -50%); /* центрировать по обеим осям */
  color: white; /* цвет текста */
  font-family: 'ELIZ2AZPSUpdated';
  background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный фон для читаемости */
  padding: 10px;
}

.video-banner-overlay-text {
  font-size: 1.5em;
}

.video-banner-overlay-text-mobile {
  font-size: 1.2em;
}


/* Модальное окно для полного размера изображений в карусели */
/* Модальное окно, покрывающее весь экран */
.fullsize-modal {
  display: none; /* по умолчанию скрыто */
  position: fixed; /* фиксированное позиционирование для покрытия всего экрана */
  z-index: 1050; /* достаточно высокий z-index, чтобы быть поверх карусели */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* скрыть все лишнее */
  background-color: rgba(0, 0, 0, 0.8); /* темный фон */
  padding: 0;
  margin: 0;
}

/* Изображение внутри модального окна */
.fullsize-modal-content {
  /* Центрируем изображение */
  display: block;
  max-width: 100%; /* не больше ширины окна */
  max-height: 100%; /* не больше высоты окна */
  margin: auto;
  position: absolute; /* позиционирование для центрирования */
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  object-fit: contain; /* изображение сохраняет пропорции, масштабируется при необходимости */
}

/* Кнопка закрытия */
.fullsize-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1060; /* выше, чем модальное окно */
  background: transparent;
  border: none;
}