@media (max-width: 991px) {
  .details-section .section-title {
    max-width: 340px;
  }
  .header-button {
    margin-top: 16px;
  }

  .header-content {
    flex-direction: column;
    gap: 32px;
    top: 105px;
    padding: 40px 16px 205px;
  }

  .header-data {
    gap: 8px;
    align-items: center;
    text-align: center;
    max-width: 720px;
  }

  .header-data-block {
    flex-basis: 100%;
  }

  .header-image-block {
    display: flex;
    justify-content: center;
    flex-basis: 100%;
    position: relative;
    right: -16px;
    width: 100%;
  }

  .header-heading {
    max-width: 600px;
    margin-top: 8px;
    font-size: 36px;
    line-height: 1.3;
  }

  .header-gradient {
    height: 350px;
  }

  .header-image {
    width: calc(100% - 8px);
    max-width: 550px;
  }

  .header-image img {
    top: 24px;
    right: 24px;
  }

  .header-lines {
    position: absolute;
    top: -20px;
    max-width: 60%;
    left: 20%;
  }

  .header-data-text {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .general-section,
  .advantages-section,
  .details-section,
  .clients-section,
  .contact-section {
    scroll-margin-top: 50px;
  }
  .advantages-section {
    padding: 80px 0;
  }

  .advantages-section .section-title,
  .clients-section .section-title {
    margin: 0 16px;
  }

  .advantages-items {
    flex-direction: column;
    gap: 8px;
  }

  .advantages-item {
    padding: 32px 16px;
    border-radius: 0;
  }

  .advantages-item h4 {
    line-height: 1.3;
  }

  .advantages-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .advantages-icon img {
    width: 100%;
  }

  .details-content {
    padding: 80px 16px;
  }

  .contact-section {
    padding: 80px 16px;
    min-height: 820px;
  }

  .clients-section {
    padding: 80px 0;
  }

  .clients-items {
    flex-direction: column;
    gap: 8px;
  }

  .clients-item {
    padding: 32px 16px;
    border-radius: 0;
  }

  .clients-item img {
    max-width: 500px;
  }

  .clients-item h3 {
    font-size: 24px;
  }

  .details-content-text {
    margin-bottom: 56px;
  }

  .details-section .details-item {
    flex-direction: column;
    gap: 24px;
  }

  .details-items {
    gap: 56px;
  }

  .details-item ul {
    margin-top: 8px;
  }

  .details-item-section h3 {
    font-size: 24px;
  }

  .details-item-section img {
    max-width: 500px;
  }

  .details-item-count {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    padding: 4px;
  }

  .header-content {
    top: 82px;
    padding-bottom: 185px;
  }

  .header-lines {
    max-width: 80%;
    left: 10%;
  }

  .footer {
    padding: 80px 16px;
  }

  .footer .logo {
    position: relative;
  }

  .footer .navbar {
    flex-direction: column;
    gap: 32px;
    height: 218px;
  }

  .footer .nav-list {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 16px 32px;
    max-height: 98px;
  }

  .footer .nav-link {
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

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

  .form {
    min-width: fit-content;
    max-width: 400px;
    margin-top: 0;
  }

  .general-section-data {
    padding: 80px 16px;
  }

  .general-content {
    margin-bottom: 56px;
  }

  .general-gradient-first,
  .general-gradient-second {
    width: 16px;
  }

  .general-gradient-middle {
    width: 100%;
    left: 0;
  }

  .menu-open main,
  .menu-open footer,
  .menu-open .header-content {
    filter: blur(16px);
  }

  .navbar {
    height: 82px;
    min-height: 82px;
    align-items: flex-start;
  }

  .header .logo {
    height: 50px;
    left: 16px;
    top: 16px;
  }

  .header .logo img {
    width: 50px;
    height: 50px;
  }

   .header .navbar nav {
    flex-basis: 100%;
    padding: 0 16px 16px;
    position: relative;
    top: 82px;
    border-top: 1px solid var(--powder-blue);
  }

  .header .navbar .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .header .nav-link {
    margin: 16px 0;
    padding: 0;
    font-size: 12px;
  }

  .header .nav-link.active::after {
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-lines {
    gap: 16px;
    width: 19%;
    margin-top: 80px;
  }

  .section-single-line {
    width: 29%;
    bottom: 42px;
  }

  .toggle-icon {
    position: absolute;
    right: 16px;
    top: 19px;
    display: block;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    background-color: var(--powder-blue);
  }
}
