.news {
  --news-bg: #f7f7f7;
  --news-panel: #f7f7f7;
  --news-text: #232323;
  --news-muted: #bab8b8;
  --news-desc: #232323;
  --news-accent: #951b81;
  --news-bullet: #c4c4c4;
  --news-gap: 16px;
  --news-pad-x: 24px;

  box-sizing: border-box;
  width: 100%;
  background: var(--news-bg);
  color: var(--news-text);
  font-family: var(--site-font, "Averta", Arial, sans-serif);
  padding: 50px var(--site-gutter, 30px);
}

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

.news__container {
  position: relative;
  width: 100%;
  max-width: var(--site-container, 1470px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background: var(--news-panel);
  box-shadow: 0 18px 50px rgba(28, 31, 26, 0.06);
}

.news__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.342fr) minmax(0, 0.658fr);
  align-items: stretch;
  margin: 0;
  padding: 0 32px 32px 0;
}

.news__media {
  position: relative;
  overflow: hidden;
  background: #d9d5cf;
  min-height: 220px;
  height: 100%;
}

.news__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgb(0, 0, 0) -110.83%, rgba(0, 0, 0, 0) 92.59%);
  pointer-events: none;
}

.news__slides {
  position: absolute;
  inset: 0;
}

.news__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.news__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.news__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__content {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 0 0 32px;
  min-width: 0;
}

.news__info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
  margin: 0;
  padding: 40px 280px 28px 32px;
}

.news__label {
  margin: 0;
  max-width: 673px;
  color: var(--news-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.news__title {
  margin: 0;
  max-width: none;
  color: var(--news-text);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news__desc {
  margin: 0;
  max-width: 547px;
  color: var(--news-desc);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news__desc p {
  margin: 0;
}

.news__cta {
  position: absolute;
  top: 40px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 10px 40px;
  border: 1px solid var(--news-accent);
  background: transparent;
  color: var(--news-accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.news__cta:hover {
  transform: translateY(-2px);
  background: #03c7b2;
  border-color: #03c7b2;
  color: #ffffff;
}

.news__cta-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='black' d='M3.2 1.2 7.2 5l-4 3.8-.9-.95L5.3 5 2.3 2.15z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='black' d='M3.2 1.2 7.2 5l-4 3.8-.9-.95L5.3 5 2.3 2.15z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.news__pagination {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 0 0 20px;
}

.news__bullet {
  position: relative;
  flex: 1 1 0;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--news-bullet);
  cursor: pointer;
  overflow: hidden;
}

.news__bullet::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--news-text);
}

.news__bullet.is-active {
  background: var(--news-text);
}

.news__bullet.is-playing::after {
  width: 100%;
  transition: width linear;
  transition-duration: var(--news-autoplay, 6000ms);
  background: var(--news-text);
}

.news__bullet.is-active.is-playing {
  background: var(--news-bullet);
}

.news__banners {
  position: relative;
  width: 100%;
}

.news__banners-viewport {
  overflow: hidden;
  width: 100%;
}

.news__banners-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.news__banners-page {
  display: flex;
  flex: 0 0 100%;
  gap: var(--news-gap);
  width: 100%;
  min-width: 0;
}

.news__arrow {
  position: absolute;
  top: 110px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #1a2a4a;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news__arrow svg {
  display: block;
  width: 14px;
  height: 14px;
}

.news__arrow:hover {
  background: #03c7b2;
  color: #ffffff;
  transform: scale(1.04);
}

.news__arrow--prev {
  left: 8px;
}

.news__arrow--next {
  right: 8px;
}

.news__banner {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.news__card {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: #d0d0d0;
}

.news__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__banner-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 96px;
  height: 155px;
  padding: 18px 20px 18px 8px;
  background: #ffffff;
}

.news__banner-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news__banner-title {
  color: var(--news-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news__banner-text {
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.news__banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 0 0 2px;
  border-bottom: 1px solid rgba(35, 35, 35, 0.35);
  color: var(--news-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.news__banner-link-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='black' d='M3.2 1.2 7.2 5l-4 3.8-.9-.95L5.3 5 2.3 2.15z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='black' d='M3.2 1.2 7.2 5l-4 3.8-.9-.95L5.3 5 2.3 2.15z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.news__banner:hover .news__banner-meta {
  background: #fafafa;
}

@media (max-width: 1199px) {
  .news__grid {
    grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  }

  .news__info {
    padding: 32px 220px 24px 24px;
  }

  .news__grid {
    padding-right: 24px;
  }

  .news__cta {
    padding: 10px 24px;
  }

  .news__card {
    min-height: 180px;
  }
}

@media (max-width: 991px) {
  .news {
    padding: 24px 16px;
  }

  .news__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin: 0;
  }

  .news__grid {
    padding: 0;
  }

  .news__media,
  .news__content {
    grid-column: auto;
    grid-row: auto;
  }

  .news__container {
    padding: 0;
    border-radius: 0;
  }

  .news__media {
    min-height: 280px;
    height: 300px;
  }

  .news__content {
    padding: 20px 0 0;
  }

  .news__info {
    padding: 0 0 8px;
    min-height: 0;
    margin-bottom: 16px;
    gap: 16px;
  }

  .news__cta {
    position: static;
    align-self: flex-start;
    margin-top: 8px;
  }

  .news__banner {
    flex: 1 1 100%;
  }

  .news__banners-page {
    flex-direction: column;
  }

  .news__arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .news__arrow--prev {
    left: 8px;
  }

  .news__arrow--next {
    right: 8px;
  }

  .news__arrow:hover {
    transform: translateY(-50%) scale(1.04);
  }
}

@media (max-width: 640px) {
  .news {
    padding: 16px 12px;
  }

  .news__container {
    border-radius: 0;
  }

  .news__title {
    font-size: 26px;
  }

  .news__card {
    min-height: 180px;
  }
}
