body{
    font-family: "Ubuntu", sans-serif;
    font-size: 20px;
    background-color: #201E21;
    margin: 0;
    color: white;
}

@font-face {
    font-family: 'NocturneSerif';
    src: 
         url('fonts/NocturneSerif-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'benzin';
    src: 
         url('fonts/benzin-semibold.ttf') format('truetype');
}


/* Базовые стили (для десктопа) */
nav {
    margin-top: 80px;
    margin-left: 85px;
}

ul {
    list-style: none;
    display: flex;
    gap: 105px;
    font-family: "Ubuntu", sans-serif;
    font-size: 25px;
}

a {
    text-decoration: none;
    color: white;
}

.navbar a.active {
    text-decoration: underline;
}

/* Скрываем гамбургер на десктопе */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: rgb(219, 218, 218);
    margin: 3px 0;
    transition: 0.3s;
}

.title {
  position: relative;
  display: inline-block;
  margin-top: 131px;
}

.underline {
  position: absolute;
  left: 0;
  top: 35%;
  width: 120%;
  pointer-events: none; /* чтобы не мешала кликам */
}

h1 {
  font-family: 'NocturneSerif', sans-serif;
  font-size: 70px;
  color: #FFEDAB;
  margin: 0;
  padding-top: 10px;
}
span {
  position: relative;
  z-index: 2;
  padding-left: 59px;
}

.btn{
    background-color: #FFEDAB;
    padding: 17px 105px;
    color: #201E21;
}

.firstscreen{
    display: flex;
    margin-top: 111px;
    gap: 111px;
    margin-bottom: 116px;
}

.firstscreen-text p{
    margin-top: 48px;
    max-width: 547px;
    margin-bottom: 51px;
    font-size: 25px;
}

.last-cases{
    background-color: #9B9595;
    padding-top: 54px;
    padding-left: 100px;
    padding-bottom: 78px;
}

.last-cases h5{
    color: #201E21;
    margin-top: 0;
    margin-bottom: 59px;
}

.last-cases-cards{
    display: flex;
    gap: 67px;
}

.last-cases-card{
    background-color: #201E21;
    text-align: center;
    color: #FFEDAB;
}

h5{
    font-family: 'benzin', sans-serif;
    font-size: 55px;
    color: #FFEDAB;
}


.about-link{
    background-color: #201E21;
    display: flex;
    justify-content: space-between;
    padding-top: 138px;
    padding-bottom: 137px;
}

.about-link{
    display: flex;
}

.about-link-img{
    height: 868px;
}

.about-link-text{
    margin-left: 100px;
}

.about-link-text p{
    max-width: 680px;
    color: white;
    font-size: 25px;
    margin-bottom: 100px;
}

.about-link-text img{
    max-width: 584px;
}

.about-link-text h5{
  margin-bottom: 55px;
}

.u-oval{
  position:relative;
  display:inline-block;
  padding:0 .2ch;                /* небольшой запас слева/справа */
  z-index:0;
}
.u-oval::after{
  content:"";
  position:absolute;
  left:-.6ch; right:-.6ch;
  height:1.8em;                  /* “высота” овала */
  bottom:-.20em;                 /* насколько опустить овал */
  background:url("img/underline2.svg") center/100% 100% no-repeat;
  pointer-events:none;
  z-index:-1;                    /* чтобы текст был поверх овала */
}

.skills{
    background-color: #9B9595;
    padding-top: 59px;
    padding-bottom: 75px;
    padding-left: 100px;
}

.skills h5{
    color: #201E21;
    margin-bottom: 81px;
}

.skill{
    color: black;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    margin-top: 74px;
}

.skills-card{
    margin-left: 98px;
    max-width: 1050px;
}

.skill-left{
    display: flex;
    align-items: baseline;
    gap: 62px;
}

.skill p{
    max-width: 474px;
}

.experience{
    display: flex;
}

.center-experience img{
    max-width: 441px;
}

.right-experience p{
    max-width: 400px;
    padding-top: 170px;
    padding-left: 53px;
}

.left-experience h5{
    max-width: 437px;
    margin-left: 70px;
    margin-top: 280px;
}

.values{
    background-color: #9B9595;
    padding-top: 100px;
    padding-left: 100px;
    padding-bottom: 123px;
}

.values h5{
    color: #201E21;
    margin-top: 0;
    margin-bottom: 55px;
}

.values-content{
    display: flex;
   justify-content: space-around;
}

.values-content img{
    max-width: 608px;
    max-height: 580px;
}

.values-text-card{
    border: 2px solid #FFEDAB;
    max-width: 558px;
    height: 174px;
    padding: 46px 40px;
    color: black;
}

.values-text{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.banner{
   background-color: #39363B;
    padding-top: 103px;
    padding-bottom: 83px;
    text-align: center;
    color: white;
}

.banner h5{
    margin: 0;
}

.banner p{
    margin-bottom: 55px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.banner-buttons{
    display: flex;
    gap: 75px;
    margin-bottom: 83px;
    margin-left: 340px;
}

.btn-ghost{
    border: 2px solid #FFEDAB;
     padding: 17px 105px;
     color: white;
}

footer{
            background-color: #201E21;
            color: white;
            padding-top: 80px;
            padding-left: 120px;
            display: flex;
            flex-direction: column;
            gap: 120px;
        }

        .footer-top{
            display: flex;
            gap: 153px;
        }

        .navigation{
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .navigation a{
            color: white;
        }

        .footer-left-title{
            font-family: 'benzin', sans-serif;
            color: #FFEDAB;
        }

        .title-footer-text{
            max-width: 400px;
        }

        .footer-center p, .social-title{
            font-weight: 700;
            color: #FFEDAB;
        }

        .social-card{
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .footer-bottom{
            align-self: center;
            margin-left: -120px;
            margin-bottom: 50px;
        }

        .footer-bottom p{
            color: grey;
            font-size: 18px;
        }

         @media (min-width: 1296px) and (max-width: 1439px){
            .last-cases-card{
                max-width: 550px;
            }

            .last-cases-card img{
                 max-width: 550px;
            }

            .firstscreen{
                gap: 93px;
            }

            .skills{
                padding-left: 80px;
            }

            .right-experience p {
    max-width: 300px;
    padding-top: 40px;
    padding-left: 23px;
}

.left-experience h5{
    margin-left: 40px;
}

.about-link-text p{
    max-width: 590px;
}

.banner-buttons{
    margin-left: 280px;
}

            h5{
                font-size: 50px;
            }

             .text-content h1{
                font-size: 90px;
            }

         }

          @media (min-width: 1024px) and (max-width: 1296px){
            .firstscreen img{
                width: 450px;
                height: auto;
            }

            .title {
    margin-top: 60px;
}

.firstscreen{
    gap: 70px;
}

.last-cases-cards{
    flex-direction: column;
    width: 680px;
}

.last-cases-card img{
    width: 680px;
}

.about-link-text p{
    font-size: 20px;
    max-width: 420px;
}

.about-link-img{
    width: 468px;
    height: auto;
}

.skills-card {
    margin-left: 0px;
    max-width: 850px;
}

.skill-left p{
    max-width: 120px;
}

.line img{
    max-width: 850px;
}

.left-experience h5{
    margin-top: 100px;
    margin-left: 0;
}

.right-experience p{
    padding-top: 40px;
    max-width: 800px;
    padding-bottom: 40px;
}

.values-text-card {
    max-width: 438px;
    height: 194px;
    padding: 26px 20px;
}

.values-text{
    gap: 80px;
}

.banner p{
    max-width: 800px;
}

.banner-buttons{
    margin-left: 120px;
}

.experience{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

                       h1{
                font-size: 55px;
            }

             h5{
                font-size: 40px;
            }

            footer {
    padding-left: 60px;
    gap: 100px;
}

.footer-top{
    gap: 60px;
}
          }

           @media (min-width: 768px) and (max-width: 1024px) {
                        ul{
                font-size: 18px;
                gap: 70px;
            }

                        .btn, .btn-ghost{
                padding: 17px 50px;
                font-size: 20px;
            }

            .firstscreen{
                flex-direction: column;
                gap: 0;
            }

            .firstscreen-text{
                margin-left: 80px;
            }

            .title{
                margin-top: 80px;
            }

            .last-cases-cards{
                flex-direction: column;
            }

            .last-cases{
                padding-left: 70px;
            }

            .last-cases-card{
                max-width: 620px;
            }

            .about-link{
                flex-direction: column;
                        padding-top: 40px;
        gap: 10px;
            }

            .skills-card{
                margin-left: 0;
                max-width: 650px;
            }

            .line img{
                max-width: 600px;
            }

            .skill{
               flex-direction: column;
            }

            .left-experience h5{
    margin-top: 100px;
    margin-left: 0;
}

.right-experience p{
    padding-top: 40px;
    max-width: 650px;
    padding-bottom: 40px;
}
.experience{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.values-content{
    flex-direction: column;
    gap: 30px;
}

.values-content img {
    max-width: 538px;
    max-height: 580px;
}

.banner p{
    max-width: 600px;
}

.banner-buttons{
    margin-left: 100px;
}

            .about-link-text p{
                max-width: 512px;
            }


            .footer-top{
    flex-wrap: wrap;
    gap: 100px;
    align-items: center;
}
           }


                    @media (min-width: 480px) and (max-width: 767px) {
    nav {
        margin-top: 40px;
        margin-left: 0;
        position: relative;
    }
    
    .nav-container {
        display: flex;
        justify-content: flex-end;
        padding: 0 20px;
    }
    
    /* Показываем гамбургер */
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    /* Стили для меню */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        font-size: 20px;
        padding: 10px 20px;
        color: #201E21;
    }
    
    /* Анимация гамбургера в крестик */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h1{
    font-size: 40px;
}

h5{
    font-size: 30px;
}

.firstscreen{
    flex-direction: column;
    gap: 60px;
}

.title{
    margin-top: 0;
}

.firstscreen-text{
    margin-left: 50px;
}

.last-cases-cards{
    flex-direction: column;
}

.last-cases{
    padding-left: 30px;
}

.last-cases-card, .last-cases-card img{
    max-width: 390px;
}

.about-link{
    flex-direction: column;
    padding-top: 40px;
        padding-bottom: 50px;
}

    .about-link-text p {
        font-size: 18px;
        max-width: 340px;
        margin-bottom: 70px;
    }

    .about-link-img {
    height: 668px;
}

.skills {
    padding-left: 30px;
}

.skills-card {
    margin-left: 0;
    max-width: 350px;
}

.skill{
    flex-direction: column;
}

.line img{
    max-width: 400px;
}

.about-link-text {
        margin-left: 30px;
    }

                .left-experience h5{
    margin-top: 100px;
    margin-left: 0;
}

.right-experience p{
    padding-top: 40px;
    max-width: 400px;
    padding-bottom: 40px;
    padding-left: 0;
}
.experience{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.values {
    padding-top: 50px;
    padding-left: 30px;
    padding-bottom: 63px;
}

.values-content{
    flex-direction: column;
    gap: 30px;
}

.values-text-card {
    max-width: 400px;
    height: 174px;
    padding: 25px 10px;
}

.banner p{
    max-width: 400px;
}

.banner-buttons{
    flex-direction: column;
    margin-left: 50px;
    gap: 40px;
    max-width: 370px;
}

.btn {
    padding: 17px 55px;
}

.values-content img {
    max-width: 400px;
    max-height: 580px;
}

footer {
    padding-top: 40px;
    padding-left: 30px;
    gap: 60px;
}

.footer-top{
    flex-direction: column;
    gap: 40px;
}

.footer-bottom {
    margin-left: -40px;
}
}

@media(min-width: 300px) and (max-width: 480px) {
    nav {
        margin-top: 40px;
        margin-left: 0;
        position: relative;
    }
    
    .nav-container {
        display: flex;
        justify-content: flex-end;
        padding: 0 20px;
    }
    
    /* Показываем гамбургер */
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    /* Стили для меню */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        font-size: 20px;
        padding: 10px 20px;
        color: #201E21;
    }
    
    /* Анимация гамбургера в крестик */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h1{
    font-size: 33px;
    padding-left: 20px;
}

.btn, .btn-ghost {
    padding: 17px 60px;
    font-size: 16px;
}

h5{
    font-size: 25px;
    max-width: 270px;
}

.firstscreen img{
    width: 300px;
    height: 350px;
}

.firstscreen{
    flex-direction: column;
    gap: 40px;
}

.underline {
    top: -100%;
    width: 90%;
}

.firstscreen-text p{
    font-size: 16px;
    max-width: 270px;
    margin-left: 30px;
}

.firstscreen-text a{
    margin-left: 30px;
}

.last-cases{
    padding-left: 30px;
}

.last-cases-card{
    width: 260px;
}

.last-cases-card img{
    width: 260px;
}

.last-cases-cards{
    flex-direction: column;
    gap: 20px;
}

.last-cases-card p{
    font-size: 16px;
}

.about-link-text{
    margin-left: 30px;
}

    .about-link-text p {
        font-size: 16px;
        max-width: 275px;
        margin-bottom: 70px;
    }

        .about-link-img {
        height: auto;
        margin-top: 20px;
    }

    .skills {
    padding-top: 39px;
    padding-bottom: 45px;
    padding-left: 30px;
}

.skills-card {
    margin-left: 0;
    max-width: 300px;
}

.skill{
    flex-direction: column;
}

.line img{
    max-width: 270px;
}

.experience{
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-experience img {
    max-width: 300px;
}

.right-experience p {
    max-width: 250px;
    padding-top: 40px;
    padding-left: 10px;
    padding-bottom: 30px;
    font-size: 16px;
}

.values {
    padding-top: 50px;
    padding-left: 30px;
    padding-bottom: 63px;
}

.values-content{
    flex-direction: column;
    gap: 30px;
}

.values-content img {
    max-width: 280px;
    max-height: 340px;
}

.values-text-card {
    max-width: 240px;
    height: 204px;
    padding: 16px 10px;
    color: black;
}

.banner {
    padding-top: 50px;
    padding-bottom: 53px;
}

.banner h5{
    margin-left: 30px;
}

.banner p{
    font-size: 16px;
    max-width: 280px;
}

.banner-buttons {
    gap: 35px;
    margin-bottom: 53px;
    margin-left: 20px;
    flex-direction: column;
    max-width: 280px;
}

.values-text-card p{
    font-size: 16px;
}

.left-experience h5 {
    max-width: 280px;
    margin-left: 0;
    margin-top: 50px;
}

    .about-link {
        flex-direction: column;
        padding-top: 40px;
        padding-bottom: 50px;
    }

.title{
    margin-top: 0;
}

footer {
    padding-top: 40px;
    padding-left: 30px;
    gap: 60px;
}

.footer-top{
    flex-direction: column;
    gap: 40px;
}

.footer-bottom {
    margin-left: -40px;
}

.footer-bottom p{
    font-size: 12px;
}
}

/* ===== АДАПТИВ ДЛЯ БОЛЬШИХ ЭКРАНОВ (1728px+) ===== */
@media (min-width: 1728px) {
    /* Основной контейнер для всего контента */
    
    /* Центральный контейнер для всего сайта */
    .container {
        max-width: 1728px;
        margin: 0 auto;
        background: #201E21; /* Ваш основной цвет фона */
        position: relative;
    }
    
    /* Центрируем навигацию */
    .navbar {
        max-width: 1728px;
        margin: 80px auto 0 auto;
        padding: 0 40px;
    }
    
    /* Центрируем все секции */
    .firstscreen,
    .last-cases,
    .about-link,
    .skills,
    .experience,
    .values,
    .banner,
    .footer {
        max-width: 1728px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Специфичные отступы для секций */
    .firstscreen {
        padding: 0 40px;
        margin-bottom: 116px;
    }
    
    .last-cases {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .about-link {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .skills {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .experience {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .values {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .banner {
        margin-left: auto;
        margin-right: auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* Футер */
    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .footer-bottom {
        margin-left: 0;
    }
    
    /* Оптимизация для очень широких экранов */
    .firstscreen {
        justify-content: center;
        gap: 150px;
    }
    
    .last-cases-cards {
        justify-content: center;
        gap: 100px;
    }
    
    .about-link {
        justify-content: center;
        gap: 100px;
    }
    
    .skills-card {
        margin-left: auto;
        margin-right: auto;
    }
    
    .experience {
        justify-content: center;
        gap: 100px;
    }
    
    .values-content {
        justify-content: center;
        gap: 100px;
    }
    
    .banner-buttons {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

/* Для экстремально больших экранов (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 1920px;
    }
    
    .firstscreen {
        gap: 200px;
    }
    
    .last-cases-cards {
        gap: 150px;
    }
    
    .about-link {
        gap: 150px;
    }
}