@charset "UTF-8";

/* =======================================
   TOP
======================================= */
.p-top {
  overflow: hidden;
}

/* =======================================
   HERO
======================================= */
.p-top-hero {
  overflow: hidden;
  position: relative;
}

.p-top-hero__slides {
  display: grid;
}

.p-top-hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition:
    opacity 2s ease,
    visibility 0s linear 2s;
  visibility: hidden;
}

.p-top-hero__slide.is-active {
  opacity: 1;
  transition-delay: 0s;
  visibility: visible;
  z-index: 1;
}

.p-top-hero__picture {
  display: block;
  width: 100%;
}

.p-top-hero__picture img {
  display: block;
  height: auto;
  width: 100%;
}

/* =======================================
   CONTENT BACKGROUND
======================================= */
.p-top-content {
  background-image: url("../img/common/bg-page.webp");
  background-position: center top;
  background-size: 250px auto;
  background-repeat: repeat;
}

/* =======================================
   PRODUCTS
======================================= */
.p-top-products {
  padding: 160px 0 86px;
}

.p-top-products__inner {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: 74px minmax(0, 1fr);
}

.p-top-products__title {
  width: 74px;
}

.p-top-products__title img {
  height: auto;
  width: 100%;
}

.p-top-products__list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p-top-products__item {
  display: block;
  text-align: center;
}

.p-top-products__image {
  height: auto;
  transition: opacity 0.25s ease;
  width: 100%;
}

.p-top-products__item:hover .p-top-products__image {
  opacity: 0.82;
}

.p-top-products__name {
  display: block;
  font-size: 2.4rem;
  font-weight: 500;
  margin-top: 16px;
}

.p-top-products__note {
  display: block;
  font-size: 1.8rem;
}

/* =======================================
   CONTENT LINKS
======================================= */
.p-top-links {
  border-top: 1px solid rgba(60, 60, 60, 0.25);
  padding: 84px 0 86px;
}

.p-top-links__list {
  display: grid;
  gap: 40px 60px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-top-links__item {
  display: block;
  overflow: hidden;
}

.p-top-links__item img {
  height: auto;
  transition: opacity 0.25s ease;
  width: 100%;
}

.p-top-links__item:hover img {
  opacity: 0.82;
}

/* =======================================
   NEWS
======================================= */
.p-top-news {
  background-color: #fff;
  padding: 72px 0 58px;
}

.p-top-news__title {
  align-items: center;
  background-image: url("../img/top/deco-news-title.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 178px 48px;
  display: flex;
  font-size: 2.4rem;
  font-weight: 400;
  height: 48px;
  justify-content: center;
  margin: 0 auto 54px;
  width: 178px;
}

.p-top-news__list {
  border-top: 1px solid #707070;
}

.p-top-news__item {
  border-bottom: 1px solid #707070;
}

.p-top-news__link {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 155px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 26px;
  transition: opacity 0.25s ease;
}

.p-top-news__link:hover {
  opacity: 0.65;
}

.p-top-news__date {
  color: #3d51ea;
  font-weight: 500;
}

.p-top-news__text {
  font-weight: 500;
}

.p-top-news__empty {
  font-size: 1.4rem;
  text-align: center;
}

.p-top-news__more {
  margin-top: 18px;
  text-align: right;
}

.p-top-news__more a {
  color: #3d51ea;
  font-weight: 500;
  transition: opacity 0.25s ease;
}

.p-top-news__more a:hover {
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .p-top-hero__slide,
  .p-top-links__item img,
  .p-top-news__link,
  .p-top-news__more a,
  .p-top-products__image {
    transition: none;
  }
}

@media (max-width: 767px) {
  /* =======================================
     PRODUCTS
  ======================================= */
  .p-top-products {
    padding: 20px 0 54px;
  }

  .p-top-products__inner {
    display: block;
    padding-inline: 8px;
  }

  .p-top-products__title {
    margin: 0 auto 18px;
    width: 54px;
  }

  .p-top-products__list {
    gap: 20px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-top-products__name {
    font-size: 1.7rem;
    margin-top: 10px;
  }

  .p-top-products__note {
    font-size: 1.3rem;
  }

  /* =======================================
     CONTENT LINKS
  ======================================= */
  .p-top-links {
    padding: 56px 0 58px;
  }

  .p-top-links .l-inner {
    padding-inline: 18px;
  }

  .p-top-links__list {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  /* =======================================
     NEWS
  ======================================= */
  .p-top-news {
    padding: 38px 0 26px;
  }

  .p-top-news .l-inner {
    padding-inline: 15px;
  }

  .p-top-news__title {
    background-size: contain;
    margin-bottom: 46px;
    width: 167px;
  }

  .p-top-news__link {
    align-items: start;
    gap: 4px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 13px 4px 12px;
  }

  .p-top-news__date,
  .p-top-news__text {
    font-size: 1.6rem;
  }

  .p-top-news__more {
    margin-top: 14px;
  }

  .p-top-news__more a {
    font-size: 1.6rem;
  }
}