@media (max-width: 768px) {
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: linear-gradient(to bottom, #062B47, #000F25);
        z-index: 0;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .navLogo {
        width: 235px;
    }

    .main-content {
        position: relative;
        z-index: 1;
    }


    .navbar-container {
        padding: 0 20px !important;
    }

    .navbar-nav {
        display: none !important;
    }

    .show .navbar-nav {
        display: flex !important;
        width: 100%;
        
    }

    .nav-link {
        margin: 0 !important;
    }

    .hero-section {
        padding: 20px;
        background-image: none;
        z-index: 0;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(../images/background/ai.png);
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.4; /* уровень прозрачности картинки */
        z-index: -1; /* чтобы картинка была под текстом */
        background-position: right center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .cards-section {
        padding: 60px 20px !important;
    }

    .cards-container {
        display: flex;
        flex-direction: column;
        gap: 6rem ;
    }

    .cisco-section {
        padding: 20px;
    }

    .cisco-card {
        flex-direction: column;
        width: auto;
        max-width: 100%;
    } 

    .containerImages {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        max-width: 100%;
        align-items: center;
        gap: 1rem;
    }

    .cisco-img {
        position: initial;
        width: 100%;
        max-width: 100%;
    }
    
    .cisco-btn-wrapper {
        display: none;
    }

    .steps-section {
        padding: 20px;
    }

    .steps-grid {
        display: flex;
        flex-direction: column;
    }

    .steps-grid .step-card:nth-child(3) {
        width: auto;
    }

    .cisco-btn-wrapper-mobile {
        display: flex;
        margin: 1rem auto;
   
    }

    .cisco-btn-wrapper-mobile .cisco-btn {
         border-radius: 1rem !important; 
         width: 319px;
         font-size: 18px;
    }

    .steps-button .cisco-btn {
        border-radius: 1.1rem;
        width: 100%;
        text-align: center;
    }

    .review-section {
        width: auto;
        margin: 0 20px;
    }

    .faq-header {
        padding: 20px;
    }

    .containerAcordion {
        width: 100%;
        padding: 20px;
    }

    .footer {
       
        padding: 20px;
        text-align: start;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        align-items: initial;
    }

    .footer-right {
        margin: auto;
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    .navbar-nav {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .nav.nav-tabs {
    display: none;
  }

  .mobile-review-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
    color: white;
  }

  .arrow-button {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A8541;
  }

  .person-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .person-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
  }
  
  .form-section .container:first-child {
    padding: 0 20px;
  }

  .form-section .container {
    max-width: 100%;
  }
}


@media (min-width: 1025px) and (max-width: 768px) {
    .cisco-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .containerImages {
        height: auto;
        width: 100%;
    }

    .cisco-img {
        position: initial;
        margin: auto;
        width: 100%;
        max-width: 100%;
    }

    .cisco-btn-wrapper {
        display: none;
    }

    .cisco-btn-wrapper-mobile {
        display: flex;
        margin: 1rem auto;
   
    }

    
    .hero-section {
        padding: 20px;
        background-image: none;
        z-index: 0;
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url(../images/background/ai.png);
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.4; /* уровень прозрачности картинки */
        z-index: -1; /* чтобы картинка была под текстом */
        background-position: right center;
    }
}


@media (max-width: 768px) {

    .form-grid {
        width: 100%;
    }

  .form-grid div {
    flex-direction: column;
    gap: 1rem;
  }

  .form-grid input,
  .surname,
  .phone-inp {
    width: 100% !important;
  }

  .iti {
    width: 100% !important;
  }
  
}