* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('/static/images/background.jpg');
    /*background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 20% затемнения */
    pointer-events: none;
    z-index: 0;
}

main p,
main span,
main li,
main .text-content,
main div:not(.special) {
    color: #d4c5a9;
    font-size: 1.15rem;
    line-height: 1.6;
}

main h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

main h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

main h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

nav p, nav span, nav li,
footer p, footer span, footer li {
    font-size: 1rem;
    color: #d4c5a9;
}

/* Ссылки */
a {
    color: #c4a47a;
    transition: color 0.2s ease;
    text-decoration: none;
}

a:hover {
    color: #e8d5b5;
}

/* Стили для форм */
input, select, textarea {
    color: #d4c5a9;
    font-size: 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(139, 58, 58, 0.4);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

input::placeholder, select::placeholder {
    color: #8a7a6a;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c4a47a;
    box-shadow: 0 0 10px rgba(196, 164, 122, 0.2);
}

/* Кнопки */
button {
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Карточки */
.card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 58, 58, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(20, 20, 30, 0.8);
    border-color: rgba(139, 58, 58, 0.6);
    box-shadow: 0 0 20px rgba(139, 58, 58, 0.1);
}

/* Утилиты */
.text-accent {
    color: #c4a47a;
}

.text-parchment {
    color: #d4c5a9;
}

/* Scroll decoration */
.scroll-decoration {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b3a3a, #c4a47a, #8b3a3a, transparent);
    width: 100%;
}

/* Анимации */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px #8b3a3a, 0 0 10px #8b3a3a; }
    50% { text-shadow: 0 0 20px #c4a47a, 0 0 30px #8b3a3a; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-flicker {
    animation: flicker 3s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Анимация для выпадающего меню */
.group:hover svg {
    transform: rotate(180deg);
}

.group svg {
    transition: transform 0.2s ease;
}

/* Мобильное подменю */
.mobile-submenu {
    transition: all 0.2s ease;
}