* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s;
}

.nav a:hover { color: #667eea; }
.nav a:hover::after { width: 100%; }

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

/* Главный экран */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.3"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    animation: fadeUp 1s ease;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 7vw, 84px);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Секции */
.section {
    padding: 100px 0;
}

.section-alt {
    background: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* О семье */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #4a5568;
}

.about-list {
    list-style: none;
    margin-top: 25px;
}

.about-list li {
    padding: 10px 0;
    font-size: 17px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102,126,234,0.3);
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    display: block;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
}

/* Древо */
.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tree-level {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.person {
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    font-weight: 500;
    min-width: 180px;
    border-top: 4px solid #667eea;
    transition: transform 0.3s;
}

.person:hover {
    transform: translateY(-5px);
}

.person small {
    display: block;
    color: #718096;
    font-weight: 300;
    font-size: 13px;
    margin-top: 5px;
}

.tree-line {
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    margin: 10px 0;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 220px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Форма */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form .btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    color: #38a169;
    font-weight: 500;
}

/* Подвал */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 5px 0;
    opacity: 0.85;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .burger { display: block; }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav.active { max-height: 400px; }
    
    .nav a {
        padding: 18px 25px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .tree-level { gap: 15px; }
    .person { min-width: 140px; padding: 15px; font-size: 14px; }
}