/* Cases — Проекты / кейсы */

.cases {
    width: 100%;
    background-color: #f2f2f2;
  }

  .cases__inner {
    width: 100%;
    max-width: 1425px;
    margin-left: auto;
    margin-right: auto;
    padding: 80px 105px 80px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    overflow: visible;
  }

  .cases__head {
    width: 100%;
    max-width: 1215px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    text-align: center;
  }

  .cases__title-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
  }

  .cases__tag,
.home-v83-cases__tag {
  font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #051133;
  }

  .cases__heading {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 89px;
    line-height: 1.1;
    color: #051133;
    margin: 0;
  }

  .cases__lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #051133;
    margin: 0;
    max-width: 930px;
  }

  .cases__nowrap {
  white-space: nowrap;
}

  .cases__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0;
  }

  .cases__tabs li {
    margin: 0;
    padding: 0;
  }

  .cases__tab {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.2;
    color: #051133;
    padding: 10px 20px;
    background: none;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease-in-out;
  }

  .cases__tab:not(.cases__tab--active):hover {
    opacity: 0.75;
  }

  .cases__tab--active {
    border-color: #051133;
  }

  .cases__slider {
    position: relative;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  @media screen and (min-width: 768px) {
    .cases__slider {
      display: block;
      width: min(1215px, 100%);
      max-width: 1215px;
      margin-left: auto;
      margin-right: auto;
    }

    .cases__swiper-footer {
      display: none;
    }

    .cases__arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
    }

    .cases__slider > .cases__arrow:first-child {
      left: -60px;
    }

    .cases__slider > .cases__arrow:last-child {
      right: -60px;
    }

    .cases__arrow--disabled {
      transform: translateY(-50%);
    }

    .cases__card {
      width: 100%;
      max-width: none;
      flex: none;
    }
  }

  .cases__arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
  }

  .cases__arrow--disabled {
    background: #d9d9d9;
    color: #999999;
    cursor: default;
    pointer-events: none;
  }

  .cases__arrow:not(.cases__arrow--disabled) {
    background: #051133;
    color: #ffffff;
    transition: background-color 0.2s ease-in-out;
  }

  .cases__arrow:not(.cases__arrow--disabled):hover {
    background-color: #ff840b;
  }

  .cases__card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    padding: 45px;
    border-radius: 10px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    overflow: hidden;
  }

  .cases__swiper {
    width: 100%;
    min-width: 0;
  }

  .cases .cases__swiper.swiper {
    overflow: hidden;
    border-radius: 10px;
  }

  .cases__swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
  }

  .cases__swiper .cases__card {
    flex: 1 1 auto;
    width: 100%;
  }

  .cases__swiper-footer {
    display: none;
  }

  .cases__pagination.swiper-pagination {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .cases__pagination .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 !important;
    background: #051133;
    opacity: 0.35;
  }

  .cases__pagination .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .cases__card-left {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
  }

  .cases__card-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .cases__card-title {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    color: #051133;
    margin: 0;
  }

  .cases__card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #051133;
    margin: 0;
  }

  .cases__card-tags {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .cases__card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #0040bf;
    letter-spacing: -0.6px;
  }

  .cases__card-scheme {
    width: 800px;
    max-width: 100%;
    height: 500px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
  }

  .cases__card-scheme img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cases__all {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .cases__all-btn,
.home-v83-cases__all-btn {
  background-color: #0040bf;
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    border-radius: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.42px;
    text-decoration: none;
    display: inline-block;
  }

  .cases .cases__all-btn,
.home-v83-contact .home-v83-cases__all-btn {
  transition: background-color 0.2s ease-in-out;
}

.cases .cases__all-btn:hover,
.home-v83-contact .home-v83-cases__all-btn:hover {
  background-color: #ff840b;
  opacity: 1;
}

  .cases .cases__more {
    display: inline-block;
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #FF840B;
    text-decoration: underline;
    text-decoration-color: #FF840B;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    text-underline-offset: 0;
    white-space: nowrap;
    transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
  }

  .cases .cases__more:hover {
    color: #051133;
    text-decoration-color: #051133;
  }

@media screen and (max-width: 1410px) {
  .cases__inner {
      padding: 80px 40px 80px;
      gap: 40px;
    }

    .cases__head {
      gap: 2rem;
    }

    .cases__title-block {
      gap: 1.5rem;
    }

    .cases__card {
      flex-direction: column;
      gap: 60px;
    }

    .cases__card-scheme {
      width: 100%;
      height: auto;
      min-height: 240px;
      aspect-ratio: 800 / 500;
    }

    .cases__slider > .cases__arrow:first-child {
      left: -10px;
    }

    .cases__slider > .cases__arrow:last-child {
      right: -10px;
    }
}

@media screen and (max-width: 767px) {
    .cases__inner {
      padding: 4rem var(--page-gutter) 4rem;
      gap: 2rem;
    }

    .cases__head {
      gap: 1.5rem;
    }

    .cases__title-block {
      gap: 1rem;
    }

    .cases__tag {
      font-size: 1rem;
      line-height: 1.2;
    }

    .cases__heading {
      font-size: 2rem;
      line-height: 1.1;
    }

    .cases__lead {
      font-size: 1rem;
      line-height: 1.2;
    }

    .cases nav[aria-label="Фильтр проектов"] {
      display: none;
    }

    .cases__slider {
      display: block;
    }

    .cases__arrow {
      display: none;
    }

    .cases .cases__swiper.swiper {
      position: relative;
      overflow: visible;
      border-radius: 10px;
      padding-bottom: 2.5rem;
      box-sizing: border-box;
    }

    .cases__swiper .swiper-wrapper {
      align-items: stretch;
    }

    .cases__swiper-footer {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      justify-content: center;
      z-index: 2;
    }

    .cases__card {
      padding: 20px;
      gap: 2rem;
    }

    .cases__card-top {
      gap: 1rem;
    }

    .cases__card-title {
      font-size: 1.5rem;
    }

    .cases__card-desc {
      font-size: 1rem;
      line-height: 1.2;
    }

    .cases__card-tag {
      font-size: 16px;
      letter-spacing: -0.48px;
    }

    .cases__card-tags {
      gap: 10px;
    }

    .cases__card-scheme {
      min-height: 180px;
    }
}
