.records_page {
  color: #1f2823;
  padding-bottom: 80px;
}

.records_hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
  margin-bottom: 28px;
  padding: 0 !important;
}

.records_hero_content,
.records_hero_panel,
.records_card {
  border: 1px solid rgba(37, 51, 43, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 50px rgba(28, 35, 31, 0.08);
}

.records_hero_content {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(120deg, rgba(65, 67, 85, 0.82), rgba(65, 67, 85, 0.40)),
    url("/local/templates/.default/img/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.records_eyebrow,
.records_section_label,
.records_card_number {
  display: inline-flex;
  width: fit-content;
  font: 700 12px/1.2 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #971520;
}

.records_hero_content .records_eyebrow {
  color: #f3d2a5;
  margin-bottom: 16px;
}

.records_hero_content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.records_hero_content p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.records_hero_panel {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #414355;
  color: #fff;
}

.records_hero_panel span {
  font: 700 12px/1.2 "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.records_hero_panel strong {
  margin-top: 16px;
  color: #f3d2a5;
  font: 800 38px/1 "Manrope", sans-serif;
  letter-spacing: 0;
}

.records_hero_panel p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.records_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
}

.records_header h2 {
  margin: 8px 0 0;
  color: #1f2823;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.records_header p {
  margin: 0;
  color: rgba(31, 40, 35, 0.68);
  font-size: 15px;
  text-align: right;
}

.records_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
}

.records_card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.records_card_featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.78fr);
}

.records_card_media {
  min-height: 310px;
  background: #414355;
  overflow: hidden;
}

.records_card_photo {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.records_card_media img {
  width: 100%;
  height: 100%;
  height: 405px;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.records_card:hover .records_card_media img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.fancybox__container:has([data-fancybox="records_gallery"]) {
  --fancybox-bg: rgba(65, 67, 85, 0.92);
  --fancybox-accent-color: #f3d2a5;
}

.fancybox__container:has([data-fancybox="records_gallery"]) .fancybox__toolbar,
.fancybox__container:has([data-fancybox="records_gallery"]) .fancybox__caption {
  font-family: "Manrope", sans-serif;
}

.fancybox__container:has([data-fancybox="records_gallery"]) .f-button {
  border-radius: 8px;
}

body .fancybox-container .fancybox-bg {
  background: rgba(65, 67, 85, 0.92);
}

body .fancybox-container .fancybox-caption {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

body .fancybox-container .fancybox-image {
  border-radius: 8px;
}

.records_card_body {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.records_card_body h3 {
  margin: 12px 0 0;
  color: #1f2823;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.records_card_featured .records_card_body {
  justify-content: flex-end;
  background: #414355;
}

.records_card_featured .records_card_number {
  color: #f3d2a5;
}

.records_card_featured h3 {
  color: #fff;
  font-size: 34px;
}

.records_card_text {
  margin-top: 14px;
  color: rgba(31, 40, 35, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.records_card_text p {
  margin: 0 0 10px;
  color: inherit;
}

.records_card_text p:last-child {
  margin-bottom: 0;
}

.records_card_featured .records_card_text {
  color: rgba(255, 255, 255, 0.78);
}

.records_page .bx-pagination,
.records_page .modern-page-navigation,
.records_page .navigation {
  margin-top: 18px;
}

@media screen and (max-width: 1180px) {
  .records_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records_card_featured {
    grid-column: span 2;
  }
}

@media screen and (max-width: 900px) {
  .records_hero {
    grid-template-columns: 1fr;
  }

  .records_hero_panel {
    min-height: 180px;
  }

  .records_card_featured {
    display: flex;
  }
}

@media screen and (max-width: 680px) {
  .records_page {
    padding-bottom: 48px;
  }

  .records_hero {
    margin-top: 22px;
    gap: 16px;
  }

  .records_hero_content,
  .records_hero_panel {
    min-height: 220px;
    padding: 20px;
  }

  .records_hero_content h1 {
    font-size: 44px;
  }

  .records_hero_content p {
    font-size: 16px;
  }

  .records_header {
    display: block;
  }

  .records_header h2 {
    font-size: 30px;
  }

  .records_header p {
    margin-top: 10px;
    text-align: left;
  }

  .records_list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .records_card_featured {
    grid-column: span 1;
  }

  .records_card_media,
  .records_card_media img {
    min-height: 260px;
  }

  .records_card_featured h3 {
    font-size: 28px;
  }
}
