/* ==========================================================
   ARTICLES PAGE
   ========================================================== */

.articles-page {
  padding: 0 0 80px;
}


/* ==========================================================
   BREADCRUMBS
   ========================================================== */

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  width: min(100% - 40px, 1400px);
  margin: 0 auto 36px;
  padding: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.breadcrumbs a {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 3px 0;

  color: #c8a27a;
  font-weight: 500;
  text-decoration: none;

  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #a67c52;
}

.breadcrumbs a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: currentColor;

  transition: width 0.2s ease;
}

.breadcrumbs a:hover::after {
  width: 100%;
}

.breadcrumb-separator {
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1;
}

.breadcrumb-current {
  color: #666;
  font-weight: 500;
}


/* ==========================================================
   HERO
   ========================================================== */

.articles-hero {
  position: relative;
  padding: 70px 0 65px;
  margin-bottom: 50px;
  overflow: hidden;
}

.articles-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(185, 140, 97, 0.08);
  top: -180px;
  right: -80px;
  pointer-events: none;
}

.articles-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.articles-label,
.articles-section-label,
.articles-cta-label {
  display: inline-block;
  margin-bottom: 14px;
  color: #B98C61;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.articles-hero h1 {
  margin: 0 0 20px;
  color: #343E49;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 600;
}

.articles-hero p {
  max-width: 680px;
  margin: 0;
  color: #626B74;
  font-size: 19px;
  line-height: 1.7;
}


/* ==========================================================
   SEARCH + FILTER
   ========================================================== */

.articles-filter {
  margin-bottom: 70px;
}

.articles-search {
  max-width: 620px;
  margin-bottom: 30px;
}

.articles-search-label {
  display: block;
  margin-bottom: 10px;
  color: #343E49;
  font-size: 14px;
  font-weight: 600;
}

.articles-search-field {
  position: relative;
}

.articles-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #8B939B;
  pointer-events: none;
}

.articles-search-field input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 52px;
  border: 1px solid #D9DDE1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #343E49;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.articles-search-field input::placeholder {
  color: #A2A8AE;
}

.articles-search-field input:focus {
  border-color: #B98C61;
  box-shadow: 0 0 0 3px rgba(185, 140, 97, 0.10);
}


.articles-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-category {
  padding: 11px 20px;
  border: 1px solid #D9DDE1;
  border-radius: 999px;
  background: transparent;
  color: #59626B;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.article-category:hover {
  border-color: #B98C61;
  color: #B98C61;
}

.article-category.active {
  border-color: #343E49;
  background: #343E49;
  color: #fff;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.articles-list-section {
  margin-bottom: 90px;
}

.articles-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.articles-section-heading h2 {
  margin: 0;
  color: #343E49;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 600;
}

.articles-count {
  flex-shrink: 0;
  padding-bottom: 5px;
  color: #8A9299;
  font-size: 14px;
}


/* ==========================================================
   ARTICLES GRID
   ========================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}


/* ==========================================================
   ARTICLE CARD
   ========================================================== */

.article-card {
  min-width: 0;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #E2E5E8;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.article-card-link:hover {
  transform: translateY(-4px);
  border-color: #D5D9DD;
  box-shadow: 0 12px 35px rgba(52, 62, 73, 0.10);
}


/* ==========================================================
   ARTICLE IMAGE
   ========================================================== */

.article-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #EEF0F1;
}

.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card-link:hover .article-card-image img {
  transform: scale(1.03);
}

.article-card-category {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #343E49;
  font-size: 12px;
  font-weight: 600;
}


/* ==========================================================
   ARTICLE CONTENT
   ========================================================== */

.article-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
}

.article-card-content time {
  display: block;
  margin-bottom: 12px;
  color: #8B9298;
  font-size: 13px;
}

.article-card-content h3 {
  margin: 0 0 14px;
  color: #343E49;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
}

.article-card-content p {
  margin: 0;
  color: #69727A;
  font-size: 15px;
  line-height: 1.65;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 25px;
  color: #B98C61;
  font-size: 14px;
  font-weight: 600;
}

.article-read-more span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.article-card-link:hover .article-read-more span {
  transform: translateX(4px);
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.articles-empty {
  padding: 70px 20px;
  text-align: center;
}

.articles-empty[hidden] {
  display: none;
}

.articles-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #F2F3F4;
  color: #B98C61;
  font-size: 30px;
}

.articles-empty h3 {
  margin: 0 0 10px;
  color: #343E49;
  font-size: 24px;
}

.articles-empty p {
  margin: 0 0 24px;
  color: #737B83;
  font-size: 15px;
}

.articles-reset {
  padding: 11px 20px;
  border: 1px solid #B98C61;
  border-radius: 8px;
  background: transparent;
  color: #B98C61;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.articles-reset:hover {
  background: #B98C61;
  color: #fff;
}


/* ==========================================================
   CTA
   ========================================================== */

.articles-cta {
  position: relative;
  overflow: hidden;
  padding: 65px 60px;
  border-radius: 16px;
  background: #343E49;
}

.articles-cta::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -100px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.articles-cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.articles-cta-label {
  color: #D2AC88;
}

.articles-cta h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
}

.articles-cta p {
  max-width: 590px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.articles-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border-radius: 35px;
  background: #B98C61;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.articles-cta-button:hover {
  background: #A87C53;
  transform: translateY(-1px);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .articles-hero {
    padding: 55px 0;
  }

  .articles-grid {
    gap: 22px;
  }

  .article-card-image {
    height: 240px;
  }

  .article-card-content {
    padding: 22px;
  }

  .articles-cta {
    padding: 50px 35px;
  }

}


@media (max-width: 700px) {

  .articles-page {
    padding-bottom: 55px;
  }

  .articles-breadcrumbs {
    padding-top: 20px;
    margin-bottom: 10px;
  }

  .articles-hero {
    padding: 40px 0 45px;
    margin-bottom: 35px;
  }

  .articles-hero h1 {
    font-size: 42px;
  }

  .articles-hero p {
    font-size: 16px;
    line-height: 1.6;
  }

  .articles-filter {
    margin-bottom: 50px;
  }

  .articles-categories {
    gap: 8px;
  }

  .article-category {
    padding: 9px 15px;
    font-size: 13px;
  }

  .articles-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card-image {
    height: 230px;
  }

  .article-card-content h3 {
    font-size: 21px;
  }

  .articles-cta {
    padding: 40px 25px;
    border-radius: 12px;
  }

}


@media (max-width: 480px) {

  .articles-search-field input {
    height: 54px;
    font-size: 15px;
  }

  .article-card-image {
    height: 210px;
  }

  .article-card-content {
    padding: 20px;
  }

  .article-card-content h3 {
    font-size: 20px;
  }

  .articles-cta-button {
    width: 100%;
  }

}