body {
    color: #4b4b4b;
}
html,body {
  height: 100%;
}
a, a:hover, a:visited {
    color: #004290;
}
.highlight {
    color: #00F2A9;
}

.body {
    padding: 0 2rem 0 2rem;
    margin-bottom: 2rem;
}

.logo-div {
    width: 60%;
    margin-bottom: 2rem;
}
.logo-div__logo {
    max-width: 200px;
    width: 100%;
    /*background: rgba(255,255,255,0.3);*/
    /*padding: 16px 17px;*/
    /*border-radius: 7px;*/
    /*margin-left: -16px;*/
}
.hand-div {
    width: 40%;
    display: flex;
    align-items: flex-end;
    padding-top: 2rem;
}
.hand-div__img {
    max-width: 400px;
    width: 100%;
}
.about {
    box-shadow: 0 5px 5px -5px #000;
}

.flex {
    display: flex;
}
.f-end {
    align-items: flex-end;
}
.f-stretch {
    align-items: stretch;
}
.available {
    margin-top: 0;
    padding: 2rem;
    text-align: center;
}

.responsive-img {
    width: 100%;
}
.mb1{
    margin-bottom: 1rem;
}
.mb2{
    margin-bottom: 2rem;
}

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

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

.align-center {
    text-align: center;
}
#pagination {
    max-width: 300px;
    margin: auto;
}
#pagination a{
    margin: 0 10px;
}
#pagination a:hover {
    text-decoration: none;
}
/*@media (max-width: 641px) {*/
/*}*/

/*.homepage {*/
    /*background: url("/static/home-on-hand2.9a5d0d6876c6.jpg") center no-repeat;*/
    /*background-size: cover;*/
/*}*/
/*.homepage__flex {*/
    /*display: flex;*/
    /*flex-direction: column;*/
    /*align-content: space-between;*/

/*}*/
.template-homepage {
    background: url("/static/home-on-hand2.9a5d0d6876c6.jpg") 40% 50% no-repeat;
    background-size: cover;
    background-blend-mode: darken;
    background-color: rgba(50,50,50,.3);
}

.template-homepage a{
    color: white;
    text-decoration: underline;
}
.template-homepage a:hover {
    text-decoration: none;
}

.container-home {
    padding: 8vh 8vh 4vh 8vh;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /*background-repeat: no-repeat;*/
    /*background-position: center;*/
    /*background-size: cover;*/
    color: white;
    justify-content: space-between;
    /*background: url("/static/home-on-hand2.9a5d0d6876c6.jpg") center no-repeat;*/
}
.container-home .bottom {
    display: flex;
    justify-content: center;
    color: #EFECFA;
    font-weight: 100;
    font-size: 3vh;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.page_filters {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.page_filter_link {
    margin-left: 30px;
}

.page_filter_link.active {
    font-weight: bold;
    color: #004290;;
}
.richtext-image.full-width{
    max-width: 100%;
    height: auto;
}
.richtext-image.right {
    max-width: 33%;
    height: auto;
    text-align: right;
    cursor:zoom-in;
}
.richtext-image.left {
    max-width: 33%;
    height: auto;
    text-align: left;
    cursor:zoom-in;
}

.w3-modal{z-index:3;display:none;padding-top:10px;position:fixed;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4)}
.w3-modal-content{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:800px}
.w3-animate-zoom {animation:animatezoom 0.6s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.w3-hover-red:hover{color:#fff!important;background-color:#f44336!important}
.w3-button:hover{color:#000!important;background-color:#ccc!important}
.w3-xlarge{font-size:24px!important}.w3-xxlarge{font-size:36px!important}.w3-xxxlarge{font-size:48px!important}.w3-jumbo{font-size:64px!important}
.w3-display-topright{position:absolute;right:0;top:0}

.zoomable-img {
    cursor:zoom-in
}

@media screen and (max-width: 700px) {
    h1 {
        font-size: 130%;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 125%;
    }
    h3 {
        font-size: 115%;
    }
    .body {
        padding: 0 .5rem 0 .5rem;
        margin-bottom: 2rem;
    }
}
@media screen and (max-width: 576px) {
    /*h2 {*/
        /*font-size: 80%;*/
    /*}*/
    .logo-div {
        width: 50%;
        margin: 0;
        margin-bottom: 1.5rem;
    }
    .hand-div {
        width: 50%;
    }
}

/* Стили для сайдбара */
.sidebar-content {
    padding: 1rem 0;
    border-radius: 8px;
}

.sidebar-content__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.event-item {
    margin-bottom: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    padding-top: 0rem;
}

.post-thumb {
    width: 33.333%; /* Треть ширины сайдбара */
    flex-shrink: 0;
    margin-right: 1rem;
}

.post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-data {
    flex: 1;
    min-width: 0; /* Позволяет тексту сжиматься */
}

.post-catagory {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

.post-title h6 {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

/* Главное меню */
.main-menu {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.main-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-menu__item {
    margin: 0;
}

.main-menu__link {
    display: inline-block;
    /* padding: 0.5rem 1rem; */
    color: #004290;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.main-menu__link:hover {
    /* background-color: #f8f9fa; */
    text-decoration: none;
    color: #004290;
}
.main-menu__link.active {
    color: #004290;
    font-weight: bold;
}
.news-item__date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}
/* Адаптивность для мобильных устройств */
@media screen and (max-width: 576px) {
    .main-menu__list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-menu__link {
        display: block;
        text-align: center;
    }
}

/* Баннер "Скачайте приложение" */
.banner-top {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    display: none; /* По умолчанию скрыт, показывается через JS */
    width: 100%;
    margin: 0;
    border: none;
    animation: bannerGlow 2s ease-in-out infinite alternate;
    margin-bottom: 2rem;
}

@keyframes bannerGlow {
    from {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    to {
        box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
    }
}

.banner-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.banner-top__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.banner-top__logo img {
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1); /* Делаем логотип белым */
}

.banner-top__text h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-top__text p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-top__right {
    display: flex;
    align-items: center;
}

.banner-top__download-btn {
    background: #ffffff;
    color: #ff6b35 !important;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.banner-top__download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.banner-top__download-btn:hover::before {
    left: 100%;
}

.banner-top__download-btn:hover {
    background: #ff6b35;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #ff6b35;
}

.banner-top__close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.banner-top__close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .banner-top {
        padding: 15px 0;
    }
    
    .banner-top-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .banner-top__left {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-top__text h3 {
        font-size: 18px;
    }
    
    .banner-top__text p {
        font-size: 14px;
    }
    
    .banner-top__download-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .banner-top__close-btn {
        top: 5px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .banner-top {
        padding: 12px 0;
    }
    
    .banner-top-content {
        padding: 0 15px;
    }
    
    .banner-top__logo img {
        width: 50px;
    }
    
    .banner-top__text h3 {
        font-size: 16px;
    }
    
    .banner-top__text p {
        font-size: 13px;
    }
    
    .banner-top__download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .banner-top__close-btn {
        top: 3px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Скрываем баннер на мобильных устройствах */
@media screen and (max-width: 767px) {
    .banner-top {
        display: none !important;
    }
}

/* Компактная версия баннера на мобильных устройствах */
@media screen and (max-width: 767px) {
    .banner-top {
        display: block !important;
        padding: 12px 0;
        margin-bottom: 1rem;
    }
    
    .banner-top__text p {
        display: none; /* Скрываем вторую строку текста */
    }
    
    .banner-top__text h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .banner-top__download-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .banner-top__close-btn {
        top: 5px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #004290;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.mobile-menu__logo img {
    max-width: 150px;
    height: auto;
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu__close:hover {
    background: #e9ecef;
    color: #495057;
}

.mobile-menu__nav {
    padding: 20px 0;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__item {
    border-bottom: 1px solid #f1f3f4;
}

.mobile-menu__link {
    display: block;
    padding: 15px 20px;
    color: #004290;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover {
    background: #f8f9fa;
    color: #004290;
    text-decoration: none;
    padding-left: 25px;
}

.mobile-menu__link.active {
    background: #004290;
    color: #ffffff;
    border-left: 4px solid #00F2A9;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Скрываем десктопное меню на мобильных */
@media screen and (max-width: 767px) {
    .main-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Дополнительные стили для мобильного меню */
@media screen and (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        left: -280px;
    }
    
    .mobile-menu-toggle {
        top: 15px;
        left: 15px;
        width: 25px;
        height: 20px;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .mobile-menu__header {
        padding: 15px;
    }
    
    .mobile-menu__logo img {
        max-width: 120px;
    }
    
    .mobile-menu__link {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Блокировка прокрутки при открытом мобильном меню */
body.mobile-menu-open {
    overflow: hidden;
}

/* Анимация для плавного появления/исчезновения */
.mobile-menu,
.mobile-menu-overlay {
    will-change: transform, opacity;
}