@font-face {
font-family: "Sansation"; 
src: url("/fonts/Sansation/Sansation-Regular.ttf") format("truetype"); 
font-style: normal; 
font-weight: normal; 
font-display: fallback;
}  
@font-face {
font-family: "Sansation"; 
src: url("/fonts/Sansation/Sansation-Bold.ttf") format("truetype"); 
font-style: normal; 
font-weight: bold; 
font-display: fallback;
} 	
body{margin:0; padding:0; width:100%; height:auto; font-family: Sansation; line-height: 1.2; background:#fff; }
body img{max-width:100%;}
h1{color:#f5f5f5; font-size: 20px; margin:0; padding:0;}
.menu2{
margin: 0;
    padding: 20px 10px 0 10px;
    list-style: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
 }
.menu2 li{display:block; text-align: left; height:40px; line-height:40px; width:calc(100% / 3); background:transparent;}
.menu2 li a{color: #e5e5e5; width:100%; font-size:18px; background:none; border-radius:5px; display: block; height:40px; line-height: 40px;  text-decoration:none;}
.menu2 li a:hover{ background: #031626;}
.tabs-container {
background: white;
box-sizing: border-box;
}
.tabs-header {
display: flex;
flex-wrap: wrap;
width: 100%; 
height:40px; line-height:40px;
padding: 0;
box-sizing: border-box;
}
.tab-button {
position: relative;
padding: 0 10px;
height: 40px; line-height: normal;
font-weight: 500;
font-size: 12px;
color: #e5e5e5;
background: transparent;
border: none;
cursor: pointer;
transition: all 0.3s ease;
flex: 1;
width: calc(100% / 5);
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden; 
}
.tab-title-span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%; 
}
.tab-button:hover {
color: #3b82f6;
background-color: #02243f;
}
.tab-button.active {
color: #fff;
background:#02243f;
}
.tab-button.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;
background: #009ff0;
}
.tab-icon {
width: 24px;
height: 24px;
margin-bottom: 2px;
}
.tab-content {
padding: 20px 0;
margin:20px 0;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Loading spinner */
.loading {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid #e2e8f0;
border-top: 4px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
color: #ef4444;
text-align: center;
padding: 20px;
font-weight: 500;
}
.decorative-dots {
display: flex;
justify-content: center;
gap: 8px;
margin: 12px 0;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #cbd5e1; 
transition: all 0.3s ease;
cursor: pointer;
}
.dot.active {
background-color: #009ff0;
transform: scale(1.3);
box-shadow: 0 0 0 2px rgba(0, 159, 240, 0.2);
}


.btn2{
	width: 100%;
    height: 40px;
    line-height: 40px;
    background: #799bad;
    display: block;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    margin-bottom: 5px;
	text-decoration:none;
}
.btn1, .btn4{
	 width: 100%;
    height: 50px;
    line-height: 50px;
    background: #03a9f4;
    display: block;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    margin-bottom: 5px;
	 text-decoration:none;
	 border:none;
	 cursor: pointer;
	 font-size: 18px;
}
.appcode{min-height: 200px;}
/* === Модальное окно после действия (стиль как у навигации) === */

#afterblock{
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #222;
   
    box-shadow: 0 10px 50px rgba(0,0,0,0.7);
    width:600px;
    height: 100%;
    max-width: 100%;
    max-height:100vh;
    padding: 40px 10px 10px 10px; 
    box-sizing: border-box;  
    color: #f5f5f5;
    font-size: 15px;
    font-family: Sansation;  
    z-index: 100002;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;  
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
                align-items: center;

border:5px dashed orange;
}


/* Активное состояние */
#afterblock.flexdisplay{
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* === Внутренний белый блок — явное центрирование === */
#afterblock > div[style*="background:#fff"]{
    margin: 0 auto !important; /* Центрируем по горизонтали */
    width: 500px;
    max-width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative; /* Для абсолютного позиционирования кнопки закрытия */
}

/* Кастомный скроллбар */
#afterblock::-webkit-scrollbar { width: 10px; }
#afterblock::-webkit-scrollbar-track {
    background: #0a2a44;
    border-radius: 4px;
    margin: 4px 0;
}
#afterblock::-webkit-scrollbar-thumb {
    background: #13476f;
    border-radius: 4px;
    border: 2px solid #0a2a44;
    transition: background 0.2s ease;
}
#afterblock::-webkit-scrollbar-thumb:hover { background: #1a5a8c; cursor: grab; }
#afterblock::-webkit-scrollbar-thumb:active { background: #0d3a59; cursor: grabbing; }
#afterblock::-webkit-scrollbar-button { display: none; }
#afterblock { scrollbar-width: thin; scrollbar-color: #13476f #0a2a44; }
@media (max-width: 800px){
.ablock_qr{display:none;}

}
 .tips_btn{
    display: flex;
    margin-top: 15px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: stretch;
    justify-content: space-evenly;
    width: 400px;
    max-width: 95%;
    height: 50px;
    line-height: 50px;
    background:#ff5722;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
   
 
            }
     .tips_btn:hover{
    background:#ff5722;
    color:#fff;
    
    box-sizing: border-box;
     }    
    
 
.footer{padding:100px 10px;width:800px; max-width: 100%; height: auto;box-sizing: border-box;font-size:14px;}
.modaloverlay{background:#000; width:100%; height:100%; z-index:10000; opacity:0.8; position:fixed; left:0; top:0;}
.itemsbytag{margin:0; padding:0;}
.itemsbytag li{width: 49.5%; height:400px; border:1px solid #ccc; display:inline-block;}

/* ===== Теги внутри поиска ===== */
.tags-container {
  padding: 10px 0 15px;
  border-bottom: 1px solid #13476f;
  margin-bottom: 15px;
}

.tags-label {
  font-size: 0.9rem;
  color: #88a4bc;
  margin-bottom: 8px;
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #0a2a44;
  border: 1px solid #13476f;
  border-radius: 16px;
  color: #a8d8ff;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-tag-item:hover,
.nav-tag-item:focus {
  background: #13476f;
  border-color: #2a7fb8;
  color: #ffffff;
  transform: translateY(-1px);
}

.tag-count {
  font-size: 0.75rem;
  color: #6b96b8;
  background: rgba(19, 71, 111, 0.5);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Адаптив: скрываем счётчик на мобильных */
@media (max-width: 600px) {
  .tag-count {
    display: none;
  }
}

/* Сброс стилей для списка */
ul.items {
    display: grid;
    /* По умолчанию (мобильные) - 1 колонка */
    grid-template-columns: 1fr; 
    gap: 20px; /* Отступы между плитками */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Стилизация самой плитки (li) */
ul.items li {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Эффект при наведении */
ul.items li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Картинка внутри плитки */
ul.items li a img {
    width: 100%;
    height: auto;
    display: block;
   height: 200px;
   object-fit: cover;
}

/* Заголовок внутри плитки */
.items_ititle {
    padding: 15px;
    text-align: center;

}

.items_ititle a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
}
@media (min-width: 600px) {
    ul.items {
        /* 3 колонки равной ширины */
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Планшеты и Десктопы (ширина экрана больше 768px) */
@media (min-width: 768px) {
    ul.items {
        /* 3 колонки равной ширины */
        grid-template-columns: repeat(3, 1fr);
    }
}
.dsktopmenu{
    width: 450px;
    position: absolute;
    right:90px;
    top: 0;
    height: 40px;
    line-height:40px;
    text-align: right;
   font-size:14px;
}
.dsktopmenu a{
height:40px; line-height:40px; display:inline-block; color:#e5e5e5; padding:0 5px; text-decoration:none; box-sizing: border-box; background-repeat: no-repeat; background-position-x:-5px; background-position-y: 9px; background-color: initial;
}
.dsktopmenu a:hover{
background-color: #034071; border-bottom:1px solid orange;
}
@media (max-width: 960px){
.dsktopmenu, .hpmenu{display:none;}
.main{padding:10px 10px 200px 10px;}
}
@media (min-width: 961px){
.main{padding:10px 10px 200px 10px;}
}
.bb_quote{
     padding: 10px;
    background: #e5e5e5;
    border-left: 2px solid #fa4400;
}
.bb_quote a{
	color:#fa4400;
}

.fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-sizing: border-box;
  width: 40px;height: 40px;
  position: absolute;top: 0; left: 151px;
  text-align: center;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: space-around;
}

.fav-btn .fav-icon {
  transition: fill 0.2s;
  display: block;
}

.fav-btn.active .fav-icon {
  fill: #009ff0;
}
.toplinebtns:hover svg{
 transform: scale(1.2); 
 transition: transform 0.3s ease; 

}

#favlist .empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

#favlist .empty-message svg {
  vertical-align: middle;
  margin: 0 4px;
  display: inline-block;
}
#installApp{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    left: 256px;
    background: #222;
    padding: 5px;
    border-radius: 50%;
    border: 2px solid #FF9800;
    cursor: pointer;
    box-sizing: border-box;
    cursor: pointer;
}
#installApp svg{
    position: absolute;
    left: 3px;
    top: 3px;
}
.offlinemessage{font-size: 14px; border-bottom: 1px dashed orange; display: none;}
.menubtn:hover svg{
fill:#009ff0!important;
}
.oversize{width:1400px!important; max-width:100%;}


/* Поиск */
/* ===== Overlay: видимый ===== */
#searchoverlay.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== Wrapper: активное состояние (опускается вниз) ===== */
#searchwrapper.active {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ===== Кастомный скроллбар (как у navwrapper) ===== */
.search-results {
  scrollbar-width: thin;
  scrollbar-color: #13476f #0a2a44;
}
.search-results::-webkit-scrollbar {
  width: 10px;
}
.search-results::-webkit-scrollbar-track {
  background: #0a2a44;
  border-radius: 4px;
  margin: 4px 0;
}
.search-results::-webkit-scrollbar-thumb {
  background: #13476f;
  border-radius: 4px;
  border: 2px solid #0a2a44;
  transition: background 0.2s ease;
}
.search-results::-webkit-scrollbar-thumb:hover {
  background: #1a5a8c;
  cursor: grab;
}
.search-results::-webkit-scrollbar-thumb:active {
  background: #0d3a59;
  cursor: grabbing;
}
.search-results::-webkit-scrollbar-button {
  display: none;
}

/* ===== Карточка результата поиска ===== */
.search-result {
  display: block;
  padding: 12px 16px;
  background: #0a2a44;
  border: 1px solid #13476f;
  border-radius: 6px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #f5f5f5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.search-result:hover,
.search-result:focus,
.search-result.active {
  background: #0d3a59;
  border-color: #1a5a8c;
  transform: translateY(-2px);
  outline: none;
}

/* Типографика */
.search-result strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}
.search-result .preview {
  display: block;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 4px 0;
  line-height: 1.4;
}
.search-result .meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 6px;
  flex-wrap: wrap;
}
.search-result .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.search-result .keyword {
  background: #13476f;
  color: #e2e8f0;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Подсветка совпадений */
.search-result mark {
  background: linear-gradient(120deg, #009ff0 0%, #00c8ff 100%);
  color: #001a33;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Состояния */
.no-results,
.searching {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  background: #0a2a44;
  border-radius: 6px;
  font-style: italic;
  margin: 10px 0;
}

/* Фокус на input */
#search:focus {
  border-color: #009ff0;
  box-shadow: 0 0 0 3px rgba(0, 159, 240, 0.2);
}

/* Адаптив */
@media (max-width: 768px) {
  #searchwrapper {
    width: 95% !important;
    height: 95vh !important;
  }
  .search-container {
    padding: 50px 15px 15px !important;
  }
  #search {
    font-size: 1rem !important;
    padding: 12px 16px !important;
  }
  .search-result {
    padding: 10px 14px;
  }
}
.pb_item{
    font-weight: bold;
    padding: 10px;
    background: #e5e5e5;
    border-radius: 4px;
    margin-left: 2px;
    color: #3F51B5;
    text-decoration: none;
}
.pb_active{
	background:#009ff0!important;
	color: #fff!important;
}
.unila_pres{
    padding: 15px;
    border: 1px solid silver;
    border-radius: 8px;
    background: linear-gradient(179deg, #c8e6fe, transparent);
}
.up_title{
	text-align: center;
	color: #333;
	font-size: 22px;
}
/**
 * Global Main Loader
 */
 /* Блокировка скролла при активном лоадере */
    body.globalloader-active {
      overflow: hidden;
      touch-action: none;
    }

    /* Основной контейнер лоадера */
    .globalloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      pointer-events: none;
    }

    /* Активное состояние — показ */
    .globalloader.active {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
    }

    /* Плавность для класса fade */
    .globalloader.globalloader--fade {
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Спиннер (крутящийся индикатор) */
    .globalloader__spinner {
      width: 50px;
      height: 50px;
      border: 4px solid rgba(255, 255, 255, 0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 16px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Текст под спиннером */
    .globalloader__text {
      color: #fff;
      font-size: 16px;
      font-family: system-ui, sans-serif;
    }
 .alt-rsa-title a{font-weight: 700; line-height: 1.2; color: #b93a0a; text-shadow: 1px 1px 1px #fff; text-decoration: none;}
    @media (max-width: 800px){
    	.textonfoolscreen{font-size: 14px;}
    	.nosmallscreen{display: none;}
.alt-rsa1{
width: calc(50% - 2px);
        height: 150px;
        display: flex;
        padding: 5px;
        margin-bottom: 0;
        box-sizing: border-box;
        flex-wrap: wrap;
        flex-direction: row;
        align-content: flex-start;
        justify-content: center;
        align-items: baseline;
        border: 2px solid #fff;
        position: relative;
       border:1px solid silver; border-radius: 8px;
                

}
.alt-rsa-img{width: 100%; aspect-ratio: 3/2; border-radius: 8px;}
.alt-rsa-title{
position: absolute;
        bottom: 0;
        text-align: left;
        background: #eeecec;
        height: 40px;
        width: 100%;
        text-align: center;
        border: 2px solid #fff;
        box-sizing: border-box;
        overflow: hidden;
        font-size: 14px;
        background: #fff;
        text-decoration: none;
        border-radius:0 0 8px 8px;
}
.donflex{display: block;padding-bottom: 20px;}
    }
@media (min-width: 801px){
.alt-rsa1{width:calc(50% - 2px); height:150px; display:flex; padding:10px; margin-bottom:0; box-sizing:border-box; border:2px solid #fff;align-items: center; border:1px solid silver; border-radius: 8px;}
.alt-rsa-img{width: 150px; aspect-ratio: 4/3; border:1px solid #333; box-sizing:border-box; }
.alt-rsa-title{padding-left:10px; width:calc(100% - 150px); height:auto; text-align:left; overflow:hidden; box-sizing:border-box;background: #fff; text-decoration: none;}
.donflex{display: flex;justify-content: space-between;padding-bottom: 20px;}
    }
.hoveropacity:hover{opacity:0.6;}
.like-unila-btn{transition: 0.5s;}
.likeanimation{fill:#ff9900!important; transform: rotate(45deg); transition:0.5s;}
.nav-tag-item{color:#f5f5f5;}

/* ===== Модальное окно для ключа доступа ===== */
#keyAccessOverlay {
    background: rgba(0, 0, 0, 0.75);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100003;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#keyAccessModal {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: transparent;
    box-shadow: 0 10px 50px rgba(0,0,0,0.7);
    width: 600px;
    max-width: 100%;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    color: #f5f5f5;
    font-size: 15px;
    font-family: Sansation;
    z-index: 100004;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
    border:5px orange dashed;
}

#keyAccessContent {
    margin: 0 auto !important;
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
    color: #333;
}

#keyAccessModal.active {
	background: #fff;
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

#keyAccessOverlay.active {
    opacity: 1;
}

/* Кастомный скроллбар для модального окна ключа */
#keyAccessModal::-webkit-scrollbar {
    width: 10px;
}
#keyAccessModal::-webkit-scrollbar-track {
    background: #999;
    border-radius: 4px;
    margin: 4px 0;
}
#keyAccessModal::-webkit-scrollbar-thumb {
    background: #f5f5f5;
    border-radius: 4px;
    border: 2px solid #333;
    transition: background 0.2s ease;
}
#keyAccessModal::-webkit-scrollbar-thumb:hover {
    background: #666;
    cursor: grab;
}