@font-face {
  font-family: "Montserrat TRM";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.trm-anatomy,
.trm-anatomy button,
.trm-anatomy a,
.trm-anatomy h2,
.trm-anatomy p,
.trm-anatomy span,
.trm-anatomy small,
.trm-anatomy strong {
  font-family: "Montserrat TRM", Montserrat, Arial, sans-serif !important;
}

.trm-anatomy {
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
}

.elementor:has(.trm-anatomy) { overflow-x: clip; }

.trm-anatomy h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(34px, 3.2vw, 50px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
}

.trm-anatomy__layout {
  grid-template-columns: minmax(265px, 1fr) minmax(360px, 545px) minmax(265px, 1fr);
  gap: clamp(34px, 4vw, 76px);
}

.trm-anatomy__list {
  gap: 40px;
  overflow: visible;
}

.trm-anatomy__horse {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: center;
}

.trm-anatomy__canvas {
  grid-column: 1 / -1;
  justify-self: center;
  width: 530px;
  max-width: 100%;
  min-width: 0;
  contain: layout paint;
}
.trm-anatomy__lottie {
  overflow: hidden;
  isolation: isolate;
}
.trm-anatomy__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .24s ease;
  will-change: opacity;
}
.trm-anatomy__layer.is-visible { opacity: 1; }
.trm-anatomy__layer svg { display: block; width: 100% !important; height: 100% !important; }
.trm-anatomy__selected {
  grid-column: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  justify-self: end;
  min-width: 0;
  margin: 26px 0 0;
  white-space: nowrap;
}
.trm-anatomy__selected small { flex: 0 0 auto; margin: 0; font-size: 9px; letter-spacing: .12em; }
.trm-anatomy__selected strong { display: block; flex: 0 0 auto; margin: 0; font-size: clamp(17px,1.35vw,22px); white-space: nowrap; }
.trm-anatomy__cta { grid-column: 2; gap: 10px; margin-top: 26px; padding: 14px 18px; font-size: 12px; white-space: nowrap; }

.trm-anatomy__accessories {
  clear: both;
  width: min(420px, calc(100% - 32px));
  margin: 62px auto 0;
}

.trm-anatomy__category,
.trm-anatomy__list--right .trm-anatomy__category {
  position: relative;
  display: grid;
  min-height: 70px;
  padding: 10px 24px !important;
  overflow: visible;
  border: 2px solid #00633b !important;
  color: #00633b !important;
  background: rgba(255,255,255,.76) !important;
  box-shadow: none !important;
  font-size: clamp(13px, 1.05vw, 17px) !important;
  font-weight: 750 !important;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: none;
}

.trm-anatomy__list--left .trm-anatomy__category {
  grid-template-columns: 1fr 72px;
  padding-right: 58px !important;
  border-radius: 0 0 0 35px !important;
  text-align: center;
}

.trm-anatomy__list--right .trm-anatomy__category {
  grid-template-columns: 72px 1fr;
  padding-left: 58px !important;
  border-radius: 0 0 35px 0 !important;
  text-align: center;
}

.trm-anatomy__list--right .trm-anatomy__category > span {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}

.trm-anatomy__category i,
.trm-anatomy__category.is-active i {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: block;
  width: 108px;
  height: 108px;
  margin: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  transform: translateY(-50%);
  transition: transform .22s ease, filter .22s ease;
}

.trm-anatomy__list--left .trm-anatomy__category i { right: -52px; }
.trm-anatomy__list--right .trm-anatomy__category i { left: -52px; }
.trm-anatomy__category i::after { display: none !important; }
.trm-anatomy__category i img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trm-anatomy__category:hover,
.trm-anatomy__category:focus-visible,
.trm-anatomy__category.is-active,
.trm-anatomy__list--left .trm-anatomy__category:hover,
.trm-anatomy__list--left .trm-anatomy__category:focus-visible,
.trm-anatomy__list--left .trm-anatomy__category.is-active {
  color: #fff !important;
  background: #00633b !important;
  transform: none;
  outline: 3px solid rgba(217,181,91,.75);
  outline-offset: 3px;
}

.trm-anatomy__category:hover i,
.trm-anatomy__category:focus-visible i,
.trm-anatomy__category.is-active i {
  filter: drop-shadow(0 7px 8px rgba(0,45,26,.24));
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 1024px) {
  .trm-anatomy { padding-top: 64px; padding-bottom: 72px; }
  .trm-anatomy h2 { max-width: 650px; font-size: clamp(32px, 5vw, 44px) !important; }
  .trm-anatomy__layout { grid-template-columns: minmax(205px,1fr) minmax(300px,410px) minmax(205px,1fr); gap: 36px; }
  .trm-anatomy__list { gap: 30px; }
  .trm-anatomy__category i,.trm-anatomy__category.is-active i { width: 82px; height: 82px; }
  .trm-anatomy__list--left .trm-anatomy__category i { right: -39px; }
  .trm-anatomy__list--right .trm-anatomy__category i { left: -39px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .trm-anatomy__horse { grid-template-columns: 1fr; }
  .trm-anatomy__selected,
  .trm-anatomy__cta { grid-column: 1; justify-self: center; }
  .trm-anatomy__selected { margin-top: 20px; }
  .trm-anatomy__cta { margin-top: 12px; }
}

@media (max-width: 900px) {
  .trm-anatomy { padding-inline: 28px; }
  .trm-anatomy__layout { display: flex; flex-direction: column; gap: 0; }
  .trm-anatomy__horse { order: 1; width: min(100%,560px); }
  .trm-anatomy__list { order: 2; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: 680px; gap: 30px 54px; padding-inline: 28px; }
  .trm-anatomy__list--left { margin-top: 34px; }
  .trm-anatomy__list--right { margin-top: 18px; }
  .trm-anatomy__list--left .trm-anatomy__category,
  .trm-anatomy__list--right .trm-anatomy__category {
    grid-template-columns: 1fr 60px;
    min-height: 60px;
    padding: 8px 48px 8px 14px !important;
    border-radius: 0 0 0 30px !important;
    text-align: left;
  }
  .trm-anatomy__list--right .trm-anatomy__category > span {
    grid-column: 1;
    text-align: left;
  }
  .trm-anatomy__category i,.trm-anatomy__category.is-active i,
  .trm-anatomy__list--right .trm-anatomy__category i {
    right: -34px;
    left: auto;
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 767px) {
  .trm-anatomy { padding: 48px 14px 58px; }
  .trm-anatomy__intro { margin-bottom: 30px; }
  .trm-anatomy h2 { max-width: 430px; font-size: clamp(28px, 9vw, 38px) !important; line-height: 1.08 !important; }
  .trm-anatomy__intro > p:last-child { max-width: 340px; margin-inline: auto; font-size: 14px; line-height: 1.55; }
  .trm-anatomy__layout { gap: 0; }
  .trm-anatomy__list { width: calc(100vw - 52px) !important; max-width: calc(100vw - 52px) !important; min-width: 0; padding-inline: 0; gap: 22px; }
  .trm-anatomy__category { width: 100%; min-width: 0; }
  .trm-anatomy__category span { overflow-wrap: anywhere; }
  .trm-anatomy__horse { display: flex; flex-direction: column; }
  .trm-anatomy__selected { flex-direction: column; gap: 3px; margin-top: 0; white-space: normal; }
  .trm-anatomy__cta { margin-top: 15px; }
  .trm-anatomy__accessories { margin-top: 44px; }
  .trm-anatomy__list { grid-template-columns: 1fr; gap: 22px; padding-inline: 0; }
  .trm-anatomy__list--right { margin-top: 14px; }
  .trm-anatomy__list--left .trm-anatomy__category,
  .trm-anatomy__list--right .trm-anatomy__category {
    grid-template-columns: 1fr 58px;
    min-height: 58px;
    padding: 8px 50px 8px 16px !important;
    border-radius: 0 0 0 28px !important;
    text-align: left;
  }
  .trm-anatomy__category i,.trm-anatomy__category.is-active i,
  .trm-anatomy__list--right .trm-anatomy__category i {
    right: -29px;
    left: auto;
    width: 66px;
    height: 66px;
  }
}
