/* === Сброс и База === */
:root {
    /* Спокойный ночной градиент */
    --bg-dark: #0f1623;  /* Темно-синий (левый низ) */
    --bg-light: #1c2b45; /* Чуть светлее (правый верх) */
    
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    
    --accent: #5288c1; /* Цвет кнопок */
    --accent-hover: #6ab3f3;
    
    --gold: #ffe082; /* Цвет звезд и свечения */
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: linear-gradient(to top right, var(--bg-dark), var(--bg-light));
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* === Звезды (Фон) === */
#star-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    opacity: 0.6;
    animation: twinkle ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* === Контейнер === */
.wrap {
    position: relative;
    z-index: 1; /* Поверх звезд */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Шапка === */
.header {
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

/* === Hero Секция === */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px); /* Адаптивный размер */
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 300;
}

/* Аватарка */
.avatar-glow img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    /* Мягкое золотистое свечение */
    box-shadow: 0 0 50px rgba(255, 224, 130, 0.15); 
    animation: float 6s ease-in-out infinite;
}

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

/* Адаптивность картинки: на мобайле она сверху, на десктопе справа */
.hero-image-mobile { display: none; }
.hero-image-desktop { display: block; }

/* Кнопка (Обновленная) */
.btn-primary {
    display: inline-flex; /* Чтобы иконка и текст стояли рядом */
    align-items: center;
    gap: 12px; /* Отступ между самолетиком и текстом */
    
    background: var(--accent);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px; /* Сильное скругление (капсула) */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(82, 136, 193, 0.4);
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 136, 193, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* === Блок описания === */
.description-block {
    background: rgba(255, 255, 255, 0.03); /* Очень легкая подложка */
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.description-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 24px;
    color: #fff;
}

.text-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.text-content p:last-child { margin-bottom: 0; }

/* === Подвал === */
.footer {
    margin-top: auto; /* Прижимает к низу */
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px; /* Чуть меньше отступ снизу */
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.copyright {
    display: none; /* Скрываем копирайт, как просили */
}

/* === АДАПТИВ (Mobile) === */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        gap: 30px;
    }

    /* На телефоне картинка идет ПЕРВОЙ */
    .hero-image-desktop { display: none; }
    .hero-image-mobile { 
        display: block; 
        margin-bottom: 10px;
    }

    .avatar-glow img {
        width: 200px; /* Уменьшаем для мобилок */
        height: 200px;
        box-shadow: 0 0 30px rgba(255, 224, 130, 0.1);
    }

    h1 {
        font-size: 32px; /* Аккуратный крупный заголовок */
        margin-bottom: 16px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        padding: 0 10px; /* Отступы чтобы текст не лип к краям */
    }

    .btn-primary {
        width: 100%; /* Кнопка во всю ширину */
        justify-content: center; /* Центрируем контент внутри кнопки */
        padding: 18px; /* Чуть выше для пальца */
        font-size: 18px;
    }

    .description-block {
        padding: 24px; /* Меньше паддинг внутри блока */
        margin-bottom: 40px;
    }

    .description-block h2 {
        font-size: 22px;
        text-align: center; /* Центрируем заголовок блока на мобилке */
    }
}