.articles-hero {
  padding: 160px 60px;
  background-image: url("/uploads/images/items/big_24.webp");
  background-size: cover;
  background-repeat: no-repeat;
  /*   background:linear-gradient(135deg,rgba(11,30,45,.96),rgba(26,51,68,.93) 30%,rgba(47,80,112,.86) 65%,rgba(160,77,43,.82)); */

  position: relative;
  overflow: hidden;
}
.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 30, 60, 0.9),
    rgba(120, 80, 50, 0.15)
  );
  pointer-events: none;
}
.articles-hero .container-articles {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.articles__main-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffbb66, #ffcc88, #ffaa44, #ff9933);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s ease-out 0.4s forwards;
}
.articles__subtitle {
  font-size: 26px;
  line-height: 1.5;
  color: #000000;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out 0.8s forwards;
  margin: 24px 0;
}
.articles__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.articles__title-wrap {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
}
.articles-cont {
  padding: 160px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.container-articles {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}
.articles__card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  flex-shrink: 0;
}
.articles__card-content {
  padding: 32px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.articles__card-title {
  font-size: 20px;
  font-weight: 800;
  color: #004c80;
  line-height: 1.3;
  margin-bottom: 14px;
}
.articles__card-text {
  font-size: 17px;
  line-height: 1.6;
  color: #1e2a38;
  flex-grow: 1;
  margin-bottom: 20px;
}
.articles__card-btn {
  margin-top: auto;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ff8c38, #e63946, #a0522d, #8b4513);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.articles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.articles__header > .articles__card:nth-of-type(1) {
  animation-delay: 1s;
}
.articles__header > .articles__card:nth-of-type(2) {
  animation-delay: 1.2s;
}
.articles__grid .articles__card:nth-child(1) {
  animation-delay: 1.4s;
}
.articles__grid .articles__card:nth-child(2) {
  animation-delay: 1.6s;
}
.articles__grid .articles__card:nth-child(3) {
  animation-delay: 1.8s;
}
.articles__grid .articles__card:nth-child(4) {
  animation-delay: 2s;
}
.articles__grid .articles__card:nth-child(5) {
  animation-delay: 2.2s;
}
.articles__grid .articles__card:nth-child(6) {
  animation-delay: 2.4s;
}
.articles__grid .articles__card:nth-child(7) {
  animation-delay: 2.6s;
}
.articles__grid .articles__card:nth-child(8) {
  animation-delay: 2.8s;
}

@media (max-width: 1200px) {
  .articles-hero {
    padding: 140px 40px;
  }
  .articles__header {
    grid-template-columns: 1fr 1fr;
  }
  .articles__title-wrap {
    grid-column: 1/-1;
    text-align: center;
  }
}
@media (max-width: 900px) {
  .articles-hero {
    padding: 120px 0;
  }
  .articles__header {
    grid-template-columns: 1fr;
  }
  .articles__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .articles-hero {
    padding: 100px 0;
  }
  .articles__main-title {
    font-size: 42px;
  }
  .articles__subtitle {
    font-size: 22px;
  }
  .articles__card-img {
    height: 200px;
  }
  .articles-cont {
    padding: 50px 0 100px;
  }

  .container-articles {
    padding: 0 15px;
  }
}
@media (max-width: 540px) {
  .articles-hero {
    padding: 80px 0;
  }
  .articles__main-title {
    font-size: 36px;
  }
  .articles__grid {
    grid-template-columns: 1fr;
  }
}

.blog-cont {
  padding: 160px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.container-blog {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.blog-cont a {
  text-decoration: none !important;
  color: inherit;
}

.blog__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.blog__title-wrap {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.blog__main-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  color: #000000;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s ease-out 0.4s forwards;
}
.blog__subtitle {
  font-size: 26px;
  line-height: 1.5;
  color: #1e2a38;
  margin: 20px 0 0;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out 0.8s forwards;
}
.blog__main-btn {
  margin-top: 32px;
  padding: 18px 44px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff !important;
  /*         background:linear-gradient(135deg,#2c5f7a,#46728a); */
  background-color: #1e88e5;

  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(44, 95, 122, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s ease-out 1.1s forwards;
  transition: all 0.4s;
}
.blog__main-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 95, 122, 0.5);
}

.blog__card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 4px solid transparent;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(
        rgba(255, 255, 255, 0.88),
        rgba(255, 255, 255, 0.88)
      )
      padding-box,
    linear-gradient(135deg, #2c5f7a, #46728a, #1e88e5, #ffc107) border-box;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.45s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}
.blog__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.blog__card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}
.blog__card-content {
  padding: 28px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog__card-title {
  font-size: 18px;
  font-weight: 800;
  color: #004c80;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog__card-text {
  font-size: 17px;
  line-height: 1.6;
  color: #1e2a38;
  flex-grow: 1;
  margin-bottom: 20px;
}
.blog__card-btn {
  margin-top: auto;
  padding: 16px 20px;
  background-color: #ffc107;
  /*   background:linear-gradient(135deg,#ff8c38,#e63946,#a0522d,#8b4513); */
  color: #000000;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.blog__card:hover .blog__card-btn {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Анимации появления */
.blog__header > .blog__card:nth-of-type(1) {
  animation-delay: 0.9s;
}
.blog__header > .blog__card:nth-of-type(2) {
  animation-delay: 1.1s;
}
.blog__grid .blog__card:nth-child(1) {
  animation-delay: 1.3s;
}
.blog__grid .blog__card:nth-child(2) {
  animation-delay: 1.5s;
}
.blog__grid .blog__card:nth-child(3) {
  animation-delay: 1.7s;
}
.blog__grid .blog__card:nth-child(4) {
  animation-delay: 1.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-floating-img {
  position: absolute;
  top: 50%;
  right: -220px;
  transform: translateY(-50%);
  width: 820px;
  height: 100%;
  background: url("") center/cover no-repeat;
  border-radius: 32px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: all 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-cont.animated .blog-floating-img {
  right: 20px;
  opacity: 0.15;
}

/* Адаптив */
@media (max-width: 1200px) {
  .container-blog {
    padding: 0 40px;
  }
  .blog__header {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .blog__title-wrap {
    grid-column: 1/-1;
    text-align: center;
    align-items: center;
  }
  .blog__subtitle {
    font-size: 19px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .container-blog {
    padding: 0 30px;
  }
  .blog__header {
    grid-template-columns: 1fr;
  }
  .blog__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .container-blog {
    padding: 0 20px;
  }
  .blog-cont {
    padding: 90px 0;
  }
  .blog__main-title {
    font-size: 36px;
  }
  .blog__subtitle {
    font-size: 17px;
    margin: 16px 0 0;
  }
  .blog__main-btn {
    margin-top: 28px;
    padding: 16px 36px;
    font-size: 17px;
  }
  .blog__card-img {
    height: 160px;
  }
  .blog__card-content {
    padding: 24px 20px;
  }
  .blog__card-title {
    font-size: 20px;
  }
  .blog__card-text {
    font-size: 16.5px;
  }
}
@media (max-width: 540px) {
  .container-blog {
    padding: 0 15px;
  }
  .blog__grid {
    grid-template-columns: 1fr;
  }
  .blog__card-img {
    height: 200px;
  }
  .blog__main-btn {
    min-width: auto;
    width: 100%;
    max-width: 320px;
  }
  .blog__subtitle {
    font-size: 16px;
  }
}

section .articles__subtitle {
  color: #fff;
}
.articles__subtitle {
  font-size: 26px;
  line-height: 1.5;
  color: #000000;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out 0.8s forwards;
  margin: 24px 0;
}

.pages {
  margin-top: 20px;
}

.pages .left {
  margin-bottom: 5px;
}

.pages .show-all {
  margin-top: 5px;
}

.pages ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.pages li {
  /* width:20px;
padding:2px 0px;
text-align: center;
font-weight: 600; */
  background-color: #fff;
}

.pages li a {
  display: block;
  width: 20px;
  padding: 2px 0px;
  font-size: 600;
  text-align: center;
  border: 1px #000 solid;
}

.pages_list_hover {
  display: block;
  width: 20px;
  padding: 2px 0px;
  color: #ffc107;
  background-color: #000;
}

.fa-angle-double-left::before {
  content: "⇦";
  font-style: normal !important;
}

.fa-angle-double-right::before {
  content: "⇨";
  font-style: normal !important;
}
