.market-gateways {
  margin: 26px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 24, 17, .96), rgba(7, 17, 12, .92));
}
.market-gateways-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 15px;
}
.market-gateways-head h2 {
  margin: 4px 0 0;
  color: #f0f7f2;
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 500;
}
.market-gateways-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}
.market-gateway-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
.market-gateway {
  position: relative;
  grid-column: span 2;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #294536;
  border-radius: 11px;
  background: #09130e;
  color: #fff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.market-gateway.gateway-equities { grid-column: span 4; }
.market-gateway img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08) brightness(.74);
  transition: transform .45s ease, filter .3s ease;
}
.gateway-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 11, 7, .06) 14%, rgba(3, 11, 7, .35) 48%, rgba(3, 11, 7, .96) 100%);
}
.gateway-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 15px;
}
.gateway-content small {
  color: #75f0ad;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.gateway-content strong {
  font-family: Georgia, serif;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.18;
}
.gateway-content em {
  color: #b4c4ba;
  font-size: .64rem;
  font-style: normal;
  line-height: 1.35;
}
.gateway-content b {
  max-height: 0;
  overflow: hidden;
  color: var(--green);
  font-size: .62rem;
  opacity: 0;
  transition: max-height .2s ease, opacity .2s ease, margin .2s ease;
}
.market-gateway:hover,
.market-gateway:focus-visible { border-color: var(--green); outline: none; }
.market-gateway:hover img,
.market-gateway:focus-visible img { transform: scale(1.045); filter: saturate(.95) contrast(1.08) brightness(.82); }
.market-gateway:hover .gateway-content b,
.market-gateway:focus-visible .gateway-content b { max-height: 24px; margin-top: 3px; opacity: 1; }
@media (max-width: 1100px) {
  .market-gateway-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .market-gateway,
  .market-gateway.gateway-equities { grid-column: span 2; }
  .market-gateway:first-child,
  .market-gateway:nth-child(2) { grid-column: span 3; }
}
@media (max-width: 720px) {
  .market-gateways { margin: 20px 0; padding: 14px; }
  .market-gateways-head { display: grid; gap: 8px; }
  .market-gateways-head > p { font-size: .72rem; }
  .market-gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-gateway,
  .market-gateway.gateway-equities,
  .market-gateway:first-child,
  .market-gateway:nth-child(2) { grid-column: span 1; min-height: 190px; }
  .market-gateway:first-child { grid-column: 1 / -1; min-height: 205px; }
  .gateway-content { padding: 13px; }
  .gateway-content strong { font-size: .9rem; }
  .gateway-content b { max-height: 24px; margin-top: 2px; opacity: 1; }
}
@media (max-width: 430px) {
  .market-gateway-grid { grid-template-columns: 1fr; }
  .market-gateway,
  .market-gateway.gateway-equities,
  .market-gateway:first-child,
  .market-gateway:nth-child(2) { grid-column: 1; min-height: 185px; }
}
.theme-lenses {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08150f;
}
.theme-lenses-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.theme-lenses-head h2 {
  margin: 4px 0 0;
  color: #eef7f1;
  font-family: Georgia, serif;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 500;
}
.theme-lenses-head > span {
  flex: none;
  padding: 7px 10px;
  border: 1px solid #31503f;
  border-radius: 999px;
  color: #9db0a4;
  font-size: .62rem;
}
.theme-lens-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}
.theme-lens {
  position: relative;
  grid-column: span 3;
  min-height: 175px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #2b4838;
  border-radius: 10px;
  background: #07110c;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.theme-lens.lens-currencies { grid-column: span 4; }
.theme-lens.lens-technology { grid-column: span 6; }
.theme-lens.lens-shipping { grid-column: span 4; }
.theme-lens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) brightness(.66) contrast(1.07);
  transition: transform .45s ease, filter .3s ease;
}
.theme-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 10, 7, .94) 0%, rgba(3, 10, 7, .63) 48%, rgba(3, 10, 7, .18) 100%);
}
.theme-lens > span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: 15px;
}
.theme-lens small { margin-bottom: 5px; color: #72efaa; font-size: .58rem; font-weight: 900; letter-spacing: .11em; }
.theme-lens strong { max-width: 90%; font-family: Georgia, serif; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.theme-lens em { max-width: 92%; margin-top: 5px; color: #b7c6bd; font-size: .63rem; font-style: normal; line-height: 1.4; }
.theme-lens b { margin-top: 9px; color: var(--green); font-size: .62rem; }
.theme-lens:hover,
.theme-lens:focus-visible { border-color: var(--green); outline: none; }
.theme-lens:hover img,
.theme-lens:focus-visible img { transform: scale(1.04); filter: saturate(.86) brightness(.73) contrast(1.08); }
@media (max-width: 900px) {
  .theme-lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-lens,
  .theme-lens.lens-currencies,
  .theme-lens.lens-technology,
  .theme-lens.lens-shipping { grid-column: span 1; }
  .theme-lens.lens-technology { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .theme-lenses { padding: 14px; }
  .theme-lenses-head { align-items: start; flex-direction: column; gap: 8px; }
  .theme-lens-grid { grid-template-columns: 1fr; }
  .theme-lens,
  .theme-lens.lens-currencies,
  .theme-lens.lens-technology,
  .theme-lens.lens-shipping { grid-column: 1; min-height: 185px; }
}
