body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    color: #1e293b;
}

header {
    background-color: #0f172a;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #e2e8f0;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #38bdf8;
}

main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: transparent; 
    border-radius: 0;
    box-shadow: none;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #000000;
    color: #ffffff; 
    background-color: #0f172a; /* такой же цвет, как у хедера */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    margin-top: 40px;
}

h1, h2, h3 {
    color: #0f172a;
}

img {
    border-radius: 10px;
    margin-top: 10px;
    max-width: 100%;
}

.team-member {
    text-align: center;
    margin: 20px 0;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

button {
    background-color: #38bdf8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #0284c7;
}

/* === Космическая тема === */
body {
    background-color: #000;
    color: #ffea00;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
}

.main-content {
    position: relative;
    z-index: 2;
    text-align: center;
    
}

.page-title {
    font-size: 2em;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #ffea00;
}

.subtitle {
    font-size: 1.1em;
    color: #ffea00;
    margin-bottom: 40px;
}

/* Звёздный фон */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url("../img/stardust.png") repeat;
    animation: twinkle 130s infinite linear;
    z-index: 1;
    opacity: 0.8;
}

@keyframes twinkle {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* === Разделы с раскрытием === */
.sections {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.section {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.85); /* глубокий чёрный фон */
    border: 1px solid rgba(255, 255, 255, 0.1); /* лёгкий контур, как свечение */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); /* мягкое «сияние» вокруг */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: scale(1.01);
    box-shadow: 0 0 25px rgba(255, 255, 200, 0.1);
}

.toggle-btn {
    font-family: "Segoe UI", Roboto, sans-serif;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: #ffea00;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
}

.toggle-btn:hover {
    color: #fff200;
}

.section-content {
    
    display: none;
    margin-top: 10px;
    font-size: 1em;
    color: #f6e58d;
    line-height: 1.5em;
}

.section-content.active {
    display: block;
}

.spark {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: #f1f1ec;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: spark 1.1s ease-out forwards;
    box-shadow: 0 0 12px 4px #f1f1ec;
    z-index: 3;
}

@keyframes spark {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    50% {
        transform: scale(0.6);
        opacity: 0.9;
        box-shadow: 0 0 20px 8px #e2e0d5;
    }
    100% {
        transform: scale(0.1) translateY(100px);
        opacity: 0;
        box-shadow: 0 0 5px 2px #e2e0d5;
    }
}