/* 10 / Новости — Figma */

body:has(.sp-news) .page,
body:has(.sp-news) .content {
  overflow: visible;
}

.sp-news {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 120px 240px 160px;
  background: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.sp-news *,
.sp-news *::before,
.sp-news *::after {
  box-sizing: border-box;
}

.sp-news__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.sp-news__title {
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 48px;
  line-height: 52px;
  color: #000;
}

.sp-news__swiper {
  width: 100%;
  overflow: hidden;
}

.sp-news__swiper .swiper-slide {
  height: auto;
}

.sp-news__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.sp-news__media {
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 20px;
  background: #d9d9d9;
  text-decoration: none !important;
  flex: none;
}

.sp-news__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.sp-news__card:hover .sp-news__img {
  transform: scale(1.03);
}

.sp-news__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 8px;
}

.sp-news__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.sp-news__category {
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #006ab5;
}

.sp-news__date {
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #4d5461;
}

.sp-news__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.sp-news__heading {
  margin: 0;
  width: 100%;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  color: #131927;
}

.sp-news__heading a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.sp-news__heading a:hover {
  color: #006ab5 !important;
}

.sp-news__excerpt {
  margin: 0;
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #4d5461;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.sp-news__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.sp-news__all {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-width: 159px;
  height: 52px;
  padding: 14px 24px;
  border-radius: 10px;
  background: #e6f4ff;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #006ab5 !important;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.sp-news__all:hover {
  background: #d6ebff;
}

.sp-news__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sp-news__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 2px solid #d2d5db;
  border-radius: 150px;
  background: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sp-news__arrow:hover:not(:disabled) {
  opacity: 1;
}

.sp-news__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.sp-news__arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sp-news__scrollbar {
  display: none;
}

.sp-news__scrollbar.swiper-scrollbar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  width: 79px;
  height: 6px;
  margin: 0;
  background: #ebedf0;
  border-radius: 12px;
  overflow: hidden;
}

.sp-news__scrollbar .swiper-scrollbar-drag {
  background: #6d717f;
  border-radius: 12px;
  height: 100%;
  left: 0;
  top: 0;
}

@media (max-width: 1599px) {
  .sp-news {
    padding: 96px 64px 120px;
  }
}

@media (max-width: 1199px) {
  .sp-news {
    padding: 72px 32px 80px;
  }

  .sp-news__title {
    font-size: 36px;
    line-height: 40px;
  }

  .sp-news__media {
    height: 240px;
  }

  .sp-news__heading {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Mobile — Figma Frame 2043684004 */
@media (max-width: 776px) {
  .sp-news {
    padding: 40px 16px 80px;
    overflow: visible;
  }

  .sp-news__inner {
    gap: 24px;
    max-width: none;
    overflow: visible;
  }

  .sp-news__title {
    font-size: 32px;
    line-height: 40px;
    color: #1a1d21;
  }

  .sp-news__swiper {
    width: calc(100% + 16px);
    margin-right: -16px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
  }

  .sp-news__swiper:active {
    cursor: grabbing;
  }

  .sp-news__swiper .swiper-slide {
    width: 335px;
    height: auto;
  }

  .sp-news__card {
    gap: 16px;
  }

  .sp-news__media {
    height: 180px;
    border-radius: 12px;
  }

  .sp-news__content {
    gap: 12px;
    padding: 0 6px;
  }

  .sp-news__meta {
    gap: 12px;
  }

  .sp-news__category,
  .sp-news__date {
    font-size: 14px;
    line-height: 20px;
  }

  .sp-news__body {
    gap: 10px;
  }

  .sp-news__heading {
    font-size: 20px;
    line-height: 26px;
  }

  .sp-news__excerpt {
    font-size: 14px;
    line-height: 20px;
  }

  .sp-news__footer {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .sp-news__all {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .sp-news__nav {
    display: none;
  }

  .sp-news__scrollbar,
  .sp-news__scrollbar.swiper-scrollbar {
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 79px !important;
    height: 6px !important;
    flex: none;
  }
}
