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

.container{
    background-image: url(img/firstscreen.png);
    background-repeat: no-repeat;
    background-position: right; /* Выравнивание по правому краю */
    background-size: auto 1040px; /* или cover, в зависимости от нужного эффекта */
}

@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: black;
}

.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-left: 84px;
  margin-top: 208px;
}
.underline {
  position: absolute;
  left: 0;
  top: 35%;
  width: 120%;
  pointer-events: none; /* чтобы не мешала кликам */
}
h1 {
  font-family: 'NocturneSerif', sans-serif;
  font-size: 70px;
  color: #301C1B;
  margin: 0;
  padding-left: 44px;
  padding-top: 10px;
}
span {
  position: relative;
  z-index: 2;
  padding-left: 59px;
}

.firstscreen{
    display: flex;
}

.firstscreen-img{
    margin-top: -150px;
}

.paragraph-main{
    display: flex;
    flex-direction: column;
    gap: 155px;
}

.paragraph-main-p p{
    max-width: 300px;
}

.paragraph-main-p{
    display: flex;
    gap: 70px;
    margin-top: 25px;
    margin-left: 128px;
}

.buttons{
    margin-left: 128px;
    display: flex;
    gap: 75px;
    margin-bottom: 200px;
}

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

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



/* Нижние слова */
.about-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 80px;
  font-size: 50px;
  margin-bottom: 120px;
  margin-top: 65px;
  margin-left: -50px;
}

.about-bottom span {
  position: relative;
}

.about-bottom span + span::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 50px;
  background-color: #301C1B;
  opacity: 0.6;
}

.container-about {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.text-content {
    position: relative;
    z-index: 1;
   display: flex;
   flex-direction: column;
   gap: 87px;
}

.center-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 494px; /* ширина картинки */
    height: 741px; /* высота картинки */
    background-image: url('img/about.jpg');
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.text-content h1{
    color: #FFEDAB;
    font-family: 'benzin', sans-serif;
    font-size: 100px;
}

.right{
    margin-left: 184px;
}

.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: 512px;
    color: white;
    font-size: 25px;
    margin-bottom: 100px;
}

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

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

.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;                    /* чтобы текст был поверх овала */
}

.services{
    display: flex;
    margin-top: 100px;
    margin-left: 100px;
    gap: 140px;
}

.services-cards{
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    justify-content: center;
}

.services-text p{
    max-width: 662px;
    font-size: 25px;
    margin-bottom: 45px;
}

.services h5{
    color: #201E21;
    margin-top: 128px;
    margin-bottom: 0;
    width: 500px;
}

.services-title{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 35px;
}

.services-title img{
    max-width: 271.5px;
}

.services-card p{
text-align: center;
}

.cases{
    background-color: #201E21;
    margin-top: 100px;
    padding-top: 140px;
    padding-left: 100px;
    color: white;
    padding-bottom: 140px;
}

h3{
    color: #FFEDAB;
    font-size: 128px;
    margin-bottom: 0;
    margin-left: 0;
}

.img-card{
  position:relative;
  display:inline-block;
}
.img-card img{
  display:block;
  width:100%;
  height:auto;
}

.corner-link{
  position:absolute;
  top:12px;          /* отступ от угла */
  right:12px;
  width:40px; 
  height:40px;
  display:grid;
  place-items:center;
  color:#111;        /* цвет стрелки */
  background:rgba(255,255,255,.0);
  border-radius:6px;
  transition:background .2s, transform .15s;
}
.corner-link svg{ width:24px; height:24px; }

.cases-top-text p{
    max-width: 456px;
}

.cases-top{
    display: flex;
    gap: 50px;
    margin-bottom: 90px;
}

.cases-bottom h6{
    font-size: 25px;
    margin-top: 0;
    margin-bottom: 19px;
}

.cases-bottom {
    text-align: center;
}

.cases-bottom p{
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 39px;
}

              .reviews-container {
            position: relative;
            max-width: 1200px;
            margin: 50px auto 191px auto;
            padding: 20px;
        }

        .reviews-slider {
            display: flex;
            overflow: hidden;
            position: relative;
            gap: 20px;
        }

        .reviews-track {
            display: flex;
            transition: transform 0.5s ease;
            gap: 20px;
        }

        .review-card {
            width: 405px;
            height: 170px;
            padding: 44px 115px 58px 66px;
            border: 2px solid #FFEDAB;
            transition: all 0.3s ease;
        }

        .review-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .review-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #1D8996;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 24px;
            margin-right: 15px;
        }

        .review-author {
            font-size: 25px;
            font-weight: bold;
            margin-bottom: 5px;
            color: #FFEDAB;
        }

        .review-date {
            font-size: 14px;
            color: #666;
        }

        .review-text {
            font-size: 20px;
            color: black;
        }

        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            width: 138px;
            height: 40px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            padding: 0;
        }


        .arrow-prev {
            left: -60px;
        }

        .arrow-next {
            right: -60px;
        }

        .nav-arrow img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .reviews-title h5{
            margin-left: 140px;
            color: #201E21;
            margin-bottom: 45px;
        }

        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){
            .text-content h1{
                font-size: 90px;
            }

            .services{
                flex-direction: column;
                margin-top: 40px;
                margin-left: 0;
            }

            .services-cards{
                justify-content: space-around;
            }

            .cases-top{
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-img{
                display: flex;
                gap: 30px;
            }

            .services-text{
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            h5{
                font-size: 50px;
            }

            .cases{
                padding-left: 0;
                padding-top: 40px;
            }

            .arrow-next{
                right: 0px;
            }

            .arrow-prev {
                left: 0px;
            }

        }

         @media (min-width: 1024px) and (max-width: 1296px){
            .paragraph-main-p{
                flex-direction: column;
                gap: 10px;
            }

            .container {
                background-size: auto 840px;
            }

            h1{
                font-size: 55px;
            }

            .paragraph-main{
                gap: 70px;
            }

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

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

            .about-bottom{
                font-size: 40px;
            }

            h5{
                font-size: 40px;
            }

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

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

            .services{
                flex-direction: column;
                margin-top: 40px;
                margin-left: 0;
            }

            .services-text{
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-top{
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-img{
                display: flex;
                gap: 30px;
            }

            .cases{
                padding-left: 0;
                padding-top: 40px;
            }


            .arrow-next{
                right: 0px;
            }

            .arrow-prev {
                left: 0px;
            }

            .review-card {
            width: 705px;
            height: 170px;
            padding: 44px 115px 58px 66px;
            border: 2px solid #FFEDAB;
            transition: all 0.3s ease;
        }

        .reviews-track{
            gap: 70px;
            margin-left: 50px;
        }

        .nav-arrow img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.reviews-container {
    margin: 50px auto 50px auto;
}

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

.footer-top{
    gap: 60px;
}

         }

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

            h1{
                color: rgb(219, 218, 218);
            }

            .paragraph-main-p p{
                color: rgb(219, 218, 218);
            }

            .paragraph-main-p{
                gap: 50px;
                margin-left: 80px;
            }

            .buttons{
                margin-left: 80px;
            }

            .title{
                margin-left: 40px;
            }

            .paragraph-main{
                gap: 70px;
            }

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

            .btn-ghost{
                color: rgb(219, 218, 218);
            }

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

            .center-image {
                width: 334px;
                height: 600px;
            }

            .right {
                margin-left: 100px;
            }

            .about-me{
                margin-top: 50px;
            }

            .about-bottom{
                font-size: 30px;
            }

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

            .about-link-img {
    height: auto;
}

            .services{
                flex-direction: column;
                margin-top: 20px;
                margin-left: 0;
            }

            .services-text{
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

                        .cases-top{
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-img{
                display: flex;
                gap: 10px;
                margin-left: 50px;
                margin-right: 50px;
            }

            .cases{
                padding-left: 0;
                padding-top: 20px;
            }

            .nav-arrow img {
    width: 70%;
    height: 70%;
}

            .arrow-next{
                right: 0px;
            }

            .arrow-prev {
                left: 0px;
            }

                        .review-card {
            width: 435px;
            height: 170px;
            padding: 44px 115px 58px 66px;
            border: 2px solid #FFEDAB;
            transition: all 0.3s ease;
        }

        .reviews-track{
            gap: 70px;
            margin-left: 50px;
        }


.reviews-container {
    margin: 50px auto 50px auto;
}

.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;
    }
    
    /* Анимация гамбургера в крестик */
    .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);
    }

    .container {
    background-size: auto 540px;
}

.title {
    margin-left: 24px;
    margin-top: 108px;
}

h1{
    font-size: 40px;
    color: rgb(219, 218, 218);
}

.paragraph-main-p {
    gap: 20px;
    margin-top: 55px;
    margin-left: 48px;
    flex-direction: column;
}

.paragraph-main-p p{
        color: rgb(219, 218, 218);
        font-size: 18px;
}

.buttons{
      margin-left: 48px;
      flex-direction: column;
      gap: 35px;
      margin-bottom: 100px;
}

.paragraph-main{
    gap: 55px;
}

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

.center-image {
    width: 204px;
    height: 361px;
}

.right {
    margin-left: 54px;
}

.about-bottom{
    font-size: 18px;
    margin-left: 0;
}

span{
    padding-left: 0;
}

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

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

h5{
    font-size: 30px;
}

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

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

.services-text p{
        font-size: 18px;
        max-width: 340px;
}

.services h5{
    margin-top: 50px;
}

.services-title img{
    max-width: 170px;
}

.services-title{
    justify-content: baseline;
    align-items: center;
}

            .services{
                flex-direction: column;
                margin-top: 20px;
                margin-left: 0;
                gap: 70px;
            }

            .services-text{
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

                                    .cases-top{
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-img{
                display: flex;
                gap: 10px;
                margin-left: 50px;
                margin-right: 50px;
            }

            .cases{
                padding-left: 0;
                padding-top: 20px;
            }

            h3{
                font-size: 70px;
            }

                        .nav-arrow img {
    width: 70%;
    height: 70%;
}

            .arrow-next{
                right: 0px;
            }

            .arrow-prev {
                left: 0px;
            }

                        .review-card {
            width: 275px;
            height: 200px;
            padding: 44px 35px 58px 46px;
            border: 2px solid #FFEDAB;
            transition: all 0.3s ease;
        }

        .reviews-track{
            gap: 70px;
            margin-left: 50px;
        }


.reviews-container {
    margin: 50px auto 50px auto;
}

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;
    }
    
    /* Анимация гамбургера в крестик */
    .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);
    }

    .container {
    background-size: auto 540px;
}

.title {
    margin-left: 24px;
    margin-top: 108px;
}

h1{
    font-size: 33px;
    color: rgb(219, 218, 218);
    padding-left: 20px;
}

.services-card img{
    width: 80%;
    margin-left: 10%;
}

.paragraph-main-p {
    gap: 20px;
    margin-top: 55px;
    margin-left: 48px;
    flex-direction: column;
}

.paragraph-main-p p{
        color: rgb(219, 218, 218);
        font-size: 16px;
        max-width: 270px;
}

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

.buttons{
      margin-left: 48px;
      flex-direction: column;
      gap: 35px;
      margin-bottom: 100px;
      max-width: 250px;
}

.paragraph-main{
    gap: 55px;
}

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

.center-image {
    width: 184px;
    height: 301px;
}

.right {
    margin-left: 24px;
}

.about-bottom{
    font-size: 14px;
    margin-left: 20px;
    gap: 10px;
    margin-bottom: 50px;
}

span{
    padding-right: 30px;
    padding-left: 0;
}

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

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

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

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

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

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


.services h5{
    margin-top: 50px;
}

.services-title img{
    max-width: 170px;
}

.services-title{
    justify-content: baseline;
    align-items: center;
}

            .services{
                flex-direction: column;
                margin-top: 20px;
                margin-left: 0;
                gap: 70px;
            }

            .services-text{
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-top-text p, .cases-bottom p{
                font-size: 16px;
                max-width: 300px;
            }

            .cases-bottom h6{
                font-size: 20px;
            }

                                    .cases-top{
                flex-direction: column;
                justify-content: center;
                text-align: center;
                align-items: center;
            }

            .cases-img{
                display: flex;
                gap: 10px;
                margin-left: 50px;
                margin-right: 50px;
            }

            .cases{
                padding-left: 0;
                padding-top: 20px;
                margin-top: 50px;
                padding-bottom: 80px;
            }

            .reviews-title h5{
                margin-left: 40px;
            }

            h3{
                font-size: 60px;
            }

                        .nav-arrow img {
    width: 40%;
    height: 60%;
    background-color: rgba(252, 245, 197, 0.207);
}

            .arrow-next{
                right: 0px;
            }

            .arrow-prev {
                left: 0px;
            }

                        .review-card {
            width: 210px;
            height: 200px;
            padding: 44px 15px 58px 26px;
            border: 2px solid #FFEDAB;
            transition: all 0.3s ease;
        }

        .review-author{
            font-size: 20px;
        }

        .review-text{
            font-size: 16px;
        }

        .reviews-track{
            gap: 70px;
            margin-left: 20px;
        }


.reviews-container {
    margin: 20px auto 20px auto;
}

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;
}
               }


               /* ===== КОНТЕЙНЕР ДЛЯ БОЛЬШИХ ЭКРАНОВ ===== */

@media (min-width: 1728px) {
    /* Основной контейнер для контента */
    
    /* Создаем центральный контейнер */
    .container {
        max-width: 1728px;
        margin: 0 auto;
        background: #9B9595; /* Ваш основной цвет фона */
        position: relative;
    }
    
    /* Исправляем фоновое изображение */
    .container {
        background-image: url(img/firstscreen.png);
        background-repeat: no-repeat;
        background-position: right top;
        background-size: auto 1040px;
    }
    
    /* Центрируем навигацию */
    .navbar {
        max-width: 1728px;
        margin: 80px auto 0 auto;
        padding: 0 40px;
    }
    
    /* Центрируем остальные секции */
    .about-me,
    .about-link,
    .services,
    .cases,
    .reviews,
    .footer {
        max-width: 1728px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Специфичные отступы */
    .about-link {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .services {
        padding: 0 40px;
    }
    
    .cases {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* Карусель отзывов */
    .reviews-container {
        max-width: 1600px;
    }
}

/* Для экстремально больших экранов */
@media (min-width: 2560px) {
    .container {
        max-width: 1920px;
    }
}