.section-command {
  background: url("/images/command-black.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 56px 0 64px 0;
  max-width: 100dvw;
  overflow-x: hidden;
  .container {
    padding: 0 56px;
  }
  .command__inner {
  }
}

.command__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: white;

  @media (max-width: 1420px) {
    font-size: 40px;
  }
  @media (max-width: 1024px) {
    font-size: 36px;
  }
  @media (max-width: 768px) {
    font-size: 30px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.command__description {
  font-family: Onest;
  font-size: 24px;
  color: white;
  margin: 50px 0;
  max-width: 800px;

  @media (max-width: 1420px) {
    font-size: 22px;
    margin: 30px 0;
  }
  @media (max-width: 1024px) {
    font-size: 20px;
    margin: 25px 0;
  }
  @media (max-width: 768px) {
    font-size: 16px;
    margin: 16px 0;
  }
  @media (max-width: 550px) {
    font-size: 15px;
    font-family: Halvar Breitschrift;
    font-weight: 700;
  }
}

.command__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 768px) {
    display: none;
  }
}

.command__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 38px;
  @media (min-width: 769px) {
    display: none;
  }

  .command__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    .command__item__title {
      cursor: pointer;
      padding: 8px 0;
      display: flex;
      gap: 16px;
      align-items: center;
      transition: all 0.3s ease;
      .command__item__title__img {
        height: 48px;
        width: 48px;
        flex-shrink: 0;
      }
      .command__item__title__text {
        font-family: Halvar Breitschrift;
        font-size: 12px;
        font-weight: 500;
        color: white;
      }
      .command__item__arrow {
        transition: transform 0.3s ease;
        transform: rotate(0deg);
        margin-left: auto;
      }
    }
    .command__item__descr {
      font-family: Onest;
      font-size: 12px;
      color: white;
      font-weight: 400;
      overflow: hidden;
      transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
      max-height: 0;
      opacity: 0;
    }
  }
}

.command__card {
  display: flex;
  flex-direction: column;
  height: 524px;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
  box-sizing: border-box;
  padding: 32px 40px;
  @media (max-width: 1420px) {
    height: 480px;
  }
  @media (max-width: 1190px) {
    padding: 30px 16px;
    height: 450px;
  }
  @media (max-width: 1024px) {
    height: 410px;
  }
  .command__card__title {
    font-family: Halvar Breitschrift;
    font-size: 32px;
    font-weight: 500;
    color: #1b1b1b;
    @media (max-width: 1420px) {
      font-size: 24px;
    }
    @media (max-width: 1190px) {
      font-size: 22px;
    }
  }
  .command__card__descr {
    font-family: Onest;
    font-size: 18px;
    color: #1b1b1b;
    @media (max-width: 1420px) {
      font-size: 17px;
    }
    @media (max-width: 1190px) {
      font-size: 16px;
    }
  }
  .command__card__img {
    width: 164px;
    height: 164px;
    margin: 0 auto;

    @media (max-width: 1420px) {
      width: 110px;
      height: 110px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
  }
}

.command__swiper {
  margin-top: 100px;
  @media (max-width: 768px) {
    margin-top: 50px;
  }
  @media (max-width: 550px) {
    margin-top: 32px;
  }

  position: relative;
}

.command__swiper__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.command__swiper__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: white;
  @media (max-width: 1024px) {
    font-size: 36px;
  }
  @media (max-width: 768px) {
    font-size: 30px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.command__swiper__navigation {
  display: flex;
  gap: 10px;
  @media (max-width: 768px) {
    display: none;
  }
}

.command__swiper__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4a90e2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.command__swiper__btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.command__swiper__btn:after {
  font-size: 18px;
  font-weight: bold;
}

.command-swiper {
  position: relative;
  height: fit-content;
}

.command-swiper .swiper-slide {
  height: auto;
}

.command__swiper__item {
  display: flex;
  flex-direction: column;
  height: 556px;
  justify-content: space-between;
  background: #fff;
  box-sizing: border-box;
  padding: 32px 40px;
  border-radius: 8px;
  @media (max-width: 1024px) {
    height: 480px;
    padding: 24px 16px;
  }
  @media (max-width: 768px) {
    height: 430px;
    padding: 23px 15px;
  }
  .command__swiper__item__title {
    font-family: Halvar Breitschrift;
    font-size: 24px;
    font-weight: 600;
    color: #1b1b1b;
    margin-bottom: 20px;
    @media (max-width: 1024px) {
      font-size: 22px;
    }
    @media (max-width: 768px) {
      font-size: 20px;
      margin-bottom: 12px;
    }
  }
  .command__swiper__item__descr {
    font-family: Onest;
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    @media (max-width: 1200px) {
      font-size: 15px;
    }
    @media (max-width: 1024px) {
      font-size: 15px;
    }
    @media (max-width: 768px) {
      font-size: 14px;
    }
  }
  .command__swiper__item__img {
    width: 100%;
    height: 300px;
    margin: 23px auto 0;
    object-fit: cover;
    max-height: 259px;
    @media (max-width: 1024px) {
      height: 250px;
    }
    @media (max-width: 768px) {
      height: 196px;
      border-radius: 8px;
      overflow: hidden;
    }
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.command__schema__map__img {
  margin-top: 25px;
  @media (max-width: 1024px) {
    height: 500px;
  }
  @media (max-width: 768px) {
    height: 400px;
  }
  @media (max-width: 550px) {
    height: 300px;
  }
}

.command__schema__map {
  overflow-x: auto;
  padding: 0 30px;
}

.command__schema {
  margin-top: 112px;
  padding-bottom: 100px;

  .container {
    padding: 0 56px;
  }

  @media (max-width: 1024px) {
    margin-top: 35px;
    padding-bottom: 50px;
  }

  @media (max-width: 768px) {
    padding-bottom: 30px;
  }

  .command__schema__title {
    font-family: Halvar Breitschrift;
    font-size: 46px;
    color: white;
    font-weight: 700;

    @media (max-width: 1024px) {
      font-size: 36px;
    }
    @media (max-width: 768px) {
      font-size: 31px;
    }
    @media (max-width: 550px) {
      font-size: 24px;
    }
  }

  .command__schema__capture {
    position: relative;
    left: 40px;
    margin-top: 40px;
    width: 1305px;
    height: 970px;
    gap: 144px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    .command__schema__capture__img {
      position: absolute;
      width: 1186px;
      height: 578px;
      object-fit: cover;
    }

    .command__schema__col.command__schema__col--1 {
      justify-content: center;
      width: 33%;
    }

    .command__schema__col.command__schema__col--2 {
      flex: 1;
      height: 100%;
      justify-content: space-between;
    }

    .command__schema__col {
      display: flex;
      flex-direction: column;
      height: 100%;

      .command__schema__col__row {
        display: flex;
        gap: 20px;
        justify-content: space-between;
      }
      .command__schema__item {
        top: 50px;
        right: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 184px;
        .command__schema__item__title {
          font-family: Halvar Breitschrift;
          font-size: 20px;
          font-weight: 500;
          color: white;
        }
        .command__schema__item__photo {
          width: 164px;
          height: 164px;
          background: white;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          img {
            width: 62%;
            height: 62%;
            cursor: none;
            user-select: none;
            pointer-events: none;
          }
        }
        .command__schema__item__descr {
          font-family: Onest;
          font-size: 18px;
          color: white;
        }
      }
    }
  }
}

/* Стили для пагинации слайдера */
.command-swiper .swiper-pagination {
  position: static;
  margin-top: 24px;
  text-align: center;
}

.command-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}

.command-swiper .swiper-pagination-bullet-active {
  background: #008dd2;
}
