@media (max-width: 769px) {
    /* Основной контейнер */
    .content {
        width: 100%;
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }

    /* Шапка и меню */
    header {
        position: absolute;
        top: 0;
        right: 0;
        justify-content: flex-end;
        padding: 10px;
        border-bottom: 1px solid var(--color2a);
    }

    header ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color3);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
    }

    header ul.active {
        display: flex;
    }

    header ul li {
        margin: 15px 0;
        width: 100%;
        max-width: 300px;
        height: 50px;
    }

    header ul li a {
        justify-content: center;
        font-size: 18px;
        border-radius: 5px;
    }

    .burger-menu {
        display: flex;
    }

    .logo {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1001;
        width: 40px;
        height: 40px;
    }

    /* Главная секция с фото */
    .mainPhoto {
        flex-direction: column;
        margin: -20px;
        margin-bottom: 30px;
    }

    .mainPhoto .photoBlock {
        width: 100%;
        border-radius: 0;
        margin-bottom: 50px;
    }

    .mainPhoto .photoBlock img {
        /*margin-bottom: -40px;*/
    }

    .title {
        width: 100%;
        padding: 40px 20px;
        background-size: 70%;
        text-align: center;
        align-items: center;
    }

    .title .iam {
        margin-top: 0;
    }

    .title h1 {
        font-size: 20px;
    }

    .title h2 {
        font-size: 50px;
        line-height: 40px;
        padding: 20px 0;
        text-align: center;
    }

    /* Блок "Обо мне" */
    .blockname {
        font-size: 80px;
        width: 200px;
        right: -70px;
        top: 45%;
    }

    #about h3,
    #awards h3 {
        font-size: 32px;
    }

    #about .about,
    #awards .about {
        padding: 20px;
        text-align: justify;
        hyphens: auto;
    }

    .blocks {
        flex-direction: column;
        align-items: center;
    }

    .blocks .block {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .blocks .block:nth-child(2) {
        margin-top: 20px;
    }

    /* Секции */
    #awards,
    #about {
        margin-top: 60px;
    }
}

/* Мобильные телефоны (480px и меньше) */
@media (max-width: 480px) {
    /* Уменьшаем отступы */
    .content {
        padding: 15px;
    }

    /* Заголовки */
    .title h1 {
        font-size: 18px;
    }

    .title h2 {
        font-size: 40px;
        line-height: 35px;
        padding: 15px 0;
    }

    .title .lightText {
        font-size: 14px;
        text-align: justify;
    }

    .title {
        padding: 50px 15px;
        background-size: 80%;
    }

    /* Блок "Обо мне" */
    .blockname {
        font-size: 60px;
        width: 150px;
        right: -50px;
        top:40%;
    }

    #about h3,
    #awards h3 {
        font-size: 28px;
    }

    .blocks .block {
        height: auto;
        min-height: 280px;
        padding: 20px;
    }

    .block h4 {
        font-size: 24px;
    }

    .block .btn {
        margin-top: 20px;
        margin-left: -20px;
        padding-left: 20px;
    }

    /* Меню */
    header ul li {
        height: 45px;
    }

    header ul li a {
        font-size: 16px;
    }

    .burger-menu {
        width: 50px;
        height: 45px;
        padding: 11px;
    }

    .logo {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Очень маленькие телефоны (360px и меньше) */
@media (max-width: 360px) {
    /* Еще меньше отступы и размеры */
    .content {
        padding: 10px;
    }

    .title h2 {
        font-size: 35px;
        line-height: 30px;
    }

    .title {
        padding: 25px 10px;
    }

    .title .lightText {
        font-size: 13px;
    }

    .blocks .block {
        padding: 15px;
    }

    .block h4 {
        font-size: 22px;
    }

    #about .about,
    #awards .about {
        padding: 15px 10px;
        font-size: 13px;
    }

    .blockname {
        font-size: 50px;
        width: 120px;
        right: -40px;
    }
}

/* Landscape ориентация для мобильных */
@media (max-height: 600px) and (max-width: 768px) and (orientation: landscape) {
    .mainPhoto {
        flex-direction: row;
    }

    .mainPhoto .photoBlock {
        width: 40%;
    }

    .title {
        width: 60%;
        padding: 20px;
    }

    .title h2 {
        font-size: 35px;
        line-height: 30px;
        padding: 10px 0;
    }

    .blocks {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .blocks .block {
        width: calc(50% - 20px);
        margin: 10px;
    }

    .blocks .block:nth-child(3) {
        width: 100%;
    }

    header ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }

    header ul li {
        width: auto;
        margin: 5px;
        height: 40px;
    }

    header ul li a {
        padding: 0 15px;
        font-size: 14px;
    }
}

/* Стили для попапа на мобильных */
@media (max-width: 768px) {
    .image-popup-content img {
        max-width: 95%;
    }

    .popup-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .image-counter {
        font-size: 16px;
        padding: 8px 16px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .popup-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .image-counter {
        font-size: 14px;
        padding: 6px 12px;
        bottom: 15px;
    }
}