* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* === Hero === */
.hero {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-launcher {
    background: #007bff;
    color: #fff;
    padding: 18px 50px;
    font-size: 28px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0,123,255,0.7);
    margin-top: 40px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    font-size: 18px;
}

/* === Секции === */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 20px;
}

.page-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* === FAQ и колонки === */
.faq-block h2 { font-size: 40px; margin-bottom: 60px; }
.faq-buttons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.faq-btn {
    background: rgba(0,0,0,0.5);
    padding: 30px 40px;
    border-radius: 12px;
    width: 220px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    text-align: center;
}
.faq-btn img { width: 60px; height: 60px; margin-bottom: 15px; }

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}
.column {
    background: rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 12px;
}

.subscribe-form { display: flex; margin-top: 20px; }
.subscribe-form input { flex: 1; padding: 12px; border-radius: 6px 0 0 6px; border: none; }
.subscribe-form button { padding: 12px 25px; background: #007bff; color: #fff; border: none; border-radius: 0 6px 6px 0; }

/* === Шапка (налазит на hero) === */
header {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 12px 0;
    background: rgba(15, 20, 35, 0.5);
    backdrop-filter: blur(0px);
    border-top: 2px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    z-index: 100;
    transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

header.sticky {
    position: fixed;
    top: 0;
    background: rgba(15, 20, 35, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 120px;
}

header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    font-size: 24px;
    letter-spacing: 0.4px;
}

.logo-wrap { width: 78px; height: 48px; display: flex; align-items: center; justify-content: center; }
.logo { width: 100%; height: 100%; display: block; }

.menu-item {
    position: relative;
    color: #c9d4ff;
    text-decoration: none;
    padding: 0 24px;
    transition: color 0.2s ease;
}
.menu-item:hover, .menu-item.active { color: #ffffff; }
.menu-item.active { font-size: 26px; }

.menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 60%;
    transform: translateY(-50%);
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #5b628c, transparent);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00aaff;
    border-radius: 2px;
    box-shadow: 0 0 10px #00aaff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 0;
}

.autorisation {
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.burger { display: none; font-size: 30px; cursor: pointer; color: #fff; }

/* === Анимация перелистывания страниц === */
.main-content {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Анимация перелистывания — исправленная версия */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.page.active {
    position: relative;
    z-index: 10;
}

/* Уход старой страницы */
.slide-out-left { transform: translateX(-100%); }
.slide-out-right { transform: translateX(100%); }

/* Вход новой страницы — с правильной стороны */
.slide-in-from-right {
    transform: translateX(100%);
    animation: slideFromRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-from-left {
    transform: translateX(-100%);
    animation: slideFromLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* === Контент страниц === */
.news-list, .donate-options, .team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-item, .donate-item, .team-member {
    background: rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.btn-donate {
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* === Футер === */
footer {
    background: rgba(10,0,30,0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.online-dot {
    width: 12px; height: 12px; background: #00ff00; border-radius: 50%;
    margin-right: 10px; box-shadow: 0 0 10px #00ff00; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 10px #00ff00; } 50% { box-shadow: 0 0 20px #00ff00; } }

/* === Responsive === */
@media (max-width: 1024px) {
    .header-inner { padding: 0 40px; }
    .menu-item { padding: 0 15px; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; position: relative; }
    .burger { display: block; }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 20, 35, 0.9);
        backdrop-filter: blur(12px);
        padding: 20px 0;
    }
    .menu.open { display: flex; }
    .menu-item { padding: 15px 20px; text-align: center; font-size: 22px; }
    .menu-item:not(:last-child)::after { display: none; }
    .autorisation { display: none; }
    .autorisation.open { display: block; padding: 15px 20px; text-align: center; margin-top: 10px; }
    .underline { display: none; }
    .info-columns, .news-list, .donate-options, .team-members { grid-template-columns: 1fr; }
    .hero { height: 80vh; }
}