@font-face {
    font-family: 'Avenir LT Std';
    src: url('/fonts/AvenirLT-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir LT Std Heavy';
    src: url('/fonts/AvenirLT-Heavy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


body {
    margin: 0;
    font-family: "Avenir LT Std Heavy", sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* Логотип */
.logo {
    position: absolute;
    top: 2vh;
    left: 5vw;
    font-family: "Avenir LT Std Heavy", sans-serif;
    font-weight: bold;
    font-size: 1.5vw;
    color: #000;
    z-index: 10;
}
a {
    font-family: "Avenir LT Std Heavy", sans-serif;
    font-size: 1.2vw;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.PHOTOGRAPHER {
    font-family: "Avenir LT Std Heavy", sans-serif;
    font-weight: bold;
    font-size: 5vw;
    line-height: 1.2;
    margin-bottom: 3vw;
}

/* Меню */
.nav-links {
    position: absolute;
    font-weight: bold;
    top: 2vh;
    right: 5vw;
    display: flex;
    flex-direction: row;
    gap: 7vw;
    z-index: 10;
}

.nav-links a {
    font-family: "Avenir LT Std Heavy", sans-serif;
    font-size: 1.5vw;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

a {
    font-family: "Avenir LT Std", sans-serif;
    font-size: 1.2vw;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #666;
}

/* Секция about-me */
.about-me {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 5vw 5vw 5vw 5vw;
    height: 100%;
    box-sizing: border-box;
}

/* Левая часть: текст */
.about-left {
    width: 50%;
    padding-right: 2vw;
    font-family: "Avenir LT Std", sans-serif;
}

.about-left h1 {
    font-size: 6vw;
    line-height: 1.2;
    margin: 0;
    color: #000;
    font-family: "Avenir LT Std", sans-serif;
}

/* Правая часть: фотографии */
.about-right {
    position: relative;
    width: 60%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.about-right .main-photo {
    width: 60%;
    height: auto;
    object-fit: cover;
    position: relative; /* Добавлено для работы с z-index */
    z-index: 2; /* Установлено на задний план */
}

.about-right .small-photo {
    position: absolute;
    bottom: -5%;
    left: 10%;
    width: 40%;
    height: auto;
    object-fit: cover;
    z-index: 1; /* Установлено на передний план */
}

/* Адаптивный дизайн */
@media (min-width: 768px) {
    .p {
        font-family: "Avenir LT Std", sans-serif;
        font-size: 5vw;
        line-height: 1.2;
        margin-bottom: 3vw;
    }
    .about-left p {
        position: absolute;
        font-size: 2vw;
        width: 40%;
        left: 21%;
        top: 25%;
        line-height: 1.5;
        color: #000;
        margin-top: 2vw;
        z-index: 3;
        font-family: "Avenir LT Std", sans-serif;
        font-size: 2vw;
        line-height: 1.2;
        margin-bottom: 3vw;
    }
    
    .nav-links {
        position: absolute;
        top: 2vh;
        right: 5vw;
        display: flex;
        flex-direction: row;
        gap: 7vw;
        z-index: 10;
    }
}
/* Адаптивный дизайн */
@media (max-width: 768px) {
    .p {
        font-family: "Avenir LT Std", sans-serif;
        font-size: 5vw;
        line-height: 1.2;
        margin-bottom: 3vw;
    }
        /* Меню */
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 2vh;
        right: 2vw;
        width: 24px;
        height: 18px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 10;
        transition: transform 0.3s;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 2px;
        background: #1b1b1b;
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
        transform-origin: center;
    }

    /* Состояние крестика */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translate(6px, -1px) rotate(45deg); /* Смещение и вращение */
        transform-origin: left top; /* Точка вращения: верхний левый угол */
    }

    .menu-toggle.open .bar:nth-child(2) {
        transform: scale(0); /* Скрываем среднюю полоску, уменьшая ее размер */
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translate(-3px, -20px) rotate(-45deg); /* Смещение и вращение */
        transform-origin: right bottom; /* Точка вращения: нижний правый угол */
    }

    .nav-links {
        display: none;
        top: 3vh;
        left: 5vw;
        gap: 5vw;
        padding: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 4vw;
    }
    
    .logo.hidden {
        display: none;
    }

    /* Логотип */
    .logo {
        position: absolute;
        top: 3vh;
        left: 5vw;
        font-family: "Avenir LT Std Heavy", sans-serif;
        font-size: 4vw;
        color: #000;
        z-index: 10;
    }

    .about-me {
        height: 95%;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-left {
        width: 100%;
        margin-top: 40px;
        padding-right: 0;
    }

    .about-left p {
        font-size: 4vw;
        font-family: "Avenir LT Std", sans-serif;
        width: 90%;
        left: 5%;
        top: 13%;
    }

    .about-right {
        width: 100%;
        justify-content: center;
        margin-top: 2vw;
    }

    .about-right .main-photo {
        width: 100%;
    }

    .about-right .small-photo {
        width: 0%;
    }
}

/* Класс для скрытия логотипа */
.hidden {
    display: none;
}