/* === FOXNOVA — DESKTOP === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #020010;
    --bg-card: rgba(10, 5, 30, 0.75);
    --text: #e8e0ff;
    --text-secondary: #9888c8;
    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.5);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.5);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.5);
    --radius: 24px;
    --radius-sm: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bg-pulse 8s ease-in-out infinite;
}

@keyframes bg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes nova-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
    30% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
    60% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(1.5deg); }
    66% { transform: translateY(12px) rotate(-1.5deg); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }

.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(2, 0, 16, 0.7);
    backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.nav {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.nav__logo {
    font-size: 1.6rem; font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--cyan));
    background-size: 300% 300%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
    letter-spacing: -0.5px;
}

.nav__logo-img { height: 64px; width: auto; vertical-align: middle; margin-right: 8px; }
.nav__list { display: flex; list-style: none; gap: 36px; }

.nav__link {
    font-weight: 500; color: var(--text-secondary);
    transition: all var(--transition); position: relative; font-size: 0.95rem;
}

.nav__link::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width var(--transition); border-radius: 2px;
}

.nav__link:hover { color: #fff; text-shadow: 0 0 20px var(--purple-glow); }
.nav__link:hover::after { width: 100%; }

.hero {
    position: relative; min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; z-index: 1;
}

.hero::after {
    content: ''; position: absolute; top: 60%; left: 50%;
    transform: translate(-50%, -50%);
    width: 540px; height: 540px;
    background: radial-gradient(
        circle,
        rgba(255, 240, 180, 1) 0%,
        rgba(255, 200, 80, 0.9) 8%,
        rgba(255, 140, 40, 0.6) 18%,
        rgba(255, 90, 30, 0.35) 28%,
        rgba(200, 60, 180, 0.2) 42%,
        rgba(100, 30, 200, 0.1) 58%,
        transparent 100%
    );
    border-radius: 50%;
    animation: nova-pulse 5s ease-in-out infinite;
    pointer-events: none; z-index: 0; filter: blur(15px);
}

.hero::before {
    content: ''; position: absolute; top: 60%; left: 50%;
    transform: translate(-50%, -50%);
    width: 720px; height: 720px;
    background: radial-gradient(
        circle,
        rgba(255, 200, 80, 0.15) 0%,
        rgba(200, 100, 255, 0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none; z-index: 0;
    animation: nova-pulse 6s ease-in-out infinite reverse;
}

.hero__content { position: relative; z-index: 2; padding: 40px 0; }

.hero__title {
    font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900; line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff5c0 0%, #ffcc00 15%, #ff8c00 30%, #ff4400 45%, #ff66aa 60%, #cc44ff 80%, #fff5c0 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: -3px; text-align: center;
    filter: drop-shadow(0 0 40px rgba(255, 140, 0, 0.6))
            drop-shadow(0 0 80px rgba(255, 60, 0, 0.4))
            drop-shadow(0 0 120px rgba(200, 60, 255, 0.3));
}

.hero__tagline {
    font-size: 1.4rem; color: var(--text-secondary);
    margin-bottom: 56px; max-width: 650px;
    margin-left: auto; margin-right: auto; text-align: center; line-height: 1.5;
}

.hero__actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.hero__placeholder {
    position: absolute; right: -80px; top: 50%;
    transform: translateY(-50%); font-size: 25rem;
    opacity: 0.03; pointer-events: none; user-select: none;
    animation: float 10s ease-in-out infinite; z-index: 0; filter: blur(3px);
}

.btn {
    display: inline-block; padding: 18px 36px; border-radius: 60px;
    font-weight: 600; font-size: 1.05rem; border: none; cursor: pointer;
    transition: all var(--transition); position: relative; overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.1);
    border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 400px; height: 400px; }

.btn--primary {
    background: linear-gradient(135deg, #ff8c00, #ff4400);
    color: #fff; font-size: 1.15rem; font-weight: 700;
    box-shadow: 0 4px 30px rgba(255, 100, 0, 0.5);
}

.btn--primary:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 60px rgba(255, 100, 0, 0.7); }

.btn--secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover { background: rgba(168, 85, 247, 0.15); border-color: var(--purple); box-shadow: 0 0 50px var(--purple-glow); transform: translateY(-3px); }

.btn--outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; box-shadow: 0 0 40px var(--accent-glow); }
.btn--small { padding: 10px 22px; font-size: 0.85rem; border-radius: 40px; }

.section { padding: 120px 0; position: relative; z-index: 1; }
.section__title {
    font-size: 3rem; font-weight: 900; margin-bottom: 64px; text-align: center;
    background: linear-gradient(135deg, #fff 0%, #fff 40%, var(--purple) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section__footer { text-align: center; margin-top: 56px; }

.about__content { display: flex; gap: 56px; align-items: center; }
.about__avatar {
    width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
                linear-gradient(135deg, var(--accent), var(--purple), var(--cyan)) border-box;
    box-shadow: 0 0 60px var(--accent-glow);
}

.skills { margin-top: 28px; }
.skills h3 { margin-bottom: 14px; color: var(--text-secondary); font-size: 1.1rem; }
.skills__list { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
    padding: 10px 22px; background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 60px;
    font-size: 0.9rem; color: var(--purple);
    backdrop-filter: blur(10px); transition: all var(--transition); cursor: default;
}

.skill-tag:hover { background: rgba(168, 85, 247, 0.2); border-color: var(--purple); box-shadow: 0 0 30px var(--purple-glow); transform: translateY(-3px); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); font-size: 1.2rem; width: 100%; grid-column: 1 / -1; opacity: 0.7; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 32px; }

.project-card {
    background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: all var(--transition); backdrop-filter: blur(20px);
}

.project-card:hover { transform: translateY(-8px); border-color: rgba(249, 115, 22, 0.5); box-shadow: 0 30px 80px rgba(249, 115, 22, 0.2), 0 0 50px var(--accent-glow); }
.project-card__image { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card__image { transform: scale(1.05); }
.project-card__body { padding: 32px; }
.project-card__body h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; }
.project-card__category { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.project-card__body p { color: var(--text-secondary); margin: 16px 0; font-size: 0.95rem; line-height: 1.7; }
.project-card__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-card__action { text-align: center; margin-top: 20px; }

.btn--live {
    background: linear-gradient(135deg, #ff6a00, #ff2d00);
    color: #fff; font-size: 1.05rem; font-weight: 700;
    padding: 14px 32px; border-radius: 50px;
    box-shadow: 0 4px 25px rgba(255, 80, 0, 0.5);
    width: 100%; text-align: center;
}

.btn--live:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 40px rgba(255, 80, 0, 0.8); }

.news-list { display: flex; flex-direction: column; gap: 32px; }

.news-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 40px;
    border: 1px solid rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(20px); transition: all var(--transition);
}

.news-card:hover { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15); transform: translateX(4px); }
.news-card__meta { display: flex; gap: 20px; margin-bottom: 20px; font-size: 0.9rem; flex-wrap: wrap; align-items: center; }
.news-card__date { color: var(--text-secondary); }
.news-card__type { color: var(--accent); font-weight: 700; }
.news-card__project { color: var(--purple); background: rgba(168, 85, 247, 0.1); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; }
.news-card__image { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 28px; }
.news-card__text { color: var(--text-secondary); margin: 24px 0; line-height: 1.9; font-size: 1.05rem; }
.news-card__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.story-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 1; cursor: pointer;
    border: 1px solid rgba(168, 85, 247, 0.1); transition: all var(--transition);
}

.story-card:hover { transform: scale(1.04); border-color: var(--purple); box-shadow: 0 30px 80px var(--purple-glow); }
.story-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.story-card:hover .story-card__image { transform: scale(1.12); }
.story-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(2, 0, 16, 0.95)); font-weight: 600; font-size: 1.05rem; }

.donate__info { max-width: 680px; margin: 0 auto 64px; text-align: left; color: var(--text-secondary); font-size: 1.15rem; line-height: 1.9; }
.donate__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.donate-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 48px 32px; background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.12); border-radius: var(--radius);
    text-align: center; transition: all var(--transition); backdrop-filter: blur(20px);
}

.donate-card:hover { border-color: var(--accent); box-shadow: 0 30px 80px var(--accent-glow); transform: translateY(-8px); }
.donate-card__platform { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; }
.donate-card__label { font-size: 1.5rem; font-weight: 800; }
.donate-card__desc { color: var(--text-secondary); font-size: 0.95rem; }

.page-header { text-align: center; padding: 120px 0 40px; position: relative; z-index: 1; }
.page-header h1 { font-size: 4rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--purple), var(--cyan)); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 5s ease infinite; text-align: center; letter-spacing: -1px; }
.page-header p { color: var(--text-secondary); margin-top: 20px; font-size: 1.2rem; text-align: center; }

.filter-bar { display: flex; justify-content: center; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }
.filter-btn { padding: 14px 30px; border-radius: 60px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(168, 85, 247, 0.12); color: var(--text-secondary); cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: all var(--transition); backdrop-filter: blur(10px); }
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); transform: translateY(-2px); }

.footer { border-top: 1px solid rgba(168, 85, 247, 0.08); padding: 32px 0; margin-top: 120px; position: relative; z-index: 1; text-align: center; }
.footer__content { display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--text-secondary); font-size: 0.95rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { transition: all var(--transition); font-weight: 500; }
.footer__links a:hover { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }

.cp-table thead th { padding-top: 0 !important; }

/* === ГАМБУРГЕР (ПК — скрыт) === */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
