@font-face {
  font-family: "Bastion";
  font-style: normal;
  font-weight: 400;
  src: local("Bastion"),
       url("/static/fonts/Bastion.woff2") format("woff2"),
       url("/static/fonts/Bastion.woff") format("woff");
}

@font-face {
  font-family: "Helios";
  font-style: normal;
  font-weight: 400;
  src: local("Helios"),
       url("/static/fonts/HeliosRegular.woff2") format("woff2"),
       url("/static/fonts/HeliosRegular.woff") format("woff");
}

.error404 {
    margin: 120px auto;
    max-width: 90%;

}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    padding-top: 80px;
    min-height: 100vh;
    background: #f5e3c4;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    overflow-x: hidden;
}

.logos {
    min-width: 90%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    text-align: center;
}

.logos a img {
    border-radius: 3%;
    height: 120px;
    margin: 5px;
}

h1 {
    font-family: "Bastion", "Golos Text", Arial, sans-serif;
    font-weight: 400;
    color: #e7362c;
    text-shadow: 0 1px 0 #3a8d9e;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    font-size: 3em;
}

h2, h3 {
    font-family: "Bastion", "Golos Text", Arial, sans-serif;
    font-weight: 400;
    color: black;
}

p, span, li {
    font-family: "Helios", "Golos Text", Arial, sans-serif;
    font-weight: 400;
    color: #f5e3c4;
    font-size: 1.15em;
}

.article-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.article-img img {
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 48%;
    height: auto;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.article-img img:hover {
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .article-img img {
        max-width: 32%;
    }
}

.article-text {
    margin: 20px;
    padding-bottom: 10px;
    font-size: 18px;
    text-align: left;
    justify-content: left;

}

.article-text p {
    color: black;
}

.topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo img {
    height: 70px;
    width: auto;
    margin-left: 5px;

}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.2em;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.menu a:hover {
    color: #3cbac6;
}

.maps-img img {
    max-width: 1280px;
    width: 100%;
    height: auto;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 15px;
}

.map-item {
    margin-bottom: 30px;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}

.map-header h3 {
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.download-btn {
    border: 1px white solid;
    background: linear-gradient(to right top, #ea6511, #e7362c);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-right: 20px;
}

.download-btn:hover {
    background: linear-gradient(to right top, #e7362c, #ea6511);;
}

.nav-point-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.nav-point-item {
    flex: 1;
    text-align: center;
}

.nav-point-item:first-child {
    text-align: left;
}

.nav-point-item:last-child {
    text-align: right;
}

.nav-point-button {
    background: linear-gradient(to right top, #ea6511, rgba(231, 54, 44, 0.3));
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.nav-point-button:hover {
    background: linear-gradient(to right top, #ea6511, rgba(231, 54, 44, 0.6));;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.points-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.point-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.point-item:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.point-item span {
    font-family: "Bastion", "Golos Text", Arial, sans-serif;
    font-weight: 500;
    color: black;
}

.points-button {
    background-color: #ea6511;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.points-button:hover {
    background-color: #e7362c;
    color: #333;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
}

.menu-toggle img {
    height: 30px;
    width: 30px;
}

@media (max-width: 768px) {
    .logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logos a {
        flex: 0 0 calc(50% - 10px);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logos a img {
        width: auto;
        height: 60px;
        max-width: 100%;
    }

    h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
        word-break: break-word;
    }

    .menu {
        display: none; /* Hide desktop menu */
        position: absolute;
        top: 70px; /* Adjust as per topbar height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: block; /* Show mobile menu */
    }

    .menu ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu a {
        display: block;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .nav-point-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-point-item,
    .nav-point-item:first-child,
    .nav-point-item:last-child {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .nav-point-button {
        width: 80%;
    }

    .video-container {
        max-width: 100%;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.new_life {
    display: flex;
    height: 90%;
    width: auto;
    border-radius: 45%;
    margin-bottom: 2em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.new_life::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(255, 255, 255, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 45%;
}

.new_life:hover {
    transform: scale(1.25);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border-radius: 35%;
}

.new_life:hover::before {
    opacity: 1;
}

/* Эффект мягкого свечения */
.new_life::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    filter: blur(30px);
    opacity: 0;
    animation: gradientShift 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.new_life:hover::after {
    opacity: 0.8;
}

/* Эффект волны при клике */
.new_life:active {
    transform: scale(1.2);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .new_life {
        height: 60%;
        margin-bottom: 1.5em;
    }

    .new_life:hover {
        transform: scale(1.15);
    }

    .new_life::after {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        filter: blur(25px);
    }
}

/* Стили для новостных карточек */
.news-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.news-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 200px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInNews 0.8s ease-out forwards;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.3s; }
.news-card:nth-child(3) { animation-delay: 0.5s; }
.news-card:nth-child(4) { animation-delay: 0.7s; }
.news-card:nth-child(5) { animation-delay: 0.9s; }

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.news-card:hover::before {
    transform: translateX(100%);
}

.news-card-image {
    flex: 0 0 250px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 0;
}

.news-card-header {
    display: block;
    font-family: "Bastion", "Golos Text", Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: right;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease-out forwards;
    animation-delay: 0.2s;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-header {
    color: #1e3a8a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.news-card-text {
    font-family: "Helios", "Golos Text", Arial, sans-serif;
    color: #34495e;
    line-height: 1.6;
    font-size: 18px;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out forwards;
    animation-delay: 0.4s;
    transition: all 0.3s ease;
}

.news-card:hover .news-card-text {
    color: #2c3e50;
}

/* Анимации */
@keyframes slideInNews {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Эффект пульсации для новых новостей */
.news-card.new-news {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(231, 54, 44, 0.3);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .news-container {
        width: 90%;
        padding: 15px;
    }

    .news-card {
        flex-direction: column;
        padding: 15px;
        transform: translateY(20px);
    }

    .news-card-image {
        flex: none;
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .news-card-header {
        font-size: 20px;
        text-align: center;
        transform: translateY(20px);
    }

    .news-card-text {
        font-size: 18px;
        transform: translateY(20px);
    }

    /* Упрощенные анимации для мобильных */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
