body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background-image: url('assets/background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.header {
    margin-bottom: 40px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

p {
    font-size: 1.1rem;
    color: #d1d1d1;
}

/* Сетка карточек выбора режимов */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mode-card {
    background: rgba(20, 10, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mode-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.mode-card p {
    font-size: 0.95rem;
    color: #bcd;
    margin-bottom: 20px;
}

/* Кнопки */
.btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    width: 100%;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Секция форм */
.form-section, .result-section {
    background: rgba(15, 8, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.astro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.person-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.person-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffd700;
}

.input-field {
    margin-bottom: 12px;
}

.input-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ccc;
}

.input-field input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.back-btn {
    background: transparent;
    border: none;
    color: #a0c4ff;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
}

.back-btn:hover {
    text-decoration: underline;
}

.result-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    min-height: 150px;
    text-align: center;
    color: #e2e8f0;
}