.page-frontend--news-single-page .site-main {
  margin-top: 90px;
}

.page-frontend--news-single-page .site-header__content-wrapper {
  border-color: transparent;
}

@media (max-width: 1200px) {
  .page-frontend--news-single-page .site-main {
    margin-top: 60px;
  }
}

.top-image {
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 1440/650;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .top-image {
    aspect-ratio: 640/220;
    object-position: center top;
  }
}

@media (max-width: 639px) {
  .top-image {
    aspect-ratio: 320/220;
  }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding-top: 50px;
  padding-bottom: 90px;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

.hero::before {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 183px;
  height: 153px;
  background-image: url('../img/corner-bottom-right.svg');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 4;
}

.hero .hero__breadcrumbs {
  color: rgba(36, 37, 39, 0.5);
}

.hero .breadcrumbs__link {
  color: rgba(36, 37, 39, 0.5);
}

.hero__date {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 40px;
  margin-top: 50px;
  border: 1px solid rgba(36, 37, 39, 0.3);
  border-radius: 100px;
  color: var(--color-text-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
}

.hero__title {
  flex: 670 1 0; /* flex-grow, flex-shrink, flex-basis */
  min-width: 0;
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.hero__text {
  flex: 620 1 0;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dark);
}

@media (max-width: 1200px) {
  .hero {
    padding-top: 25px;
  }

  .hero::before {
    display: none;
  }

  .hero__date {
    justify-content: flex-start;
    margin-top: 25px;
    font-size: 10px;
    text-align: left;
    border: none;
    width: auto;
    height: auto;
    opacity: 0.5;
  }

  .hero__content {
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
  }

  .hero__title {
    width: 100%;
    font-size: 24px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(36, 37, 39, 0.1);
  }

  .hero__text {
    font-family: 'Inter', sans-serif;
    width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 639px) {
  .hero__content {
    margin-top: 20px;
  }

  .hero__title {
    font-size: 18px;
  }
}

/* ===== слайдер ===== */

.news {
  padding: 90px 0;
}

.swiper {
  width: 100%;
}

.news__slider {
  margin-top: 35px;
  margin-bottom: 20px;
}

.swiper-slide {
  min-width: 0;
}

.slider-controls {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.page-frontend--news-single-page .swiper-button-next,
.page-frontend--news-single-page .swiper-button-prev {
  position: static;
  margin-top: 0;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-shrink: 0;
  background-color: rgba(173, 168, 168, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:after, .swiper-button-prev:after {
  display: none;
}

.page-frontend--news-single-page .swiper-button-prev::before {
  transform: rotate(180deg);
}

.page-frontend--news-single-page .swiper-button-next::after,
.page-frontend--projects-page .swiper-button-prev::after {
  display: none;
}

.page-frontend--news-single-page .slider-btn svg {
  width: 10px;
  height: 10px;
}

.slider-btn--next svg {
  transform: rotate(180deg);
}

@media (max-width: 1000px) {
  .slider-controls {
    gap: 5px;
  }

  .page-frontend--news-single-page .swiper-button-next,
  .page-frontend--news-single-page .swiper-button-prev {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 639px) {
  .page-frontend--news-single-page .swiper-button-next,
  .page-frontend--news-single-page .swiper-button-prev {
    width: 26px;
    height: 26px;
  }
}

/* Карточка */
.card {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  background-color: var(--color-bg-light);
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
}

.card__icon-link {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  flex-grow: 0;
  width: 46px;
  height: 46px;
  border-radius: 3px;
}

.card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 325;
  object-fit: cover;
}

.card__content {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  padding: 20px;
  color: var(--color-text-dark);
}

.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.card__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.8;
}

.card__date {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.5;
}

@media (max-width: 1000px) {
  .news__slider {
    margin-top: 25px;
    margin-bottom: 20px;
  }

  .card__image {
    aspect-ratio: 280/200;
  }

  .card__title { 
    font-size: 14px;
  }

  .card__text {
    font-size: 12px;
  }

  .card__date {
    font-size: 10px;
  }

  .card__icon-link {
    width: 26px;
    height: 26px;
  }

  .card__icon-link svg {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 639px) {
  .card__image {
    aspect-ratio: 300/200;
  }
}

.link-fullwidth {
  display: block;
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .link-fullwidth:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    cursor: pointer;
  }
}

@media (max-width: 1000px) {
  .link-fullwidth {
    font-size: 14px;
  }
}