/* styles/main.css */
:root {
    --system-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #60b5ff 0%, #00f2fe 100%);
    --quaternary-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --quinary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --tertiary-color: #60b5ff;
    --light-bg: #f8f9ff;
    --alt-light-bg: #f0f8ff;
    --accent-blue: #e3f2fd;
    --accent-green: #e8f5e8;
    --accent-orange: #fff3e0;
    --accent-purple: #f3e5f5;
    --accent-pink: #fce4ec;
    --text-shadow-light: 0 1px 2px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--system-font);
    line-height: 1.6;
    color: #333;
    background: linear-gradient(90deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top секция: краткая информация */
.top-section {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-section .container {
    display: flex;
    align-items: center;
}

.photo {
    flex: 0 0 150px;
    margin-right: 2rem;
    margin-left: 2rem;
}

.photo img {
    height: 16rem;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.info {
    flex: 1;
    padding: 0rem 2rem;
}

.info h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: var(--system-font);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.info p {
    margin-bottom: 0.6rem;
    opacity: 0.95;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.info p strong {
    font-weight: 600;
    opacity: 1;
}

.info a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
}

.info a:hover {
    border-bottom-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.top-links {
    margin-left: auto;
    text-align: right;
    align-self: start;
}

.top-links a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
}

.top-links a:hover {
    border-bottom-color: rgba(255, 255, 255, 1);
}

/* Навигация: sticky при скролле */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[id] {
    scroll-margin-top: 70px;
}

.navbar .container {
    overflow-x: auto;
    text-align: center;
}

.navbar ul {
    list-style: none;
    display: inline-flex;
    gap: 1rem;
    margin-top: 2px;
    margin-bottom: 2px;
}

.navbar button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: #667eea;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-family: var(--system-font);
    white-space: nowrap;
}

.navbar button:hover,
.navbar button.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem 0;
}

main .container {
    padding: 0 2rem;
}

#content {
    animation: fadeIn 0.5s ease-in-out;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Плейсхолдеры для других секций */
.placeholder {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-style: italic;
    font-family: var(--system-font);
}

.placeholder h2 {
    margin-bottom: 1rem;
    color: #667eea;
    font-weight: 500;
}

/* Футер */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    font-family: var(--system-font);
    font-weight: 300;
}

/* Адаптивность */
@media (max-width: 768px) {
    .top-section .container {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .top-links {
        margin-left: 0;
        text-align: center;
        margin-top: 1rem;
        align-self: center;
    }
}