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

.container{
    background-image: url(img/cooperation-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: 535px;
    font-size: 25px;
}

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

h5{
    font-size: 65px;
    font-family: 'benzin', sans-serif;
    color: #201E21;
}

.steps{
    padding-left: 100px;
    margin-bottom: 83px;
}

.steps-cards{
    display: flex;
    flex-wrap: wrap;
}

.step-card{
    border: 2px solid #FFEDAB;
    padding: 42px 42px 105px 35px;
}

.step-card p{
    max-width: 342px;
    margin-top: 20px;
}

.step-card h6{
    font-size: 65px;
    font-family: 'benzin', sans-serif;
    color: #FFEDAB;
    margin: 0;
}

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

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

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

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

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

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

.banner h5{
    margin: 0;
}

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

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

.faq-list{
max-width: 1370px;
margin-bottom: 156px;
margin-left: auto;
margin-right: auto;
display: flex;
flex-direction: column;
gap: 13px;
}

.faq h5{
    margin-top: 93px;
    margin-bottom: 55px;
    margin-left: 46px;
    color: #201E21;
}

        .faq-title {
            text-align: center;
            font-size: 32px;
            margin-bottom: 40px;
            color: white;
        }

        .faq-item {
            background-color: #201E21;
        }

        .faq-question {
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 40px 40px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
        }

        .faq-question-text {
            font-size: 25px;
            font-weight: 500;
            margin: 0;
            flex: 1;
            padding-right: 20px;
        }

        .faq-toggle {
            width: 24px;
            height: 24px;
            position: relative;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .faq-toggle::before,
        .faq-toggle::after {
            content: '';
            position: absolute;
            background-color: white;
            transition: all 0.3s ease;
        }

        .faq-toggle::before {
            width: 100%;
            height: 2px;
            top: 50%;
            left: 0;
        }

        .faq-toggle::after {
            width: 2px;
            height: 100%;
            left: 50%;
            top: 0;
        }

        .faq-item.active .faq-toggle::after {
            transform: translateX(-50%) rotate(90deg);
            opacity: 0;
        }

        .faq-item.active .faq-toggle {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            padding: 0 20px;
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
            padding: 0 20px 20px 0;
        }

        .faq-answer-content {
            color: rgb(203, 203, 203);
            font-size: 16px;
            padding-left: 50px;
        }

        /* Анимация появления текста */
        .faq-answer-content {
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
        }

        .faq-item.active .faq-answer-content {
            opacity: 1;
            transform: translateY(0);
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .faq-question-text {
                font-size: 16px;
            }
            
            .faq-question {
                padding: 15px 0;
            }
        }

        .contacts{
            background-color: #39363B;
            text-align: center;
            padding-top: 100px;
            padding-bottom: 150px;
        }

        .btn-ghost2{
            color: white;
        }
        
        .contacts h2{
            color: #FFEDAB;
            font-size: 128px;
            margin-top: 0;
            margin-bottom: 70px;
        }

        .icons-img img{
            width: 200px;
            margin-left: 50px;
        }

         .icons-img{
            margin-left: -50px;
         }

           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){
            h5{
                font-size: 50px;
                margin-top: 0;
            }

            .step-card {
    padding: 42px 22px 105px 15px;
}

.about-link-text p{
    min-width: 470px;
}

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

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

.faq-list {
    max-width: 1200px;
}

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

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

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

         }

          @media (min-width: 1024px) and (max-width: 1296px){
                       h1{
                font-size: 55px;
            }

             h5{
                font-size: 40px;
            }

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

.paragraph-main-p p{
    font-size: 20px;
    max-width: 430px;
}

.paragraph-main{
    gap: 70px;
}

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

.steps h5{
    margin-top: 0;
}

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

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

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

    .faq-list{
        max-width: 900px;
        margin-bottom: 80px;
    }

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

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

                .title {
        margin-left: 40px;
    }

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

    .paragraph-main {
        gap: 70px;
    }

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

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

        .buttons {
        margin-left: 80px;
    }

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

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

    .steps {
    padding-left: 70px;
    margin-bottom: 53px;
}

.steps-cards{
    justify-content: center;
    align-items: center;
    margin-left: -70px;
}

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

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

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

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

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

    .banner h5{
        font-size: 45px;
    }

    .faq-list{
        max-width: 700px;
    }

    .contacts h2{
        font-size: 100px;
    }

    .icons-img img{
        width: 150px;
    }

    .contacts{
        padding-bottom: 100px;
    }

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


                    @media (min-width: 480px) and (max-width: 767px) {
                         .nav-menu a {
        color: #201E21 !important;
        font-size: 18px;
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: center;
        text-decoration: none;
    }
    
    .nav-menu a.active {
        text-decoration: underline;
    }
    
    .nav-menu a:hover {
        background-color: #f5f5f5;
    }
    
    /* Улучшаем внешний вид меню */
    .nav-menu {
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Блокировка прокрутки */
    body.menu-open {
        overflow: hidden;
    }
    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);
    }

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

h5{
    font-size: 30px;
}

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

        span {
        padding-left: 0;
    }

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

        .paragraph-main {
        gap: 55px;
    }

        .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;
        max-width: 390px;
    }

    .steps {
    padding-left: 30px;
    margin-bottom: 43px;
}

    .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: 0;
    }

    .banner h5{
        font-size: 27px;
    }

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

    .banner{
        padding-bottom: 40px;
    }

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

        .btn2 {
        padding: 17px 55px;
    }

    .faq-list{
        max-width: 430px;
        margin-bottom: 70px;
    }

    .contacts h2{
        font-size: 75px;
    }

    .icons-img img {
    width: 100px;
    margin-left: 20px;
}

    .faq-question{
        padding: 15px 20px;
    }

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

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-menu a {
        color: #201E21 !important;
        font-size: 18px;
        padding: 15px 20px;
        display: block;
        width: 100%;
        text-align: center;
        text-decoration: none;
    }
    
    .nav-menu a.active {
        text-decoration: underline;
    }
    
    .nav-menu a:hover {
        background-color: #f5f5f5;
    }
    
    /* Улучшаем внешний вид меню */
    .nav-menu {
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Блокировка прокрутки */
    body.menu-open {
        overflow: hidden;
    }
    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);
    }

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

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

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

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

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

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

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

        .paragraph-main {
        gap: 55px;
    }

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

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

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

    .underline{
        width: 100%;
        top: 45%;
    }

    .steps {
    padding-left: 30px;
    margin-bottom: 43px;
}

.steps h5{
    margin-top: 0;
}

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

.step-card h6{
    font-size: 40px;
}

.step-card {
    padding: 22px 5px 65px 15px;
    max-width: 240px;
}

.contacts {
    padding-top: 50px;
    padding-bottom: 40px;
}

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

        .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: 0;
    }

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

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

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

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

    .faq h5 {
    margin-top: 43px;
    margin-bottom: 25px;
    margin-left: 26px;
}

.faq-list{
    max-width: 280px;
    margin-bottom: 56px;
}

.contacts h2{
    font-size: 40px;
    margin-bottom: 30px;
}

.icons-img {
    margin-left: 0;
}

.icons-img img {
    width: 80px;
    margin-left: 10px;
}

    .faq-question {
        padding: 15px 15px;
    }

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: #9B9595;
        position: relative;
    }
    .container {
        background-image: url(img/cooperation-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;
    }
    
    /* Центрируем все секции */
    .firstscreen,
    .steps,
    .about-link,
    .banner,
    .faq,
    .contacts,
    .footer {
        max-width: 1728px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Специфичные отступы для секций */
    .firstscreen {
        padding: 0 40px;
    }
    
    .steps {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .about-link {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .banner {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .faq {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .contacts {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* Футер */
    .footer {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .footer-bottom {
        margin-left: 0;
    }
    
    /* Оптимизация для очень широких экранов */
    .steps-cards {
        justify-content: center;
        gap: 20px;
    }
    
    .step-card {
        flex: 0 1 calc(33.333% - 40px);
        margin-bottom: 20px;
    }
    
    .about-link {
        justify-content: center;
        gap: 100px;
    }
    
    .banner-buttons {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .faq-list {
        max-width: 1400px;
    }
}

/* Для экстремально больших экранов (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 1920px;
    }
    
    .steps-cards {
        gap: 30px;
    }
    
    .step-card {
        flex: 0 1 calc(33.333% - 60px);
    }
    
    .about-link {
        gap: 150px;
    }
}
