/* Выравнивание текста на кнопке с классом tn-atom__button-text */
.t396 .tn-atom__button-text,
.tn-atom__button-text {
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
}

/* Скрываем иконку кнопки, которая сдвигает текст */
.tn-atom__button-icon.tn-atom__button-icon-arrow-default,
.tn-atom__button-icon.tn-atom__button-icon-no-hover {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Стили для header как на странице donation */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 68px !important;
    position: relative !important;
}

.header-logo {
    position: absolute !important;
    left: 20px !important;
    z-index: 10 !important;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 20px;
}

.logo-text {
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: #606060;
}

.has-submenu > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.submenu a:hover {
    background-color: #f0f0f0;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
}

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

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

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

/* Responsive Header */
@media (max-width: 960px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-logo {
        position: static !important;
    }
    
    .header-container {
        justify-content: space-between !important;
    }
    
    .header-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid rgba(0,0,0,0.10);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header-nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.1);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-submenu.active .submenu {
        max-height: 200px;
    }

    .has-submenu > a::after {
        float: right;
    }
}

/* Стили для всплывающего окна */
.registration-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.registration-popup.active {
    display: flex;
}

.registration-popup-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.registration-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.registration-popup-close:hover {
    background-color: #f0f0f0;
}

.registration-popup-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Центрирование элементов в Tilda header по аналогии с donation */
#rec1722453501 .t-menu-base__maincontainer {
    position: relative !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

#rec1722453501 .t-menu-base__logowrapper {
    position: absolute !important;
    left: 20px !important;
    z-index: 10 !important;
}

#rec1722453501 .t-menu-base__leftwrapper {
    margin: 0 auto !important;
    flex: 0 0 auto !important;
    position: relative !important;
}

/* Убеждаемся, что навигационное меню центрировано */
#rec1722453501 .t-menu-base__list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Для мобильных устройств возвращаем обычное поведение */
@media screen and (max-width: 960px) {
    #rec1722453501 .t-menu-base__maincontainer {
        justify-content: space-between !important;
    }
    
    #rec1722453501 .t-menu-base__logowrapper {
        position: static !important;
    }
    
    #rec1722453501 .t-menu-base__leftwrapper {
        margin: 0 !important;
    }
}

/* Полное удаление элемента "Made on Tilda" */
#tildacopy,
.t-tildalabel,
.t-tildalabel__link,
.t-tildalabel__wrapper,
.t-tildalabel-padding {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

