﻿.resources-page {
  --resources-blue: #003f9e;
  --resources-navy: #001b54;
  --resources-text: #05204d;
  --resources-muted: #24385f;
  --resources-line: #d9e5f4;
  --resources-line-strong: #9bb7df;
  --resources-soft: #edf7ff;
  --resources-bg: #f8fbff;
  --resources-container: 812px;
  color: var(--resources-text);
  background: #fff;
}

.resources-page main {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 74%, #fff 100%);
}

.resources-page main .container {
  width: min(calc(100% - 132px), var(--resources-container));
}

.resources-hero {
  position: relative;
  min-height: 288px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(240, 249, 255, 0.98) 0%, rgba(240, 249, 255, 0.94) 41%, rgba(240, 249, 255, 0.34) 64%, rgba(240, 249, 255, 0.02) 100%),
    url("resources-hero-visual.jpg") right center / auto 100% no-repeat,
    linear-gradient(90deg, #f2f9ff 0%, #dcefff 100%);
}

.resources-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.68), transparent 22%);
  pointer-events: none;
}

.resources-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 62px;
}

.resources-hero h1 {
  margin: 0;
  color: var(--resources-navy);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.16;
}

.resources-hero p {
  width: min(390px, 48%);
  margin: 26px 0 0;
  color: var(--resources-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.95;
}

.resources-library {
  padding: 38px 0 20px;
}

.resources-section + .resources-section {
  margin-top: 47px;
}

.resources-section-head {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  width: min(100%, 496px);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--resources-line-strong);
}

.resources-section-number {
  color: var(--resources-navy);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.resources-section-rule {
  color: #5477a7;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.resources-section-head h2 {
  margin: 0;
  color: var(--resources-navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.resources-section-copy {
  grid-column: 4;
  margin: 0;
  color: var(--resources-text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.resources-card-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.resources-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resources-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--resources-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(0, 38, 95, 0.08);
}

.resource-card.large {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  min-height: 197px;
  padding: 16px 14px;
}

.resource-card.compact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 16px 10px;
}

.resource-card img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.resource-card.large img {
  height: 163px;
}

.resource-card.compact img {
  height: 168px;
  align-self: start;
}

.resource-card-body {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto 1fr;
}

.resource-card h3 {
  margin: 8px 0 0;
  color: var(--resources-navy);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.resource-card.compact h3 {
  margin-top: 5px;
  font-size: 16px;
}

.resource-card p {
  margin: 16px 0 0;
  color: var(--resources-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.85;
}

.resource-card.compact p {
  margin-top: 13px;
  line-height: 1.72;
}

.resource-card-footer {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  align-self: end;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 12px;
}

.resource-file {
  display: inline-grid;
  grid-template-columns: 26px auto;
  gap: 9px;
  align-items: center;
  color: #0a1d43;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.resource-file small {
  display: block;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
}

.resource-file-icon {
  position: relative;
  display: inline-grid;
  width: 26px;
  height: 34px;
  place-items: center;
  color: #ff2f45;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.resource-file-icon::before {
  content: "";
  position: absolute;
  top: -1.5px;
  right: -1.5px;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: #fff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.resource-download {
  display: inline-flex;
  min-width: 98px;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--resources-blue);
  border: 1px solid var(--resources-line-strong);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}


.resource-card h3,
.resource-card p,
.download-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.resource-card.compact .resource-card-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.resource-card.compact .resource-file {
  width: 100%;
}

.resource-card.compact .resource-download {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
}

.resource-download svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-download:hover,
.resource-download:focus-visible {
  color: #fff;
  border-color: var(--resources-blue);
  background: var(--resources-blue);
  outline: none;
}

.resource-download.is-muted {
  min-width: 128px;
  color: #fff;
  border-color: #6b86b3;
  background: #6b86b3;
}

.resources-advisory {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 198px;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  margin: 24px 0 2px;
  padding: 15px 15px;
  border: 1px solid #cfe0f5;
  border-radius: 5px;
  background: linear-gradient(90deg, #eef8ff 0%, #f6fbff 100%);
}

.resources-advisory-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--resources-blue);
  border: 1px solid #c5dcf6;
  border-radius: 50%;
  background: #e5f3ff;
}

.resources-advisory-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resources-advisory p {
  margin: 0;
  color: var(--resources-navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.75;
}

.resources-contact-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid var(--resources-blue);
  border-radius: 4px;
  background: linear-gradient(180deg, #0048b5 0%, #00388f 100%);
  box-shadow: 0 8px 18px rgba(0, 55, 150, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.resources-contact-button:hover,
.resources-contact-button:focus-visible {
  background: var(--resources-navy);
  outline: none;
}

.resources-contact-button span {
  font-size: 22px;
  line-height: 1;
}

.en-page .resources-hero h1 {
  font-size: 40px;
}

.en-page .resources-section-head {
  width: min(100%, 640px);
}

.en-page .resources-section-copy {
  font-size: 10px;
}

.en-page .resource-card h3 {
  font-size: 15px;
}

.en-page .resource-card p {
  font-size: 10.5px;
  line-height: 1.72;
}

.en-page .resources-advisory p {
  font-size: 14px;
}

@media (max-width: 980px) {
  .resources-page main .container {
    width: min(calc(100% - 64px), var(--resources-container));
  }
}

@media (max-width: 860px) {
  .resources-hero {
    background:
      linear-gradient(90deg, rgba(240, 249, 255, 0.98) 0%, rgba(240, 249, 255, 0.92) 58%, rgba(240, 249, 255, 0.5) 100%),
      url("resources-hero-visual.jpg") right center / auto 100% no-repeat,
      linear-gradient(90deg, #f2f9ff 0%, #dcefff 100%);
  }

  .resources-hero p {
    width: min(430px, 66%);
  }

  .resources-card-grid.two,
  .resources-card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-advisory {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .resources-contact-button {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .resources-page main .container {
    width: min(calc(100% - 32px), 420px);
  }

  .resources-hero {
    min-height: 332px;
    background:
      linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, rgba(240, 249, 255, 0.88) 58%, rgba(240, 249, 255, 0.38) 100%),
      url("resources-hero-visual.jpg") right bottom / auto 58% no-repeat,
      linear-gradient(90deg, #f2f9ff 0%, #dcefff 100%);
  }

  .resources-hero-content {
    padding-top: 42px;
  }

  .resources-hero h1,
  .en-page .resources-hero h1 {
    font-size: 34px;
  }

  .resources-hero p {
    width: 100%;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.8;
  }

  .resources-library {
    padding-top: 30px;
  }

  .resources-section + .resources-section {
    margin-top: 36px;
  }

  .resources-section-head {
    grid-template-columns: auto auto auto minmax(0, 1fr);
    width: 100%;
  }

  .resources-section-copy {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .resources-card-grid.two,
  .resources-card-grid.three {
    grid-template-columns: 1fr;
  }

  .resource-card.large,
  .resource-card.compact {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .resource-card.large img,
  .resource-card.compact img {
    width: 100%;
    height: 150px;
  }

  .resource-card-footer {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .resource-file,
  .resource-download {
    width: 100%;
  }

  .resource-download {
    min-width: 0;
    justify-content: space-between;
  }

  .resources-advisory {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .resources-contact-button {
    grid-column: auto;
    width: 100%;
  }
}




