:root {
    --beige: #eae6e3;
    --text: #1a1a1a;
    --gray: #6b7280;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

.site-name {
    font-size: 1.5em;
    margin: 0;
}

nav {
    display: flex;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: bold;
}

.footer {
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: flex-end;
}

.footer-right {
    color: #9CA3AF;
    font-size: 14px;
}

/* Верхняя полоса */
.top-strip {
    height: 200px;
    background-color: var(--beige);
}

/* Основной блок */
.hero-overlap {
    background: #ffffff;
    text-align: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Контент */
.hero-inner {
    position: relative;
}

/* Аватар (главное!) */
.avatar-wrapper {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    object-fit: cover;
}

.hero-text {
    margin-top: 30px;
    text-align: center;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.hero-text h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text);
}

.hero-text p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Соцсети */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 22px;
    height: 22px;
    fill: #6b7280; /* серый */
    transition: all 0.2s ease;
}

/* hover — аккуратный, без кричащего цвета */
.icon:hover {
    fill: #1a1a1a;
    transform: translateY(-1px);
}

/* Нижняя полоса */
.bottom-strip {
    background-color: var(--beige);
    padding: 60px 0;
    text-align: center;
    color: var(--text);
}

.logo {
    flex-shrink: 1;     /* РАЗРЕШАЕМ сжиматься */
    min-width: 0;       /* КРИТИЧНО для переполнения */
}

.logo img {
    height: 20px;   
    width: auto;        
    display: block;
}

/* адаптация под маленькие экраны */
@media (max-width: 768px) {
    .logo img {
        height: 32px;
    }

    nav {
        display: none;  /* Скрываем меню на мобильных */
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #ffffff;
        width: 200px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 10px;
    }

    nav.open {
        display: block; /* Показываем меню, когда оно открыто */
    }

    .hamburger {
        display: flex !important;  /* Показ гамбургера */
    }

    nav ul {
        flex-direction: column; /* вертикально для мобильной версии */
    }

    nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

.hamburger {
    display: none;  /* скроем гамбургер по умолчанию */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger .bar {
    height: 4px;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 5px;
}