.home-news {
  padding: 0 0 52px;
  background: #f6f6f6;
}

.home-news__container {
  width: 1176px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.home-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.home-news__title {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 47.5px;
  line-height: 0.98;
  font-weight: 400;
  color: #1a1a1a;
}

.home-news__all {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.home-news__all-text {
  font-family: Inter, Arial, sans-serif;
  font-size: 25.4px;
  line-height: 1;
  font-weight: 400;
  color: #606981;
  transition: color .25s ease;
}

.home-news__all-icon-wrap {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.home-news__all-icon {
  font-size: 44px;
  line-height: 1;
  color: #006adb;
  transition: color .25s ease;
}

.home-news__all:hover .home-news__all-icon-wrap {
  background: #006adb;
}

.home-news__all:hover .home-news__all-icon {
  color: #ffffff;
}

.home-news__grid {
  display: grid;
  grid-template-columns: 376px 376px 376px;
  grid-template-rows: 270px 270px;
  gap: 24px;
}

.home-news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 376px;
  height: 270px;
  padding: 32px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.home-news-card:hover {
  box-shadow: 7px 7px 6.4px rgba(0, 141, 233, 1);
  transform: translate(-2px, -2px);
}

.home-news-card__title {
  font-family: Inter, Arial, sans-serif;
  font-size: 25px;
  line-height: 1.02;
  font-weight: 400;
  color: #2f3441;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-news-card__date {
  margin-top: 16px;
  font-family: Inter, Arial, sans-serif;
  font-size: 12.4px;
  line-height: 1;
  font-weight: 500;
  color: #9eadd4;
}

.home-news-banner {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 376px;
  height: 564px;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.home-news-banner__picture,
.home-news-banner__picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-news-banner__picture img {
  object-fit: cover;
}

.home-news-banner__button {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  height: 56px;
  border-radius: 20px;
  background: #008de9;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 28.5px;
  line-height: 1;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.home-news-banner__button:hover {
  background: #ffffff;
  color: #008de9;
}

/* Модальное окно соцсетей */

.socials-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.socials-modal.is-open {
  display: block;
}

.socials-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 46, 0.24);
  backdrop-filter: blur(2px);
}

.socials-modal__dialog {
  position: relative;
  width: min(540px, calc(100% - 24px));
  margin: 80px auto 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.socials-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f4f6fa;
  color: #1a1a1a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.socials-modal__title {
  margin: 0 50px 20px 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
}

.socials-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.socials-modal__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f8f9fb;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.socials-modal__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 141, 233, 0.10);
}

.socials-modal__icon-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.socials-modal__label {
  font-family: Inter, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  color: #1a1a1a;
}

@media (max-width: 1270px) {
  .home-news__container {
    max-width: calc(100% - 40px);
  }

  .home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .home-news-card {
    width: 100%;
    min-width: 0;
  }

  .home-news-banner {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1176 / 460;
  }
}

@media (max-width: 767px) {
  .home-news {
    padding: 0 0 52px;
  }

  .home-news__container {
    max-width: calc(100% - 24px);
  }

  .home-news__head {
    align-items: center;
    margin-bottom: 28px;
  }

  .home-news__title {
    font-size: 28px;
    line-height: 1.02;
  }

  .home-news__all {
    gap: 10px;
  }

  .home-news__all-text {
    font-size: 18px;
  }

  .home-news__all-icon-wrap {
    width: 52px;
    height: 52px;
  }

  .home-news__all-icon {
    font-size: 30px;
  }

  .home-news__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-news-card {
    width: 100%;
    height: 220px;
    padding: 24px;
    border-radius: 18px;
  }

  .home-news-card__title {
    font-size: 22px;
    -webkit-line-clamp: 4;
  }

  .home-news-card__date {
    font-size: 12px;
  }

  .home-news-banner {
    aspect-ratio: auto;
    height: auto;
    border-radius: 18px;
  }

  .home-news-banner__button {
    left: 20px;
    right: 20px;
    bottom: 20px;
    height: 50px;
    font-size: 20px;
    border-radius: 16px;
  }

  .home-news-card:hover {
    transform: none;
    box-shadow: none;
  }

  .socials-modal__dialog {
    width: calc(100% - 20px);
    margin-top: 24px;
    border-radius: 20px;
    padding: 22px 16px 16px;
  }

  .socials-modal__title {
    font-size: 26px;
    line-height: 1.08;
    margin: 0 44px 18px 0;
  }

  .socials-modal__item {
    min-height: 66px;
    border-radius: 14px;
    padding: 0 14px;
  }

  .socials-modal__icon-image {
    width: 42px;
    height: 42px;
  }

  .socials-modal__label {
    font-size: 20px;
  }
}