/* Основные переменные */
:root {
    --black: #000000;
    --bg-dark: #001A38;
    /* Основной тёмно-синий фон */
    --blue-dark: #002D67;
    /* Дополнительный синий */
    --blue-light: #0062B3;
    /* Светлый синий */
    --gold: #FFC600;
    /* Золотой акцент */
    --gold-dark: #E6B800;
    /* Тёмное золото */
    --white: #FFFFFF;
    /* Белый */
    --gray-light: #F5F5F5;
    /* Светло-серый */
    --gray-dark: #333333;
    /* Тёмно-серый */
    --red: #E30613;
    /* Красный цвет */
    --blue: #002D67;
    /* Синий */
    --red-dark: #C00510;
    /* Темно-красный */
    --gradient-primary: linear-gradient(135deg, var(--red) 0%, #bf1eff37 50%, var(--blue) 100%);
    --gradient-hover: linear-gradient(135deg, var(--gold) 0%, var(--blue) 50%, var(--red) 100%);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Golos Text', Arial, sans-serif;
    font-weight: 400;
    color: var(--white);
    background-color: var(--bg-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Анимация градиента при наведении */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Градиентные кнопки */
.btn-primary {
    background: linear-gradient(135deg,
            #E30613 0%,
            /* Красный */
            #002D67 50%,
            /* Синий */
            #E30613 100%
            /* Золотой */
        );
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Эффект при наведении */
.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    animation: gradientShift 4s ease infinite;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Эффект нажатия */
.btn-primary:active {
    transform: translateY(0);
}

/* Обводка для кнопок */
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(135deg,
            #E30613,
            #002D67,
            #E30613) border-box;
    mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    border-radius: 4px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            #E30613 0%,
            /* Золотой */
            #002D67 50%,
            /* Синий */
            #E30613 100%
            /* Красный */
        );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Хедер */
.header {
    background-color: rgba(0, 26, 56, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 198, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 46px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

.mobile-logo {
    display: none;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* Главное меню */
.nav-main {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-main li {
    position: relative;
    margin: 0 12px;
}

.nav-main a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.25s ease;
    border-radius: 3px;
}

.nav-main a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* Активный пункт меню */
.nav-main li.active a {
    color: var(--white);
    font-weight: 600;
}

.nav-main li.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Кнопки в хедере */
.header-actions {
    margin-left: 30px;
}

.header-actions .btn {
    padding: 10px 22px;
    font-size: 14px;
    vertical-align: middle;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -80px;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Высота области размытия */
    background: linear-gradient(to top,
            var(--bg-dark) 0%,
            rgba(0, 26, 56, 0.8) 30%,
            rgba(0, 26, 56, 0.4) 60%,
            transparent 100%);
    z-index: 1;
}

/* Дополнительный эффект размытия с помощью backdrop-filter */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top,
            var(--bg-dark) 0%,
            transparent 100%);
    /*backdrop-filter: blur(5px);*/
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 235px;
    left: 0;
    width: 100%;
    padding: 0 130px;
    max-width: 1440px;
    margin: 0 auto;
    color: white;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.3s;
    z-index: 3;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/*.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}*/

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}

.slider-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Основной контент */
.main-content {
    padding-top: 50px;
    min-height: 100vh;
}

/* Секции */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    text-align: left;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--red-dark);
    margin: 15px 15px 0;
}

/* Карточки */
.card {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Горизонтальные списки */
.events-list,
.news-list {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--white) var(--blue-dark);
}

/* Стили для полосы прокрутки */
.events-list::-webkit-scrollbar,
.news-list::-webkit-scrollbar {
    height: 8px;
}

.events-list::-webkit-scrollbar-track,
.news-list::-webkit-scrollbar-track {
    background: var(--blue-dark);
}

.events-list::-webkit-scrollbar-thumb,
.news-list::-webkit-scrollbar-thumb {
    background-color: var(--white);
    border-radius: 4px;
}

/* Карточки в горизонтальном списке */
.horizontal-card {
    min-width: 400px;
    max-width: 440px;
    flex: 1 0 auto;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    /*overflow: hidden;*/
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.horizontal-card:hover {
    transform: translateY(-5px);
    border-color: var(--white);
}

.horizontal-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.horizontal-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.horizontal-card-content .btn {
    align-self: flex-start;
    margin-top: 15px;
}

/* Заголовки секций */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Кнопка "Все" */
.view-all {
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

.view-all:hover {
    opacity: 0.8;
}

/* Темная карта */
/*.contacts-map iframe {
    filter: invert(1) hue-rotate(180deg) contrast(0.9) brightness(0.8);
    border-radius: 8px;
}*/

.contacts-map {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
}

/* Футер */
.footer {
    background-color: var(--bg-dark);
    /* Тот же цвет, что и у body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Тонкая светлая линия */
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 198, 0, 0.3) 50%,
            transparent 100%);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-nav h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.742);
    font-size: 14px;
}

.footer-nav ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--white);
}

/* Events and News Grid */
.events-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.event-card,
.news-card {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.event-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.event-card img,
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.event-date,
.news-date {
    display: block;
    color: var(--white);
    margin-bottom: 10px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.current-page {
    color: var(--white);
}

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Profile */
.profile-welcome {
    margin-bottom: 40px;
    text-align: center;
}

.profile-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-section {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-form,
.password-form {
    margin-top: 20px;
}

.profile-form label,
.password-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--white);
}

.profile-form input,
.password-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--white);
}

.birthday-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Вкладки профиля */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--white);
    margin-bottom: 30px;
}

.profile-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-tab.active {
    color: var(--white);
    font-weight: 600;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--white);
}

/* Стили для блока уровня пользователя */
.user-level-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.user-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.user-level-display {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    flex: 1;
}

.user-level-display a {
    color: var(--white);
    text-decoration: underline;
}

.user-level-display p {
    display: flex;
    flex-direction: row;
    align-self: left;
    color: var(--white);
    padding-top: 15px;
    font-style: italic;
}

.level-label {
    font-weight: 500;
    margin-right: 10px;
    color: var(--white);
}

.level-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.level-circle {
    font-size: 1.2rem;
}

/* Стили для блока с фотографией */
.user-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-upload-btn {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
}

.photo-upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.upload-text {
    white-space: nowrap;
}

.level-info {
    /*border-top: 1px solid rgba(255, 255, 255, 0.2);*/
    padding-top: 15px;
    font-style: italic;
    font-weight: 500;
}

.level-info a {
    color: var(--white);
    text-decoration: underline;
}

.level-info a:hover {
    color: var(--gray-light);
}

/* Layout for user info section */
.profile-info-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.info-block {
    padding: 20px;
}

.user-level-block {
    /*background: rgba(0, 45, 103, 0.3);*/
    /* Keep the blue background */
    align-items: center;
    border-radius: 8px;
}

.user-photo-block {
    background: transparent;
    /* No background as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* User photo styles */
.user-photo-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-photo {
    font-size: 3rem;
    opacity: 0.7;
}

/* Photo form styles */
.photo-upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-input {
    display: none;
    /* Hide the actual file input */
}

.photo-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* Стили для страницы с информацией об уровнях */
.levels-info-container {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.level-item {
    background: rgba(0, 45, 103, 0.3);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid;
}

.level-item:nth-child(1) {
    border-left-color: #28a745;
}

.level-item:nth-child(2) {
    border-left-color: #ffc107;
}

.level-item:nth-child(3) {
    border-left-color: #007bff;
}

.level-item:nth-child(4) {
    border-left-color: #dc3545;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.level-header h3 {
    color: var(--white);
    margin: 0;
}

.level-description p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.levels-note {
    text-align: center;
    padding: 20px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
    margin-top: 30px;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}

.form-group input:focus {
    border-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 198, 0, 0.2);
}

.error-text {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 14px;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* Сообщения */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #4caf50;
    color: white;
}

.alert-error {
    background: var(--red);
    color: white;
}

.alert-info {
    background: var(--blue-light);
    color: white;
}

/* Карточки тренировок в профиле */
.trainings-list {
    margin: 20px 0;
}

.training-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--white);
}

.training-info h5 {
    margin-bottom: 5px;
    color: var(--white);
}

.training-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.training-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Support Form */
.support-form {
    max-width: 600px;
    margin: 0 auto;
}

.support-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-bottom: 20px;
}

/* News List Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    display: block;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    margin-bottom: 15px;
    font-size: 20px;
}

.news-excerpt {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* News Detail Styles */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-meta {
    margin-bottom: 30px;
    color: var(--white);
}

.news-image-container {
    margin-bottom: 30px;
}

.news-image-container img {
    width: 100%;
    border-radius: 8px;
}

.news-content {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 40px;
}

.news-actions {
    text-align: center;
    margin-top: 40px;
}

/* Стили для детальных страниц */
/* Updated Detail Pages Styles */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.detail-content {
    margin-bottom: 30px;
}

.detail-image-container {
    float: left;
    margin: 0 25px 15px 0;
    max-width: 500px;
}

.detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-meta {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.1rem;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    overflow: hidden;
    /* Содержимое обтекает изображение */
}

.detail-text p {
    margin-bottom: 1.5em;
}

.detail-text::after {
    content: "";
    display: table;
    clear: both;
}

.detail-text p:first-of-type {
    margin-top: 0;
}

.detail-actions {
    clear: both;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для форматированного текста с обтеканием */
.detail-text strong {
    font-weight: 700;
    color: var(--white);
}

.detail-text em {
    font-style: italic;
}

.detail-text u {
    text-decoration: underline;
}

.detail-text s {
    text-decoration: line-through;
}

.detail-text a {
    color: #4dabf7;
    text-decoration: underline;
    transition: color 0.3s;
}

.detail-text a:hover {
    color: #339af0;
    text-decoration: none;
}

.detail-text ul,
.detail-text ol {
    margin: 1em 0;
    padding-left: 2em;
}

.detail-text h2,
.detail-text h3,
.detail-text h4 {
    margin: 1.5em 0 1em;
    color: var(--white);
    clear: both;
    /* Заголовки не должны обтекать изображение */
}

.detail-text img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

/* Дополнительные стили для улучшения читаемости */
.detail-text blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.detail-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.detail-text table,
.detail-text th,
.detail-text td {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-text th,
.detail-text td {
    padding: 10px;
    text-align: left;
}

.detail-text th {
    background-color: rgba(0, 45, 103, 0.3);
    color: var(--white);
}

.detail-text pre {
    background: rgba(0, 45, 103, 0.3);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.detail-text code {
    background: rgba(0, 45, 103, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Training List Styles */
.training-calendar {
    max-width: 800px;
    margin: 30px auto;
}

.training-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--white);
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.training-card.training-full {
    opacity: 0.7;
    border-left-color: var(--red);
}

.training-info {
    flex: 1;
}

.training-location {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--white);
}

.training-datetime {
    margin-bottom: 5px;
}

.training-date {
    font-weight: 500;
    margin-right: 10px;
}

.training-time {
    color: rgba(255, 255, 255, 0.8);
}

.training-slots {
    font-size: 0.9rem;
}

.slots-available {
    color: #4caf50;
}

.slots-full {
    color: var(--red);
}

.training-actions {
    margin-left: 20px;
}

.btn-disabled {
    background: #666;
    cursor: not-allowed;
  	color: var(--white);
}

.no-trainings {
    text-align: center;
    padding: 40px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
}

/* Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #4caf50;
    color: white;
}

.alert-error {
    background: var(--red);
    color: white;
}

/* Messages */
.messages {
    margin: 20px 0;
}

.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: white;
}

.alert-success {
    background-color: #03e70a80;
}

.alert-error {
    background-color: #bf170b;
}

.alert-warning {
    background-color: #d9aa0fb6;
}

/* Training cards in profile */
.trainings-list {
    margin: 20px 0;
}

.training-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
}

.training-info h5 {
    margin-bottom: 5px;
    color: var(--white);
}

.training-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Стили для кнопки отмены */
.btn-danger {
    background-color: #8b1c27;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #8b1c27;
}

.training-registered {
    border-left: 4px solid #13752a;
}

/* Анимация при наведении */
.training-card {
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Формы авторизации */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.error-text {
    color: #901818;
    margin-top: 5px;
    font-size: 0.9rem;
}

.alert-error {
    background: #901818;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Стили для статуса записи */
.registration-status {
    margin-top: 10px;
}

.registered-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #13752a;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Стили для заблокированной кнопки */
.btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Визуальное выделение карточки */
.training-registered {
    border-left: 4px solid #13752a;
    position: relative;
}

.training-registered::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.05);
    pointer-events: none;
}

/* Стили для валидации форм */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Стили для активной навигации */
.nav-main a.active {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

/*.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--white);
}*/

/* Стили для форматированного текста */
.detail-text {
    font-family: 'Golos Text', Arial, sans-serif;
    line-height: 1.6;
}

.detail-text p {
    margin-bottom: 1.2em;
}

.detail-text strong {
    font-weight: 700;
    color: var(--white);
}

.detail-text em {
    font-style: italic;
}

.detail-text u {
    text-decoration: underline;
}

.detail-text s {
    text-decoration: line-through;
}

.detail-text a {
    color: #4dabf7;
    text-decoration: underline;
    transition: color 0.3s;
}

.detail-text a:hover {
    color: #339af0;
    text-decoration: none;
}

.detail-text ul,
.detail-text ol {
    margin: 1em 0;
    padding-left: 2em;
}

.detail-text h2,
.detail-text h3,
.detail-text h4 {
    margin: 1.5em 0 1em;
    color: var(--white);
}

.detail-text img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

/* Support Page Styles */
.support-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 45, 103, 0.3);
    border-radius: 10px;
}

.support-form {
    margin-top: 30px;
}

.support-form .form-group {
    margin-bottom: 25px;
}

.support-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
}

.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.support-form textarea {
    min-height: 150px;
    resize: vertical;
}

.support-form .error-text {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* About Page Styles */
.about-block {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.about-block.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    min-width: 33%;
    max-width: 40%;
}

.about-text {
    flex: 2;
}

.about-text-full {
    margin-bottom: 50px;
    text-align: center;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.question {
    font-weight: 700;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Old About Section Styles */
.new-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 80%;
    gap: 20px;
}

.about-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-mission-text {
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    flex: 1;
}

.about-mission-text h3 {
    font-size: 36px;
}

.about-mission-text p {
    font-size: 20px;
}

.about-main-image {
    flex: 3;
    position: relative;
    border-radius: 8px;
}

.about-top-right,
.about-bottom-right {
    flex: 1;
    position: relative;
    border-radius: 8px;
}

.about-img-large,
.about-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    /* Закругление всех углов */
}


.image-label,
.details-link {
    position: absolute;
    color: white;
    background: transparent;
    font-weight: bold;
    text-decoration: none;
}

.image-label {
    top: 15px;
    left: 15px;
    font-size: 18px;
}

.details-link {
    bottom: 15px;
    left: 30px;
    font-size: 15px;
}

.about-image-link:hover .details-link {
    text-decoration: underline;
}


/* NEW ABOUT STYLES */
/* Новые стили для страницы "О нас" - уникальные названия */
.mission-section {
    padding: 20px 0;
    background: var(--bg-dark);
    color: var(--white)
}

.mission-container {
    display: flex;
    align-items: stretch;
    /* Выравнивание по высоте */
    /*gap: 10px;*/
    max-width: 2200px;
    /*margin: 0 auto;*/
}

.mission-visual {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 16px;
}

.mission-image {
    width: 93%;
    height: 93%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.mission-heading {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    align-self: center;
}

.mission-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    align-items: center;
}

.mission-tagline {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 600;
    margin: 25px 0;
    line-height: 1.4;
    padding-left: 30px;
}

.mission-description {
    background: rgba(0, 45, 103, 0.4);
    padding: 25px;
    border-radius: 75px;
    border: 5px solid rgba(0, 35, 80, 0.4);
    backdrop-filter: blur(10px);
    color: var(--white);
}

.mission-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 500;
}

.mission-description p:nth-child(2) {
    font-style: italic;
    color: var(--white);
    font-weight: 200;
}

.mission-description a {
    left: 30px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 200;
    text-decoration: none;
}

.mission-description a:hover {
    text-decoration: underline;
}

/* Анимация появления */
/*.mission-visual {
    opacity: 0;
    transform: translateX(-30px);
    animation: missionSlideIn 0.8s ease forwards;
}

.mission-content {
    opacity: 0;
    transform: translateX(30px);
    animation: missionlideIn 0.8s ease 0.3s forwards;
}

@keyframes missionSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}*/


/* FAQ Page Styles */
.faq-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.faq-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    /* Аппаратное ускорение */
    transform: translateZ(0);
}

.faq-item.active {
    border-color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    flex: 1;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--white);
    color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    /* Предотвращаем выделение текста при клике */
    user-select: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.3s ease;
    transition: max-height 0.3s ease;
    background: var(--white);
    color: var(--black);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Safari требует явного значения */
    -webkit-transition: max-height 0.5s ease;
    transition: max-height 0.5s ease;
}

/* Обновленные стили с отступом сверху */
.faq-answer::before {
    content: '';
    display: block;
    height: 1px;
    margin: 0 20px;
    background: -webkit-linear-gradient(left, transparent, var(--white), transparent);
    background: linear-gradient(to right, transparent, var(--white), transparent);
}

.faq-answer p {
    padding: 15px 20px 20px;
    /* Увеличили верхний отступ */
    margin: 0;
    color: var(--black);
    line-height: 1.6;
    position: relative;
}

.faq-support {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    /*background: rgba(0, 45, 103, 0.2);*/
    border-radius: 8px;
}

.faq-support a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.faq-support a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Rules Page Styles */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

.rules-intro {
    padding: 20px;
    /*background: rgba(0, 45, 103, 0.2);*/
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.rules-list {
    display: block;
    flex-direction: column;
    gap: 25px;
}

.rule-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--white);
    transition: transform 0.3s ease;
    -webkit-transform: translateZ(0);
    /* Аппаратное ускорение */
    transform: translateZ(0);
}

.rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rule-number {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.rule-content h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 20px;
    margin-bottom: 10px;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.rule-content p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.rules-conclusion {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
    border-top: 2px solid var(--white);
    text-align: center;
    font-style: italic;
}

/* About Project Page Styles */
.project-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.project-section {
    background: rgba(0, 45, 103, 0.2);
    padding: 30px;
    border-radius: 8px;
}

.project-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 24px;
}

.section-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1em;
}

/* About Fiticers Page Styles */
.fiticers-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.fiticers-list {
    margin-bottom: 40px;
}

.fiticer-item {
    padding: 60px 0;
    margin: 0 -40px;
    /* Расширяем на всю ширину с отрицательными margin */
}

.fiticer-item.bg-dark {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
}

.fiticer-item.bg-white {
    background: white;
    color: var(--bg-dark);
}

.fiticer-item.bg-white h3 {
    color: var(--bg-dark);
}

.fiticer-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.fiticer-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.fiticer-info {
    flex: 1;
}

.fiticer-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.testimonial {
    line-height: 1.6;
}

/* Recommendations Page Styles */
.recommendations-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-style: italic;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.recommendation-card {
    background: rgb(255, 255, 255);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease;
    border: 5px solid rgba(255, 255, 255, 0.358);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recommendation-icon {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.recommendation-card h3 {
    color: var(--black);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.recommendation-card h4 {
    color: var(--black);
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.recommendation-card ul {
    padding-left: 20px;
    margin: 0;
    color: var(--black);
}

.recommendation-card li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--black);
}

.recommendation-card p {
    color: var(--black);
    line-height: 1.5;
    margin: 15px 0 0 0;
}

.recommendations-note {
    text-align: center;
    padding: 25px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
    margin-top: 30px;
}

.recommendations-note p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* Training Posts Styles */
.training-posts-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.training-period {
    margin-bottom: 50px;
}

.period-title {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-light);
}

.training-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.training-post-card {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.training-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--blue-light);
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.post-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Accordion Styles */
.accordion {
    margin: 20px 0;
}

.accordion-toggle {
    width: 100%;
    background: rgba(0, 26, 56, 0.5);
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 1000;
  	font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-toggle:hover {
    background: rgba(0, 26, 56, 0.7);
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 26, 56, 0.3);
    border-radius: 0 0 8px 8px;
}

.accordion.active .accordion-content {
    max-height: 500px;
}

.accordion.active .toggle-icon {
    transform: rotate(45deg);
}

.accordion-content-inner {
    padding: 15px;
}

/* Schedule Styles */
.post-schedule {
    margin: 20px 0;
}

.post-schedule h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid var(--blue-light);
}

.schedule-item.past-training {
    border-left-color: #28a745;
}

.schedule-date {
    color: var(--white);
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.completed {
    background: #28a745;
    color: white;
}

.status-badge.upcoming {
    background: #ffc107;
    color: #333;
}

.telegram-link {
    color: #0088cc;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
}

.telegram-link:hover {
    text-decoration: underline;
}

/* Additional Info */
.post-additional {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-additional h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 16px;
}

.additional-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.no-posts {
    text-align: center;
    padding: 40px;
    background: rgba(0, 45, 103, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.special-page {
    text-align: center;
    padding: 60px 0;
}

.special-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ff0011 30%, #0400ff 50%, #ffff00 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Стили для петельки на странице others.html */
.loop-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gradient-loop {
    position: relative;
    width: 200px;
    height: 200px;
}

.loop-part {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-radius: 50%;
    animation: rotateLoop 6s infinite linear;
}

.part-1 {
    border-top-color: #002D67;
    border-right-color: #002D67;
    border-bottom-color: transparent;
    border-left-color: transparent;
    animation-delay: 0s;
}

.part-2 {
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: #0062B3;
    border-left-color: #0062B3;
    animation-delay: -1.5s;
}

.part-3 {
    border-top-color: #0088CC;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: #0088CC;
    animation-delay: -3s;
    transform: rotate(45deg);
}

.part-4 {
    border-top-color: transparent;
    border-right-color: #00A8FF;
    border-bottom-color: #00A8FF;
    border-left-color: transparent;
    animation-delay: -4.5s;
    transform: rotate(45deg);
}

@keyframes rotateLoop {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Стили для страницы "Присоединиться" */
.join-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.join-header {
    text-align: center;
    margin-bottom: 50px;
}

.join-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-top: 10px;
    font-style: italic;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.join-icon {
    margin-bottom: 25px;
}

.join-call {
    font-size: 1.3rem;
    font-weight: 600;
    color: #002D67;
    margin-bottom: 30px;
    line-height: 1.5;
}

.positions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.position-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f2dbdb;
    border-radius: 8px;
    border-left: 4px solid var(--red-dark);
}

.position-item.filled {
    background-color: #f8f9fa;
    border-left-color: #002D67;
}

.position-number {
    font-weight: 600;
    color: var(--black);
    margin-right: 10px;
    min-width: 25px;
}

.position-title {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: var(--black);
}

.position-status {
    font-weight: 600;
    color: var(--black);
}

.position-item.filled .position-status {
    color: var(--bg-dark);
}

.join-contact {
    margin: 30px 0;
    padding: 20px;
    /*background-color: #e3f2fd;*/
    background-color: #f8f9fa;
    border-radius: 8px;
}

.join-contact p {
    margin-bottom: 10px;
    font-weight: 400;
    /*color: #0088cc;*/
    color: var(--black);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0088cc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.3s;
}

.telegram-link:hover {
    background-color: #0066a0;
    color: white;
}

.join-ps {
    font-style: italic;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.ice-battle {
    background: var(--gradient-primary);
    padding: 30px;
    border-radius: 75px;
    /*border: 5px solid rgba(0, 35, 80, 0.4);*/
    backdrop-filter: blur(10px);
    align-items: center;
    color: var(--white);
}

.ice-battle p {
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.7;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Новые стили для страницы расписания тренировок */
.training-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.timeline-post {
    position: relative;
}

.post-month-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.month-title {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 600;
    margin: 0;
}

.month-indicator {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--white), transparent);
}

.post-card {
    background: rgba(0, 45, 103, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.post-main-content {
    padding: 30px;
}

.post-title-section {
    margin-bottom: 25px;
}

.post-title {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.post-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.schedule-section {
    margin-bottom: 25px;
}

.schedule-title {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 500;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--blue-light);
    transition: all 0.3s ease;
}

.date-item.past-training {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.training-date {
    color: var(--white);
    font-weight: 500;
}

.completion-status {
    font-size: 1.2rem;
}

.post-details {
    margin-top: 20px;
}

.accordion {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-toggle {
    width: 100%;
    background: rgba(0, 26, 56, 0.5);
    border: none;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-toggle:hover {
    background: rgba(0, 26, 56, 0.7);
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion.active .toggle-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 26, 56, 0.3);
}

.accordion.active .accordion-content {
    max-height: 1000px;
}

.accordion-content>div {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-content>div:last-child {
    border-bottom: none;
}

.training-content h6,
.additional-info h6 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1rem;
}

.content-text,
.info-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.telegram-link-container {
    text-align: center;
    padding: 15px 20px !important;
}

.telegram-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.telegram-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.training-go {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 10px;
}

.training-go p {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.1rem;
}

.no-posts-message {
    text-align: center;
    margin: 60px 0;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}


/* Специфичные стили для десктопа */
@media (min-width: 769px) {
    .timeline-post {
        display: flex;
        flex-direction: column;
    }

    .post-card {
        margin-left: 0;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-post {
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-post:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-post:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-post:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-post:nth-child(4) {
    animation-delay: 0.4s;
}

/* Исправление для flexbox в Safari */
@supports (-webkit-touch-callout: none) {

    .faq-question,
    .rule-item {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
}

/* Telegram Icon Styles */
.telegram-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #0062B3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.telegram-icon:hover {
    background: linear-gradient(135deg, #0062B3 0%, #0088cc 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Пульсация для привлечения внимания*/
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

.telegram-icon {
    animation: pulse 2s infinite 3s;
}

@supports (-webkit-touch-callout: none) {
    .telegram-icon {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Адаптивность */
@media (min-width: 1200px) {

    .events-list,
    .news-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0;
        scrollbar-width: none;
    }

    .events-list::-webkit-scrollbar,
    .news-list::-webkit-scrollbar {
        display: none;
    }

    .horizontal-card {
        min-width: auto;
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .horizontal-card img {
        height: 300px;
        /* Уменьшаем высоту изображения */
        object-fit: cover;
    }

    .horizontal-card-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .nav-main li {
        margin: 0 10px;
    }

    .nav-main a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-subtitle {
        font-size: 18px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    .events-list,
    .news-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none;
    }

    /*.events-list::-webkit-scrollbar,
    .news-list::-webkit-scrollbar {
        display: block;
    }*/

    .horizontal-card {
        min-width: auto;
        max-width: 400px;
    }
}

@media (max-width: 1199px) {

    .events-list,
    .news-list {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding: 20px 0;
    }
}

@media (min-width: 993px) {
    .mobile-profile-btn {
        display: none;
    }
}

@media (max-width: 992px) {
    .nav-main {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: left 0.35s ease;
    }

    .nav-main.active {
        left: 0;
    }

    .nav-main li {
        margin: 0 0 15px 0;
        width: 100%;
    }

    .nav-main a {
        padding: 10px 15px;
        font-size: 15px;
    }

    .nav-main li.active::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        margin-left: auto;
        padding-right: 50px;
    }

    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .slide-content {
        bottom: 60px;
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-content {
        flex-direction: column;
    }

    .detail-image-container {
        flex: 1;
    }

    .detail-image {
        height: 300px;
    }

    .header-actions {
        display: none;
    }

    .mobile-profile-btn {
        display: block;
        margin-top: 20px;
    }

    .mobile-profile-btn .btn {
        width: 100%;
        text-align: center;
    }

    .new-about-grid {
        grid-template-columns: 1fr;
    }

    .about-left-column,
    .about-right-column {
        flex-direction: row;
    }

    .about-mission-text {
        flex: 1;
    }

    .about-main-image {
        flex: 2;
    }

    .mission-container {
        flex-direction: column;
        gap: 40px;
    }

    .mission-heading {
        font-size: 2rem;
    }

    .mission-tagline {
        font-size: 1.2rem;
        padding: 10px;
        align-self: center;
    }

    .mission-content {
        align-items: flex-start;
        justify-content: flex-start;
        align-self: center;
    }

    .mission-visual {
        padding-left: 8%;
        align-items: center;
        /*justify-content: flex-start;*/
        height: 115%;
        width: 115%;
        align-self: center;
    }

    .mission-description {
        padding: 10px;
    }
}

@media (max-width: 991px) {

    .events-list,
    .news-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 30px;
        /* Добавляем место для скроллбара */
    }

    .horizontal-card {
        min-width: auto;
        max-width: 400px;
    }
}

@media screen and (max-width: 768px) {
    .rule-item {
        -webkit-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }

    .rule-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .nav-main {
        padding: 80px 30px 30px;
    }

    .mobile-logo {
        display: block;
    }

    .hero-slider {
        height: 60vh;
        min-height: 300px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        animation: none;
    }

    .horizontal-card {
        min-width: 300px;
        max-width: 350px;
    }

    .horizontal-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .about-block,
    .about-block.reverse {
        flex-direction: column;
    }

    .about-image {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .about-left-column,
    .about-right-column {
        flex-direction: column;
    }

    .rule-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rule-content h3 {
        text-align: center;
    }

    .fiticer-item {
        margin: 0 -20px;
        padding: 40px 0;
    }

    .fiticer-content {
        flex-direction: column;
        text-align: center;
    }

    .fiticer-photo img {
        width: 200px;
        height: 200px;
    }

    .project-section {
        padding: 20px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        padding: 20px;
    }

    .detail-image-container {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }

    .detail-image {
        height: 250px;
        width: 100%;
    }

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

    .training-posts-grid {
        grid-template-columns: 1fr;
    }

    .training-post-card {
        padding: 20px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .status-badge {
        align-self: flex-start;
    }

    .join-card {
        padding: 25px;
    }

    .position-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .position-status {
        align-self: flex-start;
    }

    .user-level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-photo-section {
        align-self: flex-end;
    }

    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-main-content {
        padding: 20px;
    }

    .month-title {
        font-size: 1.5rem;
    }

    .dates-grid {
        grid-template-columns: 1fr;
    }

    .date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .training-actions {
        padding: 20px;
    }

    .profile-info-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .user-photo-container {
        width: 150px;
        height: 150px;
    }

    .profile-tabs {
        flex-wrap: wrap;
        /* Разрешаем перенос на новую строку */
        justify-content: center;
        /* Выравниваем по центру */
        gap: 8px;
        /* Добавляем отступ между кнопками */
    }

    .profile-tab {
        flex: 1;
        /* Кнопки растягиваются по ширине */
        min-width: 45%;
        /* Минимальная ширина кнопки ~ половина контейнера */
        text-align: center;
        padding: 10px 12px;
        /* Немного уменьшаем отступы */
        font-size: 14px;
        /* Уменьшаем размер шрифта для мобильных */
    }

    .profile-tab.active::after {
        display: none;
        /* Скрываем нижнюю полоску, так как она может смотреться странно при переносе */
    }

    .telegram-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}


@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .slider-controls {
        bottom: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .training-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .training-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .training-actions .btn {
        width: 100%;
    }

    .detail-image {
        height: 250px;
    }

    .detail-content {
        gap: 25px;
    }

    .support-container {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .mission-section {
        padding: 50px 0;
    }

    .mission-heading {
        font-size: 1.8rem;
    }

    .mission-description {
        align-self: center;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .telegram-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 12px;
        right: 12px;
    }
}

_:-webkit-full-screen, .telegram-icon {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}