:root {
    --bg: #f8f4ed;
    --text: #333;
    --accent: #8b6f47;
    --card: rgba(255,255,255,0.85);
}

[data-theme="dark"] {
    --bg: #1a1a1a;
    --text: #e0d9c8;
    --accent: #c9a66b;
    --card: rgba(40,40,40,0.85);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.5s;
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(248, 244, 237, 0.85);
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

[data-theme="dark"] header {
    background: rgba(26,26,26,0.85);
    border-bottom: 1px solid #444;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/static/images/gogolev1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
}

.content {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.card {
    background: var(--card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.illustration {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139,111,71,0.3);
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(0,0,0,0.05);
    font-size: 0.95rem;
    margin-top: 4rem;
}

/* Эффекты появления */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.2s ease-out;
}

.fade-in-img.visible {
    opacity: 1;
    transform: scale(1);
}

.big-text {
    font-size: 2.2rem;
    text-align: center;
    margin: 2rem 0;
}

.name {
    font-size: 2.8rem;
    text-align: center;
    color: var(--accent);
    margin: 1rem 0 3rem;
}

.btn-center {
    text-align: center;
    margin: 2rem 0;
}
